/* SMS shared styles. Brand colours/fonts are injected as CSS variables by js/shared/config.js (no inline styles anywhere: CSP). */
/* fonts:begin (generated by scripts/vendor-fonts.ts) */
@font-face { font-family: 'Barlow Condensed'; font-style: normal; font-weight: 500; font-display: swap; src: url("../vendor/fonts/barlow-condensed-1.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;  }
@font-face { font-family: 'Barlow Condensed'; font-style: normal; font-weight: 600; font-display: swap; src: url("../vendor/fonts/barlow-condensed-2.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;  }
@font-face { font-family: 'Barlow Condensed'; font-style: normal; font-weight: 700; font-display: swap; src: url("../vendor/fonts/barlow-condensed-3.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;  }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 400 700; font-display: swap; src: url("../vendor/fonts/inter-1.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;  }
@font-face { font-family: 'JetBrains Mono'; font-style: normal; font-weight: 400; font-display: swap; src: url("../vendor/fonts/jetbrains-mono-1.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;  }
@font-face { font-family: 'JetBrains Mono'; font-style: normal; font-weight: 500; font-display: swap; src: url("../vendor/fonts/jetbrains-mono-2.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;  }
/* fonts:end */
:root {
  --primary: #1a73e8; --on-primary: #ffffff; --accent: #ff5a1f; --on-accent: #0a1628;
  --success: #2be07a; --warning: #ffc24d; --danger: #ff8a8a;
  --font-heading: "Barlow Condensed", "Arial Narrow", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --bg: #0a1628; --surface: #2c3e6b; --surface-2: #22345d; --text: #ffffff; --muted: #b4c0d4; --border: #1f3055; --control-border: #8da2d0; --link: #7dc0ff;
  --side-bg: #2c3e6b; --side-text: #e8eefb; --side-active-bg: rgba(26, 115, 232, .30); --side-active: #9ad0ff; --side-hover: rgba(255, 255, 255, .07); --tile-bg: #0a1628; --stat-orange: #ff7a45; --stat-green: #2be07a;
  color-scheme: dark;
}
:root[data-theme="light"] { --control-border: #667085; --tile-bg: #eef2f9; --stat-orange: #c2410c; --stat-green: #15803d; --side-bg: #1f3156; --bg: #eaf0fa; --surface: #ffffff; --surface-2: #eef2f9; --text: #101828; --muted: #475467; --border: #c5cedd; --link: #1d4ed8; --success: #15803d; --warning: #b45309; --danger: #b91c1c; color-scheme: light; }
@media (prefers-color-scheme: light) {
  :root[data-theme="auto"] { --control-border: #667085; --tile-bg: #eef2f9; --stat-orange: #c2410c; --stat-green: #15803d; --side-bg: #1f3156; --bg: #eaf0fa; --surface: #ffffff; --surface-2: #eef2f9; --text: #101828; --muted: #475467; --border: #c5cedd; --link: #1d4ed8; --success: #15803d; --warning: #b45309; --danger: #b91c1c; color-scheme: light; }
}
/* people who pay for each other jump together: one colour per group (8, repeating) plus a letter, so colour is never the only clue */
:root { --grp0: #ffd166; --grp1: #ff9ecb; --grp2: #7ee8a2; --grp3: #8fd3ff; --grp4: #c9a7ff; --grp5: #ffa56b; --grp6: #5eead4; --grp7: #e0e65c; }
:root[data-theme="light"] { --grp0: #8a5a00; --grp1: #b0265f; --grp2: #15803d; --grp3: #0b6aa8; --grp4: #6d28d9; --grp5: #a8370a; --grp6: #0f766e; --grp7: #4d7c0f; }
@media (prefers-color-scheme: light) { :root[data-theme="auto"] { --grp0: #8a5a00; --grp1: #b0265f; --grp2: #15803d; --grp3: #0b6aa8; --grp4: #6d28d9; --grp5: #a8370a; --grp6: #0f766e; --grp7: #4d7c0f; } }
.grp-0, .tv-landed .tv-slot-name.grp-0 { color: var(--grp0); } .grp-1, .tv-landed .tv-slot-name.grp-1 { color: var(--grp1); } .grp-2, .tv-landed .tv-slot-name.grp-2 { color: var(--grp2); } .grp-3, .tv-landed .tv-slot-name.grp-3 { color: var(--grp3); } .grp-4, .tv-landed .tv-slot-name.grp-4 { color: var(--grp4); } .grp-5, .tv-landed .tv-slot-name.grp-5 { color: var(--grp5); } .grp-6, .tv-landed .tv-slot-name.grp-6 { color: var(--grp6); } .grp-7, .tv-landed .tv-slot-name.grp-7 { color: var(--grp7); }
.grp-tag { display: inline-block; min-width: 1.4em; margin-right: .35em; padding: 0 .25em; border: 1px solid currentColor; border-radius: 4px; font-size: .8em; font-weight: 700; text-align: center; line-height: 1.3; }
.tv-slot .grp-tag { font-size: .6em; }
.tdg { border-left: .35rem solid transparent; } .tdg-tag { margin-left: auto; padding: 0 .35em; border: 1px solid currentColor; border-radius: 4px; font-size: .7em; font-weight: 700; white-space: nowrap; }
.tdg-0 { border-left-color: var(--grp0); } .tdg-0 .tdg-tag { color: var(--grp0); } .tdg-1 { border-left-color: var(--grp1); } .tdg-1 .tdg-tag { color: var(--grp1); } .tdg-2 { border-left-color: var(--grp2); } .tdg-2 .tdg-tag { color: var(--grp2); } .tdg-3 { border-left-color: var(--grp3); } .tdg-3 .tdg-tag { color: var(--grp3); } .tdg-4 { border-left-color: var(--grp4); } .tdg-4 .tdg-tag { color: var(--grp4); } .tdg-5 { border-left-color: var(--grp5); } .tdg-5 .tdg-tag { color: var(--grp5); } .tdg-6 { border-left-color: var(--grp6); } .tdg-6 .tdg-tag { color: var(--grp6); } .tdg-7 { border-left-color: var(--grp7); } .tdg-7 .tdg-tag { color: var(--grp7); }
* { box-sizing: border-box; }
html { font-size: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--font-body); line-height: 1.5; min-height: 100vh; }
#app { min-height: 100vh; }
h1, h2, h3 { font-family: var(--font-heading); letter-spacing: .02em; line-height: 1.2; margin: 0 0 .6rem; }
h1 { font-size: 1.9rem; } h2 { font-size: 1.4rem; } h3 { font-size: 1.15rem; }
a { color: var(--link); }
.mono { font-family: var(--font-mono); }
.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; }
.skip-link { position: absolute; left: -999px; top: 0; background: var(--primary); color: var(--on-primary); padding: .75rem 1rem; z-index: 100; }
.skip-link:focus { left: 0; }
:focus-visible { outline: 3px solid var(--link); outline-offset: 2px; }

.topbar { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1.25rem; padding: .6rem 1rem; background: var(--surface); border-bottom: 1px solid var(--border); }
.brand { display: flex; align-items: center; gap: .6rem; font-family: var(--font-heading); font-size: 1.4rem; text-decoration: none; color: var(--text); min-height: 44px; }
.brand-logo { height: 56px; width: auto; max-width: 240px; object-fit: contain; }   /* top bar of the public and kiosk pages */
.topbar nav { display: flex; gap: .5rem; flex: 1; flex-wrap: wrap; align-items: center; }
.nav-link { display: inline-flex; align-items: center; min-height: 44px; padding: 0 .8rem; border-radius: 8px; text-decoration: none; color: var(--text); }
.nav-link[aria-current="page"] { background: var(--surface-2); font-weight: 600; box-shadow: inset 0 -3px 0 var(--accent); }
.user-chip { display: flex; align-items: center; gap: .4rem; flex-wrap: wrap; }
.badge { display: inline-block; padding: .1rem .55rem; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--border); font-size: .8rem; }
.page { padding: 1.25rem 1rem 2.5rem; max-width: 1200px; width: 100%; margin: 0 auto; flex: 1; }
.footer { display: flex; flex-direction: column; align-items: center; text-align: center; gap: .15rem; padding: .8rem 1rem; color: var(--muted); border-top: 1px solid var(--border); font-size: .85rem; }
.footer { margin-top: auto; } #footer-text:empty { display: none; }
.boarding-msg { min-height: 1.5rem; margin: .5rem 0; padding-left: .6rem; font-weight: 600; border-left: .4rem solid transparent; } .boarding-ok { border-left-color: #22c55e; } .boarding-bad { border-left-color: #ef4444; }
.reader-state { display: inline-block; padding: .25rem .7rem; border-radius: 999px; font-weight: 700; border: 1px solid currentColor; } .reader-on { color: #4ade80; } .reader-off { color: #fbbf24; } :root[data-theme="light"] .reader-on { color: #15803d; } :root[data-theme="light"] .reader-off { color: #92400e; }
.boarding-rig { min-height: 1.4rem; margin: 0 0 .5rem; padding-left: .6rem; font-weight: 600; border-left: .4rem solid transparent; }
.board-entry.is-boarded { border-left: .4rem solid #22c55e; padding-left: .5rem; background: rgba(34, 197, 94, .12); } .board-entry.is-waiting { border-left: .4rem solid #f59e0b; padding-left: .5rem; }
.badge.boarded-tag { background: #15803d; color: #fff; border-color: #15803d; font-weight: 700; } .badge.waiting-tag { background: transparent; color: #fbbf24; border: 1px solid #fbbf24; font-weight: 600; }
:root[data-theme="light"] .badge.waiting-tag { color: #92400e; border-color: #92400e; }
@media (prefers-color-scheme: light) { :root[data-theme="auto"] .badge.waiting-tag { color: #92400e; border-color: #92400e; } }
.boarded-tag { margin-left: .4rem; }
.footer-nxi { color: var(--text); opacity: .5; font-size: .75rem; }   /* the product line at the foot of every page, centred, faint and small */
.center-card { max-width: 480px; margin: 3rem auto; padding: 0 1rem; text-align: center; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 1.25rem; }
.card + .card { margin-top: 1rem; }
.login-card { display: flex; flex-direction: column; gap: .6rem; text-align: left; }
.grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.grid-list { list-style: none; padding: 0; margin: 0; }
.tile { display: flex; flex-direction: column; justify-content: center; gap: .3rem; min-height: 110px; height: 100%; padding: 1rem; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; text-decoration: none; color: var(--text); }
.tile:hover { border-color: var(--accent); }
.tile strong { font-family: var(--font-heading); font-size: 1.3rem; }
.muted, .hint { color: var(--muted); }
.row { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; }
.row-end { justify-content: flex-end; }
.stack > * + * { margin-top: .9rem; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: .4rem; min-height: 44px; min-width: 44px; padding: 0 1rem; border-radius: 8px; border: 1px solid var(--border); background: var(--surface-2); color: var(--text); font: inherit; cursor: pointer; text-decoration: none; }
.btn:hover:not(:disabled) { border-color: var(--link); }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn-primary { background: var(--primary); color: var(--on-primary); border-color: var(--primary); font-weight: 600; }
.btn-danger { border-color: var(--danger); color: var(--danger); }
.btn-small { min-height: 44px; padding: 0 .7rem; font-size: .9rem; }

label { display: block; font-weight: 600; margin: .8rem 0 .25rem; }
input[type="text"], input[type="password"], input[type="number"], input[type="email"], input[type="url"], input[type="search"], select, textarea {
  width: 100%; min-height: 44px; padding: .5rem .7rem; border-radius: 8px; border: 1px solid var(--control-border); background: var(--bg); color: var(--text); font: inherit; }
input[type="color"] { width: 64px; height: 44px; padding: 2px; border-radius: 8px; border: 1px solid var(--border); background: var(--bg); }
input[type="checkbox"] { width: 24px; height: 24px; accent-color: var(--primary); }
.field-error { color: var(--danger); font-size: .9rem; margin: .25rem 0 0; }
.cred-steps { margin: .25rem 0 .75rem 1.25rem; padding: 0; } .cred-steps li { margin: .15rem 0; } .hint.field-error { font-weight: 600; }
.form-error { color: var(--danger); min-height: 1.4em; margin: 0; }
.form-grid { display: grid; gap: 0 1rem; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.check-row { display: flex; align-items: center; gap: .6rem; min-height: 44px; }
fieldset.choice { min-width: 0; }
.choice .check-row { display: inline-flex; margin-right: 1.2rem; }
.check-row label { margin: 0; font-weight: 400; }
.issue { padding: .4rem .7rem; border-radius: 8px; margin: .3rem 0; border: 1px solid var(--border); }
.issue-error { border-color: var(--danger); } .issue-warn { border-color: var(--warning); }
.issue::before { font-weight: 700; margin-right: .4rem; }
.issue-error::before { content: "Error:"; } .issue-warn::before { content: "Warning:"; }

table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: .6rem .5rem; border-bottom: 1px solid var(--border); vertical-align: middle; }
th { color: var(--muted); font-weight: 600; font-size: .85rem; }
.table-wrap { overflow-x: auto; }

.tabs { display: flex; gap: .25rem; flex-wrap: wrap; border-bottom: 1px solid var(--border); margin-bottom: 1rem; }
.tab { min-height: 44px; padding: 0 1rem; border: 0; background: none; color: var(--muted); font: inherit; cursor: pointer; border-bottom: 3px solid transparent; }
.tab[aria-selected="true"] { color: var(--text); border-bottom-color: var(--accent); font-weight: 600; }

.switch { display: inline-flex; align-items: center; gap: .6rem; min-height: 44px; padding: 0 .4rem; background: none; border: 0; color: var(--text); font: inherit; cursor: pointer; }
.switch:disabled { cursor: not-allowed; opacity: .7; }
.switch-track { width: 52px; height: 28px; border-radius: 999px; background: var(--surface-2); border: 2px solid var(--muted); position: relative; flex: none; }
.switch-track::after { content: ""; position: absolute; top: 2px; left: 2px; width: 20px; height: 20px; border-radius: 50%; background: var(--muted); transition: transform .15s; }
.switch[aria-checked="true"] .switch-track { background: var(--primary); border-color: var(--primary); }
.switch[aria-checked="true"] .switch-track::after { transform: translateX(24px); background: var(--on-primary); }
.status { display: inline-block; padding: .1rem .6rem; border-radius: 6px; font-size: .85rem; border: 1px solid var(--border); }
.status-enabled { border-color: var(--success); } .status-needs_setup { border-color: var(--warning); } .status-blocked_by_dependency { border-color: var(--danger); }

.steps { display: flex; flex-wrap: wrap; gap: .4rem; padding: 0; margin: 0 0 1rem; list-style: none; counter-reset: step; }
.steps li { counter-increment: step; padding: .35rem .7rem; border: 1px solid var(--border); border-radius: 999px; color: var(--muted); font-size: .9rem; }
.steps li::before { content: counter(step) ". "; }
.steps li[aria-current="step"] { color: var(--text); border-color: var(--accent); font-weight: 600; }
.steps li.done { color: var(--text); }
.steps li.done::after { content: " \2713"; }
.layout-2 { display: grid; gap: 1rem; grid-template-columns: 1fr; }
@media (min-width: 900px) { .layout-2 { grid-template-columns: 220px 1fr; } .layout-3 { grid-template-columns: 1fr 340px; } }
.side-nav { display: flex; flex-direction: column; gap: .25rem; }
.side-nav button { text-align: left; }
.side-nav button[aria-current="true"] { background: var(--surface-2); border-color: var(--accent); }
.preview { border-radius: 12px; padding: 1rem; border: 1px solid var(--border); background: var(--surface-2); }
.preview-btn-primary, .preview-btn-accent { display: inline-block; padding: .55rem 1rem; border-radius: 8px; margin: .25rem .25rem 0 0; font-weight: 600; }
.preview-btn-primary { background: var(--pv-primary); color: var(--pv-on-primary); }
.preview-btn-accent { background: var(--pv-accent); color: var(--pv-on-accent); }

input.scan-input[type="text"], .scan-input { position: absolute; opacity: 0; width: 1px; min-height: 0; height: 1px; padding: 0; border: 0; pointer-events: none; }   /* beats the generic text-input rule, so the reader input can never widen the page */
.scan-status { font-size: 1.1rem; padding: .8rem; border: 2px dashed var(--border); border-radius: 12px; text-align: center; }
.overlay { position: fixed; inset: 0; background: rgba(0,0,0,.6); display: flex; align-items: center; justify-content: center; padding: 1rem; z-index: 50; }
.dialog { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 1.25rem; width: min(560px, 100%); max-height: 90vh; overflow: auto; }
.dialog-actions { display: flex; justify-content: flex-end; gap: .6rem; margin-top: 1rem; flex-wrap: wrap; }
.toasts { position: fixed; right: 1rem; bottom: 1rem; display: flex; flex-direction: column; gap: .5rem; z-index: 60; max-width: min(420px, calc(100vw - 2rem)); }
.toast { background: var(--surface-2); border: 1px solid var(--border); border-left-width: 6px; border-radius: 8px; padding: .7rem .9rem; }
.toast-error { border-left-color: var(--danger); } .toast-success { border-left-color: var(--success); } .toast-info { border-left-color: var(--link); }
.lang-select { width: auto; }
/* pack kiosk: big messages for a customer standing at the screen, and the live board */
.pk-status { margin: 1rem 0; min-height: 4.5rem; }
.pk-msg { font-size: 1.7rem; line-height: 1.3; font-weight: 600; margin: 0 0 .75rem; padding: .75rem 1rem; border-left: 6px solid var(--link); background: var(--surface-2); border-radius: 8px; }
.pk-ok { border-left-color: var(--success); } .pk-error { border-left-color: var(--danger); }
.pk-board { display: grid; grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr)); gap: 1rem; align-items: start; }
.pk-list { margin: 0; padding-left: 1.4rem; font-size: 1.25rem; } .pk-list li { padding: .25rem 0; }
.pk-list-ready { list-style: none; padding-left: 0; }
/* "needs your attention": a count badge; it pulses for about ten seconds when something new arrives (no endless blinking), and not at all with reduced motion */
.attn-badge { display: inline-flex; align-items: center; justify-content: center; min-width: 1.5rem; height: 1.5rem; margin-left: .5rem; padding: 0 .4rem; border-radius: 999px; background: var(--accent); color: var(--on-accent); font-size: .8rem; font-weight: 700; }
.nav-link.attn { box-shadow: inset 0 -3px 0 var(--accent); }
.nav-link.attn-new { animation: attn-pulse 1.25s ease-in-out 8; }
.nav-link.attn-new .attn-badge { animation: attn-pop 1.25s ease-in-out 8; }
@keyframes attn-pulse { 0%, 100% { background-color: transparent; } 50% { background-color: color-mix(in srgb, var(--accent) 35%, transparent); } }
@keyframes attn-pop { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.25); } }
/* the paid Tandem customers waiting for a load (Loads tab): amber and pulsing while anybody waits, red once somebody has waited a long time; no pulse with reduced motion (below) */
.tw-queue { border: 3px solid var(--warning); border-left-width: 10px; background: color-mix(in srgb, var(--warning) 24%, var(--surface)); animation: tw-pulse 2s ease-in-out infinite; }
.tw-queue h2 { display: flex; align-items: center; gap: .75rem; margin-top: 0; }
.tw-count { display: inline-flex; align-items: center; justify-content: center; min-width: 2.2rem; height: 2.2rem; padding: 0 .6rem; border-radius: 999px; background: var(--warning); color: #111; font-size: 1.25rem; font-weight: 800; }
.tw-queue li { font-size: 1.15rem; font-weight: 600; padding: .2rem 0; }
.tw-late { border-color: var(--danger); background: color-mix(in srgb, var(--danger) 18%, var(--surface)); }
.tw-late .tw-count { background: var(--danger); color: #111; }
:root[data-theme="light"] .tw-late .tw-count { color: #fff; }
@media (prefers-color-scheme: light) { :root[data-theme="auto"] .tw-late .tw-count { color: #fff; } }
@keyframes tw-pulse { 0%, 100% { box-shadow: 0 0 0 0 transparent; } 50% { box-shadow: 0 0 0 6px color-mix(in srgb, var(--warning) 45%, transparent); } }
.tw-late { animation-name: tw-pulse-late; } @keyframes tw-pulse-late { 0%, 100% { box-shadow: 0 0 0 0 transparent; } 50% { box-shadow: 0 0 0 6px color-mix(in srgb, var(--danger) 45%, transparent); } }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }

/* dashboard */
.ohc-frozen { border-color: var(--danger); border-width: 2px; }
.ohc-status { font-size: 1.15rem; font-weight: 600; }
.summary { display: grid; grid-template-columns: auto 1fr; gap: .25rem 1.2rem; margin: 0; }
.summary dt { color: var(--muted); } .summary dd { margin: 0; font-weight: 700; }
.status-load-planned { border-color: var(--link); } .status-load-airborne { border-color: var(--warning); } .status-load-landed { border-color: var(--success); } .status-load-cancelled { border-color: var(--danger); }
.price-preview { font-weight: 600; min-height: 1.5em; }
select[size] { min-height: 12rem; }

/* phase 4: kiosk / forms / documents */
.center { text-align: center; }
.btn-large { min-height: 56px; font-size: 1.15rem; padding: 0 1.6rem; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.ref-code { font-family: var(--font-mono); font-size: 2.2rem; letter-spacing: .12em; padding: .8rem; border: 2px dashed var(--border); border-radius: 12px; display: inline-block; }
.ref-input { font-family: var(--font-mono); font-size: 1.4rem; letter-spacing: .1em; text-transform: uppercase; }
.or { text-align: center; color: var(--muted); margin: 1rem 0; }
.scan-big { font-size: 1.5rem; padding: 2rem 1rem; }
.balance { font-size: 1.6rem; font-weight: 700; }
fieldset { border: 1px solid var(--border); border-radius: 10px; padding: .6rem 1rem 1rem; margin: .8rem 0; }
legend { padding: 0 .4rem; font-weight: 600; }
.choice { display: flex; align-items: center; gap: .7rem; min-height: 52px; }
.choice input { width: 28px; height: 28px; accent-color: var(--primary); }
.choice label { margin: 0; font-weight: 400; font-size: 1.1rem; }
.doc { border: 1px solid var(--border); border-radius: 10px; padding: 1rem 1.2rem; max-height: 50vh; overflow: auto; background: var(--surface); text-align: left; }
.doc-para { margin: 0 0 .9rem; }
.doc-details summary { cursor: pointer; min-height: 44px; display: flex; align-items: center; }
.doc-editor { font-family: var(--font-mono); font-size: .95rem; }
.sig-canvas { width: 100%; max-width: 560px; height: auto; aspect-ratio: 560 / 180; border: 2px solid var(--border); border-radius: 10px; background: #fff; touch-action: none; display: block; }
.pick-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: .35rem; max-height: 50vh; overflow: auto; }
.pick { display: flex; flex-direction: column; text-align: left; min-height: 56px; padding: .4rem .8rem; border-radius: 8px; border: 1px solid var(--border); background: var(--surface); color: var(--text); font: inherit; cursor: pointer; }
.pick[aria-current="true"] { border-color: var(--accent); background: var(--surface-2); }
.doc-row { justify-content: space-between; border-bottom: 1px solid var(--border); padding: .4rem 0; }
.status-doc-accepted, .status-doc-valid, .status-wallet-active { border-color: var(--success); }
.status-doc-missing, .status-doc-expired, .status-wallet-frozen { border-color: var(--danger); }
@media (min-width: 900px) { .layout-reg { grid-template-columns: 320px 1fr; } }

/* phase 5 */
.board { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); align-items: start; }
.board-list { list-style: none; margin: 0; padding: 0; }
.board-entry { display: flex; justify-content: space-between; align-items: center; gap: .5rem; flex-wrap: wrap; padding: .4rem 0; border-bottom: 1px solid var(--border); }
.rig-items { list-style: none; padding: 0; margin: 0; }
.rig-item { padding: .5rem .8rem; border: 1px solid var(--border); border-left-width: 6px; border-radius: 8px; margin: .35rem 0; }
.rig-pass { border-left-color: var(--success); } .rig-warn { border-left-color: var(--warning); } .rig-fail { border-left-color: var(--danger); }
.status-rig-pass, .status-ac-ok { border-color: var(--success); } .status-rig-warn { border-color: var(--warning); } .status-rig-fail, .status-ac-grounded { border-color: var(--danger); }
.pilot-facts { font-size: 1.3rem; }
/* TV: far-away reading, nobody touches it */
.tv { max-width: none; padding: 1.5rem 2rem; font-size: 1.6rem; }
.tv h1 { font-size: 3rem; margin: 0; } .tv-head { display: flex; justify-content: space-between; align-items: baseline; }
.tv-clock { font-family: var(--font-mono); font-size: 3rem; margin: 0; }
.tv-banner { font-size: 2.4rem; font-weight: 700; padding: 1rem 1.5rem; border-radius: 12px; border: 4px solid; margin: 1rem 0; }
.tv-freeze { border-color: var(--danger); } .tv-wind { border-color: var(--warning); }
.tv-wind-line { font-size: 1.8rem; color: var(--muted); }
/* TV: every load is a column of its own (header, times, numbered seats, free seats shown), live wind per altitude along the bottom */
.tv-head { display: grid; grid-template-columns: 1fr auto auto; gap: 1.5rem; align-items: center; }
.tv-head .tv-banner { margin: 0; text-align: center; font-size: 2rem; text-transform: uppercase; }
.tv-normal { border-color: var(--stat-green); color: var(--stat-green); }
.tv-clockbox { text-align: right; } .tv-clock { color: var(--stat-orange); } .tv-date { margin: 0; font-size: 1.4rem; color: var(--muted); text-transform: uppercase; }
.tv-loads { list-style: none; margin: 1rem 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(24rem, 1fr)); gap: 1rem; align-items: start; }
.tv-load { background: var(--surface-2); border: 2px solid var(--border); border-left: 8px solid var(--primary); border-radius: 12px; overflow: hidden; }
.tv-load-head { display: flex; flex-wrap: wrap; align-items: center; padding: .8rem 1.2rem; } .tv-load-head > * { margin: .2rem .8rem .2rem 0; }   /* margins, not gap: flex gap needs Chromium 84 */ .tv-load-head h2 { font-size: 2.4rem; white-space: nowrap; margin: 0; color: var(--link); }
.tv-pax { font-size: 1.2rem; font-weight: 700; background: var(--bg); border-radius: 999px; padding: .1rem .8rem; } .tv-chip { margin-left: auto; font-size: 1.05rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; border: 2px solid var(--primary); border-radius: 6px; padding: .2rem .7rem; }
.tv-chip-airborne { border-color: var(--accent); color: var(--stat-orange); } .tv-chip-landed { border-color: var(--control-border); color: var(--muted); }
.tv-aircraft { padding: .1rem .6rem; border: 1px solid currentColor; border-radius: 6px; font-weight: 700; letter-spacing: .06em; white-space: nowrap; }
.tv-load-label { margin: 0; padding: 0 1.2rem .4rem; font-size: 1.3rem; color: var(--muted); }
.tv-times { display: grid; grid-template-columns: repeat(4, 1fr); text-align: center; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: .5rem 0; }
.tv-time { display: flex; flex-direction: column; } .tv-time-cap { font-size: 1rem; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; } .tv-time-val { font-family: var(--font-mono); font-size: 1.25rem; white-space: nowrap; color: var(--link); }
.tv-slots { list-style: none; margin: 0; padding: 0; } .tv-slot { display: grid; grid-template-columns: 2rem 1fr auto auto; gap: .6rem; align-items: center; padding: .35rem 1.2rem; border-bottom: 1px solid var(--border); min-height: 3.2rem; }
.tv-slot-no { font-size: 1rem; color: var(--muted); } .tv-slot-name { font-size: 1.8rem; font-weight: 700; } .tv-slot-jump { font-size: 1.1rem; color: var(--stat-green); text-transform: uppercase; text-align: right; } .tv-slot-alt { color: var(--muted); text-transform: none; font-family: var(--font-mono); }
.tv-slot-free-text { grid-column: 2 / 4; font-size: 1.4rem; font-style: italic; color: var(--muted); text-transform: uppercase; }
.tv-airborne { border-left-color: var(--accent); } .tv-landed { border-left-color: var(--control-border); } .tv-landed h2, .tv-landed .tv-slot-name, .tv-landed .tv-time-val { color: var(--muted); }   /* dimmed by colour, not opacity: keeps the contrast measurable */
.tv-wind-strip { margin-top: 1rem; border-top: 2px solid var(--border); padding-top: .4rem; } .tv-wind-title { margin: 0; font-size: 1.1rem; color: var(--stat-orange); text-transform: uppercase; letter-spacing: .08em; font-family: var(--font-mono); }
.tv-wcols { list-style: none; margin: 0; padding: 0; display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; text-align: center; }
.tv-wcol { display: flex; flex-direction: column; align-items: center; padding: .3rem .2rem; border-right: 1px solid var(--border); } .tv-wavg { background: rgba(26, 115, 232, .22); border-bottom: 3px solid var(--primary); }
.tv-wcap { white-space: nowrap; font-size: .85rem; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; } .tv-arrow { font-size: 1.6rem; color: var(--link); line-height: 1.2; display: inline-block; } .tv-wdir { white-space: nowrap; font-size: .85rem; color: var(--muted); font-family: var(--font-mono); } .tv-wspeed { font-size: 1.5rem; font-weight: 700; }
.tv-announce { list-style: none; padding: 0; font-size: 2rem; border-top: 2px solid var(--border); margin-top: 1.5rem; }
.tv-offline, .tv-empty { font-size: 2rem; color: var(--muted); }
/* TV browsers without CSS grid (Chromium before 57: Samsung Tizen 4, LG webOS 4 and older): the same layout with flexbox */
@supports not (display: grid) {
  .tv-head { display: flex; align-items: center; } .tv-head > * { margin-right: 1.5rem; } .tv-head > :last-child { margin-right: 0; } .tv-head .tv-banner { flex: 1; }
  .tv-loads { display: flex; flex-wrap: wrap; align-items: flex-start; margin: 1rem -.5rem; } .tv-load { flex: 1 1 24rem; min-width: 22rem; margin: .5rem; }
  .tv-times { display: flex; } .tv-time { flex: 1; }
  .tv-slot { display: flex; align-items: center; } .tv-slot-no { flex: none; width: 2rem; margin-right: .6rem; } .tv-slot-name { flex: 1; margin-right: .6rem; } .tv-slot-free-text { flex: 1; }
  .tv-wcols { display: flex; } .tv-wcol { flex: 1; }
}

/* ---- Phase 6: billing, invoice, cafe, doors, airfield, archive, media ---- */
.facts { display: grid; grid-template-columns: max-content 1fr; gap: .25rem 1.25rem; margin: 0 0 1rem; }
.facts dt { color: var(--muted); } .facts dd { margin: 0; } .strong { font-weight: 700; }
.due { font-weight: 700; color: var(--text); border-left: 4px solid var(--warning); padding-left: .5rem; }
.num { text-align: right; font-variant-numeric: tabular-nums; }
.status-closed { border-color: var(--warning); }
.invoice { background: #fff; color: #111; border: 1px solid var(--border); border-radius: 8px; padding: 2rem; max-width: 800px; margin: 1rem auto; }
.invoice .facts dt { color: #444; } .invoice .muted { color: #444; } .invoice th, .invoice td { border-color: #bbb; color: #111; }
.invoice-head { display: flex; gap: 1.5rem; align-items: flex-start; } .invoice-head p { margin: 0; } .invoice-logo { max-height: 96px; max-width: 220px; object-fit: contain; }
.invoice-total th, .invoice-total td { font-weight: 700; font-size: 1.15rem; }
.pos-grid { display: grid; gap: .75rem; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); list-style: none; padding: 0; margin: 0; }
.pos-item { min-height: 72px; width: 100%; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; padding: .5rem .75rem; }
.door-result { text-align: center; padding: 3rem 1rem; border: 6px solid var(--border); border-radius: 16px; font-size: 3rem; font-weight: 800; }
.door-allow { border-color: var(--success); } .door-deny { border-color: var(--danger); } .door-result p { margin: .5rem 0 0; font-size: 1.5rem; font-weight: 400; }
.check-list { list-style: none; padding: 0; margin: 0; } .check-list li { padding: .75rem 0; border-bottom: 1px solid var(--border); }
fieldset.choice { border: 0; padding: 0; margin: 0; } fieldset.choice legend { font-weight: 600; padding: 0; }
.photo-grid { display: grid; gap: .75rem; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); list-style: none; padding: 0; margin: 0; }
.photo-grid img { width: 100%; height: auto; border-radius: 8px; display: block; }
.kiosk { max-width: 1100px; margin: 0 auto; }
@media print {
  .topbar, .footer, .no-print, .skip-link, .toasts { display: none !important; }
  body { background: #fff; color: #000; } .invoice { border: 0; padding: 0; margin: 0; max-width: none; }
}
.row-split { display: grid; gap: 1rem; grid-template-columns: 2fr 1fr; align-items: start; } @media (max-width: 800px) { .row-split { grid-template-columns: 1fr; } }

/* ================= Theme: command deck (dark navy surfaces, condensed upper-case headings, side navigation) ================= */
h1, h2, h3 { text-transform: uppercase; font-weight: 700; letter-spacing: .03em; }
h1 { font-size: 2.3rem; line-height: 1.1; } h2 { font-size: 1.35rem; } h3 { font-size: 1.1rem; }
.card > h2:first-child, .card > h3:first-child { font-size: 1.05rem; letter-spacing: .1em; margin-bottom: 1rem; }
.card { border-radius: 14px; }
.dialog { border-radius: 14px; }
label { font-size: .85rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.check-row label { text-transform: none; letter-spacing: 0; font-size: 1rem; color: var(--text); }
.btn { font-family: var(--font-heading); font-size: 1.05rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; border-radius: 10px; background: transparent; border-color: var(--control-border); min-height: 48px; padding: 0 1.4rem; }
.btn:hover:not(:disabled) { border-color: var(--link); background: var(--side-hover); }
.btn-primary { background: var(--primary); border-color: var(--primary); color: var(--on-primary); }
.btn-primary:hover:not(:disabled) { filter: brightness(1.1); background: var(--primary); }
.btn-small { font-size: .95rem; padding: 0 .9rem; min-height: 44px; }
.badge { text-transform: uppercase; letter-spacing: .06em; font-size: .72rem; }
th { text-transform: uppercase; letter-spacing: .08em; font-size: .78rem; }
.tab { font-family: var(--font-heading); text-transform: uppercase; letter-spacing: .08em; font-size: 1.05rem; font-weight: 600; }
.tab[aria-selected="true"], .tab[aria-current="page"] { color: var(--text); border-bottom-color: var(--primary); }
.tab:hover { color: var(--text); }
.tabs .tab.nav-link { background: none; border-radius: 0; box-shadow: none; padding: 0 1rem; }
.tabs .tab.nav-link[aria-current="page"] { background: none; box-shadow: none; border-bottom: 3px solid var(--primary); }
.page-sub { margin: -.3rem 0 1.4rem; color: var(--muted); font-size: 1.05rem; }

/* shell: side navigation + content */
.shell { display: grid; grid-template-columns: 240px minmax(0, 1fr); min-height: 100vh; }
.sidebar { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; background: var(--side-bg); color: var(--side-text); border-right: 1px solid var(--border); }
.side-top { padding: 14px; border-bottom: 1px solid var(--border); }
.side-brand { display: block; text-decoration: none; color: inherit; text-align: center; }
.brand-box { display: flex; align-items: center; justify-content: center; min-height: 120px; padding: 12px; background: #fff; color: #0a1628; border-radius: 14px; font-family: var(--font-heading); font-weight: 700; font-size: 1.5rem; letter-spacing: .04em; text-transform: uppercase; position: relative; }
.brand-box .brand-logo { width: 100%; height: auto; max-height: 120px; max-width: 100%; object-fit: contain; }   /* fills the box: a small picture is enlarged, a tall one is contained */
.brand-box .brand-logo:not([hidden]) + .brand-name { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
.side-product { display: block; margin-top: .7rem; font-size: .78rem; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); }
.side-toggle { display: none; }
.side-body { display: flex; flex-direction: column; flex: 1; min-height: 0; }
.side-list { flex: 1; overflow-y: auto; padding: .4rem 0; }
.side-group-label { margin: 1rem 1.5rem .2rem; font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.side-items { list-style: none; margin: 0; padding: 0; }
.sidebar .nav-link { display: flex; align-items: center; gap: .7rem; min-height: 48px; padding: 0 1.5rem; border-radius: 0; color: var(--side-text); font-family: var(--font-heading); font-size: 1.1rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; text-decoration: none; border-left: 3px solid transparent; box-shadow: none; }
.sidebar .nav-link:hover { background: var(--side-hover); }
.sidebar .nav-link[aria-current="page"] { background: var(--side-active-bg); color: var(--side-active); border-left-color: #3b9bff; box-shadow: none; font-weight: 700; }
.nav-icon { width: 1.4rem; text-align: center; font-size: 1.05rem; }
.side-foot { border-top: 1px solid var(--border); padding: .9rem 1.2rem; display: flex; flex-direction: column; gap: .7rem; }
.side-foot .user-chip { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; }
.user-name { font-weight: 600; }
.side-signout { width: 100%; margin-top: .4rem; }
/* The side menu is dark in every theme, so its own text, badge, button and quiet labels use light colours
   that do not depend on the page theme (in the light theme --text/--muted/--surface-2 are dark/light for the page and vanished here). */
.sidebar .user-name { color: var(--side-text); }
.sidebar .badge { background: rgba(255, 255, 255, .16); color: var(--side-text); border-color: rgba(255, 255, 255, .45); }
.sidebar .btn { background: transparent; color: var(--side-text); border-color: rgba(255, 255, 255, .6); }
.sidebar .btn:hover:not(:disabled) { background: var(--side-hover); border-color: #fff; color: #fff; }
.sidebar .side-product, .sidebar .side-group-label, .sidebar .side-status { color: #c3cde0; }
.side-status { display: flex; align-items: center; justify-content: space-between; gap: .5rem; font-size: .8rem; color: var(--muted); }
.side-net { margin: 0; display: inline-flex; align-items: center; gap: .4rem; letter-spacing: .06em; text-transform: uppercase; }
.side-net .dot { width: .6rem; height: .6rem; border-radius: 50%; background: var(--stat-green); }
.side-net.off .dot { background: var(--danger); }
.sidebar .lang-select { width: 100%; }
.content { display: flex; flex-direction: column; min-width: 0; min-height: 100vh; }
.content .page { padding: 1.6rem 2.2rem 2.5rem; max-width: 1500px; }
.topbar { display: flex; align-items: center; justify-content: center; padding: .7rem 1rem; background: var(--side-bg); border-bottom: 1px solid var(--border); }
.topbar .brand { color: var(--side-text); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
#app > .page, #app > .footer { max-width: 1500px; margin-left: auto; margin-right: auto; width: 100%; }
@media (max-width: 899px) {
  .shell { display: block; }
  .sidebar { position: static; height: auto; }
  .side-top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 10px 14px; }
  .side-brand { display: flex; align-items: center; gap: .8rem; text-align: left; }
  .brand-box { min-height: 60px; padding: 4px 10px; font-size: 1.1rem; border-radius: 10px; }
  .brand-box .brand-logo { width: auto; max-height: 52px; }
  .side-product { display: none; }
  .side-toggle { display: inline-flex; align-items: center; min-height: 44px; padding: 0 1rem; border-radius: 10px; border: 1px solid var(--control-border); background: transparent; color: var(--side-text); font-family: var(--font-heading); font-size: 1.05rem; letter-spacing: .08em; text-transform: uppercase; cursor: pointer; }
  .side-body { display: none; max-height: 70vh; overflow-y: auto; }
  .sidebar.open .side-body { display: flex; }
  .content .page { padding: 1.1rem 1rem 2rem; }
}

/* dashboard / portal building blocks */
.page-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin: 0 0 1.4rem; }
.panel { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 1.4rem 1.5rem; margin-bottom: 1.5rem; }
.panel > h2 { font-size: 1.05rem; letter-spacing: .12em; margin: 0 0 1rem; }
.launchers { list-style: none; margin: 0; padding: 0; display: grid; gap: .8rem; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.launcher, .tile { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .35rem; min-height: 118px; padding: .9rem .7rem; background: var(--tile-bg); border: 1px solid var(--border); border-radius: 12px; text-align: center; text-decoration: none; color: var(--text); height: 100%; }
.launcher:hover, .tile:hover { border-color: var(--link); }
.launcher-icon { font-size: 2rem; line-height: 1; }
.launcher strong, .tile strong { font-family: var(--font-heading); font-size: 1rem; letter-spacing: .08em; text-transform: uppercase; }
.launcher .sub, .tile .sub { color: var(--muted); font-size: .85rem; }
.stats { display: flex; flex-wrap: wrap; gap: 1rem; margin-bottom: 1.5rem; }
.stat { flex: 1 1 170px; max-width: 230px; background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 1.2rem 1.4rem; }
.stat-n { display: block; font-family: var(--font-heading); font-size: 3.2rem; font-weight: 700; line-height: 1; }
.stat-l { display: block; margin-top: .5rem; font-size: .95rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.stat-airborne .stat-n { color: var(--stat-orange); } .stat-landed .stat-n { color: var(--stat-green); } .stat-planned .stat-n { color: #cbd5e5; }
:root[data-theme="light"] .stat-planned .stat-n { color: #475467; }

/* RFID scan area: a visible switch (click / tap / its button), armed state shown by a solid primary border */
.scan-status, .scan-area { border-color: var(--control-border); }
.scan-area { cursor: pointer; transition: background-color .15s, border-color .15s; }
.scan-area:hover { border-color: var(--link); }
.scan-area.scan-active { border-style: solid; border-color: var(--primary); background: rgba(26, 115, 232, .16); }
.scan-activate { display: flex; width: 100%; margin-top: .5rem; text-transform: none; letter-spacing: .02em; font-family: var(--font-body); font-weight: 600; font-size: .95rem; }
.scan-activate[aria-pressed="true"] { border-color: var(--primary); }
.scan-activate::before { content: "\25C9"; margin-right: .5rem; color: var(--stat-green); display: none; }
.scan-activate[aria-pressed="true"]::before { display: inline; }

/* wind arrows: one class per 22.5 degrees of the direction the wind comes from; the arrow points the other way */
.tv-dir-0 { transform: rotate(180deg); }
.tv-dir-1 { transform: rotate(202deg); }
.tv-dir-2 { transform: rotate(225deg); }
.tv-dir-3 { transform: rotate(248deg); }
.tv-dir-4 { transform: rotate(270deg); }
.tv-dir-5 { transform: rotate(292deg); }
.tv-dir-6 { transform: rotate(315deg); }
.tv-dir-7 { transform: rotate(338deg); }
.tv-dir-8 { transform: rotate(0deg); }
.tv-dir-9 { transform: rotate(22deg); }
.tv-dir-10 { transform: rotate(45deg); }
.tv-dir-11 { transform: rotate(68deg); }
.tv-dir-12 { transform: rotate(90deg); }
.tv-dir-13 { transform: rotate(112deg); }
.tv-dir-14 { transform: rotate(135deg); }
.tv-dir-15 { transform: rotate(158deg); }

/* help-bot: question box, answer and suggestions side by side on wide screens */
.help-form textarea { width: 100%; font-size: 1.1rem; } .help-label { font-weight: 600; }
.help-grid { display: grid; grid-template-columns: 1fr; gap: 1rem; margin-top: 1rem; } @media (min-width: 900px) { .help-grid { grid-template-columns: 2fr 1fr; } }
.help-answer h3 { margin-top: .2rem; text-transform: none; } .help-body { line-height: 1.55; } .help-body ol, .help-body ul { padding-left: 1.4rem; }
.help-code { background: var(--bg); border: 1px solid var(--border); border-radius: 8px; padding: .6rem .8rem; overflow-x: auto; } .help-body code { font-family: var(--font-mono); }
.help-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .4rem; } .help-link { text-align: left; text-transform: none; letter-spacing: 0; height: auto; white-space: normal; }
#help-mic[aria-pressed="true"] { border-color: var(--danger); }

/* configuration: a field's preset value and the button that returns to it */
.hint-preset { display: inline; } .preset-val { color: var(--link); font-family: var(--font-mono); } .preset-btn { display: inline-flex; min-height: 0; padding: .1rem .6rem; text-transform: none; letter-spacing: 0; font-size: .9rem; vertical-align: baseline; }

/* events */
.status-event-running { border-color: var(--stat-green); color: var(--stat-green); } .status-event-upcoming { border-color: var(--link); color: var(--link); }
.status-event-over, .status-event-closed { border-color: var(--control-border); color: var(--muted); }
.panel-note { margin: .5rem 0; padding: .5rem .8rem; border-left: 4px solid var(--stat-green); background: var(--surface-2); }

/* load / flight manifest: a white A4 sheet; the menu and buttons are not printed */
.manifest table { margin-top: 1rem; }
.manifest-facts { width: 100%; border-collapse: collapse; table-layout: fixed; margin: 1rem 0; }
.manifest-facts th, .manifest-facts td { border: 1px solid #bbb; padding: .35rem .6rem; text-align: left; vertical-align: middle; overflow-wrap: anywhere; }
.manifest-facts th { width: 18%; background: #f1f3f6; color: #333; font-weight: 600; }
.manifest-facts td { width: 32%; }
@media (max-width: 560px) { .manifest-facts th, .manifest-facts td { padding: .3rem .4rem; font-size: .9rem; } }
.manifest-sign { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; margin-top: 3rem; } .manifest-sign p { border-top: 1px solid #444; padding-top: .4rem; color: #444; }
@media print { .sidebar, .no-print { display: none !important; } .shell { display: block; } .manifest { box-shadow: none; } @page { size: A4; margin: 15mm; } }

.image-preview { display: block; max-width: 160px; max-height: 80px; margin: .5rem 0; padding: 4px; border: 1px solid var(--control-border); border-radius: 6px; background: #fff; object-fit: contain; }
.rig-section { border: 1px solid var(--border); border-radius: 8px; padding: .5rem .8rem .8rem; margin: 0; } .rig-section legend { padding: 0 .4rem; font-weight: 700; }
/* the state of a rental item stands out by colour as well as by its word */
.rental-status { font-weight: 700; } .rental-status-available { color: var(--success); } .rental-status-rented { color: var(--link); } .rental-status-packing { color: var(--warning); } .rental-status-maintenance { color: var(--danger); } .rental-status-retired { color: var(--muted); }
.tv-slot-crew .tv-slot-crewname { font-size: 1.3rem; font-weight: 600; color: var(--muted); font-style: italic; }
.tv-crew-role { font-size: .65em; font-weight: 500; text-transform: uppercase; letter-spacing: .04em; }

/* event calendar (Pre-Reg / Join an event): the days of an event are filled with its colour, the first and the last day are rounded */
.cal { margin: .5rem 0 1rem; } .cal-bar { display: flex; align-items: center; justify-content: space-between; } .cal-title { text-transform: capitalize; font-size: 1.15rem; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; margin-top: .5rem; } .cal-head { text-align: center; font-size: .8rem; color: var(--muted); padding: .2rem 0; }
.cal-day { position: relative; min-height: 2.75rem; padding: .2rem; border: 1px solid var(--border); border-radius: 6px; background: var(--surface); color: var(--text); font: inherit; cursor: pointer; }
.cal-out { color: var(--muted); font-weight: 400; } .cal-today { outline: 2px solid var(--accent, #4da3ff); outline-offset: -2px; } .cal-picked { box-shadow: inset 0 0 0 3px var(--text); }
.cal-has-event { font-weight: 700; color: #111; } :root[data-theme="light"] .cal-has-event { color: #fff; }
@media (prefers-color-scheme: light) { :root[data-theme="auto"] .cal-has-event { color: #fff; } } .cal-more { position: absolute; right: 3px; bottom: 1px; font-size: .65rem; }
.cal-start { border-top-left-radius: 14px; border-bottom-left-radius: 14px; } .cal-end { border-top-right-radius: 14px; border-bottom-right-radius: 14px; }
.calev-0.cal-has-event { background: var(--grp0); } .cal-event.calev-0 { border-left: .4rem solid var(--grp0); }
.calev-1.cal-has-event { background: var(--grp1); } .cal-event.calev-1 { border-left: .4rem solid var(--grp1); }
.calev-2.cal-has-event { background: var(--grp2); } .cal-event.calev-2 { border-left: .4rem solid var(--grp2); }
.calev-3.cal-has-event { background: var(--grp3); } .cal-event.calev-3 { border-left: .4rem solid var(--grp3); }
.calev-4.cal-has-event { background: var(--grp4); } .cal-event.calev-4 { border-left: .4rem solid var(--grp4); }
.calev-5.cal-has-event { background: var(--grp5); } .cal-event.calev-5 { border-left: .4rem solid var(--grp5); }
.calev-6.cal-has-event { background: var(--grp6); } .cal-event.calev-6 { border-left: .4rem solid var(--grp6); }
.calev-7.cal-has-event { background: var(--grp7); } .cal-event.calev-7 { border-left: .4rem solid var(--grp7); }
.cal-event { margin-top: .6rem; padding: .5rem .75rem; border: 1px solid var(--border); border-radius: 8px; } .cal-event-name { margin: 0 0 .25rem; font-weight: 700; } .cal-day-title { margin: .75rem 0 0; font-weight: 700; }
.rig-sub { margin: .8rem 0 .2rem; }

.coach-breakdown { width: 100%; max-width: 34rem; border-collapse: collapse; margin: .5rem 0; } .coach-breakdown th { text-align: left; font-weight: 400; padding: .3rem .5rem; } .coach-breakdown td.num { text-align: right; padding: .3rem .5rem; white-space: nowrap; } .coach-breakdown tr.bd-total th, .coach-breakdown tr.bd-total td { font-weight: 700; border-top: 2px solid var(--border); }

/* TV: the coach and the coaching on each row, a colour for each coach of the load; more than four loads = a line each; the wind locked to the foot of the screen */
.cg-tag { display: inline-block; margin-left: .5rem; padding: 0 .5rem; border: 2px solid currentColor; border-radius: 6px; font-size: .55em; font-weight: 700; letter-spacing: .04em; vertical-align: middle; white-space: nowrap; } .cg-0 { border-color: var(--grp0); color: var(--grp0); } .cgrow-0 { box-shadow: inset -.4rem 0 0 var(--grp0); } .cg-1 { border-color: var(--grp1); color: var(--grp1); } .cgrow-1 { box-shadow: inset -.4rem 0 0 var(--grp1); } .cg-2 { border-color: var(--grp2); color: var(--grp2); } .cgrow-2 { box-shadow: inset -.4rem 0 0 var(--grp2); } .cg-3 { border-color: var(--grp3); color: var(--grp3); } .cgrow-3 { box-shadow: inset -.4rem 0 0 var(--grp3); } .cg-4 { border-color: var(--grp4); color: var(--grp4); } .cgrow-4 { box-shadow: inset -.4rem 0 0 var(--grp4); } .cg-5 { border-color: var(--grp5); color: var(--grp5); } .cgrow-5 { box-shadow: inset -.4rem 0 0 var(--grp5); } .cg-6 { border-color: var(--grp6); color: var(--grp6); } .cgrow-6 { box-shadow: inset -.4rem 0 0 var(--grp6); } .cg-7 { border-color: var(--grp7); color: var(--grp7); } .cgrow-7 { box-shadow: inset -.4rem 0 0 var(--grp7); } 
.tv-more { list-style: none; margin: 0 0 1rem; padding: 0; display: flex; flex-wrap: wrap; } .tv-more li { margin: .25rem .75rem .25rem 0; padding: .4rem 1rem; font-size: 1.6rem; border: 2px solid var(--border); border-radius: 10px; background: var(--surface-2); }
.tv { padding-bottom: 13rem; } .tv-windbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 5; padding: .4rem 1.5rem .6rem; background: var(--bg); border-top: 3px solid var(--border); } .tv-windbar .tv-wind-line { margin: 0 0 .2rem; } .tv-windbar .tv-wind-strip { margin-top: 0; }
.choice input[type="date"], .choice input[type="text"], .choice input[type="number"] { width: auto; min-width: 12rem; height: auto; min-height: 44px; }   /* a text / date field beside a radio or a checkbox is a field, not a 28 px tick box */
/* the coach tag sits under the name and may wrap: a long one must never push the jump and the seat out of the card */
.tv-slot-name { min-width: 0; } .tv-slot-tagline { grid-column: 2 / -1; flex: 0 0 100%; padding-left: 2.6rem; } .tv-slot .cg-tag { display: inline-block; margin: 0 0 .2rem; white-space: normal; }
.tv-slot { flex-wrap: wrap; }

/* Configuration: the settings of one section are in boxes by subject; the side list is headed by subject too */
.cfg-group { border: 1px solid var(--border); border-radius: 12px; padding: 1rem 1.25rem; background: var(--surface); } .cfg-group > h3 { margin: 0 0 .25rem; } .cfg-group > .hint { margin: 0 0 .75rem; }
.cfg-group .card { background: transparent; border: 0; padding: 0; } .cfg-group + .cfg-group { margin-top: 0; }
.side-nav-title { margin: .9rem 0 .15rem; padding: 0 .4rem; font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); font-weight: 700; } .side-nav-title:first-child { margin-top: 0; }

/* TV board 1.18.1: each load is a tidy card in three bands (title and status / aircraft, name, seats taken / the four times), names a size that fits, free seats on one line, a slimmer wind bar */
.tv h1 { font-size: 2.2rem; } .tv-clock { font-size: 2.4rem; } .tv-head .tv-banner { font-size: 1.5rem; padding: .5rem 1rem; border-width: 3px; }
.tv-load { border-width: 1px; border-left-width: 8px; border-top: 4px solid var(--primary); } .tv-airborne { border-top-color: var(--accent); } .tv-landed { border-top-color: var(--control-border); }
.tv-load-head { flex-wrap: nowrap; justify-content: space-between; padding: .6rem 1rem .1rem; } .tv-load-head > * { margin: 0; } .tv-load-head h2 { font-size: 1.9rem; } .tv-load-head .tv-chip { margin-left: .6rem; font-size: .85rem; padding: .1rem .5rem; white-space: nowrap; }
.tv-chip-planned { color: var(--muted); border-color: var(--control-border); } .tv-chip-airborne { border-width: 3px; } .tv-chip-landed { opacity: .8; }
.tv-load-sub { display: flex; flex-wrap: wrap; align-items: center; padding: .1rem 1rem .5rem; } .tv-load-sub > * { margin: .15rem .6rem .15rem 0; }
.tv-load-sub .tv-aircraft { font-size: .95rem; } .tv-load-sub .tv-load-label { padding: 0; font-size: 1.05rem; flex: 1; min-width: 0; } .tv-load-sub .tv-pax { margin-left: auto; margin-right: 0; font-size: 1rem; white-space: nowrap; }
.tv-times { padding: .3rem 0; background: var(--surface); } .tv-time + .tv-time { border-left: 1px solid var(--border); } .tv-time-cap { font-size: .75rem; } .tv-time-val { font-size: 1.15rem; }
.tv-slot { padding: .2rem 1rem; min-height: 2.4rem; } .tv-slot-name { font-size: 1.35rem; } .tv-slot-jump { font-size: .95rem; } .tv-slot-no { font-size: .85rem; }
.tv-slot-crew .tv-slot-crewname { font-size: 1.1rem; }
.tv-slot-free { min-height: 1.8rem; border-bottom: 0; } .tv-slot-free-text { font-size: 1rem; }
.tv-more li { font-size: 1.05rem; padding: .25rem .7rem; } .tv-announce { font-size: 1.5rem; margin-top: 1rem; }
.tv { padding-bottom: 8rem; } .tv-windbar { padding: .25rem 1.5rem .35rem; } .tv-windbar .tv-wind-line { font-size: 1.1rem; margin: 0 0 .1rem; } .tv-windbar .tv-wind-title { font-size: .9rem; }
.tv-wcol { padding: .1rem .2rem; } .tv-wcap { font-size: .75rem; } .tv-arrow { font-size: 1.2rem; } .tv-wdir, .tv-wspeed { font-size: 1rem; }

/* printable report sheet (web/js/shared/print-sheet.js): hidden on screen, the only thing printed while body.printing-sheet */
.print-sheet { display: none; }
@media print {
  body.printing-sheet > *:not(#print-root) { display: none !important; }
  body.printing-sheet { background: #fff; color: #111; }
  body.printing-sheet #print-root { display: block; color: #111; background: #fff; font-size: 11pt; }
  .ps-head { display: flex; align-items: center; border-bottom: 2px solid #111; padding-bottom: .5rem; margin-bottom: .75rem; } .ps-head > * { margin-right: 1rem; } .ps-logo { max-height: 64px; max-width: 180px; object-fit: contain; }
  .ps-org { margin: 0; font-size: 11pt; color: #444; } .ps-title { margin: 0; font-size: 18pt; color: #111; } .ps-period { margin: .15rem 0 0; font-size: 11pt; }
  .ps-facts { display: flex; flex-wrap: wrap; margin: 0 0 .75rem; } .ps-facts dt { color: #444; margin-right: .3rem; } .ps-facts dd { margin: 0 1.2rem 0 0; font-weight: 700; }
  .ps-h { font-size: 13pt; margin: 1rem 0 .25rem; color: #111; } .ps-note { margin: 0 0 .25rem; color: #444; font-size: 10pt; }
  .ps-table { width: 100%; border-collapse: collapse; font-size: 10pt; } .ps-table th, .ps-table td { border: 1px solid #999; padding: 3px 6px; text-align: left; color: #111; background: #fff; }
  .ps-table thead th { background: #e8e8e8; } .ps-table .num { text-align: right; font-variant-numeric: tabular-nums; } .ps-table .strong, .ps-table tfoot td, .ps-table tfoot th { font-weight: 700; }
  .ps-table tr { page-break-inside: avoid; } .ps-table thead { display: table-header-group; } .ps-section { page-break-inside: auto; }
  .ps-foot { margin-top: 1.25rem; border-top: 1px solid #999; padding-top: .35rem; font-size: 9pt; color: #555; } .ps-foot p { margin: 0; }
}

/* Dashboard Summary 1.18.1: one box per subject (customers, aircraft provider, rig owners, crew pay), each with its own period and Print; figures first as tiles, then the table */
.sum-toolbar { padding: .75rem 1.25rem; } .sum-toolbar .row { align-items: flex-end; }
.sum-card { border-left: 5px solid var(--primary); } .sum-card + .sum-card, .sum-toolbar + .card, .sum-card + .sum-toolbar { margin-top: 1rem; }
#provider-box { margin-top: .25rem; } [data-testid=provider-card] { border-left-color: var(--stat-orange); } [data-testid=owner-payout] { border-left-color: var(--stat-green); } [data-testid=crew-pay] { border-left-color: #a78bfa; }
.sum-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; } .sum-head h3 { margin: 0 0 .15rem; } .sum-head .hint { margin: 0 0 .5rem; }
.sum-actions { display: flex; flex-wrap: wrap; } .sum-actions > * { margin: 0 0 .4rem .5rem; } .sum-controls { margin: .25rem 0 .75rem; padding: .6rem .75rem; background: var(--surface-2); border-radius: 10px; align-items: flex-end; }
.sum-tiles { list-style: none; margin: .5rem 0 1rem; padding: 0; display: flex; flex-wrap: wrap; } .sum-tile { flex: 1 1 11rem; margin: 0 .75rem .75rem 0; padding: .6rem .9rem; border: 1px solid var(--border); border-radius: 10px; background: var(--surface-2); border-top: 4px solid var(--control-border); }
.sum-tile-l { display: block; font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); } .sum-tile-v { display: block; font-size: 1.5rem; font-weight: 700; font-family: var(--font-mono); }
.sum-due { border-top-color: var(--danger); } .sum-due .sum-tile-v { color: var(--danger); } .sum-ok { border-top-color: var(--stat-green); } .sum-gross { border-top-color: var(--primary); }
.sum-card table th.num, .sum-card table td.num { text-align: right; font-variant-numeric: tabular-nums; } .sum-card tbody tr:nth-child(even) { background: var(--surface-2); } .sum-card thead th { background: var(--surface-2); }
.sum-card .facts { margin: .25rem 0 0; }
.sum-toolbar .field, .sum-controls .field { flex: 1 1 14rem; max-width: 20rem; width: auto; margin: 0; } .sum-toolbar .field .hint, .sum-controls .field .hint { font-size: .8rem; margin: .2rem 0 0; } .sum-toolbar .row { align-items: flex-start; }
.sum-toolbar select, .sum-toolbar input, .sum-controls input { width: 100%; max-width: 100%; }
.table-wrap th.num, .table-wrap td.num { text-align: right; font-variant-numeric: tabular-nums; }

@media print { .ps-break { page-break-before: always; } .ps-section:first-of-type.ps-break { page-break-before: auto; } .ps-section .ps-facts { margin: 0 0 .4rem; }
  .ps-sign { display: flex; justify-content: space-between; margin-top: 2.2rem; page-break-inside: avoid; } .ps-sign p { flex: 1; margin: 0 1.5rem 0 0; border-top: 1px solid #111; padding-top: .3rem; font-size: 10pt; } .ps-sign p:last-child { margin-right: 0; } }
.sum-card tr.sum-group th { background: var(--surface-2); text-transform: uppercase; letter-spacing: .08em; font-size: .75rem; color: var(--muted); text-align: left; }
.sum-card tfoot th, .sum-card tfoot td { border-top: 2px solid var(--control-border); font-size: 1.05rem; }
.sum-head > div:first-child { flex: 1 1 18rem; min-width: 0; } .sum-head .sum-actions { margin-left: auto; }

/* fuel bill: signature lines under the table (1.18.7) */
.sign-lines { display: grid; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); gap: 2rem; margin-top: 3rem; }

/* the Coach service of a jump: says plainly whether the customer asked for one (1.21.2) */
.coach-box { display: flex; flex-direction: column; align-items: flex-start; gap: .35rem; }
.coach-box .coach-status { margin: 0; }
.coach-box.coach-on { border-left: 4px solid var(--link); padding-left: .6rem; }

/* Team and access (V.1.24.0): the system-made initial PIN is shown once, large and easy to read aloud */
.secret-out { display: block; margin: .75rem 0; font-family: var(--font-mono); font-size: 2rem; letter-spacing: .25em; font-weight: 700; user-select: all; }
