/* FP&A fix round 2 · slice 6 — Results → Transactions + Evidence.
   Kit tokens only (static/css/fpa-analyst.css): tinted tiles that say what
   bucket they hold, bucket chips in the postings table, a pager that says
   which page of how many, likely-reason lines under a pair that does not
   tie, and the «what this is · when it gets a number» strip under the
   Evidence tiles. */

/* ── Transactions: bucket tiles carry their tone ─────────────────────────── */
:is(.cv5, .fa-root) .r2tx-tile { border-top: 4px solid var(--r2-tone, var(--fa-line)); background: linear-gradient(180deg, var(--r2-tint, #fff) 0, #fff 72px); }
:is(.cv5, .fa-root) .r2tx-tile.tone-good { --r2-tone: var(--fa-good-bar); --r2-tint: #eef8f2; }
:is(.cv5, .fa-root) .r2tx-tile.tone-teal { --r2-tone: var(--fa-mark); --r2-tint: #ebf6f7; }
:is(.cv5, .fa-root) .r2tx-tile.tone-accent { --r2-tone: var(--fa-accent); --r2-tint: #eef4fb; }
:is(.cv5, .fa-root) .r2tx-tile.tone-navy { --r2-tone: var(--fa-navy); --r2-tint: #f1f4f9; }
:is(.cv5, .fa-root) .r2tx-tile.tone-good .fa-tile-v { color: var(--fa-good); }
:is(.cv5, .fa-root) .r2tx-tile.tone-teal .fa-tile-v { color: var(--fa-mark); }
:is(.cv5, .fa-root) .r2tx-tile.tone-accent .fa-tile-v { color: var(--fa-accent); }
:is(.cv5, .fa-root) .r2tx-tile.is-empty { --r2-tone: var(--fa-grey-bar); --r2-tint: #f6f8fb; }
:is(.cv5, .fa-root) .r2tx-tile.is-empty .fa-tile-v { color: var(--fa-muted); }
:is(.cv5, .fa-root) .r2tx-pool { font-size: 11.5px; padding: 2px 8px; }

/* ── Transactions: the all-postings table in the kit style ───────────────── */
:is(.cv5, .fa-root) .r2tx-table thead th {
  background: #f1f5fb; color: var(--fa-label); font-size: 11px; text-transform: uppercase;
  letter-spacing: .06em; font-weight: 700; border-bottom: 1px solid var(--fa-line);
}
:is(.cv5, .fa-root) .r2tx-table td { vertical-align: middle; }
:is(.cv5, .fa-root) .r2tx-table td.r { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
:is(.cv5, .fa-root) .r2tx-table td.r2tx-cr { color: var(--fa-good); }
:is(.cv5, .fa-root) .r2tx-table td.r2tx-cr .cv5-mut { color: var(--fa-muted); }
:is(.cv5, .fa-root) .r2tx-date { white-space: nowrap; color: var(--fa-ink2, var(--fa-ink)); }
:is(.cv5, .fa-root) .r2tx-chip {
  display: inline-block; padding: 2px 8px; border-radius: 6px; font-size: 11.5px; font-weight: 600;
  background: var(--fa-track); color: var(--fa-muted); white-space: nowrap;
}
:is(.cv5, .fa-root) .r2tx-chip.tone-good { background: #e7f5ee; color: var(--fa-good); }
:is(.cv5, .fa-root) .r2tx-chip.tone-teal { background: #e3f2f3; color: var(--fa-mark); }
:is(.cv5, .fa-root) .r2tx-chip.tone-accent { background: #eaf1fb; color: var(--fa-accent); }
:is(.cv5, .fa-root) .r2tx-chip.tone-warn { background: #fdf3e1; color: var(--fa-warn); }

/* ── Transactions: the pager says which page of how many ─────────────────── */
:is(.cv5, .fa-root) .r2tx-pagerow {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 10px 16px; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--fa-line-soft);
}
:is(.cv5, .fa-root) .r2tx-pageinfo { margin: 0; font-size: 12.5px; color: var(--fa-muted); font-variant-numeric: tabular-nums; }
:is(.cv5, .fa-root) .r2tx-pager { display: flex; gap: 8px; flex-wrap: wrap; margin: 0; }

/* ── Evidence: tiles tinted by their verdict ─────────────────────────────── */
:is(.cv5, .fa-root) .r2ev-tiles .fa-tile { border-top: 4px solid var(--fa-line); }
:is(.cv5, .fa-root) .r2ev-tiles .fa-tile:has(.fa-tile-v.good) { border-top-color: var(--fa-good-bar); background: linear-gradient(180deg, #eef8f2 0, #fff 72px); }
:is(.cv5, .fa-root) .r2ev-tiles .fa-tile:has(.fa-tile-v.bad) { border-top-color: var(--fa-bad-bar); background: linear-gradient(180deg, #fcefef 0, #fff 72px); }
:is(.cv5, .fa-root) .r2ev-tiles .fa-tile:has(.fa-tile-v.warn) { border-top-color: var(--fa-warn-bar); background: linear-gradient(180deg, #fdf6e8 0, #fff 72px); }
:is(.cv5, .fa-root) .r2ev-tiles .fa-tile-v.warn { color: var(--fa-warn); font-size: 22px; }
:is(.cv5, .fa-root) .r2ev-tiles .fa-tile-v:not(.good):not(.bad):not(.warn) { font-size: 22px; }
:is(.cv5, .fa-root) .r2ev-tiles .fa-tile-v.good, :is(.cv5, .fa-root) .r2ev-tiles .fa-tile-v.bad { font-size: 28px; }

/* ── Evidence: what the «not yet» tiles are, and when they get a number ─── */
:is(.cv5, .fa-root) .r2ev-explain {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 12px;
}
:is(.cv5, .fa-root) .r2ev-explain-i {
  border: 1px solid #e1e7f0; border-left: 4px solid var(--fa-accent); border-radius: 12px;
  background: var(--fa-accent-soft); padding: 11px 14px; min-width: 0;
}
:is(.cv5, .fa-root) .r2ev-explain-h { margin: 0 0 3px; font-size: 12px; font-weight: 700; color: var(--fa-navy); text-transform: uppercase; letter-spacing: .05em; }
:is(.cv5, .fa-root) .r2ev-explain-t { margin: 0; font-size: 13.5px; line-height: 1.45; color: var(--fa-ink); }

/* ── Evidence: the likely reason under a pair that does not tie ──────────── */
:is(.cv5, .fa-root) .fa-rl-tie.r2ev-off { border-bottom: 0; }
:is(.cv5, .fa-root) .r2ev-why {
  margin: 0 0 4px; padding: 7px 12px; border-radius: 9px; background: #fbe9eb33;
  border-left: 3px solid var(--fa-bad-bar); font-size: 13px; line-height: 1.45; color: var(--fa-ink);
  border-bottom: 1px solid var(--fa-line-soft);
}
:is(.cv5, .fa-root) .r2ev-why b { color: var(--fa-bad); font-weight: 700; }

/* ── Evidence: pairs not checked yet — one line each, with the reason ───── */
:is(.cv5, .fa-root) .r2ev-nc { margin-top: 12px; padding: 10px 12px; border-radius: 10px; background: #fdf8ee; border: 1px solid #f3e4c4; }
:is(.cv5, .fa-root) .r2ev-nc-h { margin: 0 0 6px; font-size: 12px; font-weight: 700; color: var(--fa-warn); text-transform: uppercase; letter-spacing: .05em; }
:is(.cv5, .fa-root) .r2ev-nc-l { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
:is(.cv5, .fa-root) .r2ev-nc-l li { display: grid; grid-template-columns: minmax(120px, auto) minmax(0, 1fr); gap: 10px; align-items: baseline; font-size: 13px; color: var(--fa-ink); }

@media (max-width: 760px) {
  :is(.cv5, .fa-root) .r2ev-explain { grid-template-columns: minmax(0, 1fr); }
  :is(.cv5, .fa-root) .r2ev-nc-l li { grid-template-columns: minmax(0, 1fr); gap: 3px; }
  :is(.cv5, .fa-root) .r2tx-pagerow { flex-direction: column; align-items: stretch; }
  :is(.cv5, .fa-root) .r2tx-pager .fa-btn { flex: 1 1 0; text-align: center; }
  :is(.cv5, .fa-root) .r2ev-tiles .fa-tile-v.good, :is(.cv5, .fa-root) .r2ev-tiles .fa-tile-v.bad { font-size: 22px; }
}
