/* ── Priority One Track · app-specific rules on top of the shared Octa design system ───────────────
   /app/app.css, /app/workspace.css and /app/theme-vivid.css are copied verbatim from Octa Reports v2 so both
   applications share one design language. This file only adds what Track has and Reports doesn't. */

/* Brand: priority/track in the sidebar */
.brand-product { font-weight: 600; }

/* Pages: every page lives in #content; the active one eases in */
.page { animation: pageIn .26s cubic-bezier(.2,.7,.2,1) both; }
.page.hide { display: none !important; }
.hide { display: none !important; }

/* Status pills: round, dot-led, one tone per status (same tones as Reports) */
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px 3px 7px; border-radius: 999px; border: 1px solid var(--t-bd); background: var(--t-bg); color: var(--t-fg); font-size: 10.5px; font-weight: 700; letter-spacing: .02em; white-space: nowrap; }
.pill::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--t-dot); flex: 0 0 auto; }
.mono { font-variant-numeric: tabular-nums; font-weight: 600; }
.tbl td.num, .tbl th.num { text-align: right; }

/* KPI tiles that act as filters */
.kpi { cursor: pointer; }

/* Needs-attention groups */
.alert-grp { border-left: 4px solid var(--t-dot, var(--oc-line)); border-radius: 0 8px 8px 0; background: #fbfcf9; padding: 8px 12px 8px 12px; margin: 0 0 10px; }
.alert-grp:last-child { margin-bottom: 0; }
.alert-grp.a-faulty { --t-dot: #dc3a2c; } .alert-grp.a-long { --t-dot: #f0a800; } .alert-grp.a-noscan { --t-dot: #6d8296; } .alert-grp.a-service { --t-dot: #2dad14; }
.alert-grp h3 { font-size: 12.5px; font-weight: 700; margin: 0 0 4px; display: flex; gap: 7px; align-items: center; color: var(--oc-ink); }
.alert-grp h3 .cnt { background: #183a21; color: #d6efb6; border-radius: 999px; padding: 0 7px; font-size: 10px; line-height: 16px; }
.alert-grp ul { list-style: none; margin: 0; padding: 0; font-size: 12px; max-height: 180px; overflow: auto; }
.alert-grp li { padding: 3px 0; display: flex; gap: 10px; justify-content: space-between; align-items: baseline; }
.alert-grp li span:last-child { color: var(--oc-muted); text-align: right; white-space: nowrap; }
.okline { display: flex; align-items: center; gap: 8px; background: #e3f3d8; color: #1f6b12; border-radius: 8px; padding: 10px 12px; font-weight: 600; font-size: 12.5px; }
.okline .icon { width: 15px; height: 15px; }
a.unit { color: var(--oc-green-dk); font-weight: 650; text-decoration: none; font-variant-numeric: tabular-nums; cursor: pointer; }
a.unit:hover { text-decoration: underline; }
.qrlink { color: var(--oc-green-dk); text-decoration: none; font-size: 12px; } .qrlink:hover { text-decoration: underline; }

/* Map */
#map { height: 400px; border-radius: 8px; border: 1px solid var(--oc-line); z-index: 0; }
.legend { display: flex; gap: 12px; flex-wrap: wrap; font-size: 11px; color: var(--oc-muted); margin-top: 8px; }
.legend i { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 5px; vertical-align: -1px; }
.leaflet-popup-content { font-size: 12px; } .leaflet-container { font-family: var(--oc-font); }

/* Utilisation bar */
.util { display: flex; align-items: center; gap: 8px; } .util .bar { flex: 1; height: 6px; background: #e6ebe3; border-radius: 3px; min-width: 60px; overflow: hidden; } .util .bar i { display: block; height: 100%; background: #2dad14; border-radius: 3px; }

/* Settings row inside the alerts panel */
.settings-row { display: flex; gap: 12px; flex-wrap: wrap; align-items: flex-end; }
.settings-row .field { margin: 0; width: 170px; }

/* Messages under forms */
.msg { padding: 9px 12px; border-radius: 8px; font-size: 12.5px; margin: 10px 0 0; border: 1px solid transparent; font-weight: 500; }
.msg.ok { background: #e3f3d8; color: #1f6b12; border-color: #c4e2b1; } .msg.err { background: #fde4e1; color: #a8261d; border-color: #f3c4bf; }

/* Unit dialog: key/value grid and the edit section */
.unit-kv { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px 16px; font-size: 12.5px; background: #f6f9f2; border: 1px solid #e6ecdd; border-radius: 10px; padding: 12px 14px; margin-bottom: 14px; }
.unit-kv b { display: block; font-size: 10px; text-transform: uppercase; letter-spacing: .05em; color: var(--oc-muted); margin-bottom: 2px; }
.unit-kv .span { grid-column: 1 / -1; }
details.edit summary { cursor: pointer; font-weight: 650; color: var(--oc-green-dk); font-size: 12.5px; list-style: none; display: inline-flex; align-items: center; gap: 6px; }
details.edit summary::-webkit-details-marker { display: none; }
details.edit summary .icon { width: 14px; height: 14px; }
details.edit[open] summary { margin-bottom: 10px; }
.edit-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 12px; }

/* Textarea in the shared input style */
textarea.input { min-height: 80px; resize: vertical; font-family: var(--oc-font); }
.cf input.input { margin-top: 12px; font-size: 18px; letter-spacing: .3em; text-align: center; font-weight: 700; }

/* Login (shared access layout) — Track copy */
.access-brand b { font-weight: 450; }

/* Field-staff list pills in the staff table */
.tbl .row-btns { display: inline-flex; gap: 4px; white-space: nowrap; }

@media (max-width: 860px) { .unit-kv, .edit-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .unit-kv, .edit-grid { grid-template-columns: 1fr; } #map { height: 300px; } }
/* Five KPI tiles on the dashboard; lists dim while refreshing */
#tiles { grid-template-columns: repeat(5, minmax(0, 1fr)); }
@media (max-width: 1100px) { #tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 640px) { #tiles { grid-template-columns: 1fr 1fr; } }
.is-loading { opacity: .55; transition: opacity .15s; pointer-events: none; }

/* Dashboard top row: both panels share the map's height; an empty attention list centres its state */
.dash-top { align-items: stretch; }
.attn-panel { display: flex; flex-direction: column; }
.attn-panel #alerts { flex: 1; }
.attn-panel #alerts.is-empty { display: flex; align-items: center; justify-content: center; }
.attn-panel #alerts.is-empty .empty-state { padding: 20px; }
.attn-panel #alerts .loading { min-height: 0; height: 100%; }
@media (max-width: 1200px) { .attn-panel #alerts.is-empty { min-height: 220px; } }
/* Dashboard bottom row: both panels share one height; an empty table centres its state in the spare space */
.dash-bottom { align-items: stretch; }
.dash-bottom .panel { display: flex; flex-direction: column; }
.dash-bottom .panel .tbl:has(.empty-state) { flex: 1; }
.dash-bottom .panel .tbl:not(:has(.empty-state)) { flex: 0 0 auto; }
.dash-bottom .tbl td:has(.empty-state) { height: 100%; vertical-align: middle; }
/* Option-card tones the shared stylesheet doesn't define */
.jt-card.tone-teal { --tone-bg: #c9efe6; --tone-fg: #0b5c52; } .jt-card.tone-slate { --tone-bg: #e2e8ec; --tone-fg: #3d4f60; }
.jt-card.tone-teal .jt-ic, .jt-card.tone-slate .jt-ic { background: var(--tone-bg); color: var(--tone-fg); }

/* ── Rentals, rates and QR (4 Oct 2026) ── */
#tiles { grid-template-columns: repeat(6, minmax(0, 1fr)); }
@media (max-width: 1400px) { #tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
#rnTiles { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1000px) { #rnTiles { grid-template-columns: 1fr 1fr; } }
.unit-top { display: grid; grid-template-columns: minmax(0, 1fr) 190px; gap: 14px; align-items: start; margin-bottom: 14px; }
.unit-top .unit-kv { margin-bottom: 0; }
.qr-card { border: 1px solid #e6ecdd; border-radius: 10px; background: #fff; padding: 12px; text-align: center; }
.qr-card img { display: block; width: 150px; height: 150px; margin: 0 auto 6px; }
.qr-id { font-family: var(--oc-head); font-size: 20px; font-weight: 700; color: var(--oc-ink); line-height: 1.1; }
.qr-url { word-break: break-all; margin: 2px 0 8px; } .qr-btns { display: flex; gap: 6px; justify-content: center; flex-wrap: wrap; }
.rent-card { display: flex; align-items: center; justify-content: space-between; gap: 12px; border: 1px solid #d6caf2; background: #f6f2fd; border-radius: 10px; padding: 10px 12px; margin-bottom: 10px; }
.rent-card.is-free { border-color: #c4e2b1; background: #f3faef; } .rent-card.is-overdue { border-color: #f3c4bf; background: #fff3f1; }
.rent-card .rc-main { display: flex; gap: 10px; align-items: flex-start; min-width: 0; }
.rent-card .ev-ic { width: 30px; height: 30px; border-radius: 8px; flex: 0 0 auto; display: inline-grid; place-items: center; background: var(--t-bg); color: var(--t-fg); } .rent-card .ev-ic .icon { width: 15px; height: 15px; }
.rent-card strong { display: block; font-size: 13px; color: var(--oc-ink); } .rent-card small { display: block; font-size: 11.5px; color: var(--oc-muted); margin-top: 2px; }
.rent-card .btn { flex: 0 0 auto; }
.rent-sum { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; background: #f6f9f2; border: 1px solid #e6ecdd; border-radius: 10px; padding: 12px 14px; font-size: 13.5px; font-weight: 600; }
.rent-sum b { display: block; font-size: 10px; text-transform: uppercase; letter-spacing: .05em; color: var(--oc-muted); font-weight: 700; margin-bottom: 2px; } .rent-sum .tot { color: var(--oc-green-dk); font-size: 15px; }
.rent-est { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--oc-text); background: #f6f9f2; border: 1px solid #e6ecdd; border-radius: 8px; padding: 8px 10px; } .rent-est:empty { display: none; } .rent-est .icon { width: 14px; height: 14px; color: var(--oc-muted); }
.basis-cards .jt-card { font: inherit; cursor: pointer; text-align: left; background: #fff; } .basis-cards .jt-card small { margin-top: 2px; }
.jt-cards.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-bottom: 0; } #rtCond { margin-bottom: 0; } #rtCond .jt-card { font: inherit; cursor: pointer; text-align: left; background: #fff; }
.rate-tbl td { vertical-align: middle; } .rate-in { display: flex; align-items: center; gap: 6px; max-width: 150px; } .rate-in span { color: var(--oc-muted); font-size: 12px; }
.rate-in .input { text-align: right; font-variant-numeric: tabular-nums; } .rate-in.is-derived .input::placeholder { color: #9aa39d; } .rate-in.is-derived .input { background: #f8faf5; border-style: dashed; }
.rate-rule ul { margin: 0; padding-left: 18px; font-size: 12.5px; line-height: 1.6; color: var(--oc-text); }
.field small.muted { font-size: 11px; margin-top: 2px; }
.pill.tone-violet { --t-bg: #e6d9fb; --t-fg: #4b2a94; --t-bd: #cdb8f5; --t-dot: #7c4ddb; }
@media (max-width: 760px) { .unit-top { grid-template-columns: 1fr; } .rent-sum { grid-template-columns: 1fr 1fr; } .rent-card { flex-direction: column; align-items: stretch; } }
#modals .modal-back { z-index: 600; } .cf-back { z-index: 700; }

/* Side-by-side panels share one height: the table (or form body) takes the spare space, an empty table
   centres its state, and a form's footer sits at the bottom. */
.eq-row { align-items: stretch; }
.eq-row > .panel { display: flex; flex-direction: column; }
.eq-row > .panel > .tbl { flex: 1; }
.eq-row > .panel > .tbl td:has(.empty-state) { height: 100%; vertical-align: middle; }
.eq-row > .panel > .panel-b:not(:has(+ .tbl)):not(.rate-rule) { flex: 1; }
.eq-row > .panel > .tbl tbody tr:last-child td { border-bottom: none; }
.jt-cards.cols-2.basis-cards .jt-card { align-items: center; }
.jt-card.tone-orange { --tone-bg: #ffd9c2; --tone-fg: #8a3508; } .jt-card.tone-orange .jt-ic, .jt-card.tone-teal .jt-ic, .jt-card.tone-green .jt-ic { background: var(--tone-bg); color: var(--tone-fg); }
.jt-card.tone-green { --tone-bg: #d8f0c4; --tone-fg: #1c5a0f; }

.own-tag { display: inline-block; font-size: 9.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: #4b2a94; background: #e6d9fb; border-radius: 4px; padding: 1px 5px; vertical-align: 1px; }
.unit-kv .rate-line { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.jt-card.tone-violet { --tone-bg: #e6d9fb; --tone-fg: #4b2a94; } .jt-card.tone-violet .jt-ic { background: var(--tone-bg); color: var(--tone-fg); }

/* Equipment toolbar: a roomy search and compact filters; pager with a rows-per-page choice */
.act-tools .eq-search { flex: 1 1 260px; max-width: 420px; } .act-tools .eq-search .input { width: 100%; }
#tab-equipment .act-tools select.input { width: auto; max-width: 190px; }
.pager .per-page { display: inline-flex; align-items: center; gap: 8px; } .pager .per-page select.input { width: auto; min-height: 30px; padding: 3px 8px; font-size: 12px; }
.pager .spacer { flex: 1; }

/* ── Email (7 Oct 2026) ── */
.mail-frame { width: 100%; border: 1px solid var(--oc-line); border-radius: 10px; background: #f4f6ef; display: block; }
.mail-compose { display: grid; grid-template-columns: minmax(260px, 340px) minmax(0, 1fr); gap: 18px; align-items: start; }
.mail-compose .seg { flex-wrap: wrap; } .mail-compose .seg-btn:disabled { opacity: .4; cursor: default; }
.mail-failed { color: var(--oc-red); } .tbl .tiny .icon { width: 11px; height: 11px; vertical-align: -1px; margin-right: 3px; }
.tbl tr.row-failed td { background: #fff8f7; }
.sw-list { display: flex; flex-direction: column; }
.sw-row { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 13px 16px; border-bottom: 1px solid var(--oc-line); cursor: pointer; margin: 0; text-transform: none; letter-spacing: 0; }
.sw-row:last-child { border-bottom: 0; } .sw-row strong { display: block; font-size: 13px; color: var(--oc-ink); font-weight: 650; } .sw-row small { display: block; font-size: 12px; color: var(--oc-muted); margin-top: 2px; font-weight: 400; line-height: 1.5; }
.sw-num { display: inline-block; width: 58px !important; min-height: 26px; padding: 2px 6px; margin: 0 3px; font-size: 12px; text-align: center; }
input.sw { appearance: none; -webkit-appearance: none; flex: 0 0 auto; width: 40px; height: 22px; border-radius: 999px; background: #cfd9c7; position: relative; cursor: pointer; transition: background .15s; border: 0; padding: 0; }
input.sw::after { content: ""; position: absolute; top: 2px; left: 2px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.25); transition: transform .15s; }
input.sw:checked { background: #2dad14; } input.sw:checked::after { transform: translateX(18px); } input.sw:focus-visible { outline: 2px solid #2dad14; outline-offset: 2px; }
#tab-email .tabs { margin-top: 0; }
@media (max-width: 900px) { .mail-compose { grid-template-columns: 1fr; } }

/* Searchable machine picker */
.unit-pick { position: relative; } .unit-pick .input { padding-left: 34px; }
.unit-pick .up-ic { position: absolute; left: 11px; top: 50%; transform: translateY(-50%); width: 15px; height: 15px; color: var(--oc-muted); pointer-events: none; }
.unit-pick-list { position: fixed; z-index: 900; background: #fffefa; border: 1px solid #dfe7d6; border-radius: 10px; box-shadow: 0 16px 44px rgba(15,30,20,.2); padding: 5px; overflow: auto; } .unit-pick-list.hide { display: none; }
.up-item { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; font: inherit; background: none; border: 0; border-radius: 7px; padding: 7px 9px; cursor: pointer; color: var(--oc-text); }
.up-item:hover, .up-item.is-on { background: #eef5e7; }
.up-id { font-weight: 700; color: var(--oc-green-dk); font-variant-numeric: tabular-nums; min-width: 62px; font-size: 13px; }
.up-meta { flex: 1; min-width: 0; font-size: 12px; color: var(--oc-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .up-meta strong { color: var(--oc-ink); font-weight: 600; }
.up-side { display: flex; align-items: center; gap: 8px; flex: 0 0 auto; } .up-side small { font-size: 11px; color: var(--oc-muted); white-space: nowrap; min-width: 74px; text-align: right; }
.up-empty { padding: 12px; font-size: 12.5px; color: var(--oc-muted); text-align: center; }

/* Selects: draw our own chevron with room on the right, so the arrow never touches the border */
select.input { -webkit-appearance: none; appearance: none; padding-right: 32px !important; background-color: #fff;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236b746e' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'><path d='m6 9 6 6 6-6'/></svg>");
  background-repeat: no-repeat; background-position: right 11px center; background-size: 12px 12px; }
select.input:disabled { opacity: .6; }

/* Settings */
#tab-settings .tabs { margin-top: 0; } #tab-settings .kv { font-size: 12.5px; } #tab-settings .chips .chip { text-decoration: none; color: var(--oc-text); }
#themeCards .jt-card { font: inherit; cursor: pointer; text-align: left; background: #fff; }

/* Sidebar: the active state eases in. Weight stays constant (a weight jump reflows the label), the
   background, colour and icon chip transition, and the active dot fades and grows in. */
.sidebar .nav a { font-weight: 600; transition: background-color .18s ease, color .18s ease, box-shadow .18s ease; }
.sidebar .nav a.active { font-weight: 600; }
.sidebar .nav a .nav-ic { transition: background-color .18s ease, color .18s ease, box-shadow .18s ease, filter .18s ease; }
.sidebar .nav a:not(.nav-primary)::after { content: ""; width: 5px; height: 5px; border-radius: 50%; background: #477d2e; margin-left: auto; opacity: 0; transform: scale(.4); transition: opacity .18s ease, transform .18s ease; }
.sidebar .nav a.active:not(.nav-primary)::after { opacity: 1; transform: none; }
.sidebar .nav a:has(.nav-count:not(:empty))::after { display: none; }
.sidebar .nav a .nav-count { transition: background-color .18s ease, color .18s ease, border-color .18s ease; }
@media (prefers-reduced-motion: reduce) { .sidebar .nav a, .sidebar .nav a::after, .sidebar .nav a .nav-ic, .sidebar .nav a .nav-count { transition: none; } }
/* Appearance cards sit in the vertical middle of their panel when it is stretched to match its neighbour */
#tab-settings .panel-b:has(> #themeCards) { display: flex; align-items: center; } #themeCards { width: 100%; }

/* Footer credit */
.sidebar-foot .powered { display: block; margin-top: 10px; font-size: 10.5px; color: #8aa088; text-decoration: none; letter-spacing: .01em; }
.sidebar-foot .powered b { font-weight: 600; color: #a9c3a4; } .sidebar-foot .powered:hover, .sidebar-foot .powered:hover b { color: #d6efb6; }
body.is-access .access-footer .powered-link { font-size: 8px; color: #929d8c; text-decoration: none; } body.is-access .access-footer .powered-link:hover { color: #2dad14; }

/* Power draw / energy (13 Nov 2026): watts + amps inputs kept in step, energy calculator in the unit dialog */
.power-in { display: flex; align-items: center; gap: 6px; } .power-in .input { text-align: right; font-variant-numeric: tabular-nums; min-width: 0; }
.power-in span { color: var(--oc-muted); font-size: 12px; flex: 0 0 auto; }
.rate-in.power { max-width: 120px; } .rate-tbl .power-amps { margin-top: 3px; white-space: nowrap; }
.unit-kv .power-line { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.unit-kv .power-calc { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--oc-muted); white-space: nowrap; }
.unit-kv .power-calc .input { width: 64px; padding: 4px 6px; height: auto; font-size: 12px; text-align: right; } .unit-kv .power-calc strong { color: var(--oc-ink); font-weight: 600; }
@media (max-width: 760px) { .unit-kv .power-line { flex-direction: column; align-items: flex-start; } }
/* Electricity rate by state (Hire rates → Power & energy) */
.state-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin: 4px 0 6px; }
.state-cell { display: flex; flex-direction: column; gap: 3px; } .state-cell span { font-size: 10.5px; font-weight: 600; letter-spacing: .04em; color: var(--oc-muted); }
.state-cell .input { text-align: right; font-variant-numeric: tabular-nums; padding-left: 6px; padding-right: 6px; }

/* ---- Staff hours & pay (14 Nov 2026) ---- */
#tab-hours .toolbar input[type=date].input { width: 140px; }
.hr-chg { color: var(--oc-muted); font-size: 10.5px; text-decoration: line-through; margin-left: 4px; }
.hr-tot b { color: var(--oc-ink); }
.hr-days { font-size: 10.5px; color: var(--oc-muted); }
.stmt-head { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px 18px; margin-bottom: 14px; font-size: 12.5px; }
.stmt-head .lbl { margin-bottom: 2px; } .stmt-head strong { font-size: 14px; color: var(--oc-ink); }
.stmt-tot { margin: 14px 0 0 auto; max-width: 320px; display: grid; grid-template-columns: 1fr auto; gap: 5px 16px; font-size: 12.5px; }
.stmt-tot .muted { text-align: right; } .stmt-tot .num { text-align: right; font-variant-numeric: tabular-nums; }
.stmt-tot .grand { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: center; background: #183523; color: #d6efb6; border-radius: 8px; padding: 9px 12px; margin-top: 6px; font-weight: 700; }
.stmt-tot .grand b { color: #fff; font-size: 16px; }
.stmt-pv { border: 1px solid var(--oc-line); border-radius: 10px; padding: 12px 14px; background: #fbfcf9; margin-top: 8px; }
.stmt-pv .pv-row { display: flex; justify-content: space-between; gap: 12px; padding: 5px 0; border-bottom: 1px solid #edf1e9; font-size: 12.5px; } .stmt-pv .pv-row:last-child { border-bottom: 0; }
.stmt-pv .pv-warn { background: #fff7e8; border: 1px solid #efe2c6; color: #7e602a; border-radius: 8px; padding: 8px 10px; font-size: 12px; margin-top: 8px; display: flex; justify-content: space-between; gap: 10px; align-items: center; }
.kind-cards.jt-cards { grid-template-columns: repeat(5, minmax(0, 1fr)); } .kind-cards .jt-card { flex-direction: column; align-items: flex-start; gap: 6px; padding: 9px 10px; min-width: 0; } .kind-cards .jt-card strong { font-size: 12px; white-space: normal; overflow-wrap: anywhere; line-height: 1.2; }
@media (max-width: 640px) { .kind-cards.jt-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.tbl tr.row-rejected td { opacity: .6; } .tbl tr.row-rejected td .hrs { text-decoration: line-through; }
.tbl tr.is-sel td { background: #f3faef; }
.hr-actions { display: flex; gap: 8px; flex: 0 0 auto; flex-wrap: nowrap; white-space: nowrap; align-items: center; }
@media (max-width: 760px) { .hr-actions { flex-wrap: wrap; justify-content: flex-end; } }
.input.is-picked { border-color: #2dad14; background: #f7fbf4; }
.tbl td.strong { font-weight: 700; color: var(--oc-ink); }
#tab-hours [data-hpane=account] .toolbar select.input { max-width: 260px; }

.ac-total { display: flex; justify-content: space-between; align-items: center; gap: 24px; background: #183523; color: #d6efb6; border-radius: 12px; padding: 18px 22px; margin: 0 0 16px; flex-wrap: wrap; }
.ac-total .lbl { color: #a9c49a; } .ac-total b { display: block; font-family: var(--oc-font); font-size: 40px; font-weight: 600; letter-spacing: -1.5px; color: #fff; line-height: 1.05; margin-top: 4px; font-variant-numeric: tabular-nums; }
.ac-total .ac-sub { font-size: 12px; color: #a9c49a; margin-top: 6px; } .ac-split { display: flex; gap: 32px; } .ac-split b { font-size: 26px; }
@media (max-width: 760px) { .ac-total b { font-size: 30px; } .ac-split { gap: 18px; } }
.hr-callout { display: flex; align-items: center; gap: 10px; } .hr-callout .check { flex: 1; margin: 0; } .hr-callout .input { width: 110px; flex: 0 0 auto; }
.modal .input[type=date] { min-height: 0; }

/* ── Dashboard · Hours & pay block (14 Nov 2026) ── */
.dash-hours .panel-b { padding: 14px; }
.dash-hours .hp-right { display: flex; align-items: center; gap: 12px; }
.dash-hours .hp-right .btn .icon { width: 12px; height: 12px; margin-left: 4px; }
.hp-tiles { margin-bottom: 14px; gap: 12px; }
.hp-tiles .kpi { padding: 14px 16px 12px; }
.hp-tiles .kpi .k-value { font-size: 28px; margin: 10px 0 10px; }
.hp-tiles .kpi .k-sub { padding-top: 9px; }
/* one shared block: two columns split by a divider, always the same height */
.hp-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border: 1px solid var(--oc-line); border-radius: 8px; overflow: hidden; background: #fff; align-items: stretch; }
.hp-col { display: flex; flex-direction: column; overflow-x: auto; min-width: 0; }
.hp-col + .hp-col { border-left: 1px solid var(--oc-line); }
.hp-col .tbl { min-width: 420px; flex: 0 0 auto; }
.hp-col .tbl:has(.empty-state) { flex: 1; }
.hp-h2 { border-top: 1px solid var(--oc-line); }
.hp-col td.hp-job { max-width: 0; width: 38%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hp-tot td { background: #f7f9f4; border-top: 2px solid var(--oc-line); font-weight: 700; color: var(--oc-ink); }
@media (max-width: 900px) { .hp-grid { grid-template-columns: 1fr; } .hp-col + .hp-col { border-left: 0; border-top: 1px solid var(--oc-line); } }
.hp-h { font-size: 12.5px; font-weight: 700; color: var(--oc-ink); margin: 0; padding: 9px 12px; border-bottom: 1px solid var(--oc-line); background: #f7f9f4; display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.hp-h .small { font-weight: 500; }
.hp-col .tbl td:has(.empty-state) { padding: 8px; }
.hp-col .tbl a strong { color: var(--oc-ink); }
@media (max-width: 1150px) { .hp-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ── Phones (15 Nov 2026): wide tables scroll inside their panel instead of stretching the page; page actions wrap ── */
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.table-scroll .tbl { min-width: 100%; }
@media (max-width: 760px) {
  .page-intro { flex-wrap: wrap; }
  .page-intro > div:first-child { flex: 1 1 100%; min-width: 0; }
  .page-intro > div:last-child, .page-intro .hr-actions { flex: 1 1 100%; justify-content: flex-start; }
  .page-intro .hr-actions .btn { flex: 1 1 auto; justify-content: center; }
  .tabs { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-left: -4px; padding-left: 4px; }
  .tabs::-webkit-scrollbar { display: none; }
  .tab-btn { white-space: nowrap; flex: 0 0 auto; }
  .toolbar .seg { display: flex; flex-wrap: nowrap; overflow-x: auto; max-width: 100%; scrollbar-width: none; }
  .toolbar .seg::-webkit-scrollbar { display: none; }
  .toolbar .seg .seg-btn { white-space: nowrap; flex: 0 0 auto; }
  #tab-hours .toolbar input[type=date].input { width: calc(50% - 22px); flex: 1 1 auto; }
  #tab-hours .toolbar .spacer { display: none; }
  .table-scroll .tbl { min-width: 640px; }
  .hp-col .tbl { min-width: 480px; }
}
.ac-total .ac-sub { color: var(--oc-muted); }

/* By staff member: Jobs column — one job per line, name trimmed with …, hours kept visible; extra jobs behind "+N more" */
.hr-jobs-td { min-width: 230px; max-width: 300px; vertical-align: middle; }
.hr-jobs { font-size: 11.5px; color: var(--oc-muted); }
.hr-job { display: flex; gap: 8px; align-items: baseline; padding: 1.5px 0; }
.hr-job span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hr-job b { flex: 0 0 auto; font-weight: 600; color: var(--oc-text); font-variant-numeric: tabular-nums; }
.hr-jobs-btn { font: inherit; font-size: 11.5px; font-weight: 700; color: var(--p1-dk, #1f7a0e); background: none; border: 0; padding: 3px 0 0; cursor: pointer; }
.hr-jobs-btn:hover { text-decoration: underline; }
