/* co2x.css - the CO2-X stylesheet (story AB#136, replaces the Corporate UI theme).
   Loaded after Bootstrap 5.2.3 and co2x-fonts.css. Order: tokens, shared base, B2 rules.
   Rule: nothing that shows data may be hidden here - every display:none below is on the list the
   user approved (icons without text, the empty profile band). Checked by tools/ui_guard. */

/* CO2-X look B2 (AB#136) - TECHNICAL DASHBOARD, REFINED  (B plus: mono only for figures, one level of panels,
   'yours' as a word, short text labels, a quiet sign-in)
   Based on B
   Neutral canvas, white panels with 1px borders, compact type, a mono face for every
   figure in a table, one emerald accent, small muted icons. */
:root {
  --bg: #f6f7f6; --surface: #ffffff; --fg: #1c1d1c; --muted: #5b605c; --line: #e3e6e3; --line-strong: #cfd4cf;
  --accent: #0b6b4b; --accent-rgb: 11, 107, 75; --accent-fg: #ffffff; --hl: #eef4f0;
  --ok: #0b6b4b; --warn: #8a4f00; --bad: #b02d24;
  --font: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --head: var(--font); --num: var(--mono); --td-font: var(--font); --badge-font: var(--mono); --input-font: var(--font);
  --fs: 14px; --fs-sm: 13px; --fs-xs: 12px; --h1: 20px; --h2: 15px; --head-w: 600; --head-ls: -.01em;
  --pad: 16px; --row: 7px; --gap: 16px; --gutter: 24px; --radius: 6px;
  --side-w: 232px; --side-bg: #fbfbfa; --side-fg: #2a2c2a; --side-muted: #5c615d; --side-line: #e3e6e3;
  --side-active: #ecefec; --side-hover: #f1f3f1; --side-item: .38rem .6rem;
  --th-bg: #fafbfa; --th-w: 500; --badge-radius: 4px; --top-bg: #ffffff; --brand-size: 15px; --content-max: 1320px;
  color-scheme: light;
}

/* ==========================================================================
   Shared base for the variants A/B/C. Loaded AFTER Bootstrap 5.3, replaces the
   Corporate UI theme. Every colour, size and font comes from the variant's tokens:
   --bg --surface --fg --muted --line --accent --accent-fg --hl --ok --warn --bad
   --font --mono --head --fs --fs-sm --fs-xs --h1 --h2 --pad --row --radius
   --side-w --side-bg --side-fg --side-muted --side-active
   The page-level <style> blocks of today's templates (tiles, "PayPal-ish" cards)
   are neutralised here; in the real build they would be removed from the templates.
   ========================================================================== */

html { -webkit-text-size-adjust: 100%; }
html body {
  font-family: var(--font); font-size: var(--fs); line-height: 1.5;
  background: var(--bg) !important; color: var(--fg);
  --bs-body-font-family: var(--font); --bs-body-font-size: var(--fs); --bs-body-color: var(--fg);
  --bs-body-bg: var(--bg); --bs-border-color: var(--line); --bs-link-color: var(--accent);
  --bs-link-color-rgb: var(--accent-rgb); --bs-link-hover-color: var(--fg); --bs-emphasis-color: var(--fg);
  --bs-secondary-color: var(--muted); --bs-primary: var(--accent); --bs-primary-rgb: var(--accent-rgb);
  --bs-border-radius: var(--radius); --bs-border-radius-sm: var(--radius); --bs-border-radius-lg: var(--radius);
}
h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6 {
  font-family: var(--head); color: var(--fg); font-weight: var(--head-w, 600); letter-spacing: var(--head-ls, 0);
  text-wrap: balance; margin-bottom: .5em;
}
h1, .h1 { font-size: var(--h1); } h2, .h2 { font-size: var(--h2); }
h3, .h3, h4, .h4 { font-size: calc(var(--h2) * .9); }
h5, .h5, h6, .h6 { font-size: var(--fs); }
a { color: var(--accent); }
code, kbd, pre, samp, .font-monospace { font-family: var(--mono); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* --- theme utility classes the templates use (were defined by Corporate UI) --- */
.text-xs { font-size: var(--fs-xs) !important; } .text-sm, .small, small { font-size: var(--fs-sm) !important; }
.text-lg { font-size: calc(var(--fs) * 1.15) !important; }
.font-weight-normal { font-weight: 400 !important; } .font-weight-semibold { font-weight: 600 !important; }
.font-weight-bold, .fw-bold { font-weight: 700 !important; } .fw-semibold { font-weight: 600 !important; }
.text-secondary, .text-muted, .text-body-secondary { color: var(--muted) !important; }
.text-dark, .text-body { color: var(--fg) !important; } .text-primary { color: var(--accent) !important; }
.text-success { color: var(--ok) !important; } .text-warning { color: var(--warn) !important; }
.text-danger { color: var(--bad) !important; } .text-info { color: var(--accent) !important; }
.bg-gray-100, .bg-light, .bg-white { background: var(--bg) !important; }
.opacity-5, .opacity-6, .opacity-7 { opacity: 1 !important; color: var(--muted); }
.shadow, .shadow-sm, .shadow-xs, .shadow-lg, .shadow-none { box-shadow: none !important; }
.border-radius-sm, .border-radius-md, .border-radius-lg, .rounded, .rounded-3 { border-radius: var(--radius) !important; }
.max-height-vh-100 { max-height: none !important; } .cursor-pointer { cursor: pointer; }

/* --- frame: side menu + main column --- */
aside.sidenav {
  position: fixed; top: 0; bottom: 0; left: 0; width: var(--side-w); z-index: 1040;
  display: block; overflow-y: auto; padding: var(--pad) 0 calc(var(--pad) * 3);
  background: var(--side-bg) !important; color: var(--side-fg);
  border-right: 1px solid var(--side-line, var(--line));
}
aside.sidenav .collapse { display: block !important; height: auto !important; padding: 0 calc(var(--pad) * .75) !important; }
aside.sidenav .navbar-nav { display: flex; flex-direction: column; gap: 1px; padding: 0; }
aside.sidenav .sidenav-header { padding: 0 var(--pad) var(--pad); }
aside.sidenav .navbar-brand { color: var(--side-fg) !important; padding: 0; }
aside.sidenav .navbar-brand span { font-family: var(--brand-font, var(--head)); font-size: var(--brand-size, var(--fs)) !important; letter-spacing: var(--brand-ls, 0); }
aside.sidenav .nav-link {
  color: var(--side-fg) !important; padding: var(--side-item, .3rem .5rem) !important; margin: 0 !important;
  border-radius: var(--radius); font-size: var(--fs-sm); display: flex; align-items: center; gap: .5rem;
}
aside.sidenav .nav-link .nav-link-text { margin: 0 !important; }
aside.sidenav .nav-link:hover { background: var(--side-hover, transparent); }
aside.sidenav .nav-link.active { background: var(--side-active) !important; color: var(--side-active-fg, var(--side-fg)) !important; font-weight: 600; }
aside.sidenav .nav-item > span.nav-link-text, aside.sidenav .text-uppercase {
  color: var(--side-muted) !important; font-size: var(--fs-xs) !important; letter-spacing: .08em; padding: 0 .5rem;
}
aside.sidenav .nav-item { border: 0 !important; margin: 0 !important; padding-top: 0 !important; }
aside.sidenav .nav-item.mt-4, aside.sidenav .nav-item.mt-2 { margin-top: var(--pad) !important; }
aside.sidenav .nav-item.mt-4 { border-top: 1px solid var(--side-line, var(--line)) !important; padding-top: var(--pad) !important; }
aside.sidenav .icon-shape { width: 1rem; height: 1rem; flex: none; color: var(--side-muted); }
aside.sidenav .icon-shape svg { width: 1rem; height: 1rem; }
aside.sidenav .text-white, aside.sidenav .text-white-50 { color: var(--side-muted) !important; }
aside.sidenav .language-switch .btn { color: var(--side-muted) !important; }
aside.sidenav .language-switch .fw-bold { color: var(--side-fg) !important; }
.main-content { margin-left: var(--side-w); min-height: 100vh; border-radius: 0 !important; }
.main-content > .container-fluid, .main-content > .container, .main-content > div > .container-fluid {
  padding-left: max(var(--gutter), env(safe-area-inset-left, 0px)) !important;
  padding-right: max(var(--gutter), env(safe-area-inset-right, 0px)) !important;
  max-width: var(--content-max, none);
}
.navbar-main {
  margin: 0 !important; padding: calc(var(--pad) * .5) var(--gutter) !important; border-radius: 0 !important;
  border-bottom: 1px solid var(--line); background: var(--top-bg, var(--bg)) !important; min-height: 0;
}
.navbar-main .container-fluid { padding: 0 !important; }
.navbar-main .breadcrumb { margin: 0 !important; padding: 0 !important; font-size: var(--fs-sm); }
.breadcrumb-item, .breadcrumb-item a, .breadcrumb-item.active { color: var(--muted) !important; }
.navbar-main .btn-white { background: transparent !important; border: 1px solid var(--line) !important; color: var(--fg) !important; }
.sidenav-toggler-inner { width: 18px; display: grid; gap: 3px; }
.sidenav-toggler-line { display: block; height: 2px; background: var(--fg); }
.footer, footer { font-size: var(--fs-xs); color: var(--muted); }
@media (max-width: 1199.98px) {
  aside.sidenav { transform: translateX(-100%); transition: transform .2s ease; box-shadow: none; }
  body.g-sidenav-pinned aside.sidenav { transform: none; }
  .main-content { margin-left: 0; }
}
@media (prefers-reduced-motion: reduce) { aside.sidenav { transition: none; } }

/* --- surfaces: cards and all of today's page-level tile styles --- */
html body .card, html body .account-tile, html body .auction-tile, html body .dashboard-tile, html body .stat-card,
html body .stat-tile, html body .soft-card, html body .pp-card, html body .pp-hero, html body .welcome-panel,
html body .activity-card, html body .auction-card, html body .pp-identity-card, html body .pp-mini, html body .auction-header {
  background: var(--surface) !important; border: var(--card-border, 1px solid var(--line)) !important;
  border-radius: var(--radius) !important; box-shadow: none !important; transform: none !important;
  color: var(--fg);
}
html body .card:hover, html body .account-tile:hover, html body .auction-tile:hover, html body .dashboard-tile:hover,
html body .stat-tile:hover, html body [class*="tile-"]:hover { box-shadow: none !important; transform: none !important; }
html body .pp-hero::after { display: none !important; }
.card-header, .soft-card-header, .pp-card-header, .activity-card-header {
  background: transparent !important; border-bottom: 1px solid var(--line) !important;
  padding: calc(var(--pad) * .6) var(--pad) !important;
}
.card-body, .pp-card-body { padding: var(--pad) !important; }
.welcome-title, .pp-headline, .pp-username, .stat-value { font-family: var(--head); color: var(--fg) !important; }
.stat-value { font-family: var(--num, var(--mono)); font-variant-numeric: tabular-nums; }
.stat-label, .tile-desc, .stat-sub, .welcome-meta, .pp-subtle, .pp-email, .pp-k, .activity-time, .activity-subtitle { color: var(--muted) !important; }
html body .tile-desc, html body .welcome-meta, html body .stat-sub, html body .stat-label, html body .activity-title,
html body .activity-subtitle, html body .pp-email, html body .pp-subtle, html body .pp-row-sub, html body .auction-time,
html body .pp-k, html body .pp-v, html body .tile-title, html body .pp-row-title { font-size: var(--fs-sm) !important; }
html body .welcome-title, html body .pp-headline, html body .pp-username { font-size: var(--h1) !important; }
html body .tile-title, html body .pp-row-title, html body .auction-title { font-weight: 600 !important; color: var(--fg) !important; }
.tile-icon-left, .tile-icon-right, .activity-icon { color: var(--muted) !important; background: transparent !important; }
.row { --bs-gutter-x: var(--gap, 1rem); --bs-gutter-y: var(--gap, 1rem); }
.mb-4, .my-4 { margin-bottom: var(--gap, 1rem) !important; }
.p-4 { padding: var(--pad) !important; }

/* --- tables --- */
.table-responsive { border: 0; }
html body .table {
  --bs-table-bg: transparent; --bs-table-color: var(--fg); --bs-table-border-color: var(--line);
  --bs-table-hover-bg: var(--hl); --bs-table-striped-bg: transparent;
  font-size: var(--fs-sm); margin-bottom: 0; font-variant-numeric: tabular-nums; color: var(--fg);
}
html body .table > :not(caption) > * > * { padding: var(--row) calc(var(--pad) * .6); border-bottom-color: var(--line); background: transparent; box-shadow: none; }
html body .table thead th, html body .table thead td {
  font-size: var(--fs-xs) !important; font-weight: var(--th-w, 600) !important; color: var(--muted) !important;
  text-transform: var(--th-case, none); letter-spacing: var(--th-ls, 0); background: var(--th-bg, transparent) !important;
  border-bottom: 1px solid var(--th-line, var(--line)) !important; white-space: nowrap;
}
html body .table tbody tr:hover { background: var(--hl) !important; transform: none !important; }
html body .table .table-info, html body .table .table-info > * { --bs-table-bg: var(--hl); background: var(--hl) !important; }
html body .table td { font-family: var(--td-font, inherit); }
.table td.small, .table td .small, .table .text-xs { font-size: inherit !important; }

/* --- tabs --- */
html body .nav-tabs, html body .pp-tabs.nav-tabs { border-bottom: 1px solid var(--line); gap: var(--tab-gap, 0); background: transparent; padding: 0; }
html body .nav-tabs .nav-link, html body .auction-tabs .nav-link, html body .pp-tabs .nav-link {
  border: 0 !important; border-bottom: 2px solid transparent !important; border-radius: 0 !important;
  background: transparent !important; color: var(--muted) !important; font-size: var(--fs-sm);
  padding: calc(var(--row) * 1.2) calc(var(--pad) * .7) !important; margin-bottom: -1px; font-weight: 500;
}
html body .nav-tabs .nav-link.active, html body .auction-tabs .nav-link.active, html body .pp-tabs .nav-link.active {
  color: var(--fg) !important; border-bottom-color: var(--fg) !important; background: transparent !important;
}
.card-header-tabs { margin: 0 !important; }

/* --- badges and status --- */
html body .badge, html body .phase-badge, html body .pp-pill {
  font-family: var(--badge-font, var(--font)); font-size: var(--fs-xs); font-weight: 500; letter-spacing: 0;
  border-radius: var(--badge-radius, var(--radius)); padding: .15em .45em; text-transform: none;
  background: var(--badge-bg, transparent) !important; color: var(--fg) !important; border: 1px solid var(--line);
}
html body .bg-success, html body .badge.bg-success, html body .phase-accepting { color: var(--ok) !important; border-color: currentColor; background: transparent !important; }
html body .bg-warning, html body .bg-warning-subtle, html body .phase-clearing { color: var(--warn) !important; border-color: currentColor; background: transparent !important; }
html body .bg-danger, html body .pp-pill-danger { color: var(--bad) !important; border-color: currentColor; background: transparent !important; }
html body .bg-primary-subtle, html body .bg-secondary-subtle, html body .bg-secondary, html body .bg-info,
html body .phase-closed, html body .phase-created { color: var(--muted) !important; border-color: var(--line); background: transparent !important; }

/* --- buttons and forms --- */
html body .btn {
  font-family: var(--btn-font, var(--font)); font-size: var(--fs-sm); font-weight: 500; text-transform: var(--btn-case, none);
  letter-spacing: var(--btn-ls, 0); border-radius: var(--radius); box-shadow: none !important; padding: .35rem .75rem;
  --bs-btn-border-width: 1px;
}
html body .btn-sm { font-size: var(--fs-xs); padding: .2rem .5rem; }
html body .btn-primary, html body .btn-dark, html body .pp-btn {
  background: var(--accent) !important; border: 1px solid var(--accent) !important; color: var(--accent-fg) !important;
}
html body .btn-primary:hover, html body .btn-dark:hover, html body .pp-btn:hover { filter: brightness(1.1); }
html body .btn-outline-primary, html body .btn-white, html body .btn-secondary, html body .btn-light, html body .btn-outline-secondary,
html body .pp-btn-outline, html body .btn-outline-danger {
  background: var(--surface) !important; border: 1px solid var(--line-strong, var(--line)) !important; color: var(--fg) !important;
}
html body .btn-danger, html body .btn-outline-danger { color: var(--bad) !important; border-color: var(--bad) !important; background: transparent !important; }
html body .btn-link { color: var(--accent) !important; padding: 0; text-decoration: underline; text-underline-offset: 2px; }
html body .form-control, html body .form-select, html body input[type=text], html body input[type=number],
html body input[type=email], html body select, html body textarea {
  font-family: var(--input-font, var(--font)); font-size: var(--fs-sm); color: var(--fg); background: var(--surface);
  border: 1px solid var(--line-strong, var(--line)); border-radius: var(--radius); padding: .35rem .55rem; box-shadow: none;
}
html body .form-control:focus, html body .form-select:focus { border-color: var(--accent); box-shadow: 0 0 0 2px var(--hl); }
.form-label, label { font-size: var(--fs-sm); font-weight: 500; color: var(--fg); margin-bottom: .2rem; }
.form-text, .helptext { font-size: var(--fs-xs); color: var(--muted); }
.invalid-feedback, .errorlist { color: var(--bad); font-size: var(--fs-xs); }

/* --- alerts, pagination, dropdown, misc --- */
html body .alert, html body .pp-alert {
  border-radius: var(--radius); border: 1px solid var(--line) !important; border-left: 3px solid var(--muted) !important;
  background: var(--surface) !important; color: var(--fg) !important; font-size: var(--fs-sm); padding: calc(var(--pad) * .6) var(--pad);
  box-shadow: none !important;
}
html body .alert-success { border-left-color: var(--ok) !important; } html body .alert-warning, html body .pp-alert.alert-warning { border-left-color: var(--warn) !important; }
html body .alert-danger { border-left-color: var(--bad) !important; } html body .alert-info, html body .pp-alert.alert-info { border-left-color: var(--accent) !important; }
html body .pp-alert a { color: var(--accent) !important; }
.pagination, .co2x-pagination { gap: 2px; font-size: var(--fs-sm); }
html body .page-link { border-radius: var(--radius) !important; border: 1px solid var(--line); color: var(--fg); background: var(--surface); padding: .2rem .55rem; }
html body .page-item.active .page-link { background: var(--fg); border-color: var(--fg); color: var(--bg); }
.dropdown-menu { border: 1px solid var(--line); border-radius: var(--radius); box-shadow: none; font-size: var(--fs-sm); background: var(--surface); }
.avatar { background: var(--hl) !important; color: var(--fg); }
hr { border-color: var(--line); opacity: 1; }
.list-group-item { background: var(--surface); border-color: var(--line); }
.modal-content { border-radius: var(--radius); border: 1px solid var(--line); box-shadow: none; }
.activity-row { border-bottom: 1px solid var(--line); padding: var(--row) 0 !important; background: transparent !important; }
.activity-row:hover { background: var(--hl) !important; }
.pp-list li, .pp-row { border-color: var(--line) !important; }

/* --- fixes after the first screenshots --- */
.navbar-main .container-fluid { flex-wrap: nowrap; gap: .75rem; }
.navbar-main .navbar-collapse { display: flex !important; flex-basis: auto; flex-grow: 1; justify-content: flex-end; align-items: center; margin: 0 !important; }
.navbar-main .navbar-nav { flex-direction: row; align-items: center; gap: .75rem; }
html body .pp-hero, html body .pp-hero * { color: var(--fg) !important; background-image: none !important; }
/* filled like in the old theme: some templates force white text on these buttons (inline style) */
html body .btn-info, html body .btn-success { background: var(--accent) !important; border: 1px solid var(--accent) !important; color: var(--accent-fg) !important; }
html body .btn-warning { background: var(--warn) !important; border: 1px solid var(--warn) !important; color: #ffffff !important; }
html body .btn-outline-info { background: var(--surface) !important; border: 1px solid var(--line-strong) !important; color: var(--fg) !important; }
h1, h2, h3, .h1, .h2, .h3 { overflow-wrap: anywhere; }
html body .pp-hero { display: none !important; }
html body .pp-identity { margin-top: 0 !important; padding-top: var(--pad); }
html body .pp-btn, html body .pp-btn-outline, html body .pp-link { border-radius: var(--radius) !important; }

.fas, .fa, .far, .fab { font-size: .85em; color: var(--muted); }
.fa-user-check { color: var(--accent) !important; }
aside.sidenav .navbar-brand span::before {
  content: ""; display: inline-block; width: 10px; height: 10px; margin-right: 8px; border-radius: 2px;
  background: var(--accent); vertical-align: 1px;
}
aside.sidenav .nav-link.active .icon-shape { color: var(--accent); }
aside.sidenav [style*="border-radius: 50%"] { background: var(--accent) !important; }
h1, .h1, .welcome-title, .pp-headline { font-weight: 600; }
/* (no overflow:hidden on panels: it clipped wide tables on phones - found by tools/ui_guard, G4) */
html body .table thead th { border-top: 1px solid var(--line) !important; }
html body .table td { font-size: 12.5px; }
html body .table td .fa-user-check { margin-left: .25rem; }
html body .nav-tabs { background: var(--surface); padding: 0 var(--pad); }
html body .badge, html body .phase-badge, html body .pp-pill { background: var(--bg) !important; }
html body .bg-success, html body .badge.bg-success, html body .phase-accepting { background: #e6f3ec !important; border-color: #b9dcc8 !important; }
html body .bg-warning, html body .bg-warning-subtle, html body .phase-clearing { background: #fbf1e3 !important; border-color: #ecd3ac !important; }
html body .bg-danger, html body .pp-pill-danger { background: #fbe9e7 !important; border-color: #efc2bd !important; }
.stat-value { font-size: 22px !important; font-weight: 500; letter-spacing: -.02em; }
/* (top bar not sticky: the old one scrolls away too, and a fixed bar could cover a row a page jumps to - RT-C) */

/* --- B2 refinements --- */
/* 1. mono only where it helps: figures, dates and ids (cells marked .num in the markup) */
html body .table td.num, html body .table th.num { font-family: var(--mono); white-space: nowrap; }
html body .table td { font-size: 13px; }
html body .table td.num { font-size: 12.5px; }
/* 2. one level of panels: a panel inside a panel or a tab loses its frame */
html body .card .card, html body .tab-content .card, html body .soft-card .card, html body .pp-card .card {
  border: 0 !important; background: transparent !important; }
html body .card .card > .card-body, html body .tab-content .card > .card-body { padding: 0 !important; }
html body .card .card-header-tabs, html body .card > .card-header:has(.nav-tabs) { padding-bottom: 0 !important; }
/* 3. your own orders say so in words */
html body .fa-user-check, html body .fa-user-check::before {
  font-family: var(--mono) !important; font-weight: 500 !important; font-style: normal; }
html body .fa-user-check { display: inline-block; margin-left: .45rem; padding: 0 .4em; font-size: 11px; line-height: 1.6;
  color: var(--accent) !important; background: #e6f3ec; border: 1px solid #b9dcc8; border-radius: 4px; vertical-align: 1px; }
html body .fa-user-check::before { content: "yours"; }
/* ...and labels are text only */
html body .badge i, html body .phase-badge i, html body .badge .fas, html body .phase-badge .fas { display: none !important; }

/* --- readability fixes found by tools/ui_guard (G4 contrast, 2026-10-22) --- */
.link-primary, .link-primary:hover, .link-primary:focus { color: var(--accent) !important; }
.section-title { color: var(--muted) !important; }
.co2x-confirm__arrow { color: var(--muted) !important; }
html body .btn-outline-success { color: var(--ok) !important; border-color: var(--ok) !important; background: var(--surface) !important; }
html body .btn-outline-warning { color: var(--warn) !important; border-color: var(--warn) !important; background: var(--surface) !important; }
/* home page figures: the template colours them by tone (inline style); same tones, readable shades */
[style*="#67c23a"] { color: var(--ok) !important; }
[style*="#f19937"] { color: var(--warn) !important; }
[style*="#ea4e3d"] { color: var(--bad) !important; }
/* top bar on phones: wraps like the original, the page title gets its own line (G4: it overflowed at 390px) */
@media (max-width: 767.98px) {
  .navbar-main .container-fluid { flex-wrap: wrap; }
  .navbar-main nav[aria-label="breadcrumb"] { flex: 1 0 100%; }
  .navbar-main .navbar-collapse { justify-content: flex-start; flex-wrap: wrap; row-gap: .4rem; }
}

/* --- classes only the old theme defined, mapped so their MEANING survives (red-team review RT-E) ---
   Status colours: a green, orange or red label must stay green, orange or red. */
html body .badge-success, html body .bg-gradient-success { color: var(--ok) !important; border-color: currentColor !important; }
html body .badge-warning, html body .bg-gradient-warning { color: var(--warn) !important; border-color: currentColor !important; }
html body .badge-danger { color: var(--bad) !important; border-color: currentColor !important; }
html body .badge-primary, html body .badge-info, html body .bg-gradient-info { color: var(--accent) !important; border-color: currentColor !important; }
html body .badge-secondary, html body .bg-gradient-secondary, html body .bg-gradient-light { color: var(--muted) !important; border-color: var(--line) !important; }
html body .bg-gradient-success, html body .bg-gradient-warning, html body .bg-gradient-info, html body .bg-gradient-secondary,
html body .bg-gradient-light { background: transparent !important; }
html body .badge-success, html body .bg-gradient-success { background: #e6f2ec !important; }
html body .badge-warning, html body .bg-gradient-warning { background: #f8eedf !important; }
html body .badge-danger { background: #f9e6e4 !important; }
html body .bg-gradient-dark { background: var(--fg) !important; color: var(--surface) !important; }
html body .badge-sm { font-size: var(--fs-xs); }
.text-xxs { font-size: 11px !important; }
.font-weight-bolder, .text-bolder { font-weight: 700 !important; } .font-weight-black, .text-bold { font-weight: 800 !important; }
hr.horizontal.dark { border: 0; border-top: 1px solid var(--line); opacity: 1; }

/* ==========================================================================
   Page parts moved here from the templates' own <style> blocks (story 136, S2).
   Only what the blocks did beyond looks: layout, behaviour, status colours.
   Their colours, shadows, gradients and radii are the B2 tokens above.
   ========================================================================== */

/* behaviour: page scripts hide rows with this class (vehicle pools list) */
.hide { display: none; }

/* behaviour: a whole tile is one link - the link covers the tile, the content lets clicks through
   (welcome page tiles, inventory overview download tile) */
.dashboard-tile, .stat-tile { position: relative; overflow: hidden; height: 100%; }
.tile-link, .stat-link { position: absolute; inset: 0; z-index: 1; text-decoration: none; color: inherit; }
.tile-content, .stat-content { position: relative; z-index: 2; pointer-events: none; }
.tile-link:focus-visible, .stat-link:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: var(--radius); }
.dashboard-tile, .auction-tile, .account-tile, .activity-row, tr.pp-clickable, .pp-audit { cursor: pointer; }
.auction-tile { height: 100%; }

/* behaviour: the booking a link jumps to (?transaction=) lights up for a moment */
.highlighted-transaction { animation: co2x-highlight 2s ease-out; background-color: var(--hl) !important; }
@keyframes co2x-highlight { 0% { background-color: #fbf1e3; } 100% { background-color: transparent; } }
@media (prefers-reduced-motion: reduce) { .highlighted-transaction { animation: none; } }

/* scroll boxes (vehicle and transferring-vehicle details) */
.scrollable-table-import-cases { max-height: 12.5rem; overflow-y: auto; scrollbar-width: thin; }
.reduced-line-gap { line-height: .8; }

/* rows: label left, value right */
.activity-row { display: flex; justify-content: space-between; padding: .75rem 1rem; border-bottom: 1px solid var(--line); }
.activity-row:hover { background: var(--hl); }
.activity-left { display: flex; gap: .75rem; align-items: center; min-width: 0; }
.activity-icon { width: 1.75rem; text-align: center; flex-shrink: 0; }
.activity-text { min-width: 0; }
.activity-title { font-weight: 600; margin-bottom: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.activity-subtitle, .activity-time { color: var(--muted); font-size: var(--fs-sm); margin-bottom: 0; }
.activity-subtitle { white-space: nowrap; }
.activity-right { text-align: right; margin-left: .625rem; flex-shrink: 0; }
.info-row { display: flex; justify-content: space-between; padding: .5rem 0; border-bottom: 1px solid var(--line); }
.info-row:last-child { border-bottom: 0; }
.info-label { font-weight: 600; color: var(--muted); }
.info-value { text-align: right; }
.pp-list { margin: 0; padding: 0; list-style: none; }
.pp-list li { padding: .625rem 0; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; gap: .75rem; }
.pp-list li:last-child { border-bottom: 0; }
.pp-k { color: var(--muted); white-space: nowrap; }
.pp-v { font-weight: 600; text-align: right; word-break: break-word; }
.pp-rows { margin: 0; padding: 0; list-style: none; }
.pp-rows.pp-rows--indented { padding-left: .875rem; }
.pp-row { padding: .625rem 0; border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: 2px; }
.pp-row:last-child { border-bottom: 0; }
.pp-rows--indented .pp-row { padding: .375rem 0; }
.pp-row-title { font-weight: 600; margin: 0; }
.pp-rows--indented .pp-row-title { font-weight: 400; color: var(--muted); }
.pp-row-sub, .pp-email, .pp-meta, .pp-notes, .pp-subtle, .account-sub, .auction-time, .welcome-meta, .tile-desc { color: var(--muted); margin: 0; }
.pp-notes { word-break: break-word; }
.pp-mini { border: 1px solid var(--line); border-radius: var(--radius); padding: .75rem; }
.pp-mini + .pp-mini { margin-top: .625rem; }
.pp-audit { margin-top: 1rem; padding: .75rem; border: 1px solid var(--line); border-radius: var(--radius); display: flex; align-items: center; justify-content: space-between; }
.pp-audit:hover { background: var(--hl); }

/* inner spacing of the cards and their headings */
.pp-card-header, .pp-header { padding: .75rem 1rem; border-bottom: 1px solid var(--line); }
.pp-card-body, .pp-body { padding: 1rem; }
.pp-identity-card { padding: 1rem 1.125rem; }
.account-tile, .auction-tile, .dashboard-tile, .stat-tile, .stat-card, .welcome-panel { padding: 1rem; }
.pp-card-title, .pp-title, .pp-headline, .pp-username, .pp-strong, .account-title, .auction-title, .welcome-title, .tile-title { font-weight: 600; margin: 0 0 .25rem; }
.pp-section { margin: 1.125rem 0 .5rem; font-weight: 600; }
.pp-topline { color: var(--muted); font-weight: 600; }
.section-title { font-size: var(--fs-xs); font-weight: 600; color: var(--muted); text-transform: uppercase; margin-bottom: .375rem; }
.auction-header { padding: 1rem 1.25rem; margin-bottom: 1.25rem; }
.auction-actions, .stats-row { margin-bottom: 1.25rem; }
.stats-row { margin-top: 1rem; }
.page-shell { padding-block: .25rem; }
.pp-identity { margin-top: 0; }

/* labels: pills and badges keep their layout; the colours come from the status rules above */
.pp-pill, .pp-badge, .phase-badge { display: inline-flex; align-items: center; gap: .375rem; white-space: nowrap; }
.pp-pill { margin: 0 .5rem .5rem 0; }
.pp-badge-ok { color: var(--ok); }
.pp-badge-warn { color: var(--warn); }
.pp-badge-bad, .pp-pill-danger { color: var(--bad); }
.pp-badge-info, .pp-badge-neutral { color: var(--muted); }
.pp-btn, .pp-btn-outline { display: inline-flex; align-items: center; gap: .5rem; }

/* pool list table */
table.pp-table { width: 100%; border-collapse: separate; border-spacing: 0; }
.pp-thead th { padding: .75rem 1rem; border-bottom: 1px solid var(--line); }
.pp-cell { padding: .875rem 1rem; border-bottom: 1px solid var(--line); vertical-align: top; }
tr.pp-clickable:hover { background: var(--hl); }

/* tabs as pills (order book) */
.pp-tabs.nav-tabs { border-bottom: 0; gap: .5rem; }
.pp-alert ul { margin-bottom: 0; }
.pp-alert li { margin: .375rem 0; }

/* Sign-in, right half: the CO2-X wordmark, very large, instead of the marketing picture
   (story 136; "Sign in: wordmark" chosen by the user 2026-10-25). Phones never show this half. */
.signin-wordmark { background: var(--bg) !important; border-left: 1px solid var(--line); overflow: hidden;
  align-items: flex-start !important; padding: 0 7vw !important; }
.signin-wordmark > * { display: none !important; }
.signin-wordmark::before {
  content: "CO\2082-X"; font: 600 clamp(72px, 11vw, 168px)/0.9 var(--font); letter-spacing: -.055em; color: var(--fg);
  padding-left: .32em; background: linear-gradient(var(--accent), var(--accent)) left .1em / .2em .2em no-repeat; }
/* the form beside it: left of the dividing line, with room above (the old theme's mt-8 is gone) */
.page-header:has(.signin-wordmark) .row > .col-xl-4 { margin-left: 0 !important; margin-right: auto !important; }
.page-header:has(.signin-wordmark) .card-plain { margin-left: max(24px, 6vw); margin-top: 18vh !important; max-width: 26rem; }
@media (max-width: 767.98px) { .page-header:has(.signin-wordmark) .card-plain { margin-left: auto; margin-top: 10vh !important; } }

/* Staff pages and staff-only buttons (story 162): red, thin, plus a word/lock so colour is not the only signal.
   The theme sets button borders as `html body .btn-x ... !important` and `.navbar-main .btn-white ... !important`;
   these selectors are at least as specific, so the red outline is there without hovering. */
html body .navbar-main .staff-page-marker { border: 1px solid var(--bad) !important; }
.staff-page-tag { color: var(--bad); font-size: .75rem; font-weight: 600; letter-spacing: .02em; white-space: nowrap; }
html body .btn-staff, html body .btn-staff:hover, html body .btn-staff:focus { border: 1px solid var(--bad) !important; }
/* Story 175: a part of a page that customers do not see (the booking records) - a thin red frame and a lock tag. */
.staff-only-section { border: 1px solid var(--bad); border-radius: .375rem; padding: .75rem; margin-bottom: 1rem; }
html body .btn-staff::after { content: "\f023"; font-family: "Font Awesome 5 Free", "Font Awesome 6 Free"; font-weight: 900;
  font-size: .65em; margin-left: .5rem; color: var(--bad); }
