.workspace{height:100dvh;display:flex;flex-direction:column}header,.toolbar{flex-shrink:0}main{height:auto;min-height:0;flex:1;overflow:hidden}.fleet-panel,.map-panel,.admin-shell,.reports-panel{min-height:0}.admin-content{min-height:0}.form-grid .geo-hint{font-weight:400}.modal .secondary{font-size:13px}.history-panel.collapsed>label,.history-panel.collapsed>.date-row,.history-panel.collapsed>.periods,.history-panel.collapsed>.primary{display:none}.history-panel.collapsed{padding:16px}.history-panel.collapsed #route-info{margin-top:12px}.route-toggle{float:right;margin-top:-22px;font-size:13px}.print-only{display:none}@media(max-width:760px){.fleet-panel{height:185px;flex-shrink:0}.map-panel{flex:1}.reports-panel{flex:1}.toolbar h1{font-size:22px}.header-right{gap:8px}.report-heading .secondary{font-size:12px;padding:9px 10px}.admin-top .secondary,.admin-top .primary{padding:9px 10px}.history-panel{max-height:95%;overflow:auto}}@media print{.workspace{height:auto;display:block}main{overflow:visible}.print-only{display:block}}
.report-heading{flex-wrap:wrap;gap:16px}
.report-heading>.report-heading-actions{display:flex;gap:8px;align-items:center;flex-wrap:wrap;margin-right:0}
.report-results{display:flex;flex-direction:column;gap:14px;margin-top:24px;min-width:0;min-height:0}
.report-results>.report-result{display:flex;flex-direction:column;margin:0;min-width:0;min-height:0;overflow:hidden}
.report-result>.data-note{flex:none}
.report-table-scroll{flex:1;min-height:0;overflow:auto;overscroll-behavior:contain;scroll-padding-top:48px}
.report-table-scroll thead th{position:sticky;top:0;z-index:1}
.report-table-scroll:focus-visible{outline:2px solid var(--blue);outline-offset:-2px}
.report-map-panel{
 flex:none;min-width:0;border:1px solid var(--border);border-radius:12px;background:#fff;
 overflow:hidden;scroll-margin-top:12px;
}
.report-map-header{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:6px 12px}
.report-map-caption{display:flex;flex-wrap:wrap;align-items:baseline;gap:3px 12px;min-width:0}
.report-map-header .eyebrow{font-size:10px;letter-spacing:1px;text-transform:uppercase}
.report-map-header h3{font-size:15px;overflow-wrap:anywhere}
.report-map-header .muted{font-size:11px;line-height:1.4}
#report-map-gps-gap{flex-basis:100%}
.report-map-header button{flex-shrink:0;min-height:32px;padding:5px 10px;font-size:12px}
.report-map-body{position:relative;height:clamp(160px,40dvh,500px)}
#report-map{height:100%;width:100%;background:#e7eef3}
#report-map.loading{visibility:hidden}
.report-map-status{position:absolute;inset:0;display:grid;place-items:center;text-align:center;padding:24px;color:#506780;background:#f5f8fc}
.report-row{cursor:pointer}
.table .report-row:hover td,.table .report-row:focus-within td{background:#f1f7ff}
.table .report-row.selected td{background:#e8f2ff}
.table .report-row.selected td:first-child{box-shadow:inset 3px 0 #1677ff}
.report-object{display:flex;align-items:center;gap:8px}
.report-map-hint{margin-top:5px;font-weight:600}
.table .report-map-button{
 display:inline-grid;place-items:center;width:32px;height:32px;margin:0;flex-shrink:0;
 background:#f0f6ff;color:#215fa4;border:1px solid #dae7f7;border-radius:8px;
}
.report-map-button svg{width:18px;height:18px}
.table .report-map-button:hover,.table .report-map-button[aria-pressed=true]{background:#dcebff;color:#155daf;border-color:#afcdf2}
@media screen and (min-width:1000px){
 .reports-panel{display:flex;overflow:hidden;padding:0}
 .reports-content{
  display:grid;flex:1;min-width:0;min-height:0;
  grid-template-columns:clamp(280px,20vw,324px) minmax(0,1fr);
 }
 .report-sidebar{min-width:0;min-height:0;overflow:auto;padding:20px;background:#fff;border-right:1px solid var(--border)}
 .report-sidebar .report-heading{display:grid;gap:12px;margin-bottom:18px}
 .report-sidebar #report-periods{margin-bottom:12px}
 .report-heading>.report-heading-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}
 .report-heading-actions>button:last-child{grid-column:1/-1}
 .report-heading-actions>.secondary{padding:8px;font-size:12px}
 .report-sidebar .report-controls{display:grid;grid-template-columns:minmax(0,1fr);gap:10px;padding:12px;background:#f8fafc}
 .report-sidebar .report-controls label{min-width:0;gap:5px}
 .report-sidebar .report-controls :is(input,select){padding:8px 10px;min-height:38px}
 .report-sidebar .report-controls>.primary{margin-top:2px}
 .report-results{margin:0;padding:24px;overflow:hidden}
}
@media screen and (max-width:999px){
 .report-results{max-height:calc(100dvh - 100px)}
 .report-map-header{gap:6px;padding:6px 8px}
 .report-map-caption{column-gap:8px}
}
@media screen and (max-height:720px){
 .report-map-body{height:clamp(120px,34dvh,260px)}
}
@media print{
 .reports-panel{height:auto;overflow:visible;padding:0}
 .report-results,.report-results>.report-result{display:block}
 .report-results>.report-result,.report-table-scroll{overflow:visible}
 .report-table-scroll thead th{position:static}
 .report-result .table{min-width:0}
 .report-heading-actions,.report-map-panel,.report-map-button,.report-map-hint,#report-periods{display:none!important}
 .table .report-row.selected td{background:transparent}
 .table .report-row.selected td:first-child{box-shadow:none}
}
.driver-charts{flex:1;min-height:0;min-width:0;overflow:auto;scrollbar-gutter:stable;padding:clamp(12px,1.5vw,24px);background:#f5f7fb}
.driver-charts-grid{
 display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,max(306px,30%)),1fr));gap:14px;
 grid-auto-rows:1fr;align-items:stretch;max-width:1480px;margin:0 auto;
}
:is(.driver-chart-card,.driver-chart-dialog){
 --chart-color:#0072b2;--chart-tint:#e7f3fa;
}
.driver-chart-card{
 min-width:0;padding:14px;background:#fff;border:1px solid var(--border);border-radius:12px;
 box-shadow:0 2px 8px #16314d08;
}
.driver-chart-card.chart-fuel,.driver-chart-dialog[data-metric="fuel"]{--chart-color:#98530f;--chart-tint:#fff2df}
.driver-chart-card.chart-distance,.driver-chart-dialog[data-metric="distance"]{--chart-color:#6b4c9a;--chart-tint:#f1eafa}
.driver-chart-header{
 position:relative;display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;
 align-content:start;min-height:var(--chart-preview-header,0px);
 gap:8px 10px;padding-bottom:12px;border-bottom:1px solid #edf1f7;
}
.driver-chart-heading{display:flex;align-items:center;gap:8px;min-width:0}
.driver-chart-heading h3{font-size:15px;line-height:1.25}
.driver-chart-report{
 display:inline-flex;align-items:center;gap:4px;padding:0;border-radius:3px;
 background:transparent;color:inherit;font-weight:inherit;text-align:left;vertical-align:top;
}
.driver-chart-report svg{flex:none;width:12px;height:12px;color:#657c98}
.driver-chart-report:hover,.driver-chart-report:focus-visible{color:#245897;text-decoration:underline;text-underline-offset:2px}
.driver-chart-report:is(:hover,:focus-visible) svg{color:inherit}
.driver-chart-heading p{margin-top:2px;color:#627690;font-size:11px;line-height:1.35}
.driver-chart-icon{display:grid;place-items:center;flex:none;width:32px;height:32px;border-radius:8px;color:var(--chart-color);background:var(--chart-tint)}
.driver-chart-icon svg{width:18px;height:18px}
.driver-chart-tools{display:flex;align-items:center;gap:6px;margin-inline-start:auto}
.driver-chart-period-label{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.driver-chart-period summary{
 display:flex;align-items:center;gap:6px;min-height:34px;padding:5px 8px;list-style:none;cursor:pointer;
 border:1px solid #e3eaf3;border-radius:8px;background:#f7f9fc;color:#405774;
 font-size:12px;font-weight:600;white-space:nowrap;font-variant-numeric:tabular-nums;
}
.driver-chart-period summary::-webkit-details-marker{display:none}
.driver-chart-period summary svg{width:15px;height:15px;color:#657c98}
.driver-chart-period summary::after{content:"";width:5px;height:5px;margin:0 2px 3px;border:solid currentColor;border-width:0 1px 1px 0;transform:rotate(45deg)}
.driver-chart-period[open] summary::after{margin:3px 2px 0;transform:rotate(225deg)}
.driver-chart-full{
 display:grid;place-items:center;flex:none;width:34px;height:34px;padding:0;
 border:1px solid #e3eaf3;background:#f7f9fc;color:#526a87;
}
.driver-chart-full svg{width:17px;height:17px}
.driver-chart-full:disabled{cursor:default}
.driver-chart-period summary:hover,.driver-chart-period[open] summary,.driver-chart-full:hover:enabled{background:#eef5ff;border-color:#ccdef5;color:#245897}
.driver-chart-period summary:focus-visible,.driver-chart-full:focus-visible{outline:2px solid var(--blue);outline-offset:2px}
.driver-chart-period form{
 position:absolute;inset-inline-end:0;top:calc(100% - 5px);z-index:2;display:grid;gap:10px;
 width:min(270px,100%);padding:12px;border:1px solid #dce6f2;border-radius:10px;
 background:#fff;box-shadow:0 8px 24px #19345723;
}
.driver-chart-period label{display:grid;grid-template-columns:22px minmax(0,1fr);align-items:center;gap:8px;font-size:12px;color:#405774}
.driver-chart-period input{min-height:36px;padding:6px 8px;font-size:13px}
.driver-chart-period-actions{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:6px}
.driver-chart-period-actions button{min-height:34px;padding:6px 9px;font-size:12px}
.driver-chart-period-actions .text-btn{color:#245897}
.driver-chart-period-actions .text-btn:hover{background:#eef5ff}
.driver-chart-period-error,.driver-chart-status{color:#546a86;font-size:12px;line-height:1.4}
.driver-chart-status{min-height:var(--chart-preview-status,0px)}
.driver-chart-status:not(:empty){padding-top:9px}
.driver-chart-period-error,.driver-chart-status.error{color:#a02f43}
.driver-chart-coverage{margin:9px 0 2px;color:#627690;font-size:11px}
.driver-chart-ranking{list-style:none;margin:0;padding:0}
.driver-chart-body .driver-chart-coverage{min-height:var(--chart-preview-coverage,0px)}
.driver-chart-body .driver-chart-ranking{display:grid;grid-template-rows:var(--chart-preview-rows,none)}
.driver-chart-body .driver-chart-row:nth-child(1){--chart-row-head:var(--chart-preview-head-1)}
.driver-chart-body .driver-chart-row:nth-child(2){--chart-row-head:var(--chart-preview-head-2)}
.driver-chart-body .driver-chart-row:nth-child(3){--chart-row-head:var(--chart-preview-head-3)}
.driver-chart-row{padding:8px 0;border-bottom:1px solid #edf1f7}
.driver-chart-row:last-child{border-bottom:0}
.driver-chart-row-head{display:grid;grid-template-columns:19px minmax(0,1fr) auto;align-items:baseline;align-content:start;gap:5px;font-size:13px;min-height:var(--chart-row-head,0px)}
.driver-chart-rank{color:#627690;font-size:11px;font-variant-numeric:tabular-nums}
.driver-chart-name{overflow-wrap:anywhere;font-weight:600}
.driver-chart-value{color:var(--chart-color);white-space:nowrap;font-variant-numeric:tabular-nums}
.driver-chart-track{height:4px;margin:5px 0 0 24px;border-radius:4px;background:#edf1f7;overflow:hidden}
.driver-chart-bar{display:block;height:100%;border-radius:inherit;background:var(--chart-color)}
.driver-chart-note{margin:4px 0 0 24px;color:#687c95;font-size:11px;line-height:1.35}
.driver-chart-empty{padding:12px 0 2px;color:#687c95;font-size:13px}
.driver-chart-dialog{width:min(520px,calc(100vw - 24px));max-height:82dvh;padding:18px;color:#17253b;overflow:hidden}
.driver-chart-dialog[open]{display:flex;flex-direction:column}
.driver-chart-dialog-head{flex:none;align-items:flex-start;gap:12px;padding-bottom:12px;border-bottom:1px solid #edf1f7}
.driver-chart-dialog-head h2{font-size:18px;line-height:1.3;overflow-wrap:anywhere}
.driver-chart-dialog-head p{margin-top:4px;color:#627690;font-size:12px;line-height:1.4}
.driver-chart-dialog-body{min-height:0;padding-right:4px;overflow:auto;overscroll-behavior:contain;scrollbar-width:thin}
.driver-chart-dialog-body:focus-visible{outline:2px solid var(--blue);outline-offset:-2px}
.driver-chart-card.chart-zones,.driver-chart-dialog.chart-zones-dialog{--chart-color:#22785f;--chart-tint:#e7f5ef}
.chart-zones{display:flex;flex-direction:column}
.chart-zones>.driver-chart-header{flex:none}
.chart-zones-body{flex:1;min-height:26px;padding-top:8px;overflow:hidden;contain:size}
.chart-zone+.chart-zone{margin-top:7px;padding-top:7px;border-top:1px solid #edf1f7}
.chart-zone-heading{display:flex;justify-content:space-between;align-items:baseline;gap:8px}
.chart-zone-heading h4{min-width:0;margin:0;font-size:13px;line-height:1.3}
.chart-zone-link{
 display:block;max-width:100%;padding:0;border-radius:3px;background:transparent;color:var(--chart-color);
 font:inherit;text-align:left;overflow-wrap:anywhere;
}
.chart-zone-link:is(:hover,:focus-visible){text-decoration:underline;text-underline-offset:2px}
.chart-zone-link:focus-visible{outline:2px solid var(--blue);outline-offset:1px}
.chart-zone-count{
 flex:none;padding:1px 6px;border-radius:5px;background:var(--chart-tint);color:var(--chart-color);
 font-size:11px;line-height:1.4;font-weight:600;font-variant-numeric:tabular-nums;
}
.chart-zone-drivers{display:flex;flex-wrap:wrap;gap:4px;margin:5px 0 0;padding:0;list-style:none}
.chart-zone-drivers li{
 min-width:0;max-width:100%;padding:2px 6px;border-radius:5px;background:#f1f5f9;color:#405774;
 font-size:11px;line-height:1.4;overflow-wrap:anywhere;
}
.chart-zones-body :is(.chart-zone-link,.chart-zone-drivers li){
 min-width:0;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;
}
.chart-zone-empty,.chart-zones-empty{color:#627690;font-size:12px;line-height:1.4}
.chart-zone-empty{margin-top:4px}
.chart-zones-dialog .driver-chart-dialog-head{align-items:center;margin-bottom:0}
.chart-zones-dialog-body{padding-top:10px}
@media(max-width:660px){
 .driver-charts-grid{gap:10px}
 .driver-chart-card{padding:12px}
 .chart-zones>.driver-chart-header{min-height:0}
 .driver-chart-period summary{min-height:38px}
 .driver-chart-full{width:38px;height:38px}
 .driver-chart-dialog{max-height:88dvh;padding:14px}
}
.config-editor{padding:24px;max-width:1240px}.config-intro{display:flex;justify-content:space-between;gap:20px;align-items:flex-start;margin-bottom:22px}.config-intro h3{margin:0 0 8px;font-size:20px}.config-intro p,.config-footer>span{font-size:13px;color:#7e8fa7;line-height:1.6}.config-badge{white-space:nowrap;padding:7px 12px;border-radius:20px;background:#e9f8f3;color:#168873;font-size:12px}.config-badge.dirty{background:#fff3da;color:#ac7000}.config-tools{display:flex;gap:12px;align-items:center;flex-wrap:wrap;margin-bottom:20px}.config-modes{display:flex;gap:4px}.config-modes .active{color:#1677ff;background:#edf5ff;border-color:#b9d4ff}.config-tools input{flex:1;min-width:180px}.config-field{display:grid;grid-template-columns:minmax(230px,1fr) minmax(200px,1fr);gap:24px;padding:18px 0;border-bottom:1px solid #e5ecf5;align-items:center}.config-field label{display:block;font-weight:600;color:#163254}.config-field code{display:block;font-size:12px;color:#1677ff;margin:5px 0;overflow-wrap:anywhere}.config-field p{margin:0;font-size:12px;color:#7e8fa7;line-height:1.6}.config-value{display:flex;gap:8px;align-items:center}.config-value input,.config-value select{width:100%;min-width:0}.config-remove{background:none;border:none;color:#9ba9bc;font-size:23px;padding:8px;cursor:pointer}.config-remove:hover{color:#db4c4c}.config-footer{position:sticky;bottom:0;background:#fff;border-top:1px solid #e5ecf5;padding:18px 0;display:flex;flex-wrap:wrap;justify-content:space-between;gap:12px;align-items:center;z-index:2}.config-footer>div{display:flex;gap:8px;flex-wrap:wrap}.config-message{margin:20px 0;padding:14px;border-radius:8px;background:#edf5ff;color:#25507c;line-height:1.7;font-size:13px;overflow-wrap:anywhere}#config-raw-wrap{display:block;font-size:13px}#config-raw-wrap[hidden]{display:none}#config-raw{width:100%;min-height:480px;display:block;font:13px/1.7 Consolas,monospace;margin-top:10px;white-space:pre;tab-size:4}.config-new{display:flex;gap:10px;align-items:end;padding:18px;background:#f5f8fd;border-radius:10px;margin-bottom:12px}.config-new label{flex:1}.config-new input{display:block;width:100%;margin-top:8px}@media(max-width:700px){.config-editor{padding:14px}.config-field{grid-template-columns:1fr;gap:12px}.config-new{flex-wrap:wrap}.config-new label{min-width:150px}.config-footer>div{width:100%}.config-intro{gap:10px}}



.config-disabled{background:#f1f4f8;border-left:3px solid #9aa7b6}.config-enable{display:flex!important;align-items:center;gap:7px;white-space:nowrap;font-size:12px!important}.config-enable input{width:17px!important;height:17px;accent-color:#2672ed}.xml-tools{display:flex;align-items:center;flex-wrap:wrap;gap:8px;margin:12px 0}.xml-tools input{max-width:220px}.xml-tools span{margin-left:auto;font-size:12px;color:#6c7a91}.xml-code{position:relative;height:520px;background:#152033;border-radius:12px;overflow:hidden}.xml-code #config-raw,.xml-code pre{position:absolute;inset:0;margin:0!important;padding:18px!important;border:0!important;border-radius:0!important;font:14px/22px Consolas,monospace!important;white-space:pre!important;tab-size:4;overflow:auto;width:100%;height:100%;box-sizing:border-box;letter-spacing:normal}.xml-code pre{color:#dce6f3;pointer-events:none}.xml-code #config-raw{color:transparent!important;caret-color:white;background:transparent!important;resize:none;min-height:0!important;-webkit-text-fill-color:transparent}.xml-code #config-raw::selection{background:#527dac66}.xml-tag{color:#88c8ff}.xml-comment{color:#8cb798}#config-raw-wrap small{display:block;margin:10px 0;color:#748298}@media(max-width:900px){.config-value{flex-wrap:wrap}.xml-code{height:420px}}

.detail-more{display:flex;justify-content:space-between;align-items:center;width:100%;margin-top:14px}.detail-more span{font-size:22px;line-height:16px;color:#1677ff}.device-details-modal{width:min(780px,calc(100vw - 32px));padding:24px;overflow:hidden}.device-details-modal[open]{display:flex;flex-direction:column}.device-details-modal .modal-head{flex-shrink:0;gap:16px;align-items:flex-start}.device-details-modal h2{font-size:21px;overflow-wrap:anywhere}.device-details-modal .modal-head p{margin:8px 0 0;font-size:12px}.device-details-body{overflow:auto;min-height:0;padding-right:8px;overscroll-behavior:contain}.device-details-modal .modal-footer{flex-shrink:0;margin-top:16px;padding-top:16px;border-top:1px solid var(--border)}.device-data-section{border:1px solid var(--border);border-radius:10px;margin-bottom:18px;overflow:hidden}.device-data-section h3{font-size:15px;margin:0;padding:14px 18px;display:flex;align-items:center;justify-content:space-between;background:#f6f8fb;border-bottom:1px solid var(--border)}.device-data-section h3 span{font-size:12px;color:#8394ab;font-weight:400}.device-data-section dl{margin:0}.device-data-section>p{padding:16px;font-size:13px}.device-data-row{display:grid;grid-template-columns:minmax(160px,1fr) minmax(120px,1fr);gap:20px;padding:12px 18px;border-bottom:1px solid #edf1f7;align-items:start}.device-data-row:last-child{border-bottom:0}.device-data-row dt{font-size:13px;color:#647893;overflow-wrap:anywhere}.device-data-row code{display:block;font-size:11px;color:#9ba8ba;margin-top:4px}.device-data-row dd{margin:0;font-size:13px;font-weight:500;color:#173653;overflow-wrap:anywhere}.device-data-row pre{font:12px/1.6 Consolas,monospace;margin:0;white-space:pre-wrap;overflow-wrap:anywhere}.device-data-can h3{background:#edf5ff;color:#1677ff}@media(max-width:600px){.device-details-modal{padding:16px;max-height:92dvh}.device-details-modal h2{font-size:18px}.device-data-row{grid-template-columns:minmax(120px,1fr) minmax(90px,1fr);gap:12px;padding:12px}.device-data-section h3{padding:12px}}

.detail-location{display:flex;align-items:baseline;justify-content:space-between;gap:14px}.detail-location .detail-address{min-width:0;flex:1;overflow-wrap:anywhere}.detail-odometer{font-size:13px;font-weight:600;white-space:nowrap;color:#415774}

.device-meta{gap:8px}.device-status-zone{display:flex;align-items:center;gap:8px;min-width:0;flex:1}.device-status-zone .status{flex-shrink:0}.device-zone{color:#1677ff;font-size:11px;font-weight:500;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:0}.device-update{white-space:nowrap;flex-shrink:0}

.metric-speed .gps-speed{display:flex;align-items:center;gap:5px;font-size:10px;line-height:1.4;margin-top:2px;color:#8390a4}.speed-help{display:inline-flex;align-items:center;justify-content:center;width:12px;height:12px;border:1px solid #b5c0d0;border-radius:50%;font-size:9px;line-height:1;cursor:help}.speed-help:focus-visible{outline:2px solid #80b9ff;outline-offset:2px}

/* Device card: shared columns and baselines for primary and secondary readings. */
.detail{padding:22px;width:350px}.detail .metrics{gap:0;padding:16px 0;margin-top:16px;border-bottom:1px solid var(--border)}.detail .metric{min-width:0;display:grid;grid-template-rows:26px 18px 18px;justify-items:center;align-items:center;text-align:center;padding:0 8px}.detail .metric+.metric{border-left:1px solid var(--border)}.detail .metric strong{grid-row:1;font-size:20px;line-height:26px;white-space:nowrap;font-variant-numeric:tabular-nums}.detail .metric>small:not(.gps-speed){grid-row:3;line-height:18px;font-size:12px}.detail .metric-speed .gps-speed{grid-row:2;margin:0;justify-content:center;font-size:10px;line-height:18px}.detail .metric strong small{font-size:10px;font-weight:500}.detail .sensor-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-top:16px;max-height:none;overflow:visible;align-items:stretch}.detail .sensor{min-width:0;padding:10px 12px;border-radius:9px;display:flex;flex-direction:column;gap:6px;min-height:68px}.detail .sensor-label{color:#708097;font-size:11px;line-height:15px;min-height:30px;overflow-wrap:anywhere}.detail .sensor b{margin:0;margin-top:auto;font-size:13px;line-height:18px;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}.detail .detail-more{height:42px;margin-top:16px}.detail .detail-actions{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr) 44px;gap:8px;margin-top:12px}.detail .detail-actions button{min-width:0;height:44px;padding:0 10px;font-size:13px}.detail #device-command{font-size:20px}.detail .detail-time{line-height:18px;margin-top:12px;font-size:11px}.detail .detail-top{margin-bottom:16px}
@media(max-width:760px){.detail{width:calc(100% - 20px);padding:16px}.detail .metric{padding:0 4px}}

.can-flag-group{padding:16px 18px;border-bottom:1px solid #e6ebf2}.can-flag-group h4{margin:0 0 12px;font-size:13px;color:#415774}.can-flag-grid{display:grid;grid-template-columns:1fr 1fr;gap:8px}.can-flag{display:flex;align-items:center;justify-content:space-between;gap:12px;background:#f6f8fb;border-radius:7px;padding:10px 12px;font-size:12px;line-height:1.5}.can-flag>span{min-width:0}.can-flag b{display:flex;align-items:center;gap:6px;white-space:nowrap;font-size:11px;font-weight:500;color:#8a97a9}.can-flag i{width:7px;height:7px;border-radius:50%;background:#b8c2d0;flex-shrink:0}.can-flag.active{background:#eef9f4}.can-flag.active b{color:#178c6c}.can-flag.active i{background:#20ad80}.can-flag.warning{background:#fff4e3}.can-flag.warning b{color:#ba7a16}.can-flag.warning i{background:#e6a331}.can-flag.unknown b{color:#9ba8ba}.can-flag.unknown i{background:transparent;border:1px solid #b8c2d0}@media(max-width:600px){.can-flag-grid{grid-template-columns:1fr}.can-flag-group{padding:12px}}

/* MEGAS telemetry icon set: ignition key and engine, with independent states. */
.device-freshness{display:inline-flex;align-items:center;justify-content:center;flex-shrink:0;width:17px;height:17px;color:#ad792b;cursor:help}.device-freshness svg{width:16px;height:16px}.device-freshness:focus-visible{outline:2px solid #80b9ff;outline-offset:2px;border-radius:50%}.detail-state{display:flex;align-items:center;gap:7px}.device-status-zone:has(.device-freshness){gap:5px}
.device-meta{align-items:flex-start}.device-status-zone{padding-top:2px}.device-parking-since{display:flex;flex-direction:column;align-items:flex-end;gap:3px;color:#68819e;font-variant-numeric:tabular-nums;font-size:11px;line-height:1.2}.device-parking-since small{font-size:10px;color:#8c99ab}.device-indicators{display:flex;gap:7px;margin-top:7px}.device-indicator{display:inline-flex;align-items:center;justify-content:center;position:relative;width:28px;height:25px;border-radius:6px;background:#f1f4f8;color:#91a0b2}.device-indicator svg{width:19px;height:19px}.device-indicator i{position:absolute;right:3px;bottom:3px;width:4px;height:4px;border-radius:50%;background:currentColor;border:1px solid white;box-sizing:content-box}.device-indicator.on{background:#e5f7f0;color:#14a67e}.device-indicator.unknown{background:transparent;color:#c2cbd6;border:1px dashed #dbe2ec}.device-indicator.unknown i{display:none}.device-indicator:focus-visible{outline:2px solid #1677ff;outline-offset:2px}.device.selected .device-indicator.off{background:#e0ebfa;color:#8095b3}.device-indicators svg{pointer-events:none}

.device{padding-top:12px;padding-bottom:12px}.device-name{margin-bottom:5px}.device-indicators{margin-top:5px}.device-indicator{width:26px;height:22px}

.device-row{border-bottom:1px solid #eff2f7;background:#fff}.device-row>.device{border-bottom:0}.device-row.selected{background:#edf5ff}.device-alerts{display:flex;gap:6px;flex-wrap:wrap;padding:0 18px 12px 70px}.device-row.selected .device-alerts{border-left:3px solid #1677ff;padding-left:67px}.device-alert-badge{display:inline-flex;align-items:center;justify-content:center;gap:2px;min-width:30px;height:30px;padding:4px 5px;border:1px solid #f6cad2;border-radius:7px;background:#fff0f2;color:#d04455}.device-alert-badge:hover,.device-alert-badge:focus-visible{background:#ffe1e7;outline:2px solid #ee9bab;outline-offset:1px}.device-alert-badge svg,.alert-type-icon svg,.can-flag-label svg{width:21px;height:21px;flex-shrink:0}.alert-rules-note{margin:0 0 18px;line-height:1.6}.alert-rule-name{display:flex;align-items:center;gap:12px;min-width:240px}.alert-rule-name small{display:block;font-size:11px;color:#8c99ab;margin-top:4px}.alert-type-icon{display:inline-flex;gap:2px;align-items:center;justify-content:center;min-width:42px;height:32px;border-radius:7px;background:#f0f5fc;color:#617c9f}.alert-rule-switch{display:flex;flex-direction:row;align-items:center;gap:8px;margin:0;font-size:13px}.alert-rule-switch input{width:17px;height:17px;accent-color:#1677ff}.alert-rule-help{margin-top:12px;font-size:13px;line-height:1.6}.alert-threshold{margin-top:18px}.fleet-alert-popup{width:min(420px,calc(100vw - 32px));padding:24px}.alert-popup-heading{display:flex;align-items:center;gap:12px}.alert-popup-heading h2{font-size:17px;line-height:1.4}.alert-popup-heading p{font-size:12px;margin:5px 0 0}.alert-popup-symbol{display:flex;gap:3px;padding:10px;border-radius:10px;background:#fff0f2;color:#d04455}.alert-popup-symbol svg{width:24px;height:24px}.alert-popup-value{font-size:32px;font-weight:700;color:#cc4255;padding:6px 0 22px}.alert-popup-data{margin:0}.alert-popup-data>div{display:flex;justify-content:space-between;gap:16px;padding:11px 0;border-top:1px solid #eaf0f7;font-size:13px}.alert-popup-data dt{color:#8190a6}.alert-popup-data dd{margin:0;text-align:right;color:#344a68}.can-flag-label{display:flex;align-items:center;gap:8px}.can-flag-label svg{color:inherit}.alert-rules-table td{vertical-align:middle}@media(max-width:760px){.device-row{flex-shrink:0;width:230px}.device-alerts{padding-left:65px;padding-right:10px}.device-row.selected .device-alerts{padding-left:62px}.alert-rules-table{min-width:780px}}

/* Persistent notifications: one bell per tracker and an acknowledged event history. */
.notification-bell{gap:4px;min-width:32px}.notification-bell span{font-size:10px;font-weight:700;line-height:16px;min-width:16px;text-align:center}.notification-bell.read{background:#f1f4f8;border-color:#e2e8f0;color:#899aaf}.notification-bell.read:hover{background:#e9eff7;outline-color:#bbccdf}.fleet-alert-popup{width:min(680px,calc(100vw - 32px));padding:24px;overflow:hidden;display:flex;flex-direction:column}.fleet-alert-popup:not([open]){display:none}.fleet-alert-popup .modal-head{margin-bottom:18px;flex-shrink:0}.fleet-alert-popup .alert-popup-symbol svg{width:25px;height:25px}.notification-history-toolbar{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-shrink:0}.notification-history-toolbar>span{font-size:13px;color:#526a89}.notification-history-toolbar small{display:block;font-size:11px;color:#8a9ab0;margin-top:5px}.notification-history-note{font-size:12px;color:#8a98ab;line-height:1.6;margin:14px 0 16px;flex-shrink:0}.notification-history-list{min-height:100px;overflow:auto;max-height:60vh;scrollbar-gutter:stable;padding-right:4px}.notification-event{display:flex;align-items:flex-start;gap:14px;padding:18px 0;border-top:1px solid #e8edf4}.notification-event-icon{display:flex;align-items:center;gap:1px;background:#fff0f2;color:#d04455;border-radius:9px;padding:8px;flex-shrink:0}.notification-event-icon svg{width:22px;height:22px}.notification-event.read .notification-event-icon{background:#f1f4f8;color:#8091a8}.notification-event-content{flex:1;min-width:0}.notification-event h3{font-size:14px;line-height:1.5;font-weight:600;color:#253c59}.notification-event-value{font-size:19px;font-weight:650;color:#d04455;margin:5px 0 8px}.notification-event.read .notification-event-value{color:#506581}.notification-event-value span{display:block;font-size:11px;font-weight:400;color:#8798ad;margin-top:2px}.notification-event-meta,.notification-event-state,.notification-event-read{font-size:11px;line-height:1.6;color:#8b99ac}.notification-event-state{margin-top:5px;color:#7a8da7}.notification-event-state.active{color:#b98033}.notification-event-read{color:#5c9a83;margin-top:5px}.notification-ok{font-size:12px;padding:8px 15px;flex-shrink:0}.notification-read-check{color:#5c9a83;font-size:18px;padding:3px 9px}.notification-load-more{display:block;margin:15px auto}.notification-history-error{margin:0 0 12px;flex-shrink:0}@media(max-width:600px){.fleet-alert-popup{padding:18px}.notification-event{gap:9px}.notification-event-icon{padding:6px}.notification-event-icon svg{width:18px;height:18px}.notification-event h3{font-size:13px}.notification-history-toolbar .secondary{padding:10px 12px;font-size:12px}.notification-ok{padding:8px 12px}}

/* Compact readings in the card header; all symbols share the fleet icon pack. */
.vehicle-icon svg{width:26px;height:26px;display:block}
.detail-head-grid{display:grid;grid-template-columns:minmax(0,1fr) auto;column-gap:14px;align-items:start;min-height:92px}
.detail-identity{min-width:0;padding-top:1px}
.detail-identity h2{overflow-wrap:anywhere}
.detail-identity .detail-address{margin-top:17px;font-size:12px;overflow-wrap:anywhere;line-height:1.6}
.detail-aside{display:flex;flex-direction:column;align-items:flex-end;gap:6px}
.detail-aside .close{align-self:flex-end;height:24px;line-height:24px;padding:0;width:24px}
.detail-key-readings{display:flex;flex-direction:column;gap:4px;align-items:flex-end}
.detail-key-reading{display:flex;align-items:center;gap:6px;white-space:nowrap;color:#415774;font-size:12px;line-height:18px;font-variant-numeric:tabular-nums}
.detail-key-reading svg{width:16px;height:16px;flex:none;color:#7b8fac}
.detail-key-reading strong{font-size:12px;font-weight:600}
.detail-dtc{align-items:flex-start;max-width:150px}
.detail-dtc svg{margin-top:1px}
.detail-dtc strong{white-space:normal;overflow-wrap:anywhere;text-align:right}
.detail-identifiers{display:grid;grid-template-columns:26px minmax(0,1fr) 26px;align-items:start;margin-top:10px}
.detail-identifiers-text{grid-area:1/2;text-align:center;color:#708097;font-size:11px;line-height:16px;font-weight:500;letter-spacing:.3px;overflow-wrap:anywhere}
.detail-identifiers+.metrics{margin-top:8px}
.detail-sim{grid-area:1/1;display:grid;place-items:center;width:24px;height:24px;padding:0;background:#edf3fa;color:#526d91;border-radius:6px}
.detail-sim:hover{background:#dfedff;color:#155eb9}
.detail-sim:focus-visible{outline:2px solid var(--blue);outline-offset:2px}
.detail-sim svg{width:16px;height:16px;display:block}

/* Category pins stay level. Names are placed in free space by fleet-map.js. */
.fleet-marker .marker-inner{width:44px;height:36px;transform:none;border:2px solid white;border-radius:10px;font-size:inherit;position:relative;box-shadow:0 2px 8px #21395838}
.fleet-marker .marker-inner svg{width:28px;height:25px;display:block}
.fleet-marker .marker-inner span{transform:none}
.fleet-marker .marker-inner.offline{background:#8b9db4}
.fleet-marker .marker-inner.selected{outline:3px solid #1677ff45;box-shadow:0 2px 12px #1677ff45}
.fleet-group-count{position:absolute;bottom:-6px;right:-7px;min-width:20px;height:20px;padding:0 4px;display:grid!important;place-items:center;background:#173958;color:white;border:2px solid white;border-radius:10px;font:600 10px/1 Inter,"Segoe UI",sans-serif}
.fleet-map-name{position:absolute;width:max-content;max-width:180px;padding:5px 9px;background:#fffffff5;border:1px solid #dbe3ed;border-radius:7px;box-shadow:0 2px 7px #172d4820;color:#24344c;font:600 11px/16px Inter,"Segoe UI",sans-serif;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;visibility:hidden;pointer-events:none}
.fleet-map-name.visible{visibility:visible}
.fleet-map-name.selected{color:#1265d1;border-color:#9bc8ff;background:#fff}
.fleet-hover-label{max-width:260px;white-space:normal;font-size:12px;line-height:1.5;padding:7px 10px;color:#24344c;border-radius:7px}
.fleet-group-popup h3{font-size:14px;margin:0 0 4px;color:#24344c}
.fleet-group-popup p{font-size:11px;color:#8390a4;margin:0 0 10px!important}
.fleet-group-list{display:grid;gap:5px;max-height:270px;overflow:auto}
.fleet-group-list button{display:flex;align-items:center;gap:10px;text-align:left;padding:8px;background:#f5f8fc;border-radius:8px;color:#24344c;width:100%}
.fleet-group-list button:hover{background:#eaf3ff}
.fleet-group-list b{display:block;font-size:12px;overflow-wrap:anywhere}
.fleet-group-list small{display:block;margin-top:4px;font-size:10px;color:#8390a4}
.fleet-group-category{width:34px;height:30px;background:#e8eef6;color:#778ba6;display:grid;place-items:center;border-radius:7px;flex:none}
.fleet-group-category svg{width:25px;height:23px}
.fleet-group-category.moving{color:#1677ff;background:#e3f0ff}
.fleet-group-category.parked,.fleet-group-category.stopped{color:#c98621;background:#fff3dd}

/* Five statuses: distinct hues, readable contrast and non-colour symbols. */
:root{--status-moving:#0072b2;--status-stopped:#b84a00;--status-parked:#6b4c9a;--status-offline:#5f6c7b}
.status.moving,.marker-inner.moving,.stat[data-filter=moving],.fleet-group-category.moving{--status-color:var(--status-moving)}
.status.stopped,.marker-inner.stopped,.stat[data-filter=stopped],.fleet-group-category.stopped{--status-color:var(--status-stopped)}
.status.parked,.marker-inner.parked,.stat[data-filter=parked],.fleet-group-category.parked{--status-color:var(--status-parked)}
.status.offline,.marker-inner.offline,.stat[data-filter=offline],.fleet-group-category.offline{--status-color:var(--status-offline)}
.status.moving,.status.stopped,.status.parked,.status.offline{color:var(--status-color)}
.status:before{width:11px;height:12px;background:none!important;border-radius:0;display:inline-flex;align-items:center;justify-content:center;color:currentColor;font:700 12px/12px "Segoe UI",sans-serif}
.status.moving:before{content:'→'}
.status.stopped:before{content:'Ⅱ'}
.status.parked:before{content:'P';font-size:10px}
.status.offline:before{content:'×';font-size:14px}
.stat[data-filter=moving],.stat[data-filter=stopped],.stat[data-filter=parked],.stat[data-filter=offline]{color:var(--status-color)}
.stat[data-filter=moving] span,.stat[data-filter=stopped] span,.stat[data-filter=parked] span,.stat[data-filter=offline] span{color:var(--status-color)}
.fleet-marker .marker-inner.moving,.fleet-marker .marker-inner.stopped,.fleet-marker .marker-inner.parked,.fleet-marker .marker-inner.offline{background:var(--status-color)}
.fleet-pin-state{position:absolute;bottom:-5px;left:-6px;width:17px;height:17px;background:white;color:var(--status-color);border:1px solid currentColor;border-radius:5px;display:grid!important;place-items:center;font:700 12px/1 "Segoe UI",sans-serif}
.fleet-group-category.moving,.fleet-group-category.stopped,.fleet-group-category.parked,.fleet-group-category.offline{color:var(--status-color);background:#f1f4f9}
.fleet-settings-form{max-width:680px;padding:24px;border:1px solid var(--border);border-radius:12px;background:white}
.fleet-settings-form h3{margin-bottom:12px}
.fleet-settings-form p{margin:12px 0;font-size:13px}
.fleet-settings-fields{display:grid;grid-template-columns:2fr 1fr;gap:16px;margin:22px 0}
.fleet-settings-saved{margin-left:16px;color:#0072b2;font-size:13px}
.fleet-settings-form .error-box{margin:16px 0}
@media(max-width:600px){.fleet-settings-form{padding:16px}.fleet-settings-fields{grid-template-columns:1fr}}
.device-row{position:relative}
.device-row:has(.device-alerts)>.device{min-height:100px}
.device-row:has(.device-alerts) .vehicle-icon{align-self:flex-start}
.device-row .device-alerts,.device-row.selected .device-alerts{position:absolute;left:27px;bottom:10px;padding:0;border:0;display:flex}
.device-alerts .notification-bell{position:relative;width:22px;min-width:22px;height:22px;padding:2px;border-radius:6px;gap:0}
.device-alerts .notification-bell svg{width:16px;height:16px}
.device-alerts .notification-bell span{position:absolute;top:-5px;right:-7px;min-width:13px;height:13px;padding:0 3px;border-radius:7px;background:#d04455;color:#fff;font-size:8px;line-height:13px}
@media(max-width:760px){.device-row:has(.device-alerts)>.device{min-height:95px}.device-row .device-alerts,.device-row.selected .device-alerts{left:21px}}
.status.warming,.marker-inner.warming,.stat[data-filter=warming],.fleet-group-category.warming{--status-color:#806400}
.status.warming,.stat[data-filter=warming] span{color:var(--status-color)}
.status.warming:before,.marker-inner.warming .fleet-pin-state:before,.history-event-marker.warming:before{
 content:'';
 width:11px;height:12px;
 background-color:currentColor!important;
 mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M4.5 7V2.5a1.5 1.5 0 0 1 3 0V7a2.5 2.5 0 1 1-3 0Z' fill='none' stroke='black' stroke-width='1.25'/%3E%3Cpath d='M6 5v4' stroke='black' stroke-width='1.25' stroke-linecap='round'/%3E%3C/svg%3E") center/contain no-repeat;
}
.fleet-marker .marker-inner.warming{background:var(--status-color)}
.fleet-group-category.warming{color:var(--status-color);background:#f1f4f9}
#history-open{display:inline-flex;align-items:center;gap:5px;padding:4px 0;font-weight:600;font-size:13px}
#history-open svg{width:16px;height:16px;flex:none}
.map-panel.history-open .map-heading{visibility:hidden}
.map-panel.history-open #detail{display:none}
.map-panel.history-open .history-panel{z-index:900}
.history-panel{max-height:calc(100% - 36px);overflow:auto}
.history-panel-heading,#history-actions{display:flex;align-items:center;gap:8px}
.history-panel-heading{justify-content:space-between;margin-bottom:6px}
#history-actions .route-toggle{float:none;margin:0;padding:6px 4px}
#history-close{display:grid;place-items:center;width:32px;height:32px;line-height:1;color:#647994}
#history-close:hover{background:#edf3fa}
.history-speed-legend{display:flex;flex-wrap:wrap;gap:5px 12px;margin-top:10px;color:#425873;font-size:11px}
.history-speed-legend span{display:inline-flex;align-items:center;gap:5px}
.history-speed-swatch{display:inline-block;width:17px;height:4px;border-radius:3px}
.route-drawing{border-top:1px solid var(--border);margin-top:12px;padding-top:8px}
.route-drawing>[data-toggle]{padding:4px 0}
.route-drawing [data-guide],.route-drawing-error{margin:4px 0 8px;font-size:12px;line-height:1.45}
.route-drawing-actions:not([hidden]){display:flex;flex-wrap:wrap;gap:6px;margin:7px 0}
.route-drawing-actions .secondary,.route-drawing-actions .primary{width:auto;margin:0;padding:7px 9px;font-size:12px}
.route-drawing [data-saved] label{margin-top:10px}
.route-drawing [data-saved] select{width:100%;font-size:12px}
.route-drawing-error{color:#a72838}
.leaflet-container.route-drawing-active{cursor:crosshair}
.route-drawing-active .history-event-marker,.route-drawing-active .history-event-group{pointer-events:none}
.history-event-marker{
 display:grid;place-items:center;background:#fff;border:2px solid currentColor;border-radius:50%;
 color:#345278;box-shadow:0 1px 4px #233a5c40;font-size:12px;font-weight:700;
}
.history-event-marker.stopped{color:var(--status-stopped)}
.history-event-marker.parked{color:var(--status-parked)}
.history-event-marker.warming{color:#806400}
.history-event-marker>span:empty{display:none}
.history-event-group{
 display:grid;place-items:center;background:#fff;border:2px solid currentColor;
 border-radius:50%;box-shadow:0 1px 4px #233a5c40;color:#345278;font-size:11px;font-weight:700;
}
.history-event-list{display:grid;gap:8px;max-height:220px;overflow:auto}
.history-event-list>div+div{border-top:1px solid #e6ebf2;padding-top:8px}
.history-playback-tooltip.leaflet-tooltip{padding:7px 9px;border:1px solid #dce6f2;border-radius:8px;box-shadow:0 3px 12px #233a5c30}
.history-playback-readings{display:grid;gap:3px;min-width:127px;color:#243d5a;font-variant-numeric:tabular-nums}
.history-playback-readings span{display:flex;justify-content:space-between;align-items:baseline;gap:10px}
.history-playback-readings small{font-size:10px;color:#526783}
.history-playback-readings strong{font-size:12px}
.history-event-tooltip.leaflet-tooltip{padding:7px 9px;border-radius:8px}
@media(max-width:760px){
 .map-heading{gap:10px}
 .history-panel{max-height:calc(100% - 20px)}
 .map-panel.history-open .leaflet-top.leaflet-right{top:auto;bottom:22px}
 .map-panel.history-open .map-actions{top:auto;bottom:22px;right:58px;display:flex}
}
@media(max-width:760px) and (max-height:720px){
 main:has(>.map-panel.history-open)>.fleet-panel{display:none}
}
.fleet-settings-form h3:not(:first-child){margin-top:28px}
.workspace>.workspace-header{
 display:grid;grid-template-columns:auto minmax(0,1fr) auto;grid-template-areas:"brand stats actions";
 gap:8px 18px;align-items:center;height:auto;min-height:76px;padding:10px 28px;
}
.workspace>.workspace-header:has(>.stats[hidden]){
 grid-template-columns:minmax(0,1fr) auto;grid-template-areas:"brand actions";
}
.workspace-header>.brand{grid-area:brand;white-space:nowrap}
.workspace-header>.header-right{grid-area:actions;justify-self:end;white-space:nowrap}
.workspace-header #fleet-zone{
 width:115px;height:43px;padding:0 9px;border-radius:8px;
 color:#334d6d;background:#fff;font-size:13px;
}
.workspace-header>.stats{
 grid-area:stats;display:flex;flex-wrap:nowrap;justify-self:center;
 gap:8px;min-width:0;max-width:100%;margin:0;overflow-x:auto;scrollbar-width:thin;
}
.workspace-header .stat{flex:0 0 auto;min-height:43px;padding:8px 12px}
.workspace-header .stat span{font-size:18px;margin-right:5px}
.workspace-header .stat:focus-visible{outline-offset:-3px}
@media(max-width:1260px){
 .workspace>.workspace-header{
  grid-template-columns:minmax(0,1fr) auto;grid-template-areas:"brand actions" "stats stats";
  padding:9px 20px;
 }
}
@media(max-width:760px){
 .workspace>.workspace-header{min-height:60px;padding:8px 12px;column-gap:8px}
 .workspace-header #fleet-zone{width:96px;height:36px;padding:0 6px;font-size:12px}
 .workspace-header>.stats{width:100%;gap:5px}
 .workspace-header .stat{min-height:40px;padding:5px 8px}
 .workspace-header .stat span{margin:0 0 2px;font-size:15px}
}
.vehicle-editor-section{
 margin:0;padding:16px;min-width:0;border:1px solid var(--border);border-radius:10px;
}
.vehicle-editor-section legend{padding:0 7px;color:#24344c;font-size:15px;font-weight:650}
.vehicle-catalog{border-top:1px solid var(--border);padding-top:12px}
.vehicle-catalog summary{cursor:pointer;color:#466184;font-size:13px}
.vehicle-catalog-list{display:grid;gap:7px;margin-top:14px}
.vehicle-catalog-list h4{font-size:13px;color:#24344c}
.vehicle-catalog-row{display:flex;align-items:center;gap:6px}
.vehicle-catalog-row input{flex:1;min-width:0;padding:7px 9px;font-size:13px}
.vehicle-catalog-row button{flex:none;padding:7px 9px}
.vehicle-catalog [data-catalog-status]{font-size:12px;margin-top:7px}

.search.fleet-search{
 gap:8px;min-height:42px;padding:0 5px 0 11px;
 border-radius:10px;background:#f7f9fc;color:#657891;
}
.fleet-search:focus-within{background:#fff;border-color:#80b9ff;box-shadow:0 0 0 2px #1677ff1a}
.fleet-search input{flex:1;min-width:0;padding:10px 0;font-size:13px}
.fleet-search input:focus{outline:none}
.fleet-search-icon{flex:none;width:17px;height:17px;pointer-events:none}
.fleet-search-clear{
 flex:none;display:grid;place-items:center;width:32px;height:32px;padding:0;
 background:transparent;color:#657891;border-radius:7px;
}
.fleet-search-clear:hover{background:#eaf0f8;color:#24344c}
.fleet-search-clear svg{width:16px;height:16px}
.device-search-match{
 display:flex;align-items:baseline;gap:5px;min-width:0;margin-top:5px;
 color:#526783;font-size:11px;line-height:1.35;
}
.device-search-match strong{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#24344c}

/* Miniature Russian registration plate, shared by the list and vehicle card. */
.license-plate{display:inline-flex;flex:none;width:71.5px;height:18.85px;vertical-align:middle;border-radius:3px;color:#080808;line-height:1}
.license-plate svg{display:block;width:100%;height:100%}
.plate-face{fill:#fff}
.plate-frame,.plate-divider{fill:none;stroke:currentColor;stroke-width:1.6}
.plate-divider{stroke-width:1.25}
.plate-number,.plate-region,.plate-country{fill:currentColor;font-family:Arial,sans-serif;font-weight:700}
.plate-number{letter-spacing:.3px}
.plate-letters{font-size:19.5px}
.plate-digits{font-size:28px;font-variant-numeric:tabular-nums}
.plate-region{font-variant-numeric:tabular-nums}
.plate-country{font-size:9.7px;letter-spacing:.2px}
.device-title-line{display:flex;align-items:center;justify-content:space-between;gap:7px;min-width:0;margin-bottom:7px}.device-title-line .device-name{display:block;flex:1;min-width:0;margin:0}.device-title-line .license-plate{width:67.6px;height:17.55px}.detail-registration{margin:7px 0 8px}.detail-registration .license-plate{width:97.5px;height:24.96px}
@media(max-width:400px){.device-title-line .license-plate{width:63.7px;height:16.25px}}
@media(min-width:761px){.detail{max-height:calc(100% - 44px);overflow-y:auto;overscroll-behavior:contain;scrollbar-gutter:stable}}

/* Vehicle identity above the status and the full-width telemetry row. */
@media(min-width:1101px){.fleet-panel{width:clamp(365px,32vw,475px)}}
@media(min-width:761px) and (max-width:1100px){.fleet-panel{width:clamp(300px,36vw,350px)}}
.fleet-panel .devices{
 --device-card-height:158px;--device-readings-height:46px;
 display:flex;flex-direction:column;gap:9px;padding:8px;background:#edf2f8;
}
.fleet-panel .device-row{
 flex:none;height:var(--device-card-height);border:1px solid #cfdceb;border-radius:9px;
}
.fleet-panel .device-row.selected{border-color:#99bff2}
.device-row>.device{
 display:grid;grid-template-columns:40px minmax(0,1fr);grid-template-rows:minmax(0,1fr) var(--device-readings-height);
 gap:7px 10px;align-items:start;width:100%;height:100%;padding-top:11px;padding-bottom:9px;border-radius:inherit;
}
.device-row>.device .vehicle-icon{align-self:center}
.device-identity{display:grid;gap:2px;min-width:0}
.device-status-stack{display:grid;gap:2px;flex:1;min-width:0}
.device-status-stack .device-search-match{margin-top:0}
.device-title-line .device-name{font-size:16px;line-height:1.25;font-weight:650}
.device-model{font-size:12px;line-height:1.3;color:#4d6687;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.device-row .device-title-line .license-plate{width:126px;height:auto;aspect-ratio:156/40;box-shadow:0 1px 2px #14203525}
.device-bottom-line{
 grid-column:1/-1;display:flex;justify-content:space-between;align-items:center;align-self:stretch;
 gap:10px;min-width:0;padding:4px 8px;
 border:1px solid #e2eaf4;border-radius:7px;background:#f3f6fb;
}
.device-row.selected .device-bottom-line{border-color:#d4e3f6;background:#e3eefc}
.device-row:has(.device-alerts) .device-bottom-line{padding-left:37px}
.device-row .device-alerts,.device-row.selected .device-alerts{left:27px;bottom:calc(9px + (var(--device-readings-height) - 22px) / 2)}
.device-bottom-line .device-indicators{margin-top:0;flex:none}
.device-extra-readings{
 display:grid;grid-auto-flow:column;grid-auto-columns:minmax(0,max-content);justify-items:end;
 align-items:center;gap:3px 10px;min-width:0;margin-left:auto;
}
.device-extra-readings .detail-key-reading{max-width:100%;min-width:0;font-size:11px;line-height:15px;gap:4px;color:#506781;white-space:nowrap}
.device-extra-readings .detail-key-reading strong{overflow:hidden;text-overflow:ellipsis;font-size:11px;font-weight:600}
.device-extra-readings .detail-key-reading svg{width:12px;height:12px;color:#667e9b}
@media(max-width:1100px){
 .device-extra-readings{grid-auto-flow:row;grid-template-columns:repeat(2,minmax(0,max-content))}
 .device-extra-readings:has(>:nth-child(3))>:first-child{grid-column:1/-1}
}
@media(max-width:760px){
 .fleet-panel{height:260px}
 .fleet-panel .devices{flex-direction:row}
 .device-row{width:min(350px,calc(100vw - 70px))}
 .device-row>.device{min-width:0;grid-template-columns:34px minmax(0,1fr);gap:7px 8px}
 .device-row .vehicle-icon{width:34px;height:34px}
 .device-title-line .device-name{font-size:15px}
 .device-row .device-title-line .license-plate{width:98px}
 .device-row .device-alerts,.device-row.selected .device-alerts{left:21px}
 .device-extra-readings{gap:4px 7px}
 .device-extra-readings .detail-key-reading,.device-extra-readings .detail-key-reading strong{font-size:10px}
}

/* Illustrated instruments: the value belongs to the instrument, not a table. */
.device-details-modal{width:min(1040px,calc(100vw - 32px));max-height:92dvh}
.device-details-modal .modal-head{margin-bottom:20px}
.device-details-modal .modal-head h2{font-size:22px;letter-spacing:-.5px}
.telemetry-cards-section{border:0;border-radius:0;overflow:visible;margin-bottom:26px}
.telemetry-cards-section>h3{background:none;border:0;color:#263b56;padding:0 2px 12px;font-size:14px;font-weight:650;letter-spacing:-.1px}
.telemetry-cards-section>h3>span{font-size:11px;color:#8998ad;font-weight:500;border:1px solid #e5ebf2;border-radius:20px;padding:2px 9px}
.telemetry-card-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;align-items:start}
.telemetry-card{--instrument:#3276bd;--instrument-soft:#e7f1fc;--instrument-ink:#245b91;--instrument-fill:#9ac8ed;position:relative;min-width:0;background:linear-gradient(155deg,#fff 45%,#f7faff);border:1px solid #e1e8f1;border-radius:15px;padding:13px 10px 11px;box-shadow:0 3px 9px #233b5410;transition:border-color .15s,box-shadow .15s}
.telemetry-card:hover{border-color:#a9c6e5;box-shadow:0 5px 15px #233b5415}
.telemetry-card h4{font-size:11px;line-height:15px;font-weight:500;color:#64758d;min-height:30px;margin:0 3px;text-align:left;display:flex;align-items:flex-start}
.telemetry-card-art{height:128px;display:flex;justify-content:center;align-items:center;min-width:0}
.telemetry-picture{height:128px;width:100%;max-width:210px;overflow:visible;display:block}
.picture-number{font-family:Inter,"Segoe UI",Arial,sans-serif;font-weight:650;letter-spacing:-.7px;fill:#253e5b;stroke:none;font-variant-numeric:tabular-nums}
.picture-unit{font:500 10px Inter,"Segoe UI",Arial,sans-serif;fill:#71859f;stroke:none;letter-spacing:0}
.picture-scale{font:500 8px Inter,"Segoe UI",Arial,sans-serif;fill:#9aa9bb;stroke:none}
.picture-outline{stroke:#9eb1c7;stroke-width:2;fill:#f0f5fa}
.picture-glass{fill:#eaf1f8;stroke:#d2dfea;stroke-width:1}
.picture-metal{fill:#dce7f2;stroke:#9eb1c7;stroke-width:1.6}
.picture-detail{stroke:#a7b9cc;stroke-width:1.6;fill:none}
.picture-tick{stroke:#afc1d4;stroke-width:1.5}
.picture-accent{stroke:var(--instrument);stroke-width:2.5;fill:none}
.picture-accent-fill{fill:var(--instrument);stroke:none}
.picture-icon{color:var(--instrument);stroke:none;fill:none}
.gauge-track{stroke:#e5edf5;stroke-width:9;fill:none}
.gauge-fill{stroke:var(--instrument);stroke-width:9;fill:none}
.gauge-needle{stroke:var(--instrument-ink);stroke-width:3;fill:none}
.gauge-pivot{stroke:#fff;stroke-width:2;fill:var(--instrument-ink)}
.tank-liquid{fill:var(--instrument-fill);fill-opacity:.55;stroke:none}
.tank-wave{stroke:var(--instrument);stroke-width:1.5;fill:none;opacity:.6}
.odometer-rolls{stroke:#dce6f0;stroke-width:1;stroke-dasharray:2 3}
.thermometer-liquid{stroke:var(--instrument);stroke-width:5;fill:none}
.steering-rim{stroke:#63768f;stroke-width:7;fill:#f1f5fa}
.steering-inner{stroke:#d3dfec;stroke-width:1.5;fill:none}
.steering-spoke{stroke:#8297b1;stroke-width:9;fill:none}
.car-wheels{fill:#b0bed0;stroke:#b0bed0;stroke-width:2}
.car-glass{fill:#ccdded;stroke:#a4bcd3;stroke-width:1.2}
.car-door{stroke:#95a9c0;stroke-width:3;fill:none}
.car-door.open{stroke:var(--instrument);stroke-width:4}
.car-door-guide{stroke:var(--instrument);stroke-width:1;stroke-dasharray:2 3;fill:none;opacity:.5}
.light-rays{stroke:var(--instrument);stroke-width:2.5;fill:none}
.light-rays.off{stroke:#c4d0de;stroke-width:1.5}
.clock-hands{stroke:var(--instrument-ink);stroke-width:3;fill:none}
.signal-housing{fill:#f1f5fa;stroke:#d9e4ef;stroke-width:1.5}
.signal-readout{fill:var(--instrument-soft);stroke:none}
.load-track{stroke:#d8e4f1;stroke-width:3}
.load-fill{stroke:var(--instrument);stroke-width:3}
.telemetry-card-caption{display:block;min-height:14px;font-size:9px;line-height:14px;color:#8b99ab;text-align:center;white-space:normal}
.telemetry-card-time{display:block;border-top:1px solid #edf1f6;margin:7px 3px 0;padding-top:7px;font-size:9px;line-height:13px;text-align:center;color:#91a0b3;font-variant-numeric:tabular-nums}
.telemetry-card-full-value{margin:7px 2px 0;font:11px/1.6 ui-monospace,Consolas,monospace;overflow-wrap:anywhere;color:#52677f;text-align:center}
.tone-teal{--instrument:#268d9a;--instrument-soft:#e0f3f3;--instrument-ink:#226e7a;--instrument-fill:#7dc9c8}
.tone-amber{--instrument:#c48a31;--instrument-soft:#fcf0da;--instrument-ink:#926320;--instrument-fill:#ebc27b}
.tone-violet{--instrument:#7c6daa;--instrument-soft:#f0ecf9;--instrument-ink:#63528e;--instrument-fill:#bcb0db}
.tone-slate{--instrument:#889bb1;--instrument-soft:#e8edf4;--instrument-ink:#6b809b;--instrument-fill:#b7c7d9}
.telemetry-card.is-unknown .telemetry-picture{opacity:.55}
.telemetry-card.is-unknown .picture-number{letter-spacing:0}
@media(max-width:760px){.device-details-modal{width:calc(100vw - 20px);padding:18px}.telemetry-card-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.telemetry-card{padding:11px 7px 9px}.telemetry-card h4{font-size:10px}.telemetry-card-art,.telemetry-picture{height:118px}.telemetry-card-time{font-size:8px}.device-details-modal .modal-head h2{font-size:19px}}
@media(prefers-reduced-motion:reduce){.telemetry-card{transition:none}}

/* Focusable, live instruments and a magnified reading on click or Enter. */
.telemetry-card[role=button]{cursor:pointer;transition:border-color .18s,box-shadow .18s,transform .18s}
.telemetry-card[role=button]:hover{transform:translateY(-3px);box-shadow:0 8px 22px #233b541c}
.telemetry-card[role=button]:focus-visible{outline:3px solid #70a9de;outline-offset:2px}
.telemetry-card[role=button]:active{transform:translateY(-1px)}
.telemetry-card-art{position:relative}
.telemetry-card-art:after{content:'↗';position:absolute;right:0;top:-20px;font-size:16px;color:#7899b9;opacity:0;transition:opacity .18s}
.telemetry-card:hover .telemetry-card-art:after,.telemetry-card:focus-visible .telemetry-card-art:after{opacity:1}
.gauge-fill,.load-fill,.thermometer-liquid{transition:stroke-dasharray .8s cubic-bezier(.2,.7,.2,1)}
.gauge-needle,.pedal-body{transform-box:view-box;transition:transform .8s cubic-bezier(.2,.7,.2,1)}
.tank-liquid{transition:y .9s,height .9s}
.tank-wave,.car-door{transition:d .8s,stroke .4s}
.light-rays,.picture-icon,.signal-readout{transition:stroke .4s,color .4s,fill .4s}
.instrument-zoom{width:min(430px,calc(100vw - 32px));max-height:90dvh;overflow:auto;padding:26px;border-radius:20px;color:#253e5b}
.instrument-zoom-head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px}
.instrument-eyebrow{display:block;color:#8699b1;font-size:10px;margin-bottom:7px}
.instrument-zoom h2{font-size:20px;line-height:1.3;letter-spacing:-.4px}
.instrument-zoom-art{--instrument:#3276bd;--instrument-soft:#e7f1fc;--instrument-ink:#245b91;--instrument-fill:#9ac8ed;margin:16px 0 10px;border:1px solid #e6edf5;border-radius:18px;background:linear-gradient(145deg,#fff,#f3f7fc);padding:14px;display:flex;justify-content:center}
.instrument-zoom-art.tone-teal{--instrument:#268d9a;--instrument-soft:#e0f3f3;--instrument-ink:#226e7a;--instrument-fill:#7dc9c8}
.instrument-zoom-art.tone-amber{--instrument:#c48a31;--instrument-soft:#fcf0da;--instrument-ink:#926320;--instrument-fill:#ebc27b}
.instrument-zoom-art.tone-violet{--instrument:#7c6daa;--instrument-soft:#f0ecf9;--instrument-ink:#63528e;--instrument-fill:#bcb0db}
.instrument-zoom-art.tone-slate{--instrument:#889bb1;--instrument-soft:#e8edf4;--instrument-ink:#6b809b;--instrument-fill:#b7c7d9}
.instrument-zoom-art .telemetry-picture{width:100%;max-width:330px;height:auto}
.instrument-exact-value{text-align:center;font-size:20px;font-weight:650;overflow-wrap:anywhere}
.instrument-caption{text-align:center;font-size:11px;color:#8a98ad;line-height:1.5;margin:6px 0 12px}
.instrument-metadata{margin:20px 0 0;font-size:12px}
.instrument-metadata>div{display:flex;align-items:baseline;justify-content:space-between;gap:20px;padding:10px 0;border-top:1px solid #eaf0f6}
.instrument-metadata dt{color:#8a9bb0;flex-shrink:0}
.instrument-metadata dd{margin:0;text-align:right;overflow-wrap:anywhere;min-width:0;max-width:65%;font-variant-numeric:tabular-nums}
.instrument-metadata code{font-size:11px;color:#6e819b}
.instrument-live-note{font-size:10px;line-height:1.6;text-align:center;color:#9aa8b9;margin:14px 0 0}
@media(prefers-reduced-motion:reduce){.telemetry-card[role=button],.telemetry-card-art:after,.gauge-fill,.load-fill,.thermometer-liquid,.gauge-needle,.pedal-body,.tank-liquid,.tank-wave,.car-door,.light-rays,.picture-icon,.signal-readout{transition:none}.telemetry-card[role=button]:hover{transform:none}}

.command-result{white-space:pre-wrap;overflow-wrap:anywhere;min-width:15rem}
.command-replies{min-width:0;border:1px solid var(--border);border-radius:12px;overflow:hidden}
.command-replies-head{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:10px;padding:12px 14px;background:#f3f7fc}
.command-replies-head h3{margin:0;font-size:14px}
.command-replies-head p{margin:4px 0 0;font-size:12px}
.command-replies>[data-reply-status]{margin:0;padding:12px 14px;font-size:13px}
.command-replies ol{list-style:none;margin:0;padding:0;max-height:250px;overflow:auto}
.command-replies li{padding:10px 14px;border-top:1px solid var(--border)}
.command-replies time{color:#637992;font-size:12px;font-variant-numeric:tabular-nums}
.command-replies pre{margin:6px 0 0;font:12px/1.5 ui-monospace,Consolas,monospace;white-space:pre-wrap;overflow-wrap:anywhere}
.vega-batch-toolbar{display:flex;justify-content:flex-end;margin-bottom:12px}
.vega-batch-form{min-width:0;margin:0;border:1px solid var(--border);border-radius:12px;padding:12px 14px}
.vega-batch-form legend{padding:0 6px;color:#294160;font-size:13px;font-weight:650}
.vega-batch-devices{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,185px),1fr));gap:4px 12px;max-height:145px;overflow:auto}
.vega-batch-devices label{min-width:0;padding:4px 0;overflow-wrap:anywhere}
.vega-batch-note{margin:0;padding:10px 14px;font-size:12px}
.vega-batch-row{display:flex;align-items:baseline;justify-content:space-between;flex-wrap:wrap;gap:5px 12px;margin-bottom:5px;font-size:13px}
.vega-batch-row strong{overflow-wrap:anywhere}
.batch-status{border-radius:6px;padding:3px 7px;background:#eff3f8;color:#47617d;font-size:12px}
.batch-queued,.batch-unknown{background:#fff2d6;color:#785610}
.batch-sent,.batch-uploaded{background:#e8f2ff;color:#225b9b}
.batch-rejected{background:#fdecef;color:#9d2436}
.vega-batch-row~p{margin:4px 0 0;font-size:12px;overflow-wrap:anywhere}
#vega-configuration-file{display:grid;gap:8px}
