﻿/* BCSO presentation. The user-supplied patch remains byte-preserved. */
:root{--navy:#12253e;--navy-deep:#0b192b;--ink:#182c45;--muted:#52647a;--blue:#245b91;--blue-light:#eaf2fa;--silver:#cbd4df;--surface:#fff;--canvas:#f1f4f8;--radius:12px;--shadow:0 4px 20px rgba(18,37,62,.045)}
body{font-family:"Segoe UI",Arial,sans-serif;font-size:14px;line-height:1.5;color:var(--ink);background:var(--canvas)}
header{background:var(--navy);color:white;padding:20px 30px;align-items:center;border-bottom:3px solid var(--silver);gap:18px}
.office-brand{display:flex;align-items:center;gap:18px;min-width:0}.office-star{width:76px;height:76px;object-fit:contain;flex:none}.office-brand strong{display:block;font-size:23px;line-height:1.25;font-weight:650;letter-spacing:-.025em}.brand-purpose{display:block;font-size:14px;color:#dce5f0;margin-top:3px}.prototype-notice{color:#c7d6e8;font-size:11px!important;letter-spacing:.015em!important;margin:7px 0 0!important}.mode{padding:6px 11px;background:#213b59;color:#e6edf5;border:1px solid #50647e;border-radius:30px;font-size:11px;white-space:nowrap}.access-controls{color:#e4edf7;margin-left:auto;gap:12px}.access-controls button{background:transparent;color:white;border-color:#6f829a;font-size:12px;padding:7px 12px}.access-controls button:hover{background:#294563}.access-controls .identity-details{font-size:12px}.access-controls .identity-details p{background:var(--navy-deep);color:white;border-radius:8px;padding:10px}.access-controls details summary{color:white}
.layout{grid-template-columns:190px minmax(0,1fr);min-height:calc(100vh - 177px)}nav{background:var(--navy-deep);border-right:1px solid #243950;padding:22px 12px}nav button{color:#cfdae8;border:1px solid transparent;border-radius:8px;padding:11px 14px;margin-bottom:7px;font-size:14px;font-weight:550;background:transparent}nav button:hover{background:#1e3551;color:white}nav button[aria-current]{background:#263e5a;border-color:#5d7490;color:white;box-shadow:inset 3px 0 #b7d6f4}nav button:disabled{opacity:.65}nav p{color:#b8c8da}main{padding:30px 34px;max-width:1550px}footer{padding:14px 30px;background:var(--surface);color:var(--muted);font-size:11px;border-color:var(--silver)}
h1{font-size:27px;line-height:1.2;font-weight:650;letter-spacing:-.03em;margin:0 0 14px}h2{font-size:19px;font-weight:650;letter-spacing:-.015em}h3{font-size:15px;font-weight:650}h4{font-size:14px}p{line-height:1.55}section{border:1px solid #d6dee8;border-radius:var(--radius);padding:22px;margin:18px 0;box-shadow:var(--shadow)}section section{box-shadow:none}.published-period{font-size:32px;color:var(--navy);letter-spacing:-.035em;font-weight:650}.subtitle{font-size:13px;color:var(--muted);margin-bottom:22px}.staffing-grid{gap:14px}.staffing-card{padding:18px;border:1px solid #c6d6e8;border-radius:9px}.staffing-card h3{font-size:15px;letter-spacing:.03em}.staffing-card p strong{font-size:23px;font-weight:650}.staffing-card p:last-child{font-size:14px}.staffing-employees{list-style:none;margin:12px 0 0;padding:0}.staffing-employees li+li{margin-top:9px}.staffing-employees span,.staffing-employees small{display:block}.staffing-employees small{color:var(--muted);font-size:11px;line-height:1.45;margin-top:2px}.coverage-finding{font-size:20px;color:var(--navy);letter-spacing:-.02em}.connection-status{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:12px}.connection-status p{margin:0}.subtle{color:var(--muted);font-size:12px}
button,select,input,textarea{font-family:inherit;font-size:14px;border-radius:7px;border-color:#aebccd;color:var(--ink);max-width:100%}button{background:white;padding:9px 14px;font-weight:550;line-height:1.4;transition:background-color .12s,border-color .12s}button:hover{background:var(--blue-light);border-color:#6a89ad}button[type=submit],#create-schedule,#review-publication{background:var(--blue);color:white;border-color:var(--blue)}button[type=submit]:hover,#create-schedule:hover,#review-publication:hover{background:#194775;border-color:#194775}button:disabled{opacity:1;background:#edf1f5;color:#657487;border-color:#d3dce5;cursor:not-allowed}nav button:disabled{background:transparent;color:#aab8c9;border-color:transparent}input,select{padding:9px 11px;min-height:40px;background:white}textarea{padding:10px 12px;min-height:76px;background:white;resize:vertical;line-height:1.5}input[type=checkbox]{width:17px!important;height:17px;min-height:17px;margin:3px 5px 0 0;accent-color:var(--blue);flex:none}label{font-size:13px;gap:8px}fieldset{border:0;padding:0;margin:0;min-width:0}legend{font-weight:650}input[readonly]{background:#edf2f7;color:#52647a}form fieldset>label,form>label{margin:12px 0}.controls{padding:13px 15px;border:1px solid #d6dee8;border-radius:9px;background:white;gap:18px}.controls label{font-size:12px;font-weight:550}
:where(button,input,select,textarea,summary,a,.scroll):focus-visible{outline:3px solid #357aba;outline-offset:3px}main:focus-visible{outline:3px solid #357aba;outline-offset:-3px}.skip:focus{background:white;color:var(--navy);border-radius:6px;z-index:20}.details{border-color:#d6dee8;border-radius:9px;padding:12px 15px;margin:14px 0;background:#fafbfd;box-shadow:none}.details summary{font-size:12px;color:#37516e;font-weight:600}.details p{color:var(--muted);line-height:1.6}.details[open]>summary{margin-bottom:12px}pre{font-size:11px;color:#334a65;background:#edf2f7;padding:14px;border:1px solid #d9e1ec}.employee-row{border-radius:9px;border-color:#cbd6e3}.employee-row>summary{font-size:13px;padding:12px 14px}.draft-card,.leave-card{border-radius:10px;border-color:#cbd6e3;padding:14px;box-shadow:var(--shadow)}.draft-card>button{background:var(--blue-light);color:var(--navy);border-color:#c1d1e4}.history-list button{background:white;border-color:#cbd6e3;border-radius:9px;padding:13px 18px}.flow{font-size:12px;color:var(--muted)}
.DAY,.shift.DAY{background:#e5eff9;color:#173e65}.NIGHT,.shift.NIGHT{background:#e9e9f3;color:#353950}.Off,.shift.Off{background:#eef1f4;color:#4a586b}.legend{gap:7px}.legend span,.shift{border:1px solid rgba(38,60,86,.12);font-weight:550;border-radius:6px}.legend span{font-size:11px}.shift{min-width:50px;padding:5px 8px;font-size:12px}.scroll{border-color:#cbd6e3;border-radius:10px;margin:12px 0;box-shadow:var(--shadow)}table{min-width:760px}caption{padding:12px 14px;font-size:12px;background:#f8fafc;color:#3c5570;border-bottom:1px solid #dce4ee}thead th{background:var(--navy);font-weight:550;padding:11px 6px}tbody th{font-weight:600;font-size:13px}th:first-child{min-width:145px}td,tbody th{padding:8px 10px}tbody tr:nth-child(even) td,tbody tr:nth-child(even) th{background:#fafbfd}.assignment-interval{font-size:10px;color:#52647a}
.state{border:1px solid #c3d5e9;border-left:4px solid #396d9e;background:#edf4fb;color:#213e5d;border-radius:9px;padding:16px 18px;line-height:1.6;overflow-wrap:anywhere}.state.error,.error{background:#fff2ed;color:#803d29;border-color:#e6bcab;border-left-color:#a95135}.command-notice:empty{display:none}.command-notice{background:white;padding:0 30px;border-bottom:1px solid #d6dee8}.command-notice[hidden]{display:none}.command-notice>details{margin:8px 0;font-size:12px}.command-notice ul{padding-left:20px}.finding{border-left:3px solid #bf8e3b;border-top:0;background:#fffaf0;border-radius:5px;padding:12px 14px;margin:12px 0}.finding h4{color:#684919}.finding p{font-size:13px}.feasibility>h3{font-size:18px}.impact-summary{background:var(--blue-light);border:1px solid #cad9e9;border-radius:9px}#leave-actions{border-color:#bdcddd;border-radius:10px;background:#f8fafc}.leave-findings li{margin:9px 0}.comparison-grid>section{border-radius:10px}#setup-create,#setup-save,#setup-approve,#draft-adopt{border-radius:10px;padding:18px;border-color:#cbd6e3}.date-range{border-radius:10px;border-color:#b8c9dc;background:#fafcff;padding:14px;max-width:620px}.range-picker-panel>summary{color:var(--blue);font-size:13px;font-weight:600}.range-month{font-size:13px}.range-month button{padding:6px 10px}.range-week button{font-size:12px;background:white;font-weight:500;border-color:#cbd6e3}.range-week .range-selected{background:#e5effa;color:#1e466d;border-color:#abc1db}.range-week .range-edge{background:var(--navy);color:white;border-color:var(--navy)}.range-week button:disabled{color:#6f7b8a;background:#f0f3f7}.range-caption{font-size:13px;color:#284a70}
.login-shell{display:grid;grid-template-columns:minmax(0,.95fr) minmax(0,1.05fr);padding:0;overflow:hidden;max-width:1020px;margin:28px auto;border-color:#c3cedc;box-shadow:0 18px 45px rgba(18,37,62,.08)}.login-art{background:var(--navy);display:flex;flex-direction:column;justify-content:center;min-width:0}.patrol-photo{display:block;width:100%;height:auto;object-fit:contain}.login-art-caption{display:flex;align-items:center;gap:18px;padding:22px 28px;color:#e6edf6}.shoulder-patch{width:65px;height:auto;object-fit:contain;flex:none;border-radius:2px}.login-art-caption p{font-size:17px;line-height:1.4;margin:0}.login-art-caption span{display:block;font-size:11px;color:#c9d8e9;margin-top:8px}.login-panel{padding:45px 38px;min-width:0}.eyebrow{font-size:11px;text-transform:uppercase;letter-spacing:.12em;color:var(--blue);font-weight:650}.login-panel h1{font-size:31px;line-height:1.16;margin:15px 0;max-width:360px}.login-intro{color:var(--muted);font-size:14px}.development-label{display:inline-block;background:#edf2f8;border:1px solid #cad5e2;color:#334e6c;padding:5px 9px;font-size:11px;border-radius:5px;margin-bottom:0}#local-login{display:flex;flex-direction:column;align-items:stretch;gap:16px;margin:26px 0}#local-login label{width:100%;margin:0;color:#334b66;font-weight:550}#local-login input{width:100%;margin-top:4px}#local-login button{padding:11px 16px}.login-panel .details{margin-top:24px}.login-panel .state{font-size:13px}body:has(#local-login) .layout,body:has(#retry-service) .layout{grid-template-columns:minmax(0,1fr)}body:has(#local-login) nav,body:has(#retry-service) nav{display:none}body:has(#local-login) main{max-width:1200px;margin:auto}
@media(max-width:1000px){header{padding:18px 22px}.office-brand strong{font-size:21px}.layout{grid-template-columns:165px minmax(0,1fr)}main{padding:26px 22px}.office-star{width:66px;height:66px}.login-panel{padding:30px 26px}.login-panel h1{font-size:28px}}
@media(max-width:760px){header{padding:14px 16px;gap:12px}.office-brand{gap:12px;flex:1}.office-star{width:54px;height:54px}.office-brand strong{font-size:18px}.brand-purpose{font-size:12px}.prototype-notice{font-size:10px!important}.mode{font-size:10px;padding:4px 8px}.access-controls{width:100%;margin:0;gap:10px}.layout{grid-template-columns:minmax(0,1fr)}nav{padding:9px 10px;display:flex;gap:5px;border-right:0;border-bottom:1px solid #cbd4df}nav button{width:auto;margin:0;font-size:12px;padding:9px 11px}nav button[aria-current]{box-shadow:none}main{padding:22px 14px}h1{font-size:24px}.published-period{font-size:26px}section{padding:17px;margin:14px 0}.controls{gap:12px;padding:12px}.controls label{flex:1 1 140px}.controls select{width:100%}.staffing-card{padding:15px}.connection-status{align-items:flex-start}.details{padding:12px}.command-notice{padding:0 14px}.login-shell{grid-template-columns:minmax(0,1fr);margin:8px 0}.login-panel{padding:28px 24px;grid-row:1}.login-panel h1{font-size:28px}.login-art{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);align-items:center}.login-art-caption{padding:16px;gap:10px}.shoulder-patch{width:44px}.login-art-caption p{font-size:13px}.login-art-caption span{font-size:10px}.date-range{padding:12px}.range-inputs label{min-width:120px}#leave-actions{position:static}footer{padding:14px 16px}}
@media(prefers-reduced-motion:reduce){button{transition:none}}
@media print{header{background:white;color:#182c45}.brand-purpose,.prototype-notice{color:#52647a}.office-star{width:54px;height:54px}nav,.access-controls,.command-notice,footer{display:none}.layout{display:block}main{padding:0}section,.scroll{box-shadow:none}.scroll{overflow:visible}table{min-width:0}.mode{color:#182c45;background:white}}
.setup-rule{border:1px solid #cbd6e3;border-radius:9px;margin:9px 0;background:#fff}.setup-rule>summary{cursor:pointer;padding:12px 14px;font-size:13px;font-weight:600}.setup-rule>summary span{font-size:12px;font-weight:400;color:#52647a;margin-left:12px}.setup-rule>summary:focus-visible{outline:3px solid #357aba;outline-offset:2px}#setup-save .setup-rule>fieldset{border:0;margin:0;padding:0 14px 14px}.state.empty{background:#fff;border-color:#ccd6e2;color:#52647a;border-left-color:#91a4bb}.state.loading{background:#edf4fb;color:#213e5d}
.setup-area-tabs{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;max-width:1080px;margin:18px 0 22px}.setup-area-tabs button{display:grid;gap:5px;min-height:72px;padding:14px 16px;text-align:left;border:1px solid #294053;background:#101416}.setup-area-tabs button span{font-size:.78rem;color:#c8bda9;font-weight:400}.setup-area-tabs button[aria-selected="true"]{border-color:#2d7fc2;background:#15314a;box-shadow:inset 0 0 0 1px #2d7fc2}.setup-current,.setup-continue,.setup-editor{max-width:1080px}.setup-draft-list{display:grid;gap:12px}.setup-draft-list .draft-card{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:14px;max-width:none}.setup-draft-list .draft-card p{margin:5px 0;color:var(--muted);font-size:13px}.setup-draft-list .draft-card .details{grid-column:1/-1;margin:0}.setup-new{margin-top:18px;border-top:1px solid #d6dee8;padding-top:14px}.setup-new>summary,.setup-section>summary{cursor:pointer;font-weight:650}.setup-new>summary{color:var(--blue);padding:8px 0}.setup-new form{margin-top:14px}.setup-editor{padding:22px}.setup-editor>.section-heading{border-bottom:1px solid #d6dee8;padding-bottom:16px;margin-bottom:14px}.setup-editor>.section-heading h2{font-size:23px;margin:0}.setup-editor>.section-heading p{margin:6px 0 0;color:var(--muted);font-size:13px}.setup-section{border:1px solid #cbd6e3;border-radius:10px;margin:12px 0;background:#fff}.setup-section>summary{display:flex;align-items:center;gap:10px;padding:16px;color:var(--navy);font-size:16px}.setup-section>summary>span{display:inline-grid;place-items:center;width:28px;height:28px;border-radius:50%;background:var(--blue);color:#fff;font-size:13px;flex:none}.setup-section>summary>small{margin-left:auto;color:var(--muted);font-weight:500;font-size:12px}.setup-section[open]>summary{border-bottom:1px solid #d6dee8}.setup-section-body{padding:18px}.setup-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px 18px}.setup-grid label{display:flex!important;flex-direction:column;align-items:flex-start!important}.setup-grid input,.setup-grid select{width:100%!important}.setup-help{grid-column:1/-1;margin:0 0 8px}.policy-choice{font-weight:650;margin-bottom:8px!important}.setup-save-panel{background:#f4f8fc;border:1px solid #bed0e3;margin:18px 0 0}.setup-save-panel h3{margin-top:0}.setup-save-panel label{display:flex;flex-direction:column;align-items:flex-start}.setup-save-panel button{min-height:44px}.setup-editor #setup-save{border:0;padding:0}.setup-editor #setup-save>fieldset{border:0;padding:0}.setup-editor .employee-row>fieldset{padding:0 16px 16px}.setup-editor .employee-row>summary{min-height:46px}.setup-editor .employee-row .details{background:#f8fafc}.setup-editor select{min-width:180px}
@media(max-width:600px){.setup-area-tabs{grid-template-columns:minmax(0,1fr)}.setup-editor{padding:15px}.setup-draft-list .draft-card{grid-template-columns:minmax(0,1fr)}.setup-draft-list .draft-card>button{width:100%}.setup-draft-list .draft-card .details{grid-column:1}.setup-section>summary{padding:13px;font-size:14px}.setup-section>summary>small{display:none}.setup-section-body{padding:14px}.setup-grid{grid-template-columns:minmax(0,1fr)}.setup-help{grid-column:1}.setup-editor select{width:100%;min-width:0}.setup-editor .mode{display:none}}

/* Read-only supervisor attention and published staffing. */
.published-summary{display:flex;justify-content:space-between;align-items:center;gap:24px;margin-bottom:18px;border-top:4px solid var(--blue)}.published-summary h1{font-size:16px;color:var(--muted);margin:0 0 6px}.published-summary .published-period{font-size:clamp(23px,2.3vw,32px)}.published-summary .subtitle{margin:6px 0 0}.published-summary>button{background:var(--blue);color:white;min-height:44px}.dashboard-workspace{display:grid;gap:18px;align-items:start}.dashboard-workspace:has(.attention){grid-template-columns:minmax(0,1.35fr) minmax(0,1fr)}.dashboard-workspace>section{margin:0 0 18px;min-width:0}.attention h2{font-size:19px}.attention h3{font-size:14px;margin:18px 0 8px}.attention-counts{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.attention-counts>button,.attention-counts>div{padding:10px;border:1px solid #cbd6e3;border-radius:8px;background:#f8fafc;text-align:left;font-size:12px;line-height:1.5;min-height:66px}.attention-counts strong{display:block;font-size:23px;line-height:1.1;color:var(--navy)}.attention-list{list-style:none;margin:0;padding:0}.attention-item{display:flex;gap:12px;align-items:start;justify-content:space-between;border-top:1px solid #dce4ee;padding:12px 0}.attention-item>div{min-width:0;flex:1}.attention-item>button{flex:0 0 auto;min-height:44px}.attention-item strong{font-size:13px;overflow-wrap:anywhere}.attention-item p{margin:4px 0;font-size:12px}.attention-label{font-size:11px;color:#52647a}.attention-label.blocked,.blocker-text{color:#795121;font-weight:600}.draft-attention:has(.blocked){border-left:3px solid #bd903f;padding-left:10px}.attention-findings{padding-left:17px;font-size:12px;margin:6px 0}.attention-findings li{margin:5px 0}.attention-item details{font-size:11px;margin:8px 0 0}.attention .unsupported-note{font-size:11px;line-height:1.65;margin-top:14px;color:#52647a}.attention .subtle{font-size:12px}.dashboard-workspace .staffing-grid{grid-template-columns:1fr}.dashboard-workspace .staffing-card{padding:16px}.dashboard-workspace .staffing .section-heading{flex-wrap:wrap;gap:10px}.dashboard-workspace select{min-height:44px}.dashboard-workspace button:focus-visible,.published-summary button:focus-visible{outline:3px solid #357aba;outline-offset:3px}@media(max-width:1100px){.dashboard-workspace:has(.attention){grid-template-columns:minmax(0,1fr)}.dashboard-workspace .staffing-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:600px){.published-summary{align-items:start;flex-direction:column;gap:14px;padding:18px}.published-summary>button{width:100%}.attention{padding:16px}.attention .section-heading{gap:8px}.attention h2{font-size:18px}.attention-counts{gap:6px}.attention-counts>button,.attention-counts>div{padding:9px 7px;font-size:11px}.attention-item{flex-wrap:wrap}.attention-item>div{flex-basis:100%}.attention-item>button{width:100%}.dashboard-workspace .staffing-grid{grid-template-columns:1fr}.dashboard-workspace .staffing{padding:16px}.attention button{min-height:44px}.attention details>summary{min-height:36px;padding-top:8px}}

@media(max-width:1100px){.dashboard-workspace:has(.attention)>.staffing{order:-1}}@media(max-width:600px){.dashboard-workspace .staffing-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.dashboard-workspace .staffing-card{padding:12px}.dashboard-workspace .staffing-card strong{font-size:19px}.dashboard-workspace .staffing-card h3 span{font-size:10px}nav button,.access-controls button{min-height:44px}.attention details>summary{min-height:44px}}@media(max-width:350px){.dashboard-workspace .staffing-grid{grid-template-columns:1fr}}

.attention-subheading{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:8px;margin:18px 0 8px}.attention-subheading h3{margin:0}.attention-subheading button{font-size:12px;min-height:44px}

@media(max-width:600px){.access-controls{gap:8px;width:100%;margin-top:0}.access-controls>span{flex-basis:100%;font-size:11px}.access-controls .identity-details>summary{padding:10px 4px;min-height:44px}}

@media(max-width:1100px){.dashboard-workspace:has(.attention)>.staffing{order:0}}@media(max-width:600px){.attention-item{flex-wrap:nowrap}.attention-item>div{flex-basis:auto}.attention-item>button{width:auto;max-width:110px;font-size:12px;padding:9px 10px}.attention-counts>button{font-size:12px}}

/* Native-button disclosure navigation on phones; tablet/desktop links stay visible. */
.phone-navigation{display:none}@media(min-width:601px) and (max-width:760px){#navigation-pages{display:flex;flex-wrap:wrap;gap:5px}}
@media(max-width:600px){.layout{grid-template-rows:max-content minmax(0,1fr)}nav{display:block;overflow:visible;padding:10px 14px;border-bottom:1px solid #40556d}.phone-navigation{display:flex;align-items:center;justify-content:space-between;gap:14px}nav #phone-menu{display:flex;align-items:center;justify-content:space-between;gap:12px;width:auto;min-width:100px;min-height:44px;margin:0;border-color:#6f829a;background:#213b59;color:white;font-size:14px}.phone-current{min-width:0;color:#e4edf7;font-size:14px;text-align:right;overflow-wrap:anywhere}#navigation-pages{display:none}nav[data-menu-open="true"] #navigation-pages{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-top:12px;padding-top:12px;border-top:1px solid #40556d}#navigation-pages button{width:100%;min-height:44px;margin:0;white-space:normal;font-size:14px;text-align:left;padding:11px 12px}#navigation-pages button[hidden]{display:none}nav button:focus-visible{outline:3px solid #b7d6f4;outline-offset:2px}}
.current-version{font-weight:900;text-transform:uppercase;letter-spacing:.04em}.draft-action-banner,.action-blocker,.schedule-reminder{border:2px solid #e5484d!important;background:#351114!important;color:#fff!important}.draft-action-banner h2,.action-blocker h3,.draft-action-banner p,.action-blocker p,.action-blocker li,.schedule-reminder strong,.schedule-reminder p{color:#fff!important}.duty-form-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;align-items:end}.duty-form-grid label{display:flex;flex-direction:column;align-items:stretch;gap:7px}.duty-form-grid .duty-reason{grid-column:span 2}.duty-form-grid textarea{min-height:42px}.creation-cell-editor{border:2px solid #2d7fc2!important}.creation-cell-editor .form-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px}.history-picker select{width:min(100%,800px)}.schedule-reminder{padding:14px;border-radius:7px;margin-bottom:16px}@media(max-width:900px){.duty-form-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.duty-form-grid .duty-reason{grid-column:1/-1}}@media(max-width:600px){.duty-form-grid,.creation-cell-editor .form-grid{grid-template-columns:1fr}.duty-form-grid .duty-reason{grid-column:auto}.draft-action-banner button{display:block;margin:8px 0 0}}
.calendar-dialog{background:var(--panel);color:var(--ink);border-color:var(--border)}
.legacy-status{display:none!important}
/* Fleet workspace */
.fleet-cards,.fleet-activity{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(280px,100%),1fr));gap:14px}.fleet-cards article,.fleet-activity article,.fleet-panel{border:1px solid #294053;border-radius:10px;padding:16px;background:#101416}.fleet-cards h3,.fleet-activity h3{margin:0 0 6px}.fleet-status{display:inline-flex;align-items:center;padding:5px 9px;border-radius:999px;background:#163d5d;color:#b9defa;font-weight:700;font-size:.82rem}.fleet-service-needed,.fleet-limited-use{background:#5b3a07;color:#ffe1a7}.fleet-out-of-service,.fleet-temporarily-out-of-service{background:#5b1014;color:#ffd0d0}.fleet-retired{background:#34383d;color:#ddd}.fleet-warning{color:#ffcb66;font-weight:700}.fleet-form-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(320px,100%),1fr));gap:18px}.fleet-form-grid form,.fleet-panel form{border:1px solid #294053;border-radius:10px;padding:16px}.fleet-form-grid label,.fleet-panel label{display:grid;gap:6px;margin:10px 0;min-width:0}.fleet-form-grid form,.fleet-panel form,.fleet-unit-form{min-width:0}.fleet-form-grid label>select,.fleet-panel label>select,.fleet-unit-form>label>select{width:100%;min-width:0}.fleet-inline{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(190px,100%),1fr));gap:12px}.fleet-panel>summary{font-weight:700;color:#70bdf4;cursor:pointer}.fleet-panel[open]>summary{margin-bottom:14px}.fleet-entry-toggle{width:100%;text-align:left;font-weight:700;font-size:1.05rem;padding:12px 16px;border:1px solid #294053;border-radius:10px;background:#101416;color:#70bdf4;cursor:pointer}.fleet-entry-toggle[aria-expanded="true"]{border-radius:10px 10px 0 0;border-bottom:0}.fleet-entry-form{border-radius:0 0 10px 10px!important;margin-top:0!important}
.fleet-riding-driver[hidden]{display:none}
.duty-form-grid label[hidden]{display:none}
.fleet-assignment-fields{grid-template-columns:repeat(4,minmax(0,1fr));align-items:start;gap:14px}.fleet-assignment-fields>label{display:flex;flex-direction:column;align-items:stretch;gap:7px;margin:0}.fleet-assignment-fields>label>input,.fleet-assignment-fields>label>select,.fleet-assignment-fields>label>textarea{width:100%;min-width:0}.fleet-assignment-reason{grid-column:1/-1}.fleet-assignment-reason textarea{min-height:78px}.fleet-assignment-footer{display:flex;align-items:center;justify-content:space-between;gap:18px;margin-top:16px;padding-top:16px;border-top:1px solid #294053}.fleet-assignment-footer .fleet-confirmation{display:flex;align-items:flex-start;gap:8px;margin:0;max-width:650px;line-height:1.4}.fleet-assignment-footer button{flex:none;min-width:165px}@media(max-width:1000px){.fleet-assignment-fields{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:760px){.fleet-assignment-fields{grid-template-columns:minmax(0,1fr)}.fleet-assignment-reason{grid-column:auto}.fleet-assignment-footer{align-items:stretch;flex-direction:column}.fleet-assignment-footer button{width:100%}}
.fleet-card-open{width:100%;display:flex;align-items:flex-start;justify-content:space-between;gap:12px;text-align:left;border:0;padding:0;background:transparent}.fleet-card-open span:first-child{display:grid;gap:5px}.fleet-card-open strong{font-size:1.1rem}.fleet-card-open small{color:#c8bda9}.fleet-unit-warning,.fleet-calendar-alerts{border:2px solid #9a6b12;background:#2b210d;color:#ffdc8a;border-radius:12px;padding:16px}.fleet-unit-warning h2,.fleet-calendar-alerts h2{margin-top:0}.fleet-unit-out-of-service,.fleet-unit-temporarily-out-of-service,.fleet-calendar-alerts.fleet-alert-critical{border-color:#b51d24;background:#300709;color:#ffd0d0}.fleet-calendar-alerts>div{display:flex;gap:8px;flex-wrap:wrap}.fleet-calendar-alerts .fleet-banner-service-needed,.fleet-calendar-alerts .fleet-banner-limited-use{border-color:#9a6b12;background:#2b210d;color:#ffdc8a}.fleet-calendar-alerts .fleet-banner-out-of-service,.fleet-calendar-alerts .fleet-banner-temporarily-out-of-service{border-color:#b51d24;background:#300709;color:#ffd0d0}.fleet-unit-summary{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(175px,100%),1fr));gap:12px}.fleet-unit-summary article{border:1px solid #294053;border-radius:10px;padding:14px;display:grid;gap:6px}.fleet-unit-summary span{color:#c8bda9}.fleet-unit-summary strong{font-size:1.25rem}.fleet-unit-form,.fleet-unit-grid>article{border:1px solid #294053;border-radius:10px;padding:18px}.fleet-unit-form>label{display:grid;gap:6px;margin:10px 0;min-width:0}.fleet-form-grid.compact{grid-template-columns:repeat(auto-fit,minmax(min(210px,100%),1fr))}.fleet-form-grid.compact label{display:grid;gap:6px}.fleet-unit-grid{display:grid;grid-template-columns:minmax(0,2fr) minmax(0,1fr);gap:18px}.fleet-unit-grid>article{min-width:0}.fleet-unit-grid dl{display:grid;grid-template-columns:max-content minmax(0,1fr);gap:8px 14px}.fleet-unit-grid dd{margin:0;min-width:0;overflow-wrap:anywhere}.fleet-control-list,.fleet-audit{list-style:none;padding:0;margin:0;display:grid;gap:8px}.fleet-control-list li,.fleet-audit li{display:flex;justify-content:space-between;gap:12px;align-items:center;border-bottom:1px solid #294053;padding:10px 0}.fleet-audit li{display:block}.fleet-control-note{color:#ffcb66}.fleet-schedule-alert{display:grid;gap:3px;width:100%;margin-top:7px;padding:8px;text-align:left;border-color:#9a6b12;background:#2b210d;color:#ffdc8a;white-space:normal}.fleet-schedule-alert.fleet-schedule-out-of-service,.fleet-schedule-alert.fleet-schedule-temporarily-out-of-service{border-color:#b51d24;background:#300709;color:#ffd0d0}.fleet-schedule-alert span{font-size:.72rem;font-weight:400;line-height:1.25}
.fleet-acknowledgment-alert{display:grid;gap:4px;width:100%;margin:10px 0;text-align:left;white-space:normal;border-color:#9a6b12;background:#2b210d;color:#ffdc8a}.fleet-acknowledgment-alert span{font-size:.78rem;font-weight:400}.fleet-acknowledged{color:#8fd2a5;font-weight:650}
.nav-badge.nav-badge-warning{background:#9a6b12;color:#fff3d1}.fleet-overview-attention{border:2px solid #9a6b12;background:#2b210d;color:#ffdc8a;border-radius:12px;padding:16px}.fleet-overview-attention.fleet-alert-critical{border-color:#b51d24;background:#300709;color:#ffd0d0}.fleet-overview-attention h2{margin-top:0}.fleet-overview-attention ul{list-style:none;padding:0;margin:12px 0;display:grid;gap:8px}.fleet-overview-attention li button{display:grid;gap:3px;width:100%;text-align:left;white-space:normal}.fleet-overview-attention li span{font-size:.82rem;font-weight:400}
.fleet-status-detail{margin-top:12px;padding:12px 14px;border:1px solid currentColor;border-radius:8px;background:rgba(0,0,0,.18)}.fleet-status-detail h3,.fleet-status-detail p{margin:0 0 6px}.fleet-status-detail small{opacity:.9}.fleet-status-detail-missing{border-style:dashed}.fleet-overview-attention li button span+span{margin-top:4px;color:inherit}
.fleet-cost-summary{border:1px solid #294053;border-radius:10px;padding:18px}.fleet-cost-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;margin-bottom:14px}.fleet-cost-heading h2,.fleet-cost-heading p{margin:0 0 5px}.fleet-cost-toggle{display:flex;gap:6px;flex-wrap:wrap}.fleet-cost-toggle button[aria-pressed="true"]{background:#0d4f82;border-color:#2d83c6;color:#fff}.fleet-cost-cards{grid-template-columns:repeat(3,minmax(0,1fr))}.fleet-cost-summary>.subtle{margin-bottom:0}.fleet-unit-current{grid-template-columns:repeat(3,minmax(0,1fr))}@media(max-width:760px){.fleet-cost-heading{flex-direction:column}.fleet-cost-cards,.fleet-unit-current{grid-template-columns:1fr}}
.fleet-custom-period{display:flex;align-items:end;gap:12px;flex-wrap:wrap;padding:14px;margin:0 0 14px;border:1px solid #31506a;border-radius:9px;background:#0d151d}.fleet-custom-period[hidden]{display:none}.fleet-custom-period label{display:grid;gap:6px}.fleet-history-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;margin-bottom:14px}.fleet-history-heading h2,.fleet-history-heading p{margin:0 0 5px}.fleet-export-actions{display:flex;gap:8px;flex-wrap:wrap}.fleet-report-exports{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-top:16px;padding-top:16px;border-top:1px solid #294053}.fleet-report-exports>div{display:grid;gap:8px;padding:14px;border:1px solid #294053;border-radius:9px}.fleet-report-exports span{color:#c8bda9;font-size:.82rem}.fleet-report-exports>div>div{display:flex;gap:8px;flex-wrap:wrap}.fleet-history-empty{margin-top:12px}.fleet-print-report{display:none}@media(max-width:760px){.fleet-history-heading{flex-direction:column}.fleet-export-actions,.fleet-export-actions button{width:100%}.fleet-report-exports{grid-template-columns:1fr}.fleet-custom-period{align-items:stretch;flex-direction:column}}
.fleet-export-help{max-width:520px;color:#c8bda9;font-size:.82rem}
.fleet-correction-panel{margin-top:12px;padding:12px 16px;border:1px solid #31506a;border-radius:9px;background:#0d151d}.fleet-correction-panel summary{cursor:pointer;color:#9bd3fb;font-weight:700}.fleet-correction-panel form{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(190px,100%),1fr));gap:12px;padding-top:16px}.fleet-correction-panel label{display:grid;gap:5px;margin:0;color:#d9e8f4}.fleet-correction-panel input,.fleet-correction-panel select,.fleet-correction-panel textarea{width:100%;min-width:0}.fleet-correction-panel input[type=checkbox]{width:auto}.fleet-correction-panel button{justify-self:start;align-self:end}
.fleet-activity-table{min-width:720px}.fleet-activity-table th,.fleet-activity-table td{white-space:nowrap}.fleet-activity-unit{padding:6px 9px;color:#9bd3fb;background:#132638;border-color:#31506a}.fleet-activity-unit:hover{background:#18344d}
@media(max-width:800px){.fleet-unit-grid{grid-template-columns:minmax(0,1fr)}.fleet-unit-summary{grid-template-columns:1fr 1fr}}
@page fleet-report{size:landscape;margin:.35in}
@media print{body.fleet-export-printing>:not(.fleet-print-report){display:none!important}body.fleet-export-printing .fleet-print-report{display:block!important;page:fleet-report;width:100%;border:0;padding:0;margin:0;box-shadow:none;color:#111;background:#fff}body.fleet-export-printing .fleet-print-report h1{font-size:22px;margin:0 0 6px}body.fleet-export-printing .fleet-print-report h2{font-size:14px;margin:0 0 5px}body.fleet-export-printing .fleet-print-report p{margin:4px 0}body.fleet-export-printing .fleet-print-report table{width:100%;border-collapse:collapse;font-size:8px;line-height:1.25}body.fleet-export-printing .fleet-print-report thead{display:table-header-group}body.fleet-export-printing .fleet-print-report tr{break-inside:avoid;page-break-inside:avoid}body.fleet-export-printing .fleet-print-report th,body.fleet-export-printing .fleet-print-report td{border:1px solid #777;padding:4px;text-align:left;vertical-align:top;white-space:normal;overflow-wrap:anywhere;word-break:normal}body.fleet-export-printing .fleet-print-report th{background:#e7eef6;-webkit-print-color-adjust:exact;print-color-adjust:exact}.fleet-print-generated{margin-top:10px;font-size:8px;color:#555}}

@media print{
  body.fleet-export-printing .fleet-print-report table{table-layout:fixed}
  body.fleet-export-printing .fleet-print-report th,body.fleet-export-printing .fleet-print-report td{overflow-wrap:break-word;word-break:normal;hyphens:none}
  body.fleet-export-printing [aria-label="Maintenance history"] th:nth-child(1){width:8%}
  body.fleet-export-printing [aria-label="Maintenance history"] th:nth-child(2){width:9%}
  body.fleet-export-printing [aria-label="Maintenance history"] th:nth-child(3){width:5%}
  body.fleet-export-printing [aria-label="Maintenance history"] th:nth-child(4){width:10%}
  body.fleet-export-printing [aria-label="Maintenance history"] th:nth-child(5){width:18%}
  body.fleet-export-printing [aria-label="Maintenance history"] th:nth-child(6){width:10%}
  body.fleet-export-printing [aria-label="Maintenance history"] th:nth-child(7){width:7%}
  body.fleet-export-printing [aria-label="Maintenance history"] th:nth-child(8){width:7%}
  body.fleet-export-printing [aria-label="Maintenance history"] th:nth-child(9){width:6%}
  body.fleet-export-printing [aria-label="Maintenance history"] th:nth-child(10){width:8%}
  body.fleet-export-printing [aria-label="Maintenance history"] th:nth-child(11){width:7%}
  body.fleet-export-printing [aria-label="Maintenance history"] th:nth-child(12){width:5%}
  body.fleet-export-printing [aria-label="Fuel history"] th:nth-child(1){width:9%}
  body.fleet-export-printing [aria-label="Fuel history"] th:nth-child(2){width:11%}
  body.fleet-export-printing [aria-label="Fuel history"] th:nth-child(3){width:6%}
  body.fleet-export-printing [aria-label="Fuel history"] th:nth-child(4){width:8%}
  body.fleet-export-printing [aria-label="Fuel history"] th:nth-child(5){width:9%}
  body.fleet-export-printing [aria-label="Fuel history"] th:nth-child(6){width:7%}
  body.fleet-export-printing [aria-label="Fuel history"] th:nth-child(7){width:7%}
  body.fleet-export-printing [aria-label="Fuel history"] th:nth-child(8){width:14%}
  body.fleet-export-printing [aria-label="Fuel history"] th:nth-child(9){width:9%}
  body.fleet-export-printing [aria-label="Fuel history"] th:nth-child(10){width:20%}
}

.schedule-export-help{display:block;max-width:280px;margin-top:5px;color:#c8bda9;font-size:.75rem;line-height:1.35}.schedule-print-report{display:none}
@page schedule-report{size:landscape;margin:.3in}
@media print{body.schedule-export-printing>:not(.schedule-print-report){display:none!important}body.schedule-export-printing .schedule-print-report{display:block!important;page:schedule-report;width:100%;margin:0;padding:0;border:0;box-shadow:none;color:#111;background:#fff}body.schedule-export-printing .schedule-print-report .section-heading button,body.schedule-export-printing .schedule-print-report .schedule-export-help,body.schedule-export-printing .schedule-print-report .controls,body.schedule-export-printing .schedule-print-report #published-duty-editor,body.schedule-export-printing .schedule-print-report .details,body.schedule-export-printing .schedule-print-report .calendar-day-add{display:none!important}body.schedule-export-printing .schedule-print-report .section-heading{margin:0 0 6px}body.schedule-export-printing .schedule-print-report .section-heading h1{font-size:18px;margin:0}body.schedule-export-printing .schedule-print-report .section-heading p,body.schedule-export-printing .schedule-print-report .legend{font-size:7px;margin:2px 0 5px}body.schedule-export-printing .schedule-print-report .scroll{width:100%;margin:5px 0;border:0;box-shadow:none;overflow:visible;break-inside:avoid;page-break-inside:avoid}body.schedule-export-printing .schedule-print-report table{width:100%;min-width:0;table-layout:fixed;border-collapse:collapse;font-size:7px;line-height:1.15}body.schedule-export-printing .schedule-print-report thead{display:table-header-group}body.schedule-export-printing .schedule-print-report tr{break-inside:avoid;page-break-inside:avoid}body.schedule-export-printing .schedule-print-report th,body.schedule-export-printing .schedule-print-report td{min-width:0;padding:3px;border:1px solid #777;white-space:normal;overflow-wrap:anywhere;word-break:normal;vertical-align:top}body.schedule-export-printing .schedule-print-report th:first-child{width:15%}body.schedule-export-printing .schedule-print-report thead th{background:#e7eef6;color:#111;-webkit-print-color-adjust:exact;print-color-adjust:exact}body.schedule-export-printing .schedule-print-report .shift{display:block;min-width:0;padding:2px 3px;font-size:7px;white-space:normal;overflow-wrap:anywhere}body.schedule-export-printing .schedule-print-report .calendar-agenda{margin:4px 0;padding:5px;border:1px solid #777;background:#fff;color:#111;break-inside:avoid}body.schedule-export-printing .schedule-print-report .calendar-agenda-days{gap:4px}body.schedule-export-printing .schedule-print-report .calendar-agenda-day{min-width:0;flex:1 1 20%}body.schedule-export-printing .schedule-print-report .calendar-agenda-event{padding:3px;border:1px solid #999;background:#fff;color:#111}body.schedule-export-printing .schedule-print-report button.calendar-agenda-event{display:grid!important;appearance:none;cursor:default}}

/* Unified schedule and fleet records center. */
.history-load-more{display:block;margin:16px auto 0;min-width:220px}
.history-tabs{display:flex;gap:8px;margin:18px 0;border-bottom:1px solid #294053}.history-tabs button{border:0;border-bottom:3px solid transparent;border-radius:8px 8px 0 0;padding:12px 18px;background:transparent;color:#c8d9e8}.history-tabs button[aria-selected="true"]{border-bottom-color:#42a5ea;background:#132638;color:#fff}.history-tabs button:focus-visible{outline:3px solid #70bdf4;outline-offset:2px}.history-workspace-panel{border:1px solid #294053;border-radius:10px;padding:20px;background:#101416}.history-workspace-panel[hidden]{display:none}.history-workspace-panel>h2{margin-top:0}.history-panel-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:18px}.history-panel-heading h2,.history-panel-heading p{margin:0 0 6px}.history-filter-grid{display:grid;grid-template-columns:repeat(4,minmax(150px,1fr));gap:12px;align-items:end;margin:18px 0;padding:16px;border:1px solid #294053;border-radius:9px;background:#0d151d}.history-filter-grid label{display:grid;gap:6px;margin:0}.history-filter-grid input,.history-filter-grid select{width:100%;min-width:0}.history-filter-actions{display:flex;gap:8px;grid-column:1/-1}.history-result-count{margin:12px 0;color:#c8bda9}.fleet-history-table{min-width:980px}.fleet-history-table th,.fleet-history-table td{vertical-align:top}.fleet-history-table td:nth-child(1),.fleet-history-table td:nth-child(2),.fleet-history-table td:nth-child(3){white-space:nowrap}.fleet-history-table td:nth-child(4){min-width:310px}.fleet-history-table td:nth-child(5){min-width:220px}.fleet-history-table td span{color:#c8bda9;font-size:.85rem}.history-activity{display:inline-flex;padding:4px 8px;border-radius:999px;background:#18344d;color:#b9defa!important;font-weight:700}.history-fuel{background:#123a2a;color:#aee4c4!important}.history-maintenance,.history-vehicle{background:#4b350c;color:#ffe1a7!important}.history-unit-link{padding:6px 9px;color:#9bd3fb;background:#132638;border-color:#31506a}@media(max-width:900px){.history-filter-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:600px){.history-tabs{display:grid;grid-template-columns:1fr 1fr}.history-tabs button{padding:11px 8px}.history-workspace-panel{padding:14px}.history-panel-heading{flex-direction:column}.history-filter-grid{grid-template-columns:1fr}.history-filter-actions,.history-filter-actions button,.history-panel-heading .fleet-export-actions,.history-panel-heading .fleet-export-actions button{width:100%}}
.state.warning{margin-bottom:12px;border-color:#9a6b12;border-left-color:#d29a1b;background:#2b210d;color:#ffdc8a}
.calendar-notes-row th,.calendar-notes-cell{background:#132236;vertical-align:top}
.calendar-notes-cell{min-width:8rem;padding:.45rem}
.calendar-note{display:block;width:100%;margin:.2rem 0;padding:.35rem .45rem;border:1px solid #52769a;border-radius:.45rem;background:#17324b;color:inherit;text-align:left;white-space:normal;overflow-wrap:anywhere}
.calendar-note strong,.calendar-note small{display:block}
.calendar-note small{margin-top:.15rem;font-size:.75rem;color:#c5d9e9}
.calendar-day-add{display:block;margin:.3rem auto 0;padding:.2rem .4rem;font-size:.72rem;white-space:nowrap}
.calendar-agenda{border:1px solid #344b5f;border-radius:10px;background:#0d1b29;padding:12px 0;margin:12px 0 8px}
.calendar-agenda h3{font-size:.87rem;margin:0 12px 10px;color:#d7e9f8}
.calendar-week-scroll{overflow-x:auto}
.calendar-week-scroll table{width:100%;min-width:850px;table-layout:fixed}
.calendar-week-scroll th:first-child{width:155px;min-width:155px}
.calendar-agenda-days{display:grid;grid-template-columns:155px repeat(7,minmax(0,1fr));min-width:850px;gap:0}
.calendar-agenda-days::before{content:""}
.calendar-agenda-day{display:grid;align-content:start;gap:6px;min-width:0;overflow-wrap:anywhere}
.calendar-agenda-day>time{font-size:.75rem;font-weight:700;color:#9fc7e8}
.calendar-agenda-event{display:grid;width:100%;gap:3px;padding:9px 10px;border:1px solid #40617f;border-radius:8px;background:#152e43;color:#eaf2f9;text-align:left;overflow-wrap:anywhere}
.calendar-agenda-event span,.calendar-agenda-event small{font-size:.75rem;color:#b9d3e6}
.calendar-agenda-event em{font-size:.72rem;font-style:normal;font-weight:700;color:#ffe2a3}
.calendar-agenda-event:hover{border-color:#79b4e0;background:#1a3953}
.calendar-event-editor{max-width:820px}
.calendar-note-floating{width:min(820px,calc(100vw - 24px));max-height:calc(100vh - 24px)}
.calendar-note-drag{cursor:move;touch-action:none;user-select:none}
.calendar-note-drag:focus-visible{outline:3px solid #2d8bd3;outline-offset:-3px}
.calendar-event-form{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;align-items:end}
.calendar-event-form label{min-width:0;margin:0}.calendar-event-form input,.calendar-event-form textarea{width:100%}
.calendar-event-wide,.calendar-event-times,.calendar-event-options{grid-column:1/-1}
.calendar-event-times{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.calendar-event-check,.calendar-event-options label{display:flex;align-items:center;gap:8px}
.calendar-event-check input,.calendar-event-options input{width:auto}
.calendar-event-options{display:flex;flex-wrap:wrap;gap:12px 28px;padding:12px;border:1px solid #344b5f;border-radius:8px}
.leave-success{max-width:720px;border-color:#376f55;background:#10271e}.leave-success h2{color:#b8efce}
@media(max-width:650px){.calendar-event-form,.calendar-event-times{grid-template-columns:1fr}.calendar-event-options{display:grid}}
.calendar-event-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-items:start;gap:8px 18px;margin:0}
.calendar-event-options legend{padding:0 5px;font-size:.85rem}
.calendar-event-options .subtle{grid-column:1/-1;margin:0}
.calendar-event-options input[type=radio]{width:auto;min-height:0;margin:0;accent-color:#69b7ed}
.calendar-event-leadership{display:flex;align-items:center;gap:8px;grid-column:1/-1}
.calendar-event-leadership input{width:auto!important;min-height:0}
.calendar-event-leadership-help{grid-column:1/-1;margin:-10px 0 0 25px}
@media(max-width:650px){.calendar-event-options{grid-template-columns:1fr}}

/* Calendar labels retain text as well as distinct colors for quick scanning. */
.legend .Off,.shift.Off{background:#4a1f25;color:#ffd9dc;border-color:#a44755}
.legend .LEADERSHIP,.shift.LEADERSHIP{background:#4a3b0c;color:#ffe78a;border-color:#c49e27}
.legend .CLERK,.shift.CLERK{background:#173b37;color:#b5f2e8;border-color:#3b9488}
.legend .DAY,.shift.DAY{background:#173958;color:#cceaff;border-color:#468dc0}
.legend .NIGHT,.shift.NIGHT{background:#342654;color:#e3d6ff;border-color:#8264c1}
.shift.schedule-cell:hover{filter:brightness(1.18)}

/* Fleet surfaces use the same light theme as the rest of the site. The dark
   panels previously inherited dark text, leaving setup labels unreadable. */
.setup-area-tabs button,
.fleet-cards article,
.fleet-activity article,
.fleet-panel,
.fleet-custom-period,
.fleet-correction-panel{
  background:#f8fafc;
  border-color:#cbd6e3;
  color:var(--ink);
}
.setup-area-tabs button:hover,
.fleet-entry-toggle:hover{background:#eaf2fa}
.setup-area-tabs button[aria-selected="true"]{
  background:#eaf2fa;
  border-color:#245b91;
  color:#123b61;
  box-shadow:inset 0 0 0 1px #245b91;
}
.setup-area-tabs button span,
.fleet-card-open small,
.fleet-unit-summary span,
.fleet-report-exports span,
.fleet-history-table td span{color:#52647a}
.fleet-panel>summary,
.fleet-correction-panel summary{color:#16527f}
.fleet-entry-toggle{
  background:#eaf2fa;
  border-color:#9dbbd3;
  color:#123b61;
}
.fleet-correction-panel label{color:var(--ink)}
.fleet-warning,
.fleet-control-note{color:#845300}
.fleet-acknowledged{color:#17613e}
.fleet-activity-unit{background:#eaf2fa;border-color:#9dbbd3;color:#16527f}
.fleet-activity-unit:hover{background:#dceaf6}

/* Other screens had the same dark-panel/light-page mismatch. */
.history-workspace-panel,
.history-filter-grid,
.calendar-notes-row th,
.calendar-notes-cell,
.calendar-agenda,
.calendar-dialog{
  background:#f8fafc;
  border-color:#cbd6e3;
  color:var(--ink);
}
.history-tabs{border-color:#cbd6e3}
.history-tabs button{color:#245b91}
.history-tabs button:hover{background:#eaf2fa}
.history-tabs button[aria-selected="true"]{
  background:#eaf2fa;
  border-bottom-color:#245b91;
  color:#123b61;
}
.history-result-count{color:#52647a}
.history-unit-link{background:#eaf2fa;border-color:#9dbbd3;color:#16527f}
.history-unit-link:hover{background:#dceaf6}
.calendar-note,
.calendar-agenda-event{
  background:#fff;
  border-color:#b7cadc;
  color:var(--ink);
}
.calendar-note small,
.calendar-agenda-event span,
.calendar-agenda-event small{color:#52647a}
.calendar-agenda h3{color:var(--ink)}
.calendar-agenda-day>time{color:#245b91}
.calendar-agenda-event em{color:#845300}
.calendar-agenda-event:hover{background:#eaf2fa;border-color:#4c83b3}
.calendar-event-options{border-color:#cbd6e3}
.leave-success{background:#eaf6ef;border-color:#619677;color:#194d32}
.leave-success h2{color:#194d32}
.quick-fuel{margin:18px 0;padding:20px 22px;border:1px solid #cbd8e7;border-radius:12px;background:#fff;box-shadow:0 5px 18px #0b29420c}
.quick-fuel-heading h2{margin:0 0 4px}.quick-fuel-heading p{margin:0 0 14px;color:#52647a}
.quick-fuel-choices{display:flex;gap:10px;flex-wrap:wrap}
.quick-fuel-choices button{display:grid;gap:4px;min-width:190px;text-align:left;background:#eaf3fb;border-color:#9dbbda;color:#153b60}
.quick-fuel-choices button span:last-child{font-weight:700;color:#145a94}
.quick-fuel-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.quick-fuel-fields label{display:grid;gap:6px}.quick-fuel-fields .quick-fuel-confirm{display:flex;align-items:center;gap:8px;grid-column:1/-1}
@media(max-width:600px){.quick-fuel-fields{grid-template-columns:1fr}.quick-fuel-choices button{width:100%}}
@media print{body.schedule-export-printing .schedule-print-report .calendar-week-scroll table{min-width:0}body.schedule-export-printing .schedule-print-report .calendar-agenda-days{min-width:0;grid-template-columns:15% repeat(7,minmax(0,1fr));overflow:visible}body.schedule-export-printing .schedule-print-report .calendar-week-scroll th:first-child{width:15%;min-width:0}}

/* The existing non-modal calendar editor has a visible, keyboard-focusable title bar. */
.calendar-note-floating .calendar-event-editor{padding:0 18px 18px;overflow:hidden}
.calendar-note-floating .calendar-note-drag{margin:0 -18px 16px;padding:14px 18px;min-height:58px;background:#195a9b;color:#fff;border-bottom:2px solid #82b7e7;cursor:move;touch-action:none}
.calendar-note-floating .calendar-note-drag h2{color:#fff;line-height:1.2}
.calendar-note-floating .calendar-note-drag button{background:#f5f9fe;color:#173f67;border-color:#d1e5f7;min-height:40px}
.calendar-note-floating .calendar-note-drag button:hover{background:#dfedfa}
.calendar-note-floating .calendar-note-drag:focus-visible{outline:3px solid #ffe09a;outline-offset:-4px}

/* Login keeps agency identity and the current support intake, without photo art. */
body:has(#local-login)>header{display:none}
body:has(#local-login) main{width:100%;max-width:1100px}
.login-shell{grid-template-columns:minmax(0,.9fr) minmax(0,1.1fr);max-width:940px;margin:clamp(20px,5vh,64px) auto;border:1px solid #6f91b3;border-radius:18px;background:#fff;box-shadow:0 24px 60px #081d3440}
.login-agency{display:flex;flex-direction:column;align-items:center;justify-content:center;min-width:0;padding:40px 30px;text-align:center;background:linear-gradient(155deg,#11283f,#174b79 72%,#2168a4);color:#fff}
.login-badge{width:min(176px,48%);height:auto;object-fit:contain;filter:drop-shadow(0 10px 15px #071e344d)}
.login-agency p{margin:20px 0 2px;font-size:.83rem;font-weight:700;letter-spacing:.16em;text-transform:uppercase;color:#d8eaff}
.login-agency h1{margin:0;font-size:clamp(1.7rem,3vw,2.4rem);line-height:1.2;color:#fff}
.login-agency span{margin-top:10px;color:#d8eaff;font-size:.92rem}
.login-panel{padding:clamp(26px,4vw,48px);background:#fff;color:#1b2c42}
.login-panel h2{margin:20px 0 8px;font-size:1.7rem;color:#183a5d}
.login-brand{display:flex;align-items:center;justify-content:center;min-height:116px;padding:10px;margin:0 0 20px;border-radius:14px;background:#122b42}
.login-brand img{display:block;width:auto;max-width:min(100%,136px);height:auto;max-height:106px;object-fit:contain}
.login-panel #local-login{margin:22px 0 10px}
.login-panel #local-login button{min-height:46px;background:#195a9b;border-color:#195a9b;color:#fff;font-weight:700}
.login-panel #local-login button:hover{background:#134879}
.login-panel #need-login-help{min-height:44px;background:transparent;border:1px solid #9bb8d5;color:#174b79;font-weight:650}
.login-panel #login-help{min-width:0;overflow-wrap:anywhere}
.login-panel #login-help:empty{display:none}
@media(max-width:760px){.login-shell{grid-template-columns:minmax(0,1fr);margin:8px auto}.login-agency{padding:24px 20px}.login-badge{width:76px}.login-agency p{margin-top:10px}.login-agency h1{font-size:1.5rem}.login-panel{padding:25px 22px;grid-row:auto}.login-panel h2{margin-top:10px}}
.department-duty-category{display:inline-block;border:2px solid #276ba1;border-radius:7px;background:#e8f3fd;color:#164a75;padding:5px 10px;font-size:.8rem;font-weight:750;letter-spacing:.06em;line-height:1.3;overflow-wrap:anywhere}
.calendar-toolbar{justify-content:flex-start}.calendar-toolbar>div{min-width:0}.calendar-toolbar [data-print-current]{margin-left:auto}.calendar-toolbar #add-calendar-note,.calendar-toolbar [data-print-current]{min-height:44px}@media(max-width:600px){.calendar-toolbar>div{flex-basis:100%}.calendar-toolbar #add-calendar-note,.calendar-toolbar [data-print-current]{flex:1 1 auto}.calendar-toolbar [data-print-current]{margin-left:0}}
.calendar-export-options{display:flex;align-items:end;flex-wrap:wrap;gap:10px 16px;margin:0 0 14px;padding:12px 15px;border:1px solid #b8cbe0;border-radius:9px}.calendar-export-options legend{font-weight:700}.calendar-export-options label{display:grid;gap:4px;min-width:0}.calendar-export-options [data-calendar-export-custom]:not([hidden]){display:flex;flex-wrap:wrap;gap:10px}.calendar-export-options [hidden]{display:none!important}.calendar-unpublished{background:#f5f5f5;color:#4d5660;font-size:.8rem;font-weight:650}.schedule-report-title{font-size:18px;margin:0 0 6px}@media print{body.schedule-export-printing .schedule-print-report .calendar-export-options,body.schedule-export-printing .schedule-print-report .schedule-report-title+div .calendar-toolbar button{display:none!important}body.schedule-export-printing .schedule-print-report .schedule-report-title{color:#111}}

/* Night display is scoped to the currently authenticated identity; print stays Day. */
.access-controls .signed-in-label{overflow-wrap:anywhere;min-width:0}
.header-menu{position:relative;margin-left:auto}
#header-menu-actions{position:absolute;right:0;top:calc(100% + 8px);z-index:20;display:grid;gap:6px;width:min(240px,calc(100vw - 32px));padding:10px;border:1px solid #6f829a;border-radius:8px;background:var(--navy-deep);box-shadow:0 4px 18px #020a1480}
#header-menu-actions[hidden]{display:none}
#header-menu-actions button{text-align:left;min-height:44px;width:100%}
.access-controls button:focus-visible{outline:3px solid #ffd26e;outline-offset:3px}
html[data-theme="night"]{color-scheme:dark;--navy:#172d48;--navy-deep:#0b1726;--ink:#e5edf6;--muted:#b7c8d9;--blue:#65aef0;--blue-light:#1d3955;--silver:#617994;--surface:#162536;--canvas:#0b1521;--shadow:0 4px 18px #020a1480}
html[data-theme="night"] body{background:var(--canvas);color:var(--ink)}
html[data-theme="night"] :is(main,main section,main article,footer,.controls,.scroll,.details,.date-range,.range-picker-panel,.range-week,.calendar-export-options,.calendar-dialog,.calendar-note,.calendar-agenda,.calendar-agenda-event,.history-workspace-panel,.history-filter-grid,.setup-area-tabs button,.fleet-cards article,.fleet-activity article,.fleet-panel,.fleet-custom-period,.fleet-correction-panel,.quick-fuel,.state:not(.error):not(.warning),.command-notice){background:var(--surface);color:var(--ink);border-color:#526a83}
html[data-theme="night"] :is(main section,main article,.details,.controls,.scroll,.calendar-export-options,.calendar-dialog){box-shadow:var(--shadow)}
html[data-theme="night"] :is(p.subtle,.subtitle,.details p,.quick-fuel-heading p,.history-result-count,.fleet-card-open small,.fleet-unit-summary span,.fleet-report-exports span,.fleet-history-table td span,.calendar-note small,.calendar-agenda-event span,.calendar-agenda-event small){color:var(--muted)}
html[data-theme="night"] :is(button,input,select,textarea,option,.range-week button,.history-list button,.fleet-entry-toggle,.history-unit-link,.fleet-activity-unit,.quick-fuel-choices button){background:#203449;color:#f0f6fd;border-color:#7089a4}
html[data-theme="night"] :is(button:hover,.range-week button:hover,.history-list button:hover,.fleet-entry-toggle:hover,.history-unit-link:hover,.fleet-activity-unit:hover){background:#305172;color:#fff}
html[data-theme="night"] :is(button:disabled,input:disabled,select:disabled,textarea:disabled){background:#243344;color:#b1bfd0;border-color:#506178}
html[data-theme="night"] :is(input[readonly],.calendar-unpublished){background:#243448;color:#d6e5f3}
html[data-theme="night"] :is(.details summary,.fleet-panel>summary,.fleet-correction-panel summary,.calendar-agenda-day>time,.range-picker-panel>summary,.range-caption,.published-period,.coverage-finding){color:#a8d5ff}
html[data-theme="night"] :is(caption,tbody th,tbody tr:nth-child(even) td,tbody tr:nth-child(even) th,.calendar-notes-row th,.calendar-notes-cell){background:#1b2c3e;color:#edf5fc;border-color:#526a83}
html[data-theme="night"] :is(td,tbody th,table,.history-tabs,.history-tabs button,.fleet-report-exports,.fleet-report-exports>div,.calendar-event-options){border-color:#526a83}
html[data-theme="night"] thead th{background:#244364;color:#fff}
html[data-theme="night"] :is(.state.warning,.finding,.fleet-warning,.fleet-control-note){background:#302713;color:#ffe5a4;border-color:#b98d31}
html[data-theme="night"] :is(.state.error,.error){background:#3c2225;color:#ffd8d1;border-color:#ca817d}
html[data-theme="night"] .leave-success{background:#193c2a;color:#c4f5d7;border-color:#5da97a}
html[data-theme="night"] :is(.history-tabs button[aria-selected="true"],.setup-area-tabs button[aria-selected="true"],.fleet-cost-toggle button[aria-pressed="true"]){background:#284f75;color:#fff;border-color:#83bce9}
html[data-theme="night"] .calendar-unpublished{background:#263544;color:#e0e8ef}
html[data-theme="night"] :is(button,input,select,textarea,summary,a,.scroll):focus-visible{outline:3px solid #ffd26e;outline-offset:3px}
/* Surfaces with Day literals in style.css need paired Night ink, including
   details and divs that are not matched by the generic section rule. */
html[data-theme="night"] :is(.attention-counts>button,.attention-counts>div,.staffing-card,.setup-section,.setup-rule,.setup-save-panel,.simpleplan-card,.simpleplan-group,.simpleplan-member,.simpleplan-preview,.simpleplan-calendar-day,.simpleplan-week-head>div,.simpleplan-calendar-shift,.simpleplan-group>header,.simpleplan-unassigned>header,.impact-summary,.replacement-summary,.stored-work-list li,.next-action,#leave-actions,.calendar-outside){background:#1d3147;color:#e5edf6;border-color:#617b96}
html[data-theme="night"] :is(.attention-counts strong,.setup-section>summary,.setup-rule>summary,.simpleplan-card summary,.staffing-card h3,.staffing-card strong,.staffing-card li,.simpleplan-calendar-day strong,.simpleplan-week-head>div){color:#e5edf6}
html[data-theme="night"] :is(.staffing-card small,.setup-rule>summary span,.simpleplan-group>header p,.simpleplan-calendar-shift span,.attention-label){color:#bfd1e3}
html[data-theme="night"] :is(.simpleplan-unassigned>header,.state.warning,.draft-action-banner){background:#3a301d!important;color:#ffe6ae!important;border-color:#b9954b}
html[data-theme="night"] .simpleplan-calendar-day.calendar-outside{background:#253448;color:#b8c7d6}
@media print{html[data-theme="night"]{color-scheme:light;--ink:#182c45;--muted:#52647a;--surface:#fff;--canvas:#fff}html[data-theme="night"] body,html[data-theme="night"] :is(.schedule-print-report,.schedule-print-report section,.schedule-print-report article,.schedule-print-report table,.schedule-print-report td,.schedule-print-report th,.fleet-print-report,.fleet-print-report section,.fleet-print-report table,.fleet-print-report td,.fleet-print-report th){background:#fff!important;color:#111!important;box-shadow:none!important}html[data-theme="night"] :is(.schedule-print-report thead th,.fleet-print-report thead th){background:#e7eef6!important;color:#111!important}html[data-theme="night"] :is(.schedule-print-report .shift,.schedule-print-report .calendar-unpublished){background:#eef1f4!important;color:#111!important}}
