/* Staff UI 04.0 — presentation only, layered over the existing runtime styles. */
:root {
  --ink:#202b43; --muted:#59677e; --muted-2:#43516a;
  --line:#e0e5ee; --line-strong:#cbd4e2;
  --bg:#f2f4f8; --paper:#fff; --surface-soft:#f7f8fc;
  --brand:#465fc1; --brand-strong:#34499f; --brand-soft:#edf0fc;
  --blue:#3f57b5; --radius:16px; --shadow:0 4px 16px #25334b08;
  --staff-width:880px;
}
[hidden] { display:none !important; }
body { padding-bottom:0; line-height:1.45; font-size:14px; }
body.staff-signed-in { padding-bottom:calc(82px + env(safe-area-inset-bottom,0px)); }
body::after { content:none !important; }
.staff-shell { width:min(var(--staff-width),100%); padding:16px 14px 24px; }
.staff-topbar { padding:10px max(14px,calc((100vw - var(--staff-width))/2 + 14px)); gap:10px; background:#fff; }
.staff-brand { gap:8px; min-width:0; }
.staff-brand img { width:40px; height:34px; }
.staff-brand strong { font-size:16px; }
.staff-brand small { font-size:11px; }
.staff-topbar-actions { gap:7px; }
.staff-topbar-actions .staff-profile { min-height:44px; padding:7px 10px; border:1px solid var(--line); border-radius:10px; font-size:12px; font-weight:700; white-space:nowrap; }
.staff-topbar-actions .staff-profile i { font-size:16px; color:var(--brand); }
.staff-bottom-nav.staff-personal-nav { width:min(var(--staff-width),100%); bottom:0; padding:6px 8px calc(7px + env(safe-area-inset-bottom,0px)); border-radius:16px 16px 0 0; border-bottom:0; gap:3px; background:#fff; box-shadow:0 -5px 24px #25334b12; }
.staff-bottom-nav a { justify-content:center; min-height:58px; padding:6px 2px; color:#58677e; font-size:11px; font-weight:700; border-radius:11px; gap:3px; }
.staff-bottom-nav a i { font-size:21px; }
.staff-bottom-nav a.active { background:var(--brand-soft); color:var(--brand-strong); }
.staff-hero,.staff-job-hero { background:#fff; padding:18px; border-radius:var(--radius); border:1px solid var(--line); border-top:3px solid var(--brand); }
.staff-hero h1,.staff-job-hero h1 { font-size:clamp(22px,4.5vw,30px); line-height:1.2; overflow-wrap:anywhere; margin:4px 0 12px; }
.staff-hero-compact h1 { margin-bottom:0; }
.staff-hero-description { margin:8px 0 0; color:var(--muted); font-size:13px; }
.staff-eyebrow { font-size:11px; letter-spacing:.08em; }
.staff-section { margin-top:12px; padding:16px; border-radius:var(--radius); }
.staff-section-head { margin-bottom:12px; flex-wrap:wrap; }
.staff-section-head h2 { font-size:18px; line-height:1.3; }
.staff-section-head h2 i { color:var(--brand); margin-right:3px; }
.staff-section-head > small { font-size:12px; }
.staff-section-head > a,.staff-back { min-height:44px; display:inline-flex; align-items:center; }
.staff-focus-card { margin-top:12px; border-radius:var(--radius); padding:17px; background:#f7f9ff; border-color:#d3daf5; }
.staff-focus-card.is-live { background:#effcf9; border-color:#9cddcf; }
.staff-focus-card.is-live .staff-focus-top { color:#087d72; }
.staff-focus-card.is-pending { background:#fff8ee; border-color:#edc99d; }
.staff-focus-top { flex-wrap:wrap; }
.staff-focus-top strong { font-size:16px; }
.staff-focus-card h2 { font-size:20px; overflow-wrap:anywhere; }
.staff-focus-card p { overflow-wrap:anywhere; }
.staff-summary-grid { grid-template-columns:repeat(3,minmax(0,1fr)); }
.staff-summary-grid > div,.staff-me-kpis > div { padding:11px; border-radius:11px; background:#f7f8fc; min-width:0; }
.staff-summary-grid strong { font-size:clamp(16px,4vw,22px); overflow-wrap:anywhere; }
.staff-summary-grid span { font-size:12px; }
.staff-job-list { gap:7px; }
.staff-job-card { gap:10px; padding:12px; border-radius:12px; box-shadow:none; border-left:3px solid #a4b3d8; }
.staff-job-card.is-done { opacity:1; border-left-color:#8cb59a; background:#fbfdfb; }
.staff-job-card.is-cancelled,.staff-job-card.is-rescheduled { opacity:1; }
.staff-job-card.is-cancelled { border-left-color:#a0a9b9; }
.staff-job-card.is-rescheduled,.staff-job-card.is-report-due { border-left-color:#ad91d6; }
.staff-job-card.is-pending,.staff-job-card.is-late { border-left-color:#dfb46c; }
.staff-job-card.is-in-progress { border-left-color:#53aeb8; }
.staff-job-card:hover { border-color:#a6b6df; }
.staff-job-time strong { font-variant-numeric:tabular-nums; }
.staff-job-copy strong,.staff-job-copy span { white-space:normal; overflow-wrap:anywhere; }
.staff-job-copy strong { font-size:15px; line-height:1.35; }
.staff-job-copy span,.staff-job-copy small { font-size:12px; color:var(--muted); overflow-wrap:anywhere; }
.staff-job-copy small { line-height:1.35; }
.staff-status { display:inline-flex; justify-content:center; align-items:center; font-size:11px; line-height:1.25; padding:5px 8px; max-width:145px; white-space:normal; text-align:center; }
.staff-empty { padding:24px 12px; font-size:13px; }
.staff-day-heading { align-items:center; flex-wrap:wrap; }
.staff-day-heading small { font-size:12px; }
.staff-segmented { display:grid; grid-template-columns:1fr 1fr; gap:6px; background:#fff; border:1px solid var(--line); border-radius:12px; padding:5px; margin:12px 0; }
.staff-segmented a,.staff-profile-links a,.staff-week-links a { display:flex; align-items:center; justify-content:center; gap:6px; min-height:44px; border-radius:8px; text-decoration:none; font-weight:700; color:var(--muted-2); }
.staff-segmented a.active,.staff-week-links .staff-current-week { color:var(--brand-strong); background:var(--brand-soft); }
.staff-week-links { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:5px; }
.staff-week-links a,.staff-profile-links a { border:1px solid var(--line); background:#fff; font-size:12px; }
.staff-profile-links { display:flex; flex-wrap:wrap; gap:8px; margin-bottom:10px; }
.staff-profile-links a { padding:0 14px; }
.staff-alert { margin:12px 0; line-height:1.5; overflow-wrap:anywhere; }
.staff-alert p { margin:6px 0 0; }
.staff-job-meta { gap:6px; }
.staff-job-meta span { border-radius:8px; font-size:12px; padding:6px 9px; }
.staff-job-hero .staff-job-address { font-weight:700; color:var(--ink); margin:12px 0 8px; overflow-wrap:anywhere; }
.staff-job-hero .staff-job-detail { font-size:13px; margin:7px 0; overflow-wrap:anywhere; }
.staff-job-detail i,.staff-job-address i { color:var(--brand); margin-right:3px; }
.staff-instruction-card { background:#f5f7ff; border:1px solid #dce3f9; border-radius:10px; padding:11px 12px; margin:9px 0; overflow-wrap:anywhere; }
.staff-instruction-card strong { display:block; color:var(--brand-strong); margin-bottom:5px; font-size:13px; }
.staff-instruction-card div { font-size:14px; }
.staff-job-tools { margin-top:12px; }
.staff-map,.staff-alarm-pin { min-height:44px; border-radius:10px; }
.staff-running-card > div { border-radius:11px; min-width:0; }
.staff-running-card strong { overflow-wrap:anywhere; }
.staff-execution-section form + form { margin-top:9px; }
.staff-action-button,.staff-primary,.staff-secondary-button,.staff-change-submit { min-height:48px; border-radius:11px; line-height:1.3; }
.staff-primary { background:var(--brand); box-shadow:none; }
.staff-action-button.is-start { background:#16734a; border-color:#16734a; color:white; }
.staff-action-button.is-finish { background:var(--brand); border-color:var(--brand); color:white; }
.staff-action-button.is-pause { background:#fff8e8; border:1px solid #e6c484; color:#80541d; }
.staff-form-note { margin:10px 0 0; font-size:12px; line-height:1.45; }
.staff-quick-panel,.staff-change-panel { border-radius:12px; }
.staff-quick-panel summary,.staff-change-panel summary { min-height:58px; }
.staff-quick-panel[open] summary > i:last-child,.staff-change-panel[open] summary > i:last-child { transform:rotate(180deg); }
.staff-quick-panel summary small,.staff-change-panel summary small { font-size:12px; }
.staff-submitted-report summary > span { background:var(--brand-soft); color:var(--brand); }
.staff-submitted-report > p { margin:12px; overflow-wrap:anywhere; }
.staff-visit-status .staff-submitted-report { margin-bottom:10px; }
.staff-visit-status ul { padding-left:22px; }
.staff-field,.staff-field > span,.staff-choice-field legend,.staff-form label { font-size:13px; font-weight:700; }
.staff-field { min-width:0; }
.staff-field input,.staff-field select,.staff-field textarea,.staff-form input:not([type=checkbox]),.staff-form select { font-size:16px; border-radius:10px; min-width:0; min-height:46px; font-weight:500; }
.staff-field textarea { resize:vertical; min-height:86px; }
.staff-choice span { border-radius:10px; font-size:13px; }
.staff-choice input:checked + span { background:var(--brand-soft); color:var(--brand-strong); }
.staff-change-form { padding:13px; border-radius:0 0 12px 12px; }
.staff-section > .staff-change-form { padding:0; border:0; background:transparent; }
.staff-change-help,.staff-garage-help { font-size:13px; }
.staff-date-grid,.staff-change-datetime { grid-template-columns:repeat(2,minmax(0,1fr)); }
.staff-availability-toggle { padding:8px 12px; border:1px solid var(--line); border-radius:10px; font-weight:700; background:#f8f9fc; }
.staff-availability-toggle input { width:19px; height:19px; accent-color:var(--brand); }
.staff-weekday-options { gap:5px; }
.staff-weekday-options .staff-choice { flex:1 1 40px; }
.staff-weekday-options .staff-choice span { min-width:0; }
.staff-visit-participant { grid-template-columns:minmax(0,1fr) auto; align-items:end; background:#f7f8fc; border:1px solid var(--line); border-radius:11px; padding:10px; }
.staff-remove-participant { display:flex; align-items:center; justify-content:center; min-height:46px; border:1px solid #edc7c7; border-radius:9px; color:#a12d2d; font:inherit; font-size:12px; font-weight:700; background:#fff; cursor:pointer; padding:8px; }
.staff-add-participant { width:100%; border-style:dashed; }
.staff-photo-picker { border-radius:12px; }
[data-participation] > p { color:var(--muted); font-size:13px; }
.staff-me-kpis { gap:8px; }
.staff-me-kpis > div:last-child:nth-child(odd) { grid-column:1/-1; }
.staff-me-kpis span,.staff-me-metrics span,.staff-holiday-summary span { font-size:11px; line-height:1.35; }
.staff-me-kpis strong,.staff-me-metrics strong { overflow-wrap:anywhere; }
.staff-me-kpis small,.staff-me-metrics small,.staff-me-row-copy small,.staff-me-row-copy em,.staff-certificate-copy small,.staff-certificate-copy em { font-size:12px; line-height:1.4; }
.staff-me-row,.staff-certificate,.staff-reminder-card,.staff-garage-check { border-radius:11px; }
.staff-me-row-copy,.staff-certificate-copy { overflow-wrap:anywhere; }
.staff-me-row-copy strong { font-size:14px; }
.staff-request-row .staff-status { max-width:105px; }
.staff-request-note { font-size:13px; }
.staff-me-row-icon,.staff-certificate-icon,.staff-reminder-icon { border-radius:10px; }
.staff-me-note,.staff-reminder-copy small,.staff-reminder-types span,.staff-garage-history article small { font-size:12px; }
.staff-garage-summary > div { border-radius:11px; }
.staff-pill { font-size:11px; }
.staff-pill.is-warning { background:#fff1d7; color:#884d08; }
.staff-garage-check .staff-check-choice span { min-height:46px; font-size:12px; }
.staff-check-choice input:focus-visible + span,.staff-status-choice input:focus-visible + span,.staff-photo-picker:focus-within { outline:2px solid var(--brand); outline-offset:2px; }
.staff-login-wrap { min-height:calc(100vh - 48px); min-height:calc(100dvh - 48px); }
.staff-login-card { border-radius:18px; max-width:430px; padding:24px; }
.staff-login-logo { max-height:58px; }
:where(a,button,input,select,textarea,summary):focus-visible { outline:2px solid var(--brand); outline-offset:3px; }
button:disabled { opacity:.55; cursor:not-allowed; }
@media(max-width:480px) {
  .staff-shell { padding:12px 9px 20px; }
  .staff-section,.staff-hero,.staff-job-hero { padding:13px; }
  .staff-job-card { grid-template-columns:53px minmax(0,1fr); padding:10px; gap:6px 10px; }
  .staff-job-card > .staff-status { grid-column:2; justify-self:start; max-width:100%; }
  .staff-summary-grid > div { padding:9px 7px; }
  .staff-topbar-actions .staff-profile { padding:6px 8px; }
  .staff-me-row { gap:7px; padding:9px; grid-template-columns:32px minmax(0,1fr) auto; }
  .staff-me-row-icon { width:32px; height:32px; }
}
@media(max-width:360px) {
  .staff-bottom-nav a { font-size:10px; }
  .staff-topbar-actions .staff-profile span { display:none; }
  .staff-date-grid,.staff-change-datetime,.staff-visit-participant { grid-template-columns:1fr; }
  .staff-me-row.staff-request-row { grid-template-columns:32px minmax(0,1fr); }
  .staff-request-row .staff-status { grid-column:2; justify-self:start; max-width:100%; }
  .staff-week-links a { font-size:11px; }
}
@media(min-width:720px) {
  .staff-shell { padding:22px 18px 28px; }
  .staff-section,.staff-hero,.staff-job-hero { padding:20px; }
  .staff-bottom-nav.staff-personal-nav { bottom:14px; width:min(640px,calc(100% - 28px)); border:1px solid var(--line); border-radius:16px; padding:7px; }
  .staff-me-kpis { grid-template-columns:repeat(2,minmax(0,1fr)); }
}
.staff-brand span { min-width:0; }
.staff-brand small { white-space:nowrap; max-width:140px; overflow:hidden; text-overflow:ellipsis; }
.staff-job-jumps { display:grid; grid-template-columns:1fr 1fr; gap:7px; margin-top:10px; }
.staff-job-jumps a { display:flex; align-items:center; justify-content:center; gap:7px; min-height:44px; background:#fff; border:1px solid var(--line); border-radius:10px; color:var(--brand-strong); font-weight:700; text-decoration:none; }
#job-execution,#job-report { scroll-margin-top:80px; }
@media(max-width:390px) { .staff-brand small { max-width:94px; } }
