/* The gateway's merchant dashboard and transactions in the site's newer language (05.10),
   as the OxaBank demo carries it: a flat head with a mono "// label", hairline cells
   instead of floating rounded cards, status as a small square mark and its word instead
   of pastel pills, a dark table head. Behaviour and data untouched. */
:root { --pane: #0b0d12; --bar: #11141b; --line: rgba(232, 236, 242, 0.08); --edge: rgba(232, 236, 242, 0.12); }
body { background: #0c0f16; }

/* head: flat, no diagonal cut, no pill */
.pagehead::before { clip-path: none; background: radial-gradient(700px 300px at 92% -40%, rgba(226, 35, 26, 0.22), transparent 60%); border-bottom: 1px solid var(--line); }
.headwrap { padding-bottom: 36px; }
.page { margin-top: 28px !important; }
.eyebrow {
  background: none; padding: 0; border-radius: 0; margin-bottom: 12px;
  font: 500 11.5px/1 ui-monospace, 'SF Mono', Menlo, monospace; letter-spacing: 0.06em; color: #8a93a3;
}
.eyebrow::before { content: '// '; color: #5c6473; }
h1 { letter-spacing: -0.035em; }
p.sub { color: #8a93a3; }
p.sub code { background: var(--bar); border: 1px solid var(--line); color: #c9d1dc; border-radius: 4px; }

/* live: a square that blinks, not a pulsing green dot in a pill */
.live {
  border: 1px solid var(--edge); background: var(--bar); border-radius: 6px; padding: 8px 12px;
  font: 500 11.5px/1 ui-monospace, 'SF Mono', Menlo, monospace; letter-spacing: 0.06em; text-transform: uppercase;
}
.live .pulse { width: 6px; height: 6px; border-radius: 1px; background: #2eb373; animation: blink 1.6s steps(2, jump-none) infinite; box-shadow: none; }
@keyframes blink { 50% { opacity: 0.25; } }
.refresh { border: 1px solid var(--edge); background: var(--bar); border-radius: 6px; font-weight: 500; }
.refresh:hover { background: #181d28; }

/* KPIs: one strip of hairline cells */
.kpis { gap: 1px; background: var(--line); border: 1px solid var(--edge); border-radius: 10px; overflow: hidden; }
.kpi { background: var(--pane); border: 0; border-radius: 0; box-shadow: none; }
.kpi .l { font: 500 10.5px/1.2 ui-monospace, 'SF Mono', Menlo, monospace; letter-spacing: 0.06em; }

/* panels and the table: hairline-edged, mono headings */
.panel, .card { background: var(--pane); border: 1px solid var(--edge); border-radius: 10px; box-shadow: none; }
.panel h2 { font: 500 11.5px/1 ui-monospace, 'SF Mono', Menlo, monospace; letter-spacing: 0.06em; color: #8a93a3; }
.panel h2::before { content: '// '; color: #5c6473; margin-right: 2px; }
.panel h2 { justify-content: flex-start; gap: 4px; }
.panel h2 .ai-src { margin-left: auto; }
th { background: var(--bar) !important; color: #8a93a3; font: 500 10.5px/1 ui-monospace, 'SF Mono', Menlo, monospace; letter-spacing: 0.06em; }
th, td { border-bottom-color: var(--line); }

/* tags: hairline mono, not pastel pills */
.ai-src, .ai-src.ai, .ai-src.heuristic {
  border-radius: 3px; background: transparent; border: 1px solid var(--edge); color: #8a93a3;
  font: 600 9.5px/1 ui-monospace, Menlo, monospace; padding: 4px 6px;
}
.ai-src.ai { border-color: rgba(226, 35, 26, 0.5); color: #ff8a83; }

/* status: a square mark and the word */
.badge {
  background: none !important; padding: 0; border-radius: 0; display: inline-flex; align-items: center; gap: 7px;
  font: 500 12px/1 ui-monospace, 'SF Mono', Menlo, monospace; letter-spacing: 0.02em; text-transform: lowercase;
}
.badge::before { content: ''; width: 7px; height: 7px; border-radius: 1px; background: currentColor; flex: none; }
.b-ok, .b-recon-ok { color: #5fd38d; }
.b-pending { color: #ffb454; }
.b-refund { color: #82aaff; }
.b-fail, .b-recon-mismatch { color: #ff7a72; }
.b-recon-none { color: #6b7280; }
.anom .badge, .anom.info .badge, .anom.warn .badge, .anom.alert .badge { background: none; margin-left: 8px; }
.anom.info .badge { color: #82aaff; } .anom.warn .badge { color: #ffb454; } .anom.alert .badge { color: #ff7a72; }
.anom .lvl, .flag .lvl { border-radius: 1px; width: 7px; height: 7px; }

/* reconciliation: dark cells, not white tiles */
.recon-stats { gap: 1px; background: var(--line); border: 1px solid var(--edge); border-radius: 8px; overflow: hidden; }
.stat { background: var(--pane) !important; border: 0; border-radius: 0; margin: 0; }
.stat .l { font: 500 10px/1.2 ui-monospace, 'SF Mono', Menlo, monospace; letter-spacing: 0.06em; }
.run { border-radius: 8px; }

/* points as quiet rows, not red bullets in bold */
.ai-points { gap: 0; }
.ai-points li {
  padding: 8px 0 8px 18px; font-weight: 400; color: #c9d1dc; border-top: 1px solid var(--line);
}
.ai-points li:first-child { border-top: 0; padding-top: 0; }
.ai-points li::before { content: '›'; width: auto; height: auto; background: none; top: 8px; left: 2px; color: #5c6473; }
.ai-points li:first-child::before { top: 0; }
.ai-summary { font-weight: 400; }
.flag .ft, .anom .ft { font-weight: 500; }

/* the table: money and time read in one line, references dimmer */
td.amt { white-space: nowrap; font: 500 13px/1.3 ui-monospace, 'SF Mono', Menlo, monospace; color: #fff; }
tbody td:first-child { font: 400 12px/1.4 ui-monospace, 'SF Mono', Menlo, monospace; color: #8a93a3; }
tbody tr:hover td { background: rgba(255, 255, 255, 0.02); }

/* the one action: red, but sized to its words */
.run { width: auto; padding: 11px 18px; font-size: 13.5px; }

/* reconciliation breaks: each line that did not match, why, and what to do */
.breaks { display: grid; gap: 0; margin-top: 14px; }
.brk { padding: 12px 0; border-top: 1px solid var(--line); display: grid; gap: 4px; }
.brk-h { display: flex; justify-content: space-between; gap: 10px; }
.brk-h .ref { font-size: 11.5px; }
.brk-k { font: 500 10.5px/1 ui-monospace, Menlo, monospace; text-transform: uppercase; letter-spacing: 0.06em; color: #ff8a83; white-space: nowrap; }
.brk-a { font: 500 12.5px/1.4 ui-monospace, 'SF Mono', Menlo, monospace; color: #fff; }
.brk-a span { color: #5c6473; margin: 0 4px; }
.brk-e { font-size: 13px; color: #c9d1dc; line-height: 1.45; }
.brk-n { font: 400 12px/1.4 ui-monospace, Menlo, monospace; color: #8a93a3; }
.brk-more { padding-top: 10px; border-top: 1px solid var(--line); font: 400 12px/1 ui-monospace, Menlo, monospace; color: #8a93a3; }
