/* Accounts Book - forest green and gold, on top of the shared iPOS app.css */
:root { --brand: #15803d; --brand-2: #166534; --brand-soft: #e8f5ec; --gold: #fbbf24; --gold-soft: #fef3c7; --bg: #f3f7f4; --ok: #15803d; --ok-soft: #e3f4ea; }
.sidenav { background: #052e16; }
.navlink.active { background: var(--brand); color: #fff; box-shadow: inset 3px 0 0 var(--gold); }
.login-screen { background: linear-gradient(160deg, #052e16, #15803d); }
.shopbar { background: linear-gradient(90deg, #021b0c, #052e16 60%, #0a4120); }
.small { font-size: 13px; }
.nw, .badge { white-space: nowrap; }
.muted { color: var(--muted); }
.neg { color: var(--bad); }
.pos-bal { color: var(--ok); }
.in-amt { color: var(--ok); font-weight: 600; }
.out-amt { color: var(--bad); font-weight: 600; }
.stack { display: flex; flex-direction: column; gap: 8px; }
label.f.chk, .chk-inline { 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); background: #f8faf8; }
tr.void td { opacity: .5; text-decoration: line-through; }
tr.void td .badge { text-decoration: none; }
tr.quiet td { color: var(--muted); }
tr.trf td { background: #fafaf4; color: #4b5563; }
.banner.info { background: var(--brand-soft); color: var(--brand); }
.btn.bad-soft { background: #fff; border-color: #f2c4c0; color: var(--bad); }
.btn.bad-soft:hover { background: var(--bad-soft); }
.btn.primary { box-shadow: inset 0 -2px 0 rgba(0,0,0,.12); }
kbd { font: inherit; font-size: 11px; background: rgba(0,0,0,.08); border-radius: 4px; padding: 0 5px; margin-left: 4px; }
.btn.primary kbd, .btn.ok kbd { background: rgba(255,255,255,.22); }
.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; text-align: center; }
.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)); }
.stat.acct-cash { border-left: 4px solid var(--gold); }
.stat.acct-bank { border-left: 4px solid #15803d; }
.stat.acct-wallet { border-left: 4px solid #0e7490; }
.pbar { height: 8px; border-radius: 4px; background: #e5e7eb; overflow: hidden; }
.pbar > div { height: 100%; border-radius: 4px; }
.row > input:not([type=checkbox]):not([type=radio]):not([type=file]), .row > select { width: auto; }
.stat .val { white-space: nowrap; }
.quick .btn { min-height: 44px; font-weight: 600; }
/* 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-head h2 { margin-left: auto; font-size: 18px; }
.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 th, .a4 table td { border-bottom: 1px solid #ccc; padding: 4px 6px; font-size: 12.5px; }
.a4 tr.tot td { border-top: 2px solid #000; }
.a4 .sig { display: flex; justify-content: space-between; margin-top: 50px; }
.a4 .sig div { border-top: 1px solid #000; padding-top: 4px; width: 28%; text-align: center; font-size: 12px; }
@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; display: flex; gap: 8px; }
  #topActions .btn { flex: 1; }
  #topActions kbd { display: none; }
  .tablewrap table { min-width: 560px; font-size: 13.5px; }
  .tablewrap td, .tablewrap th { padding: 8px 8px; }
  .grid[style*="repeat(auto-fill"] { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  .stat .val { font-size: 19px; }
  .row > select, .row > input:not([type=checkbox]) { flex: 1 1 100%; max-width: none !important; }
  .quick .btn { flex: 1 1 45%; }
}
.modal footer { flex-wrap: wrap; }
@media (max-width: 820px) { .modal footer .btn { flex: 1 1 auto; } }
