/* Tata letak: menu modul di sisi kiri (Transaksi, Pembukuan, Pengaturan), ruang kerja di kanan dengan nama klien di atas, lalu periode dan tabel berkolom debit/kredit. */
:root {
  --bg: #EDF1EF; --surface: #FFFFFF; --surface-2: #F5F8F6; --ink: #14201C; --muted: #566761;
  --line: #D5DDD9; --line-strong: #9DAEA7; --accent: #0B6B58; --accent-ink: #FFFFFF; --accent-soft: #DCEEE8;
  --good: #17713F; --good-soft: #DCF0E3; --warn: #8A5200; --warn-soft: #FAEACB; --bad: #B42318; --bad-soft: #FBE3E0;
  --f-body: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --f-head: "IBM Plex Sans Condensed", "IBM Plex Sans", system-ui, sans-serif;
  --f-num: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --r: 6px;
  --side: #0A2F28; --side-ink: #E3EEEA; --side-muted: #8FB1A7; --side-hover: #123F36; --side-on: #17544A; --side-mark: #5FD3B8;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0F1513; --surface: #171F1C; --surface-2: #1D2824; --ink: #E4EBE8; --muted: #97A7A0;
    --line: #2B3733; --line-strong: #4C5C55; --accent: #58C4AB; --accent-ink: #06211B; --accent-soft: #17352E;
    --good: #62CD92; --good-soft: #153324; --warn: #E5B458; --warn-soft: #35290F; --bad: #F28B80; --bad-soft: #3B1B18;
    color-scheme: dark;
  }
}
*, *::before, *::after { box-sizing: border-box; }
html, body { height: 100%; margin: 0; }
[hidden] { display: none !important; }
body { background: var(--bg); color: var(--ink); font: 400 15px/1.5 var(--f-body); }
.shell { display: grid; grid-template-columns: 236px minmax(0, 1fr); min-height: 100%; }
.side { background: var(--side); color: var(--side-ink); position: sticky; top: 0; height: 100vh; overflow-y: auto; display: flex; flex-direction: column; gap: 14px; padding: 18px 12px 14px; scrollbar-width: thin; }
.side .brand { padding: 0 8px 6px; }
.side .logo-bg { fill: var(--side-mark); } .side .logo-s, .side .logo-a { stroke: var(--side); }
.side .tagline { color: var(--side-muted); }
.tagline { font-size: 11px; letter-spacing: .07em; white-space: nowrap; text-transform: uppercase; color: var(--muted); font-weight: 500; margin-top: 1px; }
.ver { margin-top: auto; padding: 8px 8px 0; font-size: 12px; color: var(--side-muted); }
.work { display: flex; flex-direction: column; gap: 16px; min-width: 0; padding: 18px 26px 56px; max-width: 1280px; width: 100%; }
h1, h2, h3 { font-family: var(--f-head); font-weight: 600; margin: 0; text-wrap: balance; line-height: 1.2; }
h1 { font-size: 22px; } h2 { font-size: 19px; } h3 { font-size: 15px; }
p { margin: 0; }
.muted { color: var(--muted); } .small { font-size: 13px; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.top { display: flex; flex-wrap: wrap; gap: 10px 20px; align-items: center; justify-content: space-between; padding-bottom: 12px; border-bottom: 1px solid var(--line-strong); }
.brand { display: flex; gap: 12px; align-items: center; min-width: 0; }
.mark { font: 500 15px/1 var(--f-num); background: var(--accent); color: var(--accent-ink); padding: 9px 8px; border-radius: var(--r); }
.clientbar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; min-width: 0; }
.clientbar select { max-width: 100%; min-width: 0; font-weight: 500; }

.btn { border: 1px solid var(--line-strong); background: var(--surface); border-radius: var(--r); padding: 7px 12px; cursor: pointer; font-weight: 500; white-space: nowrap; }
.btn:hover { border-color: var(--accent); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn.ghost { border-color: transparent; background: transparent; color: var(--accent); padding: 4px 8px; }
.btn.ghost:hover { background: var(--accent-soft); }
.btn.danger { color: var(--bad); }
.btn.danger.armed { background: var(--bad); border-color: var(--bad); color: var(--surface); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
input[type="text"], input[type="password"], input[type="date"], input[type="search"], select, textarea {
  background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--r); padding: 7px 9px; min-width: 0; max-width: 100%;
}
input.num { font-family: var(--f-num); text-align: right; font-variant-numeric: tabular-nums; }

.tabs { display: flex; flex-direction: column; gap: 12px; }
.nav-group { display: flex; flex-direction: column; gap: 2px; }
.nav-label { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--side-muted); font-weight: 600; padding: 2px 10px 4px; }
.tab { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; border: 0; background: transparent; color: var(--side-ink); padding: 8px 10px; border-radius: var(--r); cursor: pointer; font-weight: 500; white-space: nowrap; border-left: 3px solid transparent; }
.tab svg { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; opacity: .85; }
.tab:hover { background: var(--side-hover); }
.tab[aria-current="page"] { background: var(--side-on); border-left-color: var(--side-mark); color: #fff; }
.side :focus-visible { outline-color: var(--side-mark); }

.period { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; }
.period label { display: flex; gap: 6px; align-items: center; color: var(--muted); font-size: 13px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { border: 1px solid var(--line); background: transparent; border-radius: 999px; padding: 4px 11px; font-size: 13px; cursor: pointer; color: var(--muted); }
.chip:hover, .chip[aria-pressed="true"] { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); }

.banner { border: 1px solid var(--warn); background: var(--warn-soft); color: var(--warn); border-radius: var(--r); padding: 9px 12px; font-size: 14px; }
main { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); min-width: 0; }
.panel-head { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; justify-content: space-between; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.panel-head .tools { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; min-width: 0; }
.panel-body { padding: 14px; }
.wrap-x { overflow-x: auto; }

.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }
.tile { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 12px 14px; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.tile .k { font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.tile .v { font: 500 21px/1.25 var(--f-num); font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.tile .v.neg { color: var(--bad); }
.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pill { display: inline-flex; align-items: center; gap: 6px; border-radius: 999px; padding: 3px 10px; font-size: 12.5px; font-weight: 500; background: var(--surface-2); color: var(--muted); border: 1px solid var(--line); white-space: nowrap; }
.pill.good { background: var(--good-soft); color: var(--good); border-color: transparent; }
.pill.bad { background: var(--bad-soft); color: var(--bad); border-color: transparent; }
.pill.warn { background: var(--warn-soft); color: var(--warn); border-color: transparent; }
.pill.acc { background: var(--accent-soft); color: var(--accent); border-color: transparent; }

.flow { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px; counter-reset: step; }
.flow li { counter-increment: step; }
.flow button { width: 100%; height: 100%; text-align: left; border: 1px solid var(--line); background: var(--surface-2); border-radius: var(--r); padding: 10px 12px; cursor: pointer; display: flex; flex-direction: column; gap: 2px; }
.flow button:hover { border-color: var(--accent); }
.flow button::before { content: counter(step); font: 500 12px/1 var(--f-num); color: var(--accent); }
.flow b { font-weight: 600; } .flow span { font-size: 13px; color: var(--muted); }

table { border-collapse: collapse; width: 100%; }
.tbl th { text-align: left; font-size: 11.5px; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); font-weight: 600; padding: 8px 12px; border-bottom: 1px solid var(--line-strong); white-space: nowrap; background: var(--surface-2); }
.tbl td { padding: 7px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.tbl th.num, .tbl td.num { text-align: right; font-family: var(--f-num); font-variant-numeric: tabular-nums; white-space: nowrap; }
.tbl td.code, .tbl td.date { font-family: var(--f-num); font-size: 13.5px; white-space: nowrap; color: var(--muted); }
.tbl tr.first td { border-top: 1px solid var(--line-strong); }
.tbl tr.cont td { border-bottom-color: transparent; }
.tbl td.kredit { padding-left: 34px; }
.tbl tr.memo td { color: var(--muted); font-style: italic; font-size: 13.5px; padding-top: 0; }
.tbl tr.group td { background: var(--surface-2); font-weight: 600; font-size: 13px; }
.tbl tr.total td { font-weight: 600; border-top: 1px solid var(--line-strong); border-bottom: 0; }
.tbl tr.total td.num span, .stmt tr.grand td.num span { border-bottom: 3px double var(--ink); padding-bottom: 1px; }
.tbl td.actions { white-space: nowrap; text-align: right; padding-block: 4px; }
.tbl td.actions .btn { padding: 2px 8px; }
.tbl.wide { min-width: 680px; }
.neg { color: var(--bad); }
a.link, button.link { color: var(--accent); background: none; border: 0; padding: 0; cursor: pointer; text-align: left; text-decoration: underline; text-decoration-color: transparent; }
button.link:hover { text-decoration-color: currentColor; }

.stmt { max-width: 720px; }
.stmt td { padding: 5px 12px; }
.stmt td.num { text-align: right; font-family: var(--f-num); font-variant-numeric: tabular-nums; white-space: nowrap; }
.stmt tr.title td { font: 600 16px/1.3 var(--f-head); padding-top: 16px; border-bottom: 1px solid var(--line-strong); }
.stmt tr.head td { font-weight: 600; padding-top: 12px; }
.stmt tr.row td:first-child { padding-left: 30px; }
.stmt tr.sub td { border-top: 1px solid var(--line); }
.stmt tr.sub td:first-child { padding-left: 30px; color: var(--muted); }
.stmt tr.total td { font-weight: 600; border-top: 1px solid var(--line-strong); padding-top: 7px; }
.stmt tr.grand td { font-weight: 600; border-top: 1px solid var(--line-strong); padding-block: 8px 10px; }
.stmt-head { text-align: center; padding: 6px 0 4px; }
.stmt-head .small { margin-top: 2px; }

.empty { text-align: center; padding: 36px 16px; display: flex; flex-direction: column; gap: 10px; align-items: center; }
.empty p { max-width: 56ch; color: var(--muted); }
.row-actions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
footer { color: var(--muted); font-size: 13px; max-width: 80ch; }

.modal { position: fixed; inset: 0; background: rgba(8, 14, 12, .55); display: flex; align-items: flex-start; justify-content: center; padding: max(16px, env(safe-area-inset-top, 0px)) 16px 16px; overflow-y: auto; z-index: 10; }
.sheet { background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--r); width: min(820px, 100%); margin-block: 24px; min-width: 0; }
.sheet-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.sheet-body { padding: 16px; display: flex; flex-direction: column; gap: 14px; }
.sheet-foot { display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between; align-items: center; padding: 12px 16px; border-top: 1px solid var(--line); background: var(--surface-2); border-radius: 0 0 var(--r) var(--r); }
.fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; }
.field { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.field.wide { grid-column: 1 / -1; }
.field > span { font-size: 12.5px; color: var(--muted); font-weight: 500; }
.field input, .field select { width: 100%; }
.seg { align-self: flex-start; display: inline-flex; border: 1px solid var(--line-strong); border-radius: var(--r); overflow: hidden; flex-wrap: wrap; }
.seg button { border: 0; background: var(--surface); padding: 6px 12px; cursor: pointer; font-weight: 500; color: var(--muted); }
.seg button[aria-pressed="true"] { background: var(--accent); color: var(--accent-ink); }
.lines td { padding: 4px 4px; border: 0; }
.lines th { font-size: 11.5px; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); text-align: left; padding: 2px 4px; }
.lines select { width: 100%; min-width: 180px; } .lines input { width: 100%; min-width: 110px; }
.sumline { font-family: var(--f-num); font-variant-numeric: tabular-nums; font-size: 13.5px; display: flex; flex-wrap: wrap; gap: 4px 16px; }
.err { color: var(--bad); font-size: 13.5px; }
.check { display: flex; gap: 8px; align-items: center; }
.toast { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(18px + env(safe-area-inset-bottom, 0px)); background: var(--ink); color: var(--bg); padding: 9px 14px; border-radius: var(--r); z-index: 20; max-width: calc(100% - 32px); font-size: 14px; }
@media (max-width: 560px) {
  .tbl th, .tbl td { padding-inline: 8px; } .tile .v { font-size: 18px; }
  .panel-body { padding: 12px; }
}

/* tambahan aplikasi mandiri */
.userbar { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; min-width: 0; }
.userbar .who { font-weight: 500; }
.auth { min-height: 100%; display: flex; align-items: center; justify-content: center; padding: 32px 16px; }
.auth-card { width: min(420px, 100%); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 24px; display: flex; flex-direction: column; gap: 14px; }
.auth-card form { display: flex; flex-direction: column; gap: 12px; }
.auth-card .brand { margin-bottom: 4px; }
.center { text-align: center; }
.stmt.mid { margin-inline: auto; }
.mt { margin-top: 14px; }
.checklist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.checklist li { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid var(--line); }
.checklist li > div { min-width: 0; flex: 1 1 260px; }
.checklist b { font-weight: 600; }
.closebar { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; justify-content: space-between; padding-top: 14px; }
a.btn { text-decoration: none; display: inline-block; color: var(--ink); }
.btn.primary.armed { background: var(--warn); border-color: var(--warn); color: var(--surface); }
@media print {
  :root { --bg: #fff; --surface: #fff; --surface-2: #fff; --ink: #000; --muted: #333; --line: #bbb; --line-strong: #666; --bad: #000; color-scheme: light; }
  .side, .top, .period, .banner, footer, .panel-head, .toast, .no-print { display: none !important; }
  body:not(.print-inv) .modal { display: none !important; }
  .shell { display: block; } .work { padding: 0; max-width: none; } .panel { border: 0; }
  body.print-inv .shell, body.print-inv .sheet-head, body.print-inv .sheet-foot { display: none !important; }
  body.print-inv .modal { position: static; display: block; background: none; padding: 0; overflow: visible; }
  body.print-inv .sheet { border: 0; width: 100%; margin: 0; } body.print-inv .sheet-body { padding: 0; }
  body.print-inv .invoice { border: 0; padding: 0; }
}

/* logo & impor bank */
.logo { width: 38px; height: 38px; flex: none; display: block; }
.logo-bg { fill: var(--accent); }
.logo-s { fill: none; stroke: var(--accent-ink); stroke-width: 4.2; stroke-linecap: round; }
.logo-a { fill: none; stroke: var(--accent-ink); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.wordmark { font-size: 25px; letter-spacing: -.01em; }
.auth-card .logo { width: 44px; height: 44px; }
input[type="file"] { max-width: 100%; font-size: 14px; }
input[type="number"] { background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--r); padding: 7px 9px; width: 100%; }
.mapgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 10px 12px; }
.stack { display: flex; flex-direction: column; gap: 14px; }
.rowline { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: flex-end; }
.rowline .field { flex: 1 1 200px; }
.tbl tr.off td { opacity: .5; }
.tbl tr.off td:first-child, .tbl tr.off td.actions { opacity: 1; }
.tbl td select { max-width: 230px; width: 100%; min-width: 150px; padding: 4px 6px; }
.tbl td.chk { width: 1%; }
.imp-desc { min-width: 220px; overflow-wrap: anywhere; }
.imp-desc .pill { margin-top: 3px; }
.submitbar { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; justify-content: space-between; padding: 12px 14px; border-top: 1px solid var(--line); background: var(--surface-2); border-radius: 0 0 var(--r) var(--r); }
.pager { display: flex; gap: 8px; align-items: center; }
.rowline .field.narrow { flex: 0 1 340px; }
.imp-desc input[type="text"] { width: 100%; }
.tbl td input.num { width: 130px; padding: 4px 6px; }
.tbl td input[type="date"] { padding: 4px 6px; }
.editbal { display: flex; gap: 8px; align-items: center; margin-top: 6px; }
.rowline > .btn, .rowline > a.btn { flex: none; }
.tbl td select + br + select, .tbl td br + select { margin-top: 4px; }
.pill.long { white-space: normal; border-radius: 10px; text-align: left; }
.panel-head .tools { max-width: 100%; }
/* klien tetap per sesi */
.clientname { font: 600 28px/1.15 var(--f-head); letter-spacing: -.01em; overflow-wrap: anywhere; min-width: 0; }
.clientbar { padding-block: 2px 4px; }
.auth-card.wide { width: min(560px, 100%); }
.pick-list { display: flex; flex-direction: column; gap: 8px; }
.pick-item { display: flex; gap: 12px; align-items: center; justify-content: space-between; width: 100%; text-align: left; border: 1px solid var(--line-strong); background: var(--surface); border-radius: var(--r); padding: 12px 14px; cursor: pointer; }
.pick-item:hover { border-color: var(--accent); background: var(--accent-soft); }
.pick-name { font: 600 18px/1.25 var(--f-head); min-width: 0; overflow-wrap: anywhere; }
.checklist-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 6px 14px; margin-top: 8px; }
@media (max-width: 560px) { .clientname { font-size: 23px; } }

/* menu modul di layar sempit: jadi deretan mendatar di atas */
@media (max-width: 860px) {
  .shell { display: block; }
  .side { position: static; height: auto; overflow: visible; padding: 10px 12px 8px; gap: 8px; }
  .side .brand { padding: 0 4px; } .side .logo { width: 32px; height: 32px; } .side .wordmark { font-size: 21px; }
  .tabs { flex-direction: row; gap: 4px; overflow-x: auto; scrollbar-width: thin; padding-bottom: 4px; }
  .nav-group { display: contents; } .nav-label, .ver { display: none; }
  .tab { width: auto; flex: none; border-left: 0; border-bottom: 3px solid transparent; padding: 7px 10px; }
  .tab[aria-current="page"] { border-bottom-color: var(--side-mark); }
  .work { padding: 14px 14px 48px; }
}
/* faktur: baris barang di jendela isian, dan lembar faktur untuk dicetak */
textarea { width: 100%; resize: vertical; min-height: 64px; font: inherit; }
.lines.inv input { min-width: 0; } .lines.inv td:nth-child(1) { min-width: 300px; width: 42%; } .lines.inv td:nth-child(1) input { width: 100%; } .lines.inv td:nth-child(3) select { min-width: 90px; } .lines.inv td:nth-child(2), .lines.inv td:nth-child(3) { width: 80px; min-width: 64px; }
.lines.inv td:nth-child(4), .lines.inv td:nth-child(6) { min-width: 124px; } .lines.inv td:nth-child(5) { width: 78px; min-width: 64px; }
.fields.tax { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.sumline b { font-weight: 600; }
.invoice { border: 1px solid var(--line); border-radius: var(--r); padding: 28px; display: flex; flex-direction: column; gap: 18px; background: var(--surface); }
.inv-top { display: flex; flex-wrap: wrap; gap: 16px 32px; justify-content: space-between; align-items: flex-start; border-bottom: 2px solid var(--ink); padding-bottom: 14px; }
.inv-co { font: 600 22px/1.2 var(--f-head); overflow-wrap: anywhere; }
.inv-addr, .inv-note { white-space: pre-line; font-size: 14px; color: var(--muted); }
.inv-title { font: 600 26px/1 var(--f-head); letter-spacing: .12em; text-align: right; }
.inv-meta table { width: auto; margin-left: auto; margin-top: 8px; font-size: 14px; }
.inv-meta td { padding: 1px 0 1px 14px; } .inv-meta td:first-child { color: var(--muted); padding-left: 0; } .inv-meta td:last-child { font-family: var(--f-num); text-align: right; }
.inv-cust { font-weight: 600; font-size: 16px; }
.inv-lines th { text-align: left; font-size: 11.5px; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); padding: 7px 10px; border-block: 1px solid var(--line-strong); }
.inv-lines td { padding: 7px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.inv-lines .num { text-align: right; font-family: var(--f-num); font-variant-numeric: tabular-nums; white-space: nowrap; }
.inv-lines tfoot td { border-bottom: 0; padding-block: 5px; } .inv-lines tfoot tr.grand td { font-weight: 600; font-size: 16px; border-top: 1px solid var(--line-strong); }
.inv-words { font-size: 14px; } .inv-words i { text-transform: none; }
.inv-bottom { display: flex; flex-wrap: wrap; gap: 20px 40px; justify-content: space-between; align-items: flex-start; margin-top: 6px; }
.inv-sign { text-align: center; min-width: 200px; margin-left: auto; font-size: 14px; } .inv-sign .gap { height: 64px; } .inv-sign b { border-top: 1px solid var(--ink); padding-top: 4px; display: inline-block; min-width: 180px; }
.sheet.wide { width: min(920px, 100%); }
.infoline { font-size: 13px; color: var(--muted); overflow-wrap: anywhere; } .infoline code { font-family: var(--f-num); font-size: 12.5px; color: var(--ink); }

/* versi server dan tampilan tidak sama */
.banner.stale { font-size: 14px; line-height: 1.45; }
@media print { .banner.stale { display: none !important; } }

/* buku besar semua akun; aset tetap */
.tbl tr.group.acct td { font-size: 14.5px; border-top: 2px solid var(--line-strong); padding-top: 10px; }
.tbl.ledger tr.group.acct:first-child td { border-top: 0; }
input[type="month"] { background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--r); padding: 7px 9px; min-width: 0; max-width: 100%; width: 100%; }
.rowline > .pill { align-self: center; }

/* master data dan nama di jurnal */
.pair { display: flex; gap: 8px; align-items: stretch; min-width: 0; } .pair select { flex: 1 1 auto; min-width: 0; } .pair .btn { flex: none; }
.static { border: 1px dashed var(--line-strong); border-radius: var(--r); padding: 7px 9px; background: var(--surface-2); min-height: 38px; }
.lines td select { min-width: 150px; }
.cname { color: var(--muted); font-size: 13px; }

/* voucher */
.voucher + .voucher { margin-top: 18px; }
.inv-title.vt { font-size: 19px; letter-spacing: .08em; }
.dots { display: inline-block; min-width: 260px; border-bottom: 1px dotted var(--ink); height: 1em; vertical-align: baseline; }
.v-sign { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 14px; margin-top: 10px; font-size: 13.5px; text-align: center; }
.v-sign .gap { height: 54px; } .v-sign b { display: block; border-top: 1px solid var(--ink); padding-top: 3px; font-weight: 500; min-height: 1.4em; }
@media print { .voucher { break-inside: avoid; page-break-inside: avoid; } .voucher + .voucher { margin-top: 0; break-before: page; page-break-before: always; } body.print-inv .sheet-body { display: block; } }
/* laporan berkolom */
.rep-modes { margin-bottom: 12px; }
.stmt.multi { max-width: none; min-width: 560px; }
.stmt.multi th { text-align: right; font-size: 12px; font-weight: 600; padding: 6px 12px; border-bottom: 1px solid var(--line-strong); white-space: nowrap; vertical-align: bottom; }
.stmt.multi td:first-child { min-width: 240px; }

/* isian kata sandi dengan tombol mata (1.10) */
.pw { position: relative; display: block; width: 100%; }
.pw input { width: 100%; padding-right: 42px; }
.eye { position: absolute; right: 3px; top: 50%; transform: translateY(-50%); width: 34px; height: 30px; display: grid; place-items: center; border: 0; border-radius: var(--r); background: transparent; color: var(--muted); cursor: pointer; padding: 0; }
.eye:hover { color: var(--accent); background: var(--accent-soft); }
.eye:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.eye svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
input::-ms-reveal, input::-ms-clear { display: none; }
.banner.good { border-color: var(--good); background: var(--good-soft); color: var(--good); }
.otp { font-family: var(--f-num); font-size: 20px; letter-spacing: .35em; text-align: center; }
.auth-card .row-actions { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px; }
.mailline { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; justify-content: space-between; }
.mailline > div { flex: 1 1 320px; }
@media print { .eye { display: none; } }
.field > span.pw { font-size: inherit; color: inherit; font-weight: inherit; }
.fields > .check.wide { grid-column: 1 / -1; }

/* mata uang asing (1.11) */
.fxrow td { padding-top: 0; border-top: 0; }
.fxline { display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: flex-end; padding: 6px 10px; background: var(--surface-2); border-radius: var(--r); }
.fxline label { display: flex; flex-direction: column; gap: 2px; font-size: 12.5px; color: var(--muted); }
.fxline input, .fxline select { width: 10em; max-width: 100%; font-size: 14px; color: var(--ink); }
.fxn { white-space: nowrap; }
td.nowrap { white-space: nowrap; }
/* 1.12: modul pembukuan bertab, hak akses */
.keu-tabs .panel-body, .lp-opts { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: center; }
.field.inline { flex-direction: row; align-items: center; gap: 8px; }
.field.inline > span { white-space: nowrap; }
.field.inline select { width: auto; min-width: 180px; max-width: 100%; }
.tbl.perm td.c, .tbl.perm th.c { text-align: center; width: 70px; }
.tbl.perm input[type=checkbox] { width: 18px; height: 18px; }
@media (max-width: 640px) { .field.inline { flex-direction: column; align-items: stretch; } .field.inline select { width: 100%; min-width: 0; } }
/* 1.13: saldo awal, berkas database klien */
.tbl.akun input.ob-in { width: 150px; text-align: right; }
.tbl.akun input.ob-date { width: 150px; }
.ob-bar .rowline { align-items: flex-end; }
.ob-lines input { width: 100%; min-width: 110px; }
.dbfile { word-break: break-all; }
@media (max-width: 640px) { .tbl.akun input.ob-in, .tbl.akun input.ob-date { width: 120px; } }
/* 1.14: rujukan dan panduan SAK EP */
.pill.sak { background: transparent; border: 1px solid var(--line-strong); font-size: 11px; }
.sak-guide { gap: 18px; }
.sak-bab { border-top: 1px solid var(--line); padding-top: 12px; }
.sak-bab:first-child { border-top: 0; padding-top: 0; }
.sak-item { margin: 10px 0 14px; }
.tbl.jlines { max-width: 640px; margin-top: 6px; }
.tbl.jlines td.indent { padding-left: 34px; }
.tbl.jlines th.num, .tbl.jlines td.num { width: 110px; }
/* 1.15: pohon akun level 1-3 */
.tbl.akun td.lvl { color: var(--muted); font-size: 12px; text-align: center; width: 48px; }
.tbl.akun tr.head td { font-weight: 600; }
.tbl.akun tr.head.lv1 td { background: var(--accent-soft); }
.tbl.akun tr.lv2 td.acc-name { padding-left: 26px; }
.tbl.akun tr.lv3 td.acc-name { padding-left: 50px; }
.tbl.akun tr.head .pill { font-weight: 400; }
@media (max-width: 640px) { .tbl.akun tr.lv2 td.acc-name { padding-left: 14px; } .tbl.akun tr.lv3 td.acc-name { padding-left: 26px; } }
/* 1.15: unggah foto mutasi */
.drop-zone { border: 2px dashed var(--line-strong); border-radius: var(--r); padding: 16px; text-align: center; color: var(--ink, inherit); background: var(--surface); }
.drop-zone.over { border-color: var(--accent); background: var(--accent-soft); }
.drop-zone kbd { border: 1px solid var(--line-strong); border-radius: 4px; padding: 0 5px; font-size: 12px; }
.cam-btn { align-self: flex-end; cursor: pointer; }
@media (min-width: 900px) and (hover: hover) { .cam-btn { display: none; } }
.ind-prev { margin-top: 8px; }
.ind-prev summary { cursor: pointer; color: var(--accent, #0f6b4f); font-size: 14px; }
.ind-prev .small { display: grid; gap: 2px; margin-top: 6px; max-height: 220px; overflow: auto; }
.ind-prev .code { display: inline-block; min-width: 3.5em; }

/* tanda pembuat */
.maker { font-size: 12px; color: var(--muted); margin: 14px 0 0; text-align: center; }
.maker b { font-weight: 600; color: var(--ink); }
.side-maker { margin: 2px 0 0; padding: 0 8px; text-align: left; color: var(--side-muted); }
.side-maker b { color: inherit; }
.maker-foot { white-space: nowrap; }
@media (max-width: 860px) { .side-maker { display: none; } }

/* paket laporan PDF (dicetak lewat dialog cetak browser) */
#printPack { display: none; }
.pack-parts { display: grid; gap: 6px; margin: 10px 0; }
@media print {
  body.print-pack .shell, body.print-pack #auth, body.print-pack .modal, body.print-pack .toast { display: none !important; }
  body.print-pack #printPack { display: block; }
  @page { size: A4; margin: 14mm 12mm; }
  @page wide { size: A4 landscape; margin: 12mm 10mm; }
  .pack-page { break-after: page; page-break-after: always; font-size: 10.5pt; color: #000; }
  .pack-page:last-child { break-after: auto; page-break-after: auto; }
  .pack-wide { page: wide; }
  .pack-head { text-align: center; margin-bottom: 10px; }
  .pack-head .pack-client { font-weight: 600; font-size: 12pt; }
  .pack-head h2 { margin: 2px 0; font-size: 15pt; }
  .pack-head p { margin: 0; color: #333; font-size: 9.5pt; }
  .pack-stmt { width: 100%; max-width: none; margin: 0 auto; }
  .pack-wide .pack-stmt, .pack-wide .pack-tbl { font-size: 8pt; }
  .pack-wide .pack-stmt td, .pack-wide .pack-stmt th { padding: 2px 4px; }
  .pack-tbl { width: 100%; border-collapse: collapse; }
  .pack-tbl th, .pack-tbl td { border-bottom: 1px solid #bbb; padding: 4px 6px; text-align: left; }
  .pack-tbl .num { text-align: right; white-space: nowrap; }
  .pack-tbl tr.total td { font-weight: 700; border-top: 1.5px solid #000; }
  .pack-note, .pack-empty { font-size: 9pt; color: #333; margin-top: 8px; }
  .pack-foot { margin-top: 14px; padding-top: 6px; border-top: 1px solid #bbb; font-size: 8pt; color: #555; text-align: center; }
  .pack-cover { display: flex; flex-direction: column; justify-content: space-between; min-height: 255mm; }
  .pack-client-big { font-size: 20pt; font-weight: 700; }
  .pack-addr { font-size: 10pt; color: #333; margin-top: 4px; }
  .pack-cover h1 { font-size: 28pt; margin: 0 0 6px; letter-spacing: .02em; }
  .pack-period { font-size: 13pt; margin: 0 0 18px; }
  .pack-toc { font-size: 11pt; line-height: 1.7; padding-left: 20px; }
  .pack-cover-bot p { margin: 3px 0; font-size: 10pt; }
  .pack-maker { margin-top: 12px !important; }
  .pack-disclaimer { font-size: 8.5pt !important; color: #555; }
}
/* tabel: pilih kolom dan centang baris */
.tb-bar { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; justify-content: flex-end; padding: 4px 12px 0; font-size: 13px; }
.tb-bar .btn { padding: 3px 9px; font-size: 13px; min-height: 0; }
.tb-n { font-weight: 600; margin-right: auto; }
.tb-cols { position: relative; }
.tb-pop { position: absolute; right: 0; top: calc(100% + 4px); z-index: 30; background: var(--surface); border: 1px solid var(--line-strong); border-radius: 8px; box-shadow: 0 6px 24px rgba(0,0,0,.15); padding: 8px 10px; display: grid; gap: 4px; min-width: 200px; max-height: 340px; overflow: auto; }
.tb-pop .check { white-space: nowrap; }
.tb-chk { margin: 0 6px 0 0; vertical-align: middle; }
.tb-hide { display: none !important; }
tr.tb-on > td { background: var(--accent-soft); }
@media print { .tb-chk { display: none; } }
/* faktur: pilihan barang/jasa saat mengetik */
.ac-box { position: fixed; z-index: 1000; background: var(--surface); border: 1px solid var(--line-strong); border-radius: 8px; box-shadow: 0 8px 28px rgba(0,0,0,.18); max-height: 300px; overflow: auto; min-width: 320px; }
.ac-opt { padding: 6px 10px; cursor: pointer; display: flex; justify-content: space-between; gap: 12px; }
.ac-opt .small { white-space: nowrap; }
.ac-opt.on, .ac-opt:hover { background: var(--accent-soft); }
.ac-empty { padding: 8px 10px; }
/* perpajakan */
table.pj21 input.num { width: 112px !important; font-size: 13px; min-width: 0 !important; padding: 5px 6px; } table.pj21 input.qty { width: 46px !important; } table.pj21 td:last-child { min-width: 170px; }
.pj21 td:first-child { min-width: 150px; max-width: 210px; } .pj21 th, .pj21 td { padding-left: 6px; padding-right: 6px; }
table[data-tid^="pj-pot"] input, table[data-tid^="pj-ppn"] input { min-width: 0; width: 100%; max-width: 190px; padding: 4px 6px; }
table[data-tid^="pj-pot"] input[type="date"] { max-width: 150px; }
table[data-tid="pj-angsuran"] input.num { max-width: 150px; }
