/* ═══════════════════════════════════════════════════════════════
   OPTIMUS PRIME LOANS — application styles
   See styleguide.html for the system this implements.

   Rules: 4px corners · 1px borders, no shadows · greyscale plus one
   blue · solid status badges, never pale fills · no gradients · no
   emoji · tabular figures on every number · 38px rows.
   ═══════════════════════════════════════════════════════════════ */

/* Self-hosted so the branches never depend on Google being reachable.
   Inter for the interface, Sora for display. */
@font-face{
  font-family:'Inter';
  src:url('/assets/fonts/inter-var.woff2') format('woff2');
  font-weight:100 900; font-style:normal; font-display:swap;
}
@font-face{
  font-family:'Sora';
  src:url('/assets/fonts/sora-var.woff2') format('woff2');
  font-weight:100 800; font-style:normal; font-display:swap;
}

:root{
  --ui:'Inter',-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Arial,sans-serif;
  --display:'Sora','Inter',-apple-system,"Segoe UI",Roboto,Arial,sans-serif;

  --blue:#1146A6;
  --blue-700:#0D3A8C;
  --navy:#253743;
  --navy-700:#1B2A34;

  --ink:#16202A;
  --text:#2B3A47;
  --text-muted:#64748B;
  --text-faint:#94A3B8;
  --line:#E4E8EC;
  --line-strong:#CFD6DD;
  --surface:#FFFFFF;
  --canvas:#F7F8F9;
  --hover:#F5F6F7;

  --ok:#0F7B55;
  --warn:#9A6200;
  --danger:#B22722;

  --r:4px;
  --row:38px;
}

*{box-sizing:border-box;}

html,body{
  margin:0;padding:0;background:var(--canvas);color:var(--text);
  font-family:var(--ui);
  font-size:14px;line-height:1.5;
  -webkit-font-smoothing:antialiased;
}

/* Every figure in the system lines up. */
.num,td.num,.stat-value,.mono,input.num{font-variant-numeric:tabular-nums;}
.mono{font-family:"Cascadia Mono",ui-monospace,Consolas,"SF Mono",monospace;}

h1,h2,h3,h4{margin:0;color:var(--ink);font-family:var(--display);
  font-weight:600;letter-spacing:-.015em;}
h1{font-size:21px;} h2{font-size:16px;} h3{font-size:14.5px;} h4{font-size:13px;}
.stat-value{font-family:var(--display);}
p{margin:0 0 10px;} p:last-child{margin-bottom:0;}
a{color:var(--blue);text-decoration:none;}
a:hover{text-decoration:underline;}
.muted{color:var(--text-muted);}
.faint{color:var(--text-faint);}
.small{font-size:12.5px;}
.ok{color:var(--ok);} .warn{color:var(--warn);} .danger{color:var(--danger);}
.right{text-align:right;} .nowrap{white-space:nowrap;}

/* ── shell ─────────────────────────────────────────────────── */

.shell{display:flex;min-height:100vh;}

/* Fixed: the nav stays put while the page behind it scrolls. */
.sidebar{position:fixed;top:0;left:0;bottom:0;z-index:20;
  width:248px;background:var(--navy);display:flex;flex-direction:column;}

.sb-brand{padding:var(--brandpad,18px) 20px;border-bottom:1px solid rgba(255,255,255,.08);}
.lockup{display:flex;align-items:center;gap:11px;}
.lockup img{height:var(--brandlogo,34px);width:auto;display:block;}
.lockup .wordmark{line-height:1.1;}
.lockup .wordmark b{display:block;font-family:var(--display);font-size:16px;
  font-weight:600;color:#fff;letter-spacing:-.015em;}
.lockup .wordmark i{display:block;margin-top:1px;font-size:10px;font-style:normal;
  letter-spacing:.2em;text-transform:uppercase;color:#8FA8BF;font-weight:600;}

/* Spacing scales with the window height, so the nav fits without scrolling
   on a laptop and still breathes on a big monitor. --navpad is overridden
   by the height queries at the end of this block. */
.sidebar{--navpad:9px;--navfont:14px;--navicon:18px;}

/* A short menu gets taller, roomier rows: an officer has seven items, a
   director twelve. Without this the short menu stops halfway down the
   sidebar with an empty gap beneath it. */
.sidebar.nav-roomy{--navpad:13px;--navfont:15px;--navicon:20px;--navmax:72px;}
.sidebar.nav-mid{--navpad:11px;--navfont:14.5px;--navicon:19px;--navmax:62px;}

/* The links share out whatever height is going, so the nav fills the sidebar
   instead of stopping halfway with a gap beneath it. They stop growing at
   --navmax, which keeps a tall monitor from turning them into billboards. */
.sb-nav{padding:8px 0;flex:1;display:flex;flex-direction:column;
  overflow-y:auto;scrollbar-width:thin;scrollbar-color:#4A6076 transparent;}
.sb-nav a{display:flex;align-items:center;gap:12px;flex:1 1 0;
  min-height:calc(var(--navpad) * 2 + 20px);max-height:var(--navmax,64px);
  padding:0 20px;
  color:#A7BACB;font-size:var(--navfont);border-left:3px solid transparent;}
.sb-nav a svg{width:var(--navicon);height:var(--navicon);flex:none;
  stroke:currentColor;stroke-width:2;fill:none;
  stroke-linecap:round;stroke-linejoin:round;opacity:.85;}

/* A thin, quiet scrollbar for the rare case it is still needed. */
.sb-nav::-webkit-scrollbar{width:5px;}
.sb-nav::-webkit-scrollbar-track{background:transparent;}
.sb-nav::-webkit-scrollbar-thumb{background:#4A6076;border-radius:3px;}
.sb-nav::-webkit-scrollbar-thumb:hover{background:#5E7488;}

@media (max-height:860px){
  .sidebar{--navpad:7px;--navfont:13.5px;--navicon:17px;--navmax:58px;
           --brandpad:14px;--brandlogo:30px;--secpad:13px;}
  .sidebar.nav-roomy{--navpad:11px;--navfont:14.5px;--navicon:19px;--navmax:64px;}
  .sidebar.nav-mid{--navpad:9px;--navfont:14px;--navicon:18px;--navmax:56px;}
}
@media (max-height:740px){
  .sidebar{--navpad:5.5px;--navfont:13px;--navicon:16px;--navmax:50px;
           --brandpad:11px;--brandlogo:27px;--secpad:10px;}
  .sidebar.nav-roomy{--navpad:9px;--navfont:14px;--navicon:18px;--navmax:56px;}
  .sidebar.nav-mid{--navpad:7px;--navfont:13.5px;--navicon:17px;--navmax:50px;}
  .sb-foot{padding:10px 20px;}
  .avatar{width:28px;height:28px;}
}
@media (max-height:640px){
  .sidebar{--navpad:4px;--navfont:12.5px;--navicon:15px;--navmax:40px;
           --brandpad:9px;--brandlogo:24px;--secpad:8px;}
  .sb-foot{padding:8px 20px;}
  .sb-foot .who span{display:none;}
}

/* On a phone the nav is a horizontal strip, so none of the stretching applies. */
@media (max-width:760px){
  .sb-nav{flex-direction:row;}
  .sb-nav a{flex:0 0 auto;max-height:none;padding:10px 14px;}
}
.sb-nav a:hover{background:var(--navy-700);color:#fff;text-decoration:none;}
.sb-nav a.on{background:var(--navy-700);color:#fff;border-left-color:var(--blue);font-weight:500;}
.sb-nav a.on svg{opacity:1;}
.sb-sec{flex:0 0 auto;padding:var(--secpad,18px) 20px 6px;font-size:10px;
  letter-spacing:.12em;text-transform:uppercase;color:#5E7488;font-weight:600;}

/* Counts live on the nav item they belong to, never in a page banner. */
.sb-nav .count{margin-left:auto;background:var(--blue);color:#fff;font-size:11px;
  font-weight:600;min-width:19px;height:19px;border-radius:10px;padding:0 6px;
  display:flex;align-items:center;justify-content:center;font-variant-numeric:tabular-nums;}

.sb-foot{padding:14px 16px 14px 20px;border-top:1px solid rgba(255,255,255,.08);
  display:flex;align-items:center;gap:9px;}
.avatar{width:32px;height:32px;flex:none;border-radius:50%;background:var(--blue);
  color:#fff;font-size:11.5px;font-weight:600;display:flex;align-items:center;
  justify-content:center;}
.sb-foot .who{min-width:0;flex:1;}
.sb-foot .who b{display:block;font-size:13px;color:#fff;font-weight:500;
  overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.sb-foot .who span{font-size:11px;color:#7E96AB;}

.sb-foot-actions{display:flex;gap:2px;flex:none;}
.sb-foot-actions a{color:#7E96AB;display:flex;padding:5px;border-radius:var(--r);}
.sb-foot-actions a:hover{color:#fff;background:rgba(255,255,255,.08);}
.sb-foot-actions a.on{color:#fff;background:var(--blue);}
.sb-foot-actions a svg{width:16px;height:16px;stroke:currentColor;stroke-width:2;
  fill:none;stroke-linecap:round;stroke-linejoin:round;}

/* Offset by the fixed sidebar's width. */
.main{flex:1;min-width:0;display:flex;flex-direction:column;margin-left:248px;}

/* The top bar stays with it, so the page title and the idle warning are
   always visible on a long list. */
.topbar{position:sticky;top:0;z-index:10;
  background:#fff;border-bottom:1px solid var(--line);padding:0 20px;height:52px;
  display:flex;align-items:center;justify-content:space-between;gap:16px;}
.topbar h1{font-size:15px;}
.topbar .idle{font-size:12px;color:var(--text-faint);}
.topbar .idle.warn{color:var(--warn);font-weight:600;}

/* One column for everything on the page, so a form and the table under it
   end on the same line down the right. Capped because a table stretched
   across a 24-inch monitor is unreadable, and centred because left-aligned
   content with a wide empty strip beside it looks like something failed to
   load. */
.content{padding:18px 20px 40px;flex:1;width:100%;max-width:1320px;
  margin-inline:auto;}

/* ── cards & panels ────────────────────────────────────────── */

/* 148px keeps all five of a director's cards on one row beside the wider
   sidebar, instead of orphaning "Overdue" onto a second line. */
.stats{display:grid;grid-template-columns:repeat(auto-fit,minmax(148px,1fr));gap:12px;
  margin-bottom:16px;}
.stat{background:var(--surface);border:1px solid var(--line);border-radius:var(--r);
  padding:14px 16px;}
.stat-label{font-size:11px;letter-spacing:.07em;text-transform:uppercase;
  color:var(--text-faint);font-weight:600;}
.stat-value{display:block;margin-top:7px;font-size:23px;font-weight:600;
  color:var(--ink);letter-spacing:-.02em;}
.stat-sub{display:block;margin-top:3px;font-size:11.5px;color:var(--text-muted);}
.stat-value.ok{color:var(--ok);}
.stat-value.danger{color:var(--danger);}

.panel{background:var(--surface);border:1px solid var(--line);border-radius:var(--r);
  padding:18px 20px;margin-bottom:16px;}
.panel.narrow{max-width:440px;}
.panel > h2{font-size:15px;margin-bottom:4px;}
.panel > h2 + .muted{margin-bottom:14px;}

.box-title{font-size:11px;letter-spacing:.08em;text-transform:uppercase;
  color:var(--text-faint);font-weight:600;margin-bottom:12px;}

/* ── tables ────────────────────────────────────────────────── */

.table-card{background:var(--surface);border:1px solid var(--line);
  border-radius:var(--r);overflow:hidden;margin-bottom:16px;}
.table-head{display:flex;align-items:center;justify-content:space-between;gap:12px;
  padding:12px 16px;border-bottom:1px solid var(--line);}
.table-head h2{font-size:14px;}

table{width:100%;border-collapse:collapse;}
thead th{text-align:left;padding:0 16px;height:30px;background:#FAFAFB;
  font-size:10.5px;letter-spacing:.07em;text-transform:uppercase;
  color:var(--text-faint);font-weight:600;border-bottom:1px solid var(--line);
  white-space:nowrap;}
thead th.right{text-align:right;}
tbody td{padding:0 16px;height:var(--row);border-bottom:1px solid var(--line);
  font-size:13.5px;}
tbody tr:last-child td{border-bottom:none;}
tbody tr:hover td{background:var(--hover);}
tbody tr.dim td{color:var(--text-faint);}
td.id{font-family:ui-monospace,Consolas,monospace;font-size:12.5px;color:var(--text-muted);}
td .primary{color:var(--ink);font-weight:500;}
td .secondary{display:block;font-size:11.5px;color:var(--text-faint);margin-top:-2px;}
.cell-stack{line-height:1.3;padding:5px 0;}
.table-foot{padding:9px 16px;border-top:1px solid var(--line);
  font-size:12px;color:var(--text-muted);display:flex;justify-content:space-between;}
.empty{padding:34px 16px;text-align:center;color:var(--text-faint);font-size:13.5px;}

/* ── status badges — solid colour, white text ──────────────── */

.pill{display:inline-flex;align-items:center;padding:2px 7px;border-radius:3px;
  font-size:11px;font-weight:600;letter-spacing:.025em;color:#fff;
  white-space:nowrap;line-height:1.5;}
.p-ok{background:var(--ok);}
.p-warn{background:var(--warn);}
.p-danger{background:var(--danger);}
.p-info{background:var(--blue);}
.p-muted{background:#8794A1;}

/* ── forms ─────────────────────────────────────────────────── */

label{display:block;font-size:12.5px;font-weight:600;color:var(--ink);margin:0 0 5px;}
.field{margin-bottom:14px;}
.field:last-child{margin-bottom:0;}

/* Filled inputs, no border. The fill is the affordance. */
input[type=text],input[type=password],input[type=email],input[type=number],
input[type=date],select,textarea{
  width:100%;padding:9px 12px;font:inherit;font-size:13.5px;color:var(--text);
  background-color:#EEEEEE;border:none;border-radius:var(--r);appearance:none;}
input::placeholder,textarea::placeholder{color:var(--text-faint);}
/* background-COLOR, not the shorthand: the shorthand would reset
   background-repeat and tile the select's chevron across the field. */
input:focus,select:focus,textarea:focus{outline:none;background-color:#E7E9EB;
  box-shadow:inset 0 0 0 2px var(--blue);}
input[disabled],select[disabled]{color:var(--text-faint);opacity:.7;}

/* A select needs to look like one. `appearance:none` removes the native
   arrow, so we draw our own — the same chevron as the icon set, inline so
   it loads with the stylesheet. */
select{
  padding-right:34px;
  background-image:url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2364748B' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat:no-repeat;
  background-position:right 11px center;
  background-size:15px 15px;
  cursor:pointer;
}
select:focus{
  background-image:url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231146A6' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
}
select::-ms-expand{display:none;}
.hint{font-size:11.5px;color:var(--text-muted);margin-top:4px;}
.hint.err{color:var(--danger);}

/* Form panels run four fields across, so eight fields are two even rows with
   no gap at the end. Fixed columns rather than auto-fit, which would drop to
   three and strand the last two fields.
   
   The panel itself is NOT narrowed. It used to shrink to 560px on anything
   under 1180px wide, which left a half-width form sitting beside full-width
   panels on the same page and read as a broken layout. Fewer columns is the
   right answer to a narrow window; a narrower panel is not. */
.panel.form-panel > h2 + .muted{margin-bottom:10px;}
.form-panel .form-grid{grid-template-columns:repeat(4,1fr);}

/* Straight from four to two. Three columns would strand the last two fields
   of an eight-field form, which is the gap we are avoiding. */
@media (max-width:1100px){ .form-panel .form-grid{grid-template-columns:repeat(2,1fr);} }
@media (max-width:640px){  .form-panel .form-grid{grid-template-columns:1fr;} }

.doc-row{display:flex;gap:10px;margin-bottom:8px;align-items:center;}
.doc-row select{flex:0 0 190px;}
.doc-row input[type=file]{flex:1;min-width:0;}

/* The two NRC slots are always the same thing, so they read as a label
   rather than a dropdown the officer has to think about. */
.doc-fixed{flex:0 0 190px;padding:9px 12px;font-size:13.5px;
  color:var(--text);background-color:#EEEEEE;border-radius:var(--r);}

.doc-row .btn{flex:none;}
.cam-thumb{flex:none;display:flex;align-items:center;gap:7px;}
.cam-thumb img{height:34px;width:auto;max-width:60px;object-fit:cover;
  border-radius:3px;border:1px solid var(--line-strong);display:block;}
.cam-thumb b{font-size:11px;font-weight:500;color:var(--text-faint);}

/* ── loans ─────────────────────────────────────────────────── */

.loan-layout{display:grid;grid-template-columns:1.25fr 1fr;gap:0 16px;align-items:start;}
@media (max-width:1100px){ .loan-layout{grid-template-columns:1fr;} }

.form-grid.two{grid-template-columns:repeat(2,1fr);}
@media (max-width:620px){ .form-grid.two{grid-template-columns:1fr;} }

/* The summary follows the officer down a long form. */
.panel.summary{position:sticky;top:68px;}
.panel.summary .dl dd{font-size:14px;}
.panel.summary .dl dd.num{font-weight:600;color:var(--ink);}

.total-row{display:flex;gap:8px;}
.total-input{font-size:17px;font-weight:600;}

/* ── top bar search ────────────────────────────────────────── */

.topbar-right{display:flex;align-items:center;gap:14px;}
.searchbox{position:relative;margin:0;}
.searchbox svg{position:absolute;left:9px;top:8px;width:14px;height:14px;
  stroke:var(--text-faint);stroke-width:2;fill:none;
  stroke-linecap:round;stroke-linejoin:round;pointer-events:none;}
.searchbox input{width:250px;padding-left:29px;font-size:13px;}
.searchbox input:focus{width:320px;}
@media (max-width:860px){ .searchbox input,.searchbox input:focus{width:150px;} }

/* ── payment calendar ──────────────────────────────────────── */

.cal-nav{display:flex;align-items:center;gap:10px;}
.cal-nav h2{font-size:15px;min-width:130px;}

.calendar{display:grid;grid-template-columns:repeat(7,1fr);
  border-top:1px solid var(--line);}
.cal-head{padding:7px 10px;font-size:10.5px;letter-spacing:.07em;text-transform:uppercase;
  color:var(--text-faint);font-weight:600;background:#FAFAFB;
  border-bottom:1px solid var(--line);border-right:1px solid var(--line);}
.cal-head:nth-child(7n){border-right:none;}

.cal-day{min-height:94px;padding:6px 8px;border-bottom:1px solid var(--line);
  border-right:1px solid var(--line);}
.cal-day:nth-child(7n){border-right:none;}
.cal-day.empty-day{background:#FCFCFD;}
.cal-day.today{box-shadow:inset 0 0 0 2px var(--blue);}
.cal-day.late{background:#FDF8F8;}

.cal-date{font-size:11.5px;color:var(--text-faint);font-weight:600;}
.cal-day.today .cal-date{color:var(--blue);}
.cal-total{font-size:12.5px;font-weight:600;color:var(--ink);margin:2px 0 4px;
  font-variant-numeric:tabular-nums;}
.cal-total.danger{color:var(--danger);}
.cal-items{display:flex;flex-direction:column;gap:1px;}
.cal-item{font-size:11px;color:var(--text-muted);overflow:hidden;
  text-overflow:ellipsis;white-space:nowrap;}
.cal-item:hover{color:var(--blue);text-decoration:none;}
.cal-more{font-size:10.5px;color:var(--text-faint);}

@media (max-width:760px){
  .calendar{grid-template-columns:1fr;}
  .cal-head{display:none;}
  .cal-day{min-height:0;border-right:none;}
  .cal-day.empty-day{display:none;}
}

/* ── statement ─────────────────────────────────────────────── */

.st-lines{width:100%;border-collapse:collapse;margin:16px 0 0;}
.st-lines thead th{background:none;border-bottom:1px solid var(--navy);
  padding:6px 8px;height:auto;font-size:10px;color:var(--text-muted);}
.st-lines tbody td{padding:6px 8px;height:auto;font-size:12px;
  border-bottom:1px solid var(--line);}
.st-lines tbody tr:hover td{background:none;}

/* The date, the reference and the three money columns each need exactly as
   much room as their contents and no more. Everything left over goes to the
   description, which is the only column with anything long in it. */
.st-lines th:first-child,.st-lines td:first-child,
.st-lines th:nth-child(2),.st-lines td:nth-child(2){white-space:nowrap;width:1%;}
.st-lines th:nth-child(n+4),.st-lines td:nth-child(n+4){white-space:nowrap;width:1%;
  padding-left:18px;}
.st-lines td:nth-child(3){width:auto;}

/* ── image viewer ──────────────────────────────────────────── */

body.viewer-open{overflow:hidden;}

.viewer{position:fixed;inset:0;z-index:200;display:none;
  background:rgba(14,20,26,.94);}
.viewer.on{display:grid;grid-template-columns:64px 1fr 64px;
  grid-template-rows:48px 1fr;align-items:center;}

.viewer-bar{grid-column:1/-1;grid-row:1;display:flex;align-items:center;gap:14px;
  padding:0 14px;color:#C7D4E0;font-size:13px;}
.viewer-cap{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;
  white-space:nowrap;color:#fff;font-weight:500;}
.viewer-count{flex:none;font-variant-numeric:tabular-nums;color:#8FA8BF;}
.viewer-open{flex:none;color:#8FA8BF;font-size:12.5px;}
.viewer-open:hover{color:#fff;}
.viewer-close{flex:none;background:none;border:none;color:#8FA8BF;
  font-size:26px;line-height:1;cursor:pointer;padding:0 4px;}
.viewer-close:hover{color:#fff;}

.viewer-stage{grid-column:2;grid-row:2;display:flex;align-items:center;
  justify-content:center;height:100%;overflow:auto;padding:8px 0 20px;}
.viewer-stage img{max-width:100%;max-height:calc(100vh - 90px);
  object-fit:contain;cursor:zoom-in;border-radius:3px;background:#fff;}
.viewer-stage img.actual{max-width:none;max-height:none;cursor:zoom-out;}

.viewer-nav{grid-row:2;background:none;border:none;color:#8FA8BF;
  font-size:42px;line-height:1;cursor:pointer;padding:0;}
.viewer-nav:hover{color:#fff;}
.viewer-nav.prev{grid-column:1;}
.viewer-nav.next{grid-column:3;}

@media (max-width:620px){
  .viewer.on{grid-template-columns:38px 1fr 38px;}
  .viewer-nav{font-size:30px;}
  .viewer-open{display:none;}
}

/* A thumbnail that opens the viewer should say so. */
.doc-tile[data-image],.col-photos a{cursor:zoom-in;}

/* ── collateral on a decision screen ───────────────────────── */

.col-item{display:flex;gap:12px;align-items:flex-start;justify-content:space-between;
  padding:10px 0;border-bottom:1px solid var(--line);}
.col-item:last-of-type{border-bottom:none;}
.col-text{min-width:0;}
.col-text b{display:block;font-size:13.5px;color:var(--ink);}
.col-text span{display:block;font-size:11.5px;color:var(--text-muted);margin-top:1px;}
.col-text span.danger{color:var(--danger);}
.col-photos{display:flex;gap:6px;flex:none;}
.col-photos img{width:54px;height:40px;object-fit:cover;border-radius:3px;
  border:1px solid var(--line-strong);display:block;}
.col-photos a:hover img{border-color:var(--blue);}

/* ── penalty modes ─────────────────────────────────────────── */

.penalty-modes{display:flex;flex-direction:column;gap:8px;margin-top:6px;}
.mode{display:flex;align-items:flex-start;gap:10px;margin:0;padding:11px 13px;
  border:1px solid var(--line-strong);border-radius:var(--r);cursor:pointer;
  font-weight:400;background:#fff;}
.mode:hover{background:var(--hover);}
.mode input[type=checkbox]{width:auto;margin:2px 0 0;accent-color:var(--blue);flex:none;}
.mode .mode-text{min-width:0;flex:1;}
.mode .mode-text b{display:block;font-size:13.5px;font-weight:600;color:var(--ink);}
.mode .mode-text i{display:block;font-style:normal;font-size:12px;color:var(--text-muted);
  margin:2px 0 0;line-height:1.4;}
.mode .mode-text input[type=text]{margin-top:7px;max-width:150px;}
.mode:has(input:checked){border-color:var(--blue);box-shadow:inset 0 0 0 1px var(--blue);}

/* ── payment channels ──────────────────────────────────────── */

.net-mark{width:22px;height:22px;border-radius:3px;object-fit:contain;
  display:block;background:#fff;}
.net-generic{display:flex;align-items:center;justify-content:center;
  border:1px solid var(--line-strong);border-radius:3px;
  font-size:9px;font-weight:700;letter-spacing:.02em;color:var(--text-muted);
  background:#fff;}

/* Cash and banks get a drawn icon — initials for those read as nonsense. */
.net-icon{display:flex;align-items:center;justify-content:center;border-radius:3px;}
.net-icon svg{width:62%;height:62%;stroke:currentColor;stroke-width:2;fill:none;
  stroke-linecap:round;stroke-linejoin:round;}
.net-cash{background:#E7F2EC;color:var(--ok);}
.net-bank{background:#EAEFF7;color:var(--blue);}

/* Picking which of our own accounts the money arrived on. Cards rather than a
   dropdown: the network mark is far quicker to recognise than a line of text
   when somebody is standing at the counter. */
.channel-picks{display:grid;grid-template-columns:repeat(auto-fill,minmax(190px,1fr));
  gap:8px;margin-top:4px;}
.channel-pick{display:flex;align-items:center;gap:9px;margin:0;padding:8px 10px;
  border:1px solid var(--line-strong);border-radius:var(--r);cursor:pointer;
  background:#fff;font-weight:400;}
.channel-pick:hover{background:var(--hover);}
.channel-pick input{width:auto;margin:0;accent-color:var(--blue);flex:none;}
.channel-pick img{flex:none;border-radius:3px;object-fit:contain;}
.channel-pick .cp-text{min-width:0;line-height:1.25;}
.channel-pick .cp-text b{display:block;font-size:12.5px;font-weight:500;color:var(--ink);
  overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.channel-pick .cp-text i{display:block;font-style:normal;font-size:11px;
  color:var(--text-faint);}
.channel-pick:has(input:checked){border-color:var(--blue);
  box-shadow:inset 0 0 0 1px var(--blue);}

/* ── printed documents ───────────────────────── */

/* Laid out the way the Stata documents these people have been handing to
   customers for years are laid out: everything in the masthead centred, a
   rule, the document's name in capitals, a rule, then label-and-value rows
   with the values right-aligned so the money lines up. Two signature lines
   at the foot, and the time it was printed underneath.

   The pattern is kept because the staff already know it and the customers
   already recognise it, not because it is the only way to set a page. */

.receipt{background:#fff;border:1px solid var(--line);border-radius:var(--r);
  padding:30px 34px;max-width:620px;margin-inline:auto;}

.r-head{text-align:center;padding-bottom:14px;}
.r-logo{height:52px;width:auto;display:block;margin:0 auto 10px;}
.r-biz b{display:block;font-family:var(--display);font-size:17px;color:var(--ink);
  letter-spacing:.01em;}
.r-biz span{display:block;font-size:11.5px;color:var(--text-muted);margin-top:2px;}

/* The rule that separates every section. Solid and thin: a printed document
   should not need colour to be read. */
.r-rule{border:none;border-top:1px solid var(--navy);margin:0;}

.r-title{text-align:center;margin:12px 0;}
.r-title h1{font-size:14px;letter-spacing:.09em;text-transform:uppercase;
  font-weight:600;color:var(--ink);}
.r-title .mono{display:block;font-size:12.5px;color:var(--text-muted);margin-top:3px;}
.r-title .reprint{display:block;font-size:11px;color:var(--text-muted);
  letter-spacing:.14em;margin-top:4px;}

.r-rows{width:100%;border-collapse:collapse;margin:12px 0;}
.r-rows th{text-align:left;padding:4px 0;font-size:12.5px;font-weight:400;
  color:var(--text-muted);background:none;border:none;height:auto;
  text-transform:none;letter-spacing:0;white-space:nowrap;width:42%;
  vertical-align:top;}
/* Right-aligned, so every figure in the column ends on the same line down
   the page and two amounts can be compared at a glance. */
.r-rows td{padding:4px 0;font-size:12.5px;border:none;height:auto;
  text-align:right;}
.r-rows tr:hover td{background:none;}

/* The one figure the document exists to state. Bold and a size up, between
   two rules — rather than a filled dark panel, which eats ink and comes out
   muddy on an office printer. */
.r-amount{display:flex;align-items:baseline;justify-content:space-between;
  gap:16px;margin:0;padding:11px 0;
  border-top:1px solid var(--navy);border-bottom:1px solid var(--navy);}
.r-amount span{font-size:12.5px;letter-spacing:.06em;text-transform:uppercase;
  color:var(--text-muted);}
.r-amount b{font-family:var(--display);font-size:19px;color:var(--ink);}

.r-balance{display:flex;align-items:baseline;justify-content:space-between;
  gap:16px;margin-top:12px;padding-top:10px;border-top:1px solid var(--line);}
.r-balance span{font-size:12.5px;color:var(--text-muted);}
.r-balance b{font-size:15px;color:var(--ink);}

.r-settled{margin-top:12px;padding:9px 12px;border:1px solid var(--ok);
  border-radius:var(--r);color:var(--ok);font-size:13px;font-weight:600;text-align:center;}
.r-note{margin-top:12px;font-size:12px;color:var(--text-muted);text-align:center;}
.r-void{margin-top:12px;padding:9px 12px;border:2px solid var(--danger);
  border-radius:var(--r);color:var(--danger);font-weight:700;letter-spacing:.1em;
  text-align:center;}

/* Two signatures, because the customer signs for their own money. One line
   each, side by side, with room to actually write. */
.r-signs{display:flex;gap:34px;margin-top:30px;}
.r-signs div{flex:1;}
.r-sig{display:block;border-bottom:1px solid var(--navy);height:30px;}
.r-signs small{display:block;margin-top:5px;font-size:11px;color:var(--text-muted);}

.r-meta{margin-top:18px;text-align:center;font-size:10.5px;color:var(--text-faint);}

/* ── printing ──────────────────────────────────────────────── */

@media print{
  /* Only the receipt itself reaches the paper. */
  .sidebar,.topbar,.no-print,.flash{display:none !important;}
  .main{margin-left:0 !important;}
  .content{padding:0 !important;}
  html,body{background:#fff !important;}
  .content{max-width:none !important;margin:0 !important;}
  .receipt{border:none;max-width:100%;padding:0;margin-inline:0;}

  /* Printers are told to drop background colours, so everything that marks
     a section has to be a line or a weight, not a fill. */
  .r-rule{border-top-color:#000;}
  .r-amount{border-top-color:#000;border-bottom-color:#000;}
  .r-amount span,.r-amount b,.r-balance b,.r-title h1{color:#000 !important;}
  .r-sig{border-bottom-color:#000;}

  /* A table of lines must not be split in the middle of a row. */
  .st-lines tr{break-inside:avoid;}
  .st-lines thead{display:table-header-group;}
  .r-signs{break-inside:avoid;}

  @page{margin:14mm;}
}

/* ── tabs ──────────────────────────────────────────────────── */

.tabs{display:flex;gap:2px;}
.tabs a{padding:6px 12px;border-radius:var(--r);font-size:13px;font-weight:500;
  color:var(--text-muted);}
.tabs a:hover{background:var(--hover);text-decoration:none;}
.tabs a.on{background:var(--navy);color:#fff;}

/* ── type-to-search ────────────────────────────────────────── */

.combo{position:relative;}
.combo-input{width:100%;}
.combo.chosen .combo-input{font-weight:500;color:var(--ink);
  box-shadow:inset 0 0 0 2px var(--ok);}

/* A dropdown genuinely floats, so a shadow belongs here. */
.combo-list{display:none;position:absolute;z-index:40;left:0;right:0;top:calc(100% + 4px);
  max-height:290px;overflow-y:auto;background:#fff;border:1px solid var(--line-strong);
  border-radius:var(--r);box-shadow:0 8px 24px rgba(22,32,42,.16);}
.combo-list.on{display:block;}

.combo-item{padding:8px 12px;cursor:pointer;border-bottom:1px solid var(--line);
  display:flex;align-items:baseline;gap:8px;flex-wrap:wrap;}
.combo-item:last-child{border-bottom:none;}
.combo-item.on,.combo-item:hover{background:var(--hover);}
.combo-item b{font-size:13.5px;font-weight:500;color:var(--ink);}
.combo-num{font-family:ui-monospace,Consolas,monospace;font-size:11.5px;color:var(--text-muted);}
.combo-item i{flex:1 1 100%;font-style:normal;font-size:11.5px;color:var(--text-faint);}
.combo-empty{padding:14px 12px;font-size:13px;color:var(--text-faint);text-align:center;}

/* ── verification ──────────────────────────────────────────── */

/* Captured detail on the left, the checks on the right. */
.check-layout{display:grid;grid-template-columns:1fr 1fr;gap:0 16px;align-items:start;}
@media (max-width:1100px){ .check-layout{grid-template-columns:1fr;} }

.doc-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(118px,1fr));gap:10px;}
.doc-tile{display:block;border:1px solid var(--line);border-radius:var(--r);
  overflow:hidden;background:var(--canvas);}
.doc-tile:hover{border-color:var(--blue);text-decoration:none;}
.doc-tile img{display:block;width:100%;height:84px;object-fit:cover;}
.doc-pdf{display:flex;align-items:center;justify-content:center;height:84px;
  font-size:13px;font-weight:600;color:var(--text-faint);}
.doc-tile b{display:block;padding:6px 8px;font-size:11.5px;font-weight:500;
  color:var(--text);border-top:1px solid var(--line);background:#fff;}

.checks .check{padding:14px 0;border-bottom:1px solid var(--line);}
.checks .check:last-of-type{border-bottom:none;}
.check-head{font-size:13.5px;font-weight:600;color:var(--ink);margin-bottom:5px;}
.check-items{margin:0 0 9px;padding:0;list-style:none;}
.check-items li{position:relative;padding-left:13px;font-size:12.5px;
  color:var(--text-muted);line-height:1.5;}
.check-items li::before{content:"";position:absolute;left:2px;top:8px;
  width:4px;height:4px;border-radius:50%;background:var(--text-faint);}

.check-choices{display:flex;gap:16px;margin-bottom:8px;}
.choice{display:flex;align-items:center;gap:6px;margin:0;cursor:pointer;
  font-size:13px;font-weight:500;}
.choice input{width:auto;margin:0;accent-color:var(--blue);cursor:pointer;}

/* ── camera ────────────────────────────────────────────────── */

.cam-overlay{position:fixed;inset:0;z-index:100;display:none;
  align-items:center;justify-content:center;padding:20px;
  background:rgba(22,32,42,.72);}
.cam-overlay.on{display:flex;}

/* A modal genuinely floats, so this is the one place a shadow belongs. */
.cam-box{background:#fff;border-radius:6px;width:100%;max-width:640px;
  box-shadow:0 18px 50px rgba(0,0,0,.35);overflow:hidden;}
.cam-head{display:flex;align-items:center;justify-content:space-between;
  padding:13px 18px;border-bottom:1px solid var(--line);}
.cam-head h2{font-size:15px;}

.cam-stage{position:relative;background:#16202A;aspect-ratio:4/3;}
.cam-stage video{width:100%;height:100%;object-fit:cover;display:block;}
/* A card-shaped guide, so the photo comes out framed and readable. */
.cam-guide{position:absolute;inset:11% 8%;border:2px dashed rgba(255,255,255,.55);
  border-radius:8px;pointer-events:none;}

.cam-msg{margin:0;padding:11px 18px;font-size:12.5px;color:var(--text-muted);
  border-bottom:1px solid var(--line);min-height:40px;}
.cam-msg.err{color:var(--danger);}

.cam-foot{display:flex;gap:10px;padding:14px 18px;}
.cam-foot .btn-primary{min-width:130px;}

@media (max-width:620px){
  .doc-row{flex-wrap:wrap;}
  .doc-row .doc-fixed,.doc-row select{flex:1 1 100%;}
}
input[type=file]{width:100%;padding:7px 10px;font:inherit;font-size:13px;
  background:#EEEEEE;border:none;border-radius:var(--r);}
.doc-row{padding-bottom:6px;}

.form-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));
  gap:0 18px;align-items:start;}
.form-grid label{margin-top:12px;}
.form-grid small{display:block;margin-top:4px;font-size:11.5px;color:var(--text-muted);}
.form-actions{grid-column:1/-1;margin-top:16px;display:flex;gap:10px;align-items:center;}

.filters{display:flex;gap:10px;margin-bottom:14px;flex-wrap:wrap;}
.filters select,.filters input{width:auto;min-width:160px;}

/* ── buttons ───────────────────────────────────────────────── */

.btn{display:inline-flex;align-items:center;justify-content:center;gap:7px;
  padding:7px 14px;border-radius:var(--r);border:1px solid var(--line-strong);
  background:#fff;color:var(--text);font:inherit;font-size:13.5px;font-weight:500;
  cursor:pointer;white-space:nowrap;}
.btn:hover{background:var(--hover);text-decoration:none;}
.btn svg{width:15px;height:15px;flex:none;stroke:currentColor;stroke-width:2;
  fill:none;stroke-linecap:round;stroke-linejoin:round;}
.btn-primary{background:var(--blue);border-color:var(--blue);color:#fff;}
.btn-primary:hover{background:var(--blue-700);}
.btn-danger{color:var(--danger);border-color:#E7C3C1;}
.btn-danger:hover{background:var(--hover);border-color:var(--danger);}
.btn-sm{padding:4px 10px;font-size:12.5px;}
.btn-block{width:100%;}
.btn[disabled]{opacity:.45;cursor:not-allowed;}

.linkbtn{background:none;border:none;padding:0;color:var(--blue);
  font:inherit;font-size:13.5px;cursor:pointer;}
.linkbtn:hover{text-decoration:underline;}

form.inline{display:inline-flex;align-items:center;gap:7px;margin:0;}
.button-row{display:flex;flex-wrap:wrap;gap:10px;align-items:center;}
.reason-input{width:170px;padding:6px 9px;font-size:13px;}

/* ── flashes — left rule, no tinted fill ───────────────────── */

.flash{background:var(--surface);border:1px solid var(--line);border-left:3px solid var(--blue);
  border-radius:var(--r);padding:10px 14px;margin-bottom:14px;font-size:13.5px;
  color:var(--text);}
.flash-success{border-left-color:var(--ok);}
.flash-error{border-left-color:var(--danger);}
.flash-warn{border-left-color:var(--warn);}
.flash b,.flash strong{color:var(--ink);}

/* ── detail list ───────────────────────────────────────────── */

.dl{display:grid;grid-template-columns:auto 1fr;gap:0 18px;font-size:13.5px;}
.dl dt{padding:6px 0;color:var(--text-muted);white-space:nowrap;
  border-bottom:1px solid var(--line);}
.dl dd{padding:6px 0;margin:0;color:var(--ink);text-align:right;
  border-bottom:1px solid var(--line);}
.dl .last{border-bottom:none;}
.flag{color:var(--warn);font-size:12px;display:block;margin-top:1px;}

/* ── credentials card — shown once after creating an account ─ */

.credentials{border:2px solid var(--blue);}
.credentials h2{margin-bottom:10px;}
.credentials h3{font-size:13px;margin:18px 0 6px;}
table.plain{width:auto;}
table.plain th{text-align:left;padding:7px 22px 7px 0;border:none;background:none;
  height:auto;text-transform:none;font-size:13px;color:var(--text-muted);
  white-space:nowrap;letter-spacing:0;}
table.plain td{padding:7px 0;border:none;height:auto;}
.big{font-size:19px;font-weight:600;letter-spacing:.06em;}
pre.codes{background:var(--canvas);border:1px solid var(--line);border-radius:var(--r);
  padding:13px 16px;font-size:15px;letter-spacing:.1em;line-height:1.85;
  font-family:"Cascadia Mono",ui-monospace,Consolas,monospace;margin:8px 0 0;}

/* ── sign in — split screen, brand left, form right ────────── */

.login-page{display:flex;min-height:100vh;}

/* Left: white, with a lending-motif wallpaper in brand blue and the
   full-colour logo. */
.login-brand{flex:1 1 46%;
  background-color:#fff;
  background-image:url('/assets/pattern-money-light.svg');
  background-repeat:repeat;
  background-size:260px 260px;
  display:flex;flex-direction:column;align-items:center;justify-content:center;
  padding:40px;text-align:center;}
.login-brand img{width:104px;height:auto;margin-bottom:26px;}
.login-brand b{display:block;font-family:var(--display);font-size:28px;
  font-weight:700;color:var(--ink);letter-spacing:-.02em;line-height:1.1;}
.login-brand i{display:block;margin-top:7px;font-style:normal;font-size:12px;
  letter-spacing:.34em;text-transform:uppercase;color:var(--blue);font-weight:600;}
.login-brand .tag{margin-top:20px;font-size:13px;color:var(--text-muted);
  max-width:270px;line-height:1.55;}

/* Right: plain white, no card, no border, no shadow. */
.login-form{flex:1 1 54%;background:#fff;display:flex;align-items:center;
  justify-content:center;padding:40px 36px;}
.login-form > div{width:100%;max-width:330px;}
.login-form h1{font-size:19px;margin-bottom:4px;}
.login-form .sub{font-size:13px;color:var(--text-muted);margin-bottom:22px;}
.login-form .btn-primary{width:100%;margin-top:8px;padding:9px;}
.login-form .fine{margin:18px 0 0;font-size:11.5px;color:var(--text-faint);text-align:center;}

@media (max-width:820px){
  .login-page{flex-direction:column;}
  .login-brand{flex:none;padding:30px 20px;}
  .login-brand img{width:54px;margin-bottom:14px;}
  .login-brand b{font-size:20px;}
  .login-brand i{font-size:10px;}
  .login-brand .tag{display:none;}
  .login-form{flex:1;padding:32px 22px;align-items:flex-start;}
}
.code-input{font-size:21px;letter-spacing:.3em;text-align:center;
  font-variant-numeric:tabular-nums;}
label.check{font-weight:400;font-size:13px;display:flex;align-items:center;gap:8px;
  margin:12px 0 0;color:var(--text);}
label.check input{width:auto;margin:0;}
.inline-form{margin-top:12px;text-align:center;}

/* ── standalone notices ────────────────────────────────────── */

.centred{display:flex;align-items:center;justify-content:center;min-height:100vh;padding:20px;}
.notice{background:#fff;border:1px solid var(--line);border-radius:var(--r);
  padding:30px 32px;max-width:430px;}
.notice h1{font-size:19px;margin-bottom:8px;}
.notice .btn{margin-top:16px;}

/* ── phones ────────────────────────────────────────────────── */

@media (max-width:760px){
  .shell{flex-direction:column;}
  /* On a phone it scrolls with the page instead — a fixed strip would eat
     too much of a small screen. */
  .sidebar{position:static;width:100%;}
  .main{margin-left:0;}
  .sb-nav{display:flex;overflow-x:auto;padding:0;}
  .sb-nav a{white-space:nowrap;border-left:none;border-bottom:2px solid transparent;padding:10px 14px;}
  .sb-nav a.on{border-left:none;border-bottom-color:var(--blue);}
  .sb-sec{display:none;}
  .sb-nav .count{margin-left:6px;}
  .content{padding:14px;}
  .topbar{padding:0 14px;}
  .table-card{overflow-x:auto;}
}

/* ── Customer portrait ───────────────────────────────────────────────
   A face next to the name stops the one mistake that costs real money:
   paying out to the wrong person holding the right NRC. Initials when
   there is no photograph yet, so the layout never jumps. */
.portrait{width:92px;height:92px;flex:none;border-radius:var(--r);
  overflow:hidden;border:1px solid var(--line);background:var(--canvas);
  display:flex;align-items:center;justify-content:center;}
.portrait img{display:block;width:100%;height:100%;object-fit:cover;}
.portrait span{font-family:var(--display);font-size:27px;font-weight:600;
  color:var(--text-faint);letter-spacing:.5px;}
a.portrait{cursor:zoom-in;}
a.portrait:hover{border-color:var(--blue);}
.portrait-sm{width:56px;height:56px;}
.portrait-sm span{font-size:17px;}

.portrait-row{display:flex;align-items:flex-start;gap:14px;}
.portrait-row .btn{flex:none;}

/* A heading inside a form, grouping a few fields. Smaller than a panel
   heading, because it is a label for a group and not a section of its own. */
.field-group{margin:18px 0 10px;font-size:12px;font-weight:600;
  letter-spacing:.06em;text-transform:uppercase;color:var(--text-muted);}
.field-group:first-child{margin-top:0;}

/* The name in the sidebar is the way to your own details, so it has to look
   like something you can click without turning blue and underlined. */
a.avatar,a.who{text-decoration:none;}
a.who:hover b{text-decoration:underline;}
a.avatar:hover{background:var(--blue-700);}

/* A list of on/off choices, each with a line saying what it does. Reads as
   a list of decisions rather than a row of bare tick boxes. */
.switches{display:flex;flex-direction:column;gap:2px;margin-top:14px;}
.switch{display:flex;gap:11px;align-items:flex-start;padding:11px 12px;
  border:1px solid transparent;border-radius:var(--r);cursor:pointer;}
.switch:hover{background:var(--hover);border-color:var(--line);}
.switch input{margin:2px 0 0;flex:none;width:15px;height:15px;cursor:pointer;}
.switch span{display:block;font-size:13px;color:var(--text-muted);line-height:1.5;}
.switch span b{display:block;font-size:13.5px;font-weight:500;color:var(--text);}

/* ── charts ────────────────────────────────────────────────── */

/* Drawn as SVG inside the page, so they print with it and need no script.
   Width is the page's; the viewBox keeps the proportions. */
.viz{display:block;width:100%;height:auto;margin:14px 0 4px;overflow:visible;}

/* The legend. Always present where there is more than one colour, because
   nobody should have to match colours from memory. */
.viz-keys{display:flex;flex-wrap:wrap;gap:18px;margin-top:4px;}
.viz-keys-wide{margin-top:14px;gap:26px;}
.viz-key{display:inline-flex;align-items:baseline;gap:7px;font-size:12.5px;
  color:var(--text-muted);}
.viz-key i{width:10px;height:10px;border-radius:2px;flex:none;
  position:relative;top:1px;}
.viz-key b{font-weight:500;color:var(--text);}
.viz-key span{color:var(--text-muted);}

/* Every chart can be read as numbers too, for anyone who cannot see it or
   wants to copy a figure out. */
.viz-table{margin-top:16px;}
.viz-table summary{font-size:12.5px;color:var(--text-muted);cursor:pointer;
  padding:4px 0;}
.viz-table summary:hover{color:var(--blue);}
.viz-table table{margin-top:8px;}

/* The sentence that says how the month is going. Set larger than body text
   because it is the one thing on the page meant to be read, not scanned. */
.reading{font-size:15px;line-height:1.6;color:var(--text);}

@media print{
  .viz-table{display:none;}
}

/* ── credit ratings ────────────────────────────────────────── */

/* The spread across the grades, each one a filter. The count is the thing
   to read, so it is large and the band name small beneath it. */
.grades{display:flex;flex-wrap:wrap;gap:8px;margin-top:14px;}
.grade-chip{display:flex;flex-direction:column;gap:2px;padding:9px 14px;
  border:1px solid var(--line);border-radius:var(--r);min-width:92px;
  text-decoration:none;background:var(--surface);}
.grade-chip:hover{border-color:var(--line-strong);text-decoration:none;}
.grade-chip.on{border-color:var(--navy);box-shadow:inset 0 0 0 1px var(--navy);}
.grade-chip b{font-family:var(--display);font-size:20px;font-weight:600;
  color:var(--ink);line-height:1.1;}
.grade-chip b.ok{color:var(--ok);}
.grade-chip b.warn{color:var(--warn);}
.grade-chip b.danger{color:var(--danger);}
.grade-chip b.muted{color:var(--text-muted);}
.grade-chip span{font-size:11px;color:var(--text-muted);}

/* The rating as it appears on one customer's own page: the grade, then the
   reasons under it as a list, because a grade nobody can question is a
   grade nobody should trust. */
.rating-head{display:flex;align-items:baseline;gap:12px;flex-wrap:wrap;}
.rating-score{font-family:var(--display);font-size:26px;font-weight:600;
  color:var(--ink);line-height:1;}
.rating-of{font-size:12px;color:var(--text-muted);}
.rating-why{margin:12px 0 0;padding:0;list-style:none;}
.rating-why li{position:relative;padding:3px 0 3px 16px;font-size:13px;
  color:var(--text);}
.rating-why li::before{content:"";position:absolute;left:3px;top:11px;
  width:4px;height:4px;border-radius:50%;background:var(--text-faint);}

/* ── the test system's own marking ─────────────────────────────── */

/* Solid, across the full width, on every page, and it cannot be closed.
   A test copy that looks like the live one is how a real payment gets
   recorded on the wrong system. */
.testbar{display:flex;align-items:baseline;gap:12px;flex-wrap:wrap;
  padding:9px 22px;background:var(--warn);color:#fff;font-size:13px;}
.testbar strong{font-weight:700;letter-spacing:.1em;font-size:11.5px;}
.testbar span{opacity:.92;}
.testbar-login{margin:0 0 18px;border-radius:var(--r);padding:9px 14px;}

/* Which door this is: "Directors" or "Branch staff", above the heading. */
.door{font-size:11.5px;letter-spacing:.1em;text-transform:uppercase;
  color:var(--text-muted);margin-bottom:4px;}

@media print{ .testbar{display:none;} }
