/*
 * CTS 2 WEARS CTS 1's CLOTHES (D260).
 *
 * The owner's ruling, 16 September: "use CTS1's established layout and visual
 * language. Strike the proposed macOS-derived/original-CTS2 styling." The
 * staff have used CTS 1 for a year; every hex, radius and shape below is
 * taken from its own source (`KIGL/src/App.jsx`) and its screenshots, so that
 * somebody who can work CTS 1 can work this without being taught a new
 * vocabulary.
 *
 * What is NOT copied: nothing decorative has been invented, and nothing has
 * been "improved". Where CTS 2 shows something CTS 1 never had — an order, a
 * refusal message with a field path — it is drawn with CTS 1's own parts.
 */

:root {
  /* the navy rail and the page it sits beside */
  --rail: #0A1340;
  --rail-deep: #0F172A;
  --rail-item: rgba(255, 255, 255, 0.72);
  --rail-item-active: #FFFFFF;
  --page: #f8fafc;
  --card: #ffffff;
  --border: #e2e8f0;
  --border-strong: #cbd5e1;
  --input: #F8FAFC;

  /* the words */
  --ink: #1a1a1a;
  --muted: #6b7280;
  --faint: #94A3B8;

  /* CTS 1's semantic colours, unchanged */
  --money: #F59E0B;     /* money and serials */
  --primary: #3B82F6;   /* the one primary action */
  --danger: #EF4444;    /* overdue, refused, lost */
  --good: #22C55E;      /* filled, delivered */
  --empty: #F97316;     /* empty */
  --testing: #8B5CF6;   /* testing, quarantine */

  --radius-card: 14px;
  --radius-control: 8px;
  --shadow-card: 0 1px 2px rgba(20, 24, 40, 0.04), inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

* { box-sizing: border-box; }

html, body, #root { height: 100%; margin: 0; }

body {
  background: var(--page);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Inter, 'Helvetica Neue', Arial, sans-serif;
  font-size: 14px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
}

/* quantities, money and serials line up under each other or they cannot be read */
.num, td.num, .kpi-value, .money { font-variant-numeric: tabular-nums; }

/* ------------------------------------------------------------------ the frame */
.app { display: flex; min-height: 100vh; }

.rail {
  width: 232px; flex: 0 0 232px; min-height: 100vh;
  background: linear-gradient(180deg, var(--rail) 0%, var(--rail-deep) 100%);
  color: var(--rail-item); display: flex; flex-direction: column;
  position: sticky; top: 0; height: 100vh; overflow-y: auto;
}
.rail-head { padding: 18px 16px; display: flex; align-items: center; gap: 10px; }
.rail-mark {
  width: 34px; height: 34px; border-radius: 9px; background: #ffffff1a; color: #fff;
  display: flex; align-items: center; justify-content: center; font-weight: 800; letter-spacing: -0.02em;
}
.rail-who { min-width: 0; }
.rail-who strong { display: block; color: #fff; font-size: 14px; font-weight: 700; }
.rail-who span { display: block; color: var(--faint); font-size: 12px; }

.rail nav { padding: 8px; display: flex; flex-direction: column; gap: 2px; }
.rail a.nav-item {
  display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px;
  color: var(--rail-item); text-decoration: none; font-size: 14px; font-weight: 600;
}
.rail a.nav-item:hover { background: #ffffff0f; color: #fff; }
.rail a.nav-item[aria-current='page'] { background: #ffffff14; color: var(--rail-item-active); box-shadow: inset 3px 0 0 var(--primary); }
.rail .nav-later { color: var(--faint); font-weight: 500; padding: 10px 12px; font-size: 13px; display: flex; justify-content: space-between; }
.rail .nav-later em { font-style: normal; font-size: 11px; color: #64748b; }
.rail .nav-pillar-row { display: flex; align-items: stretch; }
.rail .nav-pillar-row a.nav-item { flex: 1 1 auto; min-width: 0; }
.rail .nav-chevron { background: none; border: 0; color: #64748b; cursor: pointer; padding: 0 10px; font-size: 10px; line-height: 1; }
.rail .nav-chevron:hover, .rail .nav-chevron:focus-visible { color: #fff; }
.rail a.nav-item.nav-child { padding-left: 38px; font-size: 13px; }
.rail .nav-group { color: #64748b; font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; padding: 16px 12px 6px; }
.rail-foot { margin-top: auto; padding: 12px; }
/* 0121 — the yard picker in the rail. Rendered only when somebody holds more than one open
   branch, so it is absent for every single-branch company and reserves no space when it is.
   It sits in the rail rather than on a settings page because it changes what every form
   records, and a person must see it without going to look for it. */
.rail-branch { display: flex; flex-direction: column; gap: 4px; margin-bottom: 10px; }
/* The rail is dark (--rail), so this reads against it rather than against a card: the
   label takes the rail's own muted item colour and the control a translucent surface. */
.rail-branch > span { font-size: 0.72rem; letter-spacing: 0.02em; color: var(--rail-item); }
.rail-branch select {
  width: 100%;
  padding: 6px 8px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.10);
  color: var(--rail-item-active);
  font: inherit;
}
/* A native select's options are drawn by the platform, which on most of them ignores the
   control's colours — so they are given a readable pair of their own rather than inheriting
   white-on-white. */
.rail-branch select option { color: var(--ink); background: var(--card); }
/* 0121 — the door's refusal, in the rail beside the picker it refers to. Wrapped rather
   than truncated: the sentence names the yard and what to do about it, and half of that
   is no use. */
.rail-branch-error {
  display: block;
  font-size: 0.72rem;
  line-height: 1.35;
  color: #FCA5A5;
  margin-top: 2px;
}
.rail-branch-error .muted { display: block; color: var(--rail-item); }

.main { flex: 1; min-width: 0; padding: 22px 26px 60px; }
.page-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 18px; flex-wrap: wrap; }
.page-head h1 { font-size: 26px; font-weight: 800; letter-spacing: -0.02em; margin: 0 0 2px; }
.page-head p { margin: 0; color: var(--muted); font-size: 13px; }
.page-actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* ------------------------------------------------------------------ cards */
.card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-card); box-shadow: var(--shadow-card); }
.card + .card { margin-top: 16px; }
.card-head { padding: 14px 16px; border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.card-head h2 { margin: 0; font-size: 15px; font-weight: 700; }
.card-head .sub { color: var(--muted); font-size: 12px; font-weight: 500; }
.card-body { padding: 16px; }
.card-foot { padding: 12px 16px; border-top: 1px solid var(--border); background: #fbfcfe; border-radius: 0 0 var(--radius-card) var(--radius-card); }

.grid { display: grid; gap: 16px; }
.grid.two { grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); }
.grid.three { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }

/* ------------------------------------------------------------------ KPI tiles */
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; margin-bottom: 18px; }
.kpi-pick { display: block; width: 100%; text-align: left; background: none; border: 0; padding: 0; cursor: pointer; }
.kpi-pick .kpi { transition: box-shadow 0.1s; height: 100%; }
.kpi-pick:hover .kpi { box-shadow: 0 0 0 2px var(--primary); }
.kpi-pick[aria-pressed='true'] .kpi { box-shadow: 0 0 0 2px var(--primary); }
.kpi-link { display: block; text-decoration: none; color: inherit; }
.kpi-link .kpi { height: 100%; transition: box-shadow 0.1s; }
.kpi-link:hover .kpi { box-shadow: 0 0 0 2px var(--primary); }
.kpi { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-card); padding: 14px 16px; position: relative; overflow: hidden; box-shadow: var(--shadow-card); }
.kpi::before { content: ''; position: absolute; left: 0; top: 0; width: 3px; height: 100%; background: var(--accent, var(--primary)); border-radius: 0 2px 2px 0; }
.kpi-label { font-size: 11px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.kpi-value { font-size: 26px; font-weight: 800; letter-spacing: -0.03em; line-height: 1.15; margin-top: 6px; color: var(--accent, var(--ink)); }
/* 11 Oct, the UI sweep: a figure nobody has yet — "—" — was drawn 26px tall in
   the tile's accent colour, and read as a progress bar rather than as nothing. */
.kpi-value[data-empty='true'] { color: var(--muted); font-size: 20px; font-weight: 700; }
.kpi-note { font-size: 12px; color: var(--muted); margin-top: 4px; }

/* ------------------------------------------------------------------ attention cards */
.attention { display: flex; align-items: center; gap: 10px; }
.attention .icon { width: 32px; height: 32px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 15px; }
.attention .count { margin-left: auto; font-size: 20px; font-weight: 800; }
.row-link { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-top: 1px solid var(--border); text-decoration: none; color: inherit; }
.row-link:first-of-type { border-top: 0; }
.row-link:hover { background: #f8fafc; }
.row-link strong { font-size: 13.5px; font-weight: 700; display: block; }
.row-link span { font-size: 12.5px; color: var(--muted); }
.row-link .chev { margin-left: auto; color: var(--faint); }

/* ------------------------------------------------------------------ tables */
.table-wrap { overflow-x: auto; }
table.register { width: 100%; border-collapse: collapse; }
table.register th {
  text-align: left; font-size: 11px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--muted); background: #F8FAFC; border-bottom: 1px solid var(--border);
  padding: 10px 12px; white-space: nowrap; position: sticky; top: 0; z-index: 1;
}
table.register th.right, table.register td.right { text-align: right; }
table.register td { padding: 11px 12px; border-bottom: 1px solid #eef2f7; font-size: 13.5px; vertical-align: top; }
table.register tbody tr:hover { background: #fbfdff; }
table.register tbody tr[data-clickable='yes'] { cursor: pointer; }
.serial { color: var(--money); font-weight: 700; font-variant-numeric: tabular-nums; }
.money { font-weight: 700; color: var(--money); }
.muted { color: var(--muted); }
.totals { display: flex; gap: 20px; flex-wrap: wrap; font-size: 13px; }
.totals b { font-variant-numeric: tabular-nums; }

/* ------------------------------------------------------------------ pills and banners */
.pill { display: inline-block; padding: 3px 9px; border-radius: 6px; font-size: 11px; font-weight: 700; letter-spacing: 0.03em; text-transform: uppercase; white-space: nowrap; }
.banner { border-radius: 10px; padding: 11px 14px; font-size: 13.5px; display: flex; gap: 10px; align-items: flex-start; margin-bottom: 14px; }
.banner .mark { flex-shrink: 0; width: 20px; height: 20px; border-radius: 99px; display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 700; }
.banner .detail { display: block; color: var(--muted); font-size: 12.5px; margin-top: 3px; }
.banner.error { background: #EF44440D; border: 1px solid #EF444422; color: #b91c1c; }
.banner.warn { background: #F59E0B0D; border: 1px solid #F59E0B22; color: #92400e; }
.banner.info { background: #3B82F60D; border: 1px solid #3B82F622; color: #1d4ed8; }
.banner.good { background: #22C55E0D; border: 1px solid #22C55E22; color: #15803d; }

/* ------------------------------------------------------------------ forms */
.field { margin-bottom: 14px; }
.field > label { display: block; font-size: 11px; font-weight: 700; letter-spacing: 0.07em; text-transform: uppercase; color: var(--muted); margin-bottom: 5px; }
.field .help { font-size: 12px; color: var(--muted); margin-top: 4px; }
.field .bad { font-size: 12.5px; color: var(--danger); margin-top: 5px; }
input[type='text'], input[type='password'], input[type='date'], input[type='number'],
input[type='month'], input[type='search'], input[type='tel'], input[type='email'], input:not([type]),
select, textarea {
  width: 100%; padding: 10px 12px; border: 1px solid var(--border); border-radius: var(--radius-control);
  background: var(--input); font: inherit; color: var(--ink);
}
input:focus, select:focus, textarea:focus { outline: 2px solid #3B82F655; outline-offset: 1px; border-color: var(--primary); background: #fff; }
input[aria-invalid='true'], select[aria-invalid='true'], textarea[aria-invalid='true'] { border-color: var(--danger); background: #fff5f5; }
textarea { min-height: 76px; resize: vertical; }
.checkline { display: flex; align-items: center; gap: 8px; }
.checkline input { width: auto; }
/* 11 Oct, the UI sweep: every tick was 13px — under a thumb on a phone and
   fiddly with a mouse. The box grows and the label beside it is part of it. */
input[type='checkbox'], input[type='radio'] { width: 18px; height: 18px; flex: none; accent-color: var(--primary); cursor: pointer; }
label:has(> input[type='checkbox']), label:has(> input[type='radio']) { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; padding: 4px 0; }

button { font: inherit; }
.btn { padding: 9px 16px; border-radius: var(--radius-control); border: 1px solid transparent; font-weight: 700; font-size: 13.5px; cursor: pointer; }
.btn:disabled { opacity: 0.55; cursor: not-allowed; }
.btn.primary { background: var(--primary); color: #fff; }
.btn.primary:hover:not(:disabled) { filter: brightness(1.05); }
.seg { display: inline-flex; flex-wrap: wrap; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: #fff; }
.seg-btn { padding: 7px 14px; background: transparent; border: 0; border-right: 1px solid var(--line); cursor: pointer; font-size: 13px; font-weight: 600; color: var(--muted); }
.seg-btn:last-child { border-right: 0; }
.seg-btn.on { background: var(--primary); color: #fff; }
.seg-btn:hover:not(.on) { background: #f1f5f9; }
.seg-label { font-size: 11px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); margin-right: 6px; }
.btn.ghost { background: #fff; color: var(--ink); border-color: var(--border-strong); }
.btn.ghost:hover:not(:disabled) { background: #f8fafc; }
.btn.good { background: #fff; color: #15803d; border-color: #22C55E66; }
.btn.danger { background: #fff; color: #b91c1c; border-color: #EF444466; }
.btn.wide { width: 100%; }
.btn.small { padding: 6px 11px; font-size: 12.5px; }

/* the scan control: icon, input and Add as one thing (CTS 1's yard control) */
.scan { display: flex; border: 1px solid var(--border); border-radius: var(--radius-control); overflow: hidden; background: var(--input); }
.scan .mark { width: 44px; display: flex; align-items: center; justify-content: center; color: var(--primary); border-right: 1px solid var(--border); }
.scan input { border: 0; border-radius: 0; background: transparent; }
.scan button { border: 0; border-left: 1px solid var(--border); background: #e2e8f0; color: #334155; font-weight: 700; padding: 0 18px; cursor: pointer; }
.scan button:hover { background: #cbd5e1; }

/* the segmented control: Receiving IN / Sending OUT */
.segmented { display: flex; flex-wrap: wrap; background: var(--input); border: 1px solid var(--border); border-radius: 12px; padding: 4px; gap: 4px; margin-bottom: 14px; }
/* `flex: 1` alone made six tabs share one line and run off a phone's right
   edge — "Batches" and "+ Queue" were 100px past it, unreachable. They wrap. */
.segmented button { flex: 1 1 auto; min-width: max-content; padding: 10px 12px; border: 0; background: transparent; border-radius: 9px; font-weight: 700; color: var(--muted); cursor: pointer; }
.segmented button[aria-pressed='true'] { background: #fff; color: var(--ink); box-shadow: var(--shadow-card); }

/* the queue panel the yard loads into */
.queue { border: 1px dashed var(--border-strong); border-radius: var(--radius-card); min-height: 260px; padding: 16px; background: #fff; }
.queue.empty { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; color: var(--muted); }
.queue-item { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--border); border-radius: 10px; margin-bottom: 8px; }
.queue-item .grow { flex: 1; min-width: 0; }

.empty-state { text-align: center; color: var(--muted); padding: 34px 16px; }
.empty-state strong { display: block; color: var(--ink); margin-bottom: 4px; }

.detail-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px 22px; }
.detail-grid .k { font-size: 11px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.detail-grid .v { font-size: 14px; margin-top: 2px; }

.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { padding: 10px 0 10px 18px; border-left: 2px solid var(--border); position: relative; }
.timeline li::before { content: ''; position: absolute; left: -5px; top: 16px; width: 8px; height: 8px; border-radius: 99px; background: var(--primary); }
.timeline .when { font-size: 12px; color: var(--muted); }

.toolbar { display: flex; gap: 10px; flex-wrap: wrap; align-items: flex-end; margin-bottom: 14px; }
.toolbar .field { margin-bottom: 0; min-width: 150px; }
.toolbar .grow { flex: 1; min-width: 200px; }

.signin { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: linear-gradient(160deg, var(--rail) 0%, var(--rail-deep) 100%); padding: 20px; }
.signin .card { width: 100%; max-width: 380px; }
.signin h1 { font-size: 20px; margin: 0 0 4px; }
.signin p.sub { margin: 0 0 18px; color: var(--muted); font-size: 13px; }

.skip-link { position: absolute; left: -9999px; }
.skip-link:focus { left: 8px; top: 8px; background: #fff; padding: 8px 12px; border-radius: 8px; z-index: 10; }

@media (max-width: 900px) {
  .app { flex-direction: column; }
  .rail { width: 100%; flex: none; height: auto; position: static; min-height: 0; }
  .rail nav { flex-direction: row; overflow-x: auto; }
  .rail-foot, .rail .nav-group, .rail .nav-later { display: none; }
  .main { padding: 16px 14px 48px; }
  /* the yard uses a phone: targets grow, nothing shrinks */
  .btn { padding: 12px 18px; font-size: 15px; }
  .scan input, .scan button { font-size: 16px; padding-top: 12px; padding-bottom: 12px; }
  table.register td, table.register th { padding: 12px 10px; }
}

/* the search that is always there — it outranks the sections, and sits above them */
.rail-search { padding: 0 12px 12px; }
.rail-search input {
  width: 100%; padding: 9px 11px; border-radius: 9px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.07); color: #fff; font: inherit; font-size: 13px;
}
.rail-search input::placeholder { color: rgba(255, 255, 255, 0.45); }
.rail-search input:focus-visible {
  outline: 2px solid var(--primary); outline-offset: 1px;
  background: rgba(255, 255, 255, 0.12); border-color: transparent;
}
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* KEYBOARD USERS MUST SEE WHERE THEY ARE. Found by the design-system audit:
   only inputs had a focus ring, so every button, row and tab was reachable and
   invisible — on a product whose own ruling asks for keyboard-first entry. */
.btn:focus-visible,
.segmented button:focus-visible,
.nav-item:focus-visible,
.row-link:focus-visible,
table.register tbody tr[tabindex]:focus-visible,
a:focus-visible {
  outline: 2px solid var(--primary); outline-offset: 2px; border-radius: 6px;
}
.rail .nav-item:focus-visible { outline-color: #fff; outline-offset: -2px; }

/* THE COMMAND PALETTE — the two-click answer. CTS 1's card, lifted. */
.palette-back {
  position: fixed; inset: 0; background: rgba(10, 19, 64, 0.34);
  display: flex; align-items: flex-start; justify-content: center;
  padding-top: 12vh; z-index: 60; backdrop-filter: blur(2px);
}
.palette {
  width: min(680px, calc(100vw - 32px)); background: var(--card);
  border: 1px solid var(--border); border-radius: var(--radius-card);
  box-shadow: 0 24px 64px rgba(10, 19, 64, 0.26); overflow: hidden;
}
.palette > input {
  width: 100%; border: 0; border-bottom: 1px solid var(--border); background: transparent;
  padding: 18px 20px; font: inherit; font-size: 16px; color: var(--ink); border-radius: 0;
}
.palette > input:focus, .palette > input:focus-visible { outline: none; background: transparent; }
.palette-list { max-height: 52vh; overflow-y: auto; padding: 6px; }
.palette-row {
  display: flex; align-items: center; gap: 12px; width: 100%; text-align: left;
  padding: 11px 14px; border: 0; background: transparent; border-radius: 9px;
  font: inherit; font-size: 14px; color: var(--ink); cursor: pointer;
}
.palette-row.on { background: rgba(59, 130, 246, 0.10); }
.palette-row.quiet { color: var(--muted); }
.palette-row .grow { flex: 1; }
.palette-kind {
  font-size: 10px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase;
  padding: 3px 7px; border-radius: 5px; min-width: 38px; text-align: center;
}
.palette-kind.do   { background: rgba(59, 130, 246, 0.14); color: var(--primary); }
.palette-kind.go   { background: rgba(107, 114, 128, 0.14); color: var(--muted); }
.palette-kind.find { background: rgba(245, 158, 11, 0.16); color: #B45309; }
.palette-key { font-size: 10.5px; color: var(--faint); border: 1px solid var(--border); border-radius: 5px; padding: 2px 6px; }
.rail-k {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  margin: 0 12px 10px; padding: 9px 11px; border-radius: 9px; cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.14); background: rgba(255, 255, 255, 0.07);
  color: rgba(255, 255, 255, 0.72); font: inherit; font-size: 13px; width: calc(100% - 24px);
}
.rail-k:hover { background: rgba(255, 255, 255, 0.12); color: #fff; }
.rail-k kbd {
  font-family: inherit; font-size: 10.5px; padding: 2px 6px; border-radius: 4px;
  background: rgba(255, 255, 255, 0.14); color: rgba(255, 255, 255, 0.8);
}

/* the next-step strip (22 Sep): a banner with the one thing to do next on its right */
.next-step { align-items: center; }
.next-step .grow { flex: 1; min-width: 0; }
.next-step .btn { flex-shrink: 0; }

/* ------------------------------------------------------------------ the cylinder passport (Slice 1)
 *
 * A yard phone is the design target, so every rule here is written narrow-first and the
 * two-column arrangements only appear once there is room for them. The identity header is
 * sticky because a person who has scrolled into the movement book and is about to act must
 * still be able to see WHICH cylinder he is acting on.
 */
/* 12 Oct — a SLIM bar now: the hero below carries the identity in full, and this
   follows the reader down the page so the vessel he is acting on is never off screen. */
.passport-head {
  position: sticky; top: 0; z-index: 5;
  display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap;
  background: var(--card); border-bottom: 1px solid var(--border);
  margin: -4px -4px 12px; padding: 8px 4px; font-size: 13px;
}
.passport-head-id { font-size: 15px; font-weight: 800; letter-spacing: -0.01em; }
.passport-head .k { display: inline; font-size: 9.5px; margin-right: 2px; }
.passport-head-where { margin-left: auto; }
.passport-head-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 8px 18px; }
.passport-head .k { font-size: 10px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.passport-head .v { font-size: 14px; margin-top: 1px; }
.passport-id { font-size: 20px; font-weight: 700; letter-spacing: -0.01em; }
.passport-asof { font-size: 11px; margin: 6px 0 0; }

/* The books. One at a time on a phone; the tabs wrap rather than scroll sideways, because a
 * horizontally scrolling tab strip hides its own last entry. */
.book-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 14px; }
.book-tab {
  font: inherit; font-size: 13px; padding: 6px 12px; cursor: pointer;
  background: var(--card); color: var(--ink); border: 1px solid var(--border); border-radius: 99px;
}
.book-tab:hover { border-color: var(--primary); }
.book-tab[aria-pressed='true'] { background: var(--primary); border-color: var(--primary); color: #fff; }

/* The seven facts. Never one word, never a blank: an unknown fact is greyed and says so. */
.fact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px 18px; }
.fact { padding: 8px 10px; border: 1px solid var(--border); border-radius: 8px; }
.fact .k { font-size: 10px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.fact .v { font-size: 15px; margin-top: 2px; }
.fact .when { font-size: 11px; color: var(--muted); margin-top: 2px; }
.fact-unknown { border-style: dashed; }

/* What is stopping it. Each reason is its own block, with what is still allowed underneath. */
.blocker-list { list-style: none; margin: 0; padding: 0; }
.blocker { padding: 10px 0; border-bottom: 1px solid var(--border); }
.blocker:last-child { border-bottom: 0; }
.blocker-says { margin: 6px 0; }
.blocker-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 6px 18px; }
.blocker-grid .k { font-size: 10px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.still-allowed { margin: 10px 0 0; font-size: 13px; }
.good-line { margin: 0; }

/* A voided movement STAYS and is struck through: the register is corrected by a new line,
 * never by an erasure (D171), and a reader must be able to see what was undone. */
.timeline li.voided strong, .timeline li.voided .when { text-decoration: line-through; opacity: 0.65; }

/* ---------------------------------------------------------------- the picker
   A chooser that is not capped at two hundred. Drawn with this application's
   own tokens so it reads as the same control family as Select, not a second
   dialect bolted on. */
.picker-trigger {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 10px;
  background: var(--input); border: 1px solid var(--border); border-radius: var(--radius-control);
  padding: 10px 12px; font: inherit; color: var(--ink); text-align: left; cursor: pointer; min-height: 42px;
}
.picker-trigger:hover,
.picker-trigger[aria-expanded="true"] { border-color: var(--primary); }
.picker-trigger .muted { color: var(--muted); }

.picker-pop {
  position: absolute; top: calc(100% + 4px); left: 0; right: 0; z-index: 200;
  background: var(--card); border: 1px solid var(--border-strong);
  border-radius: var(--radius-card); box-shadow: var(--shadow-card);
  display: flex; flex-direction: column; overflow: hidden; max-height: 340px;
}
.picker-pop > input {
  margin: 10px; width: calc(100% - 20px); border: 1px solid var(--border);
  background: var(--input); color: var(--ink); border-radius: var(--radius-control);
  padding: 9px 12px; font: inherit; outline: none;
}
.picker-pop > input:focus { border-color: var(--primary); }
.picker-list { overflow-y: auto; flex: 1; }
.picker-row { padding: 10px 14px; cursor: pointer; font-size: 14px; color: var(--ink); }
.picker-row.on { background: var(--faint); }
.picker-empty { padding: 16px 14px; color: var(--muted); font-size: 13px; text-align: center; }
.picker-more {
  width: 100%; border: 0; border-top: 1px solid var(--border); background: transparent;
  color: var(--primary); font: inherit; font-weight: 600; padding: 10px; cursor: pointer;
}
.picker-foot {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  border-top: 1px solid var(--border); padding: 8px 14px; font-size: 11.5px; color: var(--muted);
}
.picker-clear { border: 0; background: transparent; color: var(--danger); font: inherit; font-weight: 600; cursor: pointer; }

/* which build is running — the first thing to ask for when a fault is reported */
.rail-build {
  margin-top: 10px; text-align: center; font-size: 10.5px; line-height: 1.5;
  color: rgba(255, 255, 255, 0.38); letter-spacing: .02em;
}
.rail-build span { display: block; font-variant-numeric: tabular-nums; }


/* ------------------------------------------------------------------ 10 Oct 2026: the redesign, phase 1
 * Eight places with real icons; the active place unfolds; Today is a worklist. */
/* 11 Oct, the UI sweep: this rule sat AFTER the phone block and re-imposed a
   220px flex-basis. On a phone the app is a COLUMN, so that basis became 220px
   of dead navy at the top of every screen, above the fold, saying nothing. It
   is a desk rule and now says so. */
@media (min-width: 901px) { .rail { width: 220px; flex: 0 0 220px; } }
.rail-mark { font-size: 12px; letter-spacing: 0.06em; }
.rail a.nav-item .icon { flex: 0 0 18px; opacity: 0.85; }
.rail a.nav-item[aria-current='page'] .icon { opacity: 1; }
.rail .nav-chevron .icon { transition: transform 0.12s; }
.rail .nav-chevron .icon.turn { transform: rotate(90deg); }
.rail .nav-later .icon { vertical-align: -3px; margin-right: 4px; }
.icon { display: inline-block; vertical-align: middle; }
.btn.big { padding: 12px 22px; font-size: 15px; font-weight: 700; }
.today { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(380px, 1fr)); align-items: start; }
.today-group { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-card); box-shadow: var(--shadow-card); overflow: hidden; border-left: 4px solid var(--muted); }
.today-group.primary { border-left-color: var(--primary); }
.today-group.good { border-left-color: var(--good); }
.today-group.money { border-left-color: var(--money); }
.today-group.danger { border-left-color: var(--danger); }
.today-group > header { display: flex; align-items: baseline; justify-content: space-between; padding: 12px 16px; border-bottom: 1px solid var(--border); }
.today-group > header h2 { margin: 0; font-size: 15px; font-weight: 700; }
.today-group > header a { font-size: 12.5px; }
.today-count { font-size: 22px; font-weight: 800; letter-spacing: -0.02em; margin-right: 4px; font-variant-numeric: tabular-nums; }
.today-note { margin: 0; padding: 8px 16px; font-size: 12.5px; color: var(--muted); border-bottom: 1px solid var(--border); background: #fafbfd; }
.today-rows .row-link { padding: 10px 16px; }
.today-rows .row-link .pill { margin-left: auto; margin-right: 8px; }
.today-rows .row-link .pill + .chev { margin-left: 0; }
.pill.muted { background: #f1f5f9; color: var(--muted); }
.pill.primary { background: #3B82F61A; color: #1d4ed8; }
.pill.good { background: #22C55E1A; color: #15803d; }
.pill.money { background: #F59E0B1A; color: #b45309; }
.pill.danger { background: #EF44441A; color: #b91c1c; }
@media (max-width: 900px) { .today { grid-template-columns: 1fr; } }


/* 10 Oct — the challan's journey as steps */
.journey { display: flex; gap: 0; list-style: none; margin: 0 0 14px; padding: 0; flex-wrap: wrap; }
.journey li { position: relative; display: flex; align-items: center; gap: 8px; padding: 6px 18px 6px 0; font-size: 13px; color: var(--muted); }
.journey li + li::before { content: ''; width: 18px; height: 1px; background: var(--border-strong); margin-right: 10px; }
.journey .journey-dot { width: 12px; height: 12px; border-radius: 50%; border: 2px solid var(--border-strong); background: #fff; }
.journey li.done { color: var(--ink); }
.journey li.done .journey-dot { background: var(--good); border-color: var(--good); }
.journey li.now { color: var(--ink); font-weight: 700; }
.journey li.now .journey-dot { border-color: var(--primary); background: var(--primary); box-shadow: 0 0 0 3px #3B82F633; }
.journey li.off { color: var(--danger); font-weight: 700; }


/* ------------------------------------------------------------------ 10 Oct 2026: phase 5 — the phone
 * The eight places under a thumb; the rail becomes a slim header; tables scroll sideways
 * inside their card; the scan box is the biggest thing on the screen. */
.bottom-bar { display: none; }
@media (max-width: 900px) {
  .rail { position: sticky; top: 0; z-index: 5; }
  .rail nav { display: none; }                      /* the bar below carries the places */
  .rail-search { display: none; }
  /* 11 Oct, the UI sweep: the collapsed rail was eating 190-220px of every
     phone screen to say "Signed in" and offer a KEYBOARD shortcut. It is now a
     slim bar, and ⌘K — which a phone does not have — is gone. */
  .rail { min-height: 0; height: auto; flex: 0 0 auto; }
  /* A wide register scrolls inside its card. Nothing SAID so, and a row's own
     action ("Fill it") sat 200px past the right edge where nobody looked for
     it — so the card now shades its right edge while there is more to see. */
  .table-wrap {
    background:
      linear-gradient(to right, var(--card) 30%, rgba(255,255,255,0)),
      linear-gradient(to left, var(--card) 30%, rgba(255,255,255,0)) 100% 0,
      linear-gradient(to right, rgba(15,23,42,0.16), rgba(255,255,255,0)),
      linear-gradient(to left, rgba(15,23,42,0.16), rgba(255,255,255,0)) 100% 0;
    background-repeat: no-repeat;
    background-size: 28px 100%, 28px 100%, 12px 100%, 12px 100%;
    background-attachment: local, local, scroll, scroll;
  }
  .rail-head { padding: 8px 14px; }
  .rail-head .rail-who strong { display: none; }
  .rail-k { display: none; }
  .rail-mark { width: 26px; height: 26px; font-size: 11px; }
  /* a thumb needs a bigger tick than a mouse does */
  input[type='checkbox'], input[type='radio'] { width: 22px; height: 22px; }
  .main { padding: 12px 12px 76px; }               /* room for the bar */
  .page-head h1 { font-size: 22px; }
  .page-actions .btn { flex: 1 1 auto; text-align: center; }
  .bottom-bar { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 6;
    background: var(--rail); border-top: 1px solid rgba(255,255,255,0.12); padding: 6px 4px calc(6px + env(safe-area-inset-bottom));
    overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .bottom-item { flex: 1 0 64px; display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 4px 2px;
    color: var(--rail-item); text-decoration: none; font-size: 11px; border-radius: 8px; }
  .bottom-item.on { color: #fff; background: #ffffff14; }
  .bottom-item .icon { opacity: 0.9; }
  .today { grid-template-columns: 1fr; }
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  /* 11 Oct, the UI sweep: `.grid.three` held THREE SHORT NUMBER FIELDS — from
     day, to day, rate — and collapsing it to one column turned seven holding
     bands into sixty-three lines. Wide pairs still stack; short triples do not. */
  .grid.two { grid-template-columns: 1fr; }
  .grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .grid.three .field > label { font-size: 10px; letter-spacing: 0.03em; }
  .toolbar { flex-wrap: wrap; }
  .toolbar .field { flex: 1 1 100%; }
  .seg { max-width: 100%; overflow-x: auto; }
  .seg-btn { white-space: nowrap; }
  table.register { min-width: 640px; }              /* scrolls inside .table-wrap rather than squeezing */
  .scan { position: sticky; top: 56px; z-index: 3; }
  /* 11 Oct, the UI sweep: on a phone the scan box — the most-used control in
     the yard — sat 1,060px down, under a strip of figures. On a screen that
     HAS one, it comes first and the figures follow. Scoped with :has so no
     other page's spacing moves. */
  .main:has(.scan) { display: flex; flex-direction: column; }
  .main:has(.scan) > .page-head,
  .main:has(.scan) > .fleet-tabs,
  .main:has(.scan) > .segmented,
  .main:has(.scan) > .seg,
  .main:has(.scan) > .toolbar:has(> .seg) { order: -2; }   /* navigation stays at the top */
  .main:has(.scan) > :has(.scan) { order: -1; }
  .scan input { font-size: 18px; }
  .journey { gap: 0; }
  .journey li { padding-right: 10px; font-size: 12px; }
}

/* the fleet's tabs — their own classes, so a walk that clicks a .seg-btn by its text never lands here */
.fleet-tabs { flex-wrap: wrap; display: inline-flex; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; margin-bottom: 14px; }
.fleet-tab { padding: 7px 14px; background: transparent; border: 0; border-right: 1px solid var(--line); font: inherit; font-size: 13px; cursor: pointer; color: var(--ink); }
.fleet-tab:last-child { border-right: 0; }
.fleet-tab.on { background: var(--primary); color: #fff; }
.fleet-tab:hover:not(.on) { background: #f1f5f9; }

/* 0173 — the operator's front page: large actions, two abreast on a phone */
.big-actions { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; margin-bottom: 16px; }
.big-action { display: flex; flex-direction: column; gap: 4px; padding: 20px 18px; min-height: 96px; border-radius: 12px;
  background: var(--card, #fff); border: 1px solid var(--line, #e3e6ea); color: inherit; text-decoration: none; box-shadow: var(--shadow-1, 0 1px 2px rgba(0,0,0,.05)); }
.big-action strong { font-size: 17px; }
.big-action span { color: var(--muted, #6b7280); font-size: 13px; }
.big-action.out { border-left: 5px solid var(--primary, #001078); }
.big-action.in { border-left: 5px solid var(--good, #15803d); }
.big-action:hover { border-color: var(--primary, #001078); }
.band + .band { margin-top: 4px; }

/* 11 Oct — the stage chosen on the yard page */
.kpi-link.on .kpi { box-shadow: 0 0 0 2px var(--primary); }

/* 11 Oct — CTS1's numbered form sections (QuoteForm's Sec): a small numbered
   badge, the title, a one-line hint, a rule beneath; the fields under it. */
.sec { margin: 0 0 22px; }
.sec-head { display: flex; align-items: baseline; gap: 8px; margin-bottom: 12px; padding-bottom: 6px; border-bottom: 1px solid var(--border); }
.sec-n { width: 20px; height: 20px; border-radius: 50%; background: color-mix(in srgb, var(--primary) 12%, transparent); color: var(--primary); font-size: 11px; font-weight: 800; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; transform: translateY(3px); }
.sec-title { font-size: 14px; font-weight: 700; color: var(--ink); }
.sec-desc { font-size: 12px; color: var(--muted); }
.line-row { display: grid; grid-template-columns: minmax(260px, 2fr) 90px 100px 130px minmax(140px, 1fr) auto; gap: 8px; align-items: end; background: var(--input); padding: 10px; border-radius: 8px; margin-bottom: 8px; }
.line-row .field { margin-bottom: 0; min-width: 0; }
.line-row.by-name { grid-template-columns: minmax(200px, 1.4fr) minmax(140px, 1fr) 90px 90px 100px 130px minmax(120px, 1fr) auto; }
.line-note { grid-column: 1 / -1; display: flex; justify-content: space-between; gap: 12px; font-size: 12px; color: var(--muted); }
.line-note b { color: var(--ink); }
.line-sum { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 6px; font-size: 13px; }
.line-sum b { font-size: 15px; color: var(--primary); }
@media (max-width: 760px) { .line-row, .line-row.by-name { grid-template-columns: 1fr 1fr; } }

/* 0175 — the printed schedules on the offer form and the company's own list */
.sched { border: 1px solid var(--border); border-radius: 10px; padding: 10px 12px; margin-bottom: 10px; }
.sched-head { display: flex; align-items: center; gap: 10px; font-size: 13.5px; }
.sched-head label { cursor: pointer; }
.sched-head .muted { font-size: 12px; margin-left: auto; text-align: right; }
.sched-head .btn { margin-left: 10px; }
table.sched-table { margin: 10px 0 8px; }
table.sched-table input { width: 100%; }
table.sched-table td { padding: 4px 6px; }

/* 0176 — the offer's standing clauses, as they are edited */
.clause { border-top: 1px solid var(--border); padding: 10px 0; }
.clause:first-of-type { border-top: 0; }
.clause-head { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.clause-head input { flex: 1; font-weight: 600; }
.clause-n { font-size: 11px; font-weight: 800; color: var(--muted); min-width: 20px; }
.clause textarea { width: 100%; }

/* ------------------------------------------------------------------ 12 Oct 2026: the cylinder passport
 * The owner: "cylinder passport needs to be redone with printing sticker option inbult".
 * The vessel first — the number large enough to read across a yard, what it carries, and
 * the sticker itself, printable from the page. */
.passport-hero {
  display: grid; grid-template-columns: 1fr auto; gap: 18px;
  background: var(--card); border: 1px solid var(--border); border-left: 4px solid var(--primary);
  border-radius: var(--radius-card); box-shadow: var(--shadow-card); padding: 16px 18px; margin-bottom: 16px;
}
.passport-hero .k { font-size: 10px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.passport-hero .v { font-size: 14px; margin-top: 2px; }
.passport-hero .passport-id { font-size: 40px; font-weight: 800; letter-spacing: -0.03em; line-height: 1.05; margin: 2px 0 8px; }
.passport-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.passport-hero-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px 18px; }
.passport-hero-warn, .passport-asof { grid-column: 1 / -1; }
.passport-asof { font-size: 12px; }
.passport-hero-label { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.passport-label-foot { display: flex; align-items: center; gap: 10px; font-size: 11.5px; }

/* The label as it is printed: 50 x 25 mm, black on white, whatever the screen's theme. */
.sticker {
  width: 50mm; height: 25mm; background: #fff; color: #000;
  border: 1px solid var(--border); border-radius: 6px;
  display: grid; grid-template-columns: 23mm 1fr; gap: 1.5mm; align-items: center; padding: 1.5mm;
}
.sticker-qr { width: 21mm; height: 21mm; display: block; }
.sticker-side { min-width: 0; }
.sticker-id { font-size: 5.2mm; font-weight: 800; letter-spacing: -0.02em; line-height: 1; font-variant-numeric: tabular-nums; }
.sticker-what { margin-top: 1mm; display: inline-block; background: #000; color: #fff; font-size: 2.6mm; font-weight: 700; letter-spacing: 0.04em; padding: 0.6mm 1.4mm; border-radius: 1mm; }
.sticker-serial { margin-top: 1mm; font-size: 2.6mm; color: #333; }

.sticker-print { position: fixed; inset: 0; z-index: 40; background: var(--page); overflow: auto; }
.sticker-print-bar { display: flex; justify-content: flex-end; gap: 10px; padding: 14px 18px; }
.sticker-print-stage { display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 10px 18px 40px; text-align: center; }
.sticker-print-label { transform: scale(3); transform-origin: top center; margin-bottom: 52mm; }

@media (max-width: 900px) {
  .passport-hero { grid-template-columns: 1fr; }
  .passport-hero-label { align-items: flex-start; }
  .passport-hero .passport-id { font-size: 32px; }
}

/* PRINTING: the sticker alone, at its own page size, with nothing around it. */
@media print {
  @page { size: 50mm 25mm; margin: 0; }
  body { background: #fff; }
  .rail, .bottom-bar, .no-print, .page-head, .main > *:not(.sticker-print) { display: none !important; }
  .sticker-print { position: static; background: #fff; }
  .sticker-print-stage { padding: 0; gap: 0; }
  .sticker-print-label { transform: none; margin: 0; }
  .sticker { border: 0; border-radius: 0; width: 50mm; height: 25mm; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
/* the number fills the label's own column; a longer one steps down rather than wrapping */
.sticker { grid-template-columns: 21mm 1fr; }
.sticker-qr { width: 19.5mm; height: 19.5mm; }
.sticker-mark { display: block; max-width: 20mm; max-height: 5mm; margin: 0 0 0.8mm auto; }
.sticker-side { text-align: right; }
.sticker-what { margin-left: auto; }
.sticker-id { font-size: 4.1mm; white-space: nowrap; }
.sticker-id[data-long='true'] { font-size: 3.4mm; }
.sticker-what { font-size: 2.4mm; white-space: nowrap; }
/* CTS1's "CURRENTLY WITH" — the one fact a person on the yard floor wants first */
.passport-currently { margin: 2px 0 14px; }
.passport-currently-who { font-size: 20px; font-weight: 700; letter-spacing: -0.01em; }
/* a customer's gas rates, read at a glance on the Rates screen */
.rate-chip { display: inline-block; margin: 0 8px 2px 0; font-size: 12.5px; white-space: nowrap; }

/* 12 Oct — the steps a new company still has to take, on the Overview */
.setup-steps { list-style: none; margin: 0; padding: 0; counter-reset: step; }
.setup-steps li { counter-increment: step; border-top: 1px solid var(--border); padding: 10px 0 10px 30px; position: relative; }
.setup-steps li:first-child { border-top: 0; }
.setup-steps li::before {
  content: counter(step); position: absolute; left: 0; top: 11px;
  width: 20px; height: 20px; border-radius: 50%; font-size: 11px; font-weight: 800;
  display: inline-flex; align-items: center; justify-content: center;
  background: color-mix(in srgb, var(--muted) 18%, transparent); color: var(--muted);
}
.setup-steps li.blocking::before { background: color-mix(in srgb, var(--danger) 16%, transparent); color: var(--danger); }
.setup-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 3px; }
.setup-head .btn { margin-left: auto; }
/* 13 Oct — the way through a refused duplicate stamping, on the register form */
.dup-path { border: 1px solid var(--border-strong); border-radius: var(--radius-card); padding: 12px 14px; margin-bottom: 14px; background: var(--input); }
.dup-path p { margin: 6px 0 8px; }

/* 14 Oct — the company's own mark in the rail, in place of the letters "CTS". Held to
   the rail's width so a wide wordmark and a square badge both sit properly. */
.rail-logo {
  max-width: 132px;
  max-height: 40px;
  width: auto;
  height: auto;
  object-fit: contain;
  background: #fff;
  border-radius: 6px;
  padding: 5px 7px;
  flex: 0 0 auto;
}

/* 14 Oct — the health board (CTS1's). One score, then only the checks that are not
   clear. The score is the share of checks clear, so green means nothing needs you. */
.health-score {
  font-size: 30px;
  font-weight: 800;
  line-height: 1;
  min-width: 74px;
  letter-spacing: -0.5px;
}
.health-score.good  { color: var(--good, #1e7d4f); }
.health-score.warn  { color: var(--warn, #9a6400); }
.health-score.error { color: var(--danger, #b3261e); }
.health-count { font-size: 18px; font-variant-numeric: tabular-nums; }
.health-count.danger  { color: var(--danger, #b3261e); }
.health-count.warning { color: var(--warn, #9a6400); }

/* A description inside a table cell stays on one line; the full text is on the page the
   row opens, and in the cell's tooltip. */
.one-line {
  display: block;
  max-width: 62ch;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* 14 Oct — TAP TARGETS IN THE YARD. A browser's own checkbox is 18px, which is below
   what a gloved thumb hits reliably on a phone; the audit measured every one of them.
   The box grows and its label keeps a tall hit area, so the filters on Users, Products,
   Suppliers and the Company's branch list can be worked standing at the manifold. */
@media (max-width: 900px) {
  input[type="checkbox"], input[type="radio"] { width: 22px; height: 22px; }
  label > input[type="checkbox"], label > input[type="radio"] { margin-right: 4px; }
  .queue-item label { min-height: 44px; }
}
