/* FCSL Remote – Fleet Portal. Brand per docs/Bolt/BOLT_PROMPT_WEB_PORTAL.md and CLAUDE.md §6. */
:root {
  --blue: #0081db; --green: #9fd300; --dkgreen: #3e7a00; --navy: #2d2e82;
  --text: #1d2329; --muted: #5b6168; --line: #e3e5e8; --border2: #d5d8dc; --tile: #f5f7f9; --bg: #ffffff;
  --ok-bg: #e6f4d6; --ok: #2f6100; --info-bg: #e3f1fc; --info: #005c9e; --warn-bg: #fff1d6; --warn: #7a4e00;
  --fault-bg: #fde4e4; --fault: #a12b2b; --off-bg: #eceef0; --off: #4a5057;
  --surface: #ffffff; --hover: #fafbfc;
  --c-ok: #3e9b00; --c-warn: #d98a00; --c-fault: #d64545; --c-off: #8a9097;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--text); font: 15px/1.45 Rubik, system-ui, -apple-system, Segoe UI, sans-serif; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
button { font: inherit; }
.num { font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); }
.small { font-size: 13px; }

/* header */
header.top { position: relative; overflow: visible; z-index: 50; border-bottom: 1px solid var(--line); background: var(--surface); }
.top-inner { max-width: 1360px; margin: 0 auto; padding: 14px 20px 0; display: flex; align-items: center; gap: 22px; flex-wrap: wrap; position: relative; z-index: 1; }
.logo { display: flex; align-items: center; gap: 10px; }
.logo img { height: 52px; }
nav.main { display: flex; gap: 22px; align-self: flex-end; }
nav.main a { color: var(--text); font-weight: 500; padding: 10px 0 12px; border-bottom: 3px solid transparent; }
nav.main a.active { color: var(--blue); border-bottom-color: var(--green); }
nav.main a:hover { text-decoration: none; color: var(--blue); }
.top-right { margin-left: auto; display: flex; gap: 10px; align-items: center; padding-bottom: 8px; flex-wrap: wrap; }
/* the whole wave across the full header (the image is the full wave on transparent), fading in on the left so the
   logo and menu stay readable */
.swoosh { position: absolute; left: 0; right: 0; top: 50%; width: 100%; height: auto; transform: translateY(-50%); opacity: .55; z-index: 0; pointer-events: none;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, rgba(0,0,0,.35) 30%, #000 60%); mask-image: linear-gradient(to right, transparent 0%, rgba(0,0,0,.35) 30%, #000 60%); }
select, input[type=text], input[type=search], input[type=number], input[type=password], input[type=email], input[type=date], input[type=tel], input:not([type]) {
  font: inherit; border: 1.5px solid var(--border2); border-radius: 10px; padding: 7px 10px; background: var(--surface); color: var(--text); }

main { max-width: 1360px; margin: 0 auto; padding: 22px 20px 40px; }
h1.page { color: var(--blue); font-size: 36px; font-weight: 600; margin: 4px 0 4px; line-height: 1.15; }
.sub { color: var(--muted); margin: 0 0 18px; }
h2.sec { color: var(--dkgreen); font-size: 18px; font-weight: 700; margin: 0 0 12px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 18px; }
.card + .card { margin-top: 16px; }
.grid { display: grid; gap: 16px; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 16px; align-items: start; }
@media (max-width: 980px) { .g2, .g3, .split { grid-template-columns: minmax(0, 1fr); } h1.page { font-size: 28px; } }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.spacer { flex: 1; }

/* buttons, pills, chips */
.btn { border-radius: 999px; padding: 8px 18px; border: 1.5px solid var(--border2); background: var(--surface); color: var(--text); cursor: pointer; font-weight: 500; white-space: nowrap; }
.btn:hover { border-color: var(--blue); }
.btn.primary { background: var(--green); border-color: var(--green); font-weight: 600; }
.btn.primary:hover { filter: brightness(.95); }
.btn.danger { border-color: #e7b3b3; color: var(--fault); }
.btn.small { padding: 4px 12px; font-size: 13px; }
.btn[disabled] { opacity: .45; cursor: not-allowed; }
.chip { border-radius: 999px; padding: 5px 14px; border: 1.5px solid var(--border2); background: var(--surface); color: var(--text); cursor: pointer; font-size: 14px; }
.chip.on { background: var(--green); border-color: var(--green); font-weight: 600; color: #1d2329; }
.pill { display: inline-block; border-radius: 999px; padding: 2px 10px; font-size: 12.5px; font-weight: 600; white-space: nowrap; }
.pill.ok { background: var(--ok-bg); color: var(--ok); } .pill.info { background: var(--info-bg); color: var(--info); }
.pill.warning, .pill.attention { background: var(--warn-bg); color: var(--warn); } .pill.fault { background: var(--fault-bg); color: var(--fault); }
.pill.offline, .pill.unknown { background: var(--off-bg); color: var(--off); }
.tag { display: inline-block; border-radius: 6px; padding: 1px 8px; font-size: 12px; background: var(--tile); border: 1px solid var(--line); color: var(--muted); margin: 2px 4px 2px 0; }

/* tables */
.tablewrap { overflow-x: auto; }
table.t { width: 100%; border-collapse: collapse; font-size: 14px; }
table.t th { text-align: left; color: var(--muted); font-weight: 500; font-size: 12.5px; text-transform: uppercase; letter-spacing: .03em; padding: 8px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
table.t td { padding: 10px; border-bottom: 1px solid var(--line); vertical-align: middle; }
table.t tr.click { cursor: pointer; } table.t tr.click:hover td { background: var(--hover); }
.bar { height: 8px; border-radius: 4px; background: var(--off-bg); width: 90px; overflow: hidden; display: inline-block; vertical-align: middle; }
.bar > i { display: block; height: 100%; background: var(--blue); }
.bar.fuel-low > i { background: var(--c-warn); } .bar.fuel-out > i { background: var(--c-fault); }
.top-right select { max-width: 100%; }
.red { color: var(--c-fault); }

/* overview */
.kpis { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; margin-bottom: 16px; }
@media (max-width: 980px) { .kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.kpi { border: 1px solid var(--line); border-radius: 16px; padding: 14px 16px; cursor: pointer; background: var(--surface); }
.kpi:hover { border-color: var(--blue); }
.kpi .v { font-size: 30px; font-weight: 600; } .kpi .k { color: var(--muted); font-size: 13px; }
.kpi.fault .v { color: var(--c-fault); } .kpi.warn .v { color: var(--c-warn); } .kpi.off .v { color: var(--c-off); }
.att { display: flex; gap: 14px; align-items: center; padding: 12px 14px 12px 0; border-bottom: 1px solid var(--line); }
.att:last-child { border-bottom: 0; }
.att .lbar { flex: 0 0 5px; width: 5px; align-self: stretch; border-radius: 3px; background: var(--c-off); }
.att.fault .lbar { background: var(--c-fault); } .att.warning .lbar { background: var(--c-warn); } .att.info .lbar { background: var(--blue); }
.att .what { flex: 1; min-width: 200px; } .att .title { font-weight: 600; }
.map { height: 360px; border-radius: 12px; border: 1px solid var(--line); z-index: 0; }
.dot { width: 14px; height: 14px; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 0 0 1px rgba(0,0,0,.25); }

/* unit page */
.unit-head { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; margin-bottom: 16px; }
.gauges { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.gauges.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 700px) { .gauges.g3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 700px) { .gauges { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.gauge { background: var(--tile); border-radius: 14px; padding: 12px; text-align: center; }
.gauge .k { font-size: 13px; color: var(--muted); font-weight: 500; } .gauge .s { font-size: 12.5px; color: var(--muted); }
.insights { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 900px) { .insights { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.insight { background: var(--tile); border-radius: 14px; padding: 12px 14px; } .insight .v { font-size: 20px; font-weight: 600; } .insight .k { font-size: 13px; color: var(--muted); }
dl.kv { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; margin: 0; font-size: 14px; }
dl.kv dt { color: var(--muted); } dl.kv dd { margin: 0; font-weight: 500; }
.chart-wrap { position: relative; }
.chart-tip { position: absolute; pointer-events: none; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 6px 9px; font-size: 12.5px; box-shadow: 0 4px 14px rgba(0,0,0,.08); white-space: nowrap; }
.legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12.5px; color: var(--muted); margin-top: 6px; }
.legend i { display: inline-block; width: 18px; height: 0; border-top: 2.5px solid; vertical-align: middle; margin-right: 5px; }
.stepper { display: flex; gap: 4px; flex-wrap: wrap; margin: 8px 0; }
.stepper span { font-size: 12px; padding: 3px 9px; border-radius: 999px; background: var(--off-bg); color: var(--off); }
.stepper span.done { background: var(--ok-bg); color: var(--ok); } .stepper span.running { background: var(--info-bg); color: var(--info); }
.stepper span.failed, .stepper span.timeout { background: var(--fault-bg); color: var(--fault); } .stepper span.skipped { opacity: .5; text-decoration: line-through; }
.console { background: #141a20; color: #cfe8c0; font: 12.5px/1.5 ui-monospace, SFMono-Regular, Menlo, monospace; border-radius: 12px; padding: 12px; min-height: 120px; max-height: 260px; overflow: auto; white-space: pre-wrap; }
.badge-eng { background: var(--navy); color: #fff; font-size: 11.5px; padding: 2px 9px; border-radius: 999px; }
.note { background: var(--tile); border-radius: 10px; padding: 10px 12px; font-size: 13.5px; color: var(--muted); }
.toast { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); background: var(--text); color: #fff; padding: 10px 18px; border-radius: 999px; font-size: 14px; z-index: 1000; }
.empty { color: var(--muted); padding: 18px 0; text-align: center; }
/* page shell: footer at the bottom of short pages */
#app, .shell { min-height: 100vh; display: flex; flex-direction: column; }
.shell > main { flex: 1 0 auto; width: 100%; box-sizing: border-box; }
/* site footer: one line, like fuelcellsystems.co.uk's */
footer.site { border-top: 4px solid var(--green); background: var(--surface, var(--bg)); font-size: 12px; }
.foot-row { max-width: 1360px; margin: 0 auto; padding: 8px 20px; display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.foot-logo { height: 22px; display: block; }
.foot-links { display: flex; gap: 14px; }
.foot-links a { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }
.foot-follow { display: inline-flex; gap: 6px; }
.social { width: 22px; height: 22px; border-radius: 50%; background: var(--blue); color: #fff; display: inline-flex; align-items: center; justify-content: center; }
.social:hover { filter: brightness(1.15); text-decoration: none; }
@media (max-width: 800px) { .foot-row .rig { display: none; } }
/* sign-in / sign-out transitions */
@keyframes swooshIn { from { transform: translate(-35%, -50%); opacity: 0; } to { transform: translate(0, -50%); opacity: .55; } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.welcome .swoosh, .intro .swoosh { animation: swooshIn 1.1s cubic-bezier(.2, .7, .2, 1) both; }
.welcome main, .intro main { animation: fadeUp .5s ease-out .15s both; }
body { transition: opacity .28s ease; }
body.leaving { opacity: 0; }
@media (prefers-reduced-motion: reduce) { .welcome .swoosh, .intro .swoosh, .welcome main, .intro main { animation: none; } body { transition: none; } }
.chips.nowrap { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
.chips.nowrap .chip { white-space: nowrap; flex: 0 0 auto; }
.split > .card + .card { margin-top: 0; }

/* dark theme (Settings → Appearance); the brand colours stay */
:root[data-theme="dark"] {
  --dkgreen: #8cc63f; --blue: #3aa2f0;
  --text: #e8eaed; --muted: #a3a9b0; --line: #2c3238; --border2: #3a4148; --tile: #1c2126; --bg: #12161a; --surface: #171c21; --hover: #1f252b;
  --ok-bg: #20331a; --ok: #9fd36a; --info-bg: #10293d; --info: #7cc1f5; --warn-bg: #3a2c10; --warn: #f0c46a;
  --fault-bg: #3d1a1a; --fault: #f39a9a; --off-bg: #262c32; --off: #b5bbc1;
}
:root[data-theme="dark"] .logo img, :root[data-theme="dark"] .swoosh { filter: brightness(1.15); }
:root[data-theme="dark"] .leaflet-tile { filter: brightness(.75) contrast(1.1); }
/* user menu, sign-in, acting-as bar, collapsible sections, row actions, full-screen map */
.usermenu { position: relative; }
.usermenu > button { background: var(--surface); border: 1.5px solid var(--border2); border-radius: 999px; padding: 6px 14px; color: var(--text); cursor: pointer; }
.usermenu .menu { position: absolute; right: 0; top: 110%; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 8px 24px rgba(0,0,0,.12); min-width: 200px; z-index: 1000; padding: 6px 0; }
.usermenu .menu a, .usermenu .menu button { display: block; width: 100%; text-align: left; padding: 8px 16px; background: none; border: 0; color: var(--text); cursor: pointer; }
.usermenu .menu a:hover, .usermenu .menu button:hover { background: var(--hover); text-decoration: none; }
.acting { background: var(--warn-bg); color: var(--warn); text-align: center; padding: 6px 12px; font-size: 14px; }
.acting button { margin-left: 10px; }
.signin { max-width: 420px; margin: 60px auto; }
details.fold { border: 1px solid var(--line); border-radius: 16px; background: var(--surface); margin-bottom: 16px; }
details.fold > summary { cursor: pointer; padding: 14px 18px; font-weight: 600; color: var(--dkgreen); list-style: none; display: flex; gap: 8px; align-items: center; }
details.fold > summary::before { content: '▸'; color: var(--muted); }
details.fold[open] > summary::before { content: '▾'; }
details.fold > .body { padding: 0 18px 16px; }
.actions { display: flex; gap: 6px; justify-content: flex-end; flex-wrap: nowrap; }
.iconbtn { border: 1.5px solid var(--border2); background: var(--surface); color: var(--text); border-radius: 8px; padding: 3px 9px; cursor: pointer; font-size: 13px; }
.iconbtn.danger { color: var(--fault); }
.iconbtn:disabled { opacity: .4; cursor: default; }
.mapwrap { position: relative; }
.mapwrap .fullbtn { position: absolute; right: 10px; top: 10px; z-index: 500; }
.mapwrap:fullscreen { background: var(--bg); padding: 12px; }
.mapwrap:fullscreen .map { height: calc(100vh - 24px) !important; }
.company > summary .meta { margin-left: auto; font-weight: 400; color: var(--text); display: flex; gap: 8px; align-items: center; }
.fwicon { color: var(--blue); display: inline-flex; vertical-align: -3px; margin-left: 6px; cursor: help; }
/* portal review 2: fixed-height scrolling cards, status tiles, month card, tabs, calendar */
.scroll { height: 440px; overflow-y: auto; padding-right: 4px; }
.scroll.short { height: 300px; }
.kpis.kpis4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.chips .cnt { font-size: 12px; color: var(--muted); margin-left: 2px; }
.chip.on .cnt { color: #1d2329; }
.card.month .mrow { padding: 10px 0; border-bottom: 1px solid var(--line); }
.card.month .mrow:last-child { border-bottom: 0; }
.card.month .mrow.click { cursor: pointer; }
.card.month .mv { font-size: 26px; font-weight: 600; } .card.month .mv .unit { font-size: 15px; color: var(--muted); font-weight: 500; }
.card.month .mv.warn { color: var(--c-warn); }
.trend { font-size: 13px; font-weight: 600; margin-left: 6px; } .trend.up { color: var(--c-ok); } .trend.down { color: var(--c-warn); }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin: 18px 0 16px; position: sticky; top: 0; background: var(--bg); z-index: 5; }
.tabs a { padding: 10px 16px; color: var(--text); font-weight: 500; border-bottom: 3px solid transparent; }
.tabs a.on { color: var(--blue); border-bottom-color: var(--green); }
.tabs a:hover { text-decoration: none; color: var(--blue); }
.iconlink { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 50%; border: 1.5px solid var(--border2); background: var(--surface); color: var(--text); }
.iconlink:hover { text-decoration: none; color: var(--blue); }
.cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.cal .dow { font-size: 12px; color: var(--muted); padding: 6px 8px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--tile); }
.cal .day { min-height: 118px; padding: 6px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); overflow: hidden; }
.cal .day.other { background: var(--tile); opacity: .6; } .cal .day.today .n { background: var(--blue); color: #fff; border-radius: 999px; padding: 0 7px; }
.cal .n { font-size: 13px; font-weight: 600; display: inline-block; margin-bottom: 4px; }
.cal .ev { display: block; font-size: 12px; line-height: 1.3; padding: 2px 6px; border-radius: 6px; margin-bottom: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--text); }
.cal .ev:hover { text-decoration: none; filter: brightness(.95); }
.ev.refill { background: var(--info-bg); } .ev.visit, .ev.service { background: var(--warn-bg); } .ev.install { background: var(--ok-bg); }
.ev.runs-out { background: transparent; border: 1px dashed var(--c-warn); } .ev.done { opacity: .65; }
@media (max-width: 980px) { .kpis.kpis4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .cal .day { min-height: 70px; } }
.grid > .card { margin: 0; }

/* review 3: compact harmonised tiles; columns end level (the last card in each column stretches; a .fill list scrolls) */
.kpis.compact .kpi { padding: 10px 14px; } .kpis.compact .v { font-size: 26px; } .kpis.compact .of { font-size: 16px; color: var(--muted); font-weight: 500; }
.btn.primary { color: #1d2329; }
.split.eq > div { display: flex; flex-direction: column; }
.split.eq > div > .card.grow { flex: 1 1 auto; display: flex; flex-direction: column; }
.scroll.fill { flex: 1 1 0; height: 0; min-height: 180px; }
.split.eq { align-items: stretch; }
/* tile numbers use the map key: OK green, attention amber, fault red, offline grey */
.kpi.ok .v { color: var(--c-ok); }
.scroll.auto { height: auto; max-height: 320px; }
.allgood { display: flex; align-items: center; gap: 10px; padding: 14px 4px; color: var(--c-ok); font-weight: 500; }
.allgood svg { flex: 0 0 auto; }
.split.wideleft { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.kv dt { white-space: nowrap; }

/* reports: on screen like the portal; printed (Save as PDF) on A4 without the portal around it */
.report-head { display: flex; justify-content: space-between; align-items: center; border-bottom: 2px solid var(--green); padding-bottom: 8px; }
@media print {
  @page { size: A4; margin: 12mm; }
  header.top, footer, .noprint, .acting { display: none !important; }
  :root { --bg: #fff; --surface: #fff; --text: #1d2329; --muted: #5b6168; --line: #e3e5e8; }
  body { font-size: 11px; } main { padding: 0 !important; max-width: none !important; }
  .report .card { break-inside: avoid; border-color: #ddd; padding: 10px 12px; margin-bottom: 8px; }
  .report .kpis { grid-template-columns: repeat(4, 1fr) !important; }
  .report .grid.g2 { grid-template-columns: 1fr 1fr !important; }
  h1.page { font-size: 22px; } .kpi .v { font-size: 20px !important; }
}

/* people: functions */
.fnpicks { display: flex; flex-wrap: wrap; gap: 4px 12px; margin-top: 4px; }
.fnpick { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; white-space: nowrap; }
.fnhelp { margin-top: 10px; }
.tag.fn-admin { background: var(--chip-admin, #e8e6f7); color: #2d2e82; }
.tag.fn-manage { background: #e3f1fb; color: #005c9e; }
.tag.fn-engineer { background: #fdf0d9; color: #8a5800; }
[data-theme="dark"] .tag.fn-admin { background: #2b2c55; color: #d5d6ff; }
[data-theme="dark"] .tag.fn-manage { background: #12344d; color: #bfe3ff; }
[data-theme="dark"] .tag.fn-engineer { background: #4a3510; color: #ffe2a8; }

/* sales and help */
.product .renders { display: flex; gap: 16px; align-items: flex-end; }
.product figure { margin: 0; flex: 1; text-align: center; }
.product figure img { max-width: 100%; max-height: 220px; object-fit: contain; }
.product figcaption { font-size: 12px; color: var(--muted); }
table.compare td, table.compare th { white-space: nowrap; }
tr.pick td { background: color-mix(in srgb, var(--green, #9fd300) 14%, transparent); }
ul.tight { padding-left: 18px; margin: 6px 0; } ul.tight li { margin: 3px 0; }
pre.mail { white-space: pre-wrap; font-size: 12px; background: var(--tile); padding: 8px; border-radius: 6px; }
.iconlink.on { color: var(--blue, #0081db); }

/* two equal columns, cards the same height */
.halves { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: stretch; margin-bottom: 16px; }
.halves > .card { margin: 0; }
@media (max-width: 900px) { .halves { grid-template-columns: 1fr; } }

/* Overview fills the window: the two columns stretch to the footer and their lists scroll inside */
main:has(> .fillpage) { display: flex; flex-direction: column; }
.fillpage { flex: 1 0 auto; display: flex; flex-direction: column; }
.fillpage > .split.eq { flex: 1 0 auto; }
.tag.fn-approve { background: #e6f5d6; color: #2f5f00; }
[data-theme="dark"] .tag.fn-approve { background: #23401a; color: #cfeeb0; }

/* full-screen intro after sign-in */
.splash { position: fixed; inset: 0; z-index: 2000; background: var(--surface, #fff); display: flex; align-items: center; justify-content: center; overflow: hidden; cursor: pointer;
  animation: splashOut .6s ease-in 1.7s forwards; }
.splash-swoosh { position: absolute; left: -10%; width: 120%; top: 50%; transform: translate(-60%, -50%) scale(1.6); opacity: 0;
  animation: splashSweep 1.6s cubic-bezier(.2, .7, .2, 1) .05s forwards; }
.splash-inner { position: relative; text-align: center; animation: splashLogo .9s cubic-bezier(.2, .8, .2, 1.2) .25s both; }
.splash-logo { width: min(340px, 70vw); display: block; margin: 0 auto 14px; }
.splash-title { font-size: 26px; font-weight: 700; color: var(--blue); letter-spacing: .5px; }
.splash-sub { color: var(--muted); margin-top: 4px; animation: fadeUp .5s ease-out .8s both; }
@keyframes splashSweep { 0% { transform: translate(-60%, -50%) scale(1.6); opacity: 0; } 30% { opacity: .9; } 100% { transform: translate(0, -50%) scale(1.6); opacity: .55; } }
@keyframes splashLogo { from { opacity: 0; transform: scale(.85) translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes splashOut { to { opacity: 0; visibility: hidden; } }
.welcome main { animation-delay: 1.9s; }
textarea { font: inherit; }

/* top-bar search */
.gsearch { position: relative; }
.gsearch input[type=search] { width: 240px; padding: 8px 12px 8px 34px; border-radius: 999px; border: 1.5px solid var(--border2); background: var(--surface); color: var(--text); font: inherit; font-size: 14px; transition: width .2s; }
.gsearch input[type=search]:focus { width: 340px; outline: none; border-color: var(--blue); }
.gs-icon { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.gs-drop { position: absolute; right: 0; top: calc(100% + 6px); width: 420px; max-width: 92vw; max-height: 70vh; overflow: auto; z-index: 1500; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 12px 32px rgba(0,0,0,.14); padding: 6px; }
.gs-row { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 10px; color: var(--text); text-decoration: none; }
.gs-row.sel, .gs-row:hover { background: var(--tile); text-decoration: none; }
.gs-kind { font-size: 11px; text-transform: uppercase; letter-spacing: .4px; color: var(--muted); width: 70px; flex: 0 0 70px; }
.gs-main { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.gs-main b, .gs-main span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gs-empty, .gs-foot { padding: 8px 10px; }
.gs-foot { border-top: 1px solid var(--line); margin-top: 4px; }
.gs-row .dot { width: 9px; height: 9px; border-radius: 50%; background: #8a9097; flex: 0 0 9px; }
.gs-row .dot.ok { background: #3e9b00; } .gs-row .dot.attention, .gs-row .dot.warning { background: #d98a00; } .gs-row .dot.fault { background: #d64545; }
@media (max-width: 900px) { .gsearch input[type=search], .gsearch input[type=search]:focus { width: 150px; } }

.swoosh-clip { position: absolute; inset: 0; overflow: hidden; z-index: 0; pointer-events: none; }
.gsearch.compact input[type=search], .gsearch.compact input[type=search]:focus { width: 200px; }
.top-right select { max-width: 190px; }

/* ---------------------------------------------------------------- sidebar shell (fleet-ops review) */
.shell.side { display: block; }
.sidebar { position: fixed; inset: 0 auto 0 0; width: 236px; background: var(--surface); border-right: 1px solid var(--line); display: flex; flex-direction: column; padding: 18px 12px; z-index: 60; overflow-y: auto; }
.side-logo { display: flex; align-items: flex-end; gap: 8px; padding: 0 8px 18px; text-decoration: none; }
.side-logo img { height: 40px; }
.side-logo span { font-weight: 700; color: var(--blue); font-size: 15px; letter-spacing: .3px; padding-bottom: 2px; }
.side-label { font-size: 11px; text-transform: uppercase; letter-spacing: 1.2px; color: var(--muted); padding: 6px 12px 8px; }
.side-nav { display: flex; flex-direction: column; gap: 2px; }
.side-item { display: flex; align-items: center; gap: 11px; padding: 10px 12px; border-radius: 10px; color: var(--text); font-weight: 500; text-decoration: none; }
.side-item:hover { background: var(--tile); text-decoration: none; }
.side-item.on { background: color-mix(in srgb, var(--green) 22%, transparent); color: var(--text); font-weight: 600; }
.side-item.on svg { color: var(--dkgreen); }
.side-badge { margin-left: auto; background: #d98a00; color: #fff; border-radius: 999px; font-size: 11px; font-weight: 700; padding: 1px 7px; }
.side-bottom { margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line); }
.side-who { padding: 12px 12px 0; font-size: 12px; color: var(--muted); display: flex; flex-direction: column; gap: 2px; }
.side-who b { color: var(--text); font-size: 13px; }
.main-col { margin-left: 236px; min-height: 100vh; display: flex; flex-direction: column; }
.main-col > main { flex: 1 0 auto; width: 100%; box-sizing: border-box; }
.topbar { position: sticky; top: 0; z-index: 50; display: flex; align-items: center; gap: 10px; padding: 10px 20px; background: var(--surface); border-bottom: 1px solid var(--line); min-height: 60px; }
.topbar > *:not(.swoosh-clip) { position: relative; z-index: 1; }
.topbar .swoosh { opacity: .35; }
.topbar select.scope { max-width: 340px; font-weight: 600; }
.topbar select.scope.project { border-color: var(--blue); }
.menu-btn { display: none; }
.scrim { display: none; }
.grid.g4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.card.safety { border-left: 4px solid var(--blue); }
.summary-box { margin-top: 12px; background: var(--tile); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; font-size: 13px; }
.summary-box > div { display: flex; justify-content: space-between; gap: 12px; padding: 3px 0; }
.summary-box span { color: var(--muted); }
ol.steps { padding-left: 18px; margin: 4px 0; } ol.steps li { margin: 6px 0; }
@media (max-width: 900px) {
  .sidebar { transform: translateX(-100%); transition: transform .2s; box-shadow: 0 0 40px rgba(0,0,0,.2); }
  .menu-open .sidebar { transform: none; }
  .menu-open .scrim { display: block; position: fixed; inset: 0; background: rgba(10, 30, 40, .35); z-index: 55; }
  .main-col { margin-left: 0; }
  .menu-btn { display: inline-flex; }
  .topbar { padding: 8px 12px; flex-wrap: wrap; }
  .topbar select.scope { max-width: 170px; }
  .grid.g4 { grid-template-columns: 1fr 1fr; }
}
@media print { .sidebar, .topbar { display: none !important; } .main-col { margin-left: 0; } }

/* cases (fleet-ops review 2) */
.eyebrow { font-size: 11px; text-transform: uppercase; letter-spacing: 1.4px; color: var(--muted); font-weight: 600; }
.subtabs { display: flex; gap: 18px; border-bottom: 1px solid var(--line); margin: 10px 0 0; }
.subtab { background: none; border: 0; border-bottom: 2px solid transparent; padding: 8px 0; font: inherit; font-size: 13px; color: var(--muted); cursor: pointer; }
.subtab.on { color: var(--text); font-weight: 600; border-bottom-color: var(--blue); }
.subtab .cnt { font-size: 11px; color: var(--muted); }
.avatar { width: 26px; height: 26px; border-radius: 50%; background: color-mix(in srgb, var(--blue) 15%, var(--surface)); color: var(--blue); font-size: 11px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; flex: 0 0 26px; }
ol.timeline-steps { list-style: none; padding: 0 0 0 16px; margin: 8px 0; border-left: 2px solid var(--line); }
ol.timeline-steps li { position: relative; padding: 0 0 12px 10px; }
ol.timeline-steps li::before { content: ''; position: absolute; left: -22px; top: 4px; width: 10px; height: 10px; border-radius: 50%; background: var(--blue); border: 2px solid var(--surface); }
ol.case-timeline { list-style: none; padding: 0 0 0 16px; margin: 0; border-left: 2px solid var(--line); }
ol.case-timeline li { position: relative; padding: 0 0 14px 10px; }
ol.case-timeline li::before { content: ''; position: absolute; left: -22px; top: 4px; width: 10px; height: 10px; border-radius: 50%; background: var(--muted); border: 2px solid var(--surface); }
ol.case-timeline li.fcsl::before { background: var(--green); }
.stepper-big { display: flex; }
.stepper-big .st { flex: 1; text-align: center; position: relative; font-size: 12px; color: var(--muted); }
.stepper-big .st::before { content: ''; position: absolute; top: 13px; left: 0; right: 0; height: 2px; background: var(--line); }
.stepper-big .st:first-child::before { left: 50%; } .stepper-big .st:last-child::before { right: 50%; }
.stepper-big .st i { position: relative; display: flex; align-items: center; justify-content: center; width: 28px; height: 28px; margin: 0 auto 6px; border-radius: 50%; background: var(--tile); border: 3px solid var(--surface); font-style: normal; font-weight: 700; }
.stepper-big .st.done i { background: var(--green); color: #1d2329; } .stepper-big .st.now i { background: var(--blue); color: #fff; } .stepper-big .st.now { color: var(--text); font-weight: 600; }
.card.plan-on { border-left: 4px solid var(--green); }
.grid.g3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 700px) { .grid.g3 { grid-template-columns: 1fr; } }

.side-signout { background: none; border: 0; font: inherit; cursor: pointer; text-align: left; width: 100%; color: var(--muted); }
.side-signout:hover { color: var(--text); }

/* popups */
.modal-back { position: fixed; inset: 0; background: rgba(10, 30, 40, .4); z-index: 2000; display: flex; align-items: flex-start; justify-content: center; padding-top: 12vh; }
.modal { background: var(--surface); border-radius: 16px; padding: 20px; width: min(480px, 92vw); box-shadow: 0 24px 80px rgba(0,0,0,.25); }
.modal-list { max-height: 46vh; overflow-y: auto; border: 1px solid var(--line); border-radius: 10px; }
.modal-opt { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-bottom: 1px solid var(--line); cursor: pointer; }
.modal-opt:last-child { border-bottom: 0; } .modal-opt.on { background: color-mix(in srgb, var(--green) 18%, transparent); }
.units-t td { vertical-align: middle; }

.bulkbar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; background: color-mix(in srgb, var(--blue) 9%, var(--surface)); border: 1px solid color-mix(in srgb, var(--blue) 25%, var(--line)); border-radius: 10px; padding: 8px 12px; margin-bottom: 10px; }

.order-box { margin-top: 12px; padding: 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--tile); }

ol.timeline-steps.live li.done::before { background: var(--green); }
ol.timeline-steps.live li.now::before { background: var(--blue); box-shadow: 0 0 0 4px color-mix(in srgb, var(--blue) 25%, transparent); }
ol.timeline-steps.live li.todo::before { background: var(--line); }
ol.timeline-steps.live li.todo b { color: var(--muted); }

tr.row-new td { background: color-mix(in srgb, #d98a00 7%, transparent); }
a.kpi { text-decoration: none; color: inherit; }


.side-divider { border-top: 1px solid var(--line); margin: 14px 8px 10px; }

/* narrower sidebar; logo fills its width (Carl) */
.sidebar { width: 200px; padding: 16px 10px; }
.main-col { margin-left: 200px; }
.side-logo { padding: 0 6px 16px; }
.side-logo img { width: 100%; height: auto; }
.side-item { padding: 9px 10px; gap: 10px; }
@media (max-width: 900px) { .main-col { margin-left: 0; } }

.kpis.kpis3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

/* favourites */
.star { background: none; border: 0; cursor: pointer; color: var(--muted); padding: 4px; vertical-align: middle; line-height: 0; }
.star:hover { color: #d98a00; } .star.on { color: #f0a500; }
.side-favs .side-item span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.side-item.fav { font-weight: 500; font-size: 14px; padding: 7px 10px; }
.side-hint { font-size: 12px; color: var(--muted); padding: 2px 10px 4px; }

.modal.wide { width: min(980px, 94vw); }
.model-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: 10px; }
.model-card { border: 1px solid var(--line); border-radius: 14px; padding: 14px; display: flex; flex-direction: column; gap: 6px; background: var(--surface); }
.model-card:hover { border-color: var(--green); }
.model-name { font-weight: 700; font-size: 18px; color: var(--blue); }
.model-w { font-size: 13px; color: var(--muted); margin-top: -4px; }
.model-card dl { margin: 6px 0 10px; font-size: 12px; } .model-card dt { color: var(--muted); margin-top: 6px; } .model-card dd { margin: 0; font-weight: 500; }
@media (max-width: 800px) { .model-grid { grid-template-columns: 1fr 1fr; } }

th.sortable button { background: none; border: 0; padding: 0; font: inherit; color: inherit; text-transform: inherit; letter-spacing: inherit; cursor: pointer; display: inline-flex; gap: 4px; align-items: center; }
th.sortable .arrow { font-size: 9px; color: var(--muted); opacity: .5; } th.sortable.on .arrow { opacity: 1; color: var(--blue); } th.sortable.on { color: var(--text); }
th.sortable button:hover .arrow { opacity: 1; }

.side-item.fav { cursor: grab; } .side-item.fav.drop { box-shadow: inset 0 2px 0 var(--blue); }


.spares { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.spares label { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.order-summary { margin-top: 10px; padding: 8px 12px; background: var(--tile); border: 1px solid var(--line); border-radius: 10px; }
@media (max-width: 1100px) { .grid.g4 { grid-template-columns: 1fr 1fr; } }

.fav-ico { display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; border-radius: 7px; flex: 0 0 24px; }
.fav-ico svg { width: 15px; height: 15px; }
.fav-ico.group { background: color-mix(in srgb, var(--blue) 14%, transparent); color: var(--blue); }
.fav-ico.unit { background: color-mix(in srgb, var(--green) 25%, transparent); color: var(--dkgreen); }
.fav-ico.service { background: color-mix(in srgb, #d98a00 18%, transparent); color: #b06f00; }
.fav-ico.order { background: color-mix(in srgb, #7b5cc4 16%, transparent); color: #6a4bb3; }

/* New order: both cards reach the bottom of the window; the send row sits at the bottom of the form */
.split.fill-window { align-items: start; }
.split.fill-window > div > .card.grow, .split.fill-window > .card.grow { display: flex; flex-direction: column; }
.order-foot { padding-top: 12px; }

/* resizable columns */
th.sortable, th.resizable { position: relative; }
.col-grip { position: absolute; top: 4px; bottom: 4px; right: -3px; width: 7px; cursor: col-resize; z-index: 2; }
.col-grip::after { content: ''; position: absolute; left: 3px; top: 0; bottom: 0; width: 1px; background: var(--line); }
th:hover .col-grip::after { background: var(--blue); }
body.col-resizing, body.col-resizing * { cursor: col-resize !important; user-select: none; }

tr.picked td { background: color-mix(in srgb, var(--blue) 8%, transparent); } tr.picked td:first-child { box-shadow: inset 3px 0 0 var(--blue); }

/* Sidebar: Settings, Sign out and who you are stay pinned at the bottom; nav items a little tighter (Carl, 10 Oct 2026) */
.side-bottom { position: sticky; bottom: -16px; background: var(--surface); margin-bottom: -16px; padding-bottom: 16px; z-index: 1; }
.side-nav { gap: 1px; }
.side-item { padding-top: 7px; padding-bottom: 7px; }
.side-item.fav { padding-top: 5px; padding-bottom: 5px; }
.side-divider { margin: 10px 8px 8px; }
.side-logo { padding-bottom: 12px; }
.side-who { padding-top: 8px; }

/* Compact cards: Claim units, and the order progress strip above Your orders */
.compact-card, .whatnext-across { padding: 14px 18px; margin-bottom: 14px; }
.compact-card h2.sec { margin-bottom: 4px; }
.compact-card > p { margin: 0 0 10px; }
.claim-ways { gap: 18px; align-items: start; }
.claim-ways p { margin: 4px 0 8px; }
.whatnext-across > .row { gap: 10px; flex-wrap: wrap; align-items: baseline; }
.whatnext-across h2.sec { margin: 0; }
ol.timeline-steps.across { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 14px; border-left: 0; border-top: 2px solid var(--line); padding: 14px 0 0; margin: 14px 0 0; }
ol.timeline-steps.across li { padding: 0; }
ol.timeline-steps.across li::before { left: 0; top: -21px; }
@media (max-width: 720px) {
  ol.timeline-steps.across { grid-auto-flow: row; border-top: 0; border-left: 2px solid var(--line); padding: 0 0 0 16px; }
  ol.timeline-steps.across li { padding: 0 0 10px 10px; }
  ol.timeline-steps.across li::before { left: -22px; top: 4px; }
}

/* Settings → Your account: what each function allows */
.fn-list { list-style: none; margin: 6px 0 0; padding: 0; font-size: 12px; display: flex; flex-direction: column; gap: 3px; }

/* Common table in a stretched card: the pager sits at the bottom (Fuel deliveries, Service cases) */
.card.grow > .dt-pager { margin-top: auto !important; padding-top: 12px; }
.card.cases .tablewrap { margin-bottom: 0; }

/* Map clusters: a bubble with the count, coloured by the worst level inside (background set inline) */
.marker-cluster { background: rgba(0, 0, 0, .12); border-radius: 50%; }
.marker-cluster div { width: 30px; height: 30px; margin: 5px; border-radius: 50%; background: var(--blue); color: #fff; font: 600 12px/30px Rubik, sans-serif; text-align: center; box-shadow: 0 1px 4px rgba(0,0,0,.25); }

/* Fuel: FCSL's proposed delivery with the reconciliation */
.proposal { border-color: var(--green); }
.proposal-body { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 20px; margin-top: 10px; align-items: start; }
.recon td { padding: 6px 8px; } .recon tr.total td { border-top: 2px solid var(--line); }
.linkbtn { background: none; border: 0; padding: 0; color: var(--blue); cursor: pointer; font: inherit; text-decoration: underline; }
@media (max-width: 720px) { .proposal-body { grid-template-columns: 1fr; } }
