.shift-history-filters form{display:grid;grid-template-columns:1.3fr 1fr 1fr 1.3fr auto;gap:14px;align-items:end;padding:20px}.shift-history-filters .form-field{margin:0;min-width:0}.shift-history-segment{border-top:1px solid var(--line);padding:20px}.shift-history-segment header{display:flex;gap:14px;justify-content:space-between;align-items:flex-start}.shift-history-segment header small{display:block;color:var(--muted);margin:6px 0 14px}.shift-history-segment header>span{color:var(--muted);font-size:12px}.shift-history-events{margin:6px 0 12px}.shift-history-event{display:grid;grid-template-columns:26px 200px 1fr auto;align-items:center;gap:10px;min-height:40px;border-bottom:1px solid var(--line);padding:7px 0}.shift-event-pin{color:var(--blue);display:grid;place-items:center}.shift-event-pin svg{width:18px;height:18px}.shift-event-pin.missing{color:var(--red)}.shift-history-alert{background:var(--red-light,rgba(194,71,71,.12));border-left:3px solid var(--red,#da8383);padding:10px 14px;display:flex;gap:12px;flex-wrap:wrap;font-size:12px}.shift-history-alert span,.shift-history-note{color:var(--muted)}.shift-history-pages{display:flex;justify-content:space-between;align-items:center;padding:20px}.shift-wrapup{margin:12px 0}.shift-wrapup summary{color:var(--blue);cursor:pointer}.shift-wrapup dd{margin-bottom:10px}.gps-history-map{height:420px;min-height:280px;isolation:isolate;border:1px solid var(--line);border-radius:6px}.gps-playback-controls{background:var(--panel,var(--white));border:1px solid var(--line);padding:14px;margin-bottom:12px;border-radius:6px}.gps-playback-controls>div{display:grid;grid-template-columns:auto 1fr auto;gap:10px}.gps-playback-controls input[type=range]{width:100%;padding:0;accent-color:var(--blue)}.gps-replay-body .table-wrap{max-height:280px;overflow:auto}.shift-history-segment .button svg{width:16px;height:16px}
@media(max-width:1000px){.shift-history-filters form{grid-template-columns:1fr 1fr}.shift-history-filters form>.button{grid-column:1/-1}.shift-history-event{grid-template-columns:24px 155px 1fr}.shift-history-event .button{grid-column:2/-1;justify-self:start}}
@media(max-width:600px){.shift-history-filters form{grid-template-columns:1fr;padding:16px}.shift-history-segment{padding:16px}.shift-history-segment header{display:block}.shift-history-event{grid-template-columns:20px 1fr;gap:7px}.shift-history-event time{font-size:12px}.shift-history-event>span:nth-of-type(2),.shift-history-event .button{grid-column:2}.shift-history-event .button{max-width:100%;white-space:normal;text-align:left}.gps-history-map{height:340px}.shift-history-pages{gap:12px;font-size:12px;padding:14px}.shift-history-alert{display:block}.shift-history-alert span{display:block;margin-top:5px}}
.gps-history-backdrop{justify-content:center!important;align-items:center!important;padding:16px}.gps-history-modal{position:relative!important;width:1000px!important;max-width:calc(100vw - 32px);height:auto!important;max-height:calc(100dvh - 32px)!important;border-radius:8px!important}.gps-history-modal .drawer-body{min-height:0;overflow:auto}.gps-replay-stage{position:relative}.gps-replay-stage .gps-playback-controls{position:absolute;top:12px;left:12px;width:280px;max-width:calc(100% - 70px);z-index:450;box-shadow:0 4px 12px #0005;background:var(--rv-surface,#1b2833)}.gps-playback-controls small{display:block;color:var(--muted);margin:5px 0}.gps-playback-controls p{font-size:12px;line-height:1.5}.gps-playback-controls .form-field{margin:8px 0}.gps-history-map .leaflet-control{z-index:500}
@media(max-width:600px){.gps-history-backdrop{padding:8px}.gps-history-modal{max-width:calc(100vw - 16px);max-height:calc(100dvh - 16px)!important}.gps-replay-stage{display:flex;flex-direction:column}.gps-replay-stage .gps-playback-controls{position:relative;order:-1;top:auto;left:auto;width:auto;max-width:none;margin-bottom:10px}.gps-history-modal .drawer-body{padding:14px}}
.gps-playback-controls .gps-playback-heading{display:flex;align-items:center;justify-content:space-between;gap:12px}.gps-playback-heading strong{min-width:0;overflow-wrap:anywhere}.gps-playback-heading .icon-button{width:28px;height:28px;min-width:28px}.gps-playback-controls .gps-playback-content{display:block}.gps-playback-controls.is-collapsed .gps-playback-content{display:none}.gps-playback-controls .gps-playback-endpoints{display:flex;justify-content:space-between;gap:14px;font-size:10px;color:var(--muted);margin:0 0 10px}.gps-playback-endpoints time{max-width:50%}.gps-playback-endpoints time:last-child{text-align:right}.gps-playback-controls .gps-playback-buttons{display:grid;grid-template-columns:44px 1fr 44px;gap:6px}.gps-playback-buttons .button{padding:8px 6px;min-height:40px}.gps-playback-controls small{overflow-wrap:anywhere}.gps-playback-map-tools{position:absolute;right:12px;bottom:28px;z-index:450;display:flex;gap:6px}.gps-history-map .leaflet-popup-content-wrapper,.gps-history-map .leaflet-popup-tip{background:var(--rv-surface,#1b2833);color:var(--text,#e7edf4)}.gps-history-popup .leaflet-popup-content{line-height:1.6;overflow-wrap:anywhere}.gps-history-map .leaflet-control-scale-line{background:var(--rv-surface,#1b2833);color:var(--text,#e7edf4);border-color:var(--muted);text-shadow:none}.gps-history-expanded{width:calc(100vw - 32px)!important;height:calc(100dvh - 32px)!important}.gps-history-expanded .gps-history-map{height:calc(100dvh - 240px);min-height:280px}.gps-history-expanded .gps-replay-body{flex:1}.gps-history-modal .leaflet-popup-close-button{color:var(--text,#e7edf4)!important}
@media(max-width:600px){.gps-playback-map-tools{bottom:28px;right:8px}.gps-playback-map-tools .button{font-size:11px;padding:8px}.gps-history-expanded{width:calc(100vw - 16px)!important;height:calc(100dvh - 16px)!important}.gps-history-expanded .gps-history-map{height:55dvh}.gps-playback-controls .gps-playback-endpoints{font-size:11px}}
