/* GX Tracking v0.10.72: compact selected-device header, mobile presentation only.
   The native gx64 Back and Expand handlers are preserved unchanged. */
@media (max-width:850px) {
  html body.tracking-dashboard.gx64-mobile.gx72-compact #sidebar.gx64-sheet #gx64Handle {
    flex:0 0 22px!important;height:22px!important;min-height:22px!important;
  }
  html body.tracking-dashboard.gx64-mobile.gx72-compact #sidebar.gx64-sheet #gx64SheetHead {
    display:grid!important;
    grid-template-columns:40px minmax(0,1fr) 40px!important;
    gap:8px!important;align-items:center!important;
    width:100%!important;box-sizing:border-box!important;
    padding:0 15px 2px!important;
    height:46px!important;min-height:46px!important;flex:0 0 46px!important;
  }
  html body.tracking-dashboard.gx64-mobile.gx72-compact #sidebar.gx64-sheet #gx64SheetHead #gx64Back,
  html body.tracking-dashboard.gx64-mobile.gx72-compact #sidebar.gx64-sheet #gx64SheetHead #gx64Expand {
    display:grid!important;place-items:center!important;
    position:static!important;
    width:36px!important;height:36px!important;min-width:36px!important;
    margin:0!important;padding:7px!important;
    color:var(--text,#eef5ff)!important;
    background:var(--panel-soft,#1b2b3e)!important;
    border:1px solid var(--line,#32455c)!important;
    border-radius:10px!important;
    box-shadow:none!important;
  }
  html body.tracking-dashboard.gx64-mobile.gx72-compact #sidebar.gx64-sheet #gx64SheetHead #gx64Back {grid-column:1!important;justify-self:start!important}
  html body.tracking-dashboard.gx64-mobile.gx72-compact.gx64-selected:not([data-gx64-view="fleet"]) #gx64SheetHead #gx64Back {visibility:visible!important}
  html body.tracking-dashboard.gx64-mobile.gx72-compact #sidebar.gx64-sheet #gx64SheetHead #gx64Expand {grid-column:3!important;justify-self:end!important}
  html body.tracking-dashboard.gx64-mobile.gx72-compact #sidebar.gx64-sheet #gx64SheetHead #gx64Title {
    grid-column:2!important;grid-row:1!important;
    width:100%!important;min-width:0!important;max-width:100%!important;
    display:block!important;align-self:center!important;
    font-size:clamp(13px,4vw,17px)!important;line-height:1.25!important;
    text-align:center!important;font-weight:700!important;
    overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important;
    color:var(--text,#eef5ff)!important;
  }
  /* The original inspector header is the duplicated device row with the blue
     dot and transport label (JTAG/Entrack). Hide only that visual row. Keep its
     DOM nodes available to the original API and history-popup controllers. */
  html body.tracking-dashboard.gx64-mobile.gx72-compact.gx64-selected #sidebar.gx64-sheet #deviceInspector > .device-inspector-head {
    display:none!important;height:0!important;min-height:0!important;
    margin:0!important;padding:0!important;border:0!important;
  }
  html body.tracking-dashboard.gx64-mobile.gx72-compact #sidebar.gx64-sheet #gx64Actions {
    margin:2px 12px 7px!important;
  }
  /* Do not let the hidden legacy header consume scroll space. */
  html body.tracking-dashboard.gx64-mobile.gx72-compact.gx64-selected #sidebar.gx64-sheet #deviceInspector {
    min-height:0!important;
  }
  @media(max-width:350px){
    html body.tracking-dashboard.gx64-mobile.gx72-compact #sidebar.gx64-sheet #gx64SheetHead {
      grid-template-columns:36px minmax(0,1fr) 36px!important;
      gap:4px!important;padding-inline:10px!important;
    }
  }
}
