/* Scoped to Driver Pulse: phone shells also render inside desktop viewports. */
body[data-role="driver"] .driver-sheet-body{min-width:0;container-type:inline-size;overflow-x:hidden}
body[data-role="driver"] .driver-sheet-body .driver-detail,body[data-role="driver"] .driver-sheet-body .driver-collapse,body[data-role="driver"] .driver-sheet-body .driver-collapse-body,body[data-role="driver"] .driver-sheet-body .record-card{min-width:0;max-width:100%;box-sizing:border-box}
body[data-role="driver"] .driver-sheet-body .grid-2{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
body[data-role="driver"] .driver-sheet-body .driver-collapse-body{padding:8px 0 10px}
body[data-role="driver"] .driver-sheet-body .record-card{padding:12px;box-shadow:none}
body[data-role="driver"] .driver-sheet-body .record-card strong,body[data-role="driver"] .driver-sheet-body .record-card span{white-space:normal;overflow-wrap:anywhere;word-break:normal;min-width:0;font-size:13px;line-height:1.5}
body[data-role="driver"] .driver-sheet-body .driver-section-head{flex-wrap:wrap;gap:5px;min-width:0}
body[data-role="driver"] .driver-sheet-body .driver-evidence-item{min-width:0;gap:8px;font-size:12px}
body[data-role="driver"] .driver-sheet-body .driver-evidence-item span{min-width:0;overflow-wrap:anywhere}
body[data-role="driver"] .driver-sheet-body .driver-evidence-item strong{flex-shrink:0;font-size:11px}
@container(max-width:330px){body[data-role="driver"] .driver-sheet-body .grid-2{grid-template-columns:minmax(0,1fr)}}
html[data-theme] body[data-role="driver"] .driver-route-shell.driver-dashboard-view .driver-route-stop[data-task-kind]{border:2px solid var(--driver-task-color)!important;border-left-width:5px!important}
body[data-role="driver"] [data-task-kind="collection"]{--driver-task-color:#2574c6}
body[data-role="driver"] [data-task-kind="deploy"]{--driver-task-color:#7c49b3}
body[data-role="driver"] [data-task-kind="mixed"]{--driver-task-color:#0e8070}
body[data-role="driver"] [data-task-kind="return"]{--driver-task-color:#b56c0a}
body[data-role="driver"] [data-task-kind="other"]{--driver-task-color:#77838f}
body[data-role="driver"] .driver-task-legend{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;flex:0 0 auto;min-width:0;margin:2px 0 10px}
body[data-role="driver"] .driver-task-label{display:inline-flex;align-items:center;gap:5px;font-size:10px!important;color:var(--driver-task-color)!important;font-weight:800;line-height:1.4}
body[data-role="driver"] .driver-task-legend .driver-task-label{box-sizing:border-box;border:1px solid #dce9df;padding:8px 4px;border-radius:9px;background:#f7faf8;color:#345443!important;font-size:10px!important;gap:5px;justify-content:center;white-space:nowrap;min-width:0}
body[data-role="driver"] .driver-task-label::before{content:"";width:6px;height:6px;border-radius:50%;background:var(--driver-task-color);flex-shrink:0}
body[data-role="driver"] .driver-gps-alert{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:10px 12px;background:#fff4e6;color:#785013;border:1px solid #e8bf80;border-radius:10px;flex:0 0 auto;font-size:12px}
body[data-role="driver"] .driver-gps-alert strong{display:block;font-size:12px}.driver-gps-alert small{display:block;margin-top:3px;line-height:1.4}
body[data-role="driver"] .driver-gps-alert button{flex-shrink:0;padding:8px 10px;border:1px solid #ba7920;border-radius:7px;color:#785013;background:#fff;font-size:11px;font-weight:700;cursor:pointer}
body[data-role="driver"] button.driver-location-badge{cursor:pointer;font:inherit}
.driver-gps-help{display:grid;gap:12px;line-height:1.5;padding:10px}.driver-gps-help p{margin:0}.driver-gps-help button{padding:12px;border-radius:9px;border:1px solid #5b9c73;background:#eaf6ef;color:#176942;cursor:pointer}

html[data-theme] body[data-role="driver"] .driver-route-shell.driver-dashboard-view .driver-route-stop-head{grid-template-columns:26px minmax(0,1fr) auto!important;gap:9px}html[data-theme] body[data-role="driver"] .driver-route-shell.driver-dashboard-view .driver-route-status{grid-column:auto!important;justify-self:end;max-width:80px;white-space:normal;text-align:center;font-size:9px;line-height:1.3}

/* Keep the GPS reminder in the task toolbar instead of taking a full row. */
body[data-role="driver"] .driver-tasks-page .driver-route-appbar.has-gps-control{grid-template-columns:40px minmax(0,1fr) 40px 68px auto;gap:6px}
body[data-role="driver"] .driver-tasks-page .driver-gps-compact-control{box-sizing:border-box;width:68px;height:34px;display:inline-flex;align-items:center;justify-content:center;gap:4px;padding:0 6px;border:1px solid #e5c66e;border-radius:10px;background:#fff8e7;color:#835800;font-family:inherit;font-size:10px;font-weight:800;line-height:1;white-space:nowrap;cursor:pointer}
body[data-role="driver"] .driver-tasks-page .driver-gps-compact-control .material-symbols-rounded{font-size:16px}
body[data-role="driver"] .driver-tasks-page .driver-gps-compact-control.blocked{border-color:#e5aaaa;background:#fff1f1;color:#a23e3e}
body[data-role="driver"] .driver-tasks-page .driver-gps-compact-control:focus-visible{outline:2px solid #3282ce;outline-offset:2px}
html[data-theme="forest_canopy"] body[data-role="driver"] .driver-tasks-page .driver-gps-compact-control{border-color:#e8c875;background:#fff8e6;color:#805600}
html[data-theme="forest_canopy"] body[data-role="driver"] .driver-tasks-page .driver-gps-compact-control.blocked{border-color:#e6a5a5;background:#fff0f0;color:#a63d3d}
@media(max-width:390px){body[data-role="driver"] .driver-tasks-page .driver-route-appbar.has-gps-control{grid-template-columns:36px minmax(0,1fr) 36px 36px auto;gap:4px}body[data-role="driver"] .driver-tasks-page .driver-gps-compact-control{width:36px;padding:0}body[data-role="driver"] .driver-tasks-page .driver-gps-compact-label{display:none}}
