/* First-party control styling, matching the existing blue/white map panels. */
html { font-size: 14px; font-family: Arial, sans-serif; }
body { margin: 0; }
/* Grey vessels sit below labels; blue MFP vessels stay above them. */
.ship-position-marker.external { z-index: 0; }
#mappage-svg { z-index: 1; pointer-events: none; }
#mappage-svg > * { pointer-events: auto; }
.ship-position-marker.internal { z-index: 2; }
.mapboxgl-popup { z-index: 3; }
/* Forecast controls share the sign-in button's blue. */
#map-container #playback-panel { --forecast-blue: #294a7f; }
#map-container #playback-controls button { background: var(--forecast-blue); }
#map-container #playback-controls button:hover { background: #203b66; }
#map-container #playback-controls { gap: 10px; padding: 10px 14px; flex-wrap: wrap; }
#map-container #playback-controls button { padding: 0; flex-shrink: 0; }
#map-container #playback-controls #playback-stop,
#map-container #playback-controls #playback-calendar-btn { background: var(--forecast-blue); color: #fff; }
#map-container #playback-controls #playback-stop:hover,
#map-container #playback-controls #playback-calendar-btn:hover { background: #203b66; }
#map-container #playback-controls #playback-calendar-btn { padding: 0 12px; border-radius: 6px; font-weight: 600; }
#playback-calendar-btn::before { content: ''; display: inline-block; width: 6px; height: 6px; border-top: 1.5px solid currentColor; border-right: 1.5px solid currentColor; transform: rotate(-45deg); margin-right: 9px; vertical-align: -1px; }
#playback-calendar-btn[aria-expanded=true]::before { transform: rotate(135deg); vertical-align: 2px; }
#map-container #playback-date { color: var(--forecast-blue); font-variant-numeric: tabular-nums; padding: 0 4px; width: 160px; flex: 0 0 160px; }
#map-container #playback-speed { height: 30px; border-color: #d9e1ec; border-radius: 6px; color: #334155; }
#playback-controls .playback-summary { color: #667785; line-height: 1.4; }
#playback-panel.loaded .playback-summary { margin-left: auto; }
#playback-active-count { font-weight: 600; color: var(--forecast-blue); }
#playback-conflicts { display: none; color: #9a4b00; font-size: 11px; }
#playback-panel.loaded #playback-conflicts:not(:empty) { display: inline; }
.playback-vessel-marker.schedule-conflict .playback-vessel-label { border-color: #d97706; }
#map-container #playback-timeline-header strong { color: var(--forecast-blue); }
#playback-timeline .playhead-handle { cursor: ew-resize; touch-action: none; }
#playback-timeline .playhead-handle:focus:not(:focus-visible) { outline: none; }
#playback-timeline .playhead-handle.pointer-dragging { outline: none; }
#playback-timeline .playhead-handle:hover path,
#playback-timeline .playhead-handle:focus path { fill: #d97706; }
*, *::before, *::after { box-sizing: border-box; }
button, input, select, textarea { font: inherit; }
button, select, summary { cursor: pointer; }
input[type=checkbox], input[type=radio] { accent-color: #087ff5; width: 15px; height: 15px; margin: 0 7px 0 0; vertical-align: middle; flex-shrink: 0; }
input:not([type=checkbox]):not([type=radio]), select, textarea { border: 1px solid #ccc; border-radius: 4px; padding: 5px 8px; background: #fff; color: #333; }
button { border: 1px solid #ccd5df; border-radius: 4px; padding: 5px 10px; background: #fff; color: #294a7f; }
button:disabled { opacity: .5; cursor: wait; }
:focus-visible { outline: 2px solid #294a7f; outline-offset: 2px; }
.native-layer-tree { max-width: 330px; overflow: visible; }
.native-layer-entry { min-height: 31px; }
.native-layer-line { min-height: 30px; padding: 5px 0; font-size: 14px; }
.native-layer-line .layer-tree-label { cursor: pointer; font-size: 14px; line-height: 1; color: black; user-select: none; }
.native-layer-children { padding-left: 16px; }
.native-layer-entry summary { list-style-position: inside; }
.native-layer-entry input[type=month] { max-width: 155px; margin: 5px 0; }
.native-admin-section { margin: 24px; background: #fff; border-radius: 8px; padding: 18px; color: #333; }
.native-admin-section header { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.native-table-wrap { overflow: auto; }
.native-admin-table { border-collapse: collapse; width: 100%; }
.native-admin-table th, .native-admin-table td { text-align: left; border-bottom: 1px solid #dce2e8; padding: 8px; }
.native-admin-table th { background: #eef2f6; white-space: nowrap; }
.native-admin-table td { max-width: 300px; overflow-wrap: anywhere; }
.native-admin-table td input:not([type=checkbox]), .native-admin-table td select { min-width: 100px; width: 100%; }
.native-admin-table .row-actions { min-width: 145px; }
.native-admin-table .row-actions button { margin: 2px; }
.native-grid-error { color: #a32121; white-space: pre-line; }
dialog { border: 1px solid #dce2e8; border-radius: 10px; max-width: 500px; padding: 24px; }
dialog::backdrop { background: rgba(0, 0, 0, .27); }
