/* Ledger Books - navy and brass theme on top of the shared iPOS app.css */
:root { --brand: #1e3a8a; --brand-2: #172f70; --brand-soft: #e8edfb; --brass: #d4a23a; --brass-soft: #fbf3dc; --navy: #0b1b3a; }
.sidenav { background: #0b1b3a; }
.navlink.active { background: linear-gradient(90deg, rgba(212,162,58,.28), rgba(212,162,58,.08)); color: #fff; box-shadow: inset 3px 0 0 var(--brass); }
.login-screen { background: linear-gradient(160deg, #0b1b3a, #1e3a8a); }
.shopbar { background: linear-gradient(90deg, #050d20, #0b1b3a 60%, #13295a); border-bottom: 2px solid var(--brass); }
.btn.primary { background: var(--brand); border-color: var(--brand); }
.btn.primary:hover { background: var(--brand-2); }
.small { font-size: 13px; }
.muted { color: var(--muted); }
.neg { color: var(--bad); }
.pos { color: var(--ok); }
.mono { font-family: ui-monospace, Menlo, Consolas, monospace; }
label.f.chk { display: flex; gap: 8px; align-items: center; font-weight: 500; }
tr.click { cursor: pointer; }
tr.click:hover td { background: var(--brand-soft); }
tr.tot td { border-top: 2px solid var(--line); }
tr.off td { opacity: .55; }
tr.voided td { opacity: .55; text-decoration: line-through; }
tr.voided td:last-child { text-decoration: none; opacity: 1; }
tr.cleared td { color: var(--muted); }
tr.sel td { background: var(--brass-soft); }
.banner.info { background: var(--brand-soft); color: var(--brand); }
.note { padding: 10px 14px; border-radius: 10px; font-weight: 600; font-size: 14px; }
.note.info { background: var(--brand-soft); color: var(--brand); }
.note.warn { background: var(--warn-soft); color: var(--warn); }
.note.bad { background: var(--bad-soft); color: var(--bad); }
.note a { color: inherit; font-weight: 800; }
.note svg { width: 16px; height: 16px; vertical-align: -3px; }
.banner.info svg { width: 16px; height: 16px; vertical-align: -3px; }
.ac-list:empty { display: none; }
button.ac-row { width: 100%; border: 0; background: transparent; text-align: left; font: inherit; justify-content: flex-start; cursor: pointer; }
#gsr button.ac-row { border-bottom: 1px solid var(--line); border-radius: 0; }
.ac-row small { display: block; font-size: 12px; }
.more-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.more-item { display: flex; flex-direction: column; align-items: center; gap: 8px; text-decoration: none; color: var(--ink); margin: 0; }
.more-item svg { width: 28px; height: 28px; color: var(--brand); }
.feat-row { display: flex; gap: 10px; align-items: flex-start; padding: 6px 0; border-bottom: 1px solid var(--line); cursor: pointer; }
.feat-row input { margin-top: 4px; }
.grid.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); margin-bottom: 16px; }
.tabs { flex-wrap: wrap; }
.stat { border-top: 3px solid var(--brass); }
.stat.ok { border-top-color: var(--ok); } .stat.bad { border-top-color: var(--bad); }
/* top bar company / year switcher */
.ctx { display: flex; gap: 8px; align-items: center; }
.ctx select { width: auto; min-height: 34px; padding: 4px 8px; font-weight: 600; max-width: 220px; }
.lockchip { display: inline-flex; gap: 4px; align-items: center; background: var(--brass-soft); color: #7a5a0c; border: 1px solid var(--brass); border-radius: 99px; padding: 3px 10px; font-size: 12.5px; font-weight: 700; white-space: nowrap; }
.lockchip svg { width: 13px; height: 13px; }
/* voucher form */
table.vlines input, table.vlines select { width: 100%; min-width: 0; }
table.vlines td { padding: 4px 4px; }
table.vlines th:last-child, table.vlines td:last-child { width: 38px; }
table.vlines td:first-child { min-width: 220px; }
input.amt { text-align: right; min-width: 110px; font-variant-numeric: tabular-nums; }
.vprev { margin-top: 10px; padding: 10px 12px; background: var(--brass-soft); border-radius: 10px; border: 1px solid #ecd9a2; }
.vprev h3 { font-size: 14px; }
.vprev table td, .vprev table th { padding: 5px 6px; }
/* reports */
table.rep td, table.rep th { font-variant-numeric: tabular-nums; }
table.rep tr.sec td { background: var(--brand); color: #fff; font-weight: 700; letter-spacing: .02em; }
table.rep tr.sec td a, table.rep tr.sec td .muted { color: #fff; opacity: .85; }
table.rep tr.sub td { background: var(--brand-soft); font-weight: 600; }
table.rep tr.tot td { border-top: 2px solid #8a97b8; font-weight: 700; }
table.rep tr.grand td { background: var(--navy); color: #fff; font-weight: 800; }
table.rep td a { text-decoration: none; }
table.rep td a:hover { text-decoration: underline; }
.rep-title { margin-bottom: 8px; }
/* dashboard chart */
.bars { display: flex; gap: 14px; align-items: flex-end; height: 150px; padding: 8px 4px 0; }
.barcol { flex: 1; display: flex; flex-direction: column; align-items: center; height: 100%; }
.bargrp { flex: 1; width: 100%; display: flex; gap: 4px; align-items: flex-end; justify-content: center; }
.bargrp i { display: block; width: 36%; max-width: 34px; border-radius: 4px 4px 0 0; min-height: 2px; }
.b-inc { background: var(--brand); } .b-exp { background: var(--brass); }
.lg { display: inline-block; width: 11px; height: 11px; border-radius: 3px; vertical-align: -1px; } .lg.inc { background: var(--brand); } .lg.exp { background: var(--brass); }
/* print */
.a4-head { display: flex; align-items: center; gap: 14px; border-bottom: 2px solid #000; padding-bottom: 8px; margin-bottom: 12px; }
.a4-head img { width: 60px; height: 60px; object-fit: contain; }
.a4-head h1 { font-size: 20px; margin: 0; }
.a4-title { margin-left: auto; text-align: right; }
.a4-head h2 { font-size: 18px; margin: 0; }
.a4 h3 { margin: 14px 0 6px; }
.a4 .kv > :nth-child(odd) { color: #333; font-weight: 600; }
.a4 th { background: #eee; text-align: left; }
.a4 th.right, .a4 td.right { text-align: right; }
.a4 table.rep tr.sec td { background: #ddd; color: #000; }
.a4 table.rep tr.sub td { background: #f1f1f1; }
.a4 table.rep tr.grand td { background: #222; color: #fff; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.a4 table.rep tr.sec td, .a4 table.rep tr.sub td { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.a4 a { color: inherit; text-decoration: none; }
.a4 table { font-size: 12px; }
#sSel { max-width: 340px; }
@media (max-width: 820px) {
  .topbar { flex-wrap: wrap; height: auto; min-height: 56px; padding-top: 8px; padding-bottom: 8px; row-gap: 8px; }
  #topActions { flex: 1 1 100%; order: 9; }
  .ctx { order: 8; flex: 1 1 100%; }
  .ctx select { flex: 1; max-width: none; }
  .tablewrap table { min-width: 560px; font-size: 13.5px; }
  table.vlines { min-width: 760px; }
  .tablewrap td, .tablewrap th { padding: 8px 8px; }
  .grid.g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat .val { font-size: 18px; }
  .row > select, .row > input { flex: 1 1 100%; max-width: none; }
}
