[hidden] { display: none !important; }
/* GRiN Finance (owner preview). Builds on styles.css variables. */
.fin-tabs { display:flex; gap:8px; flex-wrap:wrap; margin: 4px 0 14px; }
.fin-tabs button { border:1px solid var(--border); background:#fff; color:var(--ink); border-radius:999px; padding:8px 14px; font-weight:700; font-size:.9rem; cursor:pointer; min-height:40px; }
.fin-tabs button[aria-selected="true"] { background:var(--teal); color:#fff; border-color:var(--teal); }
.card { background:var(--card); border:1px solid var(--border); border-radius:var(--radius); box-shadow:var(--shadow); padding:14px; margin-bottom:14px; min-width:0; }
.card h2 { margin:0 0 10px; font-size:1.05rem; }
.card h3 { margin:12px 0 8px; font-size:.95rem; }
.row { display:flex; flex-wrap:wrap; gap:10px; align-items:flex-end; }
.row label { display:flex; flex-direction:column; font-size:.78rem; color:var(--muted); font-weight:700; gap:4px; }
.row input, .row select, .row textarea { font:inherit; font-size:16px; padding:8px 10px; border:1px solid var(--border); border-radius:10px; background:#fff; color:var(--ink); min-height:40px; max-width:100%; }
button.primary, button.small, button.ghost { font:inherit; font-weight:700; border-radius:10px; cursor:pointer; min-height:40px; padding:8px 14px; }
button.primary { background:var(--teal); color:#fff; border:0; }
button.ghost { background:#fff; color:var(--ink); border:1px solid var(--border); }
button.small { padding:6px 10px; min-height:36px; font-size:.85rem; background:#fff; border:1px solid var(--border); color:var(--ink); }
button.small.ok { border-color:#86efac; } button.small.bad { border-color:#fca5a5; }
button:disabled { opacity:.5; cursor:not-allowed; }
.kpis { display:grid; grid-template-columns:repeat(auto-fit, minmax(150px,1fr)); gap:10px; margin-bottom:14px; }
.kpi { background:#fff; border:1px solid var(--border); border-radius:14px; padding:12px; min-width:0; }
.kpi .l { font-size:.75rem; color:var(--muted); font-weight:700; text-transform:uppercase; letter-spacing:.03em; }
.kpi .v { font-size:1.3rem; font-weight:800; margin-top:4px; overflow-wrap:anywhere; }
.table-wrap { overflow-x:auto; -webkit-overflow-scrolling:touch; max-width:100%; }
table.fin { border-collapse:collapse; width:100%; font-size:.86rem; }
table.fin th, table.fin td { padding:7px 8px; border-bottom:1px solid #e2f3f0; text-align:left; vertical-align:top; white-space:nowrap; }
table.fin td.wrap { white-space:normal; min-width:180px; }
table.fin th { font-size:.74rem; text-transform:uppercase; color:var(--muted); letter-spacing:.03em; position:sticky; top:0; background:#fff; }
table.fin td.num, table.fin th.num { text-align:right; font-variant-numeric:tabular-nums; }
.chip { display:inline-block; padding:2px 8px; border-radius:999px; font-size:.74rem; font-weight:700; margin:1px 2px 1px 0; background:#f1f5f9; color:#334155; }
.chip.matched, .chip.matched_net_fees, .chip.matched_tolerance, .chip.ok { background:#dcfce7; color:#166534; }
.chip.timing, .chip.warn, .chip.pending, .chip.investigating { background:#fef3c7; color:#92400e; }
.chip.partial, .chip.unmatched, .chip.over, .chip.open, .chip.rejected { background:#fee2e2; color:#991b1b; }
.chip.no_bank_feed, .chip.no_budget, .chip.non_patient, .chip.waived, .chip.resolved, .chip.approved { background:#e0f2fe; color:#075985; }
.bar { height:8px; background:#e2f3f0; border-radius:99px; overflow:hidden; min-width:80px; }
.bar > i { display:block; height:100%; background:var(--good); }
.bar.warn > i { background:var(--warn); } .bar.over > i { background:var(--bad); }
.muted { color:var(--muted); font-size:.85rem; }
.demo-banner { background:#fff7ed; border:1px solid #fdba74; color:#9a3412; border-radius:12px; padding:8px 12px; font-weight:700; margin-bottom:10px; }
.ds-toggle { display:flex; gap:6px; align-items:center; font-size:.8rem; font-weight:700; color:var(--muted); }
.ds-toggle select { font:inherit; font-size:16px; padding:4px 6px; border-radius:8px; border:1px solid var(--border); }
.toast { position:fixed; left:50%; transform:translateX(-50%); bottom:calc(16px + env(safe-area-inset-bottom)); background:var(--ink); color:#fff; padding:10px 16px; border-radius:12px; font-weight:700; z-index:50; max-width:90vw; }
.err { color:var(--bad); font-size:.9rem; margin-top:8px; min-height:1em; }
.grid2 { display:grid; grid-template-columns:repeat(auto-fit, minmax(300px,1fr)); gap:14px; }
.split-line { display:flex; flex-wrap:wrap; gap:6px; margin-bottom:6px; }
details summary { cursor:pointer; font-weight:700; }
.auth-card { max-width:420px; margin:10vh auto; background:#fff; border:1px solid var(--border); border-radius:var(--radius); padding:22px; box-shadow:var(--shadow); }
.auth-card label { display:block; font-size:.8rem; font-weight:700; color:var(--muted); margin:10px 0 4px; }
.auth-card input { width:100%; font-size:16px; padding:10px; border:1px solid var(--border); border-radius:10px; }
.auth-card button { width:100%; margin-top:14px; }
@media (max-width: 640px) {
  .kpi .v { font-size:1.1rem; }
  table.fin { font-size:.8rem; }
  header { flex-direction:column; }
}

.navlink { display:inline-flex; align-items:center; border:1px solid var(--border); border-radius:10px; padding:8px 14px; min-height:40px; font-weight:700; text-decoration:none; color:var(--ink); background:#fff; }
#bOffTabs, #bCatTabs { margin-bottom:10px; }
#bCatTabs button { font-size:.85rem; min-height:36px; }
/* Deposit Slip preview (2026-10-24) */
.dt-preview { border:1px solid var(--border); border-radius:10px; padding:10px 12px; margin:10px 0; }
.dt-preview p { margin:6px 0; }
.dt-preview table.fin { max-width:420px; }
.ok-text { color:var(--ok, #1f7a4d); }
/* Cash verification (2026-10-25) */
#cashCard details { margin-top:10px; }
.kpi .v.err { color:var(--bad); margin-top:4px; font-size:1.3rem; }
