/* =====================================================================
   DRW Aset — Design System
   Palet korporat: teal mendalam (nilai/aset) + netral + aksen emerald.
   ===================================================================== */
:root {
  --bg: #f4f6f8;
  --surface: #ffffff;
  --surface-2: #f9fbfc;
  --border: #e4e8ed;
  --border-strong: #d0d7de;
  --text: #16232b;
  --text-soft: #52616b;
  --text-mute: #869199;
  --primary: #0f766e;
  --primary-2: #13a394;
  --primary-soft: #dcf1ee;
  --accent: #0e9f76;
  --accent-soft: #e2f5ef;
  --warn: #c2820a;
  --warn-soft: #fbf1da;
  --danger: #cf3d54;
  --danger-soft: #fbe7ea;
  --info: #2f6fb0;
  --info-soft: #e4eefa;
  --shadow-sm: 0 1px 2px rgba(16, 40, 44, .06), 0 1px 3px rgba(16, 40, 44, .05);
  --shadow-md: 0 4px 16px rgba(16, 40, 44, .09);
  --shadow-lg: 0 18px 50px rgba(16, 40, 44, .22);
  --radius: 12px;
  --radius-sm: 8px;
  --sidebar-w: 258px;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-head: 'Plus Jakarta Sans', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0d1418; --surface: #14211f; --surface-2: #1a2a28; --border: #263834;
    --border-strong: #32473f; --text: #e7f0ed; --text-soft: #a2b3ad;
    --text-mute: #728079; --primary: #2fb8a8; --primary-2: #5ad9c8; --primary-soft: #10312c;
    --accent: #34c99b; --accent-soft: #16362e; --warn: #e0ad4b; --warn-soft: #362c15;
    --danger: #f0788c; --danger-soft: #38202a; --info: #6ba6dd; --info-soft: #16283c;
    --shadow-lg: 0 18px 50px rgba(0, 0, 0, .5);
  }
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0; font-family: var(--font); background: var(--bg); color: var(--text);
  font-size: 14px; line-height: 1.5; -webkit-font-smoothing: antialiased;
}
a { color: var(--primary-2); text-decoration: none; }
h1, h2, h3, h4 { margin: 0; font-family: var(--font-head); font-weight: 700; letter-spacing: -.02em; }
.ico { display: inline-flex; align-items: center; justify-content: center; width: 1.15em; font-size: 15px; line-height: 1; }
.k-ico .ico, .card-head .ico, .kan-h .ico { font-size: 15px; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 6px; }
::-webkit-scrollbar-track { background: transparent; }

/* ── Login ─────────────────────────────────────────────────────────── */
.login-wrap {
  min-height: 100vh; display: grid; place-items: center; padding: 24px;
  background: radial-gradient(1200px 600px at 15% -10%, rgba(19,163,148,.18), transparent 60%),
              radial-gradient(1000px 500px at 110% 110%, rgba(14,159,118,.14), transparent 55%), var(--bg);
}
.login-card {
  width: 100%; max-width: 400px; background: var(--surface); border: 1px solid var(--border);
  border-radius: 16px; box-shadow: var(--shadow-lg); padding: 36px 34px;
}
.login-card .brand { display: flex; align-items: center; gap: 12px; margin-bottom: 26px; }
.login-card h1 { font-size: 19px; }
.login-card .sub { color: var(--text-soft); font-size: 12.5px; margin-top: 2px; }

/* ── App shell ─────────────────────────────────────────────────────── */
.app { display: grid; grid-template-columns: var(--sidebar-w) 1fr; min-height: 100vh; }
.sidebar {
  background: var(--surface); border-right: 1px solid var(--border);
  display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh;
}
.sidebar .logo { display: flex; align-items: center; gap: 11px; padding: 20px 20px 18px; }
.logo-mark {
  width: 38px; height: 38px; border-radius: 11px; flex: 0 0 auto;
  background: linear-gradient(135deg, var(--primary), var(--primary-2)); color: #fff;
  display: grid; place-items: center; font-weight: 800; font-size: 15px; letter-spacing: -.02em;
  box-shadow: 0 4px 12px rgba(15,118,110,.35);
}
.logo-txt b { font-size: 15px; display: block; letter-spacing: -.01em; }
.logo-txt span { font-size: 11px; color: var(--text-mute); letter-spacing: .04em; text-transform: uppercase; }
.nav { flex: 1; overflow-y: auto; padding: 6px 12px 12px; }
.nav-group { margin-top: 14px; }
.nav-group > .lbl { font-size: 10.5px; text-transform: uppercase; letter-spacing: .07em; color: var(--text-mute); padding: 6px 10px; font-weight: 600; }
.nav a {
  display: flex; align-items: center; gap: 11px; padding: 9px 11px; border-radius: var(--radius-sm);
  color: var(--text-soft); font-weight: 500; font-size: 13.5px; margin-bottom: 1px; cursor: pointer;
  transition: background .12s, color .12s;
}
.nav a:hover { background: var(--surface-2); color: var(--text); }
.nav a.active { background: var(--primary-soft); color: var(--primary-2); font-weight: 600; }
.nav a .ico { width: 18px; height: 18px; flex: 0 0 auto; opacity: .85; }
.nav a .cnt { margin-left: auto; font-size: 11px; background: var(--border); color: var(--text-soft); padding: 1px 7px; border-radius: 20px; font-weight: 600; }
.nav a.active .cnt { background: var(--primary-2); color: #fff; }
.logo-brand { line-height: 0; flex: 0 0 auto; filter: drop-shadow(0 4px 10px rgba(15, 118, 110, .35)); border-radius: 11px; }
.logo-brand svg { border-radius: 11px; }
.sidebar .foot { padding: 12px 16px; border-top: 1px solid var(--border); font-size: 10.5px; color: var(--text-mute); line-height: 1.7; }
.sidebar .foot .ver { color: var(--text-soft); font-weight: 700; }

.main { display: flex; flex-direction: column; min-width: 0; }
.topbar {
  height: 62px; background: var(--surface); border-bottom: 1px solid var(--border);
  display: flex; align-items: center; gap: 16px; padding: 0 24px; position: sticky; top: 0; z-index: 20;
}
.topbar .page-title { font-size: 17px; font-weight: 660; }
.topbar .page-title small { display: block; font-size: 11.5px; color: var(--text-mute); font-weight: 500; }
.topbar .spacer { flex: 1; }
.user-chip { display: flex; align-items: center; gap: 10px; cursor: pointer; padding: 5px 8px; border-radius: 30px; }
.user-chip:hover { background: var(--surface-2); }
.avatar { width: 32px; height: 32px; border-radius: 50%; background: linear-gradient(135deg,var(--primary),var(--primary-2)); color:#fff; display: grid; place-items: center; font-weight: 700; font-size: 13px; object-fit: cover; }
.user-chip .meta b { font-size: 13px; display: block; line-height: 1.2; }
.user-chip .meta span { font-size: 11px; color: var(--text-mute); }

.content { padding: 24px; max-width: 1500px; width: 100%; }

/* ── Cards / KPI ───────────────────────────────────────────────────── */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.card-pad { padding: 18px 20px; }
.card-head { display: flex; align-items: center; gap: 12px; padding: 15px 20px; border-bottom: 1px solid var(--border); }
.card-head h3 { font-size: 14px; }
.card-head .spacer { flex: 1; }

.grid { display: grid; gap: 16px; }
.kpi-grid { grid-template-columns: repeat(auto-fit, minmax(178px, 1fr)); }
.kpi { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 15px 15px; box-shadow: var(--shadow-sm); position: relative; overflow: hidden; }
.kpi .k-ico { width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; margin-bottom: 11px; }
.kpi .k-val { font-size: 23px; font-weight: 720; letter-spacing: -.02em; line-height: 1.05; }
.kpi .k-lbl { font-size: 12.5px; color: var(--text-soft); margin-top: 5px; font-weight: 500; }
.kpi .k-sub { font-size: 11.5px; margin-top: 7px; font-weight: 600; }
.kpi.click { cursor: pointer; transition: transform .1s, box-shadow .12s; }
.kpi.click:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }

.dash-cols { display: grid; grid-template-columns: 1.5fr 1fr; gap: 16px; margin-top: 16px; }
@media (max-width: 1080px){ .dash-cols { grid-template-columns: 1fr; } }

/* ── Badges ────────────────────────────────────────────────────────── */
.badge { display: inline-flex; align-items: center; gap: 5px; font-size: 11.5px; font-weight: 600; padding: 2.5px 9px; border-radius: 20px; white-space: nowrap; }
.badge .dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.b-gray { background: var(--border); color: var(--text-soft); }
.b-primary { background: var(--primary-soft); color: var(--primary-2); }
.b-green { background: var(--accent-soft); color: var(--accent); }
.b-warn { background: var(--warn-soft); color: var(--warn); }
.b-danger { background: var(--danger-soft); color: var(--danger); }
.b-info { background: var(--info-soft); color: var(--info); }

/* ── Tables ────────────────────────────────────────────────────────── */
.tbl-wrap { overflow-x: auto; }
table.tbl { width: 100%; border-collapse: collapse; font-size: 13px; }
table.tbl th { text-align: left; font-size: 11px; text-transform: uppercase; letter-spacing: .04em; color: var(--text-mute); font-weight: 600; padding: 11px 16px; border-bottom: 1px solid var(--border); white-space: nowrap; background: var(--surface-2); }
table.tbl td { padding: 11px 16px; border-bottom: 1px solid var(--border); vertical-align: middle; }
table.tbl tbody tr { transition: background .1s; }
table.tbl tbody tr:hover { background: var(--surface-2); }
table.tbl tbody tr.rowlink { cursor: pointer; }
table.tbl td .strong { font-weight: 600; color: var(--text); }
table.tbl .muted { color: var(--text-mute); }
.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.empty { text-align: center; color: var(--text-mute); padding: 46px 20px; font-size: 13.5px; }
.empty .big { font-size: 30px; margin-bottom: 8px; opacity: .5; }

/* ── Controls ──────────────────────────────────────────────────────── */
.toolbar { display: flex; gap: 10px 12px; align-items: center; flex-wrap: wrap; margin-bottom: 16px; justify-content: space-between; }
.toolbar .spacer { flex: 1; }
.tb-group { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.tb-group.actions { justify-content: flex-end; }
.tb-date { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--text-mute); white-space: nowrap; }
@media (max-width: 900px) { .tb-group { flex: 1 1 100%; } .tb-group.actions { justify-content: flex-start; } }
input, select, textarea {
  font-family: inherit; font-size: 13.5px; color: var(--text); background: var(--surface);
  border: 1px solid var(--border-strong); border-radius: var(--radius-sm); padding: 8px 11px; outline: none; transition: border .12s, box-shadow .12s;
}
input:focus, select:focus, textarea:focus { border-color: var(--primary-2); box-shadow: 0 0 0 3px var(--primary-soft); }
textarea { resize: vertical; min-height: 74px; width: 100%; }
label.fld { display: block; margin-bottom: 13px; }
label.fld > .lbl { display: block; font-size: 12px; font-weight: 600; color: var(--text-soft); margin-bottom: 5px; }
label.fld > .lbl .req { color: var(--danger); }
label.fld input, label.fld select, label.fld textarea { width: 100%; }
label.fld .hint { display: block; font-size: 11px; color: var(--text-mute); margin-top: 4px; }
.search { position: relative; }
.search input { padding-left: 34px; min-width: 240px; }
.search svg { position: absolute; left: 10px; top: 50%; transform: translateY(-50%); color: var(--text-mute); }

.btn { display: inline-flex; align-items: center; gap: 7px; font-family: inherit; font-size: 13px; font-weight: 600; padding: 8px 15px; border-radius: var(--radius-sm); border: 1px solid transparent; cursor: pointer; transition: background .12s, box-shadow .12s, opacity .12s; white-space: nowrap; }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn-primary { background: var(--primary); color: #fff; box-shadow: 0 2px 8px rgba(15,118,110,.28); }
.btn-primary:hover:not(:disabled) { background: var(--primary-2); }
.btn-ghost { background: var(--surface); color: var(--text-soft); border-color: var(--border-strong); }
.btn-ghost:hover:not(:disabled) { background: var(--surface-2); color: var(--text); }
.btn-danger { background: var(--danger); color: #fff; }
.btn-danger:hover:not(:disabled) { filter: brightness(1.06); }
.btn-sm { padding: 5px 11px; font-size: 12px; }
.btn-block { width: 100%; justify-content: center; padding: 10px; }
.icon-btn { background: transparent; border: none; cursor: pointer; color: var(--text-mute); padding: 6px; border-radius: 6px; display: grid; place-items: center; }
.icon-btn:hover { background: var(--surface-2); color: var(--text); }

/* ── Modal / Drawer ────────────────────────────────────────────────── */
.overlay { position: fixed; inset: 0; background: rgba(12,20,24,.5); backdrop-filter: blur(2px); z-index: 100; display: flex; opacity: 0; transition: opacity .16s; }
.overlay.show { opacity: 1; }
.modal { margin: auto; background: var(--surface); border-radius: 15px; box-shadow: var(--shadow-lg); width: 100%; max-width: 560px; max-height: 92vh; display: flex; flex-direction: column; transform: translateY(8px); transition: transform .18s; }
.overlay.show .modal { transform: translateY(0); }
.drawer { margin: 0 0 0 auto; height: 100vh; max-height: 100vh; border-radius: 0; max-width: 760px; transform: translateX(20px); }
.overlay.show .drawer { transform: translateX(0); }
.modal-head { display: flex; align-items: center; gap: 12px; padding: 18px 22px; border-bottom: 1px solid var(--border); }
.modal-head h2 { font-size: 16px; }
.modal-head .sub { font-size: 12px; color: var(--text-mute); }
.modal-head .spacer { flex: 1; }
.modal-body { padding: 20px 22px; overflow-y: auto; flex: 1 1 auto; min-height: 0; }
.modal-foot { display: flex; gap: 10px; justify-content: flex-end; padding: 15px 22px; border-top: 1px solid var(--border); background: var(--surface-2); border-radius: 0 0 15px 15px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.form-row-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 0 16px; }
@media (max-width:640px){ .form-row, .form-row-3 { grid-template-columns: 1fr; } }

/* ── Detail drawer sections ────────────────────────────────────────── */
.dl { display: grid; grid-template-columns: 168px 1fr; gap: 0; }
.dl dt { font-size: 12px; color: var(--text-mute); padding: 8px 0; font-weight: 500; border-bottom: 1px solid var(--border); }
.dl dd { margin: 0; padding: 8px 0; font-size: 13.5px; border-bottom: 1px solid var(--border); }
.section-title { font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--text-mute); font-weight: 600; margin: 22px 0 10px; display: flex; align-items: center; gap: 8px; }
.section-title .spacer { flex: 1; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }

.tabs { display: flex; gap: 3px; border-bottom: 1px solid var(--border); margin-bottom: 4px; flex-wrap: wrap; }
.tabs button { background: none; border: none; font-family: inherit; font-size: 13px; font-weight: 600; color: var(--text-soft); padding: 10px 14px; cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tabs button.active { color: var(--primary-2); border-bottom-color: var(--primary-2); }

/* ── Charts (SVG minimal) ──────────────────────────────────────────── */
.bar-row { display: flex; align-items: center; gap: 12px; margin-bottom: 11px; }
.bar-row .bl { width: 150px; font-size: 12.5px; color: var(--text-soft); flex: 0 0 auto; text-align: right; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bar-row .bt { flex: 1; height: 22px; background: var(--surface-2); border-radius: 6px; overflow: hidden; }
.bar-row .bf { height: 100%; border-radius: 6px; background: linear-gradient(90deg, var(--primary), var(--primary-2)); display: flex; align-items: center; }
.bar-row .bv { width: 90px; text-align: right; font-size: 12.5px; font-weight: 700; flex: 0 0 auto; font-variant-numeric: tabular-nums; }

.donut-wrap { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.legend { display: flex; flex-direction: column; gap: 8px; font-size: 12.5px; min-width: 180px; }
.legend .li { display: flex; align-items: center; gap: 8px; }
.legend .sw { width: 11px; height: 11px; border-radius: 3px; flex: 0 0 auto; }
.legend .lv { margin-left: auto; font-weight: 700; padding-left: 14px; }

/* ── Toast ─────────────────────────────────────────────────────────── */
.toasts { position: fixed; bottom: 22px; right: 22px; z-index: 300; display: flex; flex-direction: column; gap: 10px; }
.toast { background: var(--text); color: #fff; padding: 12px 16px; border-radius: 10px; box-shadow: var(--shadow-lg); font-size: 13px; font-weight: 500; display: flex; align-items: center; gap: 10px; animation: slidein .2s ease; max-width: 340px; }
.toast.ok { background: #0e7a5a; } .toast.err { background: #b8354b; }
@keyframes slidein { from { transform: translateX(20px); opacity: 0; } }

.spin { width: 34px; height: 34px; border: 3px solid var(--border); border-top-color: var(--primary-2); border-radius: 50%; animation: sp 0.7s linear infinite; margin: 60px auto; }
@keyframes sp { to { transform: rotate(360deg); } }
.hidden { display: none !important; }
body.no-scroll { overflow: hidden; }

/* ── Logo koin/aset animasi ────────────────────────────────────────── */
.brand-atom { display: block; overflow: visible; }
.brand-atom .brand-spin { transform-box: fill-box; transform-origin: 50% 50%; animation: brand-rotate 12s linear infinite; }
.brand-atom .brand-nucleus { transform-box: fill-box; transform-origin: 50% 50%; animation: brand-pulse 2.8s ease-in-out infinite; }
@keyframes brand-rotate { to { transform: rotate(360deg); } }
@keyframes brand-pulse { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.12); opacity: .9; } }
@media (prefers-reduced-motion: reduce) {
  .brand-atom .brand-spin, .brand-atom .brand-nucleus { animation: none; }
}

.login-hero { display: grid; place-items: center; margin-bottom: 22px; }
.login-hero .halo {
  position: relative; border-radius: 24px;
  box-shadow: 0 14px 40px rgba(15, 118, 110, .45);
  animation: brand-float 5.5s ease-in-out infinite;
}
.login-hero .halo::before {
  content: ""; position: absolute; inset: -14px; border-radius: 32px; z-index: -1;
  background: radial-gradient(closest-side, rgba(19, 163, 148, .45), transparent 72%);
  animation: brand-glow 3.4s ease-in-out infinite;
}
@keyframes brand-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
@keyframes brand-glow { 0%, 100% { opacity: .55; transform: scale(1); } 50% { opacity: 1; transform: scale(1.12); } }
@media (prefers-reduced-motion: reduce) {
  .login-hero .halo, .login-hero .halo::before { animation: none; }
}
.login-foot { text-align: center; margin-top: 22px; padding-top: 16px; border-top: 1px solid var(--border); font-size: 11.5px; color: var(--text-mute); line-height: 1.7; }
.login-foot .ver { font-weight: 600; color: var(--text-soft); }
.hint { font-size: 12px; color: var(--text-mute); }
.regwarn { background: var(--warn-soft); border: 1px solid color-mix(in srgb, var(--warn) 30%, transparent); color: var(--warn); border-radius: var(--radius-sm); padding: 10px 13px; font-size: 12.5px; display: flex; gap: 9px; margin-bottom: 14px; }
.info-note { background: var(--info-soft); border: 1px solid color-mix(in srgb, var(--info) 25%, transparent); color: var(--info); border-radius: var(--radius-sm); padding: 10px 13px; font-size: 12.5px; display: flex; gap: 9px; margin-bottom: 14px; align-items: flex-start; }
.info-note .ico { margin-top: 2px; }

/* Barcode & label aset */
.barcode-box { display: inline-flex; flex-direction: column; align-items: center; gap: 4px; padding: 10px 14px; background: #fff; border: 1px solid var(--border); border-radius: 10px; }
.barcode-box svg { display: block; }
.barcode-box .bc-val { font-family: 'SF Mono', ui-monospace, Menlo, Consolas, monospace; font-size: 12px; letter-spacing: 2px; color: #111; }
.mono { font-family: ui-monospace, 'SF Mono', Menlo, Consolas, monospace; }

/* Chip pilihan (company multiselect) */
.pick { display: flex; flex-wrap: wrap; gap: 7px; }
.pick .opt { display: inline-flex; align-items: center; gap: 7px; padding: 6px 11px; border: 1px solid var(--border-strong); border-radius: 20px; cursor: pointer; font-size: 12.5px; font-weight: 500; user-select: none; transition: .12s; background: var(--surface); }
.pick .opt:hover { border-color: var(--primary-2); }
.pick .opt.on { background: var(--primary-soft); border-color: var(--primary-2); color: var(--primary-2); font-weight: 600; }
.pick .opt input { display: none; }

/* Hamburger (mobile) */
.hamburger { display: none; background: transparent; border: none; color: var(--text-soft); font-size: 20px; padding: 6px 10px; border-radius: 8px; cursor: pointer; }
.hamburger:hover { background: var(--surface-2); }
.sidebar-backdrop { display: none; position: fixed; inset: 0; background: rgba(12,20,24,.45); z-index: 39; opacity: 0; transition: opacity .2s; }
.sidebar-backdrop.show { opacity: 1; }

/* Pemilihan company (onboarding) */
.cpick { display: flex; flex-direction: column; gap: 6px; max-height: 40vh; overflow-y: auto; padding: 2px; }
.cpick-opt { display: flex; align-items: center; gap: 11px; padding: 8px 11px; border: 1px solid var(--border-strong); border-radius: 10px; background: var(--surface-2); color: var(--text); cursor: pointer; font-family: inherit; text-align: left; transition: .12s; }
.cpick-opt:hover { border-color: var(--primary-2); background: color-mix(in srgb, var(--primary) 10%, var(--surface-2)); }
.cpick-opt.on { border-color: var(--primary-2); background: var(--primary-soft); box-shadow: 0 0 0 2px var(--primary-2) inset; }
.cpick-opt .strong { color: var(--text); font-size: 13.5px; line-height: 1.25; }
.cpick-opt .hint { font-size: 11px; }
.cpick-ic { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 8px; background: var(--primary-soft); color: var(--primary-2); flex: 0 0 auto; font-size: 13px; }
.cpick-opt.on .cpick-ic { background: var(--primary); color: #fff; }
.cpick-check { color: var(--primary-2); width: 18px; flex: 0 0 auto; text-align: center; }

/* Scan barcode kamera */
.scan-video { width: 100%; border-radius: 12px; background: #000; aspect-ratio: 4/3; object-fit: cover; }

/* ── Responsive ─────────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .app { grid-template-columns: 1fr; }
  .sidebar {
    position: fixed; top: 0; left: 0; z-index: 40; width: 82vw; max-width: 300px; height: 100vh;
    transform: translateX(-100%); transition: transform .22s ease; box-shadow: var(--shadow-lg);
  }
  .sidebar.open { transform: translateX(0); }
  .hamburger { display: inline-flex; align-items: center; }
  .content { padding: 16px; }
  .topbar { padding: 0 14px; gap: 10px; }
  .topbar .page-title { font-size: 15.5px; }
  .kpi-grid { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
  .kpi .k-val { font-size: 21px; }
  .drawer, .modal { max-width: 100% !important; }
  .drawer { width: 100vw; }
  .dl { grid-template-columns: 118px 1fr; }
  .bar-row .bl { width: 96px; }
  .toolbar > .search input { min-width: 0; }
  .toolbar .search { flex: 1 1 100%; }
  .user-chip .meta { display: none; }
}
@media (max-width: 560px) {
  .kpi-grid { grid-template-columns: 1fr 1fr; }
  .content { padding: 12px; }
  .modal-body, .modal-head, .modal-foot { padding-left: 16px; padding-right: 16px; }
  .dl { grid-template-columns: 1fr; }
  .dl dt { padding-bottom: 0; border-bottom: none; }
  .dl dd { padding-top: 2px; }
  .form-row, .form-row-3 { grid-template-columns: 1fr; }
  .modal-foot { flex-wrap: wrap; }
}
