/* GX Tracking v0.10.73: history popup width regression, mobile presentation only.
   v0.10.71 set .leaflet-popup-content to min-width:0 and width:auto !important.
   Leaflet's shrink-to-fit wrapper can then collapse a numeric/telemetry popup to
   the min-content width (one character per line) near map margins. Restore a
   definite content width only for the selected history popup, not other popups.
   Keep v0.10.71 map-edge horizontal correction and Leaflet's tip anchored. */
@media (max-width:850px) {
  html body.gx64-mobile #map .gx-context-popup.gx-history-context-popup .leaflet-popup-content-wrapper {
    box-sizing:border-box!important;
    width:min(248px,calc(100vw - 48px))!important;
    min-width:min(218px,calc(100vw - 48px))!important;
    max-width:calc(100vw - 48px)!important;
    /* The previous horizontal map-edge correction remains in control of transform. */
  }
  html body.gx64-mobile #map .gx-context-popup.gx-history-context-popup .leaflet-popup-content {
    box-sizing:border-box!important;
    width:100%!important;
    min-width:0!important;
    max-width:100%!important;
    margin:0!important;
  }
  html body.gx64-mobile #map .gx-context-popup.gx-history-context-popup .gx-history-map-popup {
    display:grid!important;
    grid-template-columns:minmax(0,1fr)!important;
    width:100%!important;
    min-width:0!important;
    max-width:100%!important;
    box-sizing:border-box!important;
    padding:10px 12px!important;
    overflow-wrap:normal!important;
    word-break:normal!important;
  }
  html body.gx64-mobile #map .gx-context-popup.gx-history-context-popup .gx-history-map-popup > strong {
    display:block!important;
    min-width:0!important;
    white-space:nowrap!important;
    overflow:hidden!important;
    text-overflow:ellipsis!important;
    word-break:normal!important;
  }
  html body.gx64-mobile #map .gx-context-popup.gx-history-context-popup .gx-map-popup-time,
  html body.gx64-mobile #map .gx-context-popup.gx-history-context-popup .gx-map-popup-coords {
    display:block!important;
    min-width:0!important;
    white-space:normal!important;
    word-break:normal!important;
    overflow-wrap:break-word!important;
  }
  html body.gx64-mobile #map .gx-context-popup.gx-history-context-popup .gx-map-popup-grid {
    display:grid!important;
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    min-width:0!important;
  }
  html body.gx64-mobile #map .gx-context-popup.gx-history-context-popup .gx-map-popup-grid span {
    min-width:0!important;
    overflow-wrap:break-word!important;
    word-break:normal!important;
  }
  html body.gx64-mobile #map .gx-context-popup.gx-history-context-popup .gx71-popup-device-label {
    min-width:0!important;
    overflow-wrap:break-word!important;
    word-break:normal!important;
    white-space:normal!important;
  }
}
