/* GX Tracking v0.10.43 -- one scrollport for actual history list, regardless
   of legacy mobile-history-mode/full/mid classes.  Activated only when the
   history panel is visible and there is meaningful vertical room in the sheet. */
@media (max-width:850px){
  html body.tracking-dashboard #deviceInspector.gx-history-listfill-v01043{
    display:flex!important;flex-direction:column!important;
    overflow:hidden!important;box-sizing:border-box!important;
  }
  html body.tracking-dashboard #deviceInspector.gx-history-listfill-v01043 > .device-inspector-head,
  html body.tracking-dashboard #deviceInspector.gx-history-listfill-v01043 > .gx-sheet-handle{
    flex-shrink:0!important;
  }
  html body.tracking-dashboard #deviceInspector.gx-history-listfill-v01043 .device-inspector-content,
  html body.tracking-dashboard #deviceInspector.gx-history-listfill-v01043 .inspector-panels,
  html body.tracking-dashboard #deviceInspector.gx-history-listfill-v01043 #historyPanel:not(.hidden){
    display:flex!important;flex-direction:column!important;
    flex:1 1 auto!important;height:auto!important;max-height:none!important;
    min-height:0!important;overflow:hidden!important;box-sizing:border-box!important;
  }
  html body.tracking-dashboard #deviceInspector.gx-history-listfill-v01043 .inspector-panels{
    padding:0!important;min-width:0!important;
  }
  html body.tracking-dashboard #deviceInspector.gx-history-listfill-v01043 #historyPanel:not(.hidden){
    padding-bottom:max(6px,env(safe-area-inset-bottom,0px))!important;
  }
  html body.tracking-dashboard #deviceInspector.gx-history-listfill-v01043 #historyPanel .history-mobile-controls,
  html body.tracking-dashboard #deviceInspector.gx-history-listfill-v01043 #historyPanel .history-list-head{
    flex:0 0 auto!important;
  }
  html body.tracking-dashboard #deviceInspector.gx-history-listfill-v01043 #historyPanel .history-list-section{
    display:flex!important;flex-direction:column!important;
    flex:1 1 0%!important;height:auto!important;max-height:none!important;
    min-height:0!important;overflow:hidden!important;
    margin-top:4px!important;padding-bottom:0!important;
  }
  html body.tracking-dashboard #deviceInspector.gx-history-listfill-v01043 #historyPanel #historyPositionList{
    display:flex!important;flex-direction:column!important;
    flex:1 1 0%!important;height:0!important;max-height:none!important;
    min-height:0!important;overflow-y:auto!important;overflow-x:hidden!important;
    scroll-behavior:auto!important;overscroll-behavior-y:contain!important;
    touch-action:pan-y!important;-webkit-overflow-scrolling:touch!important;
    padding-bottom:6px!important;scroll-padding-top:6px!important;
    overflow-anchor:none!important;
  }
  html body.tracking-dashboard #deviceInspector.gx-history-listfill-v01043 #historyPanel #historyPositionList > .gx-history-card-v01037{
    flex:0 0 auto!important;
  }
}
