/* GX Tracking Ecosystem v0.10.41 — expand history position list to sheet bottom.
 * v0.10.40 can miss the transient gx-history-roomy class; in that case
 * the old 38dvh cap leaves a dead strip under the list. This rule uses the
 * stable sheet state for full-size mobile history and leaves mid sheets alone.
 * No change to map, playback or scroll-follow JavaScript. */
@media (max-width: 850px) {
  html body.tracking-dashboard .device-inspector.gx-mobile-sheet.mobile-history-mode.gx-sheet-full .device-inspector-content {
    display:flex!important;
    flex-direction:column!important;
    flex:1 1 auto!important;
    min-height:0!important;
    height:auto!important;
    overflow:hidden!important;
  }
  html body.tracking-dashboard .device-inspector.gx-mobile-sheet.mobile-history-mode.gx-sheet-full .inspector-panels {
    display:flex!important;
    flex-direction:column!important;
    flex:1 1 auto!important;
    min-height:0!important;
    max-height:none!important;
    padding:0!important;
    overflow:hidden!important;
  }
  html body.tracking-dashboard .device-inspector.gx-mobile-sheet.mobile-history-mode.gx-sheet-full #historyPanel:not(.hidden) {
    display:flex!important;
    flex-direction:column!important;
    flex:1 1 auto!important;
    height:auto!important;
    min-height:0!important;
    max-height:none!important;
    padding-bottom:8px!important;
    overflow:hidden!important;
  }
  html body.tracking-dashboard .device-inspector.gx-mobile-sheet.mobile-history-mode.gx-sheet-full #historyPanel .history-mobile-controls,
  html body.tracking-dashboard .device-inspector.gx-mobile-sheet.mobile-history-mode.gx-sheet-full #historyPanel .history-list-head {
    flex:0 0 auto!important;
  }
  html body.tracking-dashboard .device-inspector.gx-mobile-sheet.mobile-history-mode.gx-sheet-full #historyPanel .history-list-section {
    display:flex!important;
    flex-direction:column!important;
    flex:1 1 auto!important;
    min-height:0!important;
    margin-top:4px!important;
    padding-bottom:0!important;
    overflow:hidden!important;
  }
  html body.tracking-dashboard .device-inspector.gx-mobile-sheet.mobile-history-mode.gx-sheet-full #historyPanel #historyPositionList {
    display:flex!important;
    flex-direction:column!important;
    flex:1 1 auto!important;
    height:0!important;
    min-height:0!important;
    max-height:none!important;
    overflow-x:hidden!important;
    overflow-y:auto!important;
    overscroll-behavior-y:contain!important;
    -webkit-overflow-scrolling:touch!important;
    touch-action:pan-y!important;
    scroll-behavior:auto!important;
    overflow-anchor:none!important;
    padding-bottom:8px!important;
  }
  html body.tracking-dashboard .device-inspector.gx-mobile-sheet.mobile-history-mode.gx-sheet-full #historyPanel #historyPositionList .gx-history-card-v01037 {
    flex:0 0 auto!important;
  }
}
