/* Cleaning Panda CRM. Operate mode: dense, scannable, brand in the details.
   Panda-black sidebar, white work surfaces, blue only for actions and "now". */
@font-face { font-family: "Fredoka"; font-weight: 500 700; font-display: swap; src: url(fonts/fredoka.woff2) format("woff2"); }
@font-face { font-family: "Figtree"; font-weight: 400 700; font-display: swap; src: url(fonts/figtree.woff2) format("woff2"); }

:root {
  --bg: #F3F6FA; --surface: #FFFFFF; --surface-2: #F7F9FC; --ink: #0F1217; --muted: #556072; --line: #DDE4EE;
  --blue: #1769D3; --blue-ink: #0D4FA6; --blue-soft: #E4EEFC; --on-blue: #FFFFFF;
  --panda: #0C0E12; --on-panda: #EEF2F7; --on-panda-muted: #8E99A8; --panda-hover: #1A1E25;
  --ok: #17804A; --ok-soft: #E2F4EA; --warn: #A15C00; --warn-soft: #FFF1DC; --bad: #B42318; --bad-soft: #FDE7E5; --idle: #5B6576; --idle-soft: #EDF0F4;
  --font-display: "Fredoka", ui-rounded, system-ui, sans-serif;
  --font-body: "Figtree", "Segoe UI", system-ui, -apple-system, sans-serif;
  --r: 12px; --shadow: 0 1px 2px rgb(15 18 23 / 0.05), 0 8px 24px -12px rgb(15 18 23 / 0.16);
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0D1117; --surface: #161C25; --surface-2: #1B222D; --ink: #E9EEF5; --muted: #9AA6B6; --line: #283241;
    --blue: #4D95F2; --blue-ink: #8FBCFA; --blue-soft: #172942; --on-blue: #05122A;
    --panda: #07090C; --panda-hover: #141922;
    --ok: #4CC38A; --ok-soft: #12291F; --warn: #F0B355; --warn-soft: #2C2213; --bad: #F97066; --bad-soft: #2D1716; --idle: #A2ADBB; --idle-soft: #1F2631;
    --shadow: 0 1px 2px rgb(0 0 0 / 0.4), 0 12px 32px -14px rgb(0 0 0 / 0.7);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { height: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 15px/1.5 var(--font-body); -webkit-font-smoothing: antialiased; accent-color: var(--blue); }
::selection { background: var(--blue); color: var(--on-blue); }
h1, h2, h3 { font-family: var(--font-display); font-weight: 600; letter-spacing: -0.015em; line-height: 1.15; margin: 0; text-wrap: balance; }
h1 { font-size: 1.75rem; } h2 { font-size: 1.2rem; } h3 { font-size: 1.02rem; }
p { margin: 0; }
a { color: var(--blue-ink); text-underline-offset: 0.2em; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; border-radius: 6px; }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -80px; z-index: 100; background: var(--ink); color: var(--surface); padding: 8px 14px; border-radius: 8px; font-weight: 700; text-decoration: none; }
.skip:focus { top: 12px; }
.icon { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.num { font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); }
.small { font-size: 0.85rem; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 40px; padding: 0 14px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font: 600 0.92rem/1 var(--font-body); cursor: pointer; text-decoration: none; transition: transform 140ms var(--ease-out), background-color 150ms ease, border-color 150ms ease; white-space: nowrap; }
.btn:hover { border-color: color-mix(in srgb, var(--ink) 35%, var(--line)); }
.btn:active { transform: scale(0.97); }
.btn.primary { background: var(--blue); color: var(--on-blue); border-color: transparent; }
.btn.primary:hover { background: var(--blue-ink); }
.btn.danger { color: var(--bad); }
.btn.ghost { border-color: transparent; background: transparent; }
.btn.sm { min-height: 32px; padding: 0 10px; font-size: 0.85rem; }
.btn[disabled] { opacity: 0.55; cursor: not-allowed; transform: none; }
.btn.icon-only { width: 40px; padding: 0; }

/* Forms */
.field { display: grid; gap: 5px; min-width: 0; align-content: start; }
.field.full { grid-column: 1 / -1; }
.field label, .lbl { font-size: 0.82rem; font-weight: 600; }
.field .hint { font-size: 0.8rem; color: var(--muted); }
input, select, textarea { width: 100%; min-height: 40px; padding: 8px 11px; border: 1px solid var(--line); border-radius: 9px; background: var(--surface); color: var(--ink); font: 500 0.95rem/1.35 var(--font-body); transition: border-color 140ms ease, box-shadow 140ms ease; }
textarea { resize: vertical; min-height: 84px; }
input[type="checkbox"], input[type="radio"] { width: 18px; height: 18px; min-height: 0; padding: 0; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px color-mix(in srgb, var(--blue) 28%, transparent); }
[aria-invalid="true"] { border-color: var(--bad) !important; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 560px) { .form-grid { grid-template-columns: 1fr; } }
.err { color: var(--bad); font-size: 0.85rem; font-weight: 600; }
.err:empty { display: none; }
.checks { display: grid; gap: 6px; }
.check { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 9px; cursor: pointer; }
.check:has(input:checked) { border-color: var(--blue); background: var(--blue-soft); }

/* Pills */
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px; border-radius: 99px; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.02em; white-space: nowrap; background: var(--idle-soft); color: var(--idle); }
.pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.pill.blue { background: var(--blue-soft); color: var(--blue-ink); }
.pill.ok { background: var(--ok-soft); color: var(--ok); }
.pill.warn { background: var(--warn-soft); color: var(--warn); }
.pill.bad { background: var(--bad-soft); color: var(--bad); }

/* ---------- Auth screens: "clock in" on a staff badge ---------- */
.auth { position: relative; min-height: 100%; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 440px); align-items: center; gap: clamp(24px, 6vw, 96px);
  padding: calc(32px + env(safe-area-inset-top, 0px)) clamp(16px, 6vw, 96px) calc(32px + env(safe-area-inset-bottom, 0px)); background: #1769D3; color: #fff; overflow: hidden; isolation: isolate; }
.auth::before { content: ""; position: absolute; inset: 0; z-index: -1; background: url(img/pattern.jpg) 0 0 / 300px auto repeat; mix-blend-mode: multiply; opacity: 0.22; }
.auth::after { content: ""; position: absolute; z-index: -1; left: -10%; right: -10%; bottom: -38vh; height: 60vh; border-radius: 50%; background: #0D4FA6; opacity: 0.55; }
.auth-hello { display: grid; gap: 22px; max-width: 560px; }
.auth-hello .big { font: 700 clamp(3rem, 7vw, 6rem)/0.9 var(--font-display); letter-spacing: -0.035em; margin: 0; }
.auth-hello .big span { color: #0C0E12; }
.clock { display: grid; gap: 2px; }
.clock b { font: 600 clamp(2.4rem, 5vw, 3.6rem)/1 var(--font-display); font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }
.clock span { font-weight: 600; opacity: 0.85; }
.auth-hello p.sub { opacity: 0.85; max-width: 38ch; }
.badge-wrap { position: relative; padding-top: 96px; }
.peek { position: absolute; z-index: 0; top: 0; right: 28px; width: 150px; height: 130px; overflow: hidden; pointer-events: none; }
.peek img { width: 150px; height: auto; display: block; transform: translateY(14px); transition: transform 500ms var(--ease-out); }
.badge-wrap:focus-within .peek img { transform: translateY(4px); }
.staff-badge { position: relative; z-index: 1; background: var(--surface); color: var(--ink); border-radius: 24px; padding: 40px clamp(20px, 4vw, 34px) 28px; box-shadow: 0 40px 80px -30px rgb(5 18 42 / 0.6); display: grid; gap: 20px; }
.staff-badge::before { content: ""; position: absolute; top: 14px; left: 50%; width: 64px; height: 10px; margin-left: -32px; border-radius: 99px; background: var(--bg); box-shadow: inset 0 1px 2px rgb(0 0 0 / 0.2); }
.badge-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-bottom: 16px; border-bottom: 2px dashed var(--line); }
.badge-top .logo { height: 40px; width: auto; border-radius: 6px; }
@media (prefers-color-scheme: dark) { .badge-top .logo { background: #fff; padding: 3px 6px; } }
.badge-top .tag { font-size: 0.72rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--blue-ink); background: var(--blue-soft); padding: 5px 10px; border-radius: 99px; white-space: nowrap; }
.staff-badge form { display: grid; gap: 14px; }
.staff-badge .btn.primary { min-height: 48px; font-size: 1rem; }
.staff-badge h1 { font-size: 1.6rem; }
.steps { display: flex; gap: 6px; }
.steps i { height: 4px; flex: 1; border-radius: 99px; background: var(--line); }
.steps i.on { background: var(--blue); }
.otp { display: flex; gap: 8px; }
.otp input { width: 100%; min-width: 0; height: 54px; text-align: center; font: 600 1.4rem/1 var(--font-display); padding: 0; }
.notice { padding: 10px 12px; border-radius: 10px; font-size: 0.9rem; background: var(--blue-soft); color: var(--ink); }
.notice.bad { background: var(--bad-soft); }
.notice.warn { background: var(--warn-soft); }
.auth .help { font-size: 0.85rem; color: var(--muted); }
.linkbtn { background: none; border: 0; padding: 0; font: inherit; font-weight: 600; color: var(--blue-ink); cursor: pointer; text-decoration: underline; text-underline-offset: 0.2em; }
.linkbtn[disabled] { color: var(--muted); cursor: default; text-decoration: none; }
@media (max-width: 860px) {
  .auth { grid-template-columns: 1fr; align-content: start; gap: 8px; }
  .auth-hello { gap: 10px; }
  .auth-hello .big { font-size: 2.6rem; }
  .auth-hello p.sub, .auth-hello .clock span { display: none; }
  .clock b { font-size: 1.6rem; }
  .badge-wrap { padding-top: 84px; }
  .peek { width: 120px; height: 104px; right: 20px; }
  .peek img { width: 120px; }
}
@media (prefers-reduced-motion: reduce) { .peek img { transition: none; } }

/* ---------- App shell ---------- */
.shell { display: grid; grid-template-columns: 236px 1fr; min-height: 100%; }
.side { background: var(--panda); color: var(--on-panda); padding: 18px 14px; display: flex; flex-direction: column; gap: 18px; position: sticky; top: 0; height: 100vh; }
.side .logo { height: 38px; width: auto; border-radius: 6px; align-self: flex-start; background: #fff; padding: 3px 6px; }
.nav { display: grid; gap: 2px; }
.nav a { display: flex; align-items: center; gap: 12px; padding: 9px 12px; border-radius: 10px; color: var(--on-panda-muted); text-decoration: none; font-weight: 600; transition: background-color 120ms ease, color 120ms ease; }
.nav a:hover { background: var(--panda-hover); color: var(--on-panda); }
.nav a[aria-current="page"] { background: #1769D3; color: #fff; }
.nav a .count { margin-left: auto; font-size: 0.75rem; background: rgb(255 255 255 / 0.14); padding: 1px 7px; border-radius: 99px; color: #fff; }
.side .me { margin-top: auto; display: grid; gap: 8px; padding: 12px; border-radius: 12px; background: var(--panda-hover); }
.side .me b { font-weight: 700; }
.side .me .btn { background: transparent; color: var(--on-panda); border-color: rgb(255 255 255 / 0.2); }
.demo-flag { font-size: 0.75rem; font-weight: 700; color: #F0B355; letter-spacing: 0.04em; }
.main { min-width: 0; padding: 26px clamp(16px, 3vw, 36px) 80px; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 20px; }
.page-head .sub { color: var(--muted); margin-top: 4px; }
.page-head .actions { display: flex; gap: 8px; flex-wrap: wrap; }
.topbar { display: none; }
.tabbar { display: none; }
@media (max-width: 900px) {
  .shell { grid-template-columns: 1fr; }
  .side { display: none; }
  .topbar { display: flex; align-items: center; justify-content: space-between; gap: 10px; position: sticky; top: 0; z-index: 20; padding: 10px 16px; padding-top: calc(10px + env(safe-area-inset-top, 0px)); background: var(--panda); color: var(--on-panda); }
  .topbar .logo { height: 32px; width: auto; background: #fff; border-radius: 6px; padding: 2px 6px; }
  .topbar .btn { background: transparent; color: var(--on-panda); border-color: rgb(255 255 255 / 0.25); }
  .tabbar { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; background: var(--surface); border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom, 0px); }
  .tabbar a { display: grid; justify-items: center; gap: 2px; padding: 8px 2px; font-size: 0.68rem; font-weight: 600; color: var(--muted); text-decoration: none; }
  .tabbar a[aria-current="page"] { color: var(--blue); }
  .main { padding: 18px 16px 96px; }
}

/* Cards, KPIs, tables */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.card-body { padding: 16px; }
.grid-2 { display: grid; grid-template-columns: 1.4fr 1fr; gap: 16px; align-items: start; }
@media (max-width: 1100px) { .grid-2 { grid-template-columns: 1fr; } }
.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 16px; }
@media (max-width: 900px) { .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.kpi { padding: 14px 16px; display: grid; gap: 2px; text-decoration: none; color: inherit; transition: border-color 150ms ease; }
a.kpi:hover { border-color: var(--blue); }
.kpi .v { font: 600 1.7rem/1.1 var(--font-display); font-variant-numeric: tabular-nums; }
.kpi .l { color: var(--muted); font-size: 0.85rem; font-weight: 600; }
.kpi.alert .v { color: var(--warn); }
.toolbar { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-bottom: 12px; }
.toolbar .search { flex: 1 1 220px; max-width: 360px; }
.seg { display: inline-flex; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 3px; gap: 2px; flex-wrap: wrap; }
.seg button { border: 0; background: transparent; color: var(--muted); font: 600 0.85rem/1 var(--font-body); padding: 8px 11px; border-radius: 7px; cursor: pointer; }
.seg button[aria-pressed="true"] { background: var(--ink); color: var(--surface); }
.table-wrap { overflow-x: auto; }
table.list { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
table.list th { text-align: left; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); font-weight: 700; padding: 10px 14px; border-bottom: 1px solid var(--line); background: var(--surface-2); white-space: nowrap; }
table.list td { padding: 11px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
table.list tr:last-child td { border-bottom: 0; }
table.list tbody tr { cursor: pointer; transition: background-color 100ms ease; }
table.list tbody tr:hover { background: var(--surface-2); }
table.list td.r, table.list th.r { text-align: right; }
table.list .primary-cell { font-weight: 600; }
.rowlink { color: inherit; text-decoration: none; font-weight: 600; }
.rowlink:hover { text-decoration: underline; }
.empty { padding: 36px 16px; text-align: center; color: var(--muted); display: grid; gap: 10px; justify-items: center; }
.empty b { color: var(--ink); font-family: var(--font-display); font-size: 1.05rem; font-weight: 600; }
.list-plain { list-style: none; margin: 0; padding: 0; }
.list-plain > li { display: flex; align-items: center; gap: 12px; padding: 11px 16px; border-bottom: 1px solid var(--line); }
.list-plain > li:last-child { border-bottom: 0; }
.list-plain .grow { flex: 1; min-width: 0; }
.time { font-variant-numeric: tabular-nums; font-weight: 700; min-width: 64px; }
.who { display: inline-flex; gap: 4px; flex-wrap: wrap; }
.avatar { width: 26px; height: 26px; border-radius: 50%; display: inline-grid; place-items: center; background: var(--blue-soft); color: var(--blue-ink); font: 700 0.7rem/1 var(--font-body); }
.kv { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; font-size: 0.92rem; }
.kv dt { color: var(--muted); font-weight: 600; }
.kv dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }

/* Schedule */
.week { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; }
.day { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); min-height: 220px; display: flex; flex-direction: column; min-width: 0; }
.day.today { border-color: var(--blue); box-shadow: inset 0 3px 0 var(--blue); }
.day-head { display: flex; justify-content: space-between; align-items: baseline; padding: 10px 10px 6px; }
.day-head b { font: 600 0.95rem/1 var(--font-display); }
.day-head span { color: var(--muted); font-size: 0.8rem; font-variant-numeric: tabular-nums; }
.day-jobs { display: grid; gap: 6px; padding: 4px 8px 10px; }
.jobcard { text-align: left; display: grid; gap: 3px; padding: 8px 9px; border-radius: 9px; border: 1px solid var(--line); background: var(--surface-2); font: inherit; color: inherit; cursor: pointer; border-left: 3px solid var(--blue); transition: transform 140ms var(--ease-out); min-width: 0; }
.jobcard:active { transform: scale(0.98); }
.jobcard .t { font-weight: 700; font-size: 0.8rem; font-variant-numeric: tabular-nums; }
.jobcard .c { font-weight: 600; font-size: 0.86rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.jobcard .s { font-size: 0.76rem; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.jobcard.completed { border-left-color: var(--ok); opacity: 0.75; }
.jobcard.in_progress { border-left-color: var(--warn); }
.jobcard.cancelled { border-left-color: var(--idle); text-decoration: line-through; opacity: 0.6; }
@media (max-width: 1000px) { .week { grid-template-columns: 1fr; } .day { min-height: 0; } .day-jobs:empty::after { content: "No jobs"; color: var(--muted); font-size: 0.85rem; padding: 0 2px 4px; } }

/* Line items */
table.items { width: 100%; border-collapse: collapse; }
table.items th { text-align: left; font-size: 0.75rem; color: var(--muted); font-weight: 700; padding: 6px 4px; }
table.items td { padding: 4px; }
table.items td.r { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
table.items input { min-height: 36px; }
.totals { display: grid; gap: 6px; justify-items: end; margin-top: 10px; font-variant-numeric: tabular-nums; }
.totals .grand { font: 600 1.5rem/1 var(--font-display); }

/* Checklist (cleaner view) */
.checklist { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.checklist label { display: flex; gap: 12px; align-items: center; padding: 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); cursor: pointer; font-weight: 500; }
.checklist input { width: 22px; height: 22px; }
.checklist input:checked + span { text-decoration: line-through; color: var(--muted); }
.progress { height: 8px; border-radius: 99px; background: var(--line); overflow: hidden; }
.progress i { display: block; height: 100%; background: var(--ok); border-radius: inherit; transform-origin: left; transition: transform 240ms var(--ease-out); }

/* Dialog */
dialog { border: 0; padding: 0; border-radius: 16px; background: var(--surface); color: var(--ink); width: min(680px, calc(100vw - 24px)); max-height: calc(100dvh - 24px); box-shadow: 0 30px 80px -20px rgb(0 0 0 / 0.5); }
dialog::backdrop { background: rgb(8 10 14 / 0.5); }
dialog[open] { animation: dlg-in 200ms var(--ease-out); }
@keyframes dlg-in { from { opacity: 0; transform: translateY(8px) scale(0.98); } }
.dlg { display: flex; flex-direction: column; max-height: calc(100dvh - 24px); }
.dlg-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 18px; border-bottom: 1px solid var(--line); }
.dlg-body { padding: 18px; overflow: auto; display: grid; gap: 16px; }
.dlg-foot { display: flex; justify-content: space-between; gap: 8px; padding: 14px 18px; border-top: 1px solid var(--line); flex-wrap: wrap; }
.dlg-foot .right { display: flex; gap: 8px; margin-left: auto; }
@media (max-width: 560px) { dialog { width: 100vw; max-width: 100vw; margin: auto 0 0; border-radius: 16px 16px 0 0; } }

/* Toast */
.toasts { position: fixed; z-index: 200; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); display: grid; gap: 8px; }
@media (max-width: 900px) { .toasts { left: 16px; bottom: calc(76px + env(safe-area-inset-bottom, 0px)); } }
.toast { background: var(--ink); color: var(--surface); padding: 11px 14px; border-radius: 10px; font-weight: 600; font-size: 0.9rem; box-shadow: var(--shadow); animation: toast-in 220ms var(--ease-out); }
.toast.bad { background: var(--bad); color: #fff; }
@keyframes toast-in { from { opacity: 0; transform: translateY(10px); } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: 1ms !important; transition-duration: 1ms !important; } }

/* Print (quotes and invoices) */
.doc { max-width: 760px; margin: 0 auto; background: #fff; color: #111; padding: 40px; border-radius: 12px; }
.doc table { width: 100%; border-collapse: collapse; margin: 18px 0; }
.doc th, .doc td { padding: 8px 6px; border-bottom: 1px solid #ddd; text-align: left; }
.doc td.r, .doc th.r { text-align: right; }
.doc .head { display: flex; justify-content: space-between; gap: 20px; align-items: flex-start; }
.doc .head img { height: 54px; }
@media print {
  .side, .topbar, .tabbar, .no-print, .toasts { display: none !important; }
  .shell { display: block; } .main { padding: 0; } body { background: #fff; }
  .doc { padding: 0; }
}
.jobcard.requested { background: transparent; border-style: dashed; border-left: 3px dashed var(--warn); }
.jobcard.requested .t { color: var(--warn); text-transform: uppercase; letter-spacing: 0.04em; font-size: 0.7rem; }

/* ---------- Job status colors (pill, legend swatch, schedule card) ---------- */
:root {
  --st-pending: #A15C00;     --st-pending-bg: #FFF1D6;
  --st-approved: #1769D3;    --st-approved-bg: #E4EEFC;
  --st-staffed: #15803D;     --st-staffed-bg: #DDF5E6;
  --st-rescheduled: #7C3AED; --st-rescheduled-bg: #EEE7FE;
  --st-in_progress: #C2410C; --st-in_progress-bg: #FFE8D9;
  --st-completed: #4B5563;   --st-completed-bg: #E9ECF1;
  --st-cancelled: #B91C1C;   --st-cancelled-bg: #FDE4E4;
}
@media (prefers-color-scheme: dark) {
  :root {
    --st-pending: #F5B85A;     --st-pending-bg: #33260F;
    --st-approved: #74AEFA;    --st-approved-bg: #162945;
    --st-staffed: #5FD08E;     --st-staffed-bg: #12301F;
    --st-rescheduled: #B79CFF; --st-rescheduled-bg: #2A1F45;
    --st-in_progress: #FF9A5C; --st-in_progress-bg: #3A2214;
    --st-completed: #A7B0BE;   --st-completed-bg: #232A35;
    --st-cancelled: #FF8A80;   --st-cancelled-bg: #3A1817;
  }
}
.st-pending { --c: var(--st-pending); --cb: var(--st-pending-bg); }
.st-approved { --c: var(--st-approved); --cb: var(--st-approved-bg); }
.st-staffed { --c: var(--st-staffed); --cb: var(--st-staffed-bg); }
.st-rescheduled { --c: var(--st-rescheduled); --cb: var(--st-rescheduled-bg); }
.st-in_progress { --c: var(--st-in_progress); --cb: var(--st-in_progress-bg); }
.st-completed { --c: var(--st-completed); --cb: var(--st-completed-bg); }
.st-cancelled { --c: var(--st-cancelled); --cb: var(--st-cancelled-bg); }
.pill[class*="st-"] { background: var(--cb); color: var(--c); }
.legend i[class*="st-"] { background: var(--c); }
.jobcard[class*="st-"] { border-left-color: var(--c); background: var(--cb); opacity: 1; text-decoration: none; }
.jobcard .b { font-size: 0.68rem; font-weight: 700; letter-spacing: 0.03em; text-transform: uppercase; color: var(--c); }
.jobcard.st-pending { border-style: dashed; border-left-style: solid; border-color: var(--c); }
.jobcard.st-cancelled .c { text-decoration: line-through; }
.jobcard.st-completed { opacity: 0.8; }
.legend { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 0.8rem; color: var(--muted); font-weight: 600; }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i { width: 12px; height: 12px; border-radius: 4px; display: inline-block; }
