/* CP1 Home only: existing TruckBro light surface / dark sidebar / orange controls. */
.ha-dashboard{min-width:0;max-width:1800px;margin:auto;color:#213542}
.ha-dashboard *{box-sizing:border-box}
.ha-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:12px}
.ha-heading h1{font-size:23px;margin:0}.ha-heading h1 small{font-size:14px;font-weight:500;color:#667985}
.ha-filters{display:grid;grid-template-columns:minmax(190px,1.3fr) minmax(130px,1fr) repeat(2,minmax(135px,1fr)) minmax(160px,1fr);gap:12px;padding:14px!important;position:relative;z-index:5}
.ha-filters label,.ha-vehicle-field{display:flex;flex-direction:column;gap:5px;font-size:12px;color:#647683;min-width:0}
.ha-filters input,.ha-filters select,.ha-multiselect summary{height:40px;width:100%;min-width:0;background:#f9fbfc;border:1px solid #cdd8de;border-radius:9px;padding:8px 10px;color:#213542;font-size:14px}
.ha-multiselect{position:relative}.ha-multiselect summary{cursor:pointer;list-style:none;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;padding-right:26px}.ha-multiselect summary:after{content:'⌄';position:absolute;right:10px}.ha-menu{position:absolute;top:45px;left:0;width:max(100%,260px);max-width:calc(100vw - 48px);background:white;box-shadow:0 12px 35px #162d4930;border:1px solid #d5dfe5;border-radius:12px;padding:12px;z-index:20}
.ha-menu label{flex-direction:row;align-items:center;gap:8px;padding:7px 2px;font-size:14px;color:#213542}
.ha-dashboard input[type=checkbox]{width:20px;height:20px;min-width:20px;accent-color:#ed7613;cursor:pointer;margin:0}
.ha-options{max-height:270px;overflow:auto}.ha-options [hidden]{display:none}.ha-options small{color:#849099;margin-left:auto}
.ha-overview{display:grid;grid-template-columns:minmax(0,1fr) minmax(240px,310px);gap:14px;margin-top:14px;align-items:start}
.ha-kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:9px}
.ha-kpi{background:#fff;border:1px solid #dce4e9;border-radius:12px;padding:12px;min-width:0}.ha-kpi span{display:block;font-size:12px;color:#71818c}.ha-kpi strong{display:block;font-size:20px;line-height:1.3;margin-top:6px;overflow-wrap:anywhere;font-variant-numeric:tabular-nums}
.ha-kpi.ha-net{background:#183748;border-color:#183748}.ha-net span{color:#bbccd4}.ha-net strong{color:#f6fafc}.ha-net strong.ha-profit{color:#a3e4aa}.ha-net strong.ha-loss{color:#ffb7af}
.ha-context{font-size:12px;color:#6b7d88;margin:9px 0 0}
.ha-dashboard .home-reminders{background:#fff;border:1px solid #dce4e9;border-radius:12px;padding:12px;min-width:0}
.ha-dashboard .home-reminders h2{font-size:14px;margin:0 0 9px}.ha-dashboard .home-reminders .card{padding:0!important;border:0!important;box-shadow:none!important;background:none!important}.ha-dashboard .home-reminders button{font-size:12px;min-height:32px;padding:5px 8px}.ha-dashboard .home-reminders .deadline-row{padding:7px 0;font-size:12px}
.ha-analysis-bar{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap;margin-top:18px}
.ha-segment,.ha-tabs,.ha-exports{display:flex;gap:5px;flex-wrap:wrap}
.ha-dashboard button{font-family:inherit;cursor:pointer;border:1px solid #ccd7df;border-radius:8px;padding:7px 11px;min-height:36px;background:#f7fafc;color:#283e4b;font-size:13px}
.ha-dashboard button:disabled{cursor:default;opacity:.45}.ha-dashboard button.primary,.ha-segment button[aria-pressed=true],.ha-tabs button[aria-pressed=true]{background:#ed7613;color:white;border-color:#ed7613}
.ha-note{font-size:12px;color:#677b88;margin:8px 0 12px}.ha-tabs{border-bottom:1px solid #d4dfe5;padding-bottom:8px;margin-bottom:12px}
.ha-content{padding:14px!important;min-width:0}.ha-sources{margin-bottom:12px}.ha-empty{padding:25px 12px;color:#6b7b86;font-size:14px;text-align:center}
.ha-group{border:1px solid #dce5eb;border-radius:10px;margin-bottom:10px;overflow:hidden}.ha-group>header{display:flex;align-items:center;gap:12px;background:#f0f5f8;padding:7px 12px}
.ha-group>header>button{display:flex;align-items:center;gap:16px;width:100%;background:none;border:0;text-align:left;padding:4px 0}.ha-group>header>button>span:last-child{margin-left:auto}.ha-group header em{font-style:normal}.ha-group header span{font-size:12px}
.ha-scroll{overflow:auto;max-width:100%;overscroll-behavior-x:contain}.ha-table{border-collapse:collapse;width:100%;font-size:13px;font-variant-numeric:tabular-nums}
.ha-table th{font-size:11px;color:#6c7d89;text-align:left;font-weight:600;background:#f6f9fb;white-space:nowrap}.ha-table th,.ha-table td{padding:10px 9px;border-bottom:1px solid #e4ebef;vertical-align:middle}.ha-table td{white-space:nowrap}.ha-table td:nth-child(2){white-space:normal;min-width:145px;max-width:260px}.ha-table td strong{font-size:13px}.ha-table tbody tr:hover{background:#fff7ef}.ha-table tfoot{font-weight:700;background:#eef4f7}
.ha-tag{display:block;width:fit-content;background:#eaf0f4;border-radius:5px;padding:2px 5px;color:#71808a;font-size:10px;margin-top:4px}.ha-profit{color:#258051}.ha-loss{color:#c84238}
.ha-actions{display:flex;gap:5px}.ha-actions button{padding:5px 8px;font-size:11px;min-height:30px}
.ha-selection-tools{display:flex;align-items:center;gap:9px;flex-wrap:wrap;margin-bottom:12px;font-size:12px}
.ha-comparison th button{border:0;background:none;padding:0;min-height:30px;font-size:11px;white-space:nowrap}.ha-comparison td{min-width:75px}.ha-comparison td:first-child{min-width:100px;font-weight:700}.ha-comparison tr[data-ha-detail]{cursor:pointer}
.ha-profit-bar{display:block;background:#e7edf0;height:5px;border-radius:3px;margin-top:5px;width:90px;overflow:hidden}.ha-profit-bar i{height:100%;display:block}
.ha-detail{border:1px solid #e5a158;background:#fffaf5;border-radius:10px;margin-top:14px;padding:12px}.ha-detail header{display:flex;justify-content:space-between;align-items:center}.ha-detail h3{margin:0 0 10px;font-size:16px}
.ha-pagination{display:flex;justify-content:flex-end;align-items:center;gap:10px;margin-top:12px;font-size:12px;color:#6b7e89}
.ha-mobile-sort{display:none}.ha-dashboard :focus-visible{outline:2px solid #ed7613;outline-offset:2px}
@media(min-width:1550px){.ha-kpis{grid-template-columns:repeat(7,minmax(0,1fr))}.ha-kpi strong{font-size:19px}}
@media(max-width:1050px){.ha-overview{grid-template-columns:1fr}.ha-filters{grid-template-columns:repeat(3,minmax(0,1fr))}.ha-overview>.home-reminders{max-width:none}}
@media(max-width:600px){.ha-heading h1{font-size:21px}.ha-heading h1 small{display:block;margin-top:4px}.ha-heading button{font-size:12px}.ha-filters{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;padding:12px!important}.ha-vehicle-field{grid-column:1/-1}.ha-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}.ha-kpi{padding:10px}.ha-kpi strong{font-size:19px}.ha-kpi.ha-net{grid-column:1/-1;grid-row:1}.ha-content{padding:9px!important}.ha-tabs button{flex:1}.ha-segment button{flex:1}.ha-segment{width:100%}.ha-group>header>button{gap:8px;flex-wrap:wrap}.ha-group>header>button>span{font-size:11px}.ha-table{font-size:12px}.ha-mobile-sort{display:flex;align-items:center;gap:8px;margin-bottom:12px;font-size:12px}.ha-mobile-sort select{min-width:0;max-width:190px;padding:8px;border:1px solid #cdd8df;border-radius:7px}.ha-menu{width:100%}.ha-pagination{justify-content:center}.ha-analysis-bar{margin-top:14px}}
/* Compact reminders remain separate from financial selection. */
.ha-dashboard .home-reminders .deadline-heading .company-kicker,.ha-dashboard .home-reminders .deadline-heading [data-deadline-add]{display:none}
.ha-dashboard .home-reminders .deadline-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:3px 8px;align-items:center}
.ha-dashboard .home-reminders .deadline-row>div{min-width:0}.ha-dashboard .home-reminders .deadline-row strong{font-size:12px;overflow:hidden;text-overflow:ellipsis}.ha-dashboard .home-reminders .deadline-row>div>span{display:none}
.ha-dashboard .home-reminders .deadline-row small{font-size:10px}.ha-dashboard .home-reminders .deadline-actions{grid-column:1/-1}
.ha-dashboard .home-reminders .deadline-row.is-overdue{display:grid!important}
@media(min-width:1060px) and (max-width:1450px){.ha-overview{grid-template-columns:1fr}.ha-kpis{grid-template-columns:repeat(7,minmax(0,1fr))}.ha-kpi strong{font-size:17px}.ha-dashboard .home-reminders [data-deadline-list]{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.ha-dashboard .home-reminders .deadline-row{border:0;padding:0}.ha-dashboard .home-reminders{position:relative}.ha-dashboard .home-reminders>button{position:absolute;right:10px;top:7px}.ha-dashboard .home-reminders h2{max-width:65%;margin-bottom:10px}}
/* Isolate analytics tabs from the legacy global nav dropdown rule. */
.ha-dashboard .ha-tabs{position:static;inset:auto;width:auto;padding:0 0 8px;background:transparent;border:0;border-bottom:1px solid #d4dfe5;border-radius:0;box-shadow:none}
.ha-dashboard{display:block}
/* Override legacy Home grid ordering only inside CP1. */
#fleet-page .ha-dashboard{display:block}
#fleet-page .ha-dashboard .ha-overview>.home-reminders{order:0}
