/* Results → Cash flow — the statement table, first on the page (2026-10-20).
   Kit tokens from fpa-analyst.css; light only, like the kit. */

:is(.cv5, .fa-root) .cf2s { margin-bottom: 16px; }
:is(.cv5, .fa-root) .cf2s-h { font-size: var(--fa-fs-card); font-weight: 600; color: var(--fa-ink); margin: 2px 0 2px; line-height: 1.3; }

/* Selector: segmented comparison + period select, one aligned row. */
:is(.cv5, .fa-root) .cf2s-ctl { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: flex-end; justify-content: space-between; margin: 14px 0 10px; }
:is(.cv5, .fa-root) .cf2s-seg { display: inline-flex; flex-wrap: wrap; background: var(--fa-track); border-radius: 10px; padding: 3px; gap: 2px; }
:is(.cv5, .fa-root) .cf2s-seg a {
  padding: 6px 12px; border-radius: 8px; font-size: 13px; font-weight: 600; color: var(--fa-muted);
  text-decoration: none; white-space: nowrap;
}
:is(.cv5, .fa-root) .cf2s-seg a:hover { color: var(--fa-ink); }
:is(.cv5, .fa-root) .cf2s-seg a.on { background: var(--fa-card); color: var(--fa-accent); box-shadow: 0 1px 2px rgba(23, 35, 61, .12); }
:is(.cv5, .fa-root) .cf2s-period label { display: grid; gap: 3px; font-size: 10.5px; text-transform: uppercase; letter-spacing: .06em; color: var(--fa-label); font-weight: 700; }
:is(.cv5, .fa-root) .cf2s-period select {
  border: 1px solid var(--fa-btn-line); border-radius: 8px; padding: 6px 9px; font-size: 13px; color: var(--fa-ink);
  background: #fff; font-family: inherit; text-transform: none; letter-spacing: 0; font-weight: 600; min-width: 170px;
}
:is(.cv5, .fa-root) .cf2s.htmx-request { opacity: .6; transition: opacity .15s; }

/* The table: tinted header, sticky first column, right-aligned numbers,
   sections tinted, subtotals bold, net change and closing cash ruled. */
:is(.cv5, .fa-root) .cf2s-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
:is(.cv5, .fa-root) .cf2s-t { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 13.5px; font-variant-numeric: tabular-nums; }
:is(.cv5, .fa-root) .cf2s-t :is(th, td) { padding: 7px 10px; text-align: right; border-bottom: 1px solid var(--fa-line-soft); white-space: nowrap; }
:is(.cv5, .fa-root) .cf2s-t thead th {
  background: #eef3fa; color: var(--fa-label); font-size: 11px; text-transform: uppercase; letter-spacing: .05em; font-weight: 700;
  border-bottom: 1px solid #d9e2ef;
}
:is(.cv5, .fa-root) .cf2s-t thead th:first-child { border-radius: 8px 0 0 0; }
:is(.cv5, .fa-root) .cf2s-t thead th:last-child { border-radius: 0 8px 0 0; }
:is(.cv5, .fa-root) .cf2s-t thead th.cur { color: var(--fa-accent); }
:is(.cv5, .fa-root) .cf2s-t :is(thead th, tbody th):first-child {
  text-align: left; position: sticky; left: 0; z-index: 1; background: var(--fa-card); white-space: normal; min-width: 210px;
}
:is(.cv5, .fa-root) .cf2s-t thead th:first-child { background: #eef3fa; }
:is(.cv5, .fa-root) .cf2s-t tbody th { font-weight: 500; color: var(--fa-ink); }
:is(.cv5, .fa-root) .cf2s-t td.cur { font-weight: 600; color: var(--fa-ink); background: #f8fafd; }
:is(.cv5, .fa-root) .cf2s-t td.n { color: var(--fa-bad); }
:is(.cv5, .fa-root) .cf2s-t td.chg.up { color: var(--fa-good); }
:is(.cv5, .fa-root) .cf2s-t td.chg.down { color: var(--fa-bad); }
:is(.cv5, .fa-root) .cf2s-t td.pct { color: var(--fa-muted); font-size: 12px; }
:is(.cv5, .fa-root) .cf2s-t tr.sec th {
  background: #f1f5fb; color: var(--fa-navy); font-size: 11.5px; text-transform: uppercase; letter-spacing: .06em; font-weight: 800;
  padding-top: 9px; text-align: left;
}
:is(.cv5, .fa-root) .cf2s-t tr:is(.line, .caption) th { padding-left: 22px; font-weight: 500; color: #34435e; }
:is(.cv5, .fa-root) .cf2s-t tr.subtotal :is(th, td) { font-weight: 700; color: var(--fa-ink); border-top: 1px solid #c9d4e4; }
:is(.cv5, .fa-root) .cf2s-t tr.subtotal td.n { color: var(--fa-bad); }
:is(.cv5, .fa-root) .cf2s-t tr.total :is(th, td) { font-weight: 800; color: var(--fa-ink); border-top: 2px solid #b9c6da; background: #f4f7fb; font-size: 14px; }
:is(.cv5, .fa-root) .cf2s-t tr.total td.n { color: var(--fa-bad); }
:is(.cv5, .fa-root) .cf2s-t tr.cash th { font-weight: 600; }
:is(.cv5, .fa-root) .cf2s-t tr.cash[data-cf-row="closing_cash"] :is(th, td) { font-weight: 800; border-top: 1px solid #c9d4e4; }
:is(.cv5, .fa-root) .cf2s-t tr.check :is(th, td) { color: var(--fa-warn); font-style: italic; }
:is(.cv5, .fa-root) .cf2s-code {
  display: inline-block; font-size: 10.5px; font-weight: 700; color: var(--fa-navy); background: #eaf0f8;
  border-radius: 6px; padding: 0 5px; margin-left: 4px; vertical-align: 1px; letter-spacing: .02em;
}
:is(.cv5, .fa-root) .cf2s-na { margin-top: 10px; }

@media (max-width: 640px) {
  :is(.cv5, .fa-root) .cf2s-ctl { align-items: stretch; }
  :is(.cv5, .fa-root) .cf2s-seg { width: 100%; justify-content: space-between; }
  :is(.cv5, .fa-root) .cf2s-seg a { padding: 6px 8px; font-size: 12.5px; flex: 1 1 auto; text-align: center; }
  :is(.cv5, .fa-root) .cf2s-period, :is(.cv5, .fa-root) .cf2s-period select { width: 100%; }
  :is(.cv5, .fa-root) .cf2s-t { font-size: 12.5px; }
  :is(.cv5, .fa-root) .cf2s-t :is(th, td) { padding: 6px 7px; }
  :is(.cv5, .fa-root) .cf2s-t :is(thead th, tbody th):first-child { min-width: 150px; max-width: 170px; }
  :is(.cv5, .fa-root) .cf2s-t tr:is(.line, .caption) th { padding-left: 10px; }
}
@media (max-width: 640px) {
  :is(.cv5, .fa-root) .cf2s-t .pct { display: none; }
}
