/* Texel Air brand layer for the dashboards.
   Built only from the official design-system tokens in brand-tokens.css
   (navy #143055 / cyan #009EE5 core; orange/red accents for status only).
   Layout/structure stays in layout.css. */

body { background: var(--surface-page); color: var(--text-body); font-family: var(--font-body); }

/* ---- header: navy bar, white brandmark top-left, two-tone rule beneath */
.app-header { background: var(--ta-navy); color: var(--text-inverse); border-bottom: 0; padding: var(--sp-3) var(--sp-6); }
.brand-logo { height: 34px; }
/* build 46 (Hayo 2026-10-08): project Grab-X logo after the Texel Air logo, a short vertical line between them */
.brand-sep { display: inline-block; width: 1px; height: 26px; background: rgba(255,255,255,.45); margin: 0 var(--sp-2); }
.brand-grabx { height: 20px; width: auto; }
.brand-name { font-family: var(--font-brand); font-weight: var(--fw-light); font-size: var(--fs-h4); letter-spacing: var(--ls-caps); text-transform: uppercase; color: var(--text-inverse); padding-left: var(--sp-3); border-left: 1px solid rgba(255,255,255,.3); }
.header-rule { height: 4px; background: var(--rule-two-tone); }
.app-nav a { color: rgba(255,255,255,.8); font-weight: var(--fw-semibold); text-transform: uppercase; letter-spacing: var(--ls-caps); font-size: var(--fs-sm); padding: var(--sp-1) 0; border-bottom: 2px solid transparent; }
.app-nav a:hover { color: var(--ta-white); }
.app-nav a.is-current { color: var(--ta-white); text-decoration: none; border-bottom-color: var(--ta-cyan); }
.app-user { font-size: var(--fs-sm); }
.app-user .muted { opacity: .75; }
.region-switch label { font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: var(--ls-eyebrow); opacity: .8; }

/* ---- controls */
button, .button, select { font: inherit; font-size: var(--fs-sm); border-radius: var(--radius-md); }
button, .button { background: var(--ta-cyan); color: var(--ta-white); border: 0; padding: var(--sp-1) var(--sp-3); font-weight: var(--fw-semibold); cursor: pointer; transition: background var(--dur-fast) var(--ease-standard), transform var(--dur-fast) var(--ease-standard); display: inline-block; }
button:hover, .button:hover { background: var(--ta-blue); color: var(--ta-white); transform: translateY(-1px); }
.app-user button { background: transparent; border: 1px solid rgba(255,255,255,.45); }
.app-user button:hover { background: rgba(255,255,255,.12); }
select { border: 1px solid var(--border-strong); padding: var(--sp-1) var(--sp-2); background: var(--ta-white); color: var(--ta-navy); }
:focus-visible { outline: none; box-shadow: var(--shadow-focus); }

/* ---- page titles: uppercase brand headings */
.app-main { padding: var(--sp-8) var(--sp-6); }
.app-main h1 { font-size: var(--fs-h2); text-transform: uppercase; letter-spacing: var(--ls-caps); margin-bottom: var(--sp-5); }
.app-main h1 .muted { font-weight: var(--fw-light); color: var(--ta-cyan); opacity: 1; }
.app-main h2 { font-size: var(--fs-h4); text-transform: uppercase; letter-spacing: var(--ls-caps); margin-bottom: var(--sp-3); }
.app-main h2 .muted, .app-main h3 .muted { font-weight: var(--fw-regular); text-transform: none; letter-spacing: 0; color: var(--text-muted); opacity: 1; font-size: var(--fs-sm); }
.app-main h3 { font-size: var(--fs-sm); text-transform: uppercase; letter-spacing: var(--ls-eyebrow); color: var(--ta-cyan); margin: var(--sp-5) 0 var(--sp-2); }
.muted { color: var(--text-muted); opacity: 1; }

/* ---- cards */
.panel { background: var(--surface-card); border: 1px solid var(--border-subtle); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); padding: var(--sp-5) var(--sp-6); }
.panel.notice { border-top: var(--accent-bar-width) solid var(--ta-cyan); }
.panel.message { max-width: 560px; margin: var(--sp-12) auto; border-top: var(--accent-bar-width) solid var(--ta-cyan); }
.panel.message p + p { margin-top: var(--sp-4); }

/* ---- KPI stat blocks: big navy figure, uppercase label, short cyan accent */
.kpis { gap: var(--sp-4); }
.kpi { background: var(--surface-card); border: 1px solid var(--border-subtle); border-radius: var(--radius-lg); box-shadow: var(--shadow-xs); padding: var(--sp-4) var(--sp-5); position: relative; }
.kpi::after { content: ""; position: absolute; left: var(--sp-5); bottom: var(--sp-3); width: 28px; height: 3px; background: var(--rule-two-tone); border-radius: var(--radius-full); }
.kpi-label { order: -1; font-size: var(--fs-xs); font-weight: var(--fw-bold); letter-spacing: var(--ls-caps); text-transform: uppercase; color: var(--text-muted); }
.kpi-value { color: var(--ta-navy); font-size: var(--fs-h2); line-height: var(--lh-snug); margin: var(--sp-1) 0; }
.kpi-sub { color: var(--text-muted); font-size: var(--fs-xs); margin-bottom: var(--sp-3); }

/* ---- tables */
table { font-size: var(--fs-sm); }
thead th { background: var(--surface-sunk); color: var(--ta-navy); font-size: var(--fs-xs); font-weight: var(--fw-bold); text-transform: uppercase; letter-spacing: var(--ls-caps); border-bottom: 2px solid var(--ta-navy); white-space: nowrap; }
th, td { border-bottom: 1px solid var(--border-subtle); }
tbody tr:hover td { background: var(--ta-cyan-100); }
tbody th[scope="row"] { font-weight: var(--fw-semibold); color: var(--ta-navy); white-space: nowrap; }
.is-alert, td.is-alert, tr.is-alert td { color: var(--status-danger); }
tr.is-inactive td { color: var(--text-muted); }

/* ---- roster grid (Duty / SIM / Admin / Leave) - text letter always shown, colour is secondary */
.roster-grid td.cell { font-weight: var(--fw-bold); font-size: var(--fs-xs); border: 2px solid var(--ta-white); border-radius: var(--radius-sm); }
.cell.group-duty  { background: var(--ta-navy);     color: var(--ta-white); }
.cell.group-sim   { background: var(--ta-cyan);     color: var(--ta-white); }
.cell.group-admin { background: var(--ta-cyan-100); color: var(--ta-navy); }
.cell.group-leave { background: var(--ta-mist);     color: var(--text-muted); }
.cell.group-none  { background: transparent; }
tr.group-leave td { color: var(--text-muted); }

/* ---- footer */
.app-footer { background: var(--surface-card); border-top: 1px solid var(--border-subtle); color: var(--text-muted); font-size: var(--fs-xs); padding: var(--sp-3) var(--sp-6); }
.freshness { color: var(--text-body); }
.freshness.is-stale { color: var(--text-strong); font-weight: var(--fw-bold); text-decoration: underline dotted; }  /* orange is reserved for the chart's arrival series */

@media (max-width: 720px) {
  .app-header, .app-main, .app-footer { padding-left: var(--sp-4); padding-right: var(--sp-4); }
  .app-main h1 { font-size: var(--fs-h3); }
  .brand-name { display: none; }
}

/* muted text inside the navy header needs an inverse tint, not slate */
.app-header .muted { color: rgba(255,255,255,.72); }
.app-main > p.small { margin: 0 0 var(--sp-5); }

/* ---- clocks (Management tab) */
.clocks { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: var(--sp-3); margin: 0 0 var(--sp-5); }
.clock { background: var(--ta-navy); color: var(--text-inverse); border-radius: var(--radius-lg); padding: var(--sp-3) var(--sp-4); display: flex; flex-direction: column; }
.clock-label { font-size: var(--fs-xs); font-weight: var(--fw-bold); letter-spacing: var(--ls-eyebrow); text-transform: uppercase; color: var(--ta-cyan-300); }
.clock-time { font-size: var(--fs-h3); font-weight: var(--fw-bold); font-variant-numeric: tabular-nums; line-height: var(--lh-snug); }
.clock-date { font-size: var(--fs-xs); opacity: .8; }
.clock.is-utc { background: var(--ta-white); color: var(--ta-navy); border: 1px solid var(--border-subtle); }
.clock.is-utc .clock-label { color: var(--ta-cyan); }

/* ---- charts (all flights = brand cyan, DHL = brand orange, dashed; recessive grid).
   Pair checked with the dataviz palette validator: lightness, chroma, CVD and
   normal-vision separation pass; both are under 3:1 on white, so every chart has
   direct end labels, a legend and a table with the same figures. */
.chart-fig { margin: 0 0 var(--sp-3); }
.chart-fig figcaption { display: flex; flex-wrap: wrap; gap: var(--sp-3); align-items: center; font-size: var(--fs-xs); font-weight: var(--fw-bold); letter-spacing: var(--ls-caps); text-transform: uppercase; color: var(--text-muted); margin-bottom: var(--sp-2); }
.chart-legend { display: inline-flex; gap: var(--sp-4); text-transform: none; letter-spacing: 0; font-weight: var(--fw-semibold); color: var(--text-body); }
.legend-item::before { content: ""; display: inline-block; width: 18px; height: 0; border-top: 3px solid currentColor; vertical-align: middle; margin-right: var(--sp-1); }
.legend-item.series-all::before { border-top-color: var(--ta-cyan); }
.legend-item.series-dhx::before { border-top: 3px dashed var(--ta-orange); }
.chart { width: 100%; max-width: 760px; height: auto; display: block; }
.chart-grid { stroke: var(--ta-mist); stroke-width: 1; }
.chart-axis { fill: var(--text-muted); font-size: 12px; font-family: var(--font-body); }
.chart-line { fill: none; stroke: var(--ta-navy); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.chart-dot { fill: var(--ta-navy); stroke: var(--ta-white); stroke-width: 2; }
.chart-hit { fill: transparent; }
.chart-pt:hover .chart-dot { r: 5; }
.chart-label { fill: var(--text-strong); font-size: 13px; font-weight: 700; font-family: var(--font-body); }
.series-all .chart-line { stroke: var(--ta-cyan); }
.series-all .chart-dot  { fill: var(--ta-cyan); }
.series-dhx .chart-line { stroke: var(--ta-orange); stroke-dasharray: 6 4; }
.series-dhx .chart-dot  { fill: var(--ta-orange); }
/* build 85 (#91): monthly columns with a ratio line on its own axis (Block hours trend) */
.seg-bh { fill: var(--ta-cyan); }
.chart-barline .chart-line { stroke: var(--ta-orange); }
.chart-barline .chart-dot { fill: var(--ta-orange); }
.chart-barline .chart-axis-line { fill: var(--ta-orange); }
tr.is-total td { font-weight: var(--fw-bold); color: var(--text-strong); border-top: 2px solid var(--ta-navy); }
.kpis-headline { margin-bottom: var(--sp-3); }
.kpis-headline .kpi { border-top: var(--accent-bar-width) solid var(--ta-cyan); }
.kpis-headline .kpi-value { font-size: var(--fs-h1); }
td.small { font-size: var(--fs-xs); }
td.nowrap { white-space: nowrap; }
.flights td.time { line-height: 1.25; }
.flights .tz { font-size: var(--fs-xs); color: var(--text-muted); }
tr.is-done td, tr.is-done th { color: var(--text-muted); }
.status { font-weight: var(--fw-semibold); }
.status.is-live { color: var(--ta-cyan); }
.status.is-late { color: var(--status-danger); }
.badge { display: inline-block; font-size: var(--fs-xs); font-weight: var(--fw-bold); letter-spacing: var(--ls-caps); padding: 0 var(--sp-1); border-radius: var(--radius-sm); vertical-align: middle; }
.badge-edto { background: var(--ta-navy); color: var(--ta-white); }
.dq-explain p { margin: 0 0 var(--sp-2); max-width: 980px; }
tr.dq-flown th, tr.dq-flown td { background: var(--ta-cyan-100); }
details.dq-group { border: 1px solid var(--border-subtle); border-radius: var(--radius-md); margin: var(--sp-2) 0; padding: var(--sp-2) var(--sp-3); }
details.dq-group summary { cursor: pointer; font-weight: var(--fw-semibold); color: var(--text-strong); }
details.dq-group[open] summary { margin-bottom: var(--sp-2); }

/* ---- header selectors: auto-apply with JS, so the Show button is only needed without it */
.js .js-hide { display: none; }
.codes-switch { margin-left: var(--sp-3); }
.codes-table td.code { font-variant-numeric: tabular-nums; font-weight: var(--fw-semibold); }

/* ---- bar charts (explorer, CO2): solid brand navy = recorded, hatched = estimated */
.bar { fill: var(--ta-navy); }
.bar-est { fill: url(#hatch); }
.bar-est-bg { fill: var(--ta-cyan-100); }
.bar-est-line { stroke: var(--ta-cyan); stroke-width: 3; }
a .bar-g:hover .bar { fill: var(--ta-cyan); }
.bar-val { fill: var(--text-strong); font-weight: 600; }
.legend-item.legend-solid::before { border-top: 10px solid var(--ta-navy); }
.legend-item.legend-est::before { border-top: 10px solid var(--ta-cyan); opacity: .6; }

/* ---- explorer */
.xp-filters { display: flex; flex-wrap: wrap; gap: var(--sp-3) var(--sp-4); align-items: flex-end; margin-bottom: var(--sp-4); }
.xp-filters label { display: flex; flex-direction: column; gap: 2px; font-size: var(--fs-xs); font-weight: var(--fw-bold); text-transform: uppercase; letter-spacing: var(--ls-caps); color: var(--text-muted); }
.xp-filters input[type=date] { font: inherit; font-size: var(--fs-sm); border: 1px solid var(--border-strong); border-radius: var(--radius-md); padding: var(--sp-1) var(--sp-2); }
.xp-crumbs { display: flex; flex-wrap: wrap; gap: var(--sp-2); align-items: center; margin: 0 0 var(--sp-3); font-size: var(--fs-sm); }
.xp-chip { display: inline-flex; gap: var(--sp-1); align-items: center; background: var(--ta-cyan-100); color: var(--ta-navy); border-radius: 999px; padding: 2px var(--sp-3); text-decoration: none; font-weight: var(--fw-semibold); }
.xp-chip:hover { background: var(--ta-cyan); color: var(--ta-white); }
.xp-chip .x { font-weight: var(--fw-bold); }
.xp-groupby { display: flex; flex-wrap: wrap; gap: var(--sp-1); margin: 0 0 var(--sp-3); }
.xp-groupby a { padding: var(--sp-1) var(--sp-3); border: 1px solid var(--border-strong); border-radius: var(--radius-md); text-decoration: none; font-size: var(--fs-sm); color: var(--ta-navy); }
.xp-groupby a.is-current { background: var(--ta-navy); color: var(--ta-white); border-color: var(--ta-navy); }
td a.drill { font-weight: var(--fw-semibold); }
.basis-estimated { color: var(--text-muted); font-style: italic; }
a.kpi-link { text-decoration: none; color: inherit; transition: border-color var(--dur-fast) var(--ease-standard), transform var(--dur-fast) var(--ease-standard); }
a.kpi-link:hover { border-color: var(--ta-cyan); transform: translateY(-1px); }
a.kpi-link .kpi-sub { color: var(--ta-cyan); }
.app-main h2 a.small { font-size: var(--fs-sm); text-transform: none; letter-spacing: 0; font-weight: var(--fw-semibold); margin-left: var(--sp-2); }

/* ---- CO2 page (design from the CO2 preview): leaf green accent on the brand navy/cyan system */
:root { --co2: #629e00; --co2-l: #69ab01; --co2-100: #e6f1d3; }
.co2-title { display: flex; align-items: center; gap: var(--sp-2); }
.leaf { width: 30px; height: 30px; }
.leaf-title { width: 38px; height: 38px; flex: none; }
.co2-sub { color: var(--text-muted); font-size: var(--fs-sm); margin: calc(-1 * var(--sp-3)) 0 var(--sp-4); }
.chip-row { display: flex; flex-wrap: wrap; gap: var(--sp-3) var(--sp-5); align-items: flex-start; margin: 0 0 var(--sp-4); }
.chips { display: flex; flex-wrap: wrap; gap: var(--sp-2); margin-bottom: var(--sp-3); }
.chip-row .chips { margin-bottom: 0; }
.chip { display: inline-block; border: 1px solid var(--border-subtle); background: var(--ta-white); color: var(--ta-navy); padding: 5px 14px; border-radius: 999px;
        font-weight: var(--fw-semibold); font-size: var(--fs-sm); text-decoration: none; cursor: pointer; list-style: none; }
.chip:hover { border-color: var(--ta-cyan); color: var(--ta-navy); }
.chip.is-on { background: var(--ta-navy); border-color: var(--ta-navy); color: var(--ta-white); }
.chip-link { color: var(--ta-cyan); border-color: var(--ta-cyan-100); }
.chip-custom summary::-webkit-details-marker { display: none; }
.chip-custom[open] form { margin-top: var(--sp-2); }
.co2-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(165px, 1fr)); gap: var(--sp-3); }
.co2-card { position: relative; background: var(--ta-white); border: 1px solid var(--border-subtle); border-radius: 10px;
            box-shadow: 0 1px 2px rgba(10,28,51,.06), 0 2px 8px rgba(10,28,51,.05); padding: var(--sp-4) var(--sp-5); min-width: 0; }
.co2-kpi { display: flex; flex-direction: column; border-top: 4px solid var(--ta-cyan); }
.co2-kpi.has-leaf { border-top-color: var(--co2); }
.co2-kpi .leaf { position: absolute; top: 10px; right: 10px; }
.co2-kpi .l { font-size: var(--fs-xs); letter-spacing: .08em; text-transform: uppercase; color: var(--text-muted); font-weight: var(--fw-semibold); padding-right: 34px; }
.co2-kpi .v { font-size: 30px; font-weight: var(--fw-bold); color: var(--ta-navy); line-height: 1.15; margin-top: 4px; font-variant-numeric: tabular-nums; }
.co2-kpi .v small { font-size: 15px; font-weight: var(--fw-semibold); color: var(--text-muted); }
.co2-kpi .s { font-size: var(--fs-xs); color: var(--text-muted); }
.co2-grid2 { display: grid; grid-template-columns: 1.4fr 1fr; gap: var(--sp-3); margin-top: var(--sp-3); }
@media (max-width: 900px) { .co2-grid2 { grid-template-columns: 1fr; } }
.co2-sec { margin-top: var(--sp-3); }
.co2-page h2 { font-size: var(--fs-sm); letter-spacing: .06em; margin-bottom: var(--sp-3); }
.co2-h2-gap { margin-top: var(--sp-5); }
.co2-page table { font-size: var(--fs-sm); }
.co2-page details summary { cursor: pointer; color: var(--ta-cyan); font-weight: var(--fw-semibold); font-size: var(--fs-sm); margin-top: var(--sp-2); }
.co2-legend { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: var(--fs-sm); margin-bottom: 6px; }
.co2-legend span { display: inline-flex; align-items: center; gap: 6px; }
.sw { width: 14px; height: 14px; border-radius: 3px; display: inline-block; }
.sw-solid { background: var(--co2); }
.sw-est { background: repeating-linear-gradient(45deg, var(--co2-l) 0 2px, var(--co2-100) 2px 6px); }
.co2-page .bar { fill: var(--co2); }
.co2-page .bar-est-bg { fill: var(--co2-100); }
.co2-page .bar-est-line { stroke: var(--co2-l); stroke-width: 2.4; }
.co2-page a .bar-g:hover .bar { fill: var(--co2-l); }
.chart-base { stroke: #b9c6d3; }
th.bar-col, td.bar-col { width: 14%; min-width: 60px; }
.minibar { width: 100%; height: 6px; display: block; margin-top: 7px; }
.minibar-bg { fill: var(--ta-mist); }
.minibar-fg { fill: var(--co2); }
.q { display: inline-block; font-size: 11px; font-weight: var(--fw-bold); letter-spacing: .05em; padding: 1px 7px; border-radius: 999px; }
.q.hi { background: #e3f4ec; color: #146b43; } .q.mid { background: var(--ta-cyan-100); color: #004f78; } .q.lo { background: #fdebdc; color: #8a3b08; }
.co2-method li { font-size: var(--fs-sm); margin-bottom: 4px; }
.co2-method ul { padding-left: 18px; }
.co2-page code { background: var(--ta-mist); padding: 1px 5px; border-radius: 4px; font-size: var(--fs-xs); }

/* Management widget */
.co2-widget { text-decoration: none; color: inherit; display: flex; flex-direction: column; border-top: 4px solid var(--co2); }
.co2-widget:hover { border-color: var(--co2); box-shadow: 0 2px 12px rgba(10,28,51,.12); }
.co2-widget .leaf { position: absolute; top: 10px; right: 10px; }
.spark { width: 100%; height: 44px; margin-top: var(--sp-2); }
.spark-line { fill: none; stroke: var(--co2); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.spark-dot { fill: var(--co2); stroke: var(--ta-white); stroke-width: 2; }
.co2-widget .go { margin-top: var(--sp-1); color: var(--ta-cyan); font-weight: var(--fw-semibold); font-size: var(--fs-sm); }
.fcc-grid { display: grid; grid-template-columns: minmax(260px, 1.3fr) repeat(3, minmax(165px, 1fr)); gap: var(--sp-3); }
@media (max-width: 900px) { .fcc-grid { grid-template-columns: 1fr 1fr; } }

/* ---- top bar stays in view while scrolling */
.app-top { position: sticky; top: 0; z-index: 50; box-shadow: 0 2px 8px rgba(10,28,51,.18); }
.back-link { margin: 0 0 var(--sp-2); font-size: var(--fs-sm); }
.back-link a { font-weight: var(--fw-semibold); text-decoration: none; }

/* ---- collapsible flight days (collapsed by default; the open/closed choice is remembered per browser) */
details.day-fold { border: 1px solid var(--border-subtle); border-radius: var(--radius-md); margin: 0 0 var(--sp-3); background: var(--ta-white); }
details.day-fold > summary { list-style: none; cursor: pointer; display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-2) var(--sp-4); padding: var(--sp-3) var(--sp-4); }
details.day-fold > summary::-webkit-details-marker { display: none; }
details.day-fold > summary::before { content: ""; width: 8px; height: 8px; border-right: 2px solid var(--ta-cyan); border-bottom: 2px solid var(--ta-cyan); transform: rotate(-45deg); transition: transform var(--dur-fast) var(--ease-standard); flex: none; }
details.day-fold[open] > summary::before { transform: rotate(45deg); }
details.day-fold > summary h3 { margin: 0; }
details.day-fold > summary:hover { background: var(--ta-cyan-100); }
details.day-fold[open] > summary { border-bottom: 1px solid var(--border-subtle); }
details.day-fold .table-wrap { padding: 0 var(--sp-2) var(--sp-2); }
.fold-counts { display: inline-flex; flex-wrap: wrap; gap: var(--sp-2); }
.fold-count { background: var(--surface-sunk); color: var(--ta-navy); border-radius: 999px; padding: 1px 10px; font-size: var(--fs-xs); font-weight: var(--fw-semibold); }
.fold-hint { margin-left: auto; color: var(--ta-cyan); font-size: var(--fs-sm); font-weight: var(--fw-semibold); }
details.day-fold[open] .fold-hint { display: none; }
.status.is-cnl { color: var(--text-muted); text-decoration: line-through; }
/* Monthly OTP report cards (build 23) */
.otp-rep-nav { display: inline-flex; flex-wrap: wrap; gap: 2px; margin: 0 0 var(--sp-3); border: 1px solid var(--border-subtle); border-radius: 10px; padding: 3px; }
.otp-rep-nav a { padding: 4px 10px; border-radius: 7px; text-decoration: none; color: var(--text-default); font-weight: var(--fw-semibold); }
.otp-rep-nav a.is-on { background: var(--ta-navy); color: var(--ta-white); }
.otp-rep-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); gap: var(--sp-3); }
.otp-rep-card { display: flex; flex-direction: column; gap: var(--sp-2); }
.otp-rep-card h3 { margin: 0; font-size: var(--fs-sm); letter-spacing: var(--ls-caps); text-transform: uppercase; }
.otp-rep-big span:first-child { font-size: 2.6rem; font-weight: var(--fw-bold); line-height: 1; color: var(--text-strong, inherit); margin-right: var(--sp-2); }
.otp-rep-big small { font-size: 1.2rem; }
.otp-rep-facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-2); margin: 0; }
.otp-rep-facts div { background: var(--surface-subtle, rgba(127,127,127,.08)); border-radius: var(--radius-sm); padding: 6px 8px; }
.otp-rep-facts dt { font-size: var(--fs-xs); color: var(--text-muted); }
.otp-rep-facts dd { margin: 0; font-weight: var(--fw-bold); font-size: 1.1rem; }
.otp-rep-groups { margin: 0; padding-left: 1.1em; }
.otp-rep-tails { display: flex; flex-wrap: wrap; gap: 4px 12px; margin: 0; color: var(--text-muted); }
.otp-rep-text { white-space: pre-wrap; font-size: var(--fs-xs); background: var(--surface-subtle, rgba(127,127,127,.08)); padding: 8px; border-radius: var(--radius-sm); margin: 6px 0 0; }
/* OTP widgets strip (build 24) */
.otp-strip { margin: 0 0 var(--sp-4); }
.otp-strip-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--sp-2); margin-bottom: var(--sp-2); }
.otp-strip-head h2 { margin: 0; }
.otp-strip-head .otp-rep-nav { margin: 0; }
.otp-widgets { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 170px), 1fr)); gap: var(--sp-3); }
.otp-w { display: flex; flex-direction: column; gap: 2px; padding: var(--sp-3) var(--sp-4); background: var(--surface-card); border: 1px solid var(--border-subtle);
         border-top: var(--accent-bar-width, 4px) solid var(--w, var(--ta-cyan)); border-radius: var(--radius-lg); box-shadow: var(--shadow-xs); text-decoration: none; color: inherit; }
.otp-w:hover { box-shadow: var(--shadow-sm, 0 2px 8px rgba(0,0,0,.12)); }
.otp-w-good { --w: var(--status-success, #1f9d6b); } .otp-w-warn { --w: var(--status-warning, #e8a21c); } .otp-w-crit { --w: var(--status-danger, #d2393b); } .otp-w-info { --w: var(--ta-cyan); }
.otp-w-label { font-size: var(--fs-xs); font-weight: var(--fw-bold); letter-spacing: var(--ls-caps); text-transform: uppercase; color: var(--text-muted); }
.otp-w-value { font-size: 2.1rem; font-weight: var(--fw-bold); line-height: 1.1; }
.otp-w-value small { font-size: 1rem; }
.otp-w-sub { font-size: var(--fs-xs); color: var(--text-muted); }
.otp-strip-note { margin: var(--sp-2) 0 0; }
.otp-detail h3 { margin-top: var(--sp-4); }
.otp-rep-card { scroll-margin-top: 90px; }
.otp-rep-card:target { outline: 2px solid var(--ta-cyan); }

/* SMT duty calendar on My team (build 29): HR Chronicle legend colours, light and dark */
.smt-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--sp-2); }
.smt-head h2 { margin: 0; }
.smt-grid { border-collapse: collapse; font-size: var(--fs-xs); }
.smt-grid th, .smt-grid td { padding: 2px 3px; text-align: center; border: 1px solid var(--border, rgba(127,127,127,.25)); min-width: 1.9em; }
.smt-grid th.smt-name { text-align: left; white-space: nowrap; position: sticky; left: 0; background: var(--surface, var(--bg)); z-index: 1; min-width: 10em; }
.smt-grid th.smt-day { font-weight: var(--fw-regular); line-height: 1.15; }
.smt-grid th.is-we, .smt-grid td.smt-w { background: color-mix(in srgb, var(--c-muted, #999) 22%, transparent); color: var(--text-muted); }
.smt-grid th.is-hol { box-shadow: inset 0 -3px 0 var(--c-info, #2a7ab0); }
.smt-grid .is-today { outline: 2px solid var(--ta-cyan, #19a7ce); outline-offset: -2px; }
.smt-grid tr.smt-can td[data-m] { cursor: pointer; }
.smt-grid td.is-pick { outline: 2px solid var(--ta-orange, #e8701c); outline-offset: -2px; }
.smt-c { display: inline-block; min-width: 1.6em; text-align: center; border-radius: 3px; font-weight: var(--fw-semibold); }
.smt-l { background: color-mix(in srgb, #2e9d4f 30%, transparent); color: var(--c-good-ink, #1d6b34); font-weight: var(--fw-semibold); }
.smt-v { background: color-mix(in srgb, #3c8fd6 30%, transparent); color: var(--c-info-ink, #1f5c91); font-weight: var(--fw-semibold); }
.smt-h { background: color-mix(in srgb, #3fc5d4 26%, transparent); color: var(--c-info-ink, #1f5c91); font-weight: var(--fw-semibold); }
.smt-p { background: color-mix(in srgb, #f2c200 40%, transparent); color: var(--c-warn-ink, #7a5a00); font-weight: var(--fw-semibold); }
.smt-legend .smt-c { margin-right: 2px; }
.smt-form { display: flex; flex-wrap: wrap; gap: var(--sp-2) var(--sp-3); align-items: flex-end; margin-top: var(--sp-3); }
.smt-form h3 { flex-basis: 100%; margin: 0; }
.smt-form label { display: flex; flex-direction: column; font-size: var(--fs-xs); gap: 2px; }
.smt-form label.smt-chk { flex-direction: row; align-items: center; gap: 4px; }
.smt-members input { font: inherit; }
.smt-members input.smt-num { width: 5em; }
/* build 31: leave calendar (HR Chronicle) - My team grid and My dashboard "My leave" */
.lv-annual { --lv: #3c8fd6; } .lv-sick { --lv: #d6455d; } .lv-business { --lv: #2e9d8f; } .lv-unpaid { --lv: #9a7b3c; } .lv-other { --lv: #8b5cf6; }
.lv-annual, .lv-sick, .lv-business, .lv-unpaid, .lv-other { background: color-mix(in srgb, var(--lv) 32%, transparent); color: var(--text-body); font-weight: var(--fw-semibold); }
.lv-hol { background: color-mix(in srgb, #3fc5d4 26%, transparent); color: var(--c-info-ink, #1f5c91); }
.lv-pend { background: repeating-linear-gradient(135deg, color-mix(in srgb, var(--lv, #3c8fd6) 34%, transparent) 0 3px, transparent 3px 6px); outline: 1px dashed color-mix(in srgb, var(--lv, #3c8fd6) 70%, transparent); outline-offset: -1px; }
.lv-half { background: linear-gradient(135deg, color-mix(in srgb, var(--lv) 38%, transparent) 50%, transparent 50%); }
.lv-dot { display: inline-block; width: .8em; height: .8em; border-radius: 50%; vertical-align: -1px; }
.lv-dot.lv-pend { outline-offset: 0; }
.lv-grid td.num, .lv-grid th.num { min-width: 3em; }
.lv-now h3 { margin-bottom: var(--sp-1); }
.lv-now ul.plain li { margin: 2px 0; }
.ia-chip.lv-chip { display: block; border-radius: 3px; padding: 0 3px; font-size: var(--fs-xs); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ia-day.is-we { background: color-mix(in srgb, var(--c-muted, #999) 14%, transparent); }
.ia-day.is-hol .ia-dn { color: var(--c-info-ink, #1f5c91); font-weight: var(--fw-semibold); }
/* build 32: SMT calendar - other leave, and days filled from HR Chronicle */
.smt-a { background: color-mix(in srgb, #8b5cf6 26%, transparent); color: var(--text-body); font-weight: var(--fw-semibold); }
.smt-grid td.smt-hr, .smt-c.smt-hr { text-decoration: underline dotted; text-underline-offset: 2px; font-style: italic; }
/* build 77 (#52): client split inside a country OTP card */
.otp-rep-clients { width: 100%; margin: 0; }
.otp-rep-clients th, .otp-rep-clients td { padding: 2px 6px; }
/* build 100 (#95): Download CSV above tables marked data-csv */
.csv-bar { display: flex; justify-content: flex-end; margin: 0 0 4px; }
.csv-btn { font-size: var(--fs-xs); padding: 2px 10px; background: var(--surface-card); color: var(--text-strong); border: 1px solid var(--border-subtle); border-radius: 6px; }
.csv-btn:hover { background: var(--surface-sunk); }
/* build 100b: sign-in start page and sign-in errors */
.start-page { text-align: left; }
.start-logo { display: block; max-width: 240px; height: auto; margin: 0 0 var(--sp-4); }
:root[data-theme="dark"] .start-logo { content: url("/assets/brand/texel-air-logo-white.png"); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .start-logo { content: url("/assets/brand/texel-air-logo-white.png"); } }
.start-btn { padding: var(--sp-2) var(--sp-5); font-size: var(--fs-md, 1rem); }
.start-tips { padding-left: 1.2em; color: var(--text-muted); }
.start-tips li { margin: 4px 0; }

/* ---- build 101 (Hayo 7 Nov): phone header - one slim row (logos + Menu); everything else in a full-height panel. Desktop unchanged. */
.hdr-rest { display: contents; }
.hdr-menu { display: none; }
@media (max-width: 720px) {
  .app-header { flex-wrap: nowrap; padding-top: var(--sp-2); padding-bottom: var(--sp-2); }
  .brand-logo { height: 28px; }
  .hdr-menu { display: inline-flex; align-items: center; gap: 6px; margin-left: auto; background: transparent; border: 1px solid rgba(255,255,255,.45); color: var(--ta-white);
    padding: 6px 12px; border-radius: var(--radius-md); font-weight: var(--fw-semibold); }
  .hdr-menu:hover { background: rgba(255,255,255,.12); transform: none; }
  .hdr-menu svg { width: 18px; height: 18px; stroke: currentColor; stroke-width: 2; fill: none; stroke-linecap: round; }
  .hdr-rest { display: none; }
  .hdr-open .hdr-rest { display: flex; flex-direction: column; align-items: stretch; gap: var(--sp-4); position: fixed; left: 0; right: 0; bottom: 0; top: var(--hdr-panel-top, 56px);
    z-index: 1200; background: var(--ta-navy); padding: var(--sp-4) var(--sp-4) calc(var(--sp-6) + env(safe-area-inset-bottom, 0px)); overflow-y: auto; overscroll-behavior: contain;
    box-shadow: 0 14px 40px rgba(5, 14, 26, .35); }
  .hdr-open .hdr-rest .app-nav { display: flex; flex-direction: column; align-items: stretch; gap: 2px; }
  .hdr-open .hdr-rest .app-nav > a, .hdr-open .hdr-rest .nav-fold > summary { display: block; padding: 10px 4px; font-size: var(--fs-body); border-bottom: 1px solid rgba(255,255,255,.12); }
  .hdr-open .hdr-rest .nav-fold .nav-panel { position: static; transform: none; width: auto; max-height: none; margin: 6px 0 8px; grid-template-columns: 1fr 1fr; box-shadow: none; }
  .hdr-open .hdr-rest .region-switch { display: flex; align-items: center; gap: var(--sp-2); }
  .hdr-open .hdr-rest .app-user { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-3); }
  .hdr-open .hdr-rest .nav-search { flex: 1 1 100%; order: -1; }
  .hdr-open .hdr-rest .nav-search input { width: 100%; }
  .hdr-open .hdr-rest .gear .gear-panel { position: static; max-height: none; }
  .hdr-open body, html.hdr-open { overflow: hidden; }
}
