/* HPM 42 — ATELIER. Independent presentation foundation. */
:root{--h42-canvas:#f4f5f7;--h42-paper:#fff;--h42-ink:#171b20;--h42-muted:#78818a;--h42-line:#e5e8ec;--h42-accent:#cefa69;--h42-accent-ink:#23320d;--h42-dark:#14181b;--h42-blue:#5165d8;--h42-success:#18794e;--h42-danger:#bc4149;--h42-warning:#98691d;--h42-radius:14px;--h42-rail:232px;--h42-font:Inter,"Segoe UI",Arial,sans-serif;--h42-shadow:0 4px 20px #14201905;--font:var(--h42-font);--safe-top:env(safe-area-inset-top,0px);--safe-bottom:env(safe-area-inset-bottom,0px);--safe-left:env(safe-area-inset-left,0px);--safe-right:env(safe-area-inset-right,0px);--hour:88px;--driver:195px;--sidebar:0px;--topbar:72px;--ht-topbar-height:72px;--ht-transition:160ms ease;--radius:14px;--r:14px;--radius-xl:20px;--bc-radius:14px;--ht-radius-md:12px;--ht-radius-sm:8px}
*{box-sizing:border-box}html{min-height:100%;background:var(--h42-canvas)}body.h42{margin:0;background:var(--h42-canvas);color:var(--h42-ink);font-family:var(--h42-font);font-size:14px;line-height:1.55;-webkit-font-smoothing:antialiased}body.h42-admin{padding:72px 0 0 var(--h42-rail);min-height:100vh}body.h42 a{color:inherit;text-decoration:none}body.h42 img{max-width:100%}body.h42 :is(button,input,select,textarea){font:inherit}body.h42 button{cursor:pointer}body.h42 :is(button,input,select,textarea):disabled{opacity:.55;cursor:not-allowed}body.h42 [hidden]{display:none!important}body.h42 :focus-visible{outline:3px solid #718c32;outline-offset:3px}body.h42 h1,body.h42 h2,body.h42 h3,body.h42 h4{color:var(--h42-ink);font-family:var(--h42-font);letter-spacing:-.035em;line-height:1.2}body.h42 h1{font-size:34px;font-weight:650;margin:0 0 12px}body.h42 h2{font-size:21px;font-weight:650;margin:0 0 10px}body.h42 h3{font-size:16px;font-weight:650;margin:0 0 8px}body.h42 p{margin:0 0 12px}body.h42 small{font-size:12px}body.h42 svg{flex-shrink:0}.h42 svg{width:19px;height:19px}
.h42-skip{position:fixed;top:-90px;left:250px;z-index:2000;background:var(--h42-accent);padding:12px 20px;border-radius:8px}.h42-skip:focus{top:10px}
.h42-rail{position:fixed;inset:0 auto 0 0;width:var(--h42-rail);background:var(--h42-dark);color:#c7cdd0;z-index:1000;display:flex;flex-direction:column;padding:28px 17px 17px;border-right:1px solid #ffffff09}
.h42-brand{display:flex;align-items:center;gap:11px;color:#fff!important;font-weight:650;letter-spacing:-.03em;font-size:13px;padding:0 7px 28px;line-height:1.25}.h42-monogram{font-weight:800;font-size:35px;letter-spacing:-5px;color:#fff;line-height:1;width:36px}.h42-monogram span{color:var(--h42-accent)}.h42-brand small{display:block;color:#747e82;font-size:8px!important;letter-spacing:.18em;margin-top:7px;font-weight:500}.h42-workspace-tag{display:flex;gap:10px;align-items:center;background:#22282c;border:1px solid #32383c;border-radius:10px;margin-bottom:25px;padding:10px;font-size:11px;color:#f0f3f4;font-weight:550}.h42-workspace-mark{display:grid;place-items:center;width:30px;height:30px;border-radius:7px;background:#363f42;color:#d8dedf;font-size:10px;font-weight:700;flex-shrink:0}.h42-workspace-tag small,.h42-system-link small{display:block;color:#8f989d;font-size:10px!important;font-weight:400;margin-top:2px}.h42-rail nav{overflow:auto;scrollbar-width:thin;scrollbar-color:#364044 transparent;flex:1}.h42-nav-group{margin-bottom:21px}.h42-nav-label{display:block;padding:0 13px 9px;color:#727d81;font-size:9px;font-weight:600;letter-spacing:.14em}.h42-nav-group a,.h42-rail-bottom>a{display:flex;align-items:center;gap:12px;min-height:42px;padding:10px 12px;border-radius:8px;margin:3px 0;font-size:12px;font-weight:500;transition:background .16s,color .16s}.h42-nav-group a svg{width:17px;height:17px;opacity:.8}.h42-nav-group a:hover,.h42-rail-bottom>a:hover{background:#232a2e;color:#fff}.h42-nav-group a.is-active{background:var(--h42-accent);color:#1a2410;font-weight:650}.h42-nav-group a.is-active svg{opacity:1}.h42-nav-group a i{width:5px;height:5px;border-radius:50%;background:currentColor;margin-left:auto}.h42-rail-bottom{padding-top:12px;border-top:1px solid #ffffff0d}.h42-system-link{border:1px solid #343c3f!important;margin-top:15px!important;font-size:11px!important}.h42-system-link>svg{width:14px;margin-left:auto}
.h42-top{position:fixed;top:0;left:var(--h42-rail);right:0;height:72px;padding:0 32px;background:#ffffffed;border-bottom:1px solid var(--h42-line);display:flex;align-items:center;justify-content:space-between;gap:20px;z-index:900;backdrop-filter:blur(12px)}.h42-top-left,.h42-top-right{display:flex;align-items:center;gap:16px}.h42-breadcrumb{font-size:12px;color:#879099}.h42-breadcrumb>span{padding:0 10px;color:#c0c6cb}.h42-breadcrumb b{font-weight:550;color:#333c44}.h42-search-trigger{display:flex;align-items:center;gap:10px;border:0;background:none;color:#929aa1;font-size:11px!important;padding:8px}.h42-search-trigger svg{width:16px}.h42-search-trigger kbd{font:10px var(--h42-font);border:1px solid var(--h42-line);padding:2px 5px;border-radius:4px;margin-left:18px;color:#889099}.h42-create{display:flex;align-items:center;gap:8px;background:var(--h42-accent);color:var(--h42-accent-ink)!important;font-size:12px;font-weight:650;min-height:37px;border-radius:7px;padding:9px 13px}.h42-create svg{width:16px}.h42-avatar{width:32px;height:32px;border:3px solid #fff;outline:1px solid #dfe4dc;border-radius:50%;display:grid;place-items:center;background:#e8eddf;color:#556346;font-size:10px;font-weight:650}.h42-icon-btn{display:grid;place-items:center;width:36px;height:36px;border:1px solid var(--h42-line);border-radius:8px;background:var(--h42-paper);color:var(--h42-ink)}.h42-menu{display:none}.h42-backdrop{position:fixed;inset:0;z-index:990;background:#10181bb3;border:0}
.h42-command{width:min(560px,calc(100% - 28px));max-height:80dvh;padding:0;border:1px solid var(--h42-line);border-radius:18px;background:var(--h42-paper);color:var(--h42-ink);box-shadow:0 32px 100px #111a2940;overflow:hidden}.h42-command::backdrop{background:#11182080;backdrop-filter:blur(5px)}.h42-command-search{display:flex;align-items:center;gap:12px;padding:18px;border-bottom:1px solid var(--h42-line)}.h42-command-search input{width:100%;border:0!important;background:transparent!important;min-width:0;outline:none;font-size:15px}.h42-command-results{padding:10px;overflow:auto;max-height:55dvh}.h42-command-results a{display:flex;align-items:center;gap:12px;border-radius:8px;padding:11px 13px;font-size:13px}.h42-command-results a:hover{background:#f0f4e9}.h42-command-results a svg:last-child{margin-left:auto;width:15px;color:#89938b}.h42-command-results p{padding:20px;color:var(--h42-muted)}.h42-command-help{display:flex;justify-content:space-between;font-size:10px;color:var(--h42-muted);padding:12px 20px;background:#fafbfc;border-top:1px solid var(--h42-line)}
/* One content container; obsolete chrome is not part of the new product. */
body.h42-admin :is(.app,.app-shell,.ht-app,.os-app,.hx-app,.airport-shell,.board-shell,.dispatch-shell,.di-shell){display:block!important;width:auto!important;max-width:1800px!important;margin:0 auto!important;padding:0 32px!important;min-height:0!important;background:transparent!important}
body.h42-admin :is(.sidebar,.ht-sidebar,.os-sidebar,.airport-sidebar,.board-sidebar,.dispatch-sidebar,.di-sidebar,.hx-top,.ht33-shell,.ht33-mobile-head,.ht-mobile-nav,.bc-sticky-dock,.htpo-intelligence,.mb-dispatch-rail,.mb-command,.hpm-system-badge,.htdos-page-ribbon,[data-htdos-shell-launcher],.htdos-shell-panel,.htdos-shell-backdrop){display:none!important}
body.h42-admin :is(.main,.workspace,.ht-workspace,.os-main,.airport-main,.board-main,.dispatch-main,.di-main){width:100%;margin:0;max-width:none;min-width:0;background:transparent}
body.h42-admin :is(.content,.ht-content,.os-content,.hx-page,.airport-content,.board-content,.dispatch-content,.di-content){padding:26px 0 56px;margin:0;max-width:none;width:100%;min-width:0}
body.h42-admin :is(.topbar,.ht-topbar,.os-topbar,.airport-topbar,.board-topbar,.dispatch-topbar,.di-topbar){position:relative!important;inset:auto!important;display:flex!important;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:16px;height:auto!important;min-height:0;margin:28px 0 0;padding:0 0 22px;border:0;border-bottom:1px solid var(--h42-line);background:transparent;box-shadow:none;z-index:10;color:var(--h42-ink)}
body.h42-admin :is(.topbar,.ht-topbar,.os-topbar) h1{font-size:26px;margin:0}body.h42-admin :is(.topbar>.brand,.topbar>nav,.topbar>.status,.mobile-menu,.ht-mobile-toggle){display:none!important}
body.h42-admin :is(.topbar .heading>span,.topbar-title>span,.eyebrow,.ht-eyebrow,.h42-eyebrow){display:block;font-size:10px;font-weight:650;color:var(--h42-muted);letter-spacing:.11em;text-transform:uppercase;line-height:1.6;margin-bottom:6px}
body.h42-admin :is(.command,.command-head,.pagehead,.page-intro){display:flex;justify-content:space-between;align-items:flex-end;gap:20px;margin:26px 0 24px;padding:0;background:transparent;min-height:0;height:auto}
body.h42-admin :is(.command,.command-head,.pagehead,.page-intro) p{font-size:13px;color:var(--h42-muted);max-width:680px;margin:8px 0 0;line-height:1.7}
body.h42-admin :is(.panel,.hx-panel,.side-card,.summary-card,.bd-card,.mw-card,.queue,.card,.box,.form-card){background:var(--h42-paper);border:1px solid var(--h42-line);border-radius:var(--h42-radius);box-shadow:var(--h42-shadow);min-width:0}
body.h42-admin :is(.panel-head,.hx-panel-head,.panelhead){display:flex;align-items:center;justify-content:space-between;gap:12px;padding:20px 22px;border-bottom:1px solid var(--h42-line);background:transparent;min-height:0;height:auto}
body.h42-admin :is(.panel-head,.hx-panel-head,.panelhead) h2{font-size:17px;margin:0}body.h42-admin :is(.panel-head,.hx-panel-head,.panelhead) p{font-size:12px;color:var(--h42-muted);margin:5px 0 0}
body.h42 :is(input:not([type=hidden]):not([type=checkbox]):not([type=radio]),select,textarea){min-height:42px;padding:10px 12px;border:1px solid #dce1e6;border-radius:8px;background:#fff;color:var(--h42-ink);font-size:13px;min-width:0;max-width:100%;box-shadow:0 1px 2px #00000002}
body.h42 :is(input,select,textarea):focus{outline:0;border-color:#879c62;box-shadow:0 0 0 3px #b1d38026}body.h42 textarea{min-height:100px;resize:vertical}body.h42 label{font-size:12px;font-weight:550;color:#515a65}
body.h42 :is(.grid,.form-grid,.customer-fields,.detailgrid,.extra-grid,.trip-grid,.route-grid) label{display:grid;gap:8px;min-width:0}body.h42 :is(.grid,.form-grid,.customer-fields,.detailgrid,.extra-grid,.trip-grid,.route-grid) :is(input:not([type=checkbox]):not([type=radio]),select,textarea){width:100%}
body.h42 :is(.btn,.primary-btn,.oc-btn,.di-btn,.os-btn,.ht-button,.top-actions>a,.customer-actions>a,.pageactions>a,.page-actions>a){display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:38px;padding:9px 14px;border:1px solid #dce1e6;border-radius:8px;background:#fff;color:#343c45;font-size:12px;font-weight:600;line-height:1.3;box-shadow:0 1px 2px #11111105;white-space:nowrap}
body.h42 :is(.primary,.primary-btn,.btn.primary,.oc-btn.primary,.di-btn--primary,.os-btn.gold,.ht-button-gold,.top-actions .new){background:var(--h42-dark);border-color:var(--h42-dark);color:#fff}body.h42 :is(.secondary,.btn.secondary,.oc-btn.ghost){background:#fff;color:#424c56;border-color:var(--h42-line)}
body.h42 :is(.actions,.top-actions,.topbar-actions,.pageactions,.page-actions,.customer-actions){display:flex;align-items:center;flex-wrap:wrap;gap:8px}
body.h42 :is(.filters,.tabs){display:flex;flex-wrap:wrap;gap:4px}body.h42 :is(.filters a,.filters button,.tabs a,.tabs button){display:inline-flex;align-items:center;min-height:34px;padding:8px 12px;border:1px solid transparent;border-radius:7px;font-size:12px;color:#7d8590;background:transparent;font-weight:500}body.h42 :is(.filters .active,.tabs .active){background:#edf2e7;color:#365218;border-color:#dbe5cf;font-weight:650}
body.h42-admin :is(.kpis,.pulse-grid,.driver-kpi-grid,.profile-kpis){display:grid;grid-template-columns:repeat(auto-fit,minmax(145px,1fr));gap:14px;margin:0 0 24px}
body.h42-admin :is(.kpi,.kpis>article,.kpis>a,.pulse,.driver-kpi,.stat-card){background:var(--h42-paper);border:1px solid var(--h42-line);border-radius:12px;padding:19px 20px;min-height:116px;box-shadow:var(--h42-shadow)}body.h42-admin :is(.kpi,.kpis>article,.kpis>a,.pulse,.driver-kpi,.stat-card)>span{display:block;color:#7b858e;font-size:10px;font-weight:600;letter-spacing:.05em}body.h42-admin :is(.kpi,.kpis>article,.kpis>a,.pulse,.driver-kpi,.stat-card) strong{display:block;font-size:29px;font-weight:600;letter-spacing:-.05em;line-height:1.2;margin:9px 0 6px;color:var(--h42-ink)}body.h42-admin :is(.kpi,.kpis>article,.kpis>a,.pulse,.driver-kpi,.stat-card) small{font-size:11px;color:var(--h42-muted)}
body.h42 table{width:100%;border-collapse:collapse;background:#fff;font-size:13px}body.h42 th{background:#fafbfc;color:#8a939c;font-size:10px;letter-spacing:.08em;text-transform:uppercase;font-weight:650;padding:13px 16px;border-bottom:1px solid var(--h42-line);text-align:left}body.h42 td{padding:17px 16px;border-bottom:1px solid #edf0f2;vertical-align:middle;font-size:12px}body.h42 tbody tr:hover td{background:#fbfcf9}
body.h42 :is(.table-wrap,.table-responsive,.table-scroll,.customer-list,.mission-board){max-width:100%;overflow:auto;overscroll-behavior-inline:contain;-webkit-overflow-scrolling:touch}
body.h42 :is(.status,.badge,.status-badge,.ht-status,.tier,.tier-pill){display:inline-flex;align-items:center;gap:5px;padding:4px 8px;border:1px solid #e3e8ec;border-radius:6px;font-size:10px;line-height:1.3;letter-spacing:0;font-weight:600;background:#f2f4f6;color:#65717c;white-space:nowrap}
body.h42 :is(.success,.status-done,.status-confirmed,.badge-success){color:var(--h42-success)}body.h42 :is(.danger,.status-cancelled,.overdue,.badge-danger){color:var(--h42-danger)}body.h42 :is(.warning,.warn,.pending){color:var(--h42-warning)}
body.h42 .modal{display:none;position:fixed;inset:0;z-index:1400;background:#10182080;place-items:center;padding:20px;backdrop-filter:blur(5px)}body.h42 .modal:not([hidden]){display:grid}body.h42 :is(.modal-card,.bd-modal-card){background:#fff;border:1px solid var(--h42-line);border-radius:18px;padding:24px;width:min(720px,100%);max-height:88dvh;overflow:auto;box-shadow:0 24px 100px #10182033}body.h42 .bd-modal{z-index:1400}body.h42 .bd-modal-backdrop{background:#10182080;backdrop-filter:blur(4px)}body.h42 :is(.empty,.empty-state){padding:40px 24px;text-align:center;color:var(--h42-muted)}body.h42 .empty-state strong{display:block;color:#414d58;font-size:15px;margin-bottom:8px}
body.h42 :is(.ht-place-suggestions,[data-customer-results]){z-index:1500;background:#fff;border-radius:10px;box-shadow:0 15px 45px #111a2922}body.h42 .ht-place-suggestion{background:#fff;color:var(--h42-ink);border:0;border-bottom:1px solid var(--h42-line);padding:12px;min-height:44px}body.h42 .ht-place-suggestion:hover{background:#f0f5e9}
@media(min-width:1700px){.h42-top{padding-left:44px;padding-right:44px}body.h42-admin :is(.app,.app-shell,.ht-app,.os-app,.hx-app,.airport-shell,.board-shell,.dispatch-shell,.di-shell){padding-left:44px!important;padding-right:44px!important}}
@media(max-width:1280px){:root{--h42-rail:210px}.h42-top{padding:0 24px}.h42-search-trigger span{display:none}.h42-search-trigger kbd{margin-left:0}body.h42-admin :is(.app,.app-shell,.ht-app,.os-app,.hx-app,.airport-shell,.board-shell,.dispatch-shell,.di-shell){padding:0 24px!important}}
@media(max-width:1080px){body.h42-admin{padding-left:0}.h42-rail{transform:translateX(-100%);transition:transform .2s;--h42-rail:244px}.h42-nav-open .h42-rail{transform:translateX(0)}.h42-nav-open{overflow:hidden}.h42-top{left:0}.h42-menu{display:grid}.h42-breadcrumb{font-size:11px}.h42-skip{left:12px}}
@media(max-width:700px){body.h42-admin{padding-top:64px}.h42-top{height:64px;padding:0 16px;gap:10px}.h42-top-left,.h42-top-right{gap:10px}.h42-search-trigger,.h42-avatar{display:none}.h42-breadcrumb{font-size:0}.h42-breadcrumb>span{display:none}.h42-breadcrumb b{font-size:12px}.h42-create{padding:9px 11px;font-size:11px}.h42-create svg{width:14px}body.h42-admin :is(.app,.app-shell,.ht-app,.os-app,.hx-app,.airport-shell,.board-shell,.dispatch-shell,.di-shell){padding:0 16px!important}body.h42 h1{font-size:28px}body.h42-admin :is(.command,.command-head,.pagehead,.page-intro){align-items:flex-start;flex-direction:column;gap:16px}body.h42-admin :is(.kpis,.pulse-grid,.driver-kpi-grid,.profile-kpis){grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}body.h42-admin :is(.kpi,.kpis>article,.kpis>a,.pulse,.driver-kpi){padding:16px;min-height:108px}body.h42-admin :is(.panel-head,.panelhead){padding:18px;flex-wrap:wrap}body.h42 :is(.form-grid,.extra-grid,.customer-fields,.detailgrid){grid-template-columns:minmax(0,1fr)!important}body.h42 :is(.wide,.span2){grid-column:1/-1!important}body.h42 :is(.topbar,.ht-topbar){gap:14px}body.h42 :is(.topbar-actions,.top-actions){justify-content:flex-start}.h42-command-help{font-size:9px}}
@media(prefers-reduced-motion:reduce){body.h42 *{transition:none!important;animation:none!important;scroll-behavior:auto!important}}
@media print{body.h42-admin{padding:0}.h42-rail,.h42-top,.h42-command,.h42-backdrop,.h42-skip{display:none!important}body.h42{background:#fff}body.h42 :is(.panel,.card,.bd-card){box-shadow:none}}
body.h42-admin> :is(.container,.wrap,.shell,.page,.box,.card){max-width:1500px;margin:28px 32px;padding:24px}body.h42-admin>.container :is(.box,.card){margin-bottom:20px}body.h42-admin>.h42-command{margin:auto;padding:0;max-width:560px}
body.h42 .ridehead{display:flex;justify-content:space-between;align-items:center;gap:12px;border-bottom:1px solid #e4eadf;padding-bottom:14px}.h42 .ridehead>div{display:flex;align-items:center;gap:10px}.h42 .leg-number{display:grid;place-items:center;width:27px;height:27px;border-radius:7px;background:#eaf1df;color:#79934e;font-size:11px}.h42 .ridehead p{margin:0}.h42 .ridehead small{font-size:10px;color:#96a18b}.h42 .ridehead b{display:block;font-size:12px}.h42 .ride-actions button{border:1px solid #dfe7d7;border-radius:6px;background:#fff;padding:6px 9px;font-size:10px;color:#8b987b}.h42 .swap{height:34px;width:30px;border:1px solid #e0e6da;border-radius:7px;background:#fff;color:#91a279}.h42 .routefield i{display:grid;place-items:center;min-width:20px;height:20px;background:#e9f0df;color:#809963;border-radius:50%;font-style:normal;font-size:9px}
@media(max-width:700px){body.h42-admin> :is(.container,.wrap,.shell,.page,.box,.card){margin:20px 16px;padding:18px}}
