.brand{padding-bottom:30px}
.topbar{height:76px}
.status-filters{grid-template-columns:repeat(4,minmax(0,1fr))}
.tracking-workspace{grid-template-columns:250px minmax(0,1fr);height:clamp(520px,calc(100vh - 205px),850px)}
.tracking-workspace.has-selection{grid-template-columns:250px minmax(0,1fr) 255px;height:clamp(450px,57vh,620px)}
.detail-title-row>div:nth-child(2){min-width:0;flex:1}
.detail-close{margin:-5px -7px 0 auto;flex-shrink:0}
.vehicle-symbol{position:relative;overflow:hidden}
.vehicle-symbol .vehicle-photo{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;background:#eff5fc;z-index:1}
.vehicle-symbol .vehicle-photo+svg{visibility:hidden}
.geofence-form button.secondary{width:100%;margin-top:7px;font-size:12px}
@media(min-width:1600px){.tracking-workspace{grid-template-columns:280px minmax(0,1fr)}.tracking-workspace.has-selection{grid-template-columns:280px minmax(0,1fr) 280px}}
@media(max-width:1200px){.tracking-workspace{grid-template-columns:215px minmax(0,1fr)}.tracking-workspace.has-selection{grid-template-columns:215px minmax(0,1fr) 220px}}
@media(max-width:1020px) and (min-width:761px){.tracking-workspace{grid-template-columns:210px minmax(0,1fr)}.tracking-workspace.has-selection{grid-template-columns:210px minmax(0,1fr) 210px}}
@media(max-width:760px){.topbar{height:73px}.status-filters{display:flex}.tracking-workspace,.tracking-workspace.has-selection{display:grid;grid-template-columns:1fr;height:auto;min-height:0;max-height:none}.tracking-workspace:not(.has-selection) .map-card{height:clamp(340px,calc(100dvh - 275px),700px);max-height:none}.tracking-workspace.has-selection .map-card{height:42vh;min-height:260px;max-height:480px}.mobile-units .fleet-panel{display:flex}#tripPanel:not([hidden]){display:block}}
.map-tools button { font-size: 10px; }
.map-tools button:disabled { opacity: .45; }
.section-heading{display:flex;justify-content:space-between;align-items:flex-start;gap:20px;margin-bottom:20px}
.section-heading h2{font-size:23px}
.section-heading p{margin:6px 0 0}
.report-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:15px;margin-top:24px}
.report-grid article{border:1px solid var(--line);border-radius:9px;padding:23px;background:#fafcff;min-height:205px}
.report-grid article h3{font-size:15px;color:var(--navy);margin:15px 0 5px}
.report-grid article p{font-size:11px;line-height:1.6;margin:0 0 20px}
.report-grid article>span:last-child{font-size:10px;color:#697f9a;background:#eaf3ff;padding:6px 9px;border-radius:4px}
.report-symbol{display:grid;place-items:center;width:35px;height:35px;border-radius:8px;background:#eaf3ff;color:var(--blue);font-size:20px}
.geofence-grid{display:grid;grid-template-columns:minmax(275px,360px) minmax(0,1fr);gap:18px}
.geofence-side{display:grid;align-content:start;gap:16px}
.geofence-form,.active-geofences{border:1px solid var(--line);border-radius:9px;padding:18px;background:#fbfcfe}
.geofence-form h3,.active-geofences h3,.replay-list h3{font-size:15px;color:var(--navy);margin:0 0 14px}
.geofence-form label,.replay-form label{display:grid;gap:5px;color:#5e7190;font-size:11px;font-weight:600;margin:10px 0}
.geofence-form input,.geofence-form select,.replay-form input,.replay-form select{width:100%;max-width:none;padding:10px;font-size:12px}
.geofence-form p{font-size:11px;margin:12px 0 5px}
.geofence-form button.primary{width:100%;margin-top:12px;font-size:12px}
.geofence-coordinates{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.geofence-map,.replay-map{min-height:545px;border:1px solid var(--line);border-radius:9px;overflow:hidden}
.geofence-item{display:flex;align-items:center;gap:9px;padding:12px 0;border-top:1px solid var(--line);font-size:11px}
.geofence-item:first-child{border-top:0}
.geofence-item>div{min-width:0;flex:1}
.geofence-item strong,.geofence-item small{display:block;overflow-wrap:anywhere}
.geofence-item small{color:#8293a9;margin-top:3px;line-height:1.4}
.geofence-swatch{width:11px;height:11px;flex:none;border-radius:50%}
.replay-form{display:grid;grid-template-columns:minmax(180px,1.2fr) repeat(2,minmax(175px,1fr)) auto;gap:12px;align-items:end;background:#f8fbff;border:1px solid var(--line);border-radius:8px;padding:12px 16px}
.replay-form label{margin:0}
.replay-form button{font-size:11px;padding:10px 20px}
.replay-status{font-size:11px;color:#6e8099;line-height:1.6;min-height:17px}
.replay-grid{display:grid;grid-template-columns:minmax(0,1fr) 260px;gap:16px}
.replay-controls{display:flex;align-items:center;gap:8px;flex-wrap:wrap;padding:12px 0}
.replay-controls label{display:flex;align-items:center;gap:5px;font-size:11px;color:#697f9a}
.replay-controls select{max-width:75px;padding:7px;font-size:11px}
.replay-controls button{font-size:11px}
#replayProgress{font-size:11px;color:#637a97;margin-left:auto}
.replay-list{border:1px solid var(--line);border-radius:8px;padding:16px;max-height:600px;overflow:auto}
.replay-trip{display:grid;width:100%;text-align:left;border:1px solid var(--line);border-radius:6px;padding:11px;margin:8px 0;color:#315070}
.replay-trip:hover,.replay-trip.active{border-color:#77abe5;background:#eff6ff}
.replay-trip strong{font-size:11px}.replay-trip small{color:#8092a8;margin-top:5px;font-size:10px}
@media(max-width:1100px){.geofence-grid{grid-template-columns:300px minmax(0,1fr)}.replay-grid{grid-template-columns:minmax(0,1fr) 220px}.replay-form{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:760px){.report-grid,.geofence-grid,.replay-grid{grid-template-columns:1fr}.geofence-map,.replay-map{min-height:400px}.replay-form{grid-template-columns:1fr}.replay-list{max-height:300px}.replay-controls #replayProgress{flex-basis:100%;margin-left:0}.secondary-panel{margin-top:0}}
.report-tabs{display:flex;flex-wrap:wrap;gap:8px;margin:4px 0 20px;border-bottom:1px solid var(--line)}
.report-tabs button{border:0;border-bottom:3px solid transparent;background:transparent;color:#657b99;padding:13px 17px;font-size:12px;font-weight:700;cursor:pointer}
.report-tabs button.active{color:var(--blue);border-bottom-color:var(--blue)}
.health-card,.health-schedule,.report-placeholder{background:#fff;border:1px solid var(--line);border-radius:10px;padding:22px;margin-bottom:18px}
.health-head{display:flex;justify-content:space-between;align-items:start;gap:18px}
.health-head h3,.health-schedule h3,.report-placeholder h3{color:var(--navy);font-size:20px;margin:5px 0 6px}
.health-head p,.health-schedule p,.report-placeholder p{font-size:12px;line-height:1.55;color:#71849e;margin:0}
.health-actions{display:flex;gap:8px;flex-wrap:wrap;justify-content:flex-end}
.health-actions button,#healthScheduleButton{font-size:11px;white-space:nowrap}
.health-stats{display:flex;flex-wrap:wrap;gap:12px;margin:18px 0}
.health-stats span{display:flex;align-items:baseline;gap:6px;padding:11px 15px;background:#f1f6fc;border-radius:7px;color:#526c8d;font-size:11px}
.health-stats strong{font-size:20px;color:var(--navy)}
.health-stats .needs-attention{background:#fff0f0;color:#a42332}
.health-stats .needs-attention strong{color:#a42332}
.health-status{font-size:11px;color:#71849e;margin:0 0 13px}
.health-table{width:100%;min-width:1110px;border-collapse:collapse;font-size:11px}
.health-table th{background:#0966c7;color:white;text-align:left;padding:12px 10px;vertical-align:middle;white-space:normal}
.health-table td{padding:12px 10px;border-bottom:1px solid #e4ecf4;color:#244365;vertical-align:top}
.health-table tbody tr:nth-child(even){background:#f8fbff}
.health-table th:nth-child(5),.health-table td:nth-child(5){min-width:260px;max-width:420px}
.health-table .health-low{color:#b31929;font-weight:800;background:#fff1f1}
.health-badge{display:inline-block;padding:5px 8px;border-radius:5px;font-weight:700;white-space:nowrap}
.health-badge.healthy{background:#e7f8f0;color:#137b59}
.health-badge.attention{background:#fff0f0;color:#a42332}
.health-schedule{display:grid;gap:16px}
.schedule-grid{display:grid;grid-template-columns:1fr 1fr 2fr 1fr;gap:12px}
.schedule-grid label{display:grid;gap:6px;color:#526c8d;font-size:11px;font-weight:700}
.schedule-grid label[hidden]{display:none}
.schedule-grid input,.schedule-grid select{width:100%;max-width:none;padding:11px;font-size:12px}
.health-schedule button{justify-self:start;font-size:11px}
.health-schedule button:disabled{opacity:.5;cursor:not-allowed}
.schedule-item{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:12px 0;border-top:1px solid #e5ebf3}
.schedule-item strong{display:block;color:var(--navy);font-size:12px;text-transform:capitalize}
.schedule-item small{display:block;color:#71849e;line-height:1.6;margin-top:5px}
#scheduleStatus{color:#677e9a}
@media(max-width:1000px){.health-head{display:grid}.health-actions{justify-content:flex-start}.schedule-grid{grid-template-columns:1fr 1fr}}
@media(max-width:600px){.health-card,.health-schedule{padding:16px}.schedule-grid{grid-template-columns:1fr}.report-tabs button{padding:11px 8px}.health-stats span{flex:1}}
.report-list-card{background:#fff;border:1px solid var(--line);border-radius:10px;margin-bottom:18px;overflow:hidden}
.report-list-card>h3{font-size:18px;color:var(--navy);margin:0;padding:18px 22px;background:#f7f9fc;border-bottom:1px solid var(--line)}
.report-list-card>p{font-size:12px;color:#71849e;line-height:1.55;margin:16px 22px}
.report-list-card #scheduleList{padding:0 22px 16px}
.report-list-card #scheduleStatus{margin:16px 22px}
.report-choice-list{display:grid}
.report-choice{display:grid;grid-template-columns:24px minmax(0,1fr) 22px;align-items:center;gap:14px;width:100%;padding:18px 22px;text-align:left;background:#fff;border:0;border-bottom:1px solid #e5ebf3;color:#173a63;cursor:pointer}
.report-choice:last-child{border-bottom:0}
.report-choice:hover,.report-choice:focus-visible{background:#f0f6ff;outline:none}
.report-choice:disabled{opacity:.5;cursor:not-allowed}
.report-choice-icon{font-size:22px;color:#85a8d2}
.report-choice strong{display:block;font-size:14px;font-weight:700}
.report-choice small{display:block;font-size:11px;color:#71849e;margin-top:4px;line-height:1.4}
.report-choice-arrow{font-size:25px;color:#7b9cc5;text-align:right}
.report-back{display:inline-block;background:none;border:0;color:var(--blue);font-size:12px;font-weight:700;padding:0;margin:0 0 17px;cursor:pointer}
.report-parameters{display:grid;grid-template-columns:minmax(200px,1.5fr) minmax(180px,1fr) auto;align-items:end;gap:14px;margin:22px 0 16px;padding:16px;background:#f7faff;border:1px solid var(--line);border-radius:8px}
.report-parameters label,.report-parameters>div{display:grid;gap:7px;color:#526c8d;font-size:11px;font-weight:700}
.report-parameters select{width:100%;max-width:none;padding:10px;font-size:12px}
.report-parameters>div span:last-child{font-weight:400;font-size:12px;min-height:39px;display:flex;align-items:center;color:#315070}
.report-parameters button{padding:11px 20px;font-size:12px;white-space:nowrap}
.health-result-head{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-top:20px}
.health-result-head .health-stats{margin:0 0 14px}
.health-result-head .health-actions{margin:0 0 14px}
@media(max-width:760px){.report-parameters{grid-template-columns:1fr}.report-parameters button{width:100%}.report-choice{padding:16px}.report-list-card>h3{padding:16px}}
