/* Driver home: compact status totals; the existing actionable list lives in a modal. */
body.driver-view #filters{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;padding:0;margin:10px 0;border:0;background:transparent;border-radius:0;overflow:visible}
body.driver-view #filters button{display:flex;flex-direction:column;align-items:flex-start;justify-content:center;gap:8px;min-height:98px;width:100%;min-width:0;padding:12px 16px;border:1px solid #d7e3dc;border-radius:14px;background:#fff;color:#214b39;box-shadow:none;white-space:nowrap;text-align:left}
body.driver-view #filters button:after{display:none}
body.driver-view #filters button span{font-size:15px;font-weight:500}
body.driver-view #filters button b{display:flex;align-items:baseline;gap:5px;font-size:28px;line-height:1.15;color:inherit}
body.driver-view #filters button b small{font-size:14px;font-weight:600}
body.driver-view #filters .status-1,body.driver-view #filters .status-3{background:#edf3ff;border-color:#9ab8df;color:#23558b}
body.driver-view #filters .status-2{background:#edf8f2;border-color:#91bda6;color:#236047}
body.driver-view #filters button:focus-visible{outline:3px solid #447aaf;outline-offset:2px}
body.driver-view #filters button:active{filter:brightness(.95)}
body #driverJobsDialog{padding:0;background:#f6f8f5;color:#1c3d30}
body #driverJobsDialog[open]{display:flex;flex-direction:column;overflow:hidden}
body #driverJobsDialog>.fee-dialog-head{flex:0 0 auto}
body #driverJobsBody{flex:1;min-height:0;overflow-y:auto;overscroll-behavior:contain;padding:12px;padding-bottom:max(12px,env(safe-area-inset-bottom))}
body #driverJobsBody #jobs{margin:0;padding:0}
body #driverJobsBody .empty{padding:32px 12px}
body #driverJobsDialog::backdrop{background:#102d2866}
body.driver-view #deliveryListHeading{display:none}

/* Selected layout 2: one earnings panel and four compact status rows. */
body.driver-view>header{display:flex!important;align-items:center;justify-content:space-between;gap:8px;padding:12px 14px!important;min-height:64px;position:relative}
body.driver-view>header .brand{font-size:23px;white-space:nowrap;display:flex;align-items:center;gap:7px}
body.driver-view>header #brandRole{font-size:11px;padding:0;border:0;background:transparent;font-weight:400}
body.driver-view #driverTopControls{width:auto;gap:5px;flex-wrap:nowrap}
body.driver-view #driverTopControls button{font-size:12px;min-height:36px;padding:6px 8px;border:1px solid #ffffff70;border-radius:8px;color:white;background:transparent;white-space:nowrap}
body.driver-view .workspace-heading{display:none!important}
body.driver-view main{padding:12px 14px 90px!important}
body.driver-view #message:empty{display:none}
body.driver-view #driverFeeSummary{margin:0 0 12px}
body.driver-view #driverFeeSummary .settlement-stats{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0;margin:0;padding:12px 0;border:1px solid #d7e1db;border-radius:12px;background:#fff}
body.driver-view #driverFeeSummary .fee-summary-item{padding:0 12px;border:0;border-right:1px solid #e0e6e2;border-radius:0;background:transparent;text-align:left;min-width:0}
body.driver-view #driverFeeSummary .fee-summary-item:last-child{border:0;background:transparent}
body.driver-view #driverFeeSummary .fee-summary-item span{font-size:12px;color:#3f5549;white-space:nowrap}
body.driver-view #driverFeeSummary .fee-summary-item b{font-size:clamp(20px,6vw,28px);line-height:1.5;letter-spacing:-.7px;white-space:nowrap}
body.driver-view #deliveryTypes{margin:0 0 10px;gap:7px}
body.driver-view #deliveryTypes button{min-height:44px;padding:8px 5px;border-radius:9px;font-size:13px}
body.driver-view #filters{grid-template-columns:1fr;gap:8px;margin:0}
body.driver-view #filters button{display:grid;grid-template-columns:32px minmax(0,1fr) auto 12px;align-items:center;gap:10px;min-height:60px;padding:10px 12px;border-radius:11px;background:#fff;border:1px solid #d7e1db;color:#243f32}
body.driver-view #filters button:before{display:grid;place-items:center;width:32px;height:32px;border-radius:8px;background:#e9f0ff;color:#295d96;font-size:20px;content:'◷'}
body.driver-view #filters button.status-2:before{content:'□';background:#e4f3eb;color:#266548}
body.driver-view #filters button.status-3:before{content:'➜'}
body.driver-view #filters button.status-4:before{content:'✓';background:#e4f3eb;color:#266548}
body.driver-view #filters button:after{display:block;content:'›';font-size:23px;color:#6c7b72;position:static;background:none;box-shadow:none;width:auto;height:auto}
body.driver-view #filters button span{font-size:15px;font-weight:700}
body.driver-view #filters button b{font-size:23px;gap:3px;color:#28598d}
body.driver-view #filters button.status-2 b,body.driver-view #filters button.status-4 b{color:#266548}
body.driver-view #filters button small{font-size:13px}
body.driver-view footer{margin-top:16px;font-size:10px}
body.driver-view .sandbox-bar{height:26px;font-size:10px;gap:8px}
@media(max-width:360px){body.driver-view>header .brand{font-size:20px}body.driver-view>header #brandRole{display:none}}

/* One contextual bottom action, shared by home and status list dialogs. */
body.driver-view #deliveryMapActions{display:none!important}
body.driver-view main>footer{display:none}
body #driverBottomAction{position:fixed;inset:auto 0 0;z-index:6;background:#e2ebdf;border-top:1px solid #d4dfd1;padding:0 14px env(safe-area-inset-bottom);margin:0}
body #driverBottomAction.in-list{position:static;flex:0 0 auto;width:100%;box-sizing:border-box}
body #driverBottomAction[hidden]{display:none}
body #driverBottomAction>a,body #driverBottomAction>button{display:flex;align-items:center;justify-content:center;gap:9px;min-height:54px;width:100%;padding:10px 12px;border:0;border-radius:0;background:transparent;color:#214634;font-size:16px;font-weight:700;text-decoration:none;box-sizing:border-box}
body #driverBottomAction svg{width:23px;height:23px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}
body #driverBottomAction :focus-visible{outline:3px solid #417d61;outline-offset:-3px}

/* Delivery type totals count all unfinished jobs on both dashboards. */
body.manager-view #deliveryTypes{order:2;margin:8px 0;gap:8px}
body #deliveryTypes button{display:flex;flex-direction:row;align-items:center;justify-content:center;gap:6px;min-height:44px;padding:8px 6px;white-space:nowrap}
body #deliveryTypes button strong{font-size:14px}
body #deliveryTypes .new-job-count{font-size:12px;border-radius:20px;padding:2px 7px;background:#ffffffcf;color:#234d39}
body.manager-view #deliveryTypes button[aria-pressed="true"]{background:#214d3b;color:white;border-color:#214d3b}
body #deliveryTypes button strong:before{display:none!important}
@media(max-width:360px){body #deliveryTypes button strong{font-size:13px}body #deliveryTypes button{gap:4px}}
