.theme-switch{display:flex;gap:4px;margin:6px 0}.theme-switch button{padding:6px 9px;font-size:12px}.theme-switch [aria-pressed=true]{outline:2px solid #acb8c4;outline-offset:-2px}.gap-incident-link{display:inline-block;margin-top:6px;font-size:12px;padding:5px 9px;border:1px solid #a7737a;border-radius:7px;text-decoration:underline}
@media screen{
html[data-theme=dark]{color-scheme:dark;background:#45474a;color:#f4f4f2;--line:#74787c;--blue:#bbdcec}
html[data-theme=dark] body{background:#45474a;color:#f4f4f2}
html[data-theme=dark] aside{background:#3c3e41;color:#f4f4f2;border-color:#74787c}
html[data-theme=dark] :is(.card,dialog,.route-kpi,.dashboard-upload-status,.dashboard-quick-menu,.dashboard-report-tile){background:#55585c;color:#f4f4f2;border-color:#74787c}
html[data-theme=dark] :is(input,select,textarea){background:#45484c;color:#fff;border-color:#85898d}
html[data-theme=dark] :is(button,.button){background:#565a5f;color:#f4f4f2;border-color:#85898d}
html[data-theme=dark] :is(button,.button):hover{background:#73787d;color:#fff}
html[data-theme=dark] .nav{background:transparent;color:#f4f4f2}html[data-theme=dark] .nav.active{background:#60676d;color:white}html[data-theme=dark] .nav:hover{background:#73787d;color:white}
html[data-theme=dark] :is(.muted,.label,td small,th,.empty,.eyebrow){color:#d9dcdf}
html[data-theme=dark] th{background:#494d51}html[data-theme=dark] td{border-color:#74787c}
html[data-theme=dark] :is(h1,h2,h3,h4){color:inherit}
html[data-theme=dark] a{color:#d2e7f1}
html[data-theme=dark] :is(.route-kpi-counts span,.version-chip,.pill){background:#666b70;color:white}
html[data-theme=dark] .logo{background:transparent!important}
html[data-theme=dark] .scan-matrix :is(.matrix-route,.matrix-service){background:#494d51;color:white}
html[data-theme=dark] .scan-matrix thead th{background:#3c3e41;color:white}
html[data-theme=dark] .service-route-banner{color:#193744}
html[data-theme=dark] :is(.route-kpi-name,.visit-banner,.day-route-main){color:var(--route-ink,#142e3b)}
html[data-theme=dark] .route-kpi-name{background:var(--route-color)}
html[data-theme=dark] .visit-banner.achieved,html[data-theme=dark] .visit-banner.missed,html[data-theme=dark] .visit-banner.extra{color:white}
html[data-theme=dark] .visit-banner.repeated{color:#4d287a}html[data-theme=dark] .visit-banner.waste{color:#164b48}
html[data-theme=dark] #build{background:#55585c!important;color:white}
html[data-theme=dark] :is(button,.button):focus-visible{outline:3px solid #e5b85c;outline-offset:2px}
}
@media print{.theme-switch,.gap-incident-link{display:none!important}}

.theme-mobile-switch{display:none}@media screen and (max-width:767px){.theme-mobile-switch{display:flex;justify-content:flex-end}}

.gap-incident-print{display:none}@media print{.gap-incident-print{display:block;color:black}}
@media screen{html[data-theme=dark] .account-identity span{color:#d9dcdf}html[data-theme=dark] .warning{color:#403014}html[data-theme=dark] .dashboard-quick-menu>summary{background:#55585c!important;color:#fff!important}}
/* Readable surfaces and controls in both display modes. */
.closed-customer-scroll{display:flex;flex-direction:column;max-height:216px;overflow-y:auto;overscroll-behavior:contain;scrollbar-gutter:stable}.closed-customer-scroll article{height:72px;min-height:72px;padding:12px 4px;border-top:1px solid var(--line);display:flex;flex-direction:column;justify-content:center;gap:5px}.closed-customer-scroll article span{font-size:13px}.closed-customer-notice h2{margin-bottom:10px}
@media screen{
html:not([data-theme=dark]) button:not(.nav):not(.logo):not(.route-kpi):not(.primary):not(.danger):not([data-staff-delete]):not([data-assignment-delete]):not([data-version-delete]):not([aria-pressed=true]):not([data-theme-choice]):not([data-language]):not(:hover){background:#f0f1f3!important;color:#123448!important}
html:not([data-theme=dark]) button:not(.nav):not(.logo):not(.route-kpi):hover{background:#192268!important;color:white!important}
html[data-theme=dark] button:not(.nav):not(.logo):not(.route-kpi){background:#e4e6e8!important;color:#20262c!important;border-color:#aeb4ba!important}
html[data-theme=dark] button:not(.nav):not(.logo):not(.route-kpi):hover{background:#c6cbd0!important;color:#101820!important;border-color:#e4e6e8!important}
html[data-theme=dark] button.nav{background:transparent!important;color:#f4f4f2!important}html[data-theme=dark] button.nav.active,html[data-theme=dark] button.nav:hover{background:#60676d!important;color:white!important}
html[data-theme=dark] button.route-kpi{background:#55585c!important;color:#f4f4f2!important}html[data-theme=dark] button.route-kpi:hover{background:#666b70!important;color:white!important}
html[data-theme=dark] :is(.incident-card-meta,.incident-card-meta b,.incident-card-meta span,.incident-card-note>b,.incident-card-note p,.incident-card-location,.incident-card-impact,.incident-note){color:#f0f2f4!important}
html[data-theme=dark] .dashboard-top .dashboard-uploads{background:#303236!important;color:#f4f4f2!important;border-color:#72777c}
html[data-theme=dark] .dashboard-uploads :is(b,small,span){color:#f4f4f2!important}
html[data-theme=dark] .dashboard-uploads button{background:#4b4e52!important;color:#fff!important;border-color:#8c9298!important}html[data-theme=dark] .dashboard-uploads button:hover{background:#656a70!important;color:white!important}
html[data-theme=dark] :is(.staff-nav-group,.staff-more-actions>div){background:#e5e7ea;color:#20262c;border-color:#b8bec5}
html[data-theme=dark] .staff-nav-group :is(summary,.staff-section-tab){background:#eceef0!important;color:#20262c!important}
html[data-theme=dark] .staff-section-tab.selected{box-shadow:inset 0 0 0 2px #75818d}
html[data-theme=dark] .metric{background:#55585c!important;color:#f4f4f2!important;border-top-width:7px}
html[data-theme=dark] .metric.service-ochtend{border-top-color:#e6ae00}html[data-theme=dark] .metric.service-middag{border-top-color:#df7d30}html[data-theme=dark] .metric.service-nacht{border-top-color:#8a7ac2}html[data-theme=dark] .metric.service-day{border-top-color:#56a6c0}
html[data-theme=dark] :is(.dashboard-end-reports,.dashboard-quick-list,.report-download-options,.calamity-tree-node,.calamity-answer-branch,.activity-status-grid>div){background:#55585c;color:#f4f4f2}
html[data-theme=dark] :is(.branch-extra,.activity-status-grid small){color:#d9dcdf}
html[data-theme=dark] .dashboard-quick-list button{background:transparent!important;color:white!important}html[data-theme=dark] .dashboard-quick-list button:hover{background:#555f68!important;color:#fff!important}
html[data-theme=dark] .closed-customer-scroll article span{color:#dfe3e7}
/* Keep numeric heatmap foregrounds tied to their individual cell backgrounds. */
html[data-theme=dark] .scan-matrix td>button{background:transparent!important;color:inherit!important;border:0!important}html[data-theme=dark] .scan-matrix td>button:hover{background:#ffffff55!important;color:inherit!important}
}
@media print{.closed-customer-scroll{max-height:none;overflow:visible}.closed-customer-scroll article{height:auto;min-height:0;break-inside:avoid}}
@media screen{
html[data-theme=dark] .report-download-menu>summary{background:#303236!important;color:white!important;border:1px solid #858b91}
html[data-theme=dark] .report-download-options{background:#3d4044!important;color:#f4f4f2!important;border-color:#858b91}
html[data-theme=dark] .report-download-options>div{border-color:#747a80}
html[data-theme=dark] .report-download-options :is(b,span,small){color:#f4f4f2!important}
}
@media screen{
html[data-theme=dark] :is(.lift-event,.waste-totals,.help-step,.calamity-step-editor,.day-route-incidents,.day-route-waste){background:#4b4f53;color:#f4f4f2}
html[data-theme=dark] .day-route-main{color:#f4f4f2}
html[data-theme=dark] .day-route-percentage{color:var(--route-ink,#142e3b)}
html[data-theme=dark] .stale-csv{color:#453114}
html[data-theme=dark] .route-folds summary:hover,html[data-theme=dark] .route-folds summary:hover *{color:#111820!important}
html[data-theme=dark] .route-kpi-counts span{color:#f4f4f2}
}

/* Semantic colours override neutral button styling in every theme. */
@media screen{
html body #scan-range-result .scan-matrix td>button{background:transparent!important;color:inherit!important;border:0!important;box-shadow:none!important}
html body #scan-range-result .scan-matrix td>button:hover{background:transparent!important;color:inherit!important;text-decoration:underline;text-underline-offset:3px}
html body #scan-range-result .scan-matrix td>button:focus-visible{outline:2px solid currentColor;outline-offset:1px}
html body .language-switch button.selected,html body .language-switch button[aria-pressed=true]{background:#192268!important;color:#fff!important;border:2px solid #192268!important;box-shadow:inset 0 -3px 0 #eeae35}
html body .language-switch button.selected:hover,html body .language-switch button[aria-pressed=true]:hover{background:#293b82!important;color:#fff!important}
html body .language-switch button:not(.selected):not([aria-pressed=true]){background:#e7e9ec!important;color:#1e2935!important;border-color:#98a5b4!important}
html body .route-chip{background:var(--route-color,#dce5ea)!important;color:var(--route-text,#172430)!important}
html body .route-chip:hover{background:var(--route-color,#dce5ea)!important;color:var(--route-text,#172430)!important}
}
@media screen and (min-width:1101px){html body #scan-range-result .scan-matrix td>button{width:auto!important;min-width:42px;min-height:26px;padding:3px 5px!important;font-size:12px;line-height:18px}}
@media(min-width:1101px){.route-kpi-grid.route-grid-new{grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}.route-grid-new .route-kpi-name{min-height:96px}.route-grid-new .route-kpi{min-width:0}}
.route-kpi[style*="#538135"] .route-kpi-name,.route-kpi[style*="#323E4F"] .route-kpi-name,.route-kpi[style*="#538135"] .head-percentage,.route-kpi[style*="#323E4F"] .head-percentage{color:white!important}
#route-plan-admin .tablewrap{max-height:520px;overflow:auto}#route-plan-admin td select{min-width:230px}#route-plan-admin td input{min-width:95px}
/* Completed round labels stay readable on their light green fill in both themes. */
html body .round-check.done,html body .round-check.done:hover,html body .round-check.done :is(b,strong,span,small),html body .round-check.done:hover :is(b,strong,span,small){color:#102a22!important}
html body .round-check.done,html body .round-check.done:hover{background:#e5f5ed!important;border-color:#087b59}

.tools-menu-logo{width:146px;height:42px;object-fit:contain;display:block}.tools-kpis{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:10px;margin-bottom:20px}.tools-stat{display:grid;grid-template-columns:38px 1fr;align-items:center;gap:6px;padding:14px;border-top:4px solid var(--tool-color);background:var(--surface,#fff);color:inherit;border-radius:12px}.tools-stat img{width:36px;height:36px;object-fit:contain;grid-row:span 2}.tools-stat b{font-size:26px}.tools-stat span{font-size:12px}.tools-stat[aria-pressed=true]{outline:2px solid var(--tool-color)}.tools-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}.tools-card{border:1px solid #aebbc8;border-radius:14px;overflow:hidden;background:var(--surface,#fff);color:inherit}.tools-card-open{display:block;width:100%;padding:0;border:0;border-radius:0;background:transparent;color:inherit;text-align:center}.tools-card-open:hover{background:#edf2f5;color:#102333}.tools-card h2{margin:14px 10px 4px}.tools-photo{width:100%;height:210px;object-fit:contain;background:#eef1f3}.tools-placeholder{display:grid;place-items:center;color:#192268;font-weight:bold}.tools-card dl{display:grid;grid-template-columns:1fr 1fr;padding:12px 16px;text-align:left;margin:0;gap:6px}.tools-card dd,.tools-details dd{margin:0}.tools-card dt,.tools-details dt{font-weight:bold}.tools-status{display:block;padding:10px;background:var(--tool-color);color:white;font-weight:bold;text-align:center}.tools-details{display:grid;grid-template-columns:160px 1fr;gap:8px}.tools-gallery{display:grid;grid-template-columns:repeat(4,1fr);gap:10px;margin:16px 0}.tools-gallery img{width:100%;height:170px;object-fit:contain}.tools-gallery button{padding:4px}html[data-theme=dark] :is(.tools-card,.tools-stat){background:#45484c;color:#fff}html[data-theme=dark] .tools-card-open:hover{background:#5b6065;color:white}@media(max-width:1100px){.tools-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.tools-kpis{grid-template-columns:repeat(3,minmax(0,1fr))}}@media(max-width:600px){.tools-grid{grid-template-columns:1fr}.tools-kpis{gap:5px}.tools-stat{grid-template-columns:22px 1fr;padding:8px 5px}.tools-stat img{width:22px;height:22px}.tools-stat b{font-size:20px}.tools-stat span{font-size:10px}.tools-photo{height:190px}.tools-gallery{grid-template-columns:repeat(2,1fr)}}
.tools-menu-counts{margin-left:auto;display:flex;gap:4px;font-size:11px;white-space:nowrap}.tools-menu-counts>span{padding:2px 4px;border-radius:5px;background:#e8edf1;color:#26364a}html[data-theme=dark] .tools-menu-counts>span{background:#34383d;color:white}

/* Electric Tools: equal card rows, metadata slots and action heights. */
.tools-card{display:flex}.tools-card-open{display:grid;grid-template-rows:210px 60px 28px 1fr auto;height:100%;align-content:stretch}.tools-card h2{display:flex;align-items:center;justify-content:center;line-height:1.25;overflow-wrap:anywhere}.tools-card-open> b{display:block;line-height:28px;min-height:28px}.tools-card dl{align-content:start;grid-auto-rows:minmax(24px,auto)}.tools-card dd{overflow-wrap:anywhere}.tools-card-open>.tools-status{align-self:end}.tools-toolbar{align-items:flex-end}.tools-toolbar>button,.tools-toolbar input,.tools-toolbar select{height:42px;box-sizing:border-box}.tools-stat{grid-template-rows:32px 32px;min-height:100px;box-sizing:border-box}.tools-stat span{display:flex;align-items:center;justify-content:center;line-height:1.2;text-align:center;min-height:32px}.tools-add-stat{border-top-color:#345d7e;display:flex;flex-direction:column;justify-content:center;gap:0}.tools-add-stat b{font-size:36px;line-height:36px}.tools-photo-section{margin:20px 0}.tools-photo-section h3{margin-bottom:8px}.tools-gallery:has(>p){display:block}@media(max-width:600px){.tools-card-open{grid-template-rows:190px 60px 28px 1fr auto}.tools-stat{min-height:88px;grid-template-rows:28px 28px}}

.tools-kpis{grid-template-columns:repeat(5,minmax(0,1fr))}.tools-add-card{min-height:440px}.tools-add-card>button{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:14px;width:100%;border:0;border-radius:0;background:transparent;color:inherit;font-size:20px;font-weight:bold}.tools-add-card>button>b{font-size:72px;line-height:1}.tools-add-card>button:hover{background:#edf2f5;color:#102333}html[data-theme=dark] .tools-add-card>button:hover{background:#5b6065;color:#fff}@media(max-width:1100px){.tools-kpis{grid-template-columns:repeat(3,minmax(0,1fr))}}

.spot-daily-preview{columns:3;column-gap:2.5rem;padding-left:1.6rem}
.spot-daily-preview li{break-inside:avoid;padding:.35rem .25rem}
.spot-daily-preview small{display:block}
.staff-evaluation-text{white-space:pre-line}
@media(max-width:1000px){.spot-daily-preview{columns:2}}
@media(max-width:650px){.spot-daily-preview{columns:1}}

/* Milieustratencheck */
.milieu-check{display:grid;gap:12px;max-width:980px}
.milieu-streets,.milieu-phases{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.milieu-streets button,.milieu-phases button{min-height:44px;white-space:normal}
.milieu-streets small,.milieu-point small{display:block}
.milieu-check button[aria-pressed=true]{background:#192268;color:#fff;border-color:#192268}
.milieu-point{display:grid;grid-template-columns:minmax(0,1fr) minmax(108px,auto);align-items:start;gap:8px 12px;padding:12px 0;border-bottom:1px solid #8296a750}
.milieu-point select{max-width:100%;min-height:44px;margin:0}
.milieu-stop{font-weight:700;color:#a92222}
[data-theme=dark] .milieu-stop{color:#ffb1ab}
.milieu-point .milieu-note{grid-column:1/-1;display:grid;gap:4px}
.milieu-note textarea{width:100%;margin:0}
.milieu-upload input{max-width:100%}
.milieu-photos{display:flex;gap:6px;flex-wrap:wrap}
#mil-photo-display img{max-width:100%;max-height:65vh;object-fit:contain}
#mil-result:empty{display:none}
@media(max-width:480px){.milieu-streets button,.milieu-phases button{padding:6px 3px;font-size:13px}.milieu-point{grid-template-columns:minmax(0,1fr)}.milieu-point select{justify-self:start}.milieu-check .toolbar{flex-wrap:wrap}}

/* Keep critical button labels readable on both theme surfaces. */
html body button:is(.danger,[data-staff-delete],[data-assignment-delete],[data-version-delete]){
 background:#fff0f0!important;color:#8c1621!important;border-color:#b82632!important;
 white-space:normal;line-height:1.2;min-height:36px;height:auto;overflow:visible;text-overflow:clip
}
html body button:is(.danger,[data-staff-delete],[data-assignment-delete],[data-version-delete]):hover{
 background:#942630!important;color:#fff!important
}
html[data-theme=dark] body button:is(.danger,[data-staff-delete],[data-assignment-delete],[data-version-delete]):not(:hover){
 background:#51212a!important;color:#fff1f2!important;border-color:#fa8f9c!important
}
html body button.primary:not(.danger){white-space:normal;line-height:1.2;height:auto;min-height:36px;overflow:visible;text-overflow:clip}
html body .language-switch button[data-language][aria-pressed=true],
html body .language-switch button[data-language].selected{
 background:#192268!important;color:#fff!important;border-color:#192268!important;opacity:1
}
html body .language-switch button[data-language][aria-pressed=true]:hover{background:#293b82!important;color:#fff!important}

/* Compact navigation and account controls. Keep text and surface colors paired. */
#mobile-menu-toggle{display:none}
.fixed-menu .account{display:grid;gap:5px;padding-top:7px}
.fixed-menu .account-identity{display:flex;align-items:baseline;gap:6px;flex-wrap:wrap;line-height:1.15}
.account-preferences,.account-actions{display:flex;align-items:center;gap:5px;flex-wrap:wrap}
.fixed-menu .account-preferences :is(.language-switch,.theme-switch){margin:0;display:flex;align-items:center;gap:3px}
.fixed-menu .account-preferences button{min-height:25px;min-width:26px;padding:3px 5px;font-size:11px;line-height:1.1}
.fixed-menu .account-actions button{margin:0}
.fixed-menu .account-actions .nav-icon{width:17px;height:17px}
html body button[data-theme-choice="light"]{background:#fff0c9!important;color:#553700!important;border-color:#947236!important}
html body button[data-theme-choice="dark"]{background:#273552!important;color:#fff!important;border-color:#687b9b!important}
html body button[data-theme-choice="light"]:hover{background:#ffe29b!important;color:#422b00!important}
html body button[data-theme-choice="dark"]:hover{background:#40547b!important;color:#fff!important}
html body button[data-theme-choice][aria-pressed="true"]{box-shadow:inset 0 -3px #ffbe45}
.milieu-layout{display:grid;grid-template-columns:minmax(0,1fr);gap:16px;align-items:start}
.milieu-layout:has(.milieu-archive){grid-template-columns:minmax(0,1fr) minmax(232px,282px)}
.milieu-layout #mil-main{min-width:0}
.milieu-archive{min-width:0;margin:0;display:grid;gap:9px}
.milieu-archive h2,.milieu-archive h3,.milieu-archive p{margin:0}
.milieu-archive label{display:grid;gap:3px}
.milieu-archive select{min-width:0;max-width:100%;margin:0}
#mil-archive-list{display:grid;gap:8px}
#mil-archive-list section{padding-top:6px;border-top:1px solid #8296a750}
#mil-archive-list ul{margin:4px 0 7px;padding-inline-start:1.2rem}
#mil-archive-message:empty{display:none}
html body .milieu-check :is(.milieu-streets,.milieu-phases) button[aria-pressed="true"]{background:#192268!important;color:#fff!important;border-color:#192268!important}
html body .milieu-check :is(.milieu-streets,.milieu-phases) button:hover{background:#263b76!important;color:#fff!important;border-color:#263b76!important}
html body .milieu-check :is(.milieu-streets,.milieu-phases) button small{color:inherit!important}
html body :is(button,a,input,select,textarea):focus-visible{outline:2px solid #007eb2;outline-offset:2px}
html[data-theme=dark] body :is(button,a,input,select,textarea):focus-visible{outline-color:#90e3ff}
@media(min-width:768px){
 aside.fixed-menu{width:211px;padding:5px 9px;gap:4px}
 aside.fixed-menu+main{margin-left:calc(211px * var(--menu-scale,1));padding-inline:24px}
 .fixed-menu .menu-scroll{cursor:auto;scrollbar-width:thin}
 .fixed-menu .menu-scroll .nav{min-height:36px;padding:5px 7px;margin:0;font-size:13px;line-height:1.2;gap:8px}
 .fixed-menu .menu-scroll .nav-icon{width:24px;height:24px}
}
@media(min-width:768px) and (max-height:680px){
 aside.fixed-menu{padding-block:6px;gap:4px}
 .fixed-menu .menu-scroll .nav{min-height:30px;padding-block:3px}
 .fixed-menu .menu-scroll .nav-icon{width:21px;height:21px}
}
@media(max-width:1070px){.milieu-layout:has(.milieu-archive){grid-template-columns:minmax(0,1fr)}}
@media(max-width:767px){
 #mobile-menu-toggle{display:block;align-self:center;justify-self:start}
 .fixed-menu .menu-scroll:not(.menu-open){display:none}
 .fixed-menu .menu-scroll.menu-open{grid-column:1/-1;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));max-height:none;overflow:visible;gap:3px;touch-action:auto}
 .fixed-menu .menu-scroll .nav{white-space:normal;min-height:39px;line-height:1.2;padding:5px 6px;margin:0}
 .fixed-menu .menu-scroll .nav-icon{width:23px;height:23px}
 .fixed-menu .account{display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;padding-top:2px;gap:5px}
 .fixed-menu .account-actions button{padding:3px 5px}
}
