/* ATAD Petty Cash -- "ATAD Apps" design system: dark first, light optional.
   Same tokens as the Staff Portal, Documents and Vendor Portal. Phone-first for
   handlers, cashier and funder (bottom tabs); a sidebar on a desk for the
   approver and accountant. Matches the "Petty Cash Screens" canvas. */
:root {
  --bg: #0E131D; --panel: #151C29; --panel-2: #1B2433; --line: #263045;
  --text: #E9ECF2; --muted: #9AA4B7; --faint: #838DA1;
  --accent: #35B9A9; --accent-ink: #062320; --accent-soft: #12302E;
  --red: #F2877A; --red-soft: #3A1D1C; --amber: #EBB55A; --amber-soft: #382A12; --green: #6CCB94; --green-soft: #15301F;
  --scrim: rgba(3, 6, 12, .66);
  color-scheme: dark;
}
:root[data-theme="light"] {
  --bg: #F5F4EF; --panel: #FFFFFF; --panel-2: #F9F8F4; --line: #E2DFD6;
  --text: #171A21; --muted: #565E6D; --faint: #666D7C;
  --accent: #0F7469; --accent-ink: #FFFFFF; --accent-soft: #DDF1EE;
  --red: #A8322A; --red-soft: #FBE6E3; --amber: #8A5800; --amber-soft: #FBEFD8; --green: #1D6F43; --green-soft: #E0F2E7;
  --scrim: rgba(23, 26, 33, .45);
  color-scheme: light;
}
:root {
  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--font); font-size: 14px; line-height: 21px;
  -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent; }
body { min-height: 100vh; min-height: 100dvh; }
a { color: var(--accent); }
button, input, select, textarea { font: inherit; color: inherit; }
img { display: block; }
.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.mu { color: var(--muted); }
.cap { font-size: 12px; line-height: 16px; color: var(--faint); }
.lb { font-size: 13px; line-height: 18px; font-weight: 600; }

/* ---------------------------------------------------------------- splash */
.splash { position: fixed; inset: 0; display: grid; place-items: center; background: var(--bg); z-index: 50; }
.splash-inner { display: flex; flex-direction: column; align-items: center; gap: 18px; }
.spinner { width: 26px; height: 26px; border-radius: 50%; border: 3px solid var(--line); border-top-color: var(--accent);
  animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------------------------------------------------------------- sign in */
.auth { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: calc(24px + env(safe-area-inset-top)) 16px 32px; gap: 20px; }
.auth-box { width: 100%; max-width: 420px; background: var(--panel); border: 1px solid var(--line); border-radius: 14px;
  padding: 24px 20px; display: flex; flex-direction: column; gap: 16px; }
.auth-brand { display: flex; align-items: center; gap: 12px; }
.auth-brand img { width: 48px; height: 48px; }
.auth h1 { margin: 0; font-size: 26px; line-height: 32px; font-weight: 700; }
.auth p { margin: 0; color: var(--muted); }

/* ---------------------------------------------------------------- fields & buttons */
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field > span { font-size: 13px; font-weight: 600; }
.input, .field input:not([type=checkbox]), .field select, .field textarea, .ap-field.input {
  min-height: 48px; border: 1px solid var(--line); border-radius: 8px; padding: 0 12px;
  font-size: 16px; background: var(--panel-2); color: var(--text); width: 100%; min-width: 0; }
.field textarea { padding: 10px 12px; min-height: 80px; resize: vertical; }
.input:focus, .field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 25%, transparent); }
.input.num { font-family: var(--mono); text-align: right; }
.hint { font-size: 13px; color: var(--muted); line-height: 19px; margin: 0; }

.btn { min-height: 48px; border-radius: 10px; border: 1px solid var(--line); background: transparent; color: var(--text);
  padding: 0 16px; font-weight: 600; font-size: 15px; cursor: pointer; display: inline-flex; align-items: center;
  justify-content: center; gap: 8px; text-decoration: none; white-space: nowrap; }
.btn.pri { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.btn.danger { color: var(--red); border-color: color-mix(in srgb, var(--red) 45%, var(--line)); }
.btn.sm { min-height: 36px; font-size: 13px; padding: 0 12px; }
.btn.block { width: 100%; }
.btn:disabled { opacity: .5; cursor: default; }
.btn svg { width: 18px; height: 18px; }
.btn:focus-visible, .icon-btn:focus-visible, .nav-a:focus-visible, .tab:focus-visible, .rowbtn:focus-visible, .sw:focus-visible {
  outline: 3px solid var(--accent); outline-offset: 2px; }
.icon-btn { width: 44px; height: 44px; border-radius: 10px; border: 1px solid var(--line); background: transparent;
  display: inline-grid; place-items: center; cursor: pointer; flex-shrink: 0; color: var(--text); }
.icon-btn svg { width: 20px; height: 20px; }

.chip { display: inline-block; font-size: 12px; line-height: 16px; font-weight: 600; padding: 3px 8px; border-radius: 6px; white-space: nowrap; }
.c-g { background: var(--green-soft); color: var(--green); }
.c-a { background: var(--amber-soft); color: var(--amber); }
.c-r { background: var(--red-soft); color: var(--red); }
.c-t { background: var(--accent-soft); color: var(--accent); }
.c-n { background: var(--panel-2); color: var(--muted); }

/* switch: a real checkbox styled as a switch */
.sw { appearance: none; -webkit-appearance: none; width: 44px; height: 26px; border-radius: 13px; background: var(--panel-2);
  border: 1px solid var(--line); position: relative; flex-shrink: 0; cursor: pointer; margin: 0; transition: background .15s; }
.sw::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%;
  background: var(--muted); transition: left .15s; }
.sw:checked { background: var(--accent); border-color: var(--accent); }
.sw:checked::after { left: 21px; background: var(--accent-ink); }
.sw:disabled { opacity: .45; cursor: default; }

/* ---------------------------------------------------------------- shell */
.shell { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; }
.side { display: none; }
.top { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: calc(12px + env(safe-area-inset-top)) 16px 12px; border-bottom: 1px solid var(--line); background: var(--panel); }
.top-brand { display: flex; align-items: center; gap: 10px; min-width: 0; }
.top-brand img { width: 34px; height: 34px; }
.top-brand div { min-width: 0; }
.top-brand .cap { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.main { flex: 1; width: 100%; max-width: 1180px; margin: 0 auto; padding: 16px 16px calc(96px + env(safe-area-inset-bottom));
  display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.tabs { position: fixed; left: 0; right: 0; bottom: 0; z-index: 10; display: flex; justify-content: space-around;
  border-top: 1px solid var(--line); background: var(--panel); padding: 6px 0 calc(8px + env(safe-area-inset-bottom)); }
.tab { display: flex; flex-direction: column; align-items: center; gap: 3px; font-size: 11px; font-weight: 600; color: var(--muted);
  min-width: 64px; min-height: 48px; justify-content: center; text-decoration: none; border-radius: 8px; }
.tab svg { width: 22px; height: 22px; }
.tab.on { color: var(--accent); }

@media (min-width: 900px) {
  .shell.desk { flex-direction: row; }
  .shell.desk .top, .shell.desk .tabs { display: none; }
  .shell.desk .side { display: flex; width: 232px; flex-shrink: 0; background: var(--panel); border-right: 1px solid var(--line);
    padding: 20px 14px; flex-direction: column; gap: 4px; position: sticky; top: 0; height: 100vh; }
  .shell.desk .main { padding: 28px 40px 48px; gap: 18px; }
}
.side-brand { display: flex; align-items: center; gap: 10px; padding: 4px 8px 18px; }
.side-brand img { width: 36px; height: 36px; }
.nav-a { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px; border-radius: 8px;
  color: var(--muted); font-weight: 600; font-size: 14px; text-decoration: none; min-height: 44px; }
.nav-a svg { width: 18px; height: 18px; flex-shrink: 0; }
.nav-a:hover { background: var(--panel-2); }
.nav-a.on { background: var(--accent-soft); color: var(--accent); }
.side-foot { margin-top: auto; padding: 8px 4px 0; display: flex; flex-direction: column; gap: 8px; }

/* ---------------------------------------------------------------- page bits */
.pt { font-size: 28px; line-height: 34px; font-weight: 700; margin: 0; }
.st { font-size: 17px; line-height: 24px; font-weight: 700; margin: 0; }
.page-head { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px; justify-content: space-between; }
.page-head p { margin: 4px 0 0; color: var(--muted); }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 16px; display: flex;
  flex-direction: column; gap: 10px; min-width: 0; }
@media (min-width: 900px) { .card { padding: 20px; } }
.card.pad0 { padding: 6px 16px; gap: 0; }
@media (min-width: 900px) { .card.pad0 { padding: 10px 20px; } }
.row { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-width: 0; }
.row > div { min-width: 0; }
.grid2 { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; }
@media (min-width: 900px) { .grid2 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; align-items: start; } }
.stack { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
@media (min-width: 900px) { .stack { gap: 18px; } }
.big-num { font-family: var(--mono); font-size: 34px; line-height: 38px; font-weight: 500; }
.set { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); min-height: 60px; }
.set:last-child { border-bottom: 0; }
.set > div:first-child { min-width: 0; }
.set .input { width: 130px; min-height: 40px; font-size: 14px; flex-shrink: 0; }
.set .ap-field.input { width: 140px; }
.set select.input { width: 170px; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 0; flex-wrap: wrap; }
.banner { border-radius: 10px; padding: 12px 14px; font-weight: 600; line-height: 20px; }
.banner.ok { background: var(--green-soft); color: var(--green); }
.banner.bad { background: var(--red-soft); color: var(--red); }
.banner.info { background: var(--accent-soft); color: var(--accent); }
.empty { padding: 20px 4px; color: var(--muted); text-align: center; }

.tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
@media (min-width: 640px) { .tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.tile { border: 1px dashed var(--line); border-radius: 14px; padding: 14px; display: flex; flex-direction: column; gap: 4px; min-height: 92px; color: var(--muted); }
.tile b { color: var(--text); font-size: 14px; }
.tile .chip { align-self: flex-start; margin-top: auto; }

.checklist { display: flex; flex-direction: column; }
.check { display: flex; gap: 12px; align-items: flex-start; padding: 10px 0; border-bottom: 1px solid var(--line); }
.check:last-child { border-bottom: 0; }
.check .dot { width: 22px; height: 22px; border-radius: 50%; flex-shrink: 0; display: grid; place-items: center; margin-top: 1px;
  border: 2px solid var(--line); }
.check.done .dot { background: var(--green); border-color: var(--green); color: var(--accent-ink); }
.check .dot svg { width: 14px; height: 14px; }

/* tables: a real table on a desk, stacked rows on a phone */
.tb { width: 100%; border-collapse: collapse; }
.tb th { text-align: left; font-size: 12px; font-weight: 600; color: var(--faint); padding: 8px; border-bottom: 1px solid var(--line); }
.tb td { padding: 10px 8px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.tb tr:last-child td { border-bottom: 0; }
.tb .r { text-align: right; }
.rowbtn { all: unset; cursor: pointer; font-weight: 600; color: var(--text); border-radius: 6px; }
.rowbtn:hover { color: var(--accent); }
@media (max-width: 699px) {
  .tb.stackable thead { display: none; }
  .tb.stackable tr { display: flex; flex-wrap: wrap; gap: 2px 10px; padding: 10px 0; border-bottom: 1px solid var(--line); }
  .tb.stackable tr:last-child { border-bottom: 0; }
  .tb.stackable td { border: 0; padding: 0; }
  .tb.stackable td:first-child { flex-basis: 100%; }
  .tb.stackable td.hide-s { display: none; }
}

.search { display: flex; gap: 10px; }
.search .input { flex: 1; }
.so-row { display: flex; gap: 12px; align-items: flex-start; padding: 12px 0; border-bottom: 1px solid var(--line); }
.so-row:last-child { border-bottom: 0; }
.so-row .so-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.so-row .so-main b { font-size: 15px; }
.so-row .proj { color: var(--text); }
.so-row .proj.none { color: var(--amber); font-style: italic; }

.audit-row { padding: 10px 0; border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: 3px; }
.audit-row:last-child { border-bottom: 0; }
.audit-row code { font-family: var(--mono); font-size: 12px; color: var(--muted); word-break: break-word; white-space: pre-wrap; }

.role-picks { display: flex; flex-wrap: wrap; gap: 8px; }
.role-pick { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 12px; border: 1px solid var(--line);
  border-radius: 10px; cursor: pointer; font-weight: 600; font-size: 14px; }
.role-pick input { width: 18px; height: 18px; margin: 0; accent-color: var(--accent); }
.role-pick.on { border-color: var(--accent); background: var(--accent-soft); color: var(--accent); }
.pick-list { border: 1px solid var(--line); border-radius: 10px; overflow: hidden; max-height: 320px; overflow-y: auto; }
.pick-list button { all: unset; box-sizing: border-box; width: 100%; padding: 12px 14px; cursor: pointer; display: flex;
  flex-direction: column; gap: 2px; border-bottom: 1px solid var(--line); }
.pick-list button:last-child { border-bottom: 0; }
.pick-list button:hover, .pick-list button:focus-visible { background: var(--accent-soft); }
.pick-list small { color: var(--muted); font-size: 12px; }

.list-edit { display: flex; flex-direction: column; }
.list-edit .le { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); min-height: 52px; }
.list-edit .le:last-child { border-bottom: 0; }
.list-edit .le span { flex: 1; min-width: 0; }
.list-edit .le.off span { color: var(--faint); text-decoration: line-through; }

/* ---------------------------------------------------------------- sheet */
.sheet { position: fixed; inset: 0; z-index: 40; display: flex; align-items: flex-end; justify-content: center; }
.sheet-backdrop { position: absolute; inset: 0; background: var(--scrim); }
.sheet-panel { position: relative; background: var(--panel); border: 1px solid var(--line); width: 100%; max-width: 540px;
  max-height: 92vh; max-height: 92dvh; border-radius: 18px 18px 0 0; display: flex; flex-direction: column; }
@media (min-width: 640px) { .sheet { align-items: center; } .sheet-panel { border-radius: 18px; } }
.sheet-head { display: flex; align-items: center; gap: 10px; padding: 14px 14px 6px 20px; }
.sheet-head h2 { margin: 0; font-size: 19px; flex: 1; }
.sheet-body { overflow: auto; padding: 8px 20px 16px; display: flex; flex-direction: column; gap: 16px; }
.sheet-foot { padding: 12px 20px calc(14px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); display: flex; gap: 10px; }
.sheet-foot .btn { flex: 1; }

/* ---------------------------------------------------------------- toasts */
.toasts { position: fixed; left: 0; right: 0; bottom: calc(84px + env(safe-area-inset-bottom)); z-index: 60; display: flex;
  flex-direction: column; align-items: center; gap: 8px; pointer-events: none; padding: 0 16px; }
.toast { background: var(--panel-2); color: var(--text); border: 1px solid var(--line); padding: 12px 16px; border-radius: 10px;
  max-width: 480px; box-shadow: 0 8px 24px rgba(0,0,0,.3); pointer-events: auto; }
.toast.bad { background: var(--red-soft); color: var(--red); } .toast.ok { background: var(--green-soft); color: var(--green); }

/* ---------------------------------------------------------------- scroll-wheel pickers in this theme */
html .ap-field .ap-ico { color: var(--accent); }
html .ap-field .ap-txt.ap-empty, html .ap-field .ap-rel { color: var(--faint); }
html .ap-field.ap-open { border-color: var(--accent) !important; box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 25%, transparent); }
html .ap-back.ap-sheet { background: var(--scrim); }
html .ap-pop { background: var(--panel); border-color: var(--line); color: var(--text); box-shadow: 0 18px 44px rgba(0,0,0,.4); }
html .ap-read small { color: var(--muted); }
html .ap-wheels::before { background: var(--accent-soft); }
html .ap-wheels::after { background: linear-gradient(var(--panel), transparent 34%, transparent 66%, var(--panel)); }
html .ap-it { color: var(--muted); }
html .ap-it.ap-on { color: var(--accent); }
html .ap-btn { background: transparent; border-color: var(--line); color: var(--text); }
html .ap-btn.ap-link { color: var(--accent); }
html .ap-btn.ap-link:hover { background: var(--accent-soft); }
html .ap-btn.ap-primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }

/* ---------------------------------------------------------------- M2: requests & approval */
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.req-line { gap: 12px; }
.req-line .field > span { font-size: 12px; font-weight: 600; color: var(--faint); }
.so-pick { text-align: left; cursor: pointer; display: flex; align-items: center; }
.so-pick.empty { color: var(--accent); font-weight: 600; }
.input.locked { display: flex; align-items: center; gap: 6px; color: var(--muted); background: var(--panel); overflow: hidden; }
.input.locked svg { width: 14px; height: 14px; flex-shrink: 0; }
.input.locked span:last-child { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 14px; }
.linkish { all: unset; cursor: pointer; color: var(--accent); font-weight: 600; }
.linkish:focus-visible { outline: 2px solid var(--accent); border-radius: 4px; }
.seg { display: flex; gap: 6px; flex-wrap: wrap; }
.seg button { font: inherit; font-size: 13px; font-weight: 600; padding: 0 12px; min-height: 40px; border-radius: 8px; border: 1px solid var(--line);
  color: var(--muted); background: transparent; cursor: pointer; }
.seg button.on { background: var(--accent-soft); color: var(--accent); border-color: var(--accent); }
.seg button:focus-visible { outline: 3px solid var(--accent); outline-offset: 1px; }
.btn.add-line { border-style: dashed; color: var(--accent); border-color: var(--accent); }
.sum-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; padding: 12px 16px; background: var(--panel-2); }
.req-foot { position: sticky; bottom: calc(70px + env(safe-area-inset-bottom)); z-index: 5; background: var(--panel); border: 1px solid var(--line);
  border-radius: 14px; padding: 12px 16px; display: flex; flex-direction: column; gap: 10px; box-shadow: 0 -6px 18px rgba(0,0,0,.18); }
.req-foot .total { font-size: 22px; font-weight: 500; }
@media (min-width: 900px) { .shell.desk .req-foot { bottom: 12px; } }

.card.blocked { background: var(--red-soft); border-color: color-mix(in srgb, var(--red) 40%, var(--line)); color: var(--red); gap: 8px; }
.card.blocked svg { width: 20px; height: 20px; }
.card.blocked > div:nth-child(2) { font-size: 13px; color: var(--text); opacity: .85; }
.blk-items { display: flex; flex-direction: column; gap: 8px; padding-top: 4px; }
.blk-items .lb { color: var(--text); }
.blk-row { padding: 8px 0; border-bottom: 1px solid var(--line); }
.faded { opacity: .6; }
.r-right { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; flex-shrink: 0; }
.lines { display: flex; flex-direction: column; }
.lines .ln { padding: 10px 0; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 6px; }
.qa { border-radius: 10px; padding: 10px 12px; font-size: 13px; line-height: 19px; display: flex; gap: 10px; align-items: center;
  justify-content: space-between; flex-wrap: wrap; }
.qa.ask { background: var(--amber-soft); color: var(--amber); }
.qa.bad { background: var(--red-soft); color: var(--red); }
.qa > div { min-width: 0; flex: 1 1 200px; }

.kpis { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
@media (min-width: 900px) { .kpis { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; } }
.card.kpi { padding: 14px 16px; gap: 4px; }
.kpi-n { font-size: 22px; line-height: 28px; }
@media (min-width: 900px) { .kpi-n { font-size: 28px; line-height: 34px; } }
.t-g { color: var(--green); } .t-a { color: var(--amber); }
.banner.warn { background: var(--amber-soft); color: var(--amber); }
.head-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.daynav { display: flex; gap: 6px; align-items: center; }
.daynav .icon-btn span { font-size: 22px; line-height: 1; }
.card.pad-t { padding: 6px 10px; }
.tb.batch td { vertical-align: top; }
.tb.batch .site-row td { background: var(--panel-2); font-weight: 700; font-size: 13px; padding: 9px 10px; vertical-align: middle; }
.tb.batch .site-row td > * { vertical-align: middle; }
.chip-btn { border: 0; cursor: pointer; font-family: inherit; }
.tags { display: flex; gap: 4px; flex-wrap: wrap; }
.acts { display: inline-flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; align-items: center; }
.btn.ok { color: var(--green); background: var(--green-soft); border-color: color-mix(in srgb, var(--green) 35%, var(--line)); }
.btn.no { color: var(--red); background: var(--red-soft); border-color: color-mix(in srgb, var(--red) 35%, var(--line)); }
.reply { color: var(--accent); }
@media (max-width: 699px) {
  .tb.batch tr { gap: 6px 10px; }
  .tb.batch td.r { text-align: left; }
  .tb.batch td:last-child { flex-basis: 100%; }
  .tb.batch .acts { justify-content: flex-start; }
  .tb.batch .site-row td { flex-basis: 100%; }
}

.xfer { gap: 0; padding-top: 8px; }
.xfer .xl { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; }
.xfer .xl.sep { border-bottom: 1px solid var(--line); }
.xfer-n { font-size: 40px; line-height: 46px; font-weight: 500; color: var(--amber); }
.xfer .banner { margin-top: 10px; }
a.link-card { text-decoration: none; color: inherit; }
a.link-card:hover { border-color: var(--accent); }
a.row.need { text-decoration: none; color: inherit; padding: 6px 0; }
.big-btns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.btn.big { min-height: 96px; flex-direction: column; gap: 4px; border-radius: 14px; white-space: normal; }
.btn.big svg { width: 26px; height: 26px; }
.btn.big .cap { font-weight: 500; }
.btn.big.outline { border-color: var(--accent); color: var(--accent); }
.btn.big.outline .cap { color: var(--accent); opacity: .8; }

/* ---------------------------------------------------------------- M3: cash movement */
.sub-head { display: flex; align-items: center; gap: 12px; }
.sub-head .icon-btn { flex-shrink: 0; }
.sub-head .pt { font-size: 22px; line-height: 28px; }
a.ho-row, .ent-row { text-decoration: none; color: inherit; padding: 10px 0; border-top: 1px solid var(--line); align-items: flex-start; }
a.ho-row:hover .lb { color: var(--accent); }
.card > a.ho-row:first-of-type, .card > .row + a.ho-row { border-top: 0; }
.card > .st + .ent-row, .card > .st + .cap + .ent-row { border-top: 0; }
.ent-row .acts { gap: 10px; }
.ho-big { align-items: center; text-align: center; gap: 8px; padding: 28px 16px; }
.ho-amt { font-size: 40px; line-height: 44px; font-weight: 500; color: var(--amber); }
.sum-rows { background: var(--panel-2); gap: 6px; }
.foot-bar { position: sticky; bottom: calc(70px + env(safe-area-inset-bottom)); z-index: 5; background: var(--panel); border: 1px solid var(--line);
  border-radius: 14px; padding: 12px; display: flex; flex-direction: column; gap: 8px; box-shadow: 0 -6px 18px rgba(0,0,0,.18); }
.foot-bar.grid-2 { display: grid; }
@media (min-width: 900px) { .shell.desk .foot-bar { bottom: 12px; } }
.bank-card { height: 170px; border-radius: 16px; background: linear-gradient(135deg, var(--panel-2), var(--accent-soft)); border: 1px solid var(--line);
  padding: 18px; display: flex; flex-direction: column; justify-content: space-between; max-width: 420px; width: 100%; }
.bank-card-no { font-size: 20px; letter-spacing: .12em; }
.card.pad0 .it-head { padding: 10px 0; border-bottom: 1px solid var(--line); }
.card.pad0 .it { padding: 10px 0; border-bottom: 1px solid var(--line); }
.card.pad0 .it:last-child { border-bottom: 0; }
.snap { min-height: 96px; border: 2px dashed var(--accent); border-radius: 14px; background: var(--accent-soft); color: var(--accent);
  display: flex; align-items: center; justify-content: center; gap: 10px; font: inherit; font-weight: 600; cursor: pointer; padding: 10px; }
.snap svg { width: 22px; height: 22px; }
.snap:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.slip-prev { max-height: 120px; max-width: 60%; border-radius: 8px; object-fit: contain; }
.mini-kpis { gap: 10px 14px; }
a.banner { text-decoration: none; display: block; }
.rowbtn { display: inline-flex; align-items: center; gap: 6px; text-decoration: none; }
.rowbtn svg { width: 16px; height: 16px; }
.card.need { padding: 12px 16px; }
.big-num { white-space: nowrap; }
.row.wrap { flex-wrap: wrap; }
.btn-wrap { display: flex; flex-wrap: wrap; gap: 8px; } .btn-wrap .btn { flex: 1 1 140px; }
