/* Scoped route board; keep global Sales and attendance controls untouched. */
.driver-routes-panel{padding:26px 28px 22px;background:#fff;min-width:0}
.driver-routes-note{font-size:12px!important;line-height:1.6;color:#75816e;margin:0;max-width:830px}
.driver-routes-filters{display:flex;align-items:flex-end;gap:12px;flex-wrap:wrap;padding:17px 18px;background:#f7f8f3;border:1px solid #e4e9dd;border-radius:13px;margin-bottom:20px}
.driver-routes-filters>label:not(.driver-routes-check){display:grid;gap:7px;font-size:11px;font-weight:550;min-width:145px;flex:0 0 auto}
.driver-routes-filters input,.driver-routes-filters select{height:40px;min-height:40px;font-size:12px;background:#fff;border-radius:8px;padding:8px 11px}
.driver-routes-filters .op-date-trigger{width:200px;min-width:0}
.driver-routes-filters button{height:40px;min-height:40px;border:1px solid #dbe3d4;border-radius:8px;padding:8px 13px;background:#fff;color:#315441;font-size:12px;font-weight:550}
.driver-routes-filters .driver-routes-step{display:inline-flex;align-items:center;justify-content:center;width:34px;min-width:34px;padding:8px}
.driver-routes-step svg{display:block;width:16px;height:16px;stroke:currentColor;fill:none}
.driver-routes-filters .driver-routes-search{flex:1 1 230px;width:auto;min-width:180px}
.driver-routes-filters .driver-routes-check{display:flex;align-items:center;align-self:flex-end;gap:8px;white-space:nowrap;height:40px;margin:0;font-size:11px;font-weight:450;color:#52664f}
.driver-routes-check input[type=checkbox]{width:16px;height:16px;min-height:16px;padding:0;margin:0;flex:0 0 16px;accent-color:#2e6047;box-shadow:none}
.driver-routes-summary{display:flex;gap:12px;margin:0 0 22px}
.driver-routes-metric{display:flex;align-items:center;gap:12px;min-width:170px;padding:12px 17px;background:#fafbf8;border:1px solid #e6ebdf;border-radius:11px}
.driver-routes-metric>strong{font-size:26px;line-height:1.2;letter-spacing:-.04em;color:#2c543d;font-weight:600}
.driver-routes-metric>span{font-size:11px;color:#72806a;max-width:130px}
.driver-routes-metric.is-attention{background:#fbf5e8;border-color:#ebdfbd}.driver-routes-metric.is-attention>strong{color:#9a702b}
.driver-routes-scroll{overflow:auto;max-height:66vh;border:1px solid #e0e6d9;border-radius:12px;background:#fff;overscroll-behavior-x:contain}
.driver-routes-table{table-layout:fixed;border-collapse:separate;border-spacing:0;margin:0;width:100%;font-size:12px}
.driver-routes-table thead{display:table-header-group}.driver-routes-table tbody{display:table-row-group}
.driver-routes-table tr{display:table-row;padding:0;border:0}
.driver-routes-table th,.driver-routes-table td{display:table-cell;grid-column:auto;grid-row:auto;text-align:left;border:0;border-right:1px solid #edf0e8;border-bottom:1px solid #e4e9dd;vertical-align:top;padding:17px 16px;overflow-wrap:anywhere;background:#fff}
.driver-routes-table thead th{position:sticky;top:0;z-index:3;background:#f5f7f0;color:#354f3c;font-size:13px;font-weight:600;padding:16px 18px}
.driver-routes-table th small{display:block;font-size:10px;color:#89947e;font-weight:450;margin-top:5px;line-height:1.4}
.driver-routes-table th:first-child{width:190px;position:sticky;left:0;z-index:2;background:#fafbf7;border-right:1px solid #dfe6d8}
.driver-routes-table thead th:first-child{z-index:4;background:#eff3e8;color:#79836f;font-size:11px}
.driver-routes-table tbody th{padding:22px 16px;font-size:12px;font-weight:600;letter-spacing:0;color:#344e3b}
.driver-routes-avatar{display:grid;place-items:center;width:34px;height:34px;border-radius:50%;background:#e4eddf;color:#416747;font-size:11px;letter-spacing:.04em;margin-bottom:10px;font-weight:600}
.driver-routes-table td.is-today{background:#fcfdf8}
.driver-route-trip{display:flex;width:100%;flex-direction:column;align-items:stretch;gap:8px;text-align:left;font:inherit;color:#354739;border:1px solid #dfe7d9;border-left:3px solid #71916c;background:#fff;border-radius:10px;padding:13px 12px;box-shadow:0 2px 5px #31412c05;margin:0 0 12px;min-height:0;transition:border-color .15s,box-shadow .15s}
.driver-route-trip:hover{border-color:#73966c;box-shadow:0 3px 9px #26442910}.driver-route-trip:focus-visible{outline:2px solid #a17e40;outline-offset:3px}
.driver-route-trip>small{display:block;font-size:10px;color:#829279;max-width:none;letter-spacing:.01em}
.driver-route-trip>strong{display:block;font-size:12px;line-height:1.6;color:#2d4f39;font-weight:600;margin:0}
.driver-route-trip>span{display:block;font-size:10px;color:#819078;line-height:1.6}
.driver-route-trip>span:last-child{border-top:1px solid #edf1e8;padding-top:8px;color:#537348}
.driver-route-trip.needs-review{border-left-color:#b58942;background:#fffdf7}
.driver-routes-empty{font-size:11px!important;line-height:1.6;color:#9aa38f;margin:8px 0 22px;min-height:42px}
.driver-route-end{display:flex;flex-direction:column;gap:5px;padding:12px;border:1px solid #e3eadb;background:#edf3e7;border-radius:9px;margin-top:12px}
.driver-route-end small{display:block;font-size:9px;line-height:1.55;color:#819174;max-width:none}
.driver-route-end strong{display:block;color:#385c3f;font-size:13px;font-weight:650;margin:0;line-height:1.5}
.driver-route-end.end-carry{background:#f7f8f4;border-color:#e9ece3}.driver-route-end.end-carry strong{color:#78836d}
.driver-route-end.end-unknown,.driver-route-end.end-ambiguous,.driver-route-end.end-review{background:#fbf6ec;border-color:#ebe0c9}
.driver-routes-warning{font-size:10px!important;color:#a27c38;line-height:1.6;margin:8px 0 12px;padding:9px 10px;background:#faf3e6;border-radius:7px}
.driver-routes-results>.driver-routes-note{margin-top:16px;font-size:10px!important}
.driver-routes-popup .op-window-head .sales-form-toolbar button{width:34px;height:34px;min-height:34px;padding:8px;border-radius:8px;background:transparent;border:1px solid #dde5d6;color:#6f8966}
.driver-routes-popup .op-window-head .sales-form-toolbar svg{width:16px;height:16px}
.driver-route-detail{padding-bottom:18px}.driver-route-detail>h3,.driver-route-detail>p,.driver-route-detail>nav{margin-left:22px;margin-right:22px}
@media(max-width:900px){.driver-routes-panel{padding:20px 17px}.driver-routes-summary{gap:8px}.driver-routes-metric{flex:1;min-width:0;padding:11px;gap:8px}.driver-routes-metric>strong{font-size:22px}.driver-routes-metric>span{font-size:10px}.driver-routes-filters{gap:9px;padding:13px}.driver-routes-filters .driver-routes-search{flex-basis:55%}.driver-routes-scroll{max-height:65vh}.driver-routes-table th:first-child{width:150px}}
@media(max-width:520px){.driver-routes-note{font-size:11px!important}.driver-routes-filters>label:not(.driver-routes-check){min-width:0;flex:1 1 40%}.driver-routes-filters .op-date-trigger{width:100%}.driver-routes-filters .driver-routes-search{flex-basis:100%}.driver-routes-filters .driver-routes-check{margin-left:auto}.driver-routes-metric{flex-direction:column;align-items:flex-start;gap:5px}.driver-routes-table th:first-child{width:125px}.driver-routes-table th,.driver-routes-table td{padding:13px 10px}.driver-routes-table thead th{padding:13px 10px}}
/* Compact shared schedule workspace. */
.op-schedule-tabs{padding-top:4px!important;padding-bottom:4px!important;background:#f7f9f5}
.op-tour-categories{display:flex;gap:6px;padding:8px 0}
.op-tour-categories button{min-height:30px;padding:5px 12px;font-size:12px;border:1px solid #dbe3d4;border-radius:6px;background:#fff;color:#315441}
.op-tour-categories button[aria-pressed=true]{background:#285a45;color:#fff}
.driver-routes-panel{padding:14px 18px}
.driver-routes-filters{gap:8px;padding:10px;margin-bottom:12px;border-radius:8px}
.driver-routes-filters{font-size:11px}
.driver-routes-popup .driver-routes-filters :is(input:not([type=checkbox]),select,button){font:inherit;line-height:1.4;height:30px;min-height:30px;padding:5px 8px;border-radius:6px}
.driver-routes-filters .op-date-trigger{width:128px}
.driver-routes-filters>label:not(.driver-routes-check){min-width:0;font-weight:500;gap:4px}
.driver-routes-filters .driver-routes-check{height:30px}
.driver-routes-filters .driver-routes-driver{width:clamp(135px,18vw,215px);max-width:100%}
.driver-routes-summary{gap:8px;margin-bottom:12px}.driver-routes-metric{padding:8px 12px;border-radius:7px}
.driver-routes-table th,.driver-routes-table td,.driver-routes-table tbody th,.driver-routes-table thead th{padding:10px}
.driver-routes-avatar{display:none}.driver-route-trip{gap:4px;padding:8px;margin-bottom:8px;border-radius:6px;box-shadow:none}
.driver-route-trip>strong,.driver-route-trip>span{line-height:1.4}.driver-route-trip>span:last-child{padding-top:4px}
.driver-routes-empty{margin:4px 0 8px;min-height:0}.driver-route-end{gap:3px;padding:8px;margin-top:8px;border-radius:6px}
button.driver-routes-warning{width:100%;text-align:left;white-space:normal;border:1px solid #ebe0c9;min-height:0;padding:6px 8px}
.journey-resource-status{font-size:12px;margin-top:8px}.journey-resource-status summary{cursor:pointer;color:#315441}
.journey-resource-status .journey-driver-choice{padding:6px 0;border-bottom:1px solid #e4e9dd}

/* Operational-only visual refresh: retain existing font families and px scale. */
#operational-workspace .operational-page{background:#fffefa;border-color:#dce4d9;box-shadow:0 5px 18px #23331f06}
#operational-workspace .operational-page>.op-page-tabs{background:#fffefa;border-bottom-color:#e1e7dc}
#operational-workspace .op-page-tabs button[aria-pressed=true]{background:#f0f4eb;border-bottom-color:#a77d38}
#operational-workspace .op-schedule-tabs{background:#f5f7f1}
#operational-workspace .tower-network,#operational-workspace .fleet-section{border-color:#dce4d9;box-shadow:none}
.driver-routes-filters .driver-routes-plan{flex:none;margin-inline-start:auto}
.driver-routes-filters{background:#fafbf7;border-color:#e1e7db;border-radius:8px}
.driver-routes-filters .driver-routes-resource{flex:0 0 125px;width:125px}
.driver-routes-summary{border:1px solid #e1e7db;border-radius:8px;gap:0;background:#fafbf7;overflow:hidden}
.driver-routes-metric{flex:1;min-width:0;border:0;border-right:1px solid #e1e7db;border-radius:0;background:transparent}
.driver-routes-metric:last-child{border-right:0}
.driver-routes-summary .driver-routes-metric{font:inherit;font-size:11px;min-height:30px;gap:6px;padding:5px 9px;text-align:left;cursor:pointer}
.driver-routes-summary .driver-routes-metric>strong{font-size:12px;letter-spacing:normal;font-weight:600}
.driver-routes-summary .driver-routes-metric:hover{background:#edf2e9}
.driver-routes-summary .driver-routes-metric[aria-pressed=true]{background:#e5eee3;box-shadow:inset 0 -2px #77977a}
.driver-routes-summary .driver-routes-metric:focus-visible{outline:2px solid #739476;outline-offset:-3px}
.driver-routes-layout{display:grid;grid-template-columns:minmax(0,1fr);gap:12px;align-items:start}
.driver-routes-layout.has-detail{grid-template-columns:minmax(0,1fr) minmax(250px,300px)}
.driver-routes-scroll{border-radius:8px;max-height:65vh}
.driver-routes-table thead th{background:#edf2e8;font-size:11px;font-weight:600}
.driver-routes-table tbody th,.driver-route-end strong{font-size:11px}
.driver-routes-table th:first-child{width:155px}
.driver-routes-table tbody th{background:#fafbf7}
.driver-route-trip{border-left-color:#a99461;background:#fffefa}
.driver-route-trip.is-completed{border-left-color:#8a9a89;background:#f4f7f1}
.driver-route-trip.is-running{border-left-color:#2b6a48;background:#edf5e9}
.driver-route-trip[aria-pressed=true]{border-color:#a77d38;outline:1px solid #a77d38;outline-offset:0;background:#faf6eb}
.driver-route-trip>span:last-child{align-self:flex-start;border:0;border-radius:4px;padding:3px 6px;background:#f3ecda;color:#80632d}
.driver-route-trip.is-completed>span:last-child{background:#e7ede4;color:#60725c}
.driver-route-trip.is-running>span:last-child{background:#dcebd6;color:#285b3c}
.driver-route-end{background:transparent;border:0;border-top:1px solid #e5eadf;border-radius:0;padding:7px 0 0}
.driver-routes-detail-host{position:sticky;top:12px;min-width:0;border:1px solid #dce4d9;border-radius:8px;background:#fffefa;max-height:65vh;overflow:auto}
.driver-route-inline{padding:12px}
.driver-route-inline>h3,.driver-route-inline>p,.driver-route-inline>nav{margin-left:0;margin-right:0}
.driver-route-inline>h3{font-size:12px;margin:12px 0 6px}
.driver-route-inline>p{font-size:12px;line-height:1.6;overflow-wrap:anywhere;margin-bottom:10px}
.driver-route-inline-head{display:flex;align-items:center;justify-content:space-between;gap:8px;padding-bottom:10px;border-bottom:1px solid #e1e7db}
.driver-route-inline-head h3{font-size:14px;margin:0}
.driver-route-inline-head button{width:28px;height:28px;min-height:28px;padding:5px;border:0;background:transparent;color:#70816d}
.driver-route-timeline{list-style:none;padding:0 0 0 10px;margin:14px 0}
.driver-route-timeline li{position:relative;border-left:1px solid #bfcbb6;padding:0 0 14px 14px}
.driver-route-timeline li:last-child{padding-bottom:0}
.driver-route-timeline li:before{content:'';position:absolute;left:-4px;top:4px;width:7px;height:7px;border:1px solid #708565;border-radius:50%;background:#fffefa}
.driver-route-timeline strong{font-size:12px;font-weight:600;overflow-wrap:anywhere}
.driver-route-timeline small{display:block;font-size:10px;color:#829279;margin-top:3px}
.driver-route-inline .op-assignment-actions{flex-wrap:wrap;gap:6px}
@media(max-width:1000px){.driver-routes-layout.has-detail{grid-template-columns:minmax(0,1fr)}.driver-routes-detail-host{position:static;grid-row:1;max-height:45vh}}
@media(max-width:520px){.driver-routes-plan{padding:5px 8px}.driver-routes-summary{flex-wrap:wrap}.driver-routes-metric{flex-basis:30%}}
