/* Shared design for all six report views. Kept separate from legacy CSS. */
#pageReport#pageReport#pageReport{--rs-bg:#f5f7fb;--rs-panel:#fff;--rs-ink:#27364b;--rs-muted:#7b889d;--rs-blue:#356df3;--rs-soft:#eef3ff;--rs-line:#edf1f6;--rs-shadow:0 3px 16px rgba(30,48,78,.055),0 1px 3px rgba(30,48,78,.025);--ux-bg:var(--rs-bg);--ux-panel:var(--rs-panel);--ux-text:var(--rs-ink);--ux-muted:var(--rs-muted);--ux-accent:var(--rs-blue);--ux-line:var(--rs-line);color:var(--rs-ink)}
#pageReport#pageReport#pageReport .page-body{background:var(--rs-bg)!important}
#pageReport#pageReport#pageReport #rpBody{color:var(--rs-ink)!important;font-size:13px!important;line-height:1.5!important}
#pageReport#pageReport#pageReport #rpBody :is(.rs-card,.ru-surface,.ru-table-wrap,.rp-table-card,.rp-chart-card,.rp-focus-bar,.rp-overview-hero,.ro-summary,.rp-fuel-section,.ro-primary-metrics,.rp-kpi-grid,.rw-panel,.rw-compare-card,.rw-insight){border:0!important;outline:0!important;border-radius:14px!important;background:var(--rs-panel)!important;color:var(--rs-ink)!important;box-shadow:var(--rs-shadow)!important}
#pageReport#pageReport#pageReport #rpBody :is(.rs-card,.ru-surface,.rp-chart-card,.rp-overview-hero){padding:20px!important;margin-bottom:20px!important}
#pageReport#pageReport#pageReport #rpBody :is(.ru-table-wrap,.rp-table-card){padding:0!important;overflow-x:auto!important}
#pageReport#pageReport#pageReport #rpBody :is(.ro-primary-metrics,.rp-kpi-grid){padding:22px 0!important;gap:0!important;margin-bottom:20px!important}
#pageReport#pageReport#pageReport #rpBody :is(.ro-primary-metrics>.rp-metric-card,.rp-kpi-grid>.rp-kpi){background:transparent!important;box-shadow:none!important;border:0!important;border-radius:0!important;padding:0 22px!important;margin:0!important}
#pageReport#pageReport#pageReport #rpBody :is(.ro-primary-metrics>.rp-metric-card+.rp-metric-card,.rp-kpi-grid>.rp-kpi+.rp-kpi){border-inline-start:1px solid var(--rs-line)!important}
#pageReport#pageReport#pageReport #rpBody .rs-stat-grid{display:grid!important;grid-template-columns:repeat(auto-fit,minmax(160px,1fr))!important;gap:16px!important;margin-bottom:20px!important}
#pageReport#pageReport#pageReport #rpBody .ru-kpi{min-width:0!important;margin:0!important;padding:20px!important}
#pageReport#pageReport#pageReport #rpBody :is(.rp-kpi-value,.ro-primary-metrics .rp-metric-card>div:last-child,.ru-kpi>div:nth-child(3)){color:var(--rs-ink)!important;font-size:28px!important;font-weight:650!important;line-height:1.25!important;font-variant-numeric:tabular-nums}
#pageReport#pageReport#pageReport #rpBody .ru-kpi>div:nth-child(2)>div{background:var(--rs-soft)!important;color:var(--rs-blue)!important;box-shadow:none!important}
#pageReport#pageReport#pageReport #rpBody .ru-kpi>div:first-child{display:none!important}
#pageReport#pageReport#pageReport #rpBody .ro-secondary-metrics>.rp-metric-card{background:transparent!important;border:0!important;box-shadow:none!important;padding:8px 12px!important;margin:0!important}
#pageReport#pageReport#pageReport #rpBody .ru-insight{background:var(--rs-panel)!important;border:0!important}
#pageReport#pageReport#pageReport #rpBody .ru-insight>div:first-child{background:var(--rs-soft)!important;color:var(--rs-blue)!important;box-shadow:none!important}
#pageReport#pageReport#pageReport #rpBody table{color:var(--rs-ink)!important;background:var(--rs-panel)!important;font-size:13px!important;border:0!important;border-collapse:collapse!important}
#pageReport#pageReport#pageReport #rpBody table :is(th,td){border:0!important;padding:15px 18px!important;line-height:1.45!important}
#pageReport#pageReport#pageReport #rpBody table th{background:var(--rs-bg)!important;color:var(--rs-muted)!important;font-size:11px!important;font-weight:550!important;letter-spacing:0!important;text-transform:none!important}
#pageReport#pageReport#pageReport #rpBody table tbody tr{background:var(--rs-panel)!important;border:0!important;border-bottom:1px solid var(--rs-line)!important}
#pageReport#pageReport#pageReport #rpBody table tbody tr:hover{background:var(--rs-bg)!important}
#pageReport#pageReport#pageReport #rpBody table td{color:var(--rs-ink)!important;font-size:12px!important;height:60px!important}
#pageReport#pageReport#pageReport #rpBody :is(.rp-table-toolbar,.rp-pagination){background:var(--rs-panel)!important;border:0!important;border-bottom:1px solid var(--rs-line)!important;padding:16px 20px!important}
#pageReport#pageReport#pageReport #rpBody :is(button,.rp-row-action,.rp-back-fleet){border:0!important;background:var(--rs-soft)!important;color:var(--rs-blue)!important;box-shadow:none!important;border-radius:9px!important;font-size:12px!important;font-weight:550!important}


#pageReport#pageReport#pageReport :is(#rpVehiclePicker>summary,.rp-period-field,.rp-search-wrap,.rp-overview-search){border:0!important;background:var(--rs-panel)!important;box-shadow:0 2px 10px rgba(30,48,78,.045)!important;border-radius:10px!important}
#pageReport#pageReport#pageReport #rpBody :is(.rp-trust-bar,.ro-fuel-unavailable){background:transparent!important;border:0!important;box-shadow:none!important;color:var(--rs-muted)!important;font-size:11px!important;padding:6px 0!important}
#pageReport#pageReport#pageReport #rpBody .ro-summary .rp-smart-summary{box-shadow:none!important;background:transparent!important;border:0!important;margin:0!important;padding:0 20px 18px!important}
#pageReport#pageReport#pageReport .page-head .rw-tools-menu{display:block!important;margin:0!important;position:relative!important;background:transparent!important;box-shadow:none!important;border:0!important}
#pageReport#pageReport#pageReport .page-head .rw-tools-summary{background:var(--rs-panel)!important;color:var(--rs-ink)!important;border:0!important;box-shadow:var(--rs-shadow)!important;border-radius:10px!important;display:flex!important}
#pageReport#pageReport#pageReport .page-head .rw-tools-menu[open] .rw-actions{background:var(--rs-panel)!important;border:0!important;box-shadow:0 8px 30px rgba(30,48,78,.12)!important}
#pageReport#pageReport#pageReport :is(button,summary,input,select):focus-visible{outline:2px solid var(--rs-blue)!important;outline-offset:3px!important}
html[data-theme="dark"] #pageReport#pageReport#pageReport{--rs-bg:#151e2a;--rs-panel:#1e2a39;--rs-ink:#e5edf8;--rs-muted:#a3b1c5;--rs-blue:#96b8ff;--rs-soft:#283c59;--rs-line:#293849;--rs-shadow:0 4px 20px rgba(0,0,0,.16)}
@media(max-width:700px){#pageReport#pageReport#pageReport #rpBody .rs-stat-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}#pageReport#pageReport#pageReport #rpBody .ro-primary-metrics>.rp-metric-card:nth-child(3){border-inline-start:0!important}}

/* Keep nested metric cells flat and secondary content consistent in all modes. */
#pageReport#pageReport#pageReport #rpBody .ro-secondary-metrics .rp-metric-card{margin-bottom:0!important}
#pageReport#pageReport#pageReport #rpBody .ru-insight>div:last-child{color:var(--rs-ink)!important}
#pageReport#pageReport#pageReport #rpBody .rp-chart-card>div:first-child{color:var(--rs-ink)!important}
#pageReport#pageReport#pageReport #rpBody [style*="color:#15233b"],
#pageReport#pageReport#pageReport #rpBody [style*="color:#3d4a5c"]{color:var(--rs-ink)!important}
#pageReport#pageReport#pageReport #rpBody [style*="color:#8592a1"]{color:var(--rs-muted)!important}

#pageReport#pageReport#pageReport .rs-compare-button{display:inline-flex!important;align-items:center;gap:7px;min-height:38px;padding:9px 12px!important;background:var(--rs-soft)!important;color:var(--rs-blue)!important;border:0!important;border-radius:10px!important;font-size:12px!important;box-shadow:none!important}
#pageReport#pageReport#pageReport #rpBody .rs-trip-map{display:inline-flex!important;align-items:center;justify-content:center;gap:5px;padding:8px 10px!important;min-height:34px;white-space:nowrap}
#pageReport#pageReport#pageReport #rpBody .rs-trip-map:disabled{opacity:.45;cursor:not-allowed}
#pageReport#pageReport#pageReport #rpBody .rs-trip-map[aria-expanded="true"]{background:var(--rs-blue)!important;color:var(--rs-panel)!important}
#pageReport#pageReport#pageReport #rpBody .rs-trip-map svg{color:inherit!important}

/* Match the compact status palette and the 40px vehicle/period controls. */









#pageReport#pageReport#pageReport .rp-filter-toolbar>.rp-type-grid{overflow:visible!important;flex-wrap:wrap!important;gap:8px!important;padding:0!important;align-items:center!important}
#pageReport#pageReport#pageReport :is(#rpVehiclePicker>summary,.rp-period-field){height:40px!important;min-height:40px!important;box-sizing:border-box!important;font-size:12px!important}
#pageReport#pageReport#pageReport #rpPeriod{height:40px!important;min-height:40px!important;font-size:12px!important}
#pageReport#pageReport#pageReport #rpVehiclePicker{flex:0 1 180px!important;min-width:145px!important}
#pageReport#pageReport#pageReport #rpVehiclePicker>summary>span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;flex:1}
#pageReport#pageReport#pageReport #rpVehiclePicker>summary>:is(svg,i){flex-shrink:0}


/* Compact sizing matches the Vehicles filter chips. */


#pageReport#pageReport#pageReport .rp-filter-toolbar :is(#rpVehiclePicker,.rp-period-field){flex:0 0 180px!important;width:180px!important;min-width:0!important;max-width:180px!important;box-sizing:border-box!important}
#pageReport#pageReport#pageReport .rp-filter-toolbar :is(#rpVehiclePicker>summary,.rp-period-field){height:33px!important;min-height:33px!important;border-radius:8px!important;font-size:12px!important;font-weight:500!important;gap:8px!important}
#pageReport#pageReport#pageReport .rp-filter-toolbar #rpVehiclePicker>summary{padding:6px 10px!important}
#pageReport#pageReport#pageReport .rp-filter-toolbar .rp-period-field{padding:0 10px!important}
#pageReport#pageReport#pageReport .rp-filter-toolbar #rpPeriod{height:33px!important;min-height:33px!important;flex:1 1 0!important;width:0!important;min-width:0!important;max-width:none!important;box-sizing:border-box!important;padding:6px 0!important;font-size:12px!important;line-height:19px!important;font-weight:500!important;border-radius:8px!important}
#pageReport#pageReport#pageReport .rp-filter-toolbar>.rp-type-grid{min-height:33px!important}
#pageReport#pageReport#pageReport .rp-filter-toolbar #rpCustomRange input{height:33px!important;min-height:33px!important;font-size:12px!important;border-radius:8px!important}
#pageReport#pageReport#pageReport .rp-filter-toolbar .rp-period-field>svg{flex-shrink:0!important;width:16px!important;height:16px!important}

/* Exact Vehicles chip surface, spacing and selected border. */
#pageReport#pageReport#pageReport .rp-filter-toolbar .rp-type-button{--rp-chip-ink:var(--rp-filter-ink);--rp-chip-tint:color-mix(in srgb,var(--rp-filter-ink) 7%,white);min-height:33px!important;padding:6px 10px!important;gap:8px!important;border:1px solid transparent!important;border-radius:8px!important;background:var(--rp-chip-tint)!important;color:var(--rp-chip-ink)!important;box-shadow:none!important;height:auto!important;display:inline-flex!important;align-items:center!important;justify-content:flex-start!important;box-sizing:border-box!important;line-height:19px!important;letter-spacing:normal!important;font-size:12px!important;font-weight:500!important;flex:0 0 auto!important;transform:none!important}

#pageReport#pageReport#pageReport .rp-filter-toolbar .rp-type-name{font-size:12px!important;font-weight:500!important;line-height:19px!important;letter-spacing:normal!important;color:inherit!important;white-space:nowrap!important}
#pageReport#pageReport#pageReport .rp-filter-toolbar .rp-type-button::before{width:5px!important;height:5px!important;flex:0 0 5px!important;background:currentColor!important;box-shadow:none!important}
#pageReport#pageReport#pageReport .rp-filter-toolbar .rp-type-button[data-rp-type="trip"]{--rp-filter-ink:#4f46e5}
#pageReport#pageReport#pageReport .rp-filter-toolbar .rp-type-button[data-rp-type="detailed"]{--rp-filter-ink:#3068ed}
#pageReport#pageReport#pageReport .rp-filter-toolbar .rp-type-button[data-rp-type="fleet"]{--rp-filter-ink:#16845b}
#pageReport#pageReport#pageReport .rp-filter-toolbar .rp-type-button[data-rp-type="alerts"]{--rp-filter-ink:#dc5548}
#pageReport#pageReport#pageReport .rp-filter-toolbar .rp-type-button[data-rp-type="distance"]{--rp-filter-ink:#8461cc}
#pageReport#pageReport#pageReport .rp-filter-toolbar .rp-type-button[data-rp-type="activity"]{--rp-filter-ink:#b17c19}
html[data-theme="dark"] #pageReport#pageReport#pageReport .rp-filter-toolbar .rp-type-button{--rp-chip-ink:color-mix(in srgb,var(--rp-filter-ink) 60%,white);--rp-chip-tint:color-mix(in srgb,var(--rp-filter-ink) 15%,#18212d)}




/* Active report filter: same 65% accent border as Vehicles. */
#pageReport#pageReport#pageReport .rp-filter-toolbar .rp-type-button[aria-pressed="true"]{border:1px solid color-mix(in srgb,var(--rp-chip-ink) 90%,transparent)!important;background:var(--rp-chip-tint)!important;box-shadow:none!important}

/* Shared filter geometry and text, matching the Vehicles reference. */
#pageReport#pageReport#pageReport .rp-filter-toolbar .rp-type-button,
#pageVehicles#pageVehicles#pageVehicles .ag-workspace-metric{height:33px!important;min-height:33px!important;box-sizing:border-box!important;display:inline-flex!important;align-items:center!important;justify-content:flex-start!important;padding:6px 10px!important;gap:8px!important;border-width:1px!important;border-style:solid!important;border-radius:8px!important;box-shadow:none!important;font-family:inherit!important;line-height:19px!important;letter-spacing:normal!important;transform:none!important}
#pageReport#pageReport#pageReport .rp-type-name,
#pageVehicles#pageVehicles#pageVehicles .ag-workspace-metric small{font-family:inherit!important;font-size:12px!important;font-weight:500!important;line-height:19px!important;letter-spacing:normal!important}
#pageReport#pageReport#pageReport .rp-type-button::before,
#pageVehicles#pageVehicles#pageVehicles .ag-metric-dot{width:5px!important;height:5px!important;flex:0 0 5px!important;box-shadow:none!important}

/* Sticky toolbar and non-modal trip details; data tables retain scroll position. */
#pageReport#pageReport#pageReport #rpSidebar{position:sticky!important;top:0!important;z-index:55!important;background:var(--rs-bg)!important;padding:12px 0!important;overflow:visible!important}
#pageReport#pageReport#pageReport .rp-filter-toolbar{margin-bottom:8px!important}
#pageReport#pageReport#pageReport .ro-summary .ru-insight{box-shadow:none!important;margin:0!important;border:0!important}
#pageReport#pageReport#pageReport .rs-trip-selected{box-shadow:inset 3px 0 #3068ed}
#reportTripPanel{position:fixed;z-index:1000;inset-inline-end:20px;top:100px;bottom:24px;width:min(430px,calc(100vw - 32px));display:flex;flex-direction:column;box-sizing:border-box;background:#fff;color:#27364b;border-radius:16px;box-shadow:0 12px 48px #14213a26;overflow:auto;font:13px/1.5 Inter,Arial,sans-serif}
#reportTripPanel header{display:flex;align-items:center;justify-content:space-between;padding:20px;gap:16px}
#reportTripPanel small{color:#7b889d;font-size:10px;letter-spacing:.06em}
#reportTripPanel h2{font-size:18px;margin:4px 0 0}
#reportTripPanel button.rs-trip-close{display:grid;place-items:center;width:34px;height:34px;border:0;border-radius:50%;background:#f3f6fb;color:inherit;font-size:24px;cursor:pointer}
#reportTripPanel dl{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin:0;padding:0 20px 16px}
#reportTripPanel dt{font-size:11px;color:#7b889d}#reportTripPanel dd{margin:4px 0 0;font-weight:600}
#reportTripPanel .rs-trip-addresses{padding:0 20px 12px;font-size:12px}#reportTripPanel .rs-trip-addresses p{margin:6px 0}
#reportTripPanelMap{min-height:280px;flex:1;background:#eef2f8}
#reportTripPanel .rs-trip-map-status{padding:0 20px;color:#7b889d;font-size:12px}
#reportTripPanel button:focus-visible{outline:2px solid #3068ed;outline-offset:3px}
html[data-theme="dark"] #reportTripPanel{background:#1e2a39;color:#e5edf8}html[data-theme="dark"] #reportTripPanel .rs-trip-close{background:#283c59}
@media(max-width:700px){#reportTripPanel{top:80px;bottom:12px;inset-inline-end:12px}#pageReport#pageReport#pageReport #rpSidebar{padding:8px 0!important}}

/* Keep filters outside the report's scrolling content. */
#pageReport#pageReport#pageReport.open {display:flex!important;flex-direction:column!important;overflow:hidden!important;min-height:0!important;}
#pageReport#pageReport#pageReport > .page-head {flex:0 0 auto!important;}
#pageReport#pageReport#pageReport.rp-toolbar-layout > .page-body {display:grid!important;grid-template-columns:minmax(0,1fr)!important;grid-template-rows:auto minmax(0,1fr)!important;flex:1 1 0%!important;min-height:0!important;overflow:hidden!important;row-gap:12px!important;}
#pageReport#pageReport#pageReport.rp-toolbar-layout #rpSidebar {position:relative!important;top:auto!important;grid-row:1!important;min-height:0!important;max-height:none!important;align-self:start!important;overflow:visible!important;z-index:55!important;padding:0!important;}
#pageReport#pageReport#pageReport.rp-toolbar-layout > .page-body > div:last-child {grid-row:2!important;min-height:0!important;min-width:0!important;height:100%!important;box-sizing:border-box!important;overflow:auto!important;overscroll-behavior:contain;scrollbar-gutter:stable!important;padding:2px 2px 20px!important;}
#pageReport#pageReport#pageReport .rp-picker-options {max-height:min(430px,50dvh)!important;}
/* Compact report activity, quality notes and editable working hours. */
#pageReport#pageReport#pageReport :is(.re-activity,.re-hours,.re-quality){box-sizing:border-box;background:var(--rs-panel);color:var(--rs-ink);border:0;border-radius:14px;box-shadow:var(--rs-shadow);padding:18px 20px;margin:0 0 18px;}
#pageReport#pageReport#pageReport :is(.re-activity,.re-hours)>header{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:18px;}
#pageReport#pageReport#pageReport :is(.re-activity,.re-hours) h3{font-size:13px;font-weight:600;margin:0;}
#pageReport#pageReport#pageReport .re-activity header>span{font-size:11px;color:var(--rs-muted);}
#pageReport#pageReport#pageReport .re-activity-metrics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px;margin-bottom:18px;}
#pageReport#pageReport#pageReport .re-activity-metric{display:grid;grid-template-columns:1fr auto;align-items:baseline;gap:8px;}
#pageReport#pageReport#pageReport .re-activity-metric>span{grid-column:1/-1;color:var(--rs-muted);font-size:12px;display:flex;gap:7px;align-items:center;}
#pageReport#pageReport#pageReport .re-activity-metric i{width:6px;height:6px;border-radius:50%;background:var(--re-tone);flex-shrink:0;}
#pageReport#pageReport#pageReport [data-tone="moving"]{--re-tone:#16845b;}
#pageReport#pageReport#pageReport [data-tone="idle"]{--re-tone:#b17c19;}
#pageReport#pageReport#pageReport [data-tone="parked"]{--re-tone:#748299;}
#pageReport#pageReport#pageReport .re-activity-metric strong{font-size:24px;font-weight:650;line-height:1.3;font-variant-numeric:tabular-nums;}
#pageReport#pageReport#pageReport .re-activity-metric small{color:var(--rs-muted);font-size:11px;}
#pageReport#pageReport#pageReport .re-distribution{height:6px;display:flex;border-radius:6px;overflow:hidden;background:var(--rs-line);margin-bottom:12px;}
#pageReport#pageReport#pageReport .re-distribution>span{background:var(--re-tone);}
#pageReport#pageReport#pageReport .re-activity footer{display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap;font-size:11px;color:var(--rs-muted);}
#pageReport#pageReport#pageReport .re-idle-note{color:#b17c19;}
#pageReport#pageReport#pageReport .re-quality{padding:12px 16px;font-size:11px;color:var(--rs-muted);box-shadow:none;background:transparent;}
#pageReport#pageReport#pageReport .re-quality summary{cursor:pointer;font-weight:500;}
#pageReport#pageReport#pageReport .re-quality li{margin:8px 0;}
#pageReport#pageReport#pageReport .re-quality .rp-audit-bar{padding:8px 0!important;margin:0!important;background:transparent!important;border:0!important;box-shadow:none!important;}
#pageReport#pageReport#pageReport .re-hours p,#pageReport#pageReport#pageReport .re-hours small{font-size:11px;color:var(--rs-muted);line-height:1.6;}
#pageReport#pageReport#pageReport .re-hours button{background:var(--rs-soft);color:var(--rs-blue);border:0;border-radius:8px;padding:7px 10px;font:500 11px Inter,sans-serif;cursor:pointer;}
#pageReport#pageReport#pageReport .re-hours-metrics{display:flex;gap:32px;flex-wrap:wrap;margin:16px 0;font-size:12px;color:var(--rs-muted);}
#pageReport#pageReport#pageReport .re-hours-metrics strong{display:block;font-size:20px;color:var(--rs-ink);margin-top:5px;}
#pageReport#pageReport#pageReport .re-change{display:block;font-size:10px;color:var(--rs-muted);margin-top:8px;font-weight:400;}
#pageReport#pageReport#pageReport .ro-primary-metrics .rp-metric-card>div:nth-child(2){font-size:28px!important;font-weight:650!important;color:var(--rs-ink)!important;}
.re-settings-overlay{position:fixed;inset:0;z-index:2200;background:#14213a55;display:grid;place-items:center;padding:20px;}
.re-settings{width:min(510px,100%);max-height:calc(100dvh - 40px);overflow:auto;border:0;border-radius:16px;background:#fff;color:#27364b;padding:24px;box-shadow:0 20px 60px #14213a33;box-sizing:border-box;font:13px/1.5 Inter,sans-serif;}
.re-settings header,.re-settings footer{display:flex;justify-content:space-between;align-items:center;gap:12px;}
.re-settings h2{font-size:17px;margin:0;}.re-settings h3{font-size:14px;margin-top:22px;}.re-settings p{font-size:12px;color:#7b889d;}.re-settings fieldset{border:0;padding:0;display:flex;flex-wrap:wrap;gap:12px;}.re-settings legend{font-size:12px;margin-bottom:10px;}.re-settings fieldset label{display:flex;align-items:center;gap:4px;}.re-settings input[type=checkbox]{accent-color:#356df3;}.re-time-fields{display:flex;gap:16px;margin:20px 0;}.re-time-fields label{flex:1;}.re-time-fields input{display:block;box-sizing:border-box;width:100%;height:38px;margin-top:5px;border:1px solid #e7edf4;border-radius:8px;background:transparent;color:inherit;padding:8px;font:inherit;}.re-settings button{font:500 12px Inter,sans-serif;padding:9px 14px;border:0;border-radius:9px;background:#eef3ff;color:#356df3;cursor:pointer;}.re-settings button[type=submit]{background:#356df3;color:white;}.re-settings .re-error{color:#dc5548;}.re-settings :is(button,input):focus-visible{outline:2px solid #356df3;outline-offset:2px;}
html[data-theme=dark] .re-settings{background:#1e2a39;color:#e4ebf5;}html[data-theme=dark] .re-settings input{border-color:#354356;}
#reportTripPanel .re-trip-events{padding:14px 18px;border-top:1px solid #edf1f6;font-size:12px;}#reportTripPanel .re-trip-events h3{font-size:13px;margin:0 0 10px;}#reportTripPanel .re-trip-events li{padding:8px 0;}#reportTripPanel .re-trip-events ul{list-style:none;padding:0;}#reportTripPanel .re-trip-events small{display:block;color:#7b889d;}#reportTripPanel .re-trip-events button{border:0;border-radius:7px;background:#eef3ff;color:#356df3;padding:6px 9px;cursor:pointer;}
@media(max-width:600px){#pageReport#pageReport#pageReport .re-activity-metrics{grid-template-columns:1fr;gap:14px;}#pageReport#pageReport#pageReport .re-activity-metric{grid-template-columns:1fr auto auto;}#pageReport#pageReport#pageReport .re-activity-metric>span{grid-column:auto;}#pageReport#pageReport#pageReport .re-activity-metric strong{font-size:19px;}}

/* Minimal surfaces and a softer, consistent activity palette. */
#pageReport#pageReport#pageReport {--rs-bg:#f6f8fb;--rs-shadow:0 2px 10px rgba(30,48,78,.035),0 1px 2px rgba(30,48,78,.018);--re-moving:#58a68c;--re-idle:#d4a85c;--re-parked:#98a6b8;--re-idle-ink:#94651f;}
html[data-theme="dark"] #pageReport#pageReport#pageReport {--rs-bg:#151e2a;--rs-shadow:0 2px 12px rgba(0,0,0,.12);--re-moving:#79baa4;--re-idle:#d8b576;--re-parked:#99aabd;--re-idle-ink:#e0bd80;}
#pageReport#pageReport#pageReport #rpBody :is(.rs-card,.ru-surface,.ru-table-wrap,.rp-table-card,.rp-chart-card,.rp-focus-bar,.rp-overview-hero,.ro-summary,.rp-fuel-section,.ro-primary-metrics,.rp-kpi-grid,.rw-panel,.rw-compare-card,.rw-insight,.ru-kpi,.re-activity,.re-hours) {border:0!important;border-radius:12px!important;box-shadow:var(--rs-shadow)!important;background:var(--rs-panel)!important;}
#pageReport#pageReport#pageReport #rpBody :is(.ru-table-wrap,.rp-table-card) :is(.ru-table-wrap,.rs-card) {box-shadow:none!important;}
#pageReport#pageReport#pageReport #rpBody :is(.ro-primary-metrics,.rp-kpi-grid)>.rp-metric-card {box-shadow:none!important;background:transparent!important;}
#pageReport#pageReport#pageReport [data-tone="moving"] {--re-tone:var(--re-moving);}
#pageReport#pageReport#pageReport [data-tone="idle"] {--re-tone:var(--re-idle);}
#pageReport#pageReport#pageReport [data-tone="parked"] {--re-tone:var(--re-parked);}
#pageReport#pageReport#pageReport .re-activity {padding:20px 22px!important;}
#pageReport#pageReport#pageReport .re-activity-metric strong {font-size:23px;font-weight:600;letter-spacing:-.4px;}
#pageReport#pageReport#pageReport .re-activity-metric small {font-variant-numeric:tabular-nums;font-size:11px;}
#pageReport#pageReport#pageReport .re-distribution {height:5px;border-radius:5px;margin-top:2px;margin-bottom:14px;}
#pageReport#pageReport#pageReport .re-distribution>span {background:var(--re-tone);}
#pageReport#pageReport#pageReport .re-idle-note {color:var(--re-idle-ink);font-weight:400;}
#pageReport#pageReport#pageReport .re-activity footer {font-size:10.5px;}
#pageReport#pageReport#pageReport #rpBody .ro-summary {box-shadow:none!important;background:transparent!important;border-radius:10px!important;}
#pageReport#pageReport#pageReport #rpBody .re-quality {box-shadow:none!important;background:transparent!important;}
@media(max-width:600px){#pageReport#pageReport#pageReport .re-activity {padding:16px!important;}#pageReport#pageReport#pageReport .re-activity-metric strong {font-size:19px;}}
/* Working hours and distance share the same compact report surface. */
#pageReport#pageReport#pageReport #rpBody :is(.re-hours,.rd-ranking){padding:20px 22px!important;margin-bottom:18px;border:0!important;border-radius:12px!important;background:var(--rs-panel)!important;box-shadow:var(--rs-shadow)!important;color:var(--rs-ink);}
#pageReport#pageReport#pageReport .re-hours>header{margin-bottom:12px;}
#pageReport#pageReport#pageReport .re-hours>header h3{font-size:13px;font-weight:600;}
#pageReport#pageReport#pageReport .re-hours>header button{background:var(--rs-soft);color:var(--rs-blue);font-size:11px;font-weight:500;padding:7px 11px;border-radius:8px;box-shadow:none;}
#pageReport#pageReport#pageReport .re-hours>p{margin:0;font-size:12px;max-width:680px;}
#pageReport#pageReport#pageReport .re-hours .re-hours-schedule{color:var(--rs-ink);font-weight:500;font-size:12px;}
#pageReport#pageReport#pageReport .re-hours-days{display:flex;gap:6px;flex-wrap:wrap;margin-top:10px;}
#pageReport#pageReport#pageReport .re-hours-days>span{padding:4px 8px;border-radius:6px;background:var(--rs-bg);color:var(--rs-muted);font-size:10px;font-weight:500;}
#pageReport#pageReport#pageReport .re-hours-metrics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px;margin:18px 0 14px;padding-top:16px;border-top:1px solid var(--rs-line);}
#pageReport#pageReport#pageReport .re-hours-metrics>span{font-size:11px;font-weight:400;}
#pageReport#pageReport#pageReport .re-hours-metrics strong{font-size:23px;font-weight:600;letter-spacing:-.4px;margin-top:7px;font-variant-numeric:tabular-nums;}
#pageReport#pageReport#pageReport .re-hours-metrics>span:nth-child(2) strong{color:var(--re-idle-ink);}
#pageReport#pageReport#pageReport .re-hours>small{display:block;font-size:10px;line-height:1.6;}
#pageReport#pageReport#pageReport .rd-head{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:20px;}
#pageReport#pageReport#pageReport .rd-eyebrow{display:block;font-size:9px;letter-spacing:.8px;color:var(--rs-muted);margin-bottom:5px;font-weight:500;}
#pageReport#pageReport#pageReport .rd-head h3{margin:0;font-size:13px;font-weight:600;}
#pageReport#pageReport#pageReport .rd-count{font-size:10px;color:var(--rs-muted);white-space:nowrap;}
#pageReport#pageReport#pageReport .rd-summary{display:flex;gap:44px;flex-wrap:wrap;padding:0 0 18px;border-bottom:1px solid var(--rs-line);}
#pageReport#pageReport#pageReport .rd-summary>div>span{display:block;font-size:11px;color:var(--rs-muted);margin-bottom:7px;}
#pageReport#pageReport#pageReport .rd-summary strong{font-size:23px;line-height:1.3;font-weight:600;letter-spacing:-.4px;}
#pageReport#pageReport#pageReport .rd-ranking strong small{font-size:11px;color:var(--rs-muted);font-weight:400;letter-spacing:0;}
#pageReport#pageReport#pageReport .rd-list{list-style:none;margin:0;padding:4px 0;}
#pageReport#pageReport#pageReport .rd-list>li{display:flex;align-items:center;gap:14px;padding:14px 0;}
#pageReport#pageReport#pageReport .rd-rank{display:grid;place-items:center;width:26px;height:26px;flex:0 0 26px;border-radius:8px;background:var(--rs-bg);color:var(--rs-muted);font-size:10px;font-weight:500;}
#pageReport#pageReport#pageReport .rd-list>li:first-child .rd-rank{color:var(--rs-blue);background:var(--rs-soft);}
#pageReport#pageReport#pageReport .rd-vehicle{flex:1;min-width:0;}
#pageReport#pageReport#pageReport .rd-row{display:flex;justify-content:space-between;gap:16px;align-items:baseline;margin-bottom:9px;}
#pageReport#pageReport#pageReport .rd-row>span{font-size:12px;font-weight:500;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
#pageReport#pageReport#pageReport .rd-row strong{font-size:12px;font-weight:600;white-space:nowrap;font-variant-numeric:tabular-nums;}
#pageReport#pageReport#pageReport .rd-track{height:4px;background:var(--rs-line);border-radius:4px;overflow:hidden;}
#pageReport#pageReport#pageReport .rd-track>span{height:100%;display:block;border-radius:4px;background:#a8bcdf;}
#pageReport#pageReport#pageReport .rd-list>li:first-child .rd-track>span{background:#7b9fd5;}
#pageReport#pageReport#pageReport .rd-ranking footer{font-size:10px;line-height:1.6;color:var(--rs-muted);margin-top:10px;}
#pageReport#pageReport#pageReport .rd-empty{font-size:12px;text-align:center;color:var(--rs-muted);padding:24px 0;}
@media(max-width:600px){#pageReport#pageReport#pageReport #rpBody :is(.re-hours,.rd-ranking){padding:16px!important;}#pageReport#pageReport#pageReport .re-hours-metrics{grid-template-columns:1fr;gap:16px;}#pageReport#pageReport#pageReport .rd-head{align-items:flex-start;flex-direction:column;gap:8px;}#pageReport#pageReport#pageReport .rd-summary{gap:20px;}}

/* Separate the trip legend, totals and following cards. */
#pageReport#pageReport#pageReport #rpBody .rt-legend{margin:20px 0 0!important;padding:0 6px!important;column-gap:26px!important;row-gap:10px!important;line-height:1.6!important;}
#pageReport#pageReport#pageReport #rpBody .rt-totals{display:flex!important;flex-wrap:wrap!important;column-gap:32px!important;row-gap:10px!important;margin:18px 0 28px!important;padding:0 6px!important;line-height:1.6!important;}
#pageReport#pageReport#pageReport #rpBody .rt-totals>span{display:inline-flex;align-items:baseline;gap:5px;}
#pageReport#pageReport#pageReport #rpBody .rt-totals b{color:var(--rs-ink)!important;}

/* Dedicated work-hours report, sharing the existing compact filter system. */
#pageReport#pageReport#pageReport .rp-filter-toolbar .rp-type-button[data-rp-type="hours"]{--rp-filter-ink:#16847d}
#pageReport#pageReport#pageReport .re-hours-vehicle{margin-bottom:24px;}
#pageReport#pageReport#pageReport .re-hours-vehicle>h2{font-size:14px;font-weight:600;margin:0 0 12px;color:var(--rs-ink);}
#pageReport#pageReport#pageReport .re-hours-vehicle .re-hours{margin-top:0!important;}

.re-settings{width:min(680px,100%);max-height:90dvh;overflow:auto;}
.re-week-editor{margin:20px 0;}.re-week-editor>p{font-size:12px;line-height:1.5;}
.re-day-row{display:grid;grid-template-columns:90px repeat(4,minmax(0,1fr));gap:8px;align-items:center;margin:12px 0;}
.re-day-row strong{font-size:12px;}.re-day-row input{width:100%;min-width:0;box-sizing:border-box;padding:8px 4px!important;font-size:12px!important;}
#pageReport .re-hours-trips{margin-top:24px;padding-top:20px;border-top:1px solid var(--line);}
#pageReport .re-hours-trips select{height:33px;font-size:12px;border:0;border-radius:8px;padding:0 12px;background:var(--rs-bg);color:var(--rs-ink);}
#pageReport .re-hours-trips table{width:100%;border-collapse:collapse;font-size:12px;}
#pageReport .re-hours-trips :is(th,td){padding:12px 8px;text-align:start;border-bottom:1px solid var(--line);}
#pageReport .re-hours-trips th{font-weight:500;color:var(--rs-muted);}
@media(max-width:560px){.re-day-row{grid-template-columns:repeat(4,minmax(0,1fr));}.re-day-row strong{grid-column:1/-1;}}

.re-scope-label{display:grid;gap:8px;font-weight:600;}.re-scope-label select{width:100%;height:38px;border:1px solid #e5eaf2;background:transparent;color:inherit;border-radius:8px;padding:0 10px;}
.re-inherited,.re-schedule-source{color:#73839a;font-size:12px;}.re-exceptions{margin:22px 0;padding-top:18px;border-top:1px solid #e9edf3;}.re-exceptions>p{font-size:12px;}
.re-exception-row{display:grid;grid-template-columns:1fr 1fr 1.2fr 30px;gap:8px;align-items:end;margin:12px 0;}.re-exception-row label{font-size:11px;min-width:0;}.re-exception-row input{width:100%;box-sizing:border-box;min-width:0;padding:8px!important;font-size:12px!important;}.re-exception-row button{height:34px;border:0;border-radius:8px;background:#f5f7fa;color:inherit;}
.re-exceptions [data-add]{border:0;border-radius:8px;padding:8px 12px;color:#3068ed;background:#eef3ff;cursor:pointer;}
@media(max-width:560px){.re-exception-row{grid-template-columns:1fr 1fr;}}

/* Hours: quiet per-vehicle disclosure, closed until requested. */
#pageReport .re-hours-trips>summary{display:flex;align-items:center;justify-content:space-between;gap:12px;list-style:none;cursor:pointer;font-size:12px;font-weight:500;color:var(--rs-ink);padding:4px 0;}
#pageReport .re-hours-trips>summary::-webkit-details-marker{display:none;}
#pageReport .re-hours-trips>summary svg{flex-shrink:0;color:var(--rs-muted);transition:transform .16s ease;}
#pageReport .re-hours-trips[open]>summary svg{transform:rotate(180deg);}
#pageReport .re-hours-trips>summary:focus-visible{outline:2px solid #3068ed;outline-offset:5px;border-radius:4px;}
@media(prefers-reduced-motion:reduce){#pageReport .re-hours-trips>summary svg{transition:none;}}
