/* =============================================
   EcoShield Pro — Professional Admin CSS
   Matching OilSys Pro screenshot design
   ============================================= */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --sidebar-bg:      #0f172a;
  --sidebar-hover:   #1e293b;
  --sidebar-active:  #2563eb;
  --sidebar-text:    #94a3b8;
  --sidebar-text-hi: #f1f5f9;
  --sidebar-width:   220px;
  --sidebar-w-col:   70px;
  --topbar-h:        62px;
  --bg:              #f1f5f9;
  --white:           #ffffff;
  --border:          #e2e8f0;
  --text:            #1e293b;
  --text-muted:      #64748b;
  --primary:         #2563eb;
  --primary-dark:    #1d4ed8;
  --success:         #16a34a;
  --warning:         #d97706;
  --danger:          #dc2626;
  --info:            #0891b2;
  --radius:          10px;
  --radius-sm:       6px;
  --shadow:          0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.06);
  --shadow-md:       0 4px 6px -1px rgba(0,0,0,.1), 0 2px 4px -1px rgba(0,0,0,.06);
  --shadow-lg:       0 10px 15px -3px rgba(0,0,0,.1), 0 4px 6px -2px rgba(0,0,0,.05);
  --font:            'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --transition:      all .18s ease;
}

html { font-size: 14px; }
body { font-family: var(--font); background: var(--bg); color: var(--text); display: flex; min-height: 100vh; line-height: 1.5; }

/* ─── SIDEBAR ─── */
.sidebar {
  position: fixed; top: 0; left: 0; height: 100vh; width: var(--sidebar-width);
  background: var(--sidebar-bg); display: flex; flex-direction: column;
  z-index: 100; transition: width .25s ease; overflow: hidden;
}
.sidebar.collapsed { width: var(--sidebar-w-col); }
.sidebar-brand {
  display: flex; align-items: center; gap: 10px; padding: 20px 16px;
  border-bottom: 1px solid rgba(255,255,255,.06); white-space: nowrap;
}
.brand-icon { font-size: 22px; flex-shrink: 0; }
.brand-text { color: #fff; font-size: 16px; font-weight: 700; letter-spacing: -.3px; }
.sidebar.collapsed .brand-text { display: none; }

.sidebar-nav { flex: 1; padding: 12px 8px; overflow-y: auto; overflow-x: hidden; }
.sidebar-nav::-webkit-scrollbar { width: 4px; }
.sidebar-nav::-webkit-scrollbar-thumb { background: rgba(255,255,255,.1); border-radius: 4px; }

.nav-item {
  display: flex; align-items: center; gap: 11px;
  padding: 9px 10px; border-radius: var(--radius-sm);
  color: var(--sidebar-text); text-decoration: none; font-size: 13.5px; font-weight: 500;
  transition: var(--transition); white-space: nowrap; margin-bottom: 2px;
}
.nav-item:hover  { background: var(--sidebar-hover); color: var(--sidebar-text-hi); }
.nav-item.active { background: var(--sidebar-active); color: #fff; }
.nav-icon { width: 18px; height: 18px; flex-shrink: 0; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.sidebar.collapsed .nav-item span { display: none; }
.sidebar.collapsed .nav-item { justify-content: center; padding: 10px 0; }

.sidebar-footer {
  display: flex; align-items: center; gap: 10px; padding: 14px 14px;
  border-top: 1px solid rgba(255,255,255,.06); white-space: nowrap; overflow: hidden;
}
.user-avatar {
  width: 32px; height: 32px; background: var(--primary); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700; color: #fff; flex-shrink: 0;
}
.user-name  { font-size: 12.5px; font-weight: 600; color: var(--sidebar-text-hi); }
.user-role  { font-size: 11px; color: var(--sidebar-text); }
.sidebar.collapsed .sidebar-footer .user-info { display: none; }

/* ─── MAIN ─── */
.main-wrapper {
  margin-left: var(--sidebar-width); flex: 1; min-height: 100vh;
  display: flex; flex-direction: column; transition: margin-left .25s ease;
}
.main-wrapper.expanded { margin-left: var(--sidebar-w-col); }

/* ─── TOPBAR ─── */
.topbar {
  height: var(--topbar-h); background: var(--white);
  border-bottom: 1px solid var(--border); display: flex;
  align-items: center; padding: 0 24px; gap: 16px;
  position: sticky; top: 0; z-index: 50; box-shadow: var(--shadow);
}
.sidebar-toggle { background: none; border: none; cursor: pointer; color: var(--text-muted); display: flex; padding: 6px; border-radius: 6px; }
.sidebar-toggle:hover { background: var(--bg); color: var(--text); }
.topbar-left { flex: 1; }
.page-heading { font-size: 20px; font-weight: 700; color: var(--text); line-height: 1.2; }
.page-sub     { font-size: 12.5px; color: var(--text-muted); margin-top: 1px; }
.topbar-right { display: flex; align-items: center; gap: 10px; }

.topbar-search { position: relative; }
.topbar-search svg { position: absolute; left: 10px; top: 50%; transform: translateY(-50%); color: var(--text-muted); stroke: currentColor; fill: none; stroke-width: 2; }
.topbar-search input {
  width: 220px; padding: 7px 12px 7px 34px; border: 1px solid var(--border);
  border-radius: 8px; font-size: 13px; background: var(--bg); color: var(--text);
  transition: var(--transition); outline: none;
}
.topbar-search input:focus { border-color: var(--primary); background: #fff; width: 280px; }

.search-dropdown {
  position: absolute; top: calc(100% + 6px); left: 0; width: 320px;
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow-lg); display: none; z-index: 200; overflow: hidden;
}
.search-dropdown.open { display: block; }
.sr-item { display: flex; align-items: center; gap: 10px; padding: 10px 14px; text-decoration: none; color: var(--text); transition: var(--transition); }
.sr-item:hover { background: var(--bg); }
.sr-type { font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: .5px; padding: 2px 7px; border-radius: 999px; }
.sr-type.product  { background: #dbeafe; color: var(--primary); }
.sr-type.customer { background: #dcfce7; color: var(--success); }
.sr-type.supplier { background: #fef3c7; color: var(--warning); }
.sr-empty { padding: 14px; text-align: center; color: var(--text-muted); font-size: 13px; }

.icon-btn { background: none; border: none; cursor: pointer; color: var(--text-muted); position: relative; padding: 8px; border-radius: 8px; display: flex; }
.icon-btn:hover { background: var(--bg); color: var(--text); }
.icon-btn svg { stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; }
.notif-badge { position: absolute; top: 4px; right: 4px; background: var(--danger); color: #fff; font-size: 10px; font-weight: 700; min-width: 16px; height: 16px; border-radius: 999px; display: flex; align-items: center; justify-content: center; line-height: 1; }

.notif-wrapper, .user-menu-wrapper { position: relative; }
.notif-dropdown, .user-dropdown {
  position: absolute; right: 0; top: calc(100% + 10px);
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: var(--shadow-lg);
  display: none; z-index: 200; min-width: 300px; overflow: hidden;
}
.notif-dropdown.open, .user-dropdown.open { display: block; }
.notif-header { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; border-bottom: 1px solid var(--border); font-weight: 600; font-size: 13px; }
.notif-all { font-size: 12px; color: var(--primary); text-decoration: none; }
.notif-empty { padding: 20px 16px; text-align: center; color: var(--text-muted); font-size: 13px; }
.notif-item { display: flex; gap: 10px; padding: 12px 16px; text-decoration: none; color: var(--text); border-bottom: 1px solid var(--border); transition: var(--transition); }
.notif-item:hover { background: var(--bg); }
.notif-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--primary); flex-shrink: 0; margin-top: 4px; }
.notif-low_stock .notif-dot { background: var(--danger); }
.notif-expiry    .notif-dot { background: var(--warning); }
.notif-title { font-size: 13px; font-weight: 600; }
.notif-msg   { font-size: 12px; color: var(--text-muted); margin-top: 2px; }
.notif-time  { font-size: 11px; color: var(--text-muted); margin-top: 3px; }

.topbar-avatar { width: 32px; height: 32px; background: var(--primary); border-radius: 50%; color: #fff; font-size: 13px; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.user-menu-btn { background: none; border: none; cursor: pointer; display: flex; align-items: center; gap: 6px; padding: 4px 8px; border-radius: 8px; }
.user-menu-btn:hover { background: var(--bg); }
.user-menu-btn svg { stroke: var(--text-muted); fill: none; stroke-width: 2; stroke-linecap: round; }
.user-dropdown { min-width: 200px; }
.user-dropdown-header { padding: 14px 16px; border-bottom: 1px solid var(--border); }
.ud-name { font-size: 13.5px; font-weight: 600; }
.ud-role { font-size: 12px; color: var(--text-muted); }
.ud-item { display: flex; align-items: center; gap: 9px; padding: 10px 16px; text-decoration: none; color: var(--text); font-size: 13px; transition: var(--transition); }
.ud-item:hover { background: var(--bg); }
.ud-item svg { stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; }
.ud-divider { height: 1px; background: var(--border); margin: 4px 0; }
.ud-logout { color: var(--danger); }

/* ─── PAGE CONTENT ─── */
.page-content { flex: 1; padding: 28px 28px 40px; }

/* ─── CARDS ─── */
.card {
  background: var(--white); border-radius: var(--radius);
  box-shadow: var(--shadow); border: 1px solid var(--border);
  overflow: hidden;
}
.card-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 22px 16px; border-bottom: 1px solid var(--border);
}
.card-title  { font-size: 15px; font-weight: 600; color: var(--text); }
.card-subtitle { font-size: 12.5px; color: var(--text-muted); margin-top: 2px; }
.card-body   { padding: 20px 22px; }
.card-footer { padding: 14px 22px; border-top: 1px solid var(--border); background: #fafbfc; }

/* ─── STAT CARDS ─── */
.stats-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px,1fr)); gap: 18px; margin-bottom: 24px; }
.stat-card {
  background: var(--white); border-radius: var(--radius);
  padding: 20px 22px; border: 1px solid var(--border);
  box-shadow: var(--shadow); display: flex; align-items: center; gap: 16px;
  transition: var(--transition);
}
.stat-card:hover { box-shadow: var(--shadow-md); transform: translateY(-1px); }
.stat-icon { width: 46px; height: 46px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 20px; flex-shrink: 0; }
.stat-icon.blue   { background: #dbeafe; color: var(--primary); }
.stat-icon.green  { background: #dcfce7; color: var(--success); }
.stat-icon.orange { background: #fef3c7; color: var(--warning); }
.stat-icon.red    { background: #fee2e2; color: var(--danger); }
.stat-icon.purple { background: #f3e8ff; color: #9333ea; }
.stat-icon.teal   { background: #ccfbf1; color: #0d9488; }
.stat-value { font-size: 22px; font-weight: 700; color: var(--text); line-height: 1.1; }
.stat-label { font-size: 12.5px; color: var(--text-muted); margin-top: 3px; }
.stat-change { font-size: 12px; margin-top: 4px; }
.stat-change.up   { color: var(--success); }
.stat-change.down { color: var(--danger); }

/* ─── GRID ─── */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.grid-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; }
.col-span-2 { grid-column: span 2; }
@media (max-width:900px) { .grid-2, .grid-3 { grid-template-columns: 1fr; } .col-span-2 { grid-column: span 1; } }

/* ─── TABLES ─── */
.table-wrapper { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
thead th {
  background: #f8fafc; color: var(--text-muted); font-weight: 600;
  font-size: 12px; text-transform: uppercase; letter-spacing: .4px;
  padding: 11px 16px; text-align: left; border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
tbody td { padding: 12px 16px; border-bottom: 1px solid #f1f5f9; color: var(--text); vertical-align: middle; }
tbody tr:last-child td { border-bottom: none; }
tbody tr:hover { background: #fafbff; }
.table-actions { display: flex; gap: 6px; align-items: center; justify-content: flex-end; }

/* ─── BADGES ─── */
.badge {
  display: inline-flex; align-items: center; padding: 3px 10px;
  border-radius: 999px; font-size: 12px; font-weight: 600; white-space: nowrap;
}
.badge-admin    { background: #1e40af; color: #fff; }
.badge-manager  { background: #1d4ed8; color: #fff; }
.badge-cashier  { background: #e2e8f0; color: #334155; }
.badge-delivery { background: #fef3c7; color: #92400e; }
.badge-active   { background: #dcfce7; color: #166534; }
.badge-inactive { background: #fee2e2; color: #991b1b; }
.badge-paid     { background: #dcfce7; color: #166534; }
.badge-partial  { background: #fef3c7; color: #92400e; }
.badge-unpaid   { background: #fee2e2; color: #991b1b; }
.badge-pending  { background: #e0f2fe; color: #075985; }
.badge-default  { background: #f1f5f9; color: #475569; }
.badge-lpg      { background: #f3e8ff; color: #7e22ce; }
.badge-warning  { background: #fef3c7; color: #92400e; }
.badge-danger   { background: #fee2e2; color: #991b1b; }
.badge-info     { background: #e0f2fe; color: #075985; }

/* ─── BUTTONS ─── */
.btn {
  display: inline-flex; align-items: center; gap: 7px; padding: 8px 16px;
  border-radius: 8px; font-size: 13.5px; font-weight: 500; cursor: pointer;
  border: 1px solid transparent; text-decoration: none; transition: var(--transition);
  white-space: nowrap; line-height: 1.4;
}
.btn:focus { outline: 2px solid var(--primary); outline-offset: 2px; }
.btn-primary { background: var(--primary); color: #fff; border-color: var(--primary); }
.btn-primary:hover { background: var(--primary-dark); border-color: var(--primary-dark); }
.btn-success { background: var(--success); color: #fff; border-color: var(--success); }
.btn-success:hover { background: #15803d; }
.btn-warning { background: var(--warning); color: #fff; border-color: var(--warning); }
.btn-danger  { background: var(--danger); color: #fff; border-color: var(--danger); }
.btn-danger:hover { background: #b91c1c; }
.btn-outline { background: transparent; color: var(--primary); border-color: var(--primary); }
.btn-outline:hover { background: #eff6ff; }
.btn-secondary { background: #f1f5f9; color: var(--text); border-color: var(--border); }
.btn-secondary:hover { background: #e2e8f0; }
.btn-sm { padding: 5px 11px; font-size: 12px; border-radius: 6px; }
.btn-xs { padding: 3px 8px; font-size: 11px; border-radius: 4px; }
.btn-icon { padding: 6px; border-radius: 6px; }
.btn svg { width: 15px; height: 15px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; }

/* ─── FORMS ─── */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-grid-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; }
@media (max-width:700px) { .form-grid, .form-grid-3 { grid-template-columns: 1fr; } }
.form-group { display: flex; flex-direction: column; gap: 5px; }
.form-group.full { grid-column: 1 / -1; }
label { font-size: 13px; font-weight: 500; color: var(--text); }
.form-control {
  width: 100%; padding: 8px 12px; border: 1px solid var(--border);
  border-radius: 8px; font-size: 13.5px; color: var(--text);
  background: var(--white); transition: var(--transition); outline: none;
  font-family: var(--font);
}
.form-control:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(37,99,235,.1); }
.form-control:disabled { background: #f8fafc; color: var(--text-muted); }
select.form-control { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%2364748b' stroke-width='1.5' fill='none'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 10px center; padding-right: 30px; }
textarea.form-control { resize: vertical; min-height: 90px; }
.form-hint { font-size: 11.5px; color: var(--text-muted); }
.form-error { font-size: 11.5px; color: var(--danger); }
.required-star { color: var(--danger); }

/* ─── PAGE HEADER ROW ─── */
.page-header { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 22px; gap: 12px; flex-wrap: wrap; }
.page-header-left h2 { font-size: 22px; font-weight: 700; color: var(--text); }
.page-header-left p  { font-size: 13px; color: var(--text-muted); margin-top: 3px; }
.page-header-actions { display: flex; gap: 8px; flex-wrap: wrap; }

/* ─── ALERTS ─── */
.alert {
  padding: 12px 18px; border-radius: var(--radius-sm); margin-bottom: 18px;
  font-size: 13.5px; display: flex; align-items: center; justify-content: space-between;
  gap: 12px; transition: opacity .3s;
}
.alert-success { background: #dcfce7; color: #166534; border-left: 4px solid #16a34a; }
.alert-error   { background: #fee2e2; color: #991b1b; border-left: 4px solid #dc2626; }
.alert-warning { background: #fef3c7; color: #92400e; border-left: 4px solid #d97706; }
.alert-info    { background: #e0f2fe; color: #075985; border-left: 4px solid #0891b2; }
.alert-close   { background: none; border: none; cursor: pointer; font-size: 18px; color: inherit; opacity: .6; flex-shrink: 0; }
.alert-close:hover { opacity: 1; }

/* ─── PAGINATION ─── */
.pagination { display: flex; gap: 6px; margin-top: 18px; justify-content: flex-end; flex-wrap: wrap; }
.page-btn { padding: 6px 12px; border: 1px solid var(--border); border-radius: 6px; color: var(--text); text-decoration: none; font-size: 13px; transition: var(--transition); }
.page-btn:hover { background: var(--primary); color: #fff; border-color: var(--primary); }
.page-btn.active { background: var(--primary); color: #fff; border-color: var(--primary); }

/* ─── TABS ─── */
.tabs { display: flex; gap: 2px; border-bottom: 2px solid var(--border); margin-bottom: 20px; }
.tab-btn { padding: 9px 18px; border: none; background: none; cursor: pointer; font-size: 13.5px; font-weight: 500; color: var(--text-muted); border-bottom: 2px solid transparent; margin-bottom: -2px; transition: var(--transition); }
.tab-btn:hover  { color: var(--primary); }
.tab-btn.active { color: var(--primary); border-bottom-color: var(--primary); }
.tab-pane { display: none; }
.tab-pane.active { display: block; }

/* ─── MODALS ─── */
.modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,.45); z-index: 300; display: flex; align-items: center; justify-content: center; padding: 20px; }
.modal { background: var(--white); border-radius: 14px; width: 100%; max-width: 560px; max-height: 90vh; overflow-y: auto; box-shadow: var(--shadow-lg); }
.modal-header { display: flex; align-items: center; justify-content: space-between; padding: 18px 22px; border-bottom: 1px solid var(--border); }
.modal-title  { font-size: 16px; font-weight: 600; }
.modal-close  { background: none; border: none; cursor: pointer; font-size: 20px; color: var(--text-muted); padding: 4px; border-radius: 4px; }
.modal-body   { padding: 22px; }
.modal-footer { padding: 14px 22px; border-top: 1px solid var(--border); display: flex; gap: 10px; justify-content: flex-end; }

/* ─── LOGIN PAGE ─── */
.login-page { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, #0f172a 0%, #1e293b 60%, #1e3a5f 100%); padding: 20px; }
.login-box { background: var(--white); border-radius: 18px; padding: 44px 40px; width: 100%; max-width: 420px; box-shadow: 0 24px 60px rgba(0,0,0,.3); }
.login-logo { text-align: center; margin-bottom: 28px; }
.login-logo-icon { font-size: 40px; display: block; margin-bottom: 8px; }
.login-logo h1 { font-size: 22px; font-weight: 700; color: var(--text); }
.login-logo p  { color: var(--text-muted); font-size: 13px; margin-top: 3px; }
.login-form { display: flex; flex-direction: column; gap: 16px; }
.login-form .form-group { gap: 6px; }
.login-form .form-control { padding: 11px 14px; }
.login-submit { padding: 12px; font-size: 15px; font-weight: 600; width: 100%; justify-content: center; border-radius: 10px; }
.login-footer { text-align: center; margin-top: 20px; font-size: 12.5px; color: var(--text-muted); }

/* ─── DASHBOARD ─── */
.chart-wrapper { position: relative; width: 100%; height: 240px; }
.chart-wrapper canvas { width: 100% !important; height: 100% !important; }
.quick-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 24px; }
.qa-btn { background: var(--white); border: 1px solid var(--border); border-radius: 10px; padding: 12px 16px; display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); font-size: 13px; font-weight: 500; transition: var(--transition); }
.qa-btn:hover { border-color: var(--primary); color: var(--primary); box-shadow: var(--shadow-md); }
.qa-icon { font-size: 18px; }

/* ─── FILTER BAR ─── */
.filter-bar { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 18px; align-items: flex-end; }
.filter-bar .form-control { min-width: 150px; }
.filter-bar .form-group { margin-bottom: 0; }

/* ─── EMPTY STATE ─── */
.empty-state { text-align: center; padding: 60px 20px; color: var(--text-muted); }
.empty-icon  { font-size: 48px; margin-bottom: 14px; }
.empty-state h3 { font-size: 17px; font-weight: 600; color: var(--text); margin-bottom: 6px; }
.empty-state p  { font-size: 13.5px; max-width: 360px; margin: 0 auto 20px; }

/* ─── BARCODE SCANNER ─── */
.barcode-input-wrapper { display: flex; gap: 10px; align-items: center; margin-bottom: 16px; }
.barcode-card { border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; background: var(--bg); }
.bc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 14px; }
.bc-grid label { display: block; font-size: 11px; text-transform: uppercase; color: var(--text-muted); font-weight: 600; letter-spacing: .4px; }
.bc-grid span  { font-size: 14px; font-weight: 600; color: var(--text); }

/* ─── RECEIPT PRINT ─── */
@media print {
  .sidebar, .topbar, .page-header-actions, .filter-bar, .btn, .alert { display: none !important; }
  .main-wrapper { margin: 0 !important; }
  .page-content { padding: 0 !important; }
  .card { box-shadow: none !important; border: 1px solid #ccc !important; }
}

/* ─── TOOLTIP ─── */
.tooltip { position: absolute; background: #1e293b; color: #fff; padding: 5px 10px; border-radius: 5px; font-size: 12px; pointer-events: none; z-index: 9999; white-space: nowrap; }

/* ─── RESPONSIVE ─── */
@media (max-width: 768px) {
  .sidebar { width: var(--sidebar-w-col); }
  .sidebar .brand-text, .sidebar .nav-item span, .sidebar-footer .user-info { display: none; }
  .sidebar .nav-item { justify-content: center; }
  .main-wrapper { margin-left: var(--sidebar-w-col); }
  .page-content { padding: 16px; }
  .stats-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .topbar-search input { width: 140px; }
  .topbar-search input:focus { width: 180px; }
}
@media (max-width: 480px) {
  .stats-grid { grid-template-columns: 1fr; }
  .topbar { padding: 0 12px; }
  .page-content { padding: 12px; }
  .login-box { padding: 28px 20px; }
}

/* ─── PROGRESS BAR ─── */
.progress { height: 8px; background: var(--border); border-radius: 999px; overflow: hidden; }
.progress-bar { height: 100%; border-radius: 999px; transition: width .5s; }
.progress-bar.blue   { background: var(--primary); }
.progress-bar.green  { background: var(--success); }
.progress-bar.orange { background: var(--warning); }
.progress-bar.red    { background: var(--danger); }

/* ─── SUMMARY ROW ─── */
.summary-table { margin-top: 16px; }
.summary-row   { display: flex; justify-content: space-between; padding: 6px 0; font-size: 13.5px; border-bottom: 1px solid var(--border); }
.summary-row:last-child { border: none; font-size: 15px; font-weight: 700; }
.summary-row .label { color: var(--text-muted); }
.summary-row .value { font-weight: 600; }
