#sidebar-history { flex: 1; min-height: 0; overflow: auto; overflow-anchor: none; }
#sidebar-history h2 { margin: 0 0 10px; font-size: 20px; }
#sidebar-history .history-mac { font-size: 14px; }
#sidebar-history .history-description, #sidebar-history .history-status { color: #b8c0c8; font-size: 13px; line-height: 1.5; }
#sidebar-history .history-actions { display: flex; gap: 8px; margin: 16px 0; }
#sidebar-history .history-table-wrap { margin-top: 12px; min-width: 0; color-scheme: dark; }
#sidebar-history .dt-container { font-size: 12px; --dt-row-selected: 70,110,140; --dt-row-hover: 255,255,255; }
#sidebar-history .dt-layout-row { gap: 8px; flex-wrap: wrap; }
#sidebar-history .dt-length { display: flex; align-items: center; gap: 7px; white-space: nowrap; }
#sidebar-history .dt-length label { margin: 0; }
#sidebar-history .dt-length select { width: auto; margin: 0; flex: 0 0 auto; }
#sidebar-history .dt-input { background: #191e23; color: #e6e9ed; border: 1px solid #50565b; border-radius: 7px; padding: 5px 7px; }
#sidebar-history input.dt-input { max-width: 120px; }
#sidebar-history table.dataTable th, #sidebar-history table.dataTable td { white-space: nowrap; padding: 8px; font-size: 12px; }
#sidebar-history table.dataTable th { color: #b9c6d2; }
#sidebar-history table.dataTable td { border-bottom: 1px solid rgba(255,255,255,.07); }
#sidebar-history .history-count { display: inline-flex; align-items: center; justify-content: flex-end; gap: 6px; min-width: 50px; font-variant-numeric: tabular-nums; }
#sidebar-history .history-download { display: inline-flex; align-items: center; justify-content: center; color: #9acdf3; width: 24px; height: 24px; border-radius: 5px; }
#sidebar-history .history-download:hover, #sidebar-history .history-download:focus-visible { color: #fff; background: rgba(255,255,255,.12); }
#sidebar-history .history-download svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.6; }
#sidebar-history .dt-paging-button { color: #ddd !important; }
#sidebar-history .dt-paging-button.current { background: rgba(255,255,255,.1) !important; border-color: #666 !important; }
#sidebar-history .history-empty-download { color: #727980; cursor: default; }
#sidebar-history .history-empty-download:hover { background: none; color: #727980; }

#sidebar-history .history-day { display: inline-flex; align-items: center; gap: 6px; }
#sidebar-history .history-show-track { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; padding: 4px; color: #9acdf3; background: transparent; border: 1px solid transparent; border-radius: 5px; }
#sidebar-history .history-show-track svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.6; }
#sidebar-history .history-show-track:hover, #sidebar-history .history-show-track:focus-visible, #sidebar-history .history-show-track[aria-pressed="true"] { background: rgba(255,255,255,.12); border-color: #50565b; color: #fff; }
#sidebar-history .history-show-track[aria-busy="true"] svg { display: none; }
#sidebar-history .history-show-track[aria-busy="true"]::after { content: ''; width: 13px; height: 13px; border: 2px solid rgba(154,205,243,.25); border-top-color: currentColor; border-radius: 50%; animation: history-track-spin .8s linear infinite; }
@keyframes history-track-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { #sidebar-history .history-show-track[aria-busy="true"]::after { animation-duration: 2s; } }
#sidebar-history .history-show-track:disabled { opacity: .3; cursor: default; }
#sidebar-history .history-track-state { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 12px 0; font-size: 13px; }
#sidebar-history .history-track-state[hidden], #sidebar-history .history-track-state [hidden] { display: none; }
.station-track-history .maplibregl-marker, .station-track-history .mapboxgl-marker { visibility: hidden !important; }
