/* Zoom Books: its own look (white, calm, data-first). Standalone, does not load /assets/hub.css.
   Type scale: 14px base, 13px tables, 28px page titles. Rows ~44px. Thin grey lines, no shadows on content. */
:root {
  --ink: #23272f; --ink-2: #4a5160; --muted: #6b7280; --faint: #9aa1ad;
  --line: #e4e7ec; --line-2: #d0d5dd; --hover: #f6f7f9; --soft: #f9fafb;
  --navy: #13235f; --navy-2: #1f3796; --orange: #f57c0a; --orange-bg: #fff4e8;
  --ok: #12804a; --ok-bg: #e8f6ee; --warn: #b45309; --warn-bg: #fdf3e2; --err: #c62a3f; --err-bg: #fdecee; --info-bg: #edf1fd;
  --r: 12px;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 14px; color: var(--ink);
  font-feature-settings: "cv11", "ss01";
}
* { box-sizing: border-box; }
html, body { margin: 0; background: #fff; }
body { line-height: 1.5; -webkit-font-smoothing: antialiased; }
a { color: var(--navy-2); text-decoration: none; }
a:hover { text-decoration: underline; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3 { margin: 0 0 .6em; line-height: 1.25; color: var(--ink); }
h2 { font-size: 18px; font-weight: 700; }
h3 { font-size: 15px; font-weight: 700; }
b, strong { font-weight: 600; }

/* ---------- controls ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 36px; padding: 0 16px; border-radius: 6px;
  border: 1px solid var(--navy); background: var(--navy); color: #fff; font-weight: 600; font-size: 14px; cursor: pointer; white-space: nowrap; text-decoration: none !important; }
.btn:hover { background: var(--navy-2); border-color: var(--navy-2); }
.btn:disabled { opacity: .5; cursor: default; }
.btn.orange { background: var(--orange); border-color: var(--orange); color: #fff; }
.btn.orange:hover { background: #e06d00; border-color: #e06d00; }
.btn.ghost { background: #fff; color: var(--ink); border-color: var(--line-2); }
.btn.ghost:hover { background: var(--hover); }
.btn.sm { height: 30px; padding: 0 10px; font-size: 13px; }
.input, select.input, textarea.input { width: 100%; height: 36px; padding: 0 10px; border: 1px solid var(--line-2); border-radius: 6px; background: #fff; font-size: 14px; }
textarea.input { height: auto; padding: 8px 10px; line-height: 1.45; }
.input:focus, .lines input:focus, .lines select:focus, .lines textarea:focus { outline: none; border-color: var(--navy-2); box-shadow: 0 0 0 3px rgba(31,55,150,.14); }
label.field { display: block; font-size: 13px; font-weight: 600; color: var(--ink-2); margin-bottom: 14px; }
label.field > .input, label.field > select, label.field > textarea, label.field > div { margin-top: 6px; font-weight: 400; }
input[type=checkbox] { width: 16px; height: 16px; accent-color: var(--navy); }

/* ---------- app shell: icon rail | menu panel | page ---------- */
.shell { display: grid; grid-template-columns: 76px 240px 1fr; min-height: 100vh; }
.shell.collapsed { grid-template-columns: 76px 0 1fr; }
.shell.collapsed .panel { display: none; }
.rail { grid-row: 1 / span 2; background: #f2f4f7; display: flex; flex-direction: column; align-items: stretch; padding: 10px 4px 12px; gap: 2px; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.rail .logo { width: 40px; height: 40px; margin: 2px auto 12px; border-radius: 10px; background: var(--navy); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 18px; position: relative; text-decoration: none !important; }
.rail .logo::after { content: ""; position: absolute; right: -3px; bottom: -3px; width: 12px; height: 12px; border-radius: 50%; background: var(--orange); border: 2px solid #f2f4f7; }
.rail a, .rail button { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 8px 2px; border: 0; background: none; border-radius: 8px; color: var(--ink-2); font-size: 11.5px; font-weight: 500; cursor: pointer; text-decoration: none !important; text-align: center; line-height: 1.2; }
.rail a svg, .rail button svg { width: 24px; height: 24px; }
.rail a:hover, .rail button:hover { background: #e4e7ec; color: var(--ink); }
.rail a.on { color: var(--navy); font-weight: 700; }
.rail .tile { width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; color: #fff; }
.rail .tile svg { width: 19px; height: 19px; }
.rail .lbl { font-size: 11px; font-weight: 700; letter-spacing: .06em; color: var(--faint); text-align: center; margin: 12px 0 4px; }
.rail .sep { border-top: 1px solid var(--line-2); margin: 8px 6px; }
.rail .bottom { margin-top: auto; }
.topline { grid-column: 2 / span 2; height: 60px; display: flex; align-items: center; gap: 16px; padding: 0 22px 0 24px; background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
.shell.collapsed .topline { grid-column: 3; }
.search { flex: 1; max-width: 560px; position: relative; }
.search input { width: 100%; height: 40px; border: 1px solid transparent; border-radius: 6px; background: #f2f4f7; padding: 0 14px 0 40px; font-size: 14.5px; }
.search input::placeholder { color: var(--ink-2); }
.search input:focus { outline: none; background: #fff; border-color: var(--navy-2); box-shadow: 0 0 0 3px rgba(31,55,150,.12); }
.search svg { position: absolute; left: 13px; top: 11px; width: 18px; height: 18px; color: var(--ink-2); }
.topline .sp { flex: 1; }
.iconbtn { width: 38px; height: 38px; border-radius: 8px; border: 0; background: none; display: grid; place-items: center; color: var(--ink-2); cursor: pointer; text-decoration: none !important; }
.iconbtn:hover { background: var(--hover); color: var(--ink); }
.iconbtn svg { width: 21px; height: 21px; }
.av { width: 30px; height: 30px; border-radius: 50%; background: var(--navy-2); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 13px; }
.panel { background: #fff; border-right: 1px solid var(--line); padding: 16px 12px 24px; position: sticky; top: 60px; height: calc(100vh - 60px); overflow-y: auto; }
.panel .ph { display: flex; justify-content: space-between; align-items: center; margin: 0 4px 10px 8px; font-size: 12px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--ink-2); }
.panel .grp > button { width: 100%; display: flex; align-items: center; gap: 12px; height: 44px; padding: 0 8px; border: 0; background: none; border-radius: 8px; font-size: 15px; font-weight: 500; color: var(--ink); cursor: pointer; text-align: left; }
.panel .grp > button:hover { background: var(--hover); }
.panel .grp > button .tile { width: 22px; height: 22px; border-radius: 6px; display: grid; place-items: center; color: #fff; flex: none; }
.panel .grp > button .tile svg { width: 13px; height: 13px; }
.panel .grp > button .chev { margin-left: auto; width: 16px; height: 16px; color: var(--ink-2); transition: transform .15s; }
.panel .grp.open > button .chev { transform: rotate(180deg); }
.panel .sub { display: none; padding: 2px 0 8px; }
.panel .grp.open .sub { display: block; }
.panel .sub a { display: block; padding: 9px 12px 9px 42px; border-radius: 8px; color: var(--ink); font-size: 14.5px; text-decoration: none !important; }
.panel .sub a:hover { background: var(--hover); }
.panel .sub a.on { background: #e9ecf1; font-weight: 600; }
.page { grid-column: 3; min-width: 0; padding: 26px 32px 64px; }
.shell.collapsed .page { grid-column: 3; }
main { max-width: 1320px; }

.panel .soonh { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); }
.panel .grp.soon > button { color: var(--ink-2); }
.panel .grp.soon .tile { opacity: .75; }
.badge { display: inline-flex; align-items: center; height: 20px; padding: 0 7px; border-radius: 10px; background: var(--orange-bg); color: #b45309; font-size: 11px; font-weight: 700; margin-left: 8px; white-space: nowrap; }
.badge.big { height: 28px; padding: 0 12px; font-size: 13px; border-radius: 14px; margin: 0; }
.soonpage { max-width: 720px; }
.soonpage .tile { width: 44px; height: 44px; border-radius: 11px; display: grid; place-items: center; color: #fff; }
.soonpage .tile svg { width: 24px; height: 24px; }
.soonpage .lead { font-size: 16px; margin: 18px 0 8px; }
.soonlist { margin: 0 0 18px; padding-left: 20px; font-size: 15px; line-height: 1.9; }
.soonpage .note { background: var(--info-bg); border-radius: 10px; padding: 14px 16px; margin-bottom: 16px; color: var(--navy); }

.members td { vertical-align: middle; white-space: normal; }
.members select.input { height: 34px; min-width: 150px; }
.cochecks { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; }
.cochecks label { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; cursor: pointer; }
.cochecks label.all { font-weight: 500; color: var(--ink-2); padding-right: 12px; border-right: 1px solid var(--line); }
.cochecks.off { opacity: .4; pointer-events: none; }

/* ---------- page header ---------- */
.topbar { margin-bottom: 20px; }
.topbar .crumb { color: var(--ink-2); font-size: 13px; margin-bottom: 8px; }
.topbar .crumb a { color: var(--ink-2); }
.topbar h1 { margin: 0 0 18px; font-size: 34px; font-weight: 700; letter-spacing: -.02em; line-height: 1.2; }
.topbar #actions { display: flex; gap: 12px; flex-wrap: wrap; }
.topbar #actions:empty { display: none; }
.topbar .btn { height: 40px; padding: 0 22px; font-size: 15px; min-width: 120px; }
.topbar .btn.ghost { border: 2px solid var(--navy-2); color: var(--navy-2); background: #fff; }
.topbar .btn.ghost:hover { background: var(--info-bg); }
.topbar .btn.orange { background: var(--navy); border-color: var(--navy); }
.topbar .btn.orange:hover { background: var(--navy-2); border-color: var(--navy-2); }

/* ---------- blocks ---------- */
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 20px; }
.grid { display: grid; gap: 16px; }
.g2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); }
.g4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 170px), 1fr)); }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.sp { flex: 1; }
.hint { color: var(--muted); font-size: 13px; }
.bad { color: var(--err); } .ok { color: var(--ok); }
.mono { font-family: "JetBrains Mono", ui-monospace, Consolas, monospace; font-size: 12.5px; }
.empty { text-align: center; padding: 36px 10px !important; color: var(--muted); }
.stat { display: flex; flex-direction: column; gap: 6px; padding: 18px 20px; }
.stat .l { color: var(--muted); font-size: 13px; font-weight: 500; }
.stat .v { font-size: 24px; font-weight: 700; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.stat .s { font-size: 12.5px; color: var(--muted); }
.stat.warn .v { color: var(--warn); }

/* ---------- tables ---------- */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 13px; }
th { text-align: left; font-size: 12.5px; font-weight: 600; color: var(--ink-2); padding: 10px 12px; border-bottom: 2px solid var(--line-2); white-space: nowrap; background: #fff; }
td { padding: 12px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
td.n, th.n { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
tr.click { cursor: pointer; } tr.click:hover td { background: var(--hover); }
.grid-t th + th, .grid-t td + td { border-left: 1px solid var(--line); }
.grid-t th { height: 46px; font-size: 14px; color: var(--ink); border-bottom-width: 2px; }
.grid-t td { padding: 12px; vertical-align: middle; white-space: nowrap; }
.listbar { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-bottom: 14px; }
.listbar .input { height: 40px; }
.listbar .q { position: relative; flex: 0 1 260px; }
.listbar .q svg { position: absolute; left: 11px; top: 11px; width: 18px; height: 18px; color: var(--ink-2); }
.listbar .q .input { padding-left: 38px; }
.pager { display: flex; justify-content: flex-end; gap: 14px; color: var(--ink-2); font-size: 14px; margin: 4px 0 10px; }
tr.tot td { font-weight: 700; border-top: 2px solid var(--ink-2); border-bottom: 0; }
tr.sub td { font-weight: 600; background: var(--soft); color: var(--ink); }
tr.void td { color: var(--faint); text-decoration: line-through; }
.pill { display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: 11px; font-size: 12px; font-weight: 600; background: var(--soft); color: var(--ink-2); border: 1px solid var(--line); white-space: nowrap; }
.pill.s-open { background: var(--info-bg); color: var(--navy-2); border-color: transparent; }
.pill.s-partial, .pill.warn { background: var(--warn-bg); color: var(--warn); border-color: transparent; }
.pill.s-paid, .pill.s-closed, .pill.s-posted, .pill.live { background: var(--ok-bg); color: var(--ok); border-color: transparent; }
.pill.s-void, .pill.err, .pill.late { background: var(--err-bg); color: var(--err); border-color: transparent; }
.docno { font-family: "JetBrains Mono", ui-monospace, Consolas, monospace; font-size: 12.5px; font-weight: 600; color: var(--navy-2); white-space: nowrap; }

/* ---------- tabs, filters ---------- */
.tabs { display: flex; gap: 22px; border-bottom: 1px solid var(--line); margin-bottom: 18px; overflow-x: auto; overflow-y: hidden; scrollbar-width: none; }
.tabs a { padding: 10px 2px; color: var(--muted); font-weight: 600; border-bottom: 3px solid transparent; margin-bottom: -1px; white-space: nowrap; text-decoration: none !important; }
.tabs a:hover { color: var(--ink); }
.tabs a.on { color: var(--navy); border-bottom-color: var(--orange); }
.card form.row .input { height: 34px; }

/* ---------- document ---------- */
.block { margin-top: 30px; }
.block > h3 { font-size: 18px; margin-bottom: 10px; }
.chainbar { background: var(--soft); border: 1px solid var(--line); border-radius: 10px; padding: 12px 16px; margin-bottom: 18px; }
.sheet.paper { max-width: 1000px; }
.chain { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.chain a { padding: 4px 10px; border-radius: 6px; border: 1px solid var(--line); font: 600 12px "JetBrains Mono", ui-monospace, monospace; color: var(--ink-2); text-decoration: none !important; }
.chain a:hover { border-color: var(--navy-2); color: var(--navy-2); }
.chain a.me { background: var(--navy); border-color: var(--navy); color: #fff; }
.chain a.v { text-decoration: line-through !important; opacity: .55; }
.chain .arr { color: var(--faint); }
.paper .ph { display: flex; justify-content: space-between; gap: 24px; padding-bottom: 16px; margin-bottom: 18px; border-bottom: 1px solid var(--line); }
.paper .ph h2 { margin: 0 0 4px; font-size: 18px; }
.paper .ph .t { text-align: right; }
.paper .ph .t span { font-size: 12px; font-weight: 700; letter-spacing: .08em; color: var(--muted); }
.paper .ph .t b { display: block; font-size: 17px; margin-top: 2px; }
.paper .meta { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px 24px; margin-bottom: 20px; }
.paper .meta div span { display: block; color: var(--muted); font-size: 12px; font-weight: 600; margin-bottom: 2px; }
.paper .sign { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; margin-top: 60px; text-align: center; font-size: 13px; }
.paper .sign div { border-top: 1px solid #888; padding-top: 6px; }
.totals { margin-left: auto; min-width: 300px; font-size: 14px; }
.totals div { display: flex; justify-content: space-between; gap: 20px; padding: 5px 0; font-variant-numeric: tabular-nums; }
.totals .big { font-weight: 700; font-size: 17px; border-top: 1px solid var(--ink-2); margin-top: 6px; padding-top: 10px; }

/* ---------- forms ---------- */
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 0 18px; }
.lines { margin-top: 6px; }
.lines th { background: var(--soft); border-bottom: 1px solid var(--line-2); }
.lines td { padding: 8px 8px; }
.lines input, .lines select, .lines textarea { width: 100%; height: 34px; padding: 0 8px; border: 1px solid var(--line-2); border-radius: 6px; background: #fff; font-size: 13.5px; }
.lines textarea { height: auto; padding: 6px 8px; font-family: "JetBrains Mono", ui-monospace, monospace; font-size: 12.5px; resize: vertical; }
.lines .q { width: 84px; } .lines .p { width: 150px; } .lines .x { width: 40px; }
.lines td [data-f=description] { margin-top: 6px; color: var(--ink-2); }
.sns { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 6px; }
.sns button { border: 1px solid var(--line-2); background: #fff; border-radius: 4px; padding: 2px 6px; font: 600 11.5px "JetBrains Mono", ui-monospace, monospace; cursor: pointer; color: var(--ink-2); }
.sns button:hover { border-color: var(--navy-2); }
.sns button.on { background: var(--navy); color: #fff; border-color: var(--navy); }
.docform { padding-bottom: 8px; }
.dhead { display: flex; flex-direction: row-reverse; gap: 28px; align-items: flex-start; padding-bottom: 8px; margin-bottom: 10px; border-bottom: 1px solid var(--line); }
.dhead .form-grid { flex: 1; }
.dhead .amount { text-align: right; min-width: 220px; padding-top: 2px; }
.dhead .amount span { display: block; font-size: 12px; font-weight: 700; letter-spacing: .06em; color: var(--ink-2); }
.dhead .amount b { display: block; font-size: 34px; font-weight: 700; letter-spacing: -.02em; font-variant-numeric: tabular-nums; line-height: 1.2; }
.formbar { position: sticky; bottom: 0; z-index: 5; background: #fff; border-top: 1px solid var(--line); margin: 24px -32px -64px; padding: 14px 32px; box-shadow: 0 -6px 18px rgba(16,24,40,.06); }
.formbar .btn { height: 40px; min-width: 120px; }
@media (max-width: 900px) { .dhead { flex-direction: column; } .dhead .amount { text-align: left; } .formbar { margin: 20px -14px -48px; padding: 12px 14px; } }

/* ---------- menus & dialogs ---------- */
.menu { position: fixed; z-index: 30; background: #fff; border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 16px 40px rgba(16,24,40,.16); padding: 18px 20px; display: grid; grid-template-columns: repeat(3, minmax(170px, 1fr)); gap: 4px 28px; left: 84px; top: 66px; }
.menu h4 { margin: 0 0 6px; font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--faint); }
.menu a { display: block; color: var(--ink); padding: 7px 8px; margin: 0 -8px; border-radius: 6px; font-size: 14px; text-decoration: none !important; }
.menu a:hover { background: var(--hover); }
.modal-bg { position: fixed; inset: 0; background: rgba(16,24,40,.4); display: grid; place-items: center; z-index: 40; padding: 16px; }
.modal { width: min(660px, 100%); max-height: calc(100vh - 32px); overflow-y: auto; box-shadow: 0 24px 60px rgba(16,24,40,.25); padding: 24px; }
.toast { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); max-width: min(480px, calc(100vw - 40px)); background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 8px; z-index: 99; display: none; font-weight: 500; }

/* ---------- multi-column reports (Zoom Group, per divisi) ---------- */
.coltable { font-size: 13px; }
.coltable th.n, .coltable td.n { min-width: 112px; }
.coltable td:first-child { white-space: nowrap; }
.coltable .el { background: #fff8f0; color: #9a4a00; }
.coltable .gt { background: var(--info-bg); font-weight: 700; color: var(--navy); }
.coltable tr.subt td { font-weight: 600; border-top: 1px solid var(--line-2); }
.coltable tr.tot.big td { font-size: 15px; }
.coltable tr.warnrow td { color: var(--warn); font-style: italic; }

/* ---------- flow map (Alur kerja): fixed 1040x600 canvas, nodes in %, lines in SVG ---------- */
.flowwrap { overflow-x: auto; padding-bottom: 4px; }
.flowcanvas { position: relative; width: 100%; min-width: 960px; max-width: 1240px; }
.flowcanvas > svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.lane-bg { fill: color-mix(in srgb, var(--lc) 4%, #fff); stroke: var(--line); stroke-width: 1; }
.lane-bg.panel { fill: #f7f8fa; }
.flines polyline { fill: none; stroke: #8a93a3; stroke-width: 1.4; stroke-linejoin: round; }
#fa path { fill: #8a93a3; }
.flane { position: absolute; left: 0; width: 2.6%; display: grid; place-items: center; border-right: 1px solid var(--line); background: color-mix(in srgb, var(--lc) 10%, #fff); border-radius: 10px 0 0 10px; }
.flane span { writing-mode: vertical-rl; transform: rotate(180deg); font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--lc); }
.fptitle { position: absolute; font-weight: 700; font-size: 13px; color: var(--ink); }
.fn { position: absolute; width: 104px; margin-left: -52px; margin-top: -24px; display: flex; flex-direction: column; align-items: center; text-align: center; }
.fn .fi { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; color: var(--c); background: #fff; border: 1.5px solid color-mix(in srgb, var(--c) 40%, #fff);
  box-shadow: 0 1px 2px rgba(16,24,40,.06); transition: transform .15s, box-shadow .15s, background .15s; }
.fn .fi svg { width: 24px; height: 24px; }
.fn .fi:hover { transform: translateY(-2px); background: color-mix(in srgb, var(--c) 10%, #fff); box-shadow: 0 6px 16px color-mix(in srgb, var(--c) 25%, transparent); }
.fn .ft { margin-top: 5px; font-size: 12.5px; font-weight: 600; line-height: 1.25; color: var(--ink); text-decoration: none !important; background: rgba(255,255,255,.85); border-radius: 4px; padding: 0 3px; }
.fn .ft:hover { color: var(--c); }
.fn .fb { position: absolute; top: -7px; left: calc(50% + 14px); min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px; background: var(--orange); color: #fff; font-size: 12px; font-weight: 700; display: grid; place-items: center; border: 2px solid #fff; text-decoration: none !important; }
.fn.soon .fi { color: #9aa1ad; border-color: var(--line-2); background: #fafafa; }
.fn.soon .ft { color: var(--faint); }

/* ---------- home ---------- */
.quick { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding-bottom: 22px; margin-bottom: 22px; border-bottom: 1px solid var(--line); }
.quick .ql { font-weight: 700; margin-right: 6px; }
.chipbtn { height: 34px; display: inline-flex; align-items: center; padding: 0 14px; border: 1px solid var(--line-2); border-radius: 17px; background: #fff; color: var(--ink); font-weight: 600; font-size: 14px; cursor: pointer; text-decoration: none !important; }
.chipbtn:hover { border-color: var(--navy-2); background: var(--info-bg); }
.chipbtn.link { border-color: transparent; color: var(--navy-2); }
h2.sect { font-size: 20px; font-weight: 700; margin: 0 0 14px; }
.widgets { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 18px; }
.widget { border: 1px solid var(--line); border-radius: 12px; padding: 18px 20px 16px; display: flex; flex-direction: column; gap: 6px; min-height: 180px; background: #fff; }
.widget .wl { font-size: 12px; font-weight: 700; letter-spacing: .05em; color: var(--ink-2); margin-bottom: 6px; }
.widget .big { font-size: 28px; font-weight: 700; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.widget .kv { display: flex; justify-content: space-between; gap: 10px; padding-top: 8px; margin-top: 4px; border-top: 1px solid var(--line); font-size: 14px; }
.widget .wlink { margin-top: auto; padding-top: 12px; font-weight: 600; font-size: 14px; }
.widget .bars { height: 130px; border-bottom: 0; padding-bottom: 22px; }
.todo a { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none !important; font-size: 14px; }
.todo a:last-child { border-bottom: 0; }
.todo a:hover span { color: var(--navy-2); text-decoration: underline; }
.todo b { font-variant-numeric: tabular-nums; }
.bars { display: flex; align-items: flex-end; gap: 14px; height: 170px; padding: 10px 0 26px; border-bottom: 1px solid var(--line); }
.bars .b { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; height: 100%; position: relative; }
.bars .b div { background: var(--navy-2); border-radius: 4px 4px 0 0; min-height: 2px; }
.bars .b:last-child div { background: var(--orange); }
.bars .b span { position: absolute; bottom: -22px; left: 0; right: 0; text-align: center; font-size: 12px; color: var(--muted); }
.flow { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-bottom: 6px; }
.flow a { border: 1px solid var(--line-2); border-radius: 6px; padding: 7px 12px; font-weight: 600; color: var(--ink); text-decoration: none !important; }
.flow a:hover { border-color: var(--orange); background: var(--orange-bg); }
.flow span { color: var(--faint); }
.replist td { padding: 14px 12px; vertical-align: middle; }
.replist td:first-child { width: 260px; font-weight: 600; font-size: 14.5px; }
.repbar { align-items: flex-end; padding: 16px 18px 2px; background: var(--soft); border: 1px solid var(--line); border-radius: 10px; margin-bottom: 18px; }
.repbar label.field { margin-bottom: 14px; }
.repbar label.field > .input { display: block; }
.repbar .btn { margin-bottom: 14px; height: 40px; }
.sheet { border: 1px solid var(--line); border-radius: 10px; padding: 26px 30px 30px; }
.sheet.narrow { max-width: 860px; }
.rephead { text-align: center; margin-bottom: 22px; }
.rephead .co { font-weight: 600; color: var(--ink-2); }
.rephead .t { font-size: 22px; font-weight: 700; margin: 2px 0; }
.sheet table td { font-size: 13.5px; }
.sheet tr.sub td { background: none; border-bottom: 1px solid var(--line-2); padding-top: 18px; }

/* ---------- login ---------- */
.login { min-height: 100vh; display: grid; place-items: center; padding: 16px; background: #fff; }
.login .card { width: 100%; max-width: 380px; padding: 28px; }
.login-brand { display: flex; align-items: center; gap: 10px; font-size: 20px; font-weight: 700; margin-bottom: 10px; }

/* ---------- print ---------- */
.only-print { display: none !important; }
@media print {
  .rail, .panel, .topline, .topbar, .noprint, .toast { display: none !important; }
  .shell { display: block; } .page { padding: 0; } main { max-width: none; }
  .card { border: 0; padding: 0; }
  .only-print { display: block !important; }
  .paper .sign.only-print { display: grid !important; }
}
@media (max-width: 1100px) {
  .shell, .shell.collapsed { grid-template-columns: 76px 0 1fr; }
  .shell .panel { display: none; }
  .shell.panel-open .panel { display: block; position: fixed; left: 76px; top: 60px; width: 260px; z-index: 25; box-shadow: 12px 0 30px rgba(16,24,40,.12); }
  .topline { grid-column: 3; }
}
@media (max-width: 700px) {
  .shell, .shell.collapsed { grid-template-columns: 1fr; }
  .rail { position: static; height: auto; flex-direction: row; overflow-x: auto; grid-row: auto; padding: 6px; }
  .rail .lbl, .rail .sep, .rail .logo { display: none; }
  .topline, .page { grid-column: 1; }
  .search, .cobtn .hint { display: none; }
  .page { padding: 18px 14px 48px; }
  .topbar h1 { font-size: 26px; }
  .shell.panel-open .panel { left: 0; top: 0; height: 100vh; }
  .menu { left: 12px; right: 12px; grid-template-columns: 1fr 1fr; }
}

/* Warehouse role: the server sends no prices; hide the money columns that would stay empty. */
.nomoney .money { display: none !important; }

/* Role guide on the users card */
.roleguide { margin: 0 0 14px; }
.roleguide summary { cursor: pointer; font-weight: 600; color: var(--navy-2); padding: 6px 0; }
.roleguide table { margin-top: 8px; }

/* Purchasing: no open balances (what we owe vendors is finance data). */
.nobalance .balance { display: none !important; }

/* Locked menus: visible to everyone, open only for the roles that may use them. */
.sub a.locked, .rail a.locked { color: var(--muted); }
.sub a.locked .lock { width: 13px; height: 13px; margin-left: 6px; vertical-align: -2px; opacity: .8; }
.grp.locked > button { color: var(--muted); }
.grp.locked > button .tile { filter: grayscale(1); opacity: .55; }
.grp > button .lock { width: 14px; height: 14px; margin-left: 6px; opacity: .7; }
.rail a.locked svg { opacity: .45; }
.maplink { display: block; margin: 0 12px 10px; font-size: 13px; font-weight: 600; }
.lockcard { max-width: 680px; }
.lockcard .biglock { width: 34px; height: 34px; color: var(--muted); }

/* Company chooser ("Pilih perusahaan"): its own page, drawn as the group chart. */
.cobtn { display: flex; align-items: center; gap: 8px; height: 36px; padding: 0 10px; border-radius: 6px; color: var(--ink);
  white-space: nowrap; max-width: 320px; overflow: hidden; text-decoration: none !important; }
.cobtn b { font-size: 15px; overflow: hidden; text-overflow: ellipsis; }
.cobtn .chev { width: 16px; height: 16px; flex: none; }
.cobtn:hover { background: var(--hover); }
.chooser { max-width: 1120px; margin: 0 auto; padding: 28px 20px 48px; }
.chooser-top { display: flex; align-items: center; gap: 10px; margin-bottom: 36px; }
.chooser-top .mark { width: 30px; height: 30px; border-radius: 7px; background: var(--navy); color: #fff; display: grid;
  place-items: center; font-weight: 800; }
.chooser h1 { margin: 0 0 6px; }
.chooser .sect { margin-top: 28px; }
.coinit { width: 48px; height: 48px; flex: none; border-radius: 8px; color: #fff; display: grid; place-items: center;
  font-weight: 800; font-size: 13px; letter-spacing: .3px; }
.cotags { display: flex; gap: 6px; margin-top: 6px; }
.cotags:empty { display: none; }

/* Group chart on the chooser: org-chart tree with connector lines; vertical list on phones. */
.treewrap { overflow-x: auto; padding: 18px 0 6px; }
.tree, .tree ul { display: flex; justify-content: center; margin: 0; padding: 0; position: relative; }
.tree ul { padding-top: 22px; }
/* Wider than the screen: grow to its content so the left side can still be scrolled to (no clipped branches). */
.treewrap > .tree { width: max-content; min-width: 100%; }
.tree li { list-style: none; position: relative; padding: 22px 6px 0; display: flex; flex-direction: column; align-items: center; }
.tree > li { padding-top: 0; }
.tree li::before, .tree li::after { content: ''; position: absolute; top: 0; right: 50%; width: 50%; height: 22px;
  border-top: 1px solid var(--line-2); }
.tree li::after { right: auto; left: 50%; border-left: 1px solid var(--line-2); }
.tree > li::before, .tree > li::after, .tree li:only-child::before { display: none; }
.tree li:only-child::after { width: 0; border-top: 0; }
.tree li:first-child::before, .tree li:last-child::after { border: 0; }
.tree li:last-child::before { border-right: 1px solid var(--line-2); border-radius: 0 6px 0 0; }
.tree li:first-child::after { border-radius: 6px 0 0 0; }
.tree ul::before { content: ''; position: absolute; top: 0; left: 50%; height: 22px; border-left: 1px solid var(--line-2); }
.node { width: 150px; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 14px 10px 12px;
  background: #fff; border: 1px solid var(--line); border-radius: 8px; text-align: center; font: inherit; color: var(--ink); }
button.node { cursor: pointer; }
button.node:hover { border-color: var(--navy-2); }
button.node:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; }
.node b { font-size: 13.5px; line-height: 1.3; }
.node small { color: var(--muted); font-size: 12px; display: flex; align-items: center; gap: 4px; }
.node .lock { width: 12px; height: 12px; }
.node .coinit { width: 42px; height: 42px; font-size: 12px; }
.node.top { width: 260px; padding: 18px 14px 16px; border: 2px solid var(--navy); }
.node.top b { font-size: 16px; }
.node.top .coinit { width: 52px; height: 52px; font-size: 14px; }
.node.div { background: var(--soft); border-style: dashed; }
.node.div .coinit { background: #fff; color: var(--navy-2); border: 1px solid var(--line-2); }
.node.locked { opacity: .55; }
.node.locked .coinit { background: var(--faint); }
.cotags { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; }
.cotags:empty { display: none; }
.outside { display: flex; gap: 12px; flex-wrap: wrap; }
@media (max-width: 760px) {
  .chooser { padding: 18px 16px 36px; }
  .tree, .tree ul { display: block; }
  .treewrap > .tree { width: auto; }
  .tree ul { padding: 0 0 0 22px; border-left: 1px solid var(--line-2); margin-left: 20px; }
  .tree li { display: block; padding: 10px 0 0; }
  .tree li::before, .tree li::after, .tree ul::before { display: none; }
  .node, .node.top { width: 100%; box-sizing: border-box; display: grid; grid-template-columns: auto 1fr; column-gap: 12px;
    row-gap: 2px; align-items: center; text-align: left; padding: 12px; }
  .node .coinit, .node.top .coinit { grid-row: span 3; width: 42px; height: 42px; }
  .node b, .node small, .node .cotags { grid-column: 2; justify-content: flex-start; }
  .node.top b { font-size: 15px; }
}
