/* Tampilan dashboard Pengeluaran Harian Kurma Group */
/* Dasar */
html, body { margin: 0; padding: 0; }
img { max-width: 100%; }
[hidden] { display: none !important; }

/* Layout: fixed navigation rail on the left (brand, primary action, grouped menu), one working column on the right.
   Each page leads with its summary, then the detail. Quiet surfaces; colour is spent on data and state. */
:root {
  --bg: #f3f5f2;
  --surface: #fcfdfb;
  --surface-2: #ecf0ea;
  --ink: #121613;
  --ink-2: #47504a;
  --muted: #737d75;
  --line: #dde3dc;
  --line-strong: #c2cbc2;
  --accent: #17694a;
  --accent-ink: #ffffff;
  --accent-soft: #dfeee6;
  --series-1: #2a78d6;
  --series-2: #eb6834;
  --track: #e6ebe5;
  --warn-ink: #7a4f00;
  --warn-bg: #fdefc9;
  --warn-mark: #fab219;
  --crit-ink: #a52828;
  --crit-bg: #fbe3e1;
  --good-ink: #0b6b0b;
  --good-bg: #dff3df;
  --done-row: #f1f8f0;
  --shadow: 0 1px 2px rgba(18, 22, 19, .06);
  --font-ui: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-num: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0e110f; --surface: #181b19; --surface-2: #222723; --ink: #f2f5f1; --ink-2: #c3cac2;
    --muted: #8d968e; --line: #2b302c; --line-strong: #3c433d; --accent: #4fc294; --accent-ink: #06231a;
    --accent-soft: #17332a; --series-1: #3987e5; --series-2: #d95926; --track: #262b27;
    --warn-ink: #fbc34d; --warn-bg: #382b08; --warn-mark: #fab219; --crit-ink: #f29a98; --crit-bg: #3b1716;
    --good-ink: #4fd04f; --good-bg: #12301a; --done-row: #161f18; --shadow: 0 1px 2px rgba(0, 0, 0, .4);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0e110f; --surface: #181b19; --surface-2: #222723; --ink: #f2f5f1; --ink-2: #c3cac2;
  --muted: #8d968e; --line: #2b302c; --line-strong: #3c433d; --accent: #4fc294; --accent-ink: #06231a;
  --accent-soft: #17332a; --series-1: #3987e5; --series-2: #d95926; --track: #262b27;
  --warn-ink: #fbc34d; --warn-bg: #382b08; --warn-mark: #fab219; --crit-ink: #f29a98; --crit-bg: #3b1716;
  --good-ink: #4fd04f; --good-bg: #12301a; --done-row: #161f18; --shadow: 0 1px 2px rgba(0, 0, 0, .4);
  color-scheme: dark;
}

* { box-sizing: border-box; }
body { background: var(--bg); color: var(--ink); font-family: var(--font-ui); font-size: 14px; line-height: 1.5; }
h1, h2, h3, p, ul { margin: 0; }
h1, h2, h3 { text-wrap: balance; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.num { font-family: var(--font-num); font-variant-numeric: tabular-nums; letter-spacing: -.01em; }

/* Shell */
.app { display: grid; grid-template-columns: 236px minmax(0, 1fr); align-items: start; }
.side { position: sticky; top: env(safe-area-inset-top, 0px); height: 100vh; height: 100dvh; overflow-y: auto; background: var(--surface); border-right: 1px solid var(--line); padding: 22px 14px 20px; display: flex; flex-direction: column; gap: 18px; }
.brand { padding-inline: 8px; }
.eyebrow { font-size: 10.5px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--accent); }
h1 { font-size: 20px; font-weight: 800; letter-spacing: -.02em; line-height: 1.2; }
.nav { display: flex; flex-direction: column; gap: 2px; }
.nav-h { font-size: 10.5px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--muted); padding: 12px 10px 4px; }
.nav-item { display: flex; align-items: center; gap: 10px; border: 0; background: none; padding: 8px 10px; border-radius: 8px; font-weight: 600; color: var(--ink-2); cursor: pointer; text-align: left; width: 100%; }
.nav-item svg { width: 16px; height: 16px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.nav-item:hover { background: var(--surface-2); color: var(--ink); }
.nav-item[aria-current="page"] { background: var(--accent-soft); color: var(--accent); }
.nav-item .badge { margin-left: auto; font-family: var(--font-num); font-size: 11.5px; font-weight: 500; color: var(--muted); }
.nav-item .badge.todo { background: var(--warn-bg); color: var(--warn-ink); border-radius: 999px; padding: 0 7px; }
.readonly-note { font-size: 12px; color: var(--muted); padding-inline: 10px; }
.content { padding-inline: clamp(16px, 3vw, 32px); padding-block: 24px 72px; display: flex; flex-direction: column; gap: 20px; max-width: 1200px; min-width: 0; }
.page-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 14px 20px; }
.page-head h2 { font-size: clamp(22px, 3vw, 28px); font-weight: 800; letter-spacing: -.02em; line-height: 1.15; }
.page-head .lead { color: var(--ink-2); font-size: 13px; max-width: 62ch; margin-top: 4px; }

.btn { border: 1px solid var(--line-strong); background: var(--surface); border-radius: 8px; padding: 8px 14px; font-weight: 600; cursor: pointer; }
.btn:hover { border-color: var(--ink-2); }
.btn-primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); padding: 10px 16px; }
.btn-primary:hover { filter: brightness(1.08); border-color: var(--accent); }
.btn-danger { color: var(--crit-ink); border-color: var(--crit-ink); background: transparent; }
.btn-ghost { border-color: transparent; background: transparent; color: var(--accent); padding-inline: 6px; }
.btn-sm { padding: 4px 10px; font-size: 12.5px; }
.btn[disabled], .row-btn[disabled] { opacity: .5; cursor: default; }

/* Filters */
.filters { display: flex; flex-wrap: wrap; gap: 12px 16px; align-items: flex-end; }
.field { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.field > label, .field > .lbl { font-size: 12px; font-weight: 600; color: var(--ink-2); }
select, input[type="text"], input[type="date"], input[type="search"], textarea {
  background: var(--surface); border: 1px solid var(--line-strong); border-radius: 8px; padding: 8px 10px; min-height: 38px; max-width: 100%; width: 100%;
}
.filters select { width: auto; min-width: 160px; }

/* Panels */
.panel { display: flex; flex-direction: column; gap: 20px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 18px 20px; display: flex; flex-direction: column; gap: 14px; min-width: 0; box-shadow: var(--shadow); }
.card-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 12px; }
.card h3.ch { font-size: 15px; font-weight: 700; }
.card .sub { font-size: 12.5px; color: var(--muted); }
.empty { color: var(--muted); padding: 20px 0; }

/* KPI strip */
.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); overflow: hidden; }
.kpis.k3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.kpi { padding: 16px 20px; display: flex; flex-direction: column; gap: 4px; min-width: 0; border-left: 1px solid var(--line); }
.kpi:first-child { border-left: 0; }
.kpi .k-label { font-size: 12px; font-weight: 600; color: var(--ink-2); }
.kpi .k-val { font-size: clamp(18px, 2vw, 24px); font-weight: 800; letter-spacing: -.02em; line-height: 1.2; overflow-wrap: anywhere; }
.kpi .k-ctx { font-size: 12.5px; color: var(--muted); }
.k-link { align-self: flex-start; border: 0; background: none; padding: 0; color: var(--accent); font-weight: 600; font-size: 12.5px; cursor: pointer; text-decoration: underline; text-underline-offset: 2px; }
.meter { height: 8px; background: var(--track); border-radius: 4px; overflow: hidden; margin-block: 4px 2px; }
.meter span { display: block; height: 100%; background: var(--accent); border-radius: 4px; }

/* Pills */
.pill { display: inline-flex; align-items: center; gap: 5px; border-radius: 999px; padding: 2px 9px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.pill-reim { background: var(--accent-soft); color: var(--accent); }
.pill-non { background: var(--surface-2); color: var(--ink-2); }
.pill-ok { background: var(--good-bg); color: var(--good-ink); }
.pill-ok::before { content: ""; width: 8px; height: 4px; border-left: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(-45deg) translate(1px, -1px); }
.pill-warn { background: var(--warn-bg); color: var(--warn-ink); }
.pill-warn::before { content: "!"; display: inline-grid; place-items: center; width: 14px; height: 14px; border-radius: 50%; background: var(--warn-mark); color: #3a2800; font-size: 10px; font-weight: 800; }
button.pill { border: 0; cursor: pointer; font-family: inherit; align-self: flex-start; margin-top: 4px; }

/* Daily chart */
.chart { position: relative; width: 100%; }
.chart svg { display: block; width: 100%; height: auto; touch-action: pan-y; }
.chart .grid { stroke: var(--line); stroke-width: 1; }
.chart .axis { stroke: var(--line-strong); stroke-width: 1; }
.chart text { fill: var(--muted); font-family: var(--font-num); font-size: 11px; }
.chart text.peak { fill: var(--ink); font-weight: 500; }
.chart .bar { fill: var(--series-1); }
.chart .bar.dim { opacity: .45; }
.chart .hoverband { fill: var(--ink); opacity: 0; }
.chart .hoverband.on { opacity: .06; }
.tip { position: absolute; top: 0; left: 0; pointer-events: none; background: var(--ink); color: var(--bg); border-radius: 8px; padding: 8px 10px; font-size: 12px; line-height: 1.45; max-width: 240px; z-index: 2; box-shadow: 0 4px 14px rgba(0,0,0,.18); }
.tip b { display: block; font-size: 13px; }

/* Horizontal bars */
.hbars { display: flex; flex-direction: column; gap: 2px; }
.hbar { display: grid; grid-template-columns: minmax(0, 150px) minmax(60px, 1fr) 150px; align-items: center; gap: 12px; padding: 6px 8px; margin-inline: -8px; border: 0; background: none; border-radius: 8px; text-align: left; cursor: pointer; width: calc(100% + 16px); }
.hbar:hover { background: var(--surface-2); }
.hbar-label { font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hbar-track { height: 10px; background: var(--track); border-radius: 0 4px 4px 0; overflow: hidden; }
.hbar-fill { display: block; height: 100%; background: var(--series-1); border-radius: 0 4px 4px 0; }
.hbar-val { font-family: var(--font-num); font-variant-numeric: tabular-nums; font-size: 12.5px; text-align: right; white-space: nowrap; }
.hbar-val small { color: var(--muted); font-size: 11.5px; margin-left: 6px; display: inline-block; min-width: 30px; text-align: right; }
.group-head { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; padding-top: 12px; margin-top: 6px; border-top: 1px solid var(--line); }
.group-head:first-child { border-top: 0; padding-top: 0; margin-top: 0; }
.group-head h4 { margin: 0; font-size: 12px; text-transform: uppercase; letter-spacing: .07em; color: var(--ink-2); font-weight: 700; }
.group-head .num { font-size: 12.5px; color: var(--ink-2); }

/* Split bar */
.split { display: flex; gap: 2px; height: 22px; }
.split span { display: block; min-width: 3px; }
.split .s1 { background: var(--series-1); border-radius: 4px 0 0 4px; }
.split .s2 { background: var(--series-2); border-radius: 0 4px 4px 0; }
.legend { display: flex; flex-wrap: wrap; gap: 10px 28px; }
.legend-item { display: grid; grid-template-columns: 12px auto; column-gap: 8px; align-items: center; }
.legend-item i { width: 12px; height: 12px; border-radius: 3px; }
.legend-item .l-name { font-weight: 600; }
.legend-item .l-val { grid-column: 2; font-size: 12.5px; color: var(--ink-2); }

/* Tables */
.table-scroll { overflow-x: auto; margin-inline: -20px; padding-inline: 20px; }
table { border-collapse: collapse; width: 100%; font-size: 13px; }
th { text-align: left; font-size: 11.5px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 700; padding: 8px 10px; border-bottom: 1px solid var(--line-strong); white-space: nowrap; vertical-align: bottom; }
td { padding: 9px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
th.r, td.r { text-align: right; }
th.c, td.c { text-align: center; }
td.num, td .num { font-size: 12.5px; }
tr:last-child td { border-bottom: 0; }
tfoot td { border-top: 1px solid var(--line-strong); font-weight: 700; }
td.nowrap { white-space: nowrap; }
.t-main { font-weight: 500; }
.t-sub { color: var(--muted); font-size: 12px; }
.t-sub a { color: var(--accent); }
.tx-table td.c-ket { min-width: 220px; }
.tx-table td.c-br { display: none; }
.row-btn { border: 1px solid var(--line-strong); background: var(--surface); border-radius: 6px; padding: 3px 9px; font-size: 12px; font-weight: 600; cursor: pointer; }
.row-btn:not([disabled]):hover { border-color: var(--accent); color: var(--accent); }
.th-btn { border: 0; background: none; padding: 0; color: var(--accent); font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; cursor: pointer; text-decoration: underline; text-underline-offset: 2px; }
tr.clickable { cursor: pointer; }
tr.clickable:hover td { background: var(--surface-2); }
.mini-track { display: inline-block; width: 90px; height: 8px; background: var(--track); border-radius: 0 4px 4px 0; vertical-align: middle; margin-right: 8px; overflow: hidden; }
.mini-track span { display: block; height: 100%; background: var(--series-1); border-radius: 0 4px 4px 0; }
.tx-filters { display: grid; grid-template-columns: minmax(180px, 2fr) repeat(3, minmax(130px, 1fr)) auto; gap: 12px; align-items: end; }
.tx-filters.pg { grid-template-columns: minmax(180px, 2fr) repeat(3, minmax(130px, 1fr)); }
.check { display: flex; align-items: center; gap: 8px; min-height: 38px; font-weight: 500; white-space: nowrap; }
.check input, .ck input { width: 17px; height: 17px; accent-color: var(--accent); margin: 0; }
.table-foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; font-size: 12.5px; color: var(--ink-2); }
.ck { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-width: 34px; min-height: 30px; cursor: pointer; border-radius: 6px; }
.ck:hover { background: var(--surface-2); }
.ck span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.na { color: var(--muted); }
tr.is-done td { background: var(--done-row); }
.confirm-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; background: var(--accent-soft); color: var(--ink); border-radius: 8px; padding: 10px 12px; font-size: 13px; }

/* Master data */
.seg { display: flex; flex-wrap: wrap; gap: 6px; }
.seg button { border: 1px solid var(--line-strong); background: var(--surface); border-radius: 999px; padding: 6px 13px; font-weight: 600; cursor: pointer; color: var(--ink-2); }
.seg button[aria-selected="true"] { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.seg .cnt { font-family: var(--font-num); font-size: 11.5px; margin-left: 5px; opacity: .75; }
.m-add { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; padding: 12px; background: var(--surface-2); border-radius: 10px; }
.m-add .field { flex: 1 1 200px; }
.m-list { list-style: none; padding: 0; display: flex; flex-direction: column; }
.m-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding: 10px 2px; border-bottom: 1px solid var(--line); }
.m-row:last-child { border-bottom: 0; }
.m-name { font-weight: 600; flex: 1 1 180px; min-width: 0; overflow-wrap: anywhere; }
.m-use { font-size: 12.5px; color: var(--muted); white-space: nowrap; }
.m-actions { display: flex; gap: 6px; margin-left: auto; }
.m-edit { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; flex: 1 1 100%; }
.m-edit input { flex: 1 1 200px; width: auto; }
.m-edit select { flex: 0 1 200px; width: auto; }
.m-note { flex: 1 1 100%; font-size: 12.5px; color: var(--warn-ink); background: var(--warn-bg); border-radius: 6px; padding: 6px 10px; }
.m-hint { flex: 1 1 100%; font-size: 12px; color: var(--muted); }
.m-group { font-size: 11.5px; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); font-weight: 700; padding: 14px 2px 4px; }

/* Export */
.exp-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.exp-list { padding-left: 18px; color: var(--ink-2); display: flex; flex-direction: column; gap: 4px; max-width: 70ch; }
.copy-area { width: 100%; min-height: 140px; font-family: var(--font-num); font-size: 12px; white-space: pre; }

/* State screens */
.state { background: var(--surface); border: 1px dashed var(--line-strong); border-radius: 12px; padding: 40px 24px; text-align: center; color: var(--ink-2); display: flex; flex-direction: column; gap: 6px; align-items: center; }
.state b { font-size: 16px; color: var(--ink); }

/* Dialog form */
dialog { border: 1px solid var(--line); border-radius: 14px; background: var(--surface); color: var(--ink); padding: 0; width: min(680px, calc(100vw - 24px)); max-height: calc(100vh - 24px); }
dialog::backdrop { background: rgba(10, 14, 11, .5); }
.dlg-form { display: flex; flex-direction: column; max-height: calc(100vh - 26px); }
.dlg-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.dlg-head h2 { font-size: 17px; font-weight: 800; letter-spacing: -.01em; }
.dlg-body { padding: 18px 20px; overflow-y: auto; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 16px; }
.dlg-body .full { grid-column: 1 / -1; }
.dlg-foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; padding: 14px 20px; border-top: 1px solid var(--line); }
.dlg-foot .right { display: flex; gap: 10px; margin-left: auto; }
.hint { font-size: 12px; color: var(--muted); }
.notice { background: var(--warn-bg); color: var(--warn-ink); border-radius: 8px; padding: 10px 12px; font-size: 13px; }
.err { background: var(--crit-bg); color: var(--crit-ink); border-radius: 8px; padding: 10px 12px; font-size: 13px; }
.radio-row { display: flex; gap: 8px; flex-wrap: wrap; }
.radio-row label { display: flex; align-items: center; gap: 8px; border: 1px solid var(--line-strong); border-radius: 8px; padding: 8px 12px; cursor: pointer; font-weight: 500; }
.radio-row input { accent-color: var(--accent); }
.radio-row label:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.x-btn { border: 0; background: none; font-size: 22px; line-height: 1; cursor: pointer; color: var(--ink-2); padding: 4px 8px; border-radius: 6px; }
#toast { position: fixed; left: 50%; bottom: calc(20px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); background: var(--ink); color: var(--bg); padding: 10px 16px; border-radius: 999px; font-weight: 600; font-size: 13px; z-index: 50; box-shadow: 0 6px 20px rgba(0,0,0,.25); max-width: calc(100vw - 32px); text-align: center; }

@media (max-width: 1080px) {
  .kpis:not(.k3) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kpis:not(.k3) .kpi:nth-child(3) { border-left: 0; }
  .kpis:not(.k3) .kpi:nth-child(n+3) { border-top: 1px solid var(--line); }
  .grid-2 { grid-template-columns: minmax(0, 1fr); }
  .tx-filters, .tx-filters.pg { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tx-filters .field:first-child { grid-column: 1 / -1; }
}
@media (max-width: 860px) {
  .app { display: block; }
  .side { position: static; height: auto; overflow: visible; border-right: 0; border-bottom: 1px solid var(--line); padding: 14px 16px 0; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 10px 12px; }
  .brand { padding: 0; }
  h1 { font-size: 18px; }
  .nav { grid-column: 1 / -1; flex-direction: row; overflow-x: auto; scrollbar-width: none; margin-inline: -16px; padding-inline: 8px; gap: 0; }
  .nav-h { display: none; }
  .nav-item { width: auto; white-space: nowrap; border-radius: 0; border-bottom: 2px solid transparent; padding: 10px 10px; gap: 6px; }
  .nav-item[aria-current="page"] { background: none; border-bottom-color: var(--accent); }
  .nav-item svg { display: none; }
  .nav-item .badge { margin-left: 0; }
  .readonly-note { grid-column: 1 / -1; padding: 0 0 10px; }
  .content { padding-block: 18px 72px; }
}
@media (max-width: 640px) {
  .kpis.k3 { grid-template-columns: minmax(0, 1fr); }
  .kpis.k3 .kpi { border-left: 0; border-top: 1px solid var(--line); }
  .kpis.k3 .kpi:first-child { border-top: 0; }
  .tx-table thead { display: none; }
  .tx-table, .tx-table tbody { display: block; }
  .tx-table tr { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; padding: 12px 0; border-bottom: 1px solid var(--line); }
  .tx-table tr:last-child { border-bottom: 0; }
  .tx-table td, .tx-table tr.is-done td { display: block; padding: 0; border: 0; background: none; }
  .tx-table td.c-ket { order: 1; flex: 1 1 calc(100% - 116px); min-width: 0; }
  .tx-table td.c-jml { order: 2; flex: 0 0 auto; min-width: 104px; text-align: right; font-weight: 500; align-self: flex-start; }
  .tx-table td.c-meta { order: 3; font-size: 12px; color: var(--ink-2); white-space: nowrap; }
  .tx-table td.c-meta:not(:empty)::after { content: "\00b7"; margin-left: 6px; color: var(--muted); }
  .tx-table td.c-br { display: block; order: 4; flex-basis: 100%; height: 0; }
  .tx-table td.c-ck { order: 5; }
  .tx-table td.c-ck.none { display: none; }
  .tx-table td.c-st { order: 6; }
  .tx-table td.c-st.last { margin-left: auto; }
  .tx-table td.c-act { order: 7; margin-left: auto; }
  .tx-table .ck { border: 1px solid var(--line-strong); padding: 4px 10px; margin-top: 4px; }
  .tx-table .ck span { position: static; width: auto; height: auto; clip-path: none; font-size: 12px; font-weight: 600; }
}
@media (max-width: 520px) {
  .card { padding: 16px; }
  .table-scroll { margin-inline: -16px; padding-inline: 16px; }
  .kpi { padding: 14px 16px; }
  .hbar { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "label val" "track track"; row-gap: 5px; }
  .hbar-label { grid-area: label; } .hbar-val { grid-area: val; } .hbar-track { grid-area: track; }
  .dlg-body { grid-template-columns: minmax(0, 1fr); }
  .filters .field { flex: 1 1 140px; } .filters select { width: 100%; min-width: 0; }
}
@media (prefers-reduced-motion: no-preference) { .hbar-fill, .mini-track span, .meter span { transition: width .25s ease; } }

/* Menu akun di sisi kiri (versi hosting) */
a.nav-item { text-decoration: none; }
.nav-akun { margin-top: auto; border-top: 1px solid var(--line); padding-top: 8px; }
.nav-akun form { margin: 0; }
.nav-akun .nav-h { text-transform: none; letter-spacing: 0; font-size: 12px; overflow-wrap: anywhere; }
@media (max-width: 860px) {
  .nav-akun { margin-top: 0; border-top: 0; padding-top: 0; border-bottom: 1px solid var(--line); }
  .side .nav + .nav-akun { margin-top: -10px; }
}
