/* AFIMAN ePMIS - application layer on top of the Coup Admin template. */

/* Brand block in the header / sidebar */
.logo-box .brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.logo-box .brand img { width: 34px; height: 34px; }
.logo-box .brand-text { font-weight: 700; font-size: 18px; letter-spacing: .3px; color: #172b4d; white-space: nowrap; }
.logo-box .brand-text small { display: block; font-size: 10px; font-weight: 500; letter-spacing: 1px; color: #7b8190; margin-top: -3px; }
.dark-skin .logo-box .brand-text { color: #fff; }
.sidebar-collapse .logo-box .brand-text { display: none; }

/* Sidebar: unavailable (future) items are visible but not clickable */
.sidebar-menu li.is-soon > span.menu-disabled { display: flex; align-items: center; padding: 12px 15px; color: #9aa0ac; cursor: not-allowed; }
.sidebar-menu li.is-soon > span.menu-disabled i,
.sidebar-menu li.is-soon > span.menu-disabled svg { margin-right: 10px; width: 18px; height: 18px; }
.sidebar-menu li.is-soon .soon-tag { margin-left: auto; font-size: 9px; text-transform: uppercase; background: #eef1f6; color: #7b8190; border-radius: 4px; padding: 1px 5px; }
.sidebar-menu li.header { text-transform: uppercase; font-size: 11px; letter-spacing: 1px; }

/* Avatar with initials (no image assets needed) */
.avatar-initials { width: 38px; height: 38px; border-radius: 50%; background: #1b84ff; color: #fff;
  display: inline-flex; align-items: center; justify-content: center; font-weight: 600; font-size: 14px; }
.user-menu .dropdown-menu { min-width: 250px; }
.user-menu .user-head { padding: 14px 18px; border-bottom: 1px solid rgba(0,0,0,.08); }

/* Soft status badges (colour + optional feather icon) */
.badge-soft { display: inline-flex; align-items: center; gap: 4px; font-weight: 600; font-size: 12px;
  padding: 4px 10px; border-radius: 20px; line-height: 1.2; }
.badge-soft svg { width: 12px; height: 12px; }
.badge-soft-success { background: #e3f8ee; color: #0f8a55; }
.badge-soft-danger { background: #fde8e8; color: #c62f2f; }
.badge-soft-warning { background: #fff3d9; color: #a86400; }
.badge-soft-info { background: #e1f1ff; color: #0b6fc4; }
.badge-soft-secondary { background: #eceff4; color: #5b6373; }
.badge-soft-dark { background: #3b4252; color: #fff; }
.badge-soft-primary { background: #e6f0ff; color: #1462c9; }
.dark-skin .badge-soft-success { background: rgba(15,138,85,.2); color: #4fdc9a; }
.dark-skin .badge-soft-danger { background: rgba(198,47,47,.22); color: #ff8d8d; }
.dark-skin .badge-soft-warning { background: rgba(168,100,0,.25); color: #ffc55a; }
.dark-skin .badge-soft-info { background: rgba(11,111,196,.25); color: #78c0ff; }
.dark-skin .badge-soft-secondary { background: rgba(255,255,255,.1); color: #c5cad6; }
.dark-skin .badge-soft-primary { background: rgba(27,132,255,.2); color: #8bbcff; }

/* Empty state */
.empty-state { text-align: center; padding: 48px 16px; color: #7b8190; }
.empty-state svg { width: 46px; height: 46px; opacity: .55; margin-bottom: 12px; }
.empty-state h5 { margin-bottom: 6px; }

/* Tables and toolbars */
.table-toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.table-toolbar .filters { display: flex; flex-wrap: wrap; gap: 8px; flex: 1 1 auto; }
.table-toolbar .filters .form-control, .table-toolbar .filters .form-select { min-width: 150px; max-width: 220px; }
.table-actions { white-space: nowrap; }
.table-actions .btn { padding: 4px 8px; }
.table > :not(caption) > * > * { vertical-align: middle; }

/* Buttons that are processing */
.btn.is-loading { pointer-events: none; opacity: .8; }
.btn .spinner-border { width: 1em; height: 1em; border-width: .15em; margin-right: 6px; vertical-align: -2px; }

/* Forms */
.form-label.required::after { content: " *"; color: #e5384d; }
.invalid-feedback { display: block; }
.select2-container { width: 100% !important; }
.select2-container .select2-selection--single { height: 38px; border-color: #dfe3e8; }
.select2-container--default .select2-selection--single .select2-selection__rendered { line-height: 36px; }
.select2-container--default .select2-selection--single .select2-selection__arrow { height: 36px; }

/* Stat cards */
.stat-card .stat-icon { width: 48px; height: 48px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; }
.stat-card .stat-icon svg { width: 22px; height: 22px; }

/* Auth pages */
body.auth-page { min-height: 100vh; background: linear-gradient(135deg, #0d3b7a 0%, #1b84ff 55%, #4fc3f7 100%); }
.auth-card { border-radius: 14px; overflow: hidden; }
.auth-brand img { width: 56px; height: 56px; }

/* Print helpers for receipts, invoices and purchase documents */
@media print {
  .main-header, .main-sidebar, .main-footer, .content-header, .no-print, #loader { display: none !important; }
  .content-wrapper { margin-left: 0 !important; padding: 0 !important; background: #fff !important; }
  .box { box-shadow: none !important; border: 0 !important; }
}
