@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');
/* POS Awalah v2 — Global CSS */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Bebas+Neue&display=swap');

:root {
  /* Colors */
  --accent:    #f97316;
  --accent2:   #0ea5e9;
  --success:   #22c55e;
  --danger:    #ef4444;
  --warn:      #f59e0b;
  --purple:    #8b5cf6;
  /* Dark mode (default) */
  --bg:        #0f172a;
  --bg2:       #0d1526;
  --surface:   #1e293b;
  --surface2:  #273548;
  --surface3:  #2f3f56;
  --border:    rgba(255,255,255,.07);
  --border2:   rgba(255,255,255,.12);
  --text:      #f1f5f9;
  --text2:     #cbd5e1;
  --muted:     #64748b;
  /* Layout */
  --sb-w:      240px;
  --tb-h:      58px;
  --radius:    12px;
  --radius-lg: 16px;
  --shadow:    0 4px 24px rgba(0,0,0,.25);
  --shadow-lg: 0 8px 40px rgba(0,0,0,.35);
  --fn:        'Plus Jakarta Sans', sans-serif;
  --fd:        'Bebas Neue', sans-serif;
}

[data-theme="light"] {
  --bg:       #f6f8fb;
  --bg2:      #eef1f6;
  --surface:  #ffffff;
  --surface2: #f4f6f9;
  --surface3: #e9edf2;
  --border:   rgba(15,23,42,.08);
  --border2:  rgba(15,23,42,.14);
  --text:     #0f172a;
  --text2:    #3f4a5e;
  --muted:    #6b7688;
  --shadow:    0 2px 10px rgba(15,23,42,.06);
  --shadow-lg: 0 10px 32px rgba(15,23,42,.10);
}
[data-theme="light"] .topbar,
[data-theme="light"] .sidebar { box-shadow: 0 1px 0 rgba(15,23,42,.04); }
[data-theme="light"] .kpi:hover,
[data-theme="light"] .card:hover { box-shadow: var(--shadow-lg); }
[data-theme="light"] .tb-search input,
[data-theme="light"] .search-input input,
[data-theme="light"] .filter-select,
[data-theme="light"] .field input,
[data-theme="light"] .field select,
[data-theme="light"] .field textarea { background: #fff; }
[data-theme="light"] .tbl thead th { background: var(--surface2); }
[data-theme="light"] .modal-overlay,
[data-theme="light"] .pos-modal-ov { background: rgba(15,23,42,.45); }

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; height: 100%; }
body { font-family: var(--fn); background: var(--bg); color: var(--text); height: 100%; display: flex; font-size: 14px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
button { font-family: var(--fn); }

/* ═══════════════════════════════════════
   SIDEBAR
═══════════════════════════════════════ */
.sidebar {
  width: var(--sb-w);
  flex-shrink: 0;
  background: var(--surface);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0; left: 0; bottom: 0;
  z-index: 500;
  overflow: hidden;
  transition: width .28s cubic-bezier(.4,0,.2,1), transform .28s cubic-bezier(.4,0,.2,1);
}
.sidebar.collapsed { width: 64px; }

.sb-header {
  height: var(--tb-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.sb-brand { font-family: var(--fd); font-size: 1.2rem; letter-spacing: 2px; color: var(--accent); white-space: nowrap; overflow: hidden; transition: opacity .2s; }
.sb-brand span { color: var(--text); }
.sidebar.collapsed .sb-brand { opacity: 0; pointer-events: none; }
.sb-toggle { background: none; border: none; color: var(--muted); cursor: pointer; padding: 6px; border-radius: 8px; display: flex; align-items: center; justify-content: center; transition: all .18s; flex-shrink: 0; }
.sb-toggle:hover { background: rgba(255,255,255,.06); color: var(--accent); }

.sb-scroll { flex: 1; overflow-y: auto; overflow-x: hidden; padding: 10px 8px; scrollbar-width: thin; scrollbar-color: rgba(255,255,255,.1) transparent; }
.sb-scroll::-webkit-scrollbar { width: 4px; }
.sb-scroll::-webkit-scrollbar-thumb { background: rgba(255,255,255,.1); border-radius: 4px; }

.sb-section { font-size: .6rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1.5px; color: rgba(148,163,184,.35); padding: 12px 10px 4px; white-space: nowrap; overflow: hidden; transition: opacity .2s; }
.sidebar.collapsed .sb-section { opacity: 0; height: 8px; padding: 0; }

.sb-item {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 10px; border-radius: 9px;
  color: var(--muted); font-size: .83rem; font-weight: 500;
  cursor: pointer; transition: all .15s;
  white-space: nowrap; overflow: hidden;
  border: none; background: none; width: 100%; text-align: left;
  position: relative;
}
.sb-item:hover { background: rgba(255,255,255,.06); color: rgba(255,255,255,.8); }
.sb-item.active { background: var(--bg); color: #2563eb; font-weight: 600; border-radius: 8px 0 0 8px; margin-right: -8px; padding-right: 17px; }
.sb-item.active::before { content: ''; position: absolute; right: 0; top: -14px; width: 14px; height: 14px; background: transparent; border-bottom-right-radius: 14px; box-shadow: 5px 5px 0 5px var(--bg); pointer-events: none; }
.sb-item.active::after { content: ''; position: absolute; right: 0; bottom: -14px; width: 14px; height: 14px; background: transparent; border-top-right-radius: 14px; box-shadow: 5px -5px 0 5px var(--bg); pointer-events: none; }
.sidebar.collapsed .sb-item.active { border-radius: 8px; margin-right: 0; padding-right: 10px; }
.sidebar.collapsed .sb-item.active::before, .sidebar.collapsed .sb-item.active::after { display: none; }
.sb-item svg, .sb-item .sb-ico { flex-shrink: 0; width: 18px; height: 18px; display: flex; align-items: center; justify-content: center; }
.sb-item-txt { transition: opacity .2s, max-width .28s; max-width: 180px; overflow: hidden; text-overflow: ellipsis; }
.sb-badge { margin-left: auto; background: var(--danger); color: #fff; font-size: .6rem; font-weight: 700; padding: 1px 6px; border-radius: 10px; flex-shrink: 0; }
.sidebar.collapsed .sb-item { justify-content: center; padding: 10px; }
.sidebar.collapsed .sb-item-txt, .sidebar.collapsed .sb-badge { opacity: 0; max-width: 0; pointer-events: none; }
.sidebar.collapsed .sb-item.active::before { display: none; }
.sidebar.collapsed .sb-item:hover::after { content: attr(data-tooltip); position: absolute; left: calc(100% + 8px); top: 50%; transform: translateY(-50%); background: var(--surface3); color: var(--text); font-size: .76rem; padding: 5px 10px; border-radius: 8px; white-space: nowrap; z-index: 999; pointer-events: none; border: 1px solid var(--border2); }

.sb-footer { border-top: 1px solid var(--border); padding: 8px; flex-shrink: 0; }
.sb-user { display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 10px; transition: background .15s; overflow: hidden; }
.sb-user:hover { background: rgba(255,255,255,.04); }
.sb-avatar { width: 34px; height: 34px; border-radius: 50%; background: linear-gradient(135deg, var(--accent), #fbbf24); display: flex; align-items: center; justify-content: center; font-family: var(--fd); font-size: .82rem; color: #fff; flex-shrink: 0; }
.sb-user-info { overflow: hidden; flex: 1; min-width: 0; }
.sb-user-name { font-size: .82rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sb-user-role { font-size: .68rem; color: var(--muted); }
.sb-user-actions { transition: opacity .2s; }
.sidebar.collapsed .sb-user-info, .sidebar.collapsed .sb-user-actions { opacity: 0; max-width: 0; pointer-events: none; }

/* ═══════════════════════════════════════
   TOPBAR
═══════════════════════════════════════ */
.topbar {
  position: fixed; top: 0; left: var(--sb-w); right: 0;
  height: var(--tb-h); z-index: 400;
  background: var(--surface); border-bottom: 1px solid var(--border);
  display: flex; align-items: center; padding: 0 20px; gap: 12px;
  transition: left .28s cubic-bezier(.4,0,.2,1);
  backdrop-filter: blur(10px);
}
body.sb-collapsed .topbar { left: 64px; }

.tb-ham { display: none; background: none; border: none; color: var(--text); cursor: pointer; padding: 6px; border-radius: 8px; }
.tb-ham:hover { background: rgba(255,255,255,.06); }
.tb-search { flex: 1; max-width: 400px; position: relative; }
.tb-search input { width: 100%; padding: 8px 14px 8px 36px; border-radius: 10px; border: 1px solid var(--border); background: var(--surface2); color: var(--text); font-size: .82rem; outline: none; transition: all .2s; font-family: var(--fn); }
.tb-search input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(249,115,22,.1); }
.tb-search-ico { position: absolute; left: 10px; top: 50%; transform: translateY(-50%); color: var(--muted); font-size: .85rem; }
.tb-right { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.tb-icon-btn { width: 36px; height: 36px; border-radius: 9px; border: 1px solid var(--border); background: var(--surface2); cursor: pointer; display: flex; align-items: center; justify-content: center; color: var(--muted); transition: all .18s; position: relative; }
.tb-icon-btn:hover { border-color: var(--accent); color: var(--accent); }
.tb-notif-dot { position: absolute; top: 6px; right: 6px; width: 7px; height: 7px; border-radius: 50%; background: var(--danger); border: 1px solid var(--surface); }
.tb-store { display: flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 9px; background: var(--surface2); border: 1px solid var(--border); font-size: .78rem; font-weight: 600; color: var(--text2); cursor: pointer; transition: all .18s; }
.tb-store:hover { border-color: var(--accent); color: var(--accent); }
.tb-store-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--success); }

/* ═══════════════════════════════════════
   MAIN LAYOUT
═══════════════════════════════════════ */
.main-wrap { flex: 1; margin-left: var(--sb-w); display: flex; flex-direction: column; min-width: 0; transition: margin-left .28s cubic-bezier(.4,0,.2,1); overflow: hidden; }
body.sb-collapsed .main-wrap { margin-left: 64px; }
.main { margin-top: var(--tb-h); flex: 1; overflow-y: auto; overflow-x: hidden; padding: 24px; min-height: calc(100vh - var(--tb-h)); }
.main::-webkit-scrollbar { width: 5px; }
.main::-webkit-scrollbar-thumb { background: rgba(255,255,255,.1); border-radius: 3px; }

/* ═══════════════════════════════════════
   PAGE HEADER
═══════════════════════════════════════ */
.page-header { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 24px; flex-wrap: wrap; gap: 12px; }
.page-title { font-family: var(--fd); font-size: 1.8rem; letter-spacing: 2px; line-height: 1; color: var(--text); }
.page-sub { font-size: .76rem; color: var(--muted); margin-top: 4px; }
.page-actions { display: flex; gap: 8px; flex-wrap: wrap; }

/* ═══════════════════════════════════════
   BUTTONS
═══════════════════════════════════════ */
.btn { display: inline-flex; align-items: center; gap: 7px; padding: 9px 18px; border-radius: 10px; font-size: .82rem; font-weight: 600; border: none; cursor: pointer; transition: all .2s; font-family: var(--fn); line-height: 1; }
.btn:active { transform: scale(.97); }
.btn-primary   { background: var(--accent); color: #fff; }
.btn-primary:hover { background: #ea6b0a; transform: translateY(-1px); box-shadow: 0 6px 20px rgba(249,115,22,.4); }
.btn-secondary { background: var(--surface2); color: var(--text2); border: 1px solid var(--border); }
.btn-secondary:hover { border-color: var(--accent); color: var(--accent); }
.btn-success   { background: var(--success); color: #fff; }
.btn-success:hover { background: #16a34a; }
.btn-danger    { background: rgba(239,68,68,.12); color: var(--danger); border: 1px solid rgba(239,68,68,.25); }
.btn-danger:hover { background: rgba(239,68,68,.22); }
.btn-ghost     { background: transparent; color: var(--muted); border: 1px solid var(--border); }
.btn-ghost:hover { background: rgba(255,255,255,.05); color: var(--text); }
.btn-sm   { padding: 6px 13px; font-size: .76rem; border-radius: 8px; }
.btn-lg   { padding: 12px 24px; font-size: .9rem; }
.btn-icon { padding: 8px; border-radius: 9px; }

/* ═══════════════════════════════════════
   CARDS
═══════════════════════════════════════ */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; }
.card-header { padding: 16px 20px; border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; }
.card-title { font-size: .86rem; font-weight: 700; color: var(--text); display: flex; align-items: center; gap: 8px; }
.card-body { padding: 20px; }
.card-footer { padding: 14px 20px; border-top: 1px solid var(--border); }

/* ═══════════════════════════════════════
   KPI CARDS
═══════════════════════════════════════ */
.kpi-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 14px; margin-bottom: 20px; }
.kpi { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 18px; position: relative; overflow: hidden; transition: all .22s; cursor: default; }
.kpi:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: var(--border2); }
.kpi-icon { width: 40px; height: 40px; border-radius: 11px; display: flex; align-items: center; justify-content: center; margin-bottom: 12px; font-size: 1.1rem; }
.kpi-label { font-size: .71rem; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .5px; margin-bottom: 5px; }
.kpi-value { font-family: var(--fd); font-size: 1.75rem; letter-spacing: 1px; line-height: 1; color: var(--text); }
.kpi-sub { font-size: .72rem; color: var(--muted); margin-top: 5px; }
.kpi-trend { font-size: .72rem; font-weight: 700; margin-top: 4px; }
.kpi-trend.up { color: var(--success); }
.kpi-trend.down { color: var(--danger); }
.kpi-trend.neutral { color: var(--muted); }
.kpi-bar { position: absolute; bottom: 0; left: 0; right: 0; height: 3px; border-radius: 0 0 var(--radius-lg) var(--radius-lg); }

/* ═══════════════════════════════════════
   TABLE
═══════════════════════════════════════ */
.tbl-wrap { overflow-x: auto; }
.tbl { width: 100%; border-collapse: collapse; font-size: .8rem; }
.tbl thead th { padding: 11px 14px; text-align: left; font-size: .66rem; text-transform: uppercase; letter-spacing: .6px; color: var(--muted); border-bottom: 1px solid var(--border); font-weight: 700; white-space: nowrap; background: var(--surface2); }
.tbl thead th:first-child { border-radius: 8px 0 0 0; }
.tbl thead th:last-child  { border-radius: 0 8px 0 0; }
.tbl tbody td { padding: 12px 14px; border-bottom: 1px solid rgba(255,255,255,.03); vertical-align: middle; }
.tbl tbody tr:last-child td { border-bottom: none; }
.tbl tbody tr { transition: background .12s; }
.tbl tbody tr:hover td { background: rgba(255,255,255,.02); }

/* ═══════════════════════════════════════
   BADGES
═══════════════════════════════════════ */
.badge { display: inline-flex; align-items: center; gap: 4px; padding: 3px 9px; border-radius: 20px; font-size: .66rem; font-weight: 700; white-space: nowrap; }
.badge-green  { background: rgba(34,197,94,.12);  color: #22c55e; }
.badge-red    { background: rgba(239,68,68,.12);   color: #ef4444; }
.badge-yellow { background: rgba(245,158,11,.12);  color: #f59e0b; }
.badge-blue   { background: rgba(14,165,233,.12);  color: #0ea5e9; }
.badge-purple { background: rgba(139,92,246,.12);  color: #8b5cf6; }
.badge-gray   { background: rgba(148,163,184,.1);  color: #94a3b8; }
.badge-orange { background: rgba(249,115,22,.12);  color: #f97316; }

/* ═══════════════════════════════════════
   ALERTS
═══════════════════════════════════════ */
.alert { border-radius: 10px; padding: 12px 16px; font-size: .82rem; font-weight: 600; margin-bottom: 18px; display: flex; align-items: center; gap: 9px; }
.alert-success { background: rgba(34,197,94,.1);  border: 1px solid rgba(34,197,94,.25);  color: #22c55e; }
.alert-error   { background: rgba(239,68,68,.1);   border: 1px solid rgba(239,68,68,.25);  color: #ef4444; }
.alert-warning { background: rgba(245,158,11,.1);  border: 1px solid rgba(245,158,11,.25); color: #f59e0b; }
.alert-info    { background: rgba(14,165,233,.1);  border: 1px solid rgba(14,165,233,.25); color: #0ea5e9; }

/* ═══════════════════════════════════════
   FORMS
═══════════════════════════════════════ */
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.field label { font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .6px; color: var(--muted); }
.field input, .field select, .field textarea {
  padding: 10px 14px; border-radius: 10px;
  border: 1px solid var(--border); background: var(--surface2);
  color: var(--text); font-size: .85rem; outline: none;
  transition: all .2s; font-family: var(--fn); width: 100%;
}
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--accent); box-shadow: 0 0 0 3px rgba(249,115,22,.1);
  background: var(--surface);
}
.field input::placeholder, .field textarea::placeholder { color: var(--muted); }
.field-hint { font-size: .7rem; color: var(--muted); margin-top: 2px; }
.field-error { font-size: .7rem; color: var(--danger); margin-top: 2px; }
.grid-2f { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.grid-3f { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 14px; }

/* ═══════════════════════════════════════
   MODAL
═══════════════════════════════════════ */
.modal-overlay {
  position: fixed; inset: 0; z-index: 9000;
  background: rgba(0,0,0,.72); backdrop-filter: blur(6px);
  display: none; align-items: center; justify-content: center; padding: 20px;
}
.modal-overlay.open { display: flex; }
.modal {
  background: var(--surface); border: 1px solid var(--border2);
  border-radius: var(--radius-lg); padding: 28px;
  width: 100%; max-width: 520px; max-height: 92vh; overflow-y: auto;
  position: relative; animation: modalIn .22s cubic-bezier(.34,1.56,.64,1);
}
.modal-lg { max-width: 760px; }
.modal-sm { max-width: 380px; }
@keyframes modalIn { from { transform: scale(.9); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.modal-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 22px; }
.modal-title { font-family: var(--fd); font-size: 1.3rem; letter-spacing: 2px; }
.modal-close {
  width: 32px; height: 32px; border-radius: 9px;
  background: rgba(255,255,255,.06); border: 1px solid var(--border);
  cursor: pointer; color: var(--muted); display: flex; align-items: center;
  justify-content: center; transition: all .18s; font-size: 1rem;
}
.modal-close:hover { background: rgba(239,68,68,.12); color: var(--danger); border-color: rgba(239,68,68,.3); }

/* ═══════════════════════════════════════
   EMPTY STATE
═══════════════════════════════════════ */
.empty-state { text-align: center; padding: 56px 20px; color: var(--muted); }
.empty-state .empty-icon { font-size: 3rem; margin-bottom: 16px; opacity: .28; display: block; }
.empty-state h3 { font-size: .95rem; font-weight: 700; color: var(--text2); margin-bottom: 6px; }
.empty-state p { font-size: .82rem; margin-bottom: 16px; }

/* ═══════════════════════════════════════
   GRID LAYOUTS
═══════════════════════════════════════ */
.grid-1 { display: grid; grid-template-columns: 1fr; gap: 16px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.grid-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; }
.grid-4 { display: grid; grid-template-columns: repeat(4,1fr); gap: 16px; }

/* ═══════════════════════════════════════
   SEARCH & FILTERS
═══════════════════════════════════════ */
.filters-bar { display: flex; gap: 10px; margin-bottom: 18px; flex-wrap: wrap; align-items: center; }
.search-input { position: relative; flex: 1; min-width: 200px; }
.search-input input { width: 100%; padding: 9px 14px 9px 38px; border-radius: 10px; border: 1px solid var(--border); background: var(--surface2); color: var(--text); font-size: .82rem; outline: none; transition: all .2s; font-family: var(--fn); }
.search-input input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(249,115,22,.1); }
.search-input-ico { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.filter-select { padding: 9px 14px; border-radius: 10px; border: 1px solid var(--border); background: var(--surface2); color: var(--text); font-size: .82rem; outline: none; font-family: var(--fn); cursor: pointer; }
.filter-select:focus { border-color: var(--accent); }

/* ═══════════════════════════════════════
   PAGINATION
═══════════════════════════════════════ */
.pagination { display: flex; gap: 5px; justify-content: center; margin-top: 20px; flex-wrap: wrap; }
.pag-btn { padding: 7px 13px; border-radius: 8px; border: 1px solid var(--border); background: var(--surface2); color: var(--muted); font-size: .78rem; font-weight: 600; cursor: pointer; transition: all .15s; text-decoration: none; display: inline-flex; align-items: center; }
.pag-btn:hover { border-color: var(--accent); color: var(--accent); }
.pag-btn.active { background: var(--accent); color: #fff; border-color: var(--accent); }
.pag-btn:disabled { opacity: .4; cursor: not-allowed; }

/* ═══════════════════════════════════════
   TOAST NOTIFICATIONS
═══════════════════════════════════════ */
.toast-container { position: fixed; bottom: 24px; right: 24px; z-index: 9999; display: flex; flex-direction: column; gap: 10px; pointer-events: none; }
.toast { background: var(--surface); border: 1px solid var(--border2); border-radius: 12px; padding: 14px 18px; font-size: .82rem; font-weight: 600; display: flex; align-items: center; gap: 10px; box-shadow: var(--shadow-lg); animation: toastIn .3s cubic-bezier(.34,1.56,.64,1); pointer-events: all; min-width: 240px; }
@keyframes toastIn { from { transform: translateX(100%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }
.toast-success { border-left: 4px solid var(--success); }
.toast-error   { border-left: 4px solid var(--danger); }
.toast-warning { border-left: 4px solid var(--warn); }
.toast-info    { border-left: 4px solid var(--accent2); }

/* ═══════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════ */
@media (max-width: 1200px) { .kpi-grid { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 900px) {
  .sidebar { transform: translateX(-100%); width: var(--sb-w) !important; }
  .sidebar.mobile-open { transform: translateX(0); }
  .main-wrap { margin-left: 0 !important; }
  .topbar { left: 0 !important; }
  .tb-ham { display: flex; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr 1fr; }
  .kpi-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .grid-2, .grid-3, .grid-4, .kpi-grid { grid-template-columns: 1fr; }
  .main { padding: 16px; }
  .modal { padding: 20px; }
  .page-header { flex-direction: column; align-items: flex-start; }
}
/* ── OVERLAY MOBILE ── */
.sb-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,.5); z-index: 499; }
.sb-overlay.show { display: block; }
