/* sc-playback.css: styles for sc-playback.js (canonical in SCModeling; vendored as-is by reliasim-site and essity-project).
   Theme: set any of --scp-bg --scp-ink --scp-muted --scp-line --scp-accent --scp-lane --scp-lane-casing --scp-faint --scp-truck-cab
   --scp-truck-edge --scp-truck-shadow --scp-card-bg --scp-card-ink --scp-card-edge --scp-map-h --scp-map-h-phone and
   --sc-role-supplier|plant|port|dc|customer on the container or an
   ancestor; each use below falls back to the light-page default. */
.scp {
  color: var(--scp-ink, #1d2433); font-size: 14px; line-height: 1.4;
}
.scp-map { position: relative; height: var(--scp-map-h, 420px); border: 1px solid var(--scp-line, #d9dde5); border-radius: 8px; overflow: hidden; background: var(--scp-bg, #ffffff); }
.scp-trucks { position: absolute; left: 0; top: 0; z-index: 450; pointer-events: none; }
.scp-pin { background: none; border: 0; }
.scp-site { display: block; width: 100%; height: 100%; box-shadow: 0 0 0 1.5px var(--scp-bg, #ffffff), 0 1px 3px rgba(0, 0, 0, .35); }
.scp-site.circle { border-radius: 50%; }
.scp-site.square { border-radius: 2px; }
.scp-site.diamond { transform: rotate(45deg) scale(.82); border-radius: 1px; }
.scp-bar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 8px 0 4px; }
.scp-play { flex: none; width: 44px; height: 36px; border-radius: 8px; border: 1px solid var(--scp-line, #d9dde5); background: var(--scp-bg, #ffffff); color: var(--scp-ink, #1d2433); font: 600 14px/1 system-ui, sans-serif; cursor: pointer; }
.scp-play:hover { border-color: var(--scp-accent, #1f6fb8); }
.scp-play:focus-visible, .scp-slider:focus-visible { outline: 2px solid var(--scp-accent, #1f6fb8); outline-offset: 2px; }
.scp-slider { flex: 1 1 220px; min-width: 160px; accent-color: var(--scp-accent, #1f6fb8); height: 28px; }
.scp-day { font-weight: 650; font-variant-numeric: tabular-nums; min-width: 9.5em; }
.scp-count { color: var(--scp-muted, #5f6673); font-variant-numeric: tabular-nums; }
.scp-key { font-size: 13px; color: var(--scp-muted, #5f6673); }
.scp-key .scp-kline, .scp-key .scp-knotes { display: block; margin-top: 3px; }
.scp-kt { white-space: nowrap; color: var(--scp-ink, #1d2433); }
.scp-ktruck { vertical-align: middle; margin-right: 3px; }
.scp .leaflet-container { font: inherit; background: var(--scp-bg, #ffffff); }
.scp .leaflet-tooltip { font-size: 13px; }
/* context dots (data.faint), always-on labels (site.label), off-map cards (data.offMap, top right: Leaflet's zoom
   buttons are top left and its credit bottom right) */
.scp-faintdot { display: block; width: 100%; height: 100%; border-radius: 50%; background: var(--scp-faint, #8a94a3); opacity: .6; box-shadow: 0 0 0 1px var(--scp-bg, #ffffff); }
.scp-kfaint { display: inline-block; width: 8px; height: 8px; vertical-align: middle; margin-right: 5px; }
.scp .leaflet-tooltip.scp-label { background: var(--scp-bg, #ffffff); color: var(--scp-ink, #1d2433); border: 1px solid var(--scp-line, #d9dde5); box-shadow: none; padding: 1px 6px; font-size: 12px; font-weight: 600; }
.scp .leaflet-tooltip.scp-label::before { display: none; }
.scp-offmap { position: absolute; right: 8px; top: 8px; z-index: 800; display: flex; flex-direction: column; gap: 6px; max-width: min(250px, 55%); pointer-events: none; }
.scp-card { display: flex; gap: 7px; align-items: flex-start; background: var(--scp-bg, #ffffff); color: var(--scp-ink, #1d2433); border: 1px dashed var(--scp-line, #d9dde5); border-radius: 6px; padding: 5px 8px; font-size: 12px; line-height: 1.35; box-shadow: 0 1px 3px rgba(0, 0, 0, .2); }
.scp-card .scp-site { flex: none; width: 11px; height: 11px; margin-top: 2px; }
@media (max-width: 640px) {
  .scp-map { height: var(--scp-map-h-phone, 300px); }
  .scp-offmap { max-width: min(170px, 48%); }
  .scp-card { font-size: 11px; padding: 4px 6px; }
  .scp-play { height: 44px; }
  .scp-slider { flex-basis: 100%; order: 3; }
}
/* cards beside the sites (opts.cards): a layer over the map, placed by sc-playback.js where they cover least */
.scp-cards { position: absolute; left: 0; top: 0; right: 0; bottom: 0; z-index: 460; pointer-events: none; }
.scp-sitecard { position: absolute; left: 0; top: 0; white-space: nowrap; background: var(--scp-card-bg, rgba(255, 255, 255, .94)); color: var(--scp-card-ink, #1d2433); border: 1px solid var(--scp-card-edge, #d9dde5); border-left: 3px solid var(--scp-card-edge, #d9dde5); border-radius: 8px; padding: 2px 8px 3px; font-size: 12px; line-height: 1.32; box-shadow: 0 1px 3px rgba(0, 0, 0, .25); }
.scp-leader { position: absolute; left: 0; top: -.5px; height: 1px; width: 0; transform-origin: 0 50%; opacity: .8; }
@media (max-width: 640px) { .scp-sitecard { font-size: 10.5px; line-height: 1.25; padding: 1px 5px 2px; border-radius: 6px; } }
