:root {
  --ink: #1F1B3A;
  --ink-2: #635F82;
  --ink-3: #8B87A8;
  --indigo: #4F46E5;
  --violet: #8B5CF6;
  --line: rgba(79, 70, 229, .12);
  --glass: rgba(255, 255, 255, .58);
  --glass-strong: rgba(255, 255, 255, .78);
  --shadow: 0 18px 45px -22px rgba(41, 32, 92, .38);
  --radius: 18px;
}

* { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

body {
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  color: var(--ink);
  background: #F3F0FF;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  font-size: 14.5px;
  line-height: 1.5;
}

.bg-orb { position: fixed; border-radius: 50%; filter: blur(80px); opacity: .55; pointer-events: none; z-index: 0; }
.orb-a { width: 520px; height: 520px; background: #C7BCFF; top: -180px; left: -140px; }
.orb-b { width: 460px; height: 460px; background: #FBCFF3; bottom: -160px; right: -120px; opacity: .45; }
.orb-c { width: 380px; height: 380px; background: #BFE2FF; top: 40%; right: 18%; opacity: .35; }

a { color: var(--indigo); text-decoration: none; }
a:hover { text-decoration: none; }

h1, h2, h3, h4 { margin: 0; letter-spacing: -.02em; }
h1 { font-size: 24px; font-weight: 700; }
h2 { font-size: 17px; font-weight: 650; }
h3 { font-size: 15px; font-weight: 600; }

/* ---------- Shell ---------- */
.shell { position: relative; z-index: 1; display: flex; gap: 22px; padding: 22px; max-width: 1560px; margin: 0 auto; align-items: flex-start; }

.sidebar {
  width: 252px; flex: 0 0 252px; position: sticky; top: 22px;
  height: calc(100vh - 44px);
  display: flex; flex-direction: column; gap: 14px;
  padding: 20px 14px;
  background: var(--glass);
  border: 1px solid rgba(255, 255, 255, .75);
  border-radius: 22px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
}

.brand { display: flex; align-items: center; gap: 12px; padding: 4px 6px 14px; border-bottom: 1px solid var(--line); color: var(--ink); }
.brand-mark {
  width: 40px; height: 40px; flex: 0 0 40px; display: grid; place-items: center;
  border-radius: 12px; background: linear-gradient(135deg, var(--indigo), var(--violet));
  color: #fff; overflow: hidden; box-shadow: 0 10px 22px -10px rgba(79, 70, 229, .8);
}
.brand-mark img { width: 100%; height: 100%; object-fit: contain; padding: 4px; background: #fff; }
.brand-text { display: flex; flex-direction: column; min-width: 0; }.brand-text strong { font-size: 14.5px; font-weight: 650; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.brand-text small { color: var(--ink-3); font-size: 11.5px; letter-spacing: .02em; }

.nav { display: flex; flex-direction: column; gap: 3px; overflow-y: auto; flex: 1; padding-right: 2px; }
.nav-group {
  font-size: 10.2px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase;
  color: var(--ink-3); padding: 12px 13px 4px;
}
.nav-group:first-child { padding-top: 2px; }
.nav-item {
  display: flex; align-items: center; gap: 11px; padding: 8.5px 13px; border-radius: 11px;
  color: var(--ink-2); font-weight: 500; font-size: 13.6px;
  transition: background .16s, color .16s;
}
.nav-item svg { flex: 0 0 18px; opacity: .8; }
.nav-item:hover { background: rgba(255, 255, 255, .65); color: var(--ink); }
.nav-item.active {
  background: linear-gradient(135deg, var(--indigo), var(--violet));
  color: #fff; box-shadow: 0 12px 24px -14px rgba(79, 70, 229, .9);
}
.nav-item.active svg { opacity: 1; }

.sidebar-foot { margin-top: auto; display: flex; flex-direction: column; gap: 12px; padding-top: 12px; border-top: 1px solid var(--line); }
.who { display: flex; align-items: center; gap: 10px; min-width: 0; }
.who > span { display: flex; flex-direction: column; min-width: 0; }
.who strong { font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.who small { font-size: 11.5px; color: var(--ink-3); }
.avatar {
  width: 34px; height: 34px; flex: 0 0 34px; border-radius: 50%; display: grid; place-items: center;
  background: linear-gradient(135deg, #EDE9FE, #F5F3FF); color: var(--indigo);
  font-weight: 700; font-size: 13px; border: 1px solid rgba(79, 70, 229, .16);
}

.main { flex: 1; min-width: 0; padding-bottom: 40px; }

.topbar { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; margin-bottom: 22px; padding: 4px 2px; flex-wrap: wrap; }
.subtitle { margin: 5px 0 0; color: var(--ink-2); font-size: 13.5px; }
.topbar-actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }

/* ---------- Cards ---------- */
.card {
  background: var(--glass);
  border: 1px solid rgba(255, 255, 255, .75);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  padding: 22px;
}
.card + .card { margin-top: 22px; }
.card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; margin-bottom: 18px; flex-wrap: wrap; }
.card-head p { margin: 4px 0 0; color: var(--ink-2); font-size: 12.8px; }

.grid-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(215px, 1fr)); gap: 18px; margin-bottom: 22px; }
.stat { padding: 20px; display: flex; flex-direction: column; gap: 8px; }
.stat .label { font-size: 12.5px; color: var(--ink-2); font-weight: 500; display: flex; align-items: center; gap: 7px; }
.stat .value { font-size: 23px; font-weight: 700; letter-spacing: -.03em; }
.stat .hint { font-size: 12px; color: var(--ink-3); }
.stat .icon {
  width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center;
  background: linear-gradient(135deg, rgba(255,255,255,.25), rgba(255,255,255,.18)); color: #fff;
}
.stat.accent { background: linear-gradient(135deg, var(--indigo), var(--violet)); color: #fff; border-color: transparent; }
.stat.accent .label, .stat.accent .hint { color: rgba(255,255,255,.82); }
.stat.accent .icon { background: rgba(255,255,255,.2); color: #fff; }

.grid-2 { display: grid; grid-template-columns: 1.35fr 1fr; gap: 22px; align-items: start; }
.grid-2-even { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; align-items: start; }
.grid-2 > .card + .card, .grid-2-even > .card + .card { margin-top: 0; }
.grid-form { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.col-span-2 { grid-column: 1 / -1; }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; margin: 0 -6px; padding: 0 6px; }
table.data { width: 100%; border-collapse: collapse; font-size: 13.6px; }
table.data th {
  text-align: left; font-weight: 600; font-size: 11.4px; letter-spacing: .05em; text-transform: uppercase;
  color: var(--ink-3); padding: 0 12px 10px; border-bottom: 1px solid var(--line); white-space: nowrap;
}
table.data td { padding: 12px; border-bottom: 1px solid rgba(79,70,229,.07); vertical-align: middle; }
table.data tbody tr:last-child td { border-bottom: none; }
table.data tbody tr:hover { background: rgba(255,255,255,.5); }
table.data .num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
table.data .name { font-weight: 600; }
table.data .muted { color: var(--ink-2); }
table.data tfoot td { padding: 12px; font-weight: 600; border-top: 1px solid var(--line); }
table.data tfoot .num { font-variant-numeric: tabular-nums; }
.empty { text-align: center; padding: 42px 16px; color: var(--ink-2); }
.empty svg { opacity: .35; margin-bottom: 12px; }

/* ---------- Laporan (spec table) ---------- */
.report-table td, .report-table th { padding: 8px 12px; font-size: 13.3px; }
.report-table tbody tr:hover { background: transparent; }
.report-table .row-section td {
  background: rgba(79,70,229,.07); font-weight: 700; font-size: 11.6px; letter-spacing: .06em;
  text-transform: uppercase; color: var(--indigo); padding: 9px 12px; border-bottom: none;
}
.report-table .row-sub td { font-size: 12.6px; color: var(--ink-2); font-style: italic; padding: 6px 12px; }
.report-table .row-total td { font-weight: 700; border-top: 1px solid rgba(79,70,229,.22); background: rgba(255,255,255,.35); }
.report-table .row-grand td {
  font-weight: 700; font-size: 14px; background: rgba(79,70,229,.09);
  border-top: 1px solid rgba(79,70,229,.25);
}
.report-table .row-spacer td { padding: 6px; border: none; }
.report-table .row-note td { color: var(--ink-3); font-size: 12.4px; font-style: italic; border: none; padding-top: 10px; }
.report-table .row-warn td { color: #B91C1C; font-size: 12.6px; font-weight: 500; background: rgba(239,68,68,.08); border-radius: 8px; }

/* ---------- Badges ---------- */
.badge {
  display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px; border-radius: 999px;
  font-size: 11.2px; font-weight: 600; letter-spacing: .01em; white-space: nowrap;
}
.badge::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge-paid { background: rgba(16,185,129,.13); color: #047857; }
.badge-unpaid { background: rgba(245,158,11,.15); color: #B45309; }
.badge-draft { background: rgba(100,116,139,.14); color: #475569; }
.badge-overdue { background: rgba(239,68,68,.13); color: #B91C1C; }
.badge-soft { background: rgba(79,70,229,.1); color: var(--indigo); }
.badge-soft::before { display: none; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 16px; border-radius: 11px; border: 1px solid transparent;
  font-family: inherit; font-size: 13.5px; font-weight: 600; cursor: pointer;
  background: linear-gradient(135deg, var(--indigo), var(--violet)); color: #fff;
  box-shadow: 0 12px 24px -16px rgba(79,70,229,.95);
  transition: transform .14s, box-shadow .14s, background .14s, color .14s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 16px 28px -16px rgba(79,70,229,.9); }
.btn:active { transform: translateY(0); }
.btn svg { flex: 0 0 auto; }
.btn-ghost { background: rgba(255,255,255,.7); color: var(--ink); border-color: rgba(79,70,229,.16); box-shadow: none; }
.btn-ghost:hover { background: #fff; box-shadow: 0 10px 20px -16px rgba(41,32,92,.5); }
.btn-danger { background: rgba(239,68,68,.1); color: #B91C1C; border-color: rgba(239,68,68,.22); box-shadow: none; }
.btn-danger:hover { background: rgba(239,68,68,.16); box-shadow: none; }
.btn-success { background: rgba(16,185,129,.12); color: #047857; border-color: rgba(16,185,129,.25); box-shadow: none; }
.btn-sm { padding: 7px 12px; font-size: 12.5px; border-radius: 9px; }
.btn-icon { padding: 7px; border-radius: 9px; }
.btn-block { width: 100%; }
.btn:disabled { opacity: .55; cursor: not-allowed; transform: none; }

.link-quiet { color: var(--ink-2); font-weight: 500; font-size: 13px; background: none; border: none; padding: 0; cursor: pointer; font-family: inherit; }
.link-quiet:hover { color: var(--indigo); }
.link-quiet.danger { color: #B91C1C; }
.link-quiet.danger:hover { color: #991B1B; }

/* ---------- Forms ---------- */
.field { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.field label { font-size: 12.5px; font-weight: 600; color: var(--ink-2); }
.field .help { font-size: 11.8px; color: var(--ink-3); }
input[type=text], input[type=email], input[type=password], input[type=number], input[type=date], input[type=tel], input[type=url], select, textarea {
  font-family: inherit; font-size: 13.8px; color: var(--ink);
  background: rgba(255,255,255,.82);
  border: 1px solid rgba(79,70,229,.16);
  border-radius: 11px;
  padding: 10px 12px;
  width: 100%;
  transition: border-color .15s, box-shadow .15s, background .15s;
}
input:focus, select:focus, textarea:focus {
  outline: none; border-color: rgba(79,70,229,.55); background: #fff;
  box-shadow: 0 0 0 4px rgba(79,70,229,.11);
}
textarea { resize: vertical; min-height: 84px; line-height: 1.55; }
select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23635F82' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 32px; }
input[type=number] { font-variant-numeric: tabular-nums; }
.form-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 24px; flex-wrap: wrap; }
.inline-form { display: inline; }
.check-row { display: flex; align-items: center; gap: 10px; font-size: 13.4px; font-weight: 500; color: var(--ink); }
.check-row input { width: auto; margin: 0; }

.filters { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.filters input, .filters select { width: auto; min-width: 140px; }
.filters input[type=date] { min-width: 150px; }

.chip-row { display: flex; gap: 8px; flex-wrap: wrap; }
.chip {
  padding: 7px 14px; border-radius: 999px; font-size: 12.8px; font-weight: 600;
  background: rgba(255,255,255,.7); color: var(--ink-2); border: 1px solid rgba(79,70,229,.14);
  display: inline-block;
}
.chip:hover { color: var(--ink); background: #fff; }
.chip.active { background: linear-gradient(135deg, var(--indigo), var(--violet)); color: #fff; border-color: transparent; }

.segmented { display: inline-flex; gap: 4px; padding: 4px; background: rgba(255,255,255,.65); border: 1px solid rgba(79,70,229,.14); border-radius: 13px; }
.seg { display: inline-flex; align-items: center; cursor: pointer; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg span { padding: 8px 18px; border-radius: 10px; font-size: 13.2px; font-weight: 600; color: var(--ink-2); }
.seg.active span { background: linear-gradient(135deg, var(--indigo), var(--violet)); color: #fff; box-shadow: 0 10px 20px -14px rgba(79,70,229,.9); }

.report-filter { display: flex; flex-direction: column; gap: 12px; margin-bottom: 4px; }
.inline-details summary { cursor: pointer; font-size: 12.5px; color: var(--ink-2); font-weight: 500; width: fit-content; }
.inline-details summary:hover { color: var(--indigo); }

/* ---------- Flash ---------- */
.flash { padding: 13px 16px; border-radius: 13px; margin-bottom: 18px; font-size: 13.5px; font-weight: 500; border: 1px solid transparent; }
.flash-ok { background: rgba(16,185,129,.12); color: #046C4E; border-color: rgba(16,185,129,.22); }
.flash-err { background: rgba(239,68,68,.1); color: #991B1B; border-color: rgba(239,68,68,.22); }

/* ---------- Editor jurnal ---------- */
.items-table { width: 100%; border-collapse: collapse; }
.items-table th { font-size: 11.5px; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-3); text-align: left; padding: 0 8px 9px; font-weight: 600; }
.items-table td { padding: 6px 8px; vertical-align: top; }
.items-table input, .items-table select { padding: 9px 10px; font-size: 13.4px; }
.journal-table .col-amount { width: 165px; }
.journal-table .col-del { width: 46px; }
.journal-table .amount-input { text-align: right; font-variant-numeric: tabular-nums; }
.journal-foot { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; flex-wrap: wrap; margin-top: 16px; }
.totals { margin-left: auto; width: 100%; max-width: 360px; display: flex; flex-direction: column; gap: 10px; }
.totals .row { display: flex; justify-content: space-between; gap: 16px; font-size: 13.8px; color: var(--ink-2); }
.totals .row span:last-child { font-variant-numeric: tabular-nums; color: var(--ink); font-weight: 500; }
.totals .row.grand { padding-top: 12px; border-top: 1px dashed rgba(79,70,229,.25); font-size: 16px; font-weight: 700; color: var(--ink); }
.totals .row.grand span:last-child { font-weight: 700; color: var(--indigo); }
.balance-hint { font-size: 12.3px; font-weight: 600; text-align: right; }
.balance-hint.ok { color: #047857; }
.balance-hint.err { color: #B91C1C; }
.balance-ok {
  margin-top: 16px; padding: 11px 14px; border-radius: 12px; font-size: 12.8px; font-weight: 600;
  background: rgba(16,185,129,.12); color: #046C4E; border: 1px solid rgba(16,185,129,.2);
}

/* ---------- Logo usaha ---------- */
.logo-panel { display: flex; gap: 26px; align-items: flex-start; flex-wrap: wrap; }
.logo-preview {
  width: 180px; height: 110px; flex: 0 0 180px; border-radius: 14px; overflow: hidden;
  background: #fff; border: 1px solid rgba(79,70,229,.16);
  display: grid; place-items: center; padding: 10px;
}
.logo-preview img { max-width: 100%; max-height: 100%; object-fit: contain; display: block; }
.logo-preview.is-empty { background: rgba(255,255,255,.5); border-style: dashed; }
.logo-placeholder { display: flex; flex-direction: column; align-items: center; gap: 8px; color: var(--ink-3); font-size: 12px; font-weight: 500; }
.logo-actions { flex: 1; min-width: 240px; }
.logo-form input[type=file] { padding: 9px 12px; background: rgba(255,255,255,.82); font-size: 13px; }
.logo-form input[type=file]::file-selector-button {
  font-family: inherit; font-size: 12.8px; font-weight: 600; cursor: pointer;
  padding: 6px 12px; margin-right: 10px; border-radius: 8px; border: 1px solid rgba(79,70,229,.2);
  background: rgba(79,70,229,.08); color: var(--indigo);
}
.logo-form input[type=file]::file-selector-button:hover { background: rgba(79,70,229,.14); }

@media (max-width: 900px) {
  .logo-preview { flex: 0 0 100%; width: 100%; height: 130px; }
}

/* ---------- Charts ---------- */
.chart { width: 100%; }
.chart svg { display: block; width: 100%; height: auto; overflow: visible; }
.chart-legend { display: flex; gap: 16px; font-size: 12.2px; color: var(--ink-2); margin-top: 12px; flex-wrap: wrap; }
.chart-legend i { width: 9px; height: 9px; border-radius: 3px; display: inline-block; margin-right: 6px; }
.bar-label { font-size: 10.5px; fill: #8B87A8; font-family: 'Inter', system-ui, sans-serif; }

/* ---------- Bagan akun & detail ---------- */
.accounts-table tr.type-row td {
  background: rgba(79,70,229,.07); font-weight: 700; font-size: 11.4px; letter-spacing: .07em;
  text-transform: uppercase; color: var(--indigo); padding: 9px 12px;
}
.accounts-table tr.row-active td { background: rgba(79,70,229,.06); }
.detail-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.detail-grid > div { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.detail-grid .tiny { text-transform: uppercase; letter-spacing: .06em; font-size: 10.6px; font-weight: 600; }
.detail-grid strong { font-size: 14px; font-weight: 600; }
.kpi-inline {
  display: flex; gap: 30px; flex-wrap: wrap; padding: 14px 16px; border-radius: 14px;
  background: rgba(255,255,255,.55); border: 1px solid rgba(255,255,255,.8); margin-bottom: 16px;
}
.kpi-inline > div { display: flex; flex-direction: column; gap: 2px; }
.kpi-inline strong { font-size: 14px; }
.mini-lines { display: flex; flex-direction: column; gap: 1px; font-size: 12.2px; color: var(--ink-2); }
.mini-lines > div { display: flex; justify-content: space-between; gap: 12px; }
.mini-lines .mono { font-variant-numeric: tabular-nums; }
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 18px; }
.step { display: flex; gap: 12px; align-items: flex-start; padding: 16px; border-radius: 14px; background: rgba(255,255,255,.5); border: 1px solid rgba(255,255,255,.8); }
.step p { margin: 4px 0 8px; font-size: 12.6px; color: var(--ink-2); }
.step strong { font-size: 13.4px; }
.step-no {
  width: 26px; height: 26px; flex: 0 0 26px; border-radius: 9px; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--indigo), var(--violet)); color: #fff; font-size: 12.5px; font-weight: 700;
}

/* ---------- Auth ---------- */
.auth-wrap { min-height: 100vh; display: grid; place-items: center; padding: 24px; position: relative; z-index: 1; }
.auth-card { width: 100%; max-width: 420px; padding: 34px; }
.auth-card .brand-mark { width: 46px; height: 46px; margin-bottom: 18px; }
.auth-card h1 { font-size: 22px; margin-bottom: 6px; }
.auth-card p.lead { color: var(--ink-2); font-size: 13.6px; margin: 0 0 24px; }
.auth-card .field + .field { margin-top: 15px; }
.auth-card .btn-block { margin-top: 22px; }
.auth-foot { text-align: center; color: var(--ink-3); font-size: 12px; margin-top: 18px; }

/* ---------- Misc ---------- */
.muted { color: var(--ink-2); }
.tiny { font-size: 12px; color: var(--ink-3); }
.mono { font-variant-numeric: tabular-nums; }
.pos { color: #047857; font-weight: 600; }
.neg { color: #B91C1C; font-weight: 600; }
.divider { height: 1px; background: var(--line); margin: 20px 0; }
.list-clean { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 2px; }
.list-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 12px 2px; border-bottom: 1px solid rgba(79,70,229,.08); }
.list-row:last-child { border-bottom: none; }
.list-row .who2 { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.list-row .who2 strong { font-size: 13.4px; font-weight: 600; }
.list-row .who2 small { font-size: 12px; color: var(--ink-3); }
.rank { width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; font-size: 11.5px; font-weight: 700; background: rgba(79,70,229,.1); color: var(--indigo); }
.row-left { display: flex; align-items: center; gap: 12px; min-width: 0; }
.toolbar { display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-bottom: 18px; align-items: center; }
.section-title { font-size: 12px; text-transform: uppercase; letter-spacing: .07em; color: var(--ink-3); font-weight: 700; margin-bottom: 14px; }

@media (max-width: 1080px) {
  .grid-2, .grid-2-even { grid-template-columns: 1fr; }
  .grid-2 > .card + .card, .grid-2-even > .card + .card { margin-top: 22px; }
  .detail-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
  .shell { flex-direction: column; padding: 14px; gap: 14px; }
  .sidebar { width: 100%; flex: none; position: static; height: auto; padding: 14px; gap: 12px; border-radius: 18px; }
  .brand { padding-bottom: 10px; }
  .nav { flex-direction: row; overflow-x: auto; gap: 6px; padding-bottom: 2px; }
  .nav-group { display: none; }
  .nav-item { white-space: nowrap; padding: 9px 12px; font-size: 13px; }
  .sidebar-foot { flex-direction: row; align-items: center; justify-content: space-between; padding-top: 10px; }
  .main { width: 100%; }
  h1 { font-size: 21px; }
  .grid-form { grid-template-columns: 1fr; }
  .card { padding: 17px; }
  .card + .card { margin-top: 16px; }
  .grid-stats { gap: 14px; }
  .stat { padding: 17px; }
  .journal-table { min-width: 700px; }
  .items-wrap { overflow-x: auto; }
  .journal-foot { flex-direction: column; }
  .totals { max-width: none; }
  .detail-grid { grid-template-columns: 1fr; gap: 14px; }
}
