/* GX Tracking v0.10.83: mobile map-first layout. Desktop unchanged.
   The header is removed, and its ORIGINAL hamburger button is reparented
   into the Leaflet top-left control stack, just beneath the zoom +/-.
 */
@media (max-width:850px) {
  html body.tracking-dashboard.gx64-mobile.gx83-map-only {
    --gx64-top:0px!important;
  }
  html body.tracking-dashboard.gx64-mobile.gx83-map-only #gx64Topbar {
    display:none!important;
  }
  html body.tracking-dashboard.gx64-mobile.gx83-map-only #appShell .main-area {
    inset:0 0 0 0!important;
    top:0!important;
    height:100dvh!important;
  }
  html body.tracking-dashboard.gx64-mobile.gx83-map-only #appShell .map-workspace,
  html body.tracking-dashboard.gx64-mobile.gx83-map-only #map {
    inset:0!important;
    height:100%!important;
  }
  html body.tracking-dashboard.gx64-mobile.gx83-map-only #map .leaflet-top.leaflet-left {
    top:env(safe-area-inset-top,0px);
  }
  html body.tracking-dashboard.gx64-mobile.gx83-map-only #map #gx83MapMenuControl {
    box-sizing:border-box!important;
    clear:both!important;
    float:left!important;
    display:block!important;
    margin:9px 0 0 10px!important;
    padding:0!important;
    border:0!important;
    background:transparent!important;
    box-shadow:none!important;
    pointer-events:auto!important;
  }
  html body.tracking-dashboard.gx64-mobile.gx83-map-only #map #gx83MapMenuControl #gx64Menu {
    box-sizing:border-box!important;
    width:44px!important;
    height:44px!important;
    min-width:44px!important;
    min-height:44px!important;
    padding:0!important;
    display:grid!important;
    place-items:center!important;
    border:1px solid #d6dfe7!important;
    border-radius:11px!important;
    background:#fff!important;
    color:#1d354e!important;
    box-shadow:0 2px 8px #172c3b30!important;
    cursor:pointer!important;
    touch-action:manipulation!important;
    -webkit-tap-highlight-color:transparent;
  }
  html body.tracking-dashboard.gx64-mobile.gx83-map-only #map #gx83MapMenuControl #gx64Menu svg {
    width:22px!important;
    height:22px!important;
    stroke-width:2!important;
  }
  html body.tracking-dashboard.gx64-mobile.gx83-map-only #map #gx83MapMenuControl #gx64Menu:active {
    background:#eaf3fd!important;
  }
  html body.tracking-dashboard.gx64-mobile.gx83-map-only #map #gx83MapMenuControl #gx64Menu:focus-visible {
    outline:2px solid #1885ef!important;
    outline-offset:2px!important;
  }
}
@media (min-width:851px) {
  #gx83MapMenuControl {display:none!important;}
}
