/* PhazTrack UI v3 — single presentation owner.
   Core telemetry remains in phaztrack-live-map.js; this file owns authenticated layout only. */
:root{
  --pt-navy:#071827;--pt-navy2:#10283b;--pt-red:#df1f3b;--pt-line:#d8e2e9;
  --pt-soft:#f5f8fb;--pt-text:#203244;--pt-head:60px;--pt-mobile-nav:62px;
}
html,body[data-product="phaztrack"]{margin:0;min-height:100%}
body[data-product="phaztrack"]{overflow:hidden;background:var(--pt-navy)}
body[data-product="phaztrack"] #customerApp.app:not(.hidden){
  display:grid!important;grid-template-columns:248px minmax(0,1fr)!important;
  width:100vw!important;height:100dvh!important;min-height:0!important;overflow:hidden!important;
}
body[data-product="phaztrack"] #customerApp>.side{
  grid-column:1;display:flex!important;flex-direction:column!important;min-height:0!important;
  height:100dvh!important;overflow:hidden!important;background:var(--pt-navy)!important;
  border-right:1px solid #173047;z-index:4000;
}
body[data-product="phaztrack"] #customerApp>.side>.brand{
  flex:0 0 auto!important;display:flex!important;align-items:center!important;gap:10px!important;
  margin:14px 12px 12px!important;padding:12px!important;background:#061421!important;border-radius:10px!important;
}
body[data-product="phaztrack"] #customerApp>.side>.brand img{width:44px!important;height:44px!important;object-fit:contain}
body[data-product="phaztrack"] #customerApp>.side>.brand span{color:#f6f9fb!important;font-weight:900!important}
body[data-product="phaztrack"] #customerApp>.side>.brand b{color:var(--pt-red)!important}
body[data-product="phaztrack"] #customerApp>.side>nav{
  flex:1 1 auto!important;min-height:0!important;overflow-y:auto!important;overflow-x:hidden!important;
  padding:6px 10px 14px!important;scrollbar-width:thin;overscroll-behavior:contain;
}
body[data-product="phaztrack"] #customerApp>.side>nav button{
  width:100%!important;min-height:46px!important;margin:0 0 4px!important;padding:9px 12px!important;
  display:flex!important;align-items:center!important;gap:10px!important;border:0!important;border-radius:11px!important;
  background:transparent!important;color:#bdc9d4!important;text-align:left!important;font:800 .78rem/1.15 system-ui,sans-serif!important;
  cursor:pointer!important;
}
body[data-product="phaztrack"] #customerApp>.side>nav button:hover{background:#10263a!important;color:#fff!important}
body[data-product="phaztrack"] #customerApp>.side>nav button.active{
  background:linear-gradient(135deg,#ef2b47,#c81732)!important;color:#fff!important;
  box-shadow:0 8px 22px rgba(184,20,43,.22)!important;
}
body[data-product="phaztrack"] #customerApp>.side>.foot{
  flex:0 0 auto!important;margin:0!important;padding:10px 12px!important;border-top:1px solid #173047!important;
  background:#061421!important;color:#8fa0af!important;font-size:.67rem!important;line-height:1.4!important;
}
body[data-product="phaztrack"] #customerApp>.main{
  grid-column:2!important;position:relative!important;width:auto!important;height:100dvh!important;min-width:0!important;min-height:0!important;
  overflow:hidden!important;background:var(--pt-soft)!important;padding:0!important;margin:0!important;
}
body[data-product="phaztrack"] #customerApp>.main>.top{
  position:absolute!important;z-index:5000!important;top:0!important;left:0!important;right:0!important;
  height:var(--pt-head)!important;min-height:var(--pt-head)!important;box-sizing:border-box!important;
  display:grid!important;grid-template-columns:minmax(130px,.6fr) minmax(250px,460px) auto!important;
  align-items:center!important;gap:10px!important;padding:9px 12px!important;margin:0!important;
  background:var(--pt-navy)!important;border:0!important;border-bottom:1px solid #173047!important;border-radius:0!important;
  box-shadow:0 2px 12px rgba(0,0,0,.18)!important;
}
body[data-product="phaztrack"] #customerApp>.main>.top>*{display:none!important}
body[data-product="phaztrack"] #customerApp>.main>.top>.pt3-title,
body[data-product="phaztrack"] #customerApp>.main>.top>.pt3-search,
body[data-product="phaztrack"] #customerApp>.main>.top>.pt3-actions{display:flex!important}
.pt3-title{align-items:center!important;gap:9px!important;color:#fff!important;min-width:0!important}
.pt3-live-dot{width:8px;height:8px;border-radius:50%;background:var(--pt-red);box-shadow:0 0 0 4px rgba(223,31,59,.16);flex:0 0 auto}
.pt3-title strong{font:900 .9rem/1 system-ui,sans-serif;white-space:nowrap}
.pt3-search{position:relative!important;align-items:center!important}
.pt3-search svg{position:absolute;left:11px;width:16px;height:16px;fill:none;stroke:#9fb0bf;stroke-width:1.8;pointer-events:none}
.pt3-search input{
  width:100%;height:38px;box-sizing:border-box;padding:0 12px 0 34px;border:1px solid #2a4256;border-radius:10px;
  background:var(--pt-navy2);color:#fff;font:700 .74rem/1 system-ui,sans-serif;outline:none;
}
.pt3-search input::placeholder{color:#9fb0bf}
.pt3-actions{align-items:center!important;justify-content:flex-end!important;gap:6px!important;white-space:nowrap!important}
.pt3-actions button,.pt3-actions select{
  height:38px;min-width:38px;border:1px solid #2a4256;border-radius:9px;background:var(--pt-navy2);color:#fff;
  font:800 .68rem/1 system-ui,sans-serif;cursor:pointer;
}
.pt3-actions button{display:inline-flex;align-items:center;justify-content:center;gap:6px;padding:0 10px}
.pt3-actions button svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.pt3-actions select{min-width:64px;padding:0 7px}
.pt3-actions button:hover,.pt3-actions select:hover{background:#18364d;border-color:#41617a}
.pt3-actions .pt3-signout{background:var(--pt-red);border-color:var(--pt-red);padding-inline:13px}
body[data-product="phaztrack"] #appNotice{display:none!important}
body[data-product="phaztrack"] #customerApp>.main>.view{
  display:none!important;position:absolute!important;top:var(--pt-head)!important;left:0!important;right:0!important;bottom:0!important;
  height:auto!important;min-height:0!important;margin:0!important;padding:14px!important;overflow:auto!important;box-sizing:border-box!important;
  background:var(--pt-soft)!important;
}
body[data-product="phaztrack"] #customerApp>.main>.view.active{display:block!important}
body[data-product="phaztrack"] #customerApp>.main>.view[data-view="fleet"].active{padding:0!important;overflow:hidden!important;background:#dbe5eb!important}
body[data-product="phaztrack"] .view[data-view="fleet"]>.tracking-shell{
  position:absolute!important;inset:0!important;width:100%!important;height:100%!important;min-height:0!important;margin:0!important;padding:0!important;display:block!important;
}
body[data-product="phaztrack"] .tracking-map-card{
  position:absolute!important;inset:0!important;width:100%!important;height:100%!important;min-height:0!important;
  margin:0!important;padding:0!important;border:0!important;border-radius:0!important;overflow:hidden!important;
}
body[data-product="phaztrack"] .tracking-map-head,body[data-product="phaztrack"] .tracking-tools{display:none!important}
body[data-product="phaztrack"] #phazLiveMap{
  position:absolute!important;inset:0!important;width:100%!important;height:100%!important;min-height:0!important;max-height:none!important;border-radius:0!important;
}
.pt3-map-dock{
  position:absolute;z-index:1800;top:12px;left:12px;display:flex;flex-direction:column;align-items:flex-start;gap:6px;
  max-width:calc(100% - 170px);pointer-events:none;
}
.pt3-status-row,.pt3-action-row{display:flex;gap:6px;max-width:100%;overflow-x:auto;scrollbar-width:none;pointer-events:auto}
.pt3-status-row::-webkit-scrollbar,.pt3-action-row::-webkit-scrollbar{display:none}
.pt3-status-row button,.pt3-action-row button{
  flex:0 0 auto;height:38px;min-height:38px;padding:0 12px;border:1px solid #d5dfe7;border-radius:999px;
  background:rgba(255,255,255,.97);color:#344657;font:850 .68rem/1 system-ui,sans-serif;box-shadow:0 5px 16px rgba(7,24,39,.14);cursor:pointer;
}
.pt3-action-row button{border-radius:10px;display:inline-flex;align-items:center;gap:7px}
.pt3-action-row button svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.pt3-status-row button.active,.pt3-action-row button:hover{background:#172635;color:#fff;border-color:#172635}
.pt3-tools-menu{
  position:absolute;z-index:2050;top:100px;left:12px;display:none;grid-template-columns:repeat(2,minmax(105px,1fr));gap:6px;
  width:250px;padding:8px;border:1px solid #d7e0e7;border-radius:12px;background:rgba(255,255,255,.98);
  box-shadow:0 12px 28px rgba(7,24,39,.22);
}
.pt3-tools-menu.open{display:grid}
.pt3-tools-menu button{min-height:38px;border:1px solid #dbe4ea;border-radius:9px;background:#f7f9fb;color:#2b4053;font:800 .68rem/1 system-ui,sans-serif;cursor:pointer}
.pt3-tools-menu button.active{background:#172635;color:#fff;border-color:#172635}
body[data-product="phaztrack"] .vehicle-panel{
  position:absolute!important;z-index:1900!important;top:12px!important;right:12px!important;bottom:12px!important;
  left:auto!important;width:min(340px,calc(100% - 24px))!important;max-width:340px!important;overflow:auto!important;
  transform:translateX(calc(100% + 28px))!important;transition:transform .2s ease!important;pointer-events:none!important;
}
body[data-product="phaztrack"] .vehicle-panel.phaz-sheet-open{transform:translateX(0)!important;pointer-events:auto!important}
body[data-product="phaztrack"] .pt3-vehicle-panel-close{
  position:sticky;top:0;float:right;z-index:20;width:36px;height:36px;margin:0 0 8px 10px;
  display:inline-flex;align-items:center;justify-content:center;border:1px solid rgba(255,255,255,.18);
  border-radius:10px;background:#132234;color:#fff;font:800 22px/1 system-ui,sans-serif;cursor:pointer;
  box-shadow:0 5px 14px rgba(2,10,18,.22);
}
body[data-product="phaztrack"] .pt3-vehicle-panel-close:active{transform:scale(.96)}
body[data-product="phaztrack"] #phazLiveMap .leaflet-control-zoom{display:block!important;visibility:visible!important;opacity:1!important;pointer-events:auto!important}
body[data-product="phaztrack"] #phazLiveMap .leaflet-top.leaflet-left{top:auto!important;left:auto!important;right:12px!important;bottom:12px!important}
body[data-product="phaztrack"] #phazLiveMap .leaflet-control-zoom{margin:0!important;border:0!important;border-radius:10px!important;overflow:hidden!important;box-shadow:0 6px 20px rgba(12,24,36,.18)!important}
body[data-product="phaztrack"] #phazLiveMap .leaflet-control-zoom a{width:38px!important;height:38px!important;line-height:36px!important;background:#fff!important;color:#26394b!important}
.pt3-mobile-header,.pt3-shade{display:none}
body[data-product="phaztrack"] #customerApp.hidden .pt3-mobile-header,
body[data-product="phaztrack"] #customerApp.hidden .pt3-shade{display:none!important}
body[data-product="phaztrack"] .mobilebar{display:none!important}

@media(max-width:900px) and (min-width:601px){
  body[data-product="phaztrack"] #customerApp.app:not(.hidden){grid-template-columns:220px minmax(0,1fr)!important}
  body[data-product="phaztrack"] #customerApp>.side{width:220px!important}
  body[data-product="phaztrack"] #customerApp>.main>.top{grid-template-columns:minmax(90px,.4fr) minmax(160px,1fr) auto!important;gap:5px!important}
  .pt3-action-label{display:none}
  .pt3-actions{gap:4px!important}
  .pt3-actions button{padding-inline:8px}
}
@media(max-width:600px){
  body[data-product="phaztrack"] #customerApp.app:not(.hidden){display:block!important;width:100vw!important;height:100dvh!important}
  body[data-product="phaztrack"] #customerApp>.main{
    position:fixed!important;top:var(--pt-head)!important;left:0!important;right:0!important;bottom:var(--pt-mobile-nav)!important;
    width:100%!important;height:auto!important;background:var(--pt-soft)!important;
  }
  body[data-product="phaztrack"] #customerApp>.main>.top{display:none!important}
  .pt3-mobile-header{
    position:fixed;z-index:7000;top:0;left:0;right:0;height:var(--pt-head);display:grid;
    grid-template-columns:auto minmax(0,1fr) auto auto;align-items:center;gap:7px;padding:8px 10px;box-sizing:border-box;
    background:var(--pt-navy);border-bottom:2px solid var(--pt-red);color:#fff;
  }
  .pt3-menu{width:40px;height:40px;border:1px solid #294159;border-radius:10px;background:#11283b;color:#fff;font-size:1.2rem}
  .pt3-mobile-brand{display:flex;align-items:center;gap:7px;min-width:0;color:#fff;font-weight:900;white-space:nowrap}
  .pt3-mobile-brand img{width:34px;height:34px;object-fit:contain}
  .pt3-mobile-brand b{color:var(--pt-red)}
  .pt3-mobile-language{height:40px;min-width:66px;border:1px solid #294159;border-radius:10px;background:#11283b;color:#fff;padding:0 6px;font-weight:800}
  .pt3-mobile-signout{height:40px;border:0;border-radius:10px;background:var(--pt-red);color:#fff;padding:0 9px;font-weight:850;font-size:.67rem}
  body[data-product="phaztrack"] #customerApp>.side{
    position:fixed!important;z-index:6900!important;top:var(--pt-head)!important;left:0!important;bottom:var(--pt-mobile-nav)!important;
    width:min(84vw,320px)!important;height:auto!important;transform:translateX(-105%)!important;transition:transform .2s ease!important;
    box-shadow:14px 0 34px rgba(0,0,0,.34)!important;
  }
  body[data-product="phaztrack"].pt3-nav-open #customerApp>.side{transform:translateX(0)!important}
  body[data-product="phaztrack"] #customerApp>.side>.brand{display:none!important}
  .pt3-shade{
    position:fixed;z-index:6800;top:var(--pt-head);left:0;right:0;bottom:var(--pt-mobile-nav);
    background:rgba(2,10,18,.48);border:0;
  }
  body[data-product="phaztrack"].pt3-nav-open .pt3-shade{display:block}
  body[data-product="phaztrack"] #customerApp>.main>.view{
    top:0!important;left:0!important;right:0!important;bottom:0!important;padding:10px!important;
  }
  body[data-product="phaztrack"] #customerApp>.main>.view[data-view="fleet"].active{padding:0!important}
  .pt3-map-dock{top:8px;left:8px;right:8px;max-width:none;gap:5px}
  .pt3-status-row,.pt3-action-row{width:100%}
  .pt3-status-row button{height:34px;min-height:34px;padding:0 9px;font-size:.61rem}
  .pt3-action-row button{width:42px;height:38px;min-height:38px;padding:0;justify-content:center}
  .pt3-action-label{display:none}
  .pt3-tools-menu{top:87px;left:8px;width:210px}
  body[data-product="phaztrack"] .vehicle-panel{
    position:fixed!important;z-index:6750!important;left:8px!important;right:8px!important;top:auto!important;
    bottom:calc(var(--pt-mobile-nav) + 8px)!important;width:auto!important;max-width:none!important;max-height:52dvh!important;
    border-radius:16px 16px 0 0!important;transform:translateY(calc(100% + var(--pt-mobile-nav) + 24px))!important;
  }
  body[data-product="phaztrack"] .vehicle-panel.phaz-sheet-open{transform:translateY(0)!important}
  body[data-product="phaztrack"] #phazLiveMap .leaflet-top.leaflet-left{
    right:8px!important;bottom:8px!important;
  }
  body[data-product="phaztrack"] .mobilebar{
    position:fixed!important;z-index:6700!important;left:0!important;right:0!important;bottom:0!important;
    height:var(--pt-mobile-nav)!important;display:grid!important;grid-template-columns:repeat(5,minmax(0,1fr))!important;
    background:#1c2733!important;border-top:1px solid #334151!important;padding:0 3px env(safe-area-inset-bottom)!important;
  }
  body[data-product="phaztrack"] .mobilebar button{
    min-width:0!important;border:0!important;border-radius:0!important;background:transparent!important;color:#c7d0d9!important;
    font-size:.64rem!important;font-weight:800!important;padding:7px 2px!important;overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important;
  }
  body[data-product="phaztrack"] .mobilebar button.active{color:#fff!important;background:#253444!important;box-shadow:inset 0 -4px 0 var(--pt-red)!important}
  body[data-product="phaztrack"] .mobilebar button:nth-child(n+6){display:none!important}
}


/* functional module styling */
body[data-product="phaztrack"] #customerApp>.side>nav{display:flex!important;flex-direction:column!important;gap:4px!important}
body[data-product="phaztrack"] #customerApp>.side [data-nav="fleet"]{order:1}
body[data-product="phaztrack"] #customerApp>.side [data-nav="overview"]{order:2}
body[data-product="phaztrack"] #customerApp>.side [data-nav="alerts"]{order:3}
body[data-product="phaztrack"] #customerApp>.side [data-nav="history"]{order:4}
body[data-product="phaztrack"] #customerApp>.side [data-nav="hardware"]{order:5}
body[data-product="phaztrack"] #customerApp>.side [data-nav="vehicle-connections"]{order:5}
body[data-product="phaztrack"] #customerApp>.side [data-nav="geofences"]{order:6}
body[data-product="phaztrack"] #customerApp>.side [data-nav="drivers"]{order:7}
body[data-product="phaztrack"] #customerApp>.side [data-nav="maintenance"]{order:8}
body[data-product="phaztrack"] #customerApp>.side [data-nav="security"]{order:9}
body[data-product="phaztrack"] #customerApp>.side [data-nav="reports"]{order:10}
body[data-product="phaztrack"] #customerApp>.side #phazUserAdminNav{order:11}
body[data-product="phaztrack"] #customerApp>.side #productSidebarSecurity{order:12}
body[data-product="phaztrack"] #customerApp>.side [data-nav="roadtest"]{order:13}
body[data-product="phaztrack"] .phaz-capability-note{margin-top:9px;padding:8px 9px;border-radius:8px;background:#f3f6f9;color:#607083;font-size:.66rem;line-height:1.4;border:1px solid #e0e6ec}
body[data-product="phaztrack"] .phaz-product-module-sheet{position:fixed;z-index:9000;inset:0;display:grid;place-items:center;padding:18px;background:rgba(12,18,25,.56);backdrop-filter:blur(5px)}
body[data-product="phaztrack"] .phaz-module-card{position:relative;width:min(760px,100%);max-height:min(82vh,760px);display:flex;flex-direction:column;overflow:hidden;border:1px solid #dce2e8;border-radius:16px;background:#fff;color:#263445;padding:22px;box-shadow:0 22px 70px rgba(10,16,24,.28)}
body[data-product="phaztrack"] .phaz-module-card h2{margin:4px 38px 8px 0;font-size:1.2rem}
body[data-product="phaztrack"] .phaz-module-card .phaz-module-copy{margin:0;color:#607083;line-height:1.55;font-size:.88rem}
body[data-product="phaztrack"] .phaz-module-kicker{font-size:.68rem;font-weight:850;text-transform:uppercase;letter-spacing:.08em;color:#b51222}
body[data-product="phaztrack"] .phaz-module-close{position:absolute;right:12px;top:12px;width:34px;height:34px;border:0;border-radius:9px;background:#f1f4f7;color:#263445;font-size:1.2rem}
body[data-product="phaztrack"] .phaz-module-status{margin-top:14px;padding:8px 10px;border-radius:9px;font-size:.72rem;font-weight:750;background:#f3f6f9;color:#607083;border:1px solid #e0e6ec}
body[data-product="phaztrack"] .phaz-module-status.ready{background:#edf7f1;color:#17663a;border-color:#cfe8d9}
body[data-product="phaztrack"] .phaz-module-status.error{background:#fff2f3;color:#a01425;border-color:#f1cbd0}
body[data-product="phaztrack"] .phaz-module-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-top:12px;overflow:auto;padding:1px 3px 8px 1px}
body[data-product="phaztrack"] .phaz-module-item{min-width:0;border:1px solid #e0e6ec;border-radius:12px;background:#fbfcfd;padding:12px}
body[data-product="phaztrack"] .phaz-module-item-head{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:8px}
body[data-product="phaztrack"] .phaz-module-item dl{margin:0;display:grid;gap:6px}
body[data-product="phaztrack"] .phaz-module-item dl>div{display:grid;grid-template-columns:minmax(80px,.75fr) minmax(0,1.25fr);gap:8px}
body[data-product="phaztrack"] .phaz-module-item dt{color:#748294;font-size:.66rem}
body[data-product="phaztrack"] .phaz-module-item dd{margin:0;color:#263445;font-size:.7rem;font-weight:650;word-break:break-word;text-align:right}
body[data-product="phaztrack"] .phaz-module-pill{border-radius:999px;padding:4px 7px;background:#e9edf2;color:#526171;font-size:.58rem;font-weight:850;text-transform:uppercase}
body[data-product="phaztrack"] .phaz-module-actions{margin-top:12px;display:flex;gap:8px;flex-wrap:wrap}
body[data-product="phaztrack"] .phaz-module-actions button{border:1px solid #3d4856;border-radius:9px;background:#29313d;color:#fff;padding:9px 12px;font-weight:750}
body[data-product="phaztrack"] .phaz-module-actions button[data-module-action="refresh"]{background:#fff;color:#29313d;border-color:#cdd5dd}
body[data-product="phaztrack"] .phaz-module-empty{grid-column:1/-1;padding:22px;border:1px dashed #d4dce4;border-radius:12px;background:#fafbfd;text-align:center}
body[data-product="phaztrack"] .phaz-module-empty span{display:block;margin-top:5px;color:#6b7989;font-size:.75rem;line-height:1.45}
@media(max-width:620px){
 body[data-product="phaztrack"] .phaz-product-module-sheet{place-items:end center;padding:10px}
 body[data-product="phaztrack"] .phaz-module-card{width:100%;max-height:84vh;border-radius:15px;padding:17px}
 body[data-product="phaztrack"] .phaz-module-list{grid-template-columns:1fr}
}


/* clean-runtime hard lock */
@media(min-width:601px){
 body[data-product="phaztrack"] #customerApp>.main>.top{
  border-radius:0!important;padding:9px 12px!important;gap:10px!important;
  grid-template-columns:minmax(150px,220px) minmax(300px,1fr) auto!important;
  overflow:visible!important;
 }
 body[data-product="phaztrack"] #customerApp>.main>.top>.pt3-title,
 body[data-product="phaztrack"] #customerApp>.main>.top>.pt3-search,
 body[data-product="phaztrack"] #customerApp>.main>.top>.pt3-actions{display:flex!important}
 body[data-product="phaztrack"] #customerApp>.main>.top>.pt3-actions{
  min-width:max-content!important;overflow:visible!important;
 }
 body[data-product="phaztrack"] #customerApp>.main>.top>.pt3-actions>*{flex:0 0 auto!important}
 body[data-product="phaztrack"] #customerApp>.main>.top>.pt3-actions .pt3-signout{display:inline-flex!important}
 body[data-product="phaztrack"] #customerApp .view[data-view="fleet"] .vehicle-panel{
  position:absolute!important;z-index:1900!important;top:12px!important;right:12px!important;bottom:12px!important;left:auto!important;
  width:min(340px,calc(100% - 24px))!important;max-width:340px!important;
  transform:translateX(calc(100% + 40px))!important;visibility:hidden!important;opacity:0!important;
  pointer-events:none!important;overflow:auto!important;
 }
 body[data-product="phaztrack"] #customerApp .view[data-view="fleet"] .vehicle-panel.phaz-sheet-open{
  transform:translateX(0)!important;visibility:visible!important;opacity:1!important;pointer-events:auto!important;
 }
 body[data-product="phaztrack"] #pt3MapDock{z-index:2200!important}
 body[data-product="phaztrack"] #pt3ToolsMenu{z-index:2300!important}
}
@media(max-width:600px){
 body[data-product="phaztrack"] #customerApp .view[data-view="fleet"] .vehicle-panel{
  visibility:hidden!important;opacity:0!important;pointer-events:none!important;
 }
 body[data-product="phaztrack"] #customerApp .view[data-view="fleet"] .vehicle-panel.phaz-sheet-open{
  visibility:visible!important;opacity:1!important;pointer-events:auto!important;
 }
}


/* desktop-only stabilization 20260919 */
@media(min-width:901px){
  body[data-product="phaztrack"] #customerApp>.main>.top{
    grid-template-columns:180px minmax(220px,1fr) max-content!important;
    width:100%!important;max-width:100%!important;overflow:hidden!important;
    padding:9px 12px!important;column-gap:8px!important;
  }
  body[data-product="phaztrack"] #customerApp>.main>.top>.pt3-title{
    min-width:0!important;width:180px!important;overflow:hidden!important;
  }
  body[data-product="phaztrack"] #customerApp>.main>.top>.pt3-title strong{
    overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important;
  }
  body[data-product="phaztrack"] #customerApp>.main>.top>.pt3-search{
    min-width:0!important;width:100%!important;max-width:none!important;
  }
  body[data-product="phaztrack"] #customerApp>.main>.top>.pt3-search input{
    min-width:0!important;width:100%!important;max-width:none!important;
  }
  body[data-product="phaztrack"] #customerApp>.main>.top>.pt3-actions{
    display:flex!important;visibility:visible!important;opacity:1!important;
    min-width:max-content!important;width:max-content!important;max-width:100%!important;
    justify-content:flex-end!important;overflow:visible!important;gap:5px!important;
  }
  body[data-product="phaztrack"] #customerApp>.main>.top>.pt3-actions button,
  body[data-product="phaztrack"] #customerApp>.main>.top>.pt3-actions select{
    display:inline-flex!important;visibility:visible!important;opacity:1!important;
    flex:0 0 auto!important;height:38px!important;
  }
  body[data-product="phaztrack"] #customerApp>.main>.top>.pt3-actions select{
    min-width:58px!important;width:58px!important;
  }
  body[data-product="phaztrack"] #customerApp>.main>.top>.pt3-actions .pt3-signout{
    display:inline-flex!important;min-width:76px!important;
  }
  body[data-product="phaztrack"] #pt3MapDock{
    max-width:calc(100% - 90px)!important;overflow:visible!important;
  }
  body[data-product="phaztrack"] #pt3StatusRow button,
  body[data-product="phaztrack"] #pt3MapDock .pt3-action-row button{
    opacity:1!important;visibility:visible!important;pointer-events:auto!important;
  }
}
@media(min-width:901px) and (max-width:1250px){
  body[data-product="phaztrack"] #customerApp>.main>.top{
    grid-template-columns:150px minmax(180px,1fr) max-content!important;
    column-gap:6px!important;
  }
  body[data-product="phaztrack"] #customerApp>.main>.top>.pt3-title{width:150px!important}
  body[data-product="phaztrack"] #customerApp>.main>.top>.pt3-actions{gap:4px!important}
  body[data-product="phaztrack"] #customerApp>.main>.top>.pt3-actions .pt3-action-label{display:none!important}
  body[data-product="phaztrack"] #customerApp>.main>.top>.pt3-actions button{padding-inline:8px!important}
  body[data-product="phaztrack"] #customerApp>.main>.top>.pt3-actions .pt3-signout{min-width:68px!important;padding-inline:9px!important}
  body[data-product="phaztrack"] #customerApp>.main>.top>.pt3-actions select{min-width:54px!important;width:54px!important}
}


/* desktop sidebar utilities 20260919 */
@media(min-width:901px){
 body[data-product="phaztrack"] #customerApp>.main>.top{
  grid-template-columns:180px minmax(320px,1fr) max-content!important;
 }
 body[data-product="phaztrack"] #customerApp>.main>.top>.pt3-actions{
  min-width:max-content!important;display:flex!important;gap:6px!important;
 }
 body[data-product="phaztrack"] #customerApp>.main>.top>.pt3-actions button{
  display:inline-flex!important;visibility:visible!important;opacity:1!important;pointer-events:auto!important;
 }
 body[data-product="phaztrack"] #pt3DesktopSideActions{
  flex:0 0 auto!important;display:grid!important;gap:8px!important;
  padding:10px 12px!important;border-top:1px solid #173047!important;background:#081a2a!important;
 }
 body[data-product="phaztrack"] #pt3DesktopSideActions label{
  display:grid!important;grid-template-columns:auto 1fr!important;align-items:center!important;gap:8px!important;
  color:#9fb0bf!important;font:800 .68rem/1 system-ui,sans-serif!important;
 }
 body[data-product="phaztrack"] #pt3DesktopSideActions select{
  width:100%!important;height:36px!important;min-width:0!important;
  border:1px solid #294159!important;border-radius:9px!important;background:#10283b!important;color:#fff!important;
  padding:0 8px!important;font:800 .68rem/1 system-ui,sans-serif!important;cursor:pointer!important;
 }
 body[data-product="phaztrack"] #pt3DesktopSideActions .pt3-side-signout{
  width:100%!important;height:38px!important;display:flex!important;align-items:center!important;justify-content:center!important;gap:8px!important;
  border:1px solid #df1f3b!important;border-radius:9px!important;background:#df1f3b!important;color:#fff!important;
  font:850 .72rem/1 system-ui,sans-serif!important;cursor:pointer!important;
 }
 body[data-product="phaztrack"] #pt3DesktopSideActions .pt3-side-signout svg{
  width:16px!important;height:16px!important;fill:none!important;stroke:currentColor!important;stroke-width:1.8!important;
  stroke-linecap:round!important;stroke-linejoin:round!important;
 }
 body[data-product="phaztrack"] #customerApp>.side>.foot{padding-top:8px!important}
}
@media(min-width:901px) and (max-width:1250px){
 body[data-product="phaztrack"] #customerApp>.main>.top{
  grid-template-columns:150px minmax(220px,1fr) max-content!important;
 }
}


/* phone live-map interaction + consolidated controls 20260919 */
@media(max-width:600px){
  body[data-product="phaztrack"] #phazMapEmpty[hidden]{display:none!important}
  body[data-product="phaztrack"] #phazMapEmpty{pointer-events:none!important}
  body[data-product="phaztrack"] #phazLiveMap,
  body[data-product="phaztrack"] #phazLiveMap.leaflet-container{
    pointer-events:auto!important;
    touch-action:none!important;
  }
  body[data-product="phaztrack"] .pt3-shade{pointer-events:none!important}
  body[data-product="phaztrack"].pt3-nav-open .pt3-shade{pointer-events:auto!important}
  body[data-product="phaztrack"] #pt3MapDock .pt3-action-row{
    width:auto!important;max-width:none!important;overflow:visible!important;
  }
  body[data-product="phaztrack"] #pt3PhoneToolsToggle{
    width:auto!important;min-width:108px!important;height:38px!important;padding:0 11px!important;
    display:inline-flex!important;align-items:center!important;justify-content:center!important;gap:7px!important;
    border-radius:10px!important;
  }
  body[data-product="phaztrack"] #pt3PhoneToolsToggle span{display:inline!important;font-size:.64rem!important}
  body[data-product="phaztrack"] #pt3PhoneToolsToggle svg{width:17px!important;height:17px!important}
  body[data-product="phaztrack"] #pt3ToolsMenu{display:none!important}
  body[data-product="phaztrack"] .pt3-phone-tools-menu{
    position:absolute;z-index:2450;top:86px;left:8px;
    width:min(270px,calc(100vw - 16px));padding:8px;box-sizing:border-box;
    display:none;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;
    border:1px solid #d5dfe7;border-radius:13px;background:rgba(255,255,255,.98);
    box-shadow:0 14px 32px rgba(7,24,39,.24);pointer-events:auto;
  }
  body[data-product="phaztrack"] .pt3-phone-tools-menu.open{display:grid}
  body[data-product="phaztrack"] .pt3-phone-tools-menu button{
    min-height:42px;border:1px solid #dbe4ea;border-radius:10px;background:#f7f9fb;color:#26394b;
    font:800 .66rem/1.15 system-ui,sans-serif;padding:8px;cursor:pointer;
  }
  body[data-product="phaztrack"] .pt3-phone-tools-menu button.active{
    background:#172635;color:#fff;border-color:#172635;
  }
}


/* authenticated phone polish 20260919: keep approved map/header, remove residual peek */
@media(max-width:600px){
  body[data-product="phaztrack"] #customerApp:not(.hidden)>#pt3MobileHeader{
    display:grid!important;
    visibility:visible!important;
    opacity:1!important;
  }
  body[data-product="phaztrack"] #customerApp .view[data-view="fleet"] .vehicle-panel:not(.phaz-sheet-open){
    display:none!important;
  }
  body[data-product="phaztrack"] #customerApp .view[data-view="fleet"] .vehicle-panel.phaz-sheet-open{
    display:block!important;
  }
  body[data-product="phaztrack"] .mobilebar button{
    font-size:.60rem!important;
    letter-spacing:-.01em!important;
  }
  body[data-product="phaztrack"] .mobilebar button[data-nav="reports"]{
    font-size:.58rem!important;
  }
}

body[data-product="phaztrack"] .phaz-connection-form{margin-top:12px;padding-top:12px;border-top:1px solid #e3e8ed;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
body[data-product="phaztrack"] .phaz-connection-form label{display:grid;gap:5px;font-size:.68rem;font-weight:780;color:#5b6978}
body[data-product="phaztrack"] .phaz-connection-form label.wide,body[data-product="phaztrack"] .phaz-connection-save{grid-column:1/-1}
body[data-product="phaztrack"] .phaz-connection-form input,body[data-product="phaztrack"] .phaz-connection-form select{width:100%;min-height:38px;border:1px solid #d5dde5;border-radius:8px;background:#fff;color:#263445;padding:7px 9px;font:inherit}
body[data-product="phaztrack"] .phaz-connection-save{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
body[data-product="phaztrack"] .phaz-connection-save button{border:0;border-radius:8px;background:#b51222;color:#fff;padding:9px 12px;font-weight:820;cursor:pointer}
body[data-product="phaztrack"] .phaz-connection-save button:disabled{opacity:.55;cursor:wait}
body[data-product="phaztrack"] .phaz-connection-save small{flex:1;min-width:220px;color:#6b7886;line-height:1.4}
@media(max-width:620px){body[data-product="phaztrack"] .phaz-connection-form{grid-template-columns:1fr}body[data-product="phaztrack"] .phaz-connection-form label.wide,body[data-product="phaztrack"] .phaz-connection-save{grid-column:1}}

/* Desktop-priority navigation + universal return-to-map control */
@media(min-width:901px){
  body[data-product="phaztrack"] #customerApp>.side nav>button.pt3-primary-desktop{
    font-weight:900!important;
  }
  body[data-product="phaztrack"] #customerApp>.side nav>button.pt3-primary-desktop:first-child{
    margin-top:2px!important;
  }
  body[data-product="phaztrack"] #customerApp>.side nav>button.pt3-primary-desktop:nth-child(5){
    margin-bottom:8px!important;
  }
}
body[data-product="phaztrack"] .pt3-view-return{
  display:flex;align-items:center;justify-content:space-between;gap:14px;
  margin:0 0 12px;padding:10px 12px;border:1px solid #dce5ee;border-radius:13px;
  background:#fff;color:#21364c;box-shadow:0 7px 22px rgba(16,40,58,.05);
}
body[data-product="phaztrack"] .pt3-view-return>div{min-width:0}
body[data-product="phaztrack"] .pt3-view-return span{
  display:block;color:#7a8b9d;font-size:.56rem;font-weight:850;text-transform:uppercase;letter-spacing:.06em
}
body[data-product="phaztrack"] .pt3-view-return strong{
  display:block;margin-top:2px;color:#172c42;font-size:.82rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis
}
body[data-product="phaztrack"] .pt3-view-return button{
  min-height:38px;padding:0 13px;border:1px solid #cbd7e3;border-radius:10px;background:#f8fafc;color:#263f58;
  font-size:.65rem;font-weight:900;white-space:nowrap;cursor:pointer;touch-action:manipulation
}
body[data-product="phaztrack"] .pt3-view-return button:hover{
  background:#eef4fa;border-color:#b9c9d9
}
@media(max-width:600px){
  body[data-product="phaztrack"] .pt3-view-return{
    margin:0 0 8px;padding:8px 9px;border-radius:11px
  }
  body[data-product="phaztrack"] .pt3-view-return span{display:none}
  body[data-product="phaztrack"] .pt3-view-return strong{font-size:.68rem}
  body[data-product="phaztrack"] .pt3-view-return button{
    min-height:36px;padding:0 10px;font-size:.58rem
  }
}

/* 2026-09-22 desktop shell cleanup: one stable menu owner, no map chrome behind module pages */
@media(min-width:901px){
  body[data-product="phaztrack"] #customerApp>.side>nav [data-nav="overview"]{order:1!important}
  body[data-product="phaztrack"] #customerApp>.side>nav [data-nav="fleet"]{order:2!important}
  body[data-product="phaztrack"] #customerApp>.side>nav [data-nav="hardware"]{order:3!important}
  body[data-product="phaztrack"] #customerApp>.side>nav [data-nav="history"]{order:4!important}
  body[data-product="phaztrack"] #customerApp>.side>nav [data-nav="alerts"]{order:5!important}
  body[data-product="phaztrack"] #customerApp>.side>nav [data-nav="geofences"]{order:6!important}
  body[data-product="phaztrack"] #customerApp>.side>nav [data-nav="vehicle-connections"]{order:7!important}
  body[data-product="phaztrack"] #customerApp>.side>nav [data-nav="drivers"]{order:8!important}
  body[data-product="phaztrack"] #customerApp>.side>nav [data-nav="maintenance"]{order:9!important}
  body[data-product="phaztrack"] #customerApp>.side>nav [data-nav="reports"]{order:10!important}
  body[data-product="phaztrack"] #customerApp>.side>nav [data-nav="security"]{order:11!important}
  body[data-product="phaztrack"] #customerApp>.side>nav [data-nav="setup"]{order:12!important}
  body[data-product="phaztrack"] #customerApp>.side>nav [data-nav="roadtest"]{order:13!important}
  body[data-product="phaztrack"] #customerApp>.side>nav #phazUserAdminNav{order:14!important}
  body[data-product="phaztrack"] #customerApp>.side>nav #productSidebarSecurity{order:15!important}
}
body[data-product="phaztrack"].pt3-module-open #pt3MapDock,
body[data-product="phaztrack"].pt3-module-open #pt3ToolsMenu,
body[data-product="phaztrack"].pt3-module-open #pt3PhoneToolsMenu,
body[data-product="phaztrack"].pt3-module-open .leaflet-control-container{
  visibility:hidden!important;opacity:0!important;pointer-events:none!important
}
body[data-product="phaztrack"].pt3-module-open .phaz-product-module-sheet,
body[data-product="phaztrack"].pt3-module-open .pt-zone-sheet,
body[data-product="phaztrack"].pt3-module-open .phaz-user-admin-overlay,
body[data-product="phaztrack"].pt3-module-open .pt-driver-sheet{
  background:rgba(6,18,29,.88)!important;
  backdrop-filter:blur(8px)!important
}
@media(min-width:901px){
  body[data-product="phaztrack"] .phaz-module-card,
  body[data-product="phaztrack"] .pt-zone-card,
  body[data-product="phaztrack"] .phaz-user-admin-card,
  body[data-product="phaztrack"] .pt-driver-card,
  body[data-product="phaztrack"] .product-recovery-card{
    box-shadow:0 26px 80px rgba(3,10,18,.45)!important
  }
}



/* 2026-09-22 menu + module standard v2
   One desktop order, compact navigation, visible page state, and one page frame for all modules. */
body[data-product="phaztrack"] .pt3-module-return{
  flex:0 0 auto;display:flex;align-items:center;justify-content:space-between;gap:14px;
  margin:0 0 14px;padding:10px 12px;border:1px solid #dce5ee;border-radius:12px;
  background:#fff;color:#21364c;box-shadow:0 6px 18px rgba(16,40,58,.05)
}
body[data-product="phaztrack"] .pt3-module-return>div{min-width:0}
body[data-product="phaztrack"] .pt3-module-return span{
  display:block;color:#7a8b9d;font-size:.56rem;font-weight:850;text-transform:uppercase;letter-spacing:.06em
}
body[data-product="phaztrack"] .pt3-module-return strong{
  display:block;margin-top:2px;color:#172c42;font-size:.84rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis
}
body[data-product="phaztrack"] .pt3-module-return button{
  min-height:38px;padding:0 13px;border:1px solid #cbd7e3;border-radius:10px;background:#f8fafc;color:#263f58;
  font-size:.65rem;font-weight:900;white-space:nowrap;cursor:pointer;touch-action:manipulation
}
body[data-product="phaztrack"] .pt3-module-return button:hover{background:#eef4fa;border-color:#b9c9d9}
body[data-product="phaztrack"] .pt3-module-loading{padding:10px 2px 4px}
body[data-product="phaztrack"] .pt3-module-loading h2{margin:6px 0 8px;color:#172c42}
body[data-product="phaztrack"] .pt3-module-loading p{margin:0 0 12px;color:#607083}

@media(min-width:901px){
  body[data-product="phaztrack"] #customerApp>.side>.brand{
    margin:10px 10px 8px!important;padding:9px 10px!important
  }
  body[data-product="phaztrack"] #customerApp>.side>.brand img{width:38px!important;height:38px!important}
  body[data-product="phaztrack"] #customerApp>.side>nav{
    padding:4px 9px 8px!important;scroll-behavior:auto!important
  }
  body[data-product="phaztrack"] #customerApp>.side>nav button{
    min-height:39px!important;margin:0 0 2px!important;padding:7px 10px!important;
    border-radius:9px!important;font-size:.72rem!important
  }
  body[data-product="phaztrack"] #customerApp>.side>nav [data-nav="fleet"]{order:1!important}
  body[data-product="phaztrack"] #customerApp>.side>nav [data-nav="overview"]{order:2!important}
  body[data-product="phaztrack"] #customerApp>.side>nav [data-nav="hardware"]{order:3!important}
  body[data-product="phaztrack"] #customerApp>.side>nav [data-nav="vehicle-connections"]{order:4!important}
  body[data-product="phaztrack"] #customerApp>.side>nav [data-nav="history"]{order:5!important}
  body[data-product="phaztrack"] #customerApp>.side>nav [data-nav="alerts"]{order:6!important}
  body[data-product="phaztrack"] #customerApp>.side>nav [data-nav="geofences"]{order:7!important}
  body[data-product="phaztrack"] #customerApp>.side>nav [data-nav="drivers"]{order:8!important}
  body[data-product="phaztrack"] #customerApp>.side>nav [data-nav="maintenance"]{order:9!important}
  body[data-product="phaztrack"] #customerApp>.side>nav [data-nav="reports"]{order:10!important}
  body[data-product="phaztrack"] #customerApp>.side>nav [data-nav="security"]{order:11!important}
  body[data-product="phaztrack"] #customerApp>.side>nav [data-nav="roadtest"]{order:12!important}
  body[data-product="phaztrack"] #customerApp>.side>nav [data-nav="setup"]{order:13!important}
  body[data-product="phaztrack"] #customerApp>.side>nav #phazUserAdminNav{order:14!important}
  body[data-product="phaztrack"] #customerApp>.side>nav #productSidebarSecurity{order:15!important}
  body[data-product="phaztrack"] #customerApp>.side>nav>button:nth-of-type(5),
  body[data-product="phaztrack"] #customerApp>.side>nav>button:nth-of-type(10){margin-bottom:7px!important}
  body[data-product="phaztrack"] #pt3DesktopSideActions{padding:8px 10px!important;gap:6px!important}
  body[data-product="phaztrack"] #pt3DesktopSideActions select,
  body[data-product="phaztrack"] #pt3DesktopSideActions .pt3-side-signout{height:34px!important}
  body[data-product="phaztrack"] #customerApp>.side>.foot{padding:8px 10px!important;font-size:.61rem!important}

  body[data-product="phaztrack"] .phaz-product-module-sheet,
  body[data-product="phaztrack"] .pt-zone-sheet,
  body[data-product="phaztrack"] .phaz-user-admin-overlay,
  body[data-product="phaztrack"] .pt-driver-sheet,
  body[data-product="phaztrack"] .product-recovery-overlay{
    inset:var(--pt-head) 0 0 248px!important;
    width:auto!important;height:auto!important;
    padding:14px 16px!important;box-sizing:border-box!important;
    display:grid!important;place-items:stretch!important;align-items:stretch!important;
    background:var(--pt-soft)!important;backdrop-filter:none!important
  }
  body[data-product="phaztrack"] .phaz-module-card,
  body[data-product="phaztrack"] .pt-zone-card,
  body[data-product="phaztrack"] .phaz-user-admin-card,
  body[data-product="phaztrack"] .pt-driver-card{
    width:100%!important;max-width:none!important;height:100%!important;max-height:none!important;
    min-height:0!important;box-sizing:border-box!important;border-radius:14px!important;
    overflow:auto!important;padding:16px!important;background:#fff!important;
    border:1px solid #dce5ee!important;box-shadow:0 8px 26px rgba(16,40,58,.07)!important
  }
  body[data-product="phaztrack"] .phaz-module-card .pt3-module-return,
  body[data-product="phaztrack"] .pt-zone-card .pt3-module-return,
  body[data-product="phaztrack"] .phaz-user-admin-card .pt3-module-return,
  body[data-product="phaztrack"] .pt-driver-card .pt3-module-return,
  body[data-product="phaztrack"] .product-recovery-card .pt3-module-return{
    position:sticky;top:0;z-index:6;margin:-4px -4px 14px;background:rgba(255,255,255,.98)
  }
  body[data-product="phaztrack"].pt3-module-open #customerApp>.side{z-index:9100!important}
  body[data-product="phaztrack"].pt3-module-open #customerApp>.main>.top{z-index:9000!important}
  body[data-product="phaztrack"].pt3-module-open #customerApp>.side nav button.active{
    background:linear-gradient(135deg,#ef2b47,#c81732)!important;color:#fff!important
  }
}
@media(max-width:900px){
  body[data-product="phaztrack"] .pt3-module-return{
    margin:0 0 10px;padding:8px 9px;border-radius:10px
  }
  body[data-product="phaztrack"] .pt3-module-return span{display:none}
  body[data-product="phaztrack"] .pt3-module-return strong{font-size:.7rem}
  body[data-product="phaztrack"] .pt3-module-return button{min-height:36px;padding:0 10px;font-size:.58rem}
}

body[data-product="phaztrack"].pt3-module-open .product-recovery-overlay{
  background:var(--pt-soft)!important;backdrop-filter:none!important
}
@media(min-width:901px){
  body[data-product="phaztrack"] .product-recovery-card>h2{
    margin-top:4px!important;color:#172c42!important;font-size:1.2rem!important
  }
  body[data-product="phaztrack"] .product-recovery-card .product-recovery-exit{
    display:none!important
  }
}


/* 2026-09-22 desktop stable v4 — authoritative menu order and permanent fleet pages */
@media(min-width:901px){
  body[data-product="phaztrack"] #customerApp.app>.side>nav{
    display:flex!important;flex-direction:column!important;
  }
  body[data-product="phaztrack"] #customerApp.app>.side>nav > [data-nav="fleet"]{order:1!important}
  body[data-product="phaztrack"] #customerApp.app>.side>nav > [data-nav="overview"]{order:2!important}
  body[data-product="phaztrack"] #customerApp.app>.side>nav > [data-nav="hardware"]{order:3!important}
  body[data-product="phaztrack"] #customerApp.app>.side>nav > [data-nav="vehicle-connections"]{order:4!important}
  body[data-product="phaztrack"] #customerApp.app>.side>nav > [data-nav="history"]{order:5!important}
  body[data-product="phaztrack"] #customerApp.app>.side>nav > [data-nav="alerts"]{order:6!important}
  body[data-product="phaztrack"] #customerApp.app>.side>nav > [data-nav="geofences"]{order:7!important}
  body[data-product="phaztrack"] #customerApp.app>.side>nav > [data-nav="drivers"]{order:8!important}
  body[data-product="phaztrack"] #customerApp.app>.side>nav > [data-nav="maintenance"]{order:9!important}
  body[data-product="phaztrack"] #customerApp.app>.side>nav > [data-nav="reports"]{order:10!important}
  body[data-product="phaztrack"] #customerApp.app>.side>nav > [data-nav="security"]{order:11!important}
  body[data-product="phaztrack"] #customerApp.app>.side>nav > [data-nav="roadtest"]{order:12!important}
  body[data-product="phaztrack"] #customerApp.app>.side>nav > [data-nav="setup"]{order:13!important}
  body[data-product="phaztrack"] #customerApp.app>.side>nav > #phazUserAdminNav{order:14!important}
  body[data-product="phaztrack"] #customerApp.app>.side>nav > #productSidebarSecurity{order:15!important}

  body[data-product="phaztrack"] #customerApp>.main>.view[data-view="maintenance"],
  body[data-product="phaztrack"] #customerApp>.main>.view[data-view="security"]{
    padding:14px!important;overflow:auto!important;background:var(--pt-soft)!important
  }
  body[data-product="phaztrack"] #customerApp>.main>.view[data-view="maintenance"]>.card,
  body[data-product="phaztrack"] #customerApp>.main>.view[data-view="security"]>.card{
    width:100%!important;min-height:calc(100% - 2px)!important;box-sizing:border-box!important;
    border:1px solid #dce5ee!important;border-radius:14px!important;background:#fff!important;
    box-shadow:0 8px 26px rgba(16,40,58,.07)!important;padding:16px!important
  }
}


/* 2026-09-30 live marker identity hardening.
   UI v3 is the final presentation owner and must win over any cached/legacy map-pro rules. */
body[data-product="phaztrack"] #phazLiveMap .phaz-map-marker{
  width:40px!important;height:46px!important;border:0!important;border-radius:0!important;
  background:transparent!important;box-shadow:none!important;display:block!important;place-items:initial!important;
  overflow:visible!important;transform:none!important;
}
body[data-product="phaztrack"] #phazLiveMap .phaz-map-marker .phaz-marker-pin{
  display:flex!important;position:absolute!important;left:3px!important;top:1px!important;width:34px!important;height:34px!important;
  align-items:center!important;justify-content:center!important;border:2px solid #fff!important;border-radius:50%!important;
  background:#10283d!important;box-shadow:0 0 0 1px rgba(10,31,48,.18)!important;
}
body[data-product="phaztrack"] #phazLiveMap .phaz-map-marker .phaz-marker-pin::after{
  display:block!important;content:""!important;position:absolute!important;left:50%!important;bottom:-6px!important;
  width:10px!important;height:10px!important;background:#10283d!important;border-right:2px solid #fff!important;
  border-bottom:2px solid #fff!important;border-radius:1px 0 3px 0!important;transform:translateX(-50%) rotate(45deg)!important;
}
body[data-product="phaztrack"] #phazLiveMap .phaz-map-marker .phaz-marker-pin svg{
  display:block!important;width:18px!important;height:18px!important;position:relative!important;z-index:2!important;
  fill:none!important;stroke:#fff!important;stroke-width:1.7!important;stroke-linecap:round!important;stroke-linejoin:round!important;
  transform:rotate(var(--heading,0deg))!important;transform-origin:50% 50%!important;
}
body[data-product="phaztrack"] #phazLiveMap .phaz-map-marker .phaz-marker-status{
  display:block!important;position:absolute!important;z-index:4!important;right:1px!important;bottom:7px!important;
  width:9px!important;height:9px!important;border-radius:50%!important;background:var(--marker,#778594)!important;
  border:2px solid #fff!important;box-sizing:border-box!important;
}
body[data-product="phaztrack"] #phazLiveMap .phaz-map-marker .phaz-marker-alert{display:flex!important}
body[data-product="phaztrack"] #phazLiveMap .phaz-map-marker.is-selected{
  transform:translateY(-1px) scale(1.07)!important;
}
body[data-product="phaztrack"] #phazLiveMap .leaflet-tooltip.phaz-vehicle-label{
  white-space:nowrap!important;font-size:11px!important;font-weight:800!important;
}


/* two-field My Devices editor */
body[data-product="phaztrack"] .phaz-device-row-actions{display:flex;align-items:center;gap:8px;margin-left:auto}
body[data-product="phaztrack"] .phaz-device-edit{
  min-height:32px;padding:0 12px;border:1px solid #334d63;border-radius:9px;background:#10283b;color:#fff;
  font:800 .72rem/1 system-ui,sans-serif;cursor:pointer
}
body[data-product="phaztrack"] .phaz-device-edit:hover{background:#18364d}
body[data-product="phaztrack"] .phaz-customer-vehicle-editor{width:min(620px,100%)}
body[data-product="phaztrack"] .phaz-customer-vehicle-editor .setup-fields{grid-template-columns:1fr 1fr}
body[data-product="phaztrack"] .phaz-customer-editor-actions{display:flex;gap:8px;margin-top:14px}
body[data-product="phaztrack"] .phaz-customer-editor-actions [data-cancel]{background:#eef2f5!important;color:#344657!important}
@media(max-width:600px){
 body[data-product="phaztrack"] .phaz-customer-vehicle-editor .setup-fields{grid-template-columns:1fr}
 body[data-product="phaztrack"] .phaz-device-row-actions{flex-direction:column;align-items:flex-end}
}


/* 2026-10-01 alert notification settings */
.phaz-notify-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}
.phaz-notify-grid>div{border:1px solid #dbe4ea;border-radius:12px;padding:12px;background:#f8fafc}
.phaz-notify-grid h3{margin:0 0 10px;font-size:.9rem;color:#203244}
.phaz-notify-row{display:grid;grid-template-columns:120px minmax(0,1fr);gap:8px;align-items:center;margin:8px 0}
.phaz-notify-row input[type="text"],.phaz-notify-field select{width:100%;min-height:38px;border:1px solid #cfd9e2;border-radius:8px;background:#fff;padding:0 10px;color:#203244}
.phaz-notify-toggle,.phaz-notify-all,.phaz-notify-types label,.phaz-notify-vehicles label{display:flex;align-items:center;gap:7px;font-size:.8rem;color:#33495c}
.phaz-notify-types,.phaz-notify-vehicles{display:grid;grid-template-columns:1fr 1fr;gap:7px;margin-top:10px}
.phaz-notify-field{display:grid;gap:6px;margin-top:12px;font-size:.8rem;font-weight:700;color:#33495c}
.phaz-notify-actions{display:flex;gap:10px;align-items:center;flex-wrap:wrap;margin-top:12px}
.phaz-notify-actions .notice{margin:0;flex:1 1 300px}
@media(max-width:1100px){.phaz-notify-grid{grid-template-columns:1fr}.phaz-notify-row{grid-template-columns:140px 1fr}}
@media(max-width:600px){.phaz-notify-row{grid-template-columns:1fr}.phaz-notify-types,.phaz-notify-vehicles{grid-template-columns:1fr}.phaz-notify-actions{align-items:stretch}.phaz-notify-actions button{width:100%}}


/* 2026-10-01 master alert control */
.phaz-notify-master{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:14px;padding:12px 14px;border:1px solid #dbe4ea;border-radius:12px;background:#fff}
.phaz-notify-master label{display:flex;align-items:center;gap:10px;cursor:pointer}
.phaz-notify-master label>span{display:grid;gap:2px}
.phaz-notify-master small{font-size:.74rem;color:#66788a;font-weight:500}
.phaz-notify-master input{width:18px;height:18px}
.phaz-notify-grid.is-paused{opacity:.55}
.phaz-notify-grid.is-paused input,.phaz-notify-grid.is-paused select{cursor:not-allowed}
