/* ==========================================================================
   IMIP MARITIME OPS — REAL-TIME MARITIME SURVEILLANCE & LOGISTICS
   Modern Enterprise Maritime Intelligence Design System
   ========================================================================== */

:root {
  --bg-primary: #edf2f7;
  --bg-secondary: #ffffff;
  --bg-tertiary: #f1f5f9;
  --bg-card: #ffffff;
  --bg-card-hover: #f8fafc;
  --bg-glass: rgba(255, 255, 255, 0.96);

  --border-subtle: #cbd5e1;
  --border-card: #cbd5e1;
  --border-active: #0f172a;

  --text-primary: #0f172a;
  --text-secondary: #334155;
  --text-muted: #64748b;
  --text-dim: #94a3b8;

  --color-sky: #0284c7;
  --color-cyan: #0284c7;
  --shadow-glow-cyan: 0 4px 16px rgba(0, 0, 0, 0.08);
  --color-blue: #0284c7;
  --color-emerald: #10b981;
  --color-amber: #d97706;
  --color-rose: #e11d48;
  --color-navy: #f1f5f9;

  --font-main: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', 'IBM Plex Mono', monospace;

  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 14px rgba(0, 0, 0, 0.09);
  --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.12);

  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 12px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  scrollbar-width: thin;
  scrollbar-color: rgba(15, 23, 42, 0.25) #f1f5f9;
}

/* Global Custom Modern Dark Scrollbars (No OS-default basic white scrollbars) */
::-webkit-scrollbar {
  width: 7px;
  height: 7px;
}

::-webkit-scrollbar-track {
  background: #f1f5f9;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb {
  background: rgba(15, 23, 42, 0.22);
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.5);
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(15, 23, 42, 0.38);
}

::-webkit-scrollbar-corner {
  background: transparent;
}

body {
  font-family: var(--font-main);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  overflow: hidden;
  height: 100vh;
  width: 100vw;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}

/* ==========================================================================
   HEADER / NAVBAR (Modern Executive Command Header)
   ========================================================================== */
.navbar {
  flex-shrink: 0;
  height: 60px;
  background: #ffffff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  z-index: 1000;
  position: relative;
}

.brand-section {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-logo {
  width: 34px;
  height: 34px;
  background: #0f172a;
  border: 1px solid #0f172a;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
}

.brand-title {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: #0f172a !important;
  line-height: 1.2;
}

.brand-sub {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 1px;
  color: #0284c7;
  font-weight: 700;
  text-transform: uppercase;
}

/* Nav Tabs */
.nav-tabs {
  display: flex;
  background: #f1f5f9;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 3px;
  gap: 3px;
}

.nav-tab-btn {
  background: transparent;
  border: 1px solid transparent;
  color: #334155;
  padding: 7px 14px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.15s ease;
}

.nav-tab-btn:hover {
  color: #0f172a;
  background: #e2e8f0;
}

.nav-tab-btn.active {
  background: #0f172a;
  color: #ffffff;
  border-color: #0f172a;
  font-weight: 600;
}

.nav-tab-badge {
  background: var(--color-rose);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 10px;
  font-family: var(--font-mono);
}

.nav-tab-badge.pill-neutral {
  background: #e2e8f0;
  color: #0f172a;
  border: 1px solid #cbd5e1;
  font-weight: 600;
}

/* Header Right Telemetry Pill & Clock */
.header-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.ais-sync-pill {
  display: flex;
  align-items: center;
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  border-radius: 20px;
  padding: 4px 10px;
  gap: 6px;
  font-size: 11px;
  font-family: var(--font-mono);
}

.sync-status-text {
  color: #0f172a;
  font-weight: 700;
  font-size: 10px;
}

.sync-divider {
  color: #94a3b8;
}

.sync-timer-text {
  color: #475569;
  font-size: 10px;
  font-weight: 600;
}

.btn-quick-sync {
  background: transparent;
  border: none;
  color: var(--color-sky);
  cursor: pointer;
  display: flex;
  align-items: center;
  padding: 2px;
  border-radius: 4px;
  transition: transform 0.2s;
}

.btn-quick-sync:hover {
  transform: rotate(90deg);
  color: #fff;
}

.sim-pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--color-emerald);
  box-shadow: 0 0 6px rgba(16, 185, 129, 0.6);
  animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
  0% { transform: scale(0.95); opacity: 0.7; }
  50% { transform: scale(1.15); opacity: 1; }
  100% { transform: scale(0.95); opacity: 0.7; }
}

.clock-display {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-secondary);
  background: #f1f5f9;
  padding: 5px 10px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
}

/* ==========================================================================
   MAIN VIEWPORT & MODULES
   ========================================================================== */
.main-viewport {
  flex: 1;
  min-height: 0;
  position: relative;
  overflow: hidden;
}

.module-view {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  display: none;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.module-view.active {
  display: block;
  opacity: 1;
}

/* ==========================================================================
   MODUL 1: MONITORING PETA (CLEAN FLOATING TOOLBARS)
   ========================================================================== */
#map {
  width: 100%;
  height: 100%;
  background: #f8fafc;
  z-index: 1;
}

/* Clean Top-Left Bar */
.map-top-left-bar {
  position: absolute;
  top: 16px;
  left: 20px;
  z-index: 500;
  background: var(--bg-glass);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  padding: 6px 10px;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: var(--shadow-md);
}

.search-box {
  position: relative;
  width: 220px;
}

.search-box input {
  width: 100%;
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 6px 10px 6px 30px;
  color: var(--text-primary);
  font-size: 12px;
  outline: none;
  transition: border-color 0.15s;
}

.search-box input:focus {
  border-color: var(--color-sky);
}

.search-box svg {
  position: absolute;
  left: 9px;
  top: 50%;
  transform: translateY(-50%);
}

.filter-chips {
  display: flex;
  gap: 4px;
}

.chip-btn {
  background: #f1f5f9;
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  padding: 5px 10px;
  border-radius: 14px;
  font-size: 11px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s;
}

.chip-btn:hover {
  color: #0f172a;
  border-color: #cbd5e1;
  border-color: rgba(255, 255, 255, 0.2);
}

.chip-btn.active {
  background: #0f172a;
  color: #ffffff;
  border-color: #0f172a;
}

.clean-select-pill {
  background: #ffffff;
  color: #0f172a;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 6px 10px;
  font-size: 11px;
  font-weight: 600;
  outline: none;
  cursor: pointer;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.clean-select-pill:hover {
  border-color: #94a3b8;
}

.clean-select-pill:focus {
  border-color: #0f172a;
  box-shadow: 0 0 0 2px rgba(15, 23, 42, 0.08);
}

/* Clean Top-Right Bar - Shifted so it does not collide with Leaflet Zoom control */
.map-top-right-bar {
  position: absolute;
  top: 16px;
  right: 68px;
  z-index: 500;
  background: var(--bg-glass);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  padding: 6px 10px;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: var(--shadow-md);
}

/* Leaflet Zoom Control Clean Modern Light Mode */
.leaflet-top.leaflet-right {
  top: 16px !important;
  right: 16px !important;
  z-index: 520 !important;
}

.leaflet-control-zoom {
  margin: 0 !important;
  border: 1px solid var(--border-card) !important;
  border-radius: var(--radius-sm) !important;
  box-shadow: var(--shadow-md) !important;
  overflow: hidden;
  background: #ffffff !important;
}

.leaflet-control-zoom a {
  background-color: #ffffff !important;
  color: #0f172a !important;
  border-bottom: 1px solid #e2e8f0 !important;
  width: 34px !important;
  height: 34px !important;
  line-height: 34px !important;
  font-size: 16px !important;
  font-weight: 700 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  text-decoration: none !important;
  transition: all 0.15s ease;
}

.leaflet-control-zoom a:last-child {
  border-bottom: none !important;
}

.leaflet-control-zoom a:hover {
  background-color: #f1f5f9 !important;
  color: #0284c7 !important;
}

.layer-pills-group {
  display: flex;
  gap: 4px;
}

.layer-toggle-btn {
  background: #f1f5f9;
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  padding: 5px 10px;
  border-radius: var(--radius-sm);
  font-size: 11px;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 5px;
  transition: all 0.15s;
}

.layer-toggle-btn:hover {
  color: #0f172a;
  border-color: #cbd5e1;
}

.layer-toggle-btn.active {
  color: #ffffff;
  border-color: #0f172a;
  background: #0f172a;
}

/* ==========================================================================
   UNIFIED LEFT TELEMETRY HUD
   ========================================================================== */
.map-left-hud {
  position: absolute;
  top: 74px;
  left: 20px;
  z-index: 500;
  pointer-events: none;
}

.hud-panel {
  pointer-events: auto;
  background: var(--bg-glass);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 14px 16px;
  min-width: 220px;
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.hud-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 8px;
}

.hud-title {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

.hud-live-tag {
  font-size: 9px;
  font-weight: 700;
  font-family: var(--font-mono);
  color: var(--color-emerald);
}

.hud-metrics-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.hud-metric-item {
  display: flex;
  flex-direction: column;
}

.hud-metric-label {
  font-size: 10px;
  color: var(--text-secondary);
  margin-bottom: 2px;
}

.hud-metric-value {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 700;
  color: #0f172a;
  display: flex;
  align-items: baseline;
  gap: 4px;
}

.hud-metric-value span {
  font-size: 11px;
  font-weight: 400;
  color: var(--text-muted);
}

.hud-metric-value.text-amber {
  color: var(--color-amber);
}

/* Live Navigation Status Strip in Left Telemetry HUD */
.hud-status-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 6px 8px;
  margin: 1px 0 3px 0;
}

.hud-status-chip {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex: 1;
  padding: 5px 4px 4px;
  border-radius: 6px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  cursor: pointer;
  user-select: none;
  transition: all 0.15s ease;
}

.hud-status-chip:hover {
  border-color: #cbd5e1;
  box-shadow: 0 2px 4px rgba(15, 23, 42, 0.08);
}

.hud-status-chip.chip-sailing.active {
  background: #ecfdf5;
  border-color: #10b981;
  box-shadow: 0 0 0 1.5px #10b981;
}

.hud-status-chip.chip-moored.active {
  background: #f0f9ff;
  border-color: #0284c7;
  box-shadow: 0 0 0 1.5px #0284c7;
}

.hud-status-chip.chip-anchored.active {
  background: #fffbeb;
  border-color: #f59e0b;
  box-shadow: 0 0 0 1.5px #f59e0b;
}

.hsc-header {
  display: flex;
  align-items: center;
  gap: 4.5px;
  margin-bottom: 2px;
}

.hsc-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}

.hsc-dot.sailing {
  background: #10b981;
  box-shadow: 0 0 5px rgba(16, 185, 129, 0.6);
}

.hsc-dot.moored {
  background: #0284c7;
  box-shadow: 0 0 5px rgba(2, 132, 199, 0.6);
}

.hsc-dot.anchored {
  background: #f59e0b;
  box-shadow: 0 0 5px rgba(245, 158, 11, 0.6);
}

.hsc-name {
  font-size: 9.5px;
  color: #64748b;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.2px;
}

.hsc-num {
  font-size: 13.5px;
  font-weight: 700;
  font-family: var(--font-heading, 'Inter', sans-serif);
  line-height: 1.1;
}

.hud-status-chip.chip-sailing .hsc-num { color: #047857; }
.hud-status-chip.chip-moored .hsc-num { color: #0369a1; }
.hud-status-chip.chip-anchored .hsc-num { color: #b45309; }

.hud-panel-footer {
  border-top: 1px solid var(--border-subtle);
  padding-top: 8px;
  display: flex;
  align-items: center;
  justify-content: stretch;
}

.hud-btn-sync {
  width: 100%;
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  color: #1e293b;
  padding: 6px 10px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.hud-btn-sync:hover {
  background: #0284c7;
  border-color: #0284c7;
  color: #ffffff;
}

/* ==========================================================================
   MYSHIPTRACKING SIGNATURE VESSEL DOSSIER (RIGHT DRAWER)
   ========================================================================== */
.vessel-drawer.mst-dossier {
  position: absolute;
  top: 74px;
  right: 20px;
  bottom: 20px;
  width: 520px;
  max-width: calc(100vw - 40px);
  background: #ffffff;
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  z-index: 600;
  box-shadow: -8px 0 32px rgba(0, 0, 0, 0.12);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform: translateX(560px);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.vessel-drawer.mst-dossier.open {
  transform: translateX(0);
}

/* Top Navy Hero Banner (MyShipTracking Style) */
.mst-hero-banner {
  background: #ffffff;
  border-bottom: 1px solid #e2e8f0;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.mst-hero-left {
  flex: 1;
  min-width: 0;
}

.mst-vessel-title {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.2px;
  line-height: 1.25;
  margin: 0 0 5px 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mst-vessel-sub {
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  flex-wrap: nowrap;
}

.mst-type-badge {
  font-size: 11.5px;
  color: #475569;
  font-weight: 600;
  white-space: nowrap;
}

.mst-sub-dot {
  color: #cbd5e1;
  font-size: 12px;
  line-height: 1;
}

.mst-flag-label {
  font-size: 11.5px;
  color: #334155;
  font-weight: 600;
  white-space: nowrap;
}

.mst-station-badge {
  font-size: 10px;
  font-family: var(--font-mono);
  font-weight: 700;
  background: #ecfdf5;
  color: #059669;
  border: 1px solid #a7f3d0;
  padding: 2px 7px;
  border-radius: 4px;
  white-space: nowrap;
  letter-spacing: 0.2px;
}

.mst-hero-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.mst-action-btn {
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  color: #0f172a;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 11.5px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  transition: all 0.15s ease;
}

.mst-action-btn:hover {
  background: #ffffff;
  border-color: #0284c7;
  color: #0284c7;
  box-shadow: 0 2px 6px rgba(2, 132, 199, 0.15);
}

.mst-close-btn {
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  color: #64748b;
  width: 30px;
  height: 30px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  transition: all 0.15s ease;
  flex-shrink: 0;
}

.mst-close-btn:hover {
  background: #fee2e2;
  border-color: #fca5a5;
  color: #dc2626;
}

/* Body container */
.drawer-body.mst-body {
  padding: 16px;
  overflow-y: auto;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.drawer-body.mst-body > * {
  flex-shrink: 0 !important;
}

/* Common Card */
.mst-card {
  background: #ffffff;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 14px;
  flex-shrink: 0 !important;
}

.mst-card-title {
  font-size: 11px;
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: #0f172a;
  margin-bottom: 10px;
  font-weight: 700;
}

/* ==========================================================================
   SIGNATURE VOYAGE CARD & CONNECTING PROGRESS BAR
   ========================================================================== */
.mst-voyage-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
}

.mst-voyage-track-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 12px;
}

.mst-voyage-port {
  min-width: 95px;
}

.mst-voyage-port.dest {
  text-align: right;
}

.mst-port-title {
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 2px;
}

.mst-port-locode {
  font-size: 10px;
  font-family: var(--font-mono);
  color: var(--text-secondary);
  margin-bottom: 4px;
}

.mst-port-time-label {
  font-size: 9px;
  color: var(--text-muted);
  font-weight: 700;
}

.mst-port-timestamp {
  font-size: 10px;
  font-family: var(--font-mono);
  color: #0f172a;
}

/* Connecting line segment */
.mst-progress-segment {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 0 6px;
}

.mst-line-track {
  width: 100%;
  height: 6px;
  background: #e2e8f0;
  border-radius: 3px;
  position: relative;
}

.mst-line-fill {
  height: 100%;
  background: #0f172a;
  border-radius: 3px;
  transition: width 0.4s ease;
}

.mst-ship-anchor-node {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #0f172a;
  color: #0f172a;
}

.mst-progress-badge-wrapper {
  display: flex;
  align-items: center;
  gap: 6px;
}

.mst-pct-pill {
  font-size: 9px;
  font-family: var(--font-mono);
  font-weight: 700;
  color: #0f172a;
  background: #e2e8f0;
  padding: 2px 6px;
  border-radius: 10px;
}

.mst-delay-pill {
  font-size: 9px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 10px;
  background: rgba(16, 185, 129, 0.15);
  color: var(--color-emerald);
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.mst-delay-pill.delayed {
  background: rgba(244, 63, 94, 0.15);
  color: var(--color-rose);
  border-color: rgba(244, 63, 94, 0.4);
}

/* 4-Column Metrics Grid */
.mst-voyage-metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px 8px;
}

.mst-v-item {
  display: flex;
  flex-direction: column;
}

.mst-v-label {
  font-size: 9px;
  color: var(--text-muted);
  margin-bottom: 2px;
}

.mst-v-val {
  font-size: 11px;
  font-weight: 600;
  color: #0f172a;
  font-family: var(--font-mono);
}

/* ==========================================================================
   SPECIFICATIONS TABLE (MyShipTracking Format)
   ========================================================================== */
.mst-specs-table {
  display: flex;
  flex-direction: column;
}

.mst-spec-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 11px;
}

.mst-spec-row:last-child {
  border-bottom: none;
}

.mst-s-key {
  color: var(--text-secondary);
}

.mst-s-val {
  color: #0f172a;
  font-weight: 500;
}

.mst-droplet-icon {
  color: #0f172a;
  margin-right: 2px;
}

/* Weather & Marine Grid */
.mst-weather-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.mst-w-item {
  background: #f8fafc;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 8px 10px;
  display: flex;
  flex-direction: column;
}

.mst-w-label {
  font-size: 9px;
  color: var(--text-muted);
  margin-bottom: 3px;
}

.mst-w-val {
  font-size: 12px;
  font-weight: 700;
  font-family: var(--font-mono);
  color: #0f172a;
}

/* Operational Information Paragraph */
.mst-info-text {
  font-size: 12px;
  line-height: 1.6;
  color: #475569;
}

.mst-info-text strong {
  color: #0f172a;
  font-weight: 600;
}

/* Delay Banner */
.mst-delay-banner {
  background: rgba(244, 63, 94, 0.12);
  border: 1px solid rgba(244, 63, 94, 0.35);
  border-radius: var(--radius-md);
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.mst-delay-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.mst-delay-title {
  font-size: 10px;
  font-weight: 800;
  color: var(--color-rose);
  letter-spacing: 0.5px;
}

.mst-delay-hrs {
  font-size: 11px;
  font-weight: 800;
  font-family: var(--font-mono);
  color: var(--color-rose);
  background: rgba(244, 63, 94, 0.2);
  padding: 1px 6px;
  border-radius: 4px;
}

.mst-delay-desc {
  font-size: 11px;
  color: #e2e8f0;
  line-height: 1.4;
}

/* Text utility classes */
.text-sky { color: var(--color-sky) !important; }
.text-emerald { color: var(--color-emerald) !important; }
.text-amber { color: var(--color-amber) !important; }
.font-mono { font-family: var(--font-mono) !important; }

.btn-triage-delay {
  background: rgba(244, 63, 94, 0.2);
  border: 1px solid #ff2a5f;
  color: #fff;
  border-radius: 4px;
  padding: 4px 10px;
  font-size: 10px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-triage-delay:hover {
  background: #ff2a5f;
  color: #fff;
}

.drawer-actions {
  padding: 16px 20px;
  border-top: 1px solid var(--border-subtle);
  background: rgba(13, 23, 36, 0.7);
  display: flex;
  gap: 10px;
}

.btn-playback {
  flex: 1;
  background: #0f172a;
  color: #ffffff;
  border: 1px solid #0f172a;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 700;
  padding: 10px 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.2s;
  box-shadow: 0 4px 14px rgba(255, 255, 255, 0.15);
}

.btn-playback:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(255, 255, 255, 0.25);
}

/* Floating Playback Bar (Active during track replay) */
.playback-bar {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  z-index: 650;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(16px);
  border: 1px solid #e2e8f0;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
  border-radius: 30px;
  padding: 10px 24px;
  display: flex;
  align-items: center;
  gap: 16px;
  box-shadow: var(--shadow-glow-cyan);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  min-width: 650px;
}

.playback-bar.active {
  transform: translateX(-50%) translateY(0);
}

.playback-play-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #0f172a;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 14px;
  transition: transform 0.15s;
}

.playback-play-btn:hover {
  transform: scale(1.08);
}

.playback-slider-container {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.playback-slider {
  width: 100%;
  accent-color: #0f172a;
  cursor: pointer;
}

.playback-time-labels {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  font-family: var(--font-mono);
  color: var(--text-muted);
}

.close-playback-btn {
  background: transparent;
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  border-radius: 50%;
  width: 28px;
  height: 28px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s;
}

.close-playback-btn:hover {
  border-color: var(--color-crimson);
  color: var(--color-crimson);
}

/* ==========================================================================
   MODUL 2: PUSAT ALERT & ANOMALI
   ========================================================================== */
.alerts-container {
  padding: 24px 32px;
  height: 100%;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.alerts-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.alerts-header h1 {
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: 700;
  color: var(--text-primary);
}

.alert-quick-trigger-group {
  display: flex;
  gap: 10px;
}

.btn-trigger-anomaly {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  color: #1e293b;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.15s ease;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.btn-trigger-anomaly:hover {
  background: #f8fafc;
  border-color: #0284c7;
  color: #0284c7;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.alerts-kpi-bar {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.alert-kpi-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 16px;
  position: relative;
  overflow: hidden;
}

.alert-kpi-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
}

.alert-kpi-card.kpi-critical::before { background: var(--color-crimson); }
.alert-kpi-card.kpi-high::before { background: var(--color-orange); }
.alert-kpi-card.kpi-medium::before { background: var(--color-amber); }
.alert-kpi-card.kpi-ack::before { background: var(--color-emerald); }

.alert-kpi-count {
  font-family: var(--font-heading);
  font-size: 28px;
  font-weight: 800;
  margin-top: 4px;
}

.alert-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(420px, 1fr));
  gap: 16px;
}

.alert-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: all 0.2s;
  box-shadow: var(--shadow-sm);
  position: relative;
}

.alert-card:hover {
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.alert-card.severity-CRITICAL,
.alert-card.severity-HIGH,
.alert-card.severity-MEDIUM {
  border: 1px solid var(--border-subtle);
}

.alert-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.severity-pill {
  font-size: 10px;
  font-family: var(--font-mono);
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
  text-transform: uppercase;
}

.severity-CRITICAL .severity-pill {
  background: rgba(255, 42, 95, 0.15);
  color: var(--color-crimson);
  border: 1px solid var(--color-crimson);
}

.severity-HIGH .severity-pill {
  background: rgba(255, 109, 0, 0.15);
  color: var(--color-orange);
  border: 1px solid var(--color-orange);
}

.severity-MEDIUM .severity-pill {
  background: rgba(255, 171, 0, 0.15);
  color: var(--color-amber);
  border: 1px solid var(--color-amber);
}

.alert-time {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
}

.alert-title {
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
}

.alert-desc {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.45;
}

.alert-vessel-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-subtle);
  border-radius: 4px;
  padding: 4px 8px;
  font-size: 11px;
  font-family: var(--font-mono);
  color: var(--color-cyan);
}

.alert-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--border-subtle);
  padding-top: 10px;
  margin-top: 4px;
}

.btn-focus-map {
  background: transparent;
  border: 1px solid var(--color-cyan);
  color: var(--color-cyan);
  border-radius: var(--radius-sm);
  padding: 6px 12px;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.15s;
}

.btn-focus-map:hover {
  background: var(--color-cyan);
  color: #070d14;
}

.btn-ack-alert {
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
  padding: 6px 12px;
  font-size: 11px;
  cursor: pointer;
  transition: all 0.15s;
}

.btn-ack-alert:hover {
  border-color: var(--color-emerald);
  color: var(--color-emerald);
}

/* ==========================================================================
   MODUL 3: SUPPLY CHAIN & FLEET ANALYTICS
   ========================================================================== */
.analytics-container {
  padding: 24px 32px;
  height: 100%;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.analytics-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.analytics-header h1 {
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: 700;
  color: var(--text-primary);
}

.kpi-overview-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.kpi-stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 20px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.kpi-stat-card:hover {
  border-color: rgba(255, 255, 255, 0.3);
}

.kpi-card-label {
  font-size: 11px;
  font-family: var(--font-mono);
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1.2px;
}

.kpi-card-value {
  font-family: var(--font-heading);
  font-size: 28px;
  font-weight: 800;
  color: var(--text-primary);
  margin: 8px 0 4px 0;
}

.kpi-card-sub {
  font-size: 12px;
  color: var(--text-secondary);
}

/* 2-Column Section: Category Breakdown + Key Terminals */
.analytics-middle-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.panel-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.panel-title {
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.category-bar-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.category-bar-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.cat-bar-header {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  font-weight: 500;
}

.cat-bar-track {
  width: 100%;
  height: 8px;
  background: var(--bg-secondary);
  border-radius: 4px;
  overflow: hidden;
}

.cat-bar-fill {
  height: 100%;
  border-radius: 4px;
  background: linear-gradient(90deg, #ffffff, #cbd5e1);
}

.terminal-badge-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 10px;
}

.terminal-badge-card {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: all 0.2s ease;
  position: relative;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
}

.terminal-badge-card:hover {
  border-color: #0f172a;
  background: #f8fafc;
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
}

.term-badge-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.term-type-tag {
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  padding: 2px 6px;
  border-radius: 4px;
  letter-spacing: 0.5px;
}

.term-fly-btn {
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  color: #0f172a;
  border-radius: 4px;
  padding: 3px 8px;
  font-size: 10px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  transition: all 0.15s ease;
}

.term-fly-btn:hover {
  background: #f1f5f9;
  border-color: #94a3b8;
}

.term-badge-name {
  font-size: 12px;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.3;
}

.term-badge-region {
  font-size: 10px;
  color: #64748b;
}

.term-badge-capacity {
  font-size: 11px;
  font-family: var(--font-mono);
  color: #0f172a;
  font-weight: 600;
  background: #e2e8f0;
  padding: 2px 6px;
  border-radius: 4px;
  width: fit-content;
}

.term-badge-desc {
  font-size: 10px;
  color: #64748b;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.term-pill {
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  color: #475569;
  padding: 5px 10px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.term-pill:hover {
  border-color: #cbd5e1;
  color: #0f172a;
}

.term-pill.active {
  background: #0f172a;
  border-color: #0f172a;
  color: #ffffff;
  font-weight: 700;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.15);
}

/* Master Fleet Table */
.fleet-table-panel {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.table-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.table-search-input {
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  color: var(--text-primary);
  font-size: 12px;
  width: 280px;
  outline: none;
}

.btn-export-csv {
  background: var(--bg-tertiary);
  border: 1px solid var(--border-subtle);
  color: var(--color-cyan);
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s;
}

.btn-export-csv:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--color-cyan);
}

.table-wrapper {
  overflow-x: auto;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
}

.fleet-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
  text-align: left;
}

.fleet-table th {
  background: var(--bg-secondary);
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 11px;
  padding: 12px 14px;
  text-transform: uppercase;
  border-bottom: 1px solid var(--border-subtle);
}

.fleet-table td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--border-subtle);
  color: var(--text-secondary);
}

.fleet-table tr:hover td {
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-primary);
}

.fleet-table td.vessel-name-cell {
  font-weight: 600;
  color: var(--color-cyan);
  cursor: pointer;
}

/* ==========================================================================
   CUSTOM LEAFLET SHIP MARKER & MAP STYLING
   ========================================================================== */
.custom-vessel-marker {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
}

.custom-vessel-marker:hover {
  transform: scale(1.3) !important;
  z-index: 99999 !important;
}

.ship-svg-wrapper {
  width: 16px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease;
  filter: drop-shadow(0 1.5px 3px rgba(0,0,0,0.7));
}

.ship-svg-wrapper svg {
  width: 100%;
  height: 100%;
}

.ship-anomaly-beacon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 1.5px solid var(--color-crimson);
  animation: pulse-beacon 1.5s infinite;
  pointer-events: none;
}

.terminal-div-icon {
  background: transparent !important;
  border: none !important;
}

.terminal-pin-wrapper {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), filter 0.2s ease;
  user-select: none;
}

.terminal-pin-wrapper:hover {
  transform: scale(1.15);
  z-index: 1000 !important;
  filter: brightness(1.25);
}

.terminal-pin-icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #0b1523;
  border: 2px solid #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.3);
  flex-shrink: 0;
}

.terminal-pin-label {
  background: rgba(11, 21, 35, 0.94);
  border: 1px solid #ffffff;
  color: #f1f5f9;
  font-size: 9px;
  font-family: var(--font-mono);
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 4px;
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(0,0,0,0.6);
  pointer-events: none;
}

/* Dark Leaflet Popup for Terminals & Ports */
.dark-terminal-popup-container .leaflet-popup-content-wrapper {
  background: #ffffff !important;
  border: 1px solid #cbd5e1;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
  border-radius: 8px;
  padding: 0;
}

.dark-terminal-popup-container .leaflet-popup-tip {
  background: #ffffff !important;
  border: 1px solid #cbd5e1;
}

.dark-terminal-popup-container .leaflet-popup-content {
  margin: 12px 14px;
  line-height: 1.4;
}

.custom-terminal-popup .term-pop-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  padding: 2px 7px;
  border-radius: 4px;
  letter-spacing: 0.5px;
}

/* ==========================================================================
   MODAL DIALOG
   ========================================================================== */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
}

.modal-overlay.open {
  display: flex;
}

.modal-dialog {
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  width: 480px;
  box-shadow: var(--shadow-md);
  overflow: hidden;
  animation: modal-enter 0.25s ease-out;
}

.modal-header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-header h3 {
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
}

.modal-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: 11px;
  font-family: var(--font-mono);
  color: var(--text-muted);
}

.form-group input, .form-group textarea {
  background: var(--bg-primary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  color: var(--text-primary);
  font-size: 13px;
  outline: none;
}

.form-group input:focus, .form-group textarea:focus {
  border-color: var(--color-cyan);
}

.modal-footer {
  padding: 14px 20px;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.btn-secondary {
  background: transparent;
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  cursor: pointer;
}

.btn-primary {
  background: var(--color-cyan);
  border: none;
  color: #070d14;
  font-weight: 700;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  cursor: pointer;
}

/* ==========================================================================
   ANIMATIONS & KEYFRAMES
   ========================================================================== */
@keyframes pulse-dot {
  0% { transform: scale(0.95); opacity: 0.8; }
  50% { transform: scale(1.2); opacity: 1; }
  100% { transform: scale(0.95); opacity: 0.8; }
}

@keyframes pulse-danger {
  0% { box-shadow: 0 0 0 0 rgba(255, 42, 95, 0.7); }
  70% { box-shadow: 0 0 0 8px rgba(255, 42, 95, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 42, 95, 0); }
}

@keyframes pulse-beacon {
  0% { transform: translate(-50%, -50%) scale(0.6); opacity: 1; }
  100% { transform: translate(-50%, -50%) scale(1.5); opacity: 0; }
}

@keyframes modal-enter {
  0% { transform: scale(0.92); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

/* ==========================================================================
   MODUL 4: MANAJEMEN ARMADA & PELABUHAN TERPANTAU
   ========================================================================== */
.management-container, .mgmt-container {
  max-width: 1440px;
  margin: 0 auto;
  padding: 24px 28px 80px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  overflow-y: auto;
  height: 100%;
}

/* Banner Header */
.mgmt-header-banner {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-lg);
  padding: 22px 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.45);
  gap: 24px;
}

.mgmt-header-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.mgmt-title-row {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.mgmt-main-title {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: 0.3px;
  margin: 0;
}

.sync-status-indicator {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: var(--color-emerald);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 11px;
  font-family: var(--font-mono);
  font-weight: 600;
}

.sync-pulse-dot {
  width: 7px;
  height: 7px;
  background: var(--color-emerald);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--color-emerald);
  animation: beacon-pulse 2s infinite ease-out;
}

.sync-separator {
  color: rgba(255, 255, 255, 0.3);
}

.mgmt-sub-title {
  font-size: 13px;
  color: #64748b;
  line-height: 1.5;
  max-width: 860px;
  margin: 0;
}

.mgmt-banner-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.btn-action-outline {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  color: #0f172a;
  padding: 9px 16px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s;
  white-space: nowrap;
}

.btn-action-outline:hover {
  background: #f1f5f9;
  color: #0f172a;
  border-color: #94a3b8;
}

.btn-wipe-all {
  background: rgba(244, 63, 94, 0.1);
  border: 1px solid rgba(244, 63, 94, 0.35);
  color: var(--color-rose);
  padding: 9px 16px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s;
  white-space: nowrap;
}

.btn-wipe-all:hover {
  background: rgba(244, 63, 94, 0.22);
  color: #ffffff;
  border-color: var(--color-rose);
  box-shadow: 0 0 14px rgba(244, 63, 94, 0.3);
}

/* Sub-nav Switcher */
.mgmt-subnav-bar {
  display: flex;
  gap: 8px;
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  padding: 5px;
  border-radius: var(--radius-md);
  width: fit-content;
}

.mgmt-subnav-btn {
  background: transparent;
  border: 1px solid transparent;
  color: #64748b;
  padding: 9px 20px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s;
}

.mgmt-subnav-btn:hover {
  color: #0f172a;
  background: #f1f5f9;
}

.mgmt-subnav-btn.active {
  background: #0f172a;
  border-color: #0f172a;
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.15);
}

.subnav-badge {
  background: rgba(15, 23, 42, 0.08);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 10px;
  color: inherit;
}

.mgmt-subnav-btn.active .subnav-badge {
  background: rgba(255, 255, 255, 0.2);
}

/* Subpanel */
.mgmt-subpanel {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Cards */
.mgmt-card {
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 24px 28px;
  box-shadow: var(--shadow-sm);
}

.mgmt-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid #e2e8f0;
  gap: 16px;
}

.mgmt-card-heading {
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 4px 0;
}

.mgmt-card-desc {
  font-size: 12px;
  color: var(--text-secondary);
  margin: 0;
  line-height: 1.4;
}

.badge-status-telemetry {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 4px;
  background: #ecfdf5;
  color: #047857;
  border: 1px solid #a7f3d0;
  letter-spacing: 0.5px;
  white-space: nowrap;
}

.badge-neutral-count {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 6px;
  background: #f1f5f9;
  color: #0f172a;
  border: 1px solid #cbd5e1;
  white-space: nowrap;
}

.btn-ghost-sm {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  color: #334155;
  border-radius: var(--radius-sm);
  padding: 5px 12px;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
}

.btn-ghost-sm:hover {
  background: #f1f5f9;
  border-color: #94a3b8;
  color: #0f172a;
}

/* AIS Search Box & Button */
.ais-search-wrapper {
  display: flex;
  gap: 12px;
  align-items: center;
  width: 100%;
}

.ais-search-input-box {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 12px;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 11px 16px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.ais-search-input-box:focus-within {
  border-color: #ffffff;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.18);
}

.ais-search-input-box svg {
  flex-shrink: 0;
  color: #64748b;
}

.ais-search-input-box input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: #0f172a;
  font-size: 13px;
  font-family: var(--font-sans);
  width: 100%;
}

.ais-search-input-box input::placeholder {
  color: #64748b;
  font-size: 12px;
}

.btn-primary-action {
  background: #0f172a;
  color: #ffffff;
  border: 1px solid #0f172a;
  padding: 12px 22px;
  border-radius: var(--radius-md);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.15);
}

.btn-primary-action:hover {
  background: #1e293b;
  color: #ffffff;
  border-color: #1e293b;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.25);
}

/* AIS Live Search Results Grid */
.vf-results-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 14px;
  margin-top: 18px;
  max-height: 440px;
  overflow-y: auto;
  padding: 4px;
}

.vf-ship-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: all 0.2s;
}

.vf-ship-card:hover {
  border-color: var(--color-sky);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.5);
}

.vf-ship-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
}

.vf-ship-name {
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 700;
  color: #0f172a;
}

.vf-ship-cat {
  font-size: 11px;
  color: #64748b;
  margin-top: 2px;
}

.vf-ship-meta {
  font-family: var(--font-mono);
  font-size: 11px;
  color: #94a3b8;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.btn-import-ship {
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.4);
  color: var(--color-emerald);
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.2s;
}

.btn-import-ship:hover {
  background: rgba(16, 185, 129, 0.28);
  color: #ffffff;
  box-shadow: 0 0 12px rgba(16, 185, 129, 0.35);
}

/* ==========================================================================
   FORM ADD / PARAMETER FORM STYLING
   ========================================================================== */
.clean-form-layout {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.form-section-block {
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  border-radius: var(--radius-md);
  padding: 16px 20px;
}

.form-section-title {
  font-size: 11px;
  font-family: var(--font-mono);
  font-weight: 700;
  color: #0f172a;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 14px;
}

.form-fields-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px 16px;
}

@media (max-width: 1200px) {
  .form-fields-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .form-fields-grid {
    grid-template-columns: 1fr;
  }
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-field label {
  font-size: 11px;
  font-weight: 600;
  color: #334155;
  letter-spacing: 0.2px;
}

.form-field input,
.form-field select {
  width: 100%;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  color: #0f172a;
  padding: 9px 12px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-family: var(--font-mono);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-field input:focus,
.form-field select:focus {
  border-color: #0f172a;
  box-shadow: 0 0 0 2px rgba(15, 23, 42, 0.1);
}

.form-field input::placeholder {
  color: #94a3b8;
  font-size: 11px;
}

.form-field select option {
  background: #ffffff;
  color: #0f172a;
}

.form-footer-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 8px;
}

/* Strategic Quick Port Chips */
.quick-port-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.quick-port-btn {
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  color: #475569;
  padding: 7px 14px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.quick-port-btn:hover {
  background: #e2e8f0;
  border-color: #94a3b8;
  color: #0f172a;
}

/* Tables in Management Module */
.table-wrapper {
  overflow-x: auto;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  background: #ffffff;
}

.fleet-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 12px;
}

.fleet-table thead {
  background: #f1f5f9;
}

.fleet-table th {
  padding: 12px 14px;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  color: #334155;
  letter-spacing: 0.5px;
  border-bottom: 1px solid var(--border-subtle);
}

.fleet-table td {
  padding: 12px 14px;
  border-bottom: 1px solid #e2e8f0;
  color: #0f172a;
  vertical-align: middle;
}

.fleet-table tr:last-child td {
  border-bottom: none;
}

.fleet-table tr:hover td {
  background: #f8fafc;
}

.action-btn-group {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  white-space: nowrap;
}

.btn-tbl-action {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  color: #1e293b;
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: all 0.15s ease;
  white-space: nowrap;
  line-height: 1;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05);
}

.btn-tbl-action svg {
  flex-shrink: 0;
}

.btn-tbl-action.btn-tbl-map:hover {
  background: #0f172a;
  border-color: #0f172a;
  color: #ffffff;
}

.btn-tbl-action.btn-tbl-sync {
  color: #047857;
  border-color: #a7f3d0;
  background: #ecfdf5;
}

.btn-tbl-action.btn-tbl-sync:hover {
  background: #047857;
  border-color: #047857;
  color: #ffffff;
}

.btn-tbl-action.btn-tbl-del {
  color: #be123c;
  border-color: #fecdd3;
  background: #fff1f2;
}

.btn-tbl-action.btn-tbl-del:hover {
  background: #be123c;
  border-color: #be123c;
  color: #ffffff;
}

.btn-action-icon {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  color: #1e293b;
  padding: 5px 10px;
  border-radius: var(--radius-sm);
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  margin-right: 4px;
  transition: all 0.15s;
}

.btn-action-icon:hover {
  background: #0f172a;
  border-color: #0f172a;
  color: #ffffff;
}

.btn-action-icon.danger {
  border-color: #fecdd3;
  color: #be123c;
  background: #fff1f2;
}

.btn-action-icon.danger:hover {
  background: #be123c;
  border-color: #be123c;
  color: #ffffff;
}


/* ==========================================================================
   TERMINAL & PORT MAP MARKERS & POPUPS
   ========================================================================== */
.terminal-div-icon {
  background: transparent;
  border: none;
}

.terminal-pin-wrapper {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  transform: translate(-50%, -50%);
  user-select: none;
}

.terminal-pin-icon {
  width: 22px;
  height: 22px;
  background: #ffffff;
  border: 1.5px solid #0f172a;
  box-shadow: 0 1px 4px rgba(0,0,0,0.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s;
}

.terminal-pin-wrapper:hover .terminal-pin-icon {
  transform: scale(1.2);
}

.terminal-pin-label {
  margin-top: 3px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(4px);
  border: 1px solid #cbd5e1;
  border-radius: 3px;
  padding: 1px 5px;
  font-size: 9px;
  font-family: var(--font-mono);
  font-weight: 600;
  color: #0f172a;
  white-space: nowrap;
  pointer-events: none;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.6);
}

/* Custom Terminal Popup in Leaflet */
.custom-terminal-popup {
  padding: 4px 2px;
  color: #0f172a;
  font-family: var(--font-sans);
  min-width: 200px;
}

.term-pop-badge {
  display: inline-block;
  font-size: 9px;
  font-family: var(--font-mono);
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 4px;
  margin-bottom: 6px;
  text-transform: uppercase;
}

.custom-vessel-marker {
  width: 18px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  cursor: pointer;
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  transform-origin: center center;
}

.ship-svg-wrapper {
  width: 14px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ship-anomaly-beacon {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 24px;
  height: 24px;
  transform: translate(-50%, -50%);
  border: 1.5px solid var(--color-rose);
  border-radius: 50%;
  animation: beacon-pulse 1.8s infinite ease-out;
}

@keyframes beacon-pulse {
  0% {
    transform: translate(-50%, -50%) scale(0.6);
    opacity: 1;
  }
  100% {
    transform: translate(-50%, -50%) scale(1.6);
    opacity: 0;
  }
}

/* ==========================================================================
   VESSELFINDER STYLE WEATHER OVERLAY DROPDOWN
   ========================================================================== */
.vf-weather-dropdown-container {
  position: relative;
  display: inline-block;
}

.weather-tag-badge {
  font-size: 9px;
  background: #f1f5f9;
  color: #475569;
  padding: 1px 5px;
  border-radius: 4px;
  margin-left: 4px;
  font-weight: 700;
  font-family: var(--font-mono);
  border: 1px solid #cbd5e1;
}

.weather-tag-badge.active-temp {
  background: #ffedd5;
  color: #c2410c;
  border-color: #fdba74;
}

.weather-tag-badge.active-wind {
  background: #e0f2fe;
  color: #0369a1;
  border-color: #7dd3fc;
}

.weather-tag-badge.active-wave {
  background: #dbeafe;
  color: #1d4ed8;
  border-color: #93c5fd;
}

.vf-weather-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  background: #1e3a8a;
  color: #ffffff;
  border-radius: 6px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
  overflow: hidden;
  min-width: 160px;
  z-index: 1000;
  border: 1px solid rgba(255, 255, 255, 0.15);
  font-family: 'Inter', sans-serif;
}

.vf-weather-item {
  padding: 9px 14px;
  font-size: 12px;
  font-weight: 700;
  color: #ffffff;
  cursor: pointer;
  transition: background 0.15s;
  display: flex;
  align-items: center;
  gap: 8px;
  user-select: none;
}

.vf-weather-item:hover {
  background: #2563eb;
}

.vf-weather-item.active {
  background: #3b82f6;
  font-weight: 800;
}

.vf-w-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #93c5fd;
  display: inline-block;
}

/* ==========================================================================
   MYSHIPTRACKING STYLE HOVER TOOLTIP
   ========================================================================== */
.leaflet-tooltip.myship-hover-tooltip {
  background: #ffffff !important;
  color: #0f172a !important;
  border: 1px solid #cbd5e1 !important;
  border-radius: 8px !important;
  box-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.25), 0 4px 10px rgba(15, 23, 42, 0.1) !important;
  padding: 0 !important;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
  pointer-events: none !important;
  opacity: 1 !important;
}

.leaflet-tooltip-top.myship-hover-tooltip::before {
  border-top-color: #ffffff !important;
}

.leaflet-tooltip-bottom.myship-hover-tooltip::before {
  border-bottom-color: #ffffff !important;
}

.myship-tooltip-box {
  min-width: 250px;
  max-width: 320px;
  padding: 10px 14px;
  background: #ffffff;
  border-radius: 8px;
}

.myship-tt-title {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.2px;
  text-transform: uppercase;
}

.myship-tt-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.myship-tt-divider {
  height: 1px;
  background: #e2e8f0;
  margin: 7px 0 8px 0;
}

.myship-tt-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 11px;
}

.myship-tt-table tr {
  line-height: 1.6;
}

.myship-tt-lbl {
  color: #64748b;
  font-weight: 500;
  white-space: nowrap;
  vertical-align: top;
  padding-right: 2px;
}

.myship-tt-sep {
  color: #94a3b8;
  font-weight: 600;
  padding: 0 5px 0 2px;
  vertical-align: top;
  width: 6px;
}

.myship-tt-val {
  color: #0f172a;
  font-weight: 600;
  vertical-align: top;
  word-break: break-word;
}

.myship-tt-footer {
  margin-top: 8px;
  padding-top: 6px;
  border-top: 1px dashed #e2e8f0;
  font-size: 9.5px;
  color: #0284c7;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ==========================================================================
   VESSELFINDER MARINE WEATHER LEGEND SCALE BAR
   ========================================================================== */
.weather-legend-bar {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(10, 15, 25, 0.94);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 4px;
  padding: 5px 12px 7px 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  z-index: 500;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.6);
  font-family: var(--font-mono);
  min-width: 290px;
  pointer-events: none;
}

.weather-legend-header {
  display: flex;
  align-items: center;
  gap: 12px;
}

.legend-unit {
  font-size: 11px;
  font-weight: 800;
  color: #ffffff;
  min-width: 26px;
}

.legend-scale-row {
  display: flex;
  justify-content: space-between;
  flex: 1;
  font-size: 10px;
  font-weight: 700;
  color: #ffffff;
  padding: 0 1px;
}

.legend-gradient-bar {
  height: 9px;
  border-radius: 2px;
  width: 100%;
  border: 1px solid rgba(0, 0, 0, 0.4);
}

.legend-gradient-bar.grad-wind {
  background: linear-gradient(to right, 
    #050814 0%, 
    #1d2d5a 12%, 
    #3b28cc 25%, 
    #7c1cc7 38%, 
    #c01b7a 50%, 
    #e11d48 62%, 
    #ea580c 75%, 
    #eab308 88%, 
    #ffffff 100%
  );
}

.legend-gradient-bar.grad-temp {
  background: linear-gradient(to right, #1e3a8a 0%, #0284c7 25%, #10b981 50%, #f59e0b 75%, #ef4444 100%);
}

.legend-gradient-bar.grad-waves {
  background: linear-gradient(to right, #047857 0%, #0284c7 30%, #3b82f6 55%, #8b5cf6 75%, #ec4899 90%, #ef4444 100%);
}

/* Canvas for VesselFinder Wind Particle Streamline Animation */
#windyMap.wind-particle-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 400; /* above basemap, below markers */
}



/* ==========================================================================
   V4.3.0 UPGRADES: VOYAGE TRACK HEADER FIX, SATELLITE HUD, PLAYBACK CONTROLS
   ========================================================================== */
.mst-voyage-track-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 12px;
}

.mst-voyage-port {
  flex: 1;
  min-width: 85px;
  max-width: 155px;
}

.mst-voyage-port.dest {
  text-align: right;
}

.mst-port-title {
  font-family: var(--font-heading);
  font-size: 12.5px;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.25;
  margin-bottom: 3px;
  word-break: break-word;
}

.mst-progress-segment {
  flex: 0 0 124px;
  min-width: 120px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 14px 4px 0 4px;
}

.mst-line-fill {
  height: 100%;
  background: #0284c7;
  border-radius: 3px;
  transition: width 0.4s ease;
}

.mst-ship-anchor-node {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #0f172a;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #ffffff;
  color: #ffffff;
}

/* Clean horizontal row: % on left, status on right */
.mst-progress-badge-wrapper {
  display: flex !important;
  flex-direction: row !important;
  justify-content: space-between !important;
  align-items: center !important;
  width: 100% !important;
  margin-top: 8px !important;
}

.mst-pct-pill {
  font-size: 10px;
  font-family: var(--font-mono);
  font-weight: 700;
  color: #0f172a;
  background: #e2e8f0;
  padding: 2px 9px;
  border-radius: 10px;
  white-space: nowrap;
  line-height: 1.3;
}

.mst-delay-pill {
  font-size: 9px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 10px;
  background: rgba(16, 185, 129, 0.15);
  color: var(--color-emerald);
  border: 1px solid rgba(16, 185, 129, 0.35);
  white-space: nowrap;
  text-align: center;
  line-height: 1.3;
}

.mst-v-item-span2 {
  grid-column: span 2;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  padding: 6px 8px;
}

/* Playback Bar Upgrades */
.playback-bar {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(120px);
  z-index: 650;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(16px);
  border: 1px solid #cbd5e1;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.22);
  border-radius: 22px;
  padding: 12px 22px;
  display: flex;
  align-items: center;
  gap: 16px;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  min-width: 680px;
}

.playback-bar.active {
  transform: translateX(-50%) translateY(0);
}

.playback-play-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #0284c7;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 15px;
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.35);
  transition: transform 0.15s, background 0.15s;
}

.playback-play-btn:hover {
  transform: scale(1.08);
  background: #0369a1;
}

.playback-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.playback-route-label {
  font-size: 11px;
  font-weight: 700;
  color: #0f172a;
  letter-spacing: 0.2px;
}

.playback-speed-group {
  display: flex;
  gap: 4px;
}

.playback-speed-btn {
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  color: #475569;
  font-size: 10px;
  font-family: var(--font-mono);
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s;
}

.playback-speed-btn.active,
.playback-speed-btn:hover {
  background: #0f172a;
  color: #ffffff;
  border-color: #0f172a;
}

.playback-slider {
  width: 100%;
  accent-color: #0284c7;
  cursor: pointer;
}

.playback-time-labels {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 10px;
  font-family: var(--font-mono);
  color: #475569;
}

.playback-status-text {
  color: #0284c7 !important;
  font-weight: 700;
  background: #e0f2fe;
  padding: 2px 8px;
  border-radius: 6px;
  border: 1px solid #bae6fd;
}

/* VesselFinder-Style Voyage & Satellite ETA Floating Box */
.vf-voyage-hud-box {
  display: none !important;
  margin-top: 10px;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  padding: 12px 14px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.18);
  color: #0f172a;
  font-size: 11px;
}

.vf-vh-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.vf-vh-ship {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 800;
  font-size: 12px;
  color: #0f172a;
}

.vf-vh-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #0284c7;
  box-shadow: 0 0 6px rgba(2, 132, 199, 0.6);
}

.vf-vh-sat-tag {
  font-size: 9px;
  font-family: var(--font-mono);
  font-weight: 700;
  background: #e0f2fe;
  color: #0369a1;
  border: 1px solid #7dd3fc;
  padding: 1px 6px;
  border-radius: 4px;
}

.vf-vh-ports {
  display: flex;
  flex-direction: column;
  gap: 4px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  padding: 6px 8px;
}

.vf-vh-port-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  font-size: 10.5px;
}

.vf-vh-port-lbl {
  font-size: 9px;
  font-weight: 800;
  color: #64748b;
  letter-spacing: 0.4px;
}

.vf-vh-port-val {
  font-weight: 700;
  color: #0f172a;
  text-align: right;
}

.vf-vh-divider {
  height: 1px;
  background: #e2e8f0;
  margin: 8px 0;
}

.vf-vh-metrics {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.vf-vh-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
}

.vf-vh-k {
  color: #475569;
  font-weight: 600;
}

.vf-vh-v {
  font-family: var(--font-mono);
  font-weight: 700;
  color: #0f172a;
}

.vf-vh-legend {
  margin-top: 8px;
  padding-top: 6px;
  border-top: 1px dashed #cbd5e1;
  display: flex;
  justify-content: space-between;
  font-size: 9.5px;
  color: #475569;
  font-weight: 600;
}

.vf-leg-item {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.vf-leg-line {
  display: inline-block;
  width: 18px;
  height: 3px;
  border-radius: 2px;
}

.vf-leg-line.past {
  background: #0284c7;
}

.vf-leg-line.pred {
  background: repeating-linear-gradient(90deg, #ec4899, #ec4899 4px, transparent 4px, transparent 8px);
}

/* Map Port Pins & Animated Ship Callout */
.voyage-port-marker-wrap {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  transform: translate(-50%, -100%);
  pointer-events: auto;
}

.voyage-port-pin {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 6px 12px 7px 12px;
  border-radius: 8px;
  font-family: var(--font-main);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  white-space: nowrap;
  background: rgba(15, 23, 42, 0.94);
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.18);
  min-width: 145px;
}

.voyage-port-pin.origin {
  border: 1px solid rgba(56, 189, 248, 0.45);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4), 0 0 10px rgba(14, 165, 233, 0.15);
}

.voyage-port-pin.dest {
  border: 1px solid rgba(244, 114, 182, 0.45);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4), 0 0 10px rgba(236, 72, 153, 0.15);
}

.vp-top-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.vp-role-tag {
  font-family: var(--font-main);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.voyage-port-pin.origin .vp-role-tag {
  color: #38bdf8;
}

.voyage-port-pin.dest .vp-role-tag {
  color: #f472b6;
}

.vp-locode-badge {
  font-family: var(--font-mono);
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.4px;
  padding: 1.5px 6px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #e2e8f0;
}

.vp-main-row {
  display: flex;
  align-items: center;
  gap: 6px;
}

.vp-flag {
  font-size: 13px;
  line-height: 1;
}

.vp-name {
  font-family: var(--font-main);
  font-size: 12.5px;
  font-weight: 600;
  color: #f8fafc;
  letter-spacing: -0.1px;
  line-height: 1.35;
}

.voyage-port-stem {
  width: 2px;
  height: 8px;
}

.voyage-port-stem.origin {
  background: #0ea5e9;
}

.voyage-port-stem.dest {
  background: #ec4899;
}

.voyage-port-beacon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #ffffff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
  margin-bottom: -12px;
}

.voyage-port-beacon.origin {
  background: linear-gradient(135deg, #0284c7, #0ea5e9);
  box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.28), 0 2px 10px rgba(0, 0, 0, 0.5);
}

.voyage-port-beacon.dest {
  background: linear-gradient(135deg, #db2777, #ec4899);
  box-shadow: 0 0 0 4px rgba(236, 72, 153, 0.28), 0 2px 10px rgba(0, 0, 0, 0.5);
}

.playback-ship-callout {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(15, 23, 42, 0.94);
  color: #ffffff;
  border: 1px solid #38bdf8;
  border-radius: 6px;
  padding: 3px 8px;
  font-size: 10px;
  font-family: var(--font-mono);
  font-weight: 700;
  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.45);
  pointer-events: none;
}

/* ==========================================================================
   VESSELFINDER SATELLITE DOSSIER MODULES (PAST TRACK DURATION, PORT CALLS,
   TERMINAL & BERTH ARRIVALS, PROXIMITY EVENTS, VESSEL PARTICULARS)
   ========================================================================== */
.mst-card-header-flex {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.sat-badge-pill {
  font-size: 9px;
  font-family: var(--font-mono);
  font-weight: 800;
  letter-spacing: 0.6px;
  color: #0369a1;
  background: #e0f2fe;
  border: 1px solid #7dd3fc;
  padding: 2px 7px;
  border-radius: 10px;
  text-transform: uppercase;
}

.past-track-duration-Group {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 6px;
  margin-bottom: 8px;
}
.past-track-range-control { margin: 10px 0; font-size: 11px; color: var(--text-secondary); }
.past-track-range-control label { display:block; margin-bottom:8px; }
#pastTrackDayRange { width:100%; --color-base-content:var(--color-sky); --color-base-100:var(--bg-secondary); --color-base-300:var(--border-subtle); --radius-selector:6px; }
.past-track-range-labels { display:flex; justify-content:space-between; color:var(--text-muted); margin-top:5px; }
#pastTrackCoverageNote { color:var(--text-muted); margin-top:8px; line-height:1.5; }

.pt-dur-btn {
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  color: #334155;
  font-size: 10.5px;
  font-weight: 700;
  padding: 6px 4px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s;
}

.pt-dur-btn:hover {
  background: #e2e8f0;
  color: #0f172a;
}

.pt-dur-btn.active {
  background: #0284c7;
  color: #ffffff;
  border-color: #0284c7;
  box-shadow: 0 2px 8px rgba(2, 132, 199, 0.35);
}

.sat-events-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sat-event-item {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  padding: 9px 12px;
  font-size: 11px;
  color: #1e293b;
}

.sat-event-item.berth { border-color: #e2e8f0; }

.sat-event-item.proximity { border-color: #e2e8f0; }

.sat-ev-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 4px;
}

.sat-ev-title {
  font-weight: 700;
  color: #0f172a;
  font-size: 11.5px;
  line-height: 1.3;
}

.sat-ev-tag {
  font-size: 9.5px;
  font-family: var(--font-mono);
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 4px;
  background: #e2e8f0;
  color: #334155;
  white-space: nowrap;
}

.sat-ev-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px 10px;
  font-size: 10.5px;
  color: #475569;
  margin-top: 4px;
}

.sat-ev-meta b {
  color: #0f172a;
  font-family: var(--font-mono);
}

/* ==========================================================================
   PUSAT ALERT & ANOMALI: DRAUGHT TENGAH LAUT & PROXIMITY MITIGATION STYLES
   ========================================================================== */
.mitigation-protocol-banner {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
  gap: 14px;
  margin-bottom: 16px;
}

.mitigation-protocol-col {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  padding: 14px 16px;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.04);
}

.mp-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 6px;
}

.mp-badge {
  font-size: 11px;
  font-weight: 800;
  padding: 3px 9px;
  border-radius: 5px;
  letter-spacing: 0.3px;
}

.mp-badge-draught {
  background: rgba(239, 68, 68, 0.12);
  color: #dc2626;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.mp-badge-prox {
  background: rgba(2, 132, 199, 0.12);
  color: #0284c7;
  border: 1px solid rgba(2, 132, 199, 0.3);
}

.mp-threshold {
  font-size: 10.5px;
  font-family: var(--font-mono);
  font-weight: 700;
  color: #475569;
  background: #f1f5f9;
  padding: 2px 7px;
  border-radius: 4px;
}

.mp-desc {
  font-size: 12px;
  color: #475569;
  line-height: 1.45;
  margin-bottom: 8px;
}

.mp-steps-inline {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5px 12px;
  font-size: 11px;
  color: #1e293b;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  padding: 8px 10px;
}

.alert-category-filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.alert-cat-pill {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  color: #334155;
  padding: 7px 14px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
}

.alert-cat-pill:hover {
  border-color: #0284c7;
  color: #0284c7;
}

.alert-cat-pill.active {
  background: #0284c7;
  border-color: #0284c7;
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(2, 132, 199, 0.25);
}

.alert-mitigation-badge {
  font-size: 10px;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 4px;
  background: rgba(2, 132, 199, 0.12);
  color: #0284c7;
  border: 1px solid rgba(2, 132, 199, 0.28);
}

.alert-telemetry-box {
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  border-left: 3.5px solid #ef4444;
  border-radius: 6px;
  padding: 8px 10px;
  margin: 8px 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.alert-tel-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 11.5px;
}

.alert-tel-label {
  color: #475569;
  font-weight: 700;
}

.alert-tel-val {
  color: #0f172a;
  font-family: var(--font-mono);
  font-size: 11px;
}

.alert-tel-delta {
  color: #dc2626;
  font-weight: 800;
  margin-left: 4px;
}

.alert-mitigation-box {
  background: rgba(16, 185, 129, 0.06);
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-left: 3.5px solid #10b981;
  border-radius: 6px;
  padding: 8px 10px;
  margin-bottom: 6px;
}

.alert-mitigation-title {
  font-size: 11.5px;
  font-weight: 800;
  color: #065f46;
  margin-bottom: 5px;
}

.alert-mitigation-steps {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.alert-mitigation-step {
  font-size: 11px;
  color: #1e293b;
  line-height: 1.4;
}

/* ==========================================================================
   CLEAN & SIMPLIFIED EXECUTIVE ALERT CARD DESIGN WITH GEMINI AI
   ========================================================================== */
.alert-card-clean {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.05);
  transition: transform 0.15s, box-shadow 0.15s;
  position: relative;
}

.alert-card-clean:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.09);
}

/* Uniform Clean Card Borders (Tanpa Border Tebal di Kiri) */
.alert-card-clean.theme-safe,
.alert-card-clean.theme-warning,
.alert-card-clean.theme-critical,
.alert-card-clean.severity-CRITICAL,
.alert-card-clean.severity-HIGH,
.alert-card-clean.severity-MEDIUM {
  border: 1px solid var(--border-subtle, #cbd5e1) !important;
}

.alert-card-top-clean {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  padding-bottom: 6px;
  border-bottom: 1px solid #f1f5f9;
}

.alert-ship-badge-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}

.alert-ship-name-bold {
  font-family: var(--font-heading, 'Inter', sans-serif);
  font-size: 15px;
  font-weight: 700;
  color: #0f172a;
  letter-spacing: -0.2px;
}

/* AI Status Header Badge / Pill */
.ai-status-pill {
  font-size: 11px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 4px;
  letter-spacing: 0.2px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.ai-status-pill.theme-safe {
  background: #dcfce7 !important;
  color: #15803d !important;
  border: 1px solid #bbf7d0 !important;
}

.ai-status-pill.theme-warning {
  background: #fef3c7 !important;
  color: #b45309 !important;
  border: 1px solid #fde68a !important;
}

.ai-status-pill.theme-critical {
  background: #fee2e2 !important;
  color: #b91c1c !important;
  border: 1px solid #fecaca !important;
}

.alert-event-timestamp {
  font-size: 11px;
  color: #475569;
  font-family: var(--font-mono, monospace);
  display: flex;
  align-items: center;
  gap: 4px;
}

.alert-rel-time {
  color: #64748b;
  font-weight: 500;
}

.alert-clean-title {
  margin: 0;
  font-size: 13.5px;
  font-weight: 600;
  color: #1e293b;
  line-height: 1.4;
}

/* Simple Telemetry Metrics */
.alert-telemetry-simple {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  padding: 8px 10px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.ats-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 11.5px;
}

.ats-label {
  font-weight: 600;
  color: #475569;
}

.ats-val {
  color: #0f172a;
}

.ats-delta {
  color: #dc2626;
  font-weight: 700;
}

.ats-coords {
  color: #64748b;
  font-family: var(--font-mono, monospace);
  font-size: 10px;
}

/* AI Maritime Assistance Panel */
.alert-ai-box {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: all 0.2s ease;
}

.alert-ai-box.theme-safe {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
}

.alert-ai-box.theme-warning {
  background: #fffbeb;
  border: 1px solid #fde68a;
}

.alert-ai-box.theme-critical {
  background: #fef2f2;
  border: 1px solid #fecaca;
}

.ai-box-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.ai-box-tag {
  font-size: 11px;
  font-weight: 700;
  color: #0284c7;
  background: #e0f2fe;
  border: 1px solid #bae6fd;
  padding: 2.5px 8px;
  border-radius: 4px;
  letter-spacing: 0.3px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.btn-ai-reanalyze {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  color: #0284c7;
  font-size: 10.5px;
  font-weight: 600;
  border-radius: 4px;
  padding: 2px 8px;
  cursor: pointer;
  transition: all 0.15s;
}

.btn-ai-reanalyze:hover {
  background: #0284c7;
  color: #ffffff;
  border-color: #0284c7;
}

/* Integrated AI Status Evaluation Inner Box */
.ai-eval-inner {
  border-radius: 6px;
  padding: 8px 10px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.ai-eval-inner.theme-safe {
  background: #ffffff;
  border: 1px solid #bbf7d0;
}

.ai-eval-inner.theme-warning {
  background: #ffffff;
  border: 1px solid #fde68a;
}

.ai-eval-inner.theme-critical {
  background: #ffffff;
  border: 1px solid #fecaca;
}

.ai-eval-badge-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}

.ai-eval-badge {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.2px;
}

.ai-eval-inner.theme-safe .ai-eval-badge { color: #15803d; }
.ai-eval-inner.theme-warning .ai-eval-badge { color: #b45309; }
.ai-eval-inner.theme-critical .ai-eval-badge { color: #b91c1c; }

.ai-eval-conf {
  font-size: 10.5px;
  color: #64748b;
}

.ai-eval-reason {
  font-size: 11.5px;
  line-height: 1.45;
  color: #1e293b;
}

.ai-box-summary {
  font-size: 12px;
  color: #334155;
  line-height: 1.5;
  background: #ffffff;
  padding: 6px 10px;
  border-radius: 5px;
  border: 1px solid #e2e8f0;
}

.ai-box-recommendation {
  font-size: 11.5px;
  color: #0f172a;
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  border-left: 3.5px solid #0284c7;
  border-radius: 4px;
  padding: 6px 10px;
  line-height: 1.45;
}

.alert-card-footer-clean {
  display: flex;
  justify-content: stretch;
  align-items: center;
  border-top: 1px solid #f1f5f9;
  padding-top: 10px;
  margin-top: 4px;
}

.alert-card-footer-clean .btn-focus-map {
  width: 100%;
  justify-content: center;
  padding: 8px 14px;
  font-size: 12px;
  background: #ffffff;
  border: 1px solid #0284c7;
  color: #0284c7;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.alert-card-footer-clean .btn-focus-map:hover {
  background: #0284c7;
  border-color: #0284c7;
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(2, 132, 199, 0.25);
}

/* ==========================================================================
   CLEAN VESSEL ADD CONFIRMATION MODAL & TOAST NOTIFICATION
   ========================================================================== */
.vessel-confirm-dialog {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  width: 360px;
  max-width: 92vw;
  padding: 26px 24px 22px;
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.18), 0 4px 12px rgba(15, 23, 42, 0.08);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  animation: modal-enter 0.16s cubic-bezier(0.16, 1, 0.3, 1);
}

.vc-icon-wrap {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  color: var(--text-primary);
}

.vc-label {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 8px;
}

.vc-ship-name {
  font-family: var(--font-heading);
  font-size: 19px;
  font-weight: 800;
  color: var(--text-primary);
  background: var(--bg-tertiary);
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-md);
  padding: 11px 18px;
  width: 100%;
  margin-bottom: 20px;
  letter-spacing: 0.3px;
  word-break: break-word;
}

.vc-actions {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: 10px;
  width: 100%;
}

.vc-btn-cancel {
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 600;
  padding: 10px 14px;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.15s ease;
}

.vc-btn-cancel:hover {
  background: var(--bg-tertiary);
  border-color: #94a3b8;
  color: var(--text-primary);
}

.vc-btn-confirm {
  background: #0f172a;
  border: 1px solid #0f172a;
  color: #ffffff;
  font-size: 13px;
  font-weight: 700;
  padding: 10px 16px;
  border-radius: var(--radius-md);
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.15);
  transition: all 0.15s ease;
}

.vc-btn-confirm:hover {
  background: #1e293b;
  border-color: #1e293b;
  transform: translateY(-1px);
}

.vc-btn-confirm:disabled {
  opacity: 0.65;
  cursor: wait;
}

.vessel-delete-modal {
  --color-base-100: var(--bg-card);
  --color-base-content: var(--text-primary);
  --color-base-300: var(--border-subtle);
  --color-error: var(--color-rose);
  --color-error-content: #fff;
  --radius-box: var(--radius-lg);
  font-family: var(--font-main);
}

.vessel-delete-modal::backdrop {
  background: rgba(15, 23, 42, 0.42);
  backdrop-filter: blur(3px);
}

.vessel-delete-modal .vessel-confirm-dialog {
  width: 400px;
  max-width: calc(100vw - 32px);
}

.vessel-delete-modal .vessel-delete-icon {
  color: var(--color-error);
  background: color-mix(in srgb, var(--color-error) 8%, var(--bg-card));
  border-color: color-mix(in srgb, var(--color-error) 18%, var(--border-subtle));
}

.vessel-delete-title {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 16px;
}

.vessel-delete-modal .vc-ship-name {
  margin-bottom: 12px;
  border-color: var(--border-subtle);
}

.vessel-delete-description {
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-muted);
  margin-bottom: 22px;
}

.vessel-delete-modal .vc-actions {
  margin-top: 0;
}

.vessel-delete-modal .dui-btn {
  height: auto;
  min-height: 42px;
  font-family: inherit;
}

.vessel-delete-modal .vessel-delete-submit {
  background: var(--color-error);
  border-color: var(--color-error);
  color: var(--color-error-content);
  box-shadow: none;
}

.vessel-delete-modal .vessel-delete-submit:hover {
  background: color-mix(in srgb, var(--color-error) 85%, var(--text-primary));
  transform: none;
}

.vessel-delete-modal .dui-btn:focus-visible {
  outline: 2px solid var(--color-sky);
  outline-offset: 3px;
}

.mst-hero-banner { flex-wrap: wrap; gap: 12px; }
.mst-hero-actions { flex-shrink: 0; flex-wrap: wrap; }
.mst-hero-actions .mst-sync-btn {
  min-height: 28px;
  height: auto;
  color: var(--color-sky);
  background: var(--bg-card);
  font-family: var(--font-main);
}
.mst-sync-btn:disabled { opacity: .6; cursor: wait; }
.mst-sync-btn.is-syncing svg { animation: drawer-sync-spin 1s linear infinite; }
@keyframes drawer-sync-spin { to { transform: rotate(360deg); } }
.mst-detection-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  margin-bottom: 14px;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  background: var(--bg-card);
}
.mst-detection-copy { display: grid; gap: 4px; min-width: 0; }
.mst-detection-label { color: var(--text-muted); font-size: 10px; font-weight: 700; letter-spacing: .6px; }
#drawerDetectionTime { color: var(--text-primary); font: 600 12px var(--font-mono); }
#drawerDetectionAge { color: var(--text-muted); font-size: 11px; }
.mst-detection-status { flex-shrink: 0; font-size: 10px; font-weight: 700; color: var(--text-muted); }
.mst-detection-status[data-freshness="fresh"] { color: var(--color-emerald); }
.mst-detection-status[data-freshness="old"] { color: var(--color-amber); }
.mst-detection-status[data-freshness="stale"] { color: var(--color-rose); }
@media (max-width: 480px) {
  .mst-detection-card { align-items: flex-start; }
  .mst-detection-status { max-width: 90px; text-align: right; }
}

.app-toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 3000;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

.app-toast {
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-left: 4px solid #0f172a;
  color: var(--text-primary);
  padding: 12px 18px;
  border-radius: var(--radius-md);
  font-size: 13px;
  font-weight: 600;
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.14);
  display: flex;
  align-items: center;
  gap: 10px;
  animation: modal-enter 0.18s ease-out;
}

/* ==========================================================================
   TOP-RIGHT SETTINGS MENU BUTTON & MODAL DIALOG
   ========================================================================== */
.btn-header-settings {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #f1f5f9;
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  padding: 5px 12px;
  border-radius: var(--radius-sm);
  font-family: var(--font-main);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.18s ease;
}

.btn-header-settings:hover {
  background: #0f172a;
  border-color: #0f172a;
  color: #ffffff;
}

.settings-modal-dialog {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-left: 4px solid #0284c7;
  border-radius: var(--radius-lg);
  width: 780px;
  max-width: 94vw;
  box-shadow: 0 22px 45px rgba(15, 23, 42, 0.2);
  overflow: hidden;
  animation: modal-enter 0.18s cubic-bezier(0.16, 1, 0.3, 1);
}

.settings-modal-header {
  padding: 18px 24px;
  border-bottom: 1px solid #e2e8f0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #f8fafc;
}

.btn-close-settings {
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  width: 30px;
  height: 30px;
  border-radius: 6px;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
}

.btn-close-settings:hover {
  background: #0f172a;
  border-color: #0f172a;
  color: #ffffff;
}

.settings-modal-body {
  padding: 22px 24px 24px;
}

/* Header Auto-Sync Interval Select Dropdown */
.sync-interval-select {
  background: transparent;
  border: 1px solid transparent;
  color: #0f172a;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  padding: 2px 4px;
  border-radius: 4px;
  outline: none;
  transition: all 0.15s ease;
}

.sync-interval-select:hover, .sync-interval-select:focus {
  background: #ffffff;
  border-color: #cbd5e1;
}

/* Settings Modal Interval Pill Buttons */
.sync-interval-btn {
  background: #ffffff;
  border: 1.5px solid #cbd5e1;
  color: #334155;
  padding: 7px 16px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  font-family: var(--font-main);
  cursor: pointer;
  transition: all 0.18s ease;
}

.sync-interval-btn:hover {
  background: #f1f5f9;
  border-color: #94a3b8;
  color: #0f172a;
}

.sync-interval-btn.active {
  background: #0f172a;
  border-color: #0f172a;
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.2);
}


/* Category Filter Chips with Maritime Color Dot Indicator */
.chip-btn {
  display: inline-flex !important;
  align-items: center !important;
  gap: 5px !important;
}

.chip-color-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
  box-shadow: 0 0 3px rgba(0, 0, 0, 0.3);
}

/* ==========================================================================
   SAT-AIS TELEMETRY REFRESH ANIMATED LOADING SCREEN (POPUP OVERLAY)
   ========================================================================== */
.sync-loading-overlay {
  z-index: 10050 !important;
  background: rgba(15, 23, 42, 0.48) !important;
  backdrop-filter: blur(6px) !important;
  -webkit-backdrop-filter: blur(6px) !important;
  transition: opacity 0.22s ease;
}

.sync-loading-card {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 16px;
  width: 380px;
  max-width: 90vw;
  padding: 30px 24px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.22), 0 4px 12px rgba(15, 23, 42, 0.06);
  animation: modal-enter 0.22s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  position: relative;
  overflow: hidden;
}

/* Radar & Satellite Pulse Animation */
.sync-radar-container {
  position: relative;
  width: 84px;
  height: 84px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}

.radar-pulse-ring {
  position: absolute;
  border-radius: 50%;
  border: 1.5px solid #0284c7;
  pointer-events: none;
}

.radar-pulse-ring.ring-1 {
  width: 48px;
  height: 48px;
  animation: radarPing 2.2s cubic-bezier(0, 0.2, 0.8, 1) infinite;
}

.radar-pulse-ring.ring-2 {
  width: 68px;
  height: 68px;
  animation: radarPing 2.2s cubic-bezier(0, 0.2, 0.8, 1) infinite 0.7s;
}

.radar-pulse-ring.ring-3 {
  width: 88px;
  height: 88px;
  animation: radarPing 2.2s cubic-bezier(0, 0.2, 0.8, 1) infinite 1.4s;
}

@keyframes radarPing {
  0% { transform: scale(0.65); opacity: 0.85; }
  100% { transform: scale(1.35); opacity: 0; }
}

.radar-scanner-beam {
  position: absolute;
  width: 82px;
  height: 82px;
  border-radius: 50%;
  background: conic-gradient(from 0deg, rgba(2, 132, 199, 0) 0deg, rgba(2, 132, 199, 0) 260deg, rgba(2, 132, 199, 0.25) 360deg);
  animation: radarSweep 1.6s linear infinite;
  pointer-events: none;
}

@keyframes radarSweep {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.radar-center-icon {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: #f0f9ff;
  border: 1.5px solid #bae6fd;
  color: #0284c7;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  box-shadow: 0 4px 14px rgba(2, 132, 199, 0.16);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.sync-radar-container.is-loading .radar-center-icon svg {
  animation: radarIconSpin 2s linear infinite;
}

@keyframes radarIconSpin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* Titles */
.sync-loading-title {
  font-family: var(--font-heading, 'Inter', sans-serif);
  font-size: 16px;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 6px 0;
  letter-spacing: -0.2px;
}

.sync-loading-subtitle {
  font-size: 12px;
  color: #64748b;
  line-height: 1.45;
  margin: 0 0 16px 0;
  max-width: 320px;
}

/* Progress Bar */
.sync-progress-track {
  width: 100%;
  height: 6px;
  background: #f1f5f9;
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 14px;
}

.sync-progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #0284c7 0%, #06b6d4 50%, #10b981 100%);
  border-radius: 999px;
  transition: width 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Step Badge */
.sync-step-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 11.5px;
  font-weight: 600;
  color: #0369a1;
  background: #f0f9ff;
  border: 1px solid #bae6fd;
  padding: 5px 12px;
  border-radius: 20px;
  font-family: var(--font-mono, monospace);
  max-width: 100%;
  transition: all 0.2s ease;
}

.sync-step-dot {
  width: 6.5px;
  height: 6.5px;
  border-radius: 50%;
  background: #0284c7;
  animation: stepDotBlink 0.9s ease-in-out infinite alternate;
  flex-shrink: 0;
}

@keyframes stepDotBlink {
  0% { opacity: 0.3; transform: scale(0.85); }
  100% { opacity: 1; transform: scale(1.15); }
}

/* Success State */
.sync-loading-card.state-success .radar-pulse-ring {
  border-color: #34d399;
}

.sync-loading-card.state-success .radar-scanner-beam {
  display: none;
}

.sync-loading-card.state-success .radar-center-icon {
  background: #dcfce7;
  border-color: #86efac;
  color: #15803d;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.2);
  transform: scale(1.08);
}

.sync-loading-card.state-success .sync-step-badge {
  background: #dcfce7;
  border-color: #bbf7d0;
  color: #15803d;
}

.sync-loading-card.state-success .sync-step-dot {
  background: #10b981;
  animation: none;
}

/* Sync Buttons Continuous Spin */
.btn-quick-sync.is-syncing svg,
.btn-action-outline.is-syncing svg,
.hud-btn-sync.is-syncing {
  animation: spinSync 0.75s linear infinite !important;
}

@keyframes spinSync {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}


/* ==========================================================================
   AUTHENTICATION & LOGIN OVERLAY SCREEN
   ========================================================================== */
.login-overlay {
  position: fixed;
  inset: 0;
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: radial-gradient(circle at 50% 25%, #1e293b 0%, #0a0f1d 100%);
  overflow-y: auto;
}

.login-backdrop {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(2, 132, 199, 0.12) 1px, transparent 1px);
  background-size: 24px 24px;
  pointer-events: none;
}

.login-card {
  position: relative;
  z-index: 2;
  width: 440px;
  max-width: 95vw;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 14px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.4), 0 4px 16px rgba(15, 23, 42, 0.1);
  padding: 34px 32px 30px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.login-brand {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.login-logo-circle {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: #f0f9ff;
  border: 1px solid #bae6fd;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 4px;
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.15);
}

.login-app-title {
  font-family: var(--font-heading, sans-serif);
  font-size: 20px;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: 0.3px;
  margin: 0;
}

.login-app-subtitle {
  font-size: 12px;
  color: #64748b;
  margin: 0;
}

.login-alert-banner {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #b91c1c;
  font-size: 12.5px;
  padding: 9px 12px;
  border-radius: 6px;
  font-weight: 500;
  line-height: 1.4;
}

.login-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.login-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.login-field label {
  font-size: 11px;
  font-weight: 700;
  font-family: var(--font-mono, monospace);
  color: #334155;
  letter-spacing: 0.4px;
}

.login-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.login-input-icon {
  position: absolute;
  left: 12px;
  width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  color: #64748b;
}

.login-input-icon svg {
  display: block;
}

.login-input-wrap input {
  width: 100%;
  padding: 9.5px 36px 9.5px 12px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  font-size: 13.5px;
  background: #f8fafc;
  color: #0f172a;
  outline: none;
  transition: all 0.2s ease;
}

.login-input-wrap.has-left-icon input,
.login-input-wrap:has(.login-input-icon) input {
  padding-left: 38px;
}

.login-input-wrap input:focus {
  background: #ffffff;
  border-color: #0284c7;
  box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.18);
}

.btn-toggle-pwd {
  position: absolute;
  right: 6px;
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px;
  color: #64748b;
  border-radius: 6px;
  transition: all 0.15s ease;
}

.btn-toggle-pwd:hover {
  color: #0284c7;
  background-color: #f1f5f9;
}

.btn-toggle-pwd svg {
  display: block;
}

.login-remember-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: #475569;
}

.remember-check {
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}

.btn-login-submit {
  background: #0284c7;
  color: #ffffff;
  border: 1px solid #0284c7;
  padding: 11px 16px;
  border-radius: 8px;
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.3);
  transition: all 0.2s ease;
  margin-top: 4px;
}

.btn-login-submit:hover {
  background: #0369a1;
  border-color: #0369a1;
  box-shadow: 0 6px 18px rgba(2, 132, 199, 0.4);
}

.btn-login-submit svg {
  display: inline-block;
  flex-shrink: 0;
}

.login-default-hint {
  text-align: center;
  font-size: 11.5px;
  color: #64748b;
  background: #f8fafc;
  border: 1px dashed #cbd5e1;
  padding: 7px 12px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.login-default-hint code {
  background: #e2e8f0;
  padding: 1px 5px;
  border-radius: 4px;
  color: #0f172a;
  font-weight: 700;
}

/* ==========================================================================
   NAVBAR USER PROFILE & DROPDOWN MENU
   ========================================================================== */
.user-profile-menu-container {
  position: relative;
}

.btn-user-profile {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  border-radius: 20px;
  padding: 3px 10px 3px 4px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-user-profile:hover {
  background: #ffffff;
  border-color: #0284c7;
}

.user-avatar-circle {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #0284c7;
  color: #ffffff;
  font-weight: 700;
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.user-info-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
}

.user-display-name {
  font-size: 11.5px;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.2;
}

.user-display-role {
  font-size: 9.5px;
  font-weight: 600;
  color: #0284c7;
  line-height: 1;
}

.user-dropdown-menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  width: 220px;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.15);
  padding: 6px;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.user-dropdown-header {
  padding: 8px 10px;
  border-bottom: 1px solid #f1f5f9;
  margin-bottom: 4px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.user-dropdown-header strong {
  font-size: 12.5px;
  color: #0f172a;
}

.user-dropdown-item {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 8px 10px;
  border-radius: 6px;
  font-size: 12px;
  color: #334155;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.15s ease;
}

.user-dropdown-item:hover {
  background: #f1f5f9;
  color: #0f172a;
}

.user-dropdown-item.logout {
  color: #dc2626;
}

.user-dropdown-item.logout:hover {
  background: #fef2f2;
  color: #b91c1c;
}

.user-dropdown-divider {
  height: 1px;
  background: #f1f5f9;
  margin: 4px 0;
}

/* ==========================================================================
   UNIFIED 1-PAGE SYSTEM SETTINGS WINDOW (5 TABS)
   ========================================================================== */
.settings-unified-window {
  width: 1060px;
  max-width: 95vw;
  height: 730px;
  max-height: 90vh;
  background: #ffffff;
  border: 1px solid rgba(203, 213, 225, 0.85);
  border-radius: 16px;
  box-shadow: 0 25px 65px -12px rgba(15, 23, 42, 0.22), 0 0 0 1px rgba(15, 23, 42, 0.04);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
  animation: settingsModalPop 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes settingsModalPop {
  0% {
    opacity: 0;
    transform: scale(0.975) translateY(6px);
  }
  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.settings-window-header {
  height: 72px;
  padding: 0 26px;
  background: #ffffff;
  border-bottom: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
}

.sw-header-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.sw-icon-badge {
  width: 42px;
  height: 42px;
  border-radius: 11px;
  background: #f0f9ff;
  border: 1px solid #bae6fd;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #0284c7;
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(2, 132, 199, 0.12);
}

.sw-icon-badge svg {
  display: block;
}

.sw-title {
  margin: 0;
  font-size: 16.5px;
  font-weight: 700;
  color: #0f172a;
  letter-spacing: -0.2px;
}

.sw-subtitle {
  margin: 3px 0 0 0;
  font-size: 12px;
  color: #64748b;
  line-height: 1.35;
}

.sw-close-btn {
  width: 34px;
  height: 34px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  color: #64748b;
  cursor: pointer;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
}

.sw-close-btn:hover {
  color: #0f172a;
  background: #f1f5f9;
  border-color: #cbd5e1;
}

.sw-close-btn svg {
  display: block;
}

.settings-window-body {
  flex: 1;
  display: flex;
  overflow: hidden;
}

/* Sidebar Navigation */
.settings-sidebar-nav {
  width: 270px;
  background: #f8fafc;
  border-right: 1px solid #e2e8f0;
  padding: 16px 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  overflow-y: auto;
  flex-shrink: 0;
}

.sw-nav-item {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 10px;
  background: transparent;
  border: 1px solid transparent;
  cursor: pointer;
  text-align: left;
  transition: all 0.16s ease;
  position: relative;
}

.sw-nav-item:hover {
  background: #f1f5f9;
  border-color: #e2e8f0;
}

.sw-nav-item.active {
  background: #ffffff;
  border-color: #cbd5e1;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.05);
}

.sw-nav-item.active::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  bottom: 10px;
  width: 3.5px;
  background: #0284c7;
  border-radius: 0 4px 4px 0;
}

.sw-nav-icon {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #64748b;
  flex-shrink: 0;
  transition: all 0.16s ease;
}

.sw-nav-item:hover .sw-nav-icon {
  background: #ffffff;
  color: #0284c7;
  border-color: #bae6fd;
}

.sw-nav-item.active .sw-nav-icon {
  background: #e0f2fe;
  color: #0284c7;
  border-color: #7dd3fc;
  box-shadow: 0 1px 3px rgba(2, 132, 199, 0.15);
}

.sw-nav-icon svg {
  display: block;
}

.sw-nav-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.sw-nav-label {
  font-size: 13px;
  font-weight: 600;
  color: #1e293b;
  letter-spacing: -0.1px;
  transition: color 0.15s ease;
}

.sw-nav-item.active .sw-nav-label {
  color: #0284c7;
  font-weight: 700;
}

.sw-nav-desc {
  font-size: 11px;
  color: #64748b;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Content Area */
.settings-content-pane {
  flex: 1;
  background: #ffffff;
  padding: 26px 32px;
  overflow-y: auto;
}

.sw-tab-panel {
  display: none;
  flex-direction: column;
  gap: 18px;
}

.sw-tab-panel.active {
  display: flex;
}

.sw-panel-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding-bottom: 12px;
  border-bottom: 1px solid #f1f5f9;
}

.sw-panel-title {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  color: #0f172a;
}

.sw-panel-desc {
  margin: 3px 0 0 0;
  font-size: 12px;
  color: #64748b;
}

/* Users Table */
.sw-table-responsive {
  width: 100%;
  overflow-x: auto;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
}

.sw-users-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12.5px;
  text-align: left;
}

.sw-users-table th {
  background: #f8fafc;
  color: #475569;
  font-family: var(--font-mono, monospace);
  font-size: 11px;
  padding: 10px 14px;
  border-bottom: 1px solid #e2e8f0;
  font-weight: 700;
}

.sw-users-table td {
  padding: 10px 14px;
  border-bottom: 1px solid #f1f5f9;
  color: #1e293b;
  vertical-align: middle;
}

.sw-users-table tr:hover td {
  background: #f8fafc;
}

.role-badge {
  font-size: 10.5px;
  font-weight: 700;
  padding: 2.5px 8px;
  border-radius: 4px;
  letter-spacing: 0.2px;
}

.role-badge.super-admin {
  background: #f3e8ff;
  color: #7e22ce;
  border: 1px solid #d8b4fe;
}

.role-badge.admin {
  background: #e0f2fe;
  color: #0369a1;
  border: 1px solid #7dd3fc;
}

.role-badge.operator {
  background: #dcfce7;
  color: #15803d;
  border: 1px solid #86efac;
}

.role-badge.viewer {
  background: #f1f5f9;
  color: #475569;
  border: 1px solid #cbd5e1;
}

.status-tag-active {
  font-size: 11px;
  color: #15803d;
  font-weight: 600;
}

.status-tag-inactive {
  font-size: 11px;
  color: #b91c1c;
  font-weight: 600;
}

.sw-form-grid {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.form-row-2col {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.sw-form-group {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.sw-form-group label {
  font-size: 11.5px;
  font-weight: 700;
  color: #334155;
}

.sw-form-group input,
.sw-form-group select,
.sw-form-group textarea {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  font-size: 12.5px;
  background: #ffffff;
  color: #0f172a;
  outline: none;
  transition: all 0.15s ease;
}

.sw-form-group input:focus,
.sw-form-group select:focus,
.sw-form-group textarea:focus {
  border-color: #0284c7;
  box-shadow: 0 0 0 2px rgba(2, 132, 199, 0.18);
}

.field-hint {
  font-size: 10.5px;
  color: #64748b;
  margin-top: 2px;
}

.hint-blue {
  color: #0284c7;
  font-weight: 500;
}

.hint-gray {
  color: #64748b;
  font-weight: 400;
}

.sw-card-box {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 16px 18px;
}

.sync-timestamps-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11.5px;
  color: #475569;
  padding-top: 10px;
  border-top: 1px solid #e2e8f0;
  margin-top: 8px;
}

.sw-form-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 14px;
  border-top: 1px solid #f1f5f9;
  flex-wrap: wrap;
  gap: 10px;
}

.sw-footer-status {
  font-size: 11.5px;
  color: #64748b;
}

.btn-primary-sm {
  background: #0284c7;
  color: #ffffff;
  border: 1px solid #0284c7;
  padding: 7px 14px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-primary-sm:hover {
  background: #0369a1;
  border-color: #0369a1;
}

.btn-secondary-sm {
  background: #ffffff;
  color: #334155;
  border: 1px solid #cbd5e1;
  padding: 7px 14px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-secondary-sm:hover {
  background: #f8fafc;
  border-color: #94a3b8;
}

.brand-preview-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 16px 18px;
}

.bpc-top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.bpc-label {
  font-size: 11px;
  font-weight: 700;
  color: #64748b;
  font-family: var(--font-mono, monospace);
  letter-spacing: 0.5px;
}

.bpc-live-tag {
  font-size: 10px;
  font-weight: 700;
  color: #10b981;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.25);
  padding: 2px 7px;
  border-radius: 12px;
  letter-spacing: 0.3px;
}

.bpc-header-mockup {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(180deg, #0b1329 0%, #0f172a 100%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 12px 18px;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.2);
}

.bpc-brand-section {
  display: flex;
  align-items: center;
  gap: 12px;
}

.bpc-logo-mock {
  width: 36px;
  height: 36px;
  background: #0284c7;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(2, 132, 199, 0.4);
}

.bpc-text-wrap {
  display: flex;
  flex-direction: column;
}

.bpc-title-mock {
  font-size: 13.5px;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 0.3px;
}

.bpc-sub-mock {
  font-size: 9.5px;
  color: #94a3b8;
  letter-spacing: 0.4px;
}

.bpc-mockup-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.bpc-mockup-chip {
  display: flex;
  align-items: center;
  gap: 5px;
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: #34d399;
  font-size: 10px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 12px;
  letter-spacing: 0.4px;
}

.bpc-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #34d399;
  box-shadow: 0 0 6px #34d399;
}

.bpc-mockup-user {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 4px 10px;
  border-radius: 16px;
  font-size: 11px;
  color: #e2e8f0;
}

.bpc-user-avatar {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #0284c7;
  color: #fff;
  font-size: 9px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.bpc-user-name {
  font-size: 11px;
  color: #cbd5e1;
}

/* ==========================================================================
   LOGO FILE UPLOAD DROPZONE STYLES
   ========================================================================== */
.logo-upload-dropzone {
  border: 2px dashed #cbd5e1;
  border-radius: 9px;
  background: #f8fafc;
  padding: 14px 18px;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
  min-height: 80px;
  display: flex;
  align-items: center;
}

.logo-upload-dropzone:hover,
.logo-upload-dropzone.dragover {
  border-color: #0284c7;
  background: rgba(2, 132, 199, 0.04);
}

.lud-content {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
}

.lud-icon-wrap {
  width: 42px;
  height: 42px;
  border-radius: 8px;
  background: #e0f2fe;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.lud-text {
  flex: 1;
}

.lud-main-text {
  font-size: 13.5px;
  color: #0f172a;
  margin-bottom: 2px;
}

.lud-main-text strong {
  color: #0284c7;
  font-weight: 600;
}

.lud-sub-text {
  font-size: 11.5px;
  color: #64748b;
}

.btn-browse-file {
  padding: 6px 14px;
  border-radius: 6px;
  border: 1px solid #cbd5e1;
  background: #ffffff;
  color: #0f172a;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.btn-browse-file:hover {
  background: #f1f5f9;
  border-color: #94a3b8;
}

.lud-preview-active {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
}

.lud-thumb-box {
  width: 46px;
  height: 46px;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
  flex-shrink: 0;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}

.lud-thumb-box img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.lud-file-info {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.lud-file-name {
  font-size: 13px;
  color: #0f172a;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 260px;
}

.lud-file-status {
  font-size: 11.5px;
  color: #10b981;
  font-weight: 500;
}

.lud-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}

.btn-change-logo {
  padding: 5px 12px;
  border-radius: 6px;
  border: 1px solid #cbd5e1;
  background: #ffffff;
  color: #0f172a;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-change-logo:hover {
  background: #f1f5f9;
}

.btn-remove-logo {
  padding: 5px 12px;
  border-radius: 6px;
  border: 1px solid #fecaca;
  background: #fef2f2;
  color: #ef4444;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-remove-logo:hover {
  background: #fee2e2;
  border-color: #fca5a5;
}

/* ==========================================================================
   EXECUTIVE HEADER & MAP TOOLBAR LAYOUT (Unified 1-Row Responsive Architecture)
   ========================================================================== */

/* Navbar Container: Sleek, unified single-row header */
.navbar,
.navbar.dui-navbar {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: space-between !important;
  height: 58px !important;
  min-height: 58px !important;
  max-height: 58px !important;
  padding: 0 16px !important;
  gap: 10px !important;
  background: #ffffff !important;
  border-bottom: 1px solid var(--border-subtle) !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05), 0 1px 2px rgba(0, 0, 0, 0.02) !important;
  z-index: 1000 !important;
  position: relative !important;
}

/* Brand Section: Logo + Title + Subtitle */
.navbar > .brand-section,
.navbar > .dui-navbar-start {
  width: auto !important;
  flex: 0 0 auto !important;
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  min-width: 0 !important;
}

.brand-logo {
  width: 32px !important;
  height: 32px !important;
  background: #0f172a !important;
  border: 1px solid #0f172a !important;
  border-radius: 6px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex-shrink: 0 !important;
}

.brand-title {
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  max-width: 260px !important;
}

.brand-name {
  font-family: var(--font-heading) !important;
  font-size: 13.5px !important;
  font-weight: 750 !important;
  letter-spacing: 0.3px !important;
  color: #0f172a !important;
  line-height: 1.2 !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

.brand-sub {
  font-family: var(--font-mono) !important;
  font-size: 8px !important;
  letter-spacing: 0.5px !important;
  color: #0284c7 !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

/* Navigation Tabs: Seamlessly centered segmented control */
.navbar > .nav-tabs,
.navbar > .dui-navbar-center {
  width: auto !important;
  flex: 0 1 auto !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: #f1f5f9 !important;
  border: 1px solid var(--border-subtle) !important;
  border-radius: var(--radius-md) !important;
  padding: 3px !important;
  gap: 3px !important;
  margin: 0 auto !important;
}

.nav-tab-btn {
  background: transparent !important;
  border: 1px solid transparent !important;
  color: #334155 !important;
  padding: 6px 12px !important;
  border-radius: var(--radius-sm) !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  cursor: pointer !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 7px !important;
  transition: all 0.15s ease !important;
  white-space: nowrap !important;
  flex-shrink: 0 !important;
}

.nav-tab-btn:hover {
  color: #0f172a !important;
  background: #e2e8f0 !important;
}

.nav-tab-btn.active {
  background: #0f172a !important;
  color: #ffffff !important;
  border-color: #0f172a !important;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08) !important;
}

.nav-tab-badge {
  font-size: 10px !important;
  font-weight: 700 !important;
  padding: 1px 6px !important;
  border-radius: 10px !important;
  font-family: var(--font-mono) !important;
}

/* Header Right: Telemetry Pill, Clock, Settings, User Profile */
.navbar > .header-right,
.navbar > .dui-navbar-end {
  width: auto !important;
  flex: 0 0 auto !important;
  display: flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  gap: 8px !important;
}

.ais-sync-pill {
  display: flex !important;
  align-items: center !important;
  background: #f8fafc !important;
  border: 1px solid #cbd5e1 !important;
  border-radius: 20px !important;
  padding: 3px 8px !important;
  gap: 6px !important;
  font-size: 11px !important;
  font-family: var(--font-mono) !important;
  flex-shrink: 0 !important;
  white-space: nowrap !important;
}

.sync-status-text {
  color: #0f172a !important;
  font-weight: 700 !important;
  font-size: 10.5px !important;
}

.sync-interval-select {
  background: transparent !important;
  border: none !important;
  color: #475569 !important;
  font-size: 10.5px !important;
  font-weight: 600 !important;
  cursor: pointer !important;
  outline: none !important;
  padding: 0 !important;
}

.btn-quick-sync {
  background: transparent !important;
  border: none !important;
  color: var(--color-sky) !important;
  cursor: pointer !important;
  display: flex !important;
  align-items: center !important;
  padding: 2px !important;
  border-radius: 4px !important;
}

.clock-display {
  font-family: var(--font-mono) !important;
  font-size: 11px !important;
  color: var(--text-secondary) !important;
  background: #f1f5f9 !important;
  padding: 4px 8px !important;
  border-radius: var(--radius-sm) !important;
  border: 1px solid var(--border-subtle) !important;
  flex-shrink: 0 !important;
  white-space: nowrap !important;
}

.btn-header-settings {
  display: inline-flex !important;
  align-items: center !important;
  gap: 5px !important;
  background: #ffffff !important;
  border: 1px solid #cbd5e1 !important;
  color: var(--text-primary) !important;
  padding: 4px 10px !important;
  border-radius: var(--radius-sm) !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  cursor: pointer !important;
  flex-shrink: 0 !important;
  white-space: nowrap !important;
  transition: all 0.15s ease !important;
}

.btn-header-settings:hover {
  background: #0f172a !important;
  border-color: #0f172a !important;
  color: #ffffff !important;
}

.btn-user-profile {
  display: flex !important;
  align-items: center !important;
  gap: 7px !important;
  background: #f8fafc !important;
  border: 1px solid #cbd5e1 !important;
  border-radius: 20px !important;
  padding: 3px 8px 3px 3px !important;
  cursor: pointer !important;
  flex-shrink: 0 !important;
  white-space: nowrap !important;
  transition: all 0.15s ease !important;
}

.btn-user-profile:hover {
  background: #ffffff !important;
  border-color: #0284c7 !important;
}

.user-avatar-circle {
  width: 26px !important;
  height: 26px !important;
  border-radius: 50% !important;
  background: #0284c7 !important;
  color: #ffffff !important;
  font-weight: 700 !important;
  font-size: 11px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex-shrink: 0 !important;
}

.user-info-text {
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  text-align: left !important;
  line-height: 1.15 !important;
}

.user-display-name {
  font-size: 11.5px !important;
  font-weight: 700 !important;
  color: #0f172a !important;
  max-width: 140px !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

.user-display-role {
  font-size: 9.5px !important;
  font-weight: 600 !important;
  color: #0284c7 !important;
  white-space: nowrap !important;
}

/* ==========================================================================
   FLOATING MAP TOOLBARS (Clean Corner Pill Cards)
   ========================================================================== */

/* Top-Left Search & Fleet Filter Bar: Compact pill without stretching across map */
.map-top-left-bar {
  position: absolute !important;
  top: 14px !important;
  left: 16px !important;
  right: auto !important;
  width: auto !important;
  max-width: calc(100% - 32px) !important;
  z-index: 500 !important;
  background: rgba(255, 255, 255, 0.94) !important;
  backdrop-filter: blur(14px) !important;
  -webkit-backdrop-filter: blur(14px) !important;
  border: 1px solid rgba(226, 232, 240, 0.9) !important;
  border-radius: var(--radius-md) !important;
  padding: 4px 8px !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.08) !important;
}

.map-top-left-bar .search-box {
  width: 185px !important;
  flex-shrink: 0 !important;
}

.map-top-left-bar .search-box input {
  height: 30px !important;
  padding: 4px 8px 4px 28px !important;
  font-size: 11.5px !important;
  border-radius: var(--radius-sm) !important;
}

.map-top-left-bar .filter-chips {
  display: flex !important;
  align-items: center !important;
  gap: 4px !important;
}

.chip-dot {
  width: 7px !important;
  height: 7px !important;
  border-radius: 50% !important;
  display: inline-block !important;
  flex-shrink: 0 !important;
}

.chip-btn {
  display: inline-flex !important;
  align-items: center !important;
  gap: 5px !important;
  font-size: 11px !important;
  padding: 4px 9px !important;
  white-space: nowrap !important;
  border-radius: 6px !important;
}

.map-top-left-bar .vessel-type-dropdown-wrapper {
  display: none !important;
}

/* Top-Right Geographic Layers Bar: Sits beside Leaflet Zoom controls */
.map-top-right-bar {
  position: absolute !important;
  top: 14px !important;
  right: 64px !important;
  left: auto !important;
  width: auto !important;
  z-index: 500 !important;
  background: rgba(255, 255, 255, 0.94) !important;
  backdrop-filter: blur(14px) !important;
  -webkit-backdrop-filter: blur(14px) !important;
  border: 1px solid rgba(226, 232, 240, 0.9) !important;
  border-radius: var(--radius-md) !important;
  padding: 4px 8px !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.08) !important;
}

.map-top-right-bar .layer-pills-group {
  display: inline-flex !important;
  align-items: center !important;
  gap: 4px !important;
  flex-shrink: 0 !important;
}

.map-top-right-bar .layer-toggle-btn {
  padding: 4px 8px !important;
  font-size: 11px !important;
  border-radius: var(--radius-sm) !important;
  white-space: nowrap !important;
  flex-shrink: 0 !important;
}

.map-top-right-bar .clean-select-pill {
  height: 30px !important;
  padding: 2px 8px !important;
  font-size: 11px !important;
  border-radius: var(--radius-sm) !important;
  white-space: nowrap !important;
  flex-shrink: 0 !important;
  text-overflow: ellipsis !important;
  overflow: hidden !important;
}

#jumpTerminalSelect {
  width: 135px !important;
  max-width: 140px !important;
}

#baseMapSelect {
  width: 175px !important;
  max-width: 180px !important;
}

/* Map HUD and Dossier positioning */
.map-left-hud,
.vessel-drawer.mst-dossier {
  top: 66px !important;
}

/* ==========================================================================
   RESPONSIVE DESIGN (Adaptive Breakpoints)
   ========================================================================== */

/* Laptop screens (1366px - 1440px): Ensure compact 1-row fit */
@media (max-width: 1440px) {
  .navbar, .navbar.dui-navbar {
    padding: 0 12px !important;
    gap: 8px !important;
  }
  .brand-title {
    max-width: 220px !important;
  }
  .brand-name {
    font-size: 13px !important;
  }
  .brand-sub {
    font-size: 8px !important;
  }
  .nav-tab-btn {
    padding: 5px 10px !important;
    font-size: 11.5px !important;
    gap: 5px !important;
  }
  .navbar > .header-right {
    gap: 6px !important;
  }
  .ais-sync-pill {
    padding: 3px 6px !important;
    font-size: 10.5px !important;
    gap: 4px !important;
  }
  .clock-display {
    padding: 3px 6px !important;
    font-size: 10.5px !important;
  }
  .btn-header-settings {
    padding: 3px 8px !important;
    font-size: 11.5px !important;
  }
  .user-display-name {
    max-width: 110px !important;
    font-size: 11px !important;
  }
  .user-display-role {
    font-size: 9px !important;
  }
  .map-top-left-bar .search-box {
    width: 180px !important;
  }
}

/* Medium Laptops & Desktops (1100px - 1280px): Hide non-critical telemetry text */
@media (max-width: 1280px) {
  .clock-display {
    display: none !important;
  }
  .user-display-role {
    display: none !important;
  }
  .brand-title {
    max-width: 180px !important;
  }
  .map-top-left-bar .search-box {
    width: 160px !important;
  }
}

/* Compact screens (950px - 1100px): Keep navbar 1-row, stack map right toolbar */
@media (max-width: 1100px) {
  .brand-sub {
    display: none !important;
  }
  .nav-tab-btn {
    padding: 5px 8px !important;
    font-size: 11px !important;
    gap: 4px !important;
  }
  .map-top-right-bar {
    top: 56px !important;
    left: 16px !important;
    right: auto !important;
  }
  .map-left-hud,
  .vessel-drawer.mst-dossier {
    top: 106px !important;
  }
}

/* Tablet screens (601px - 950px): Two-row navbar with horizontal scrollable tabs */
@media (max-width: 950px) {
  .navbar, .navbar.dui-navbar {
    height: auto !important;
    min-height: auto !important;
    max-height: none !important;
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto !important;
    gap: 8px 12px !important;
    padding: 8px 12px !important;
  }
  .navbar > .brand-section {
    grid-column: 1 !important;
    grid-row: 1 !important;
    min-width: 0 !important;
  }
  .navbar > .header-right {
    grid-column: 2 !important;
    grid-row: 1 !important;
    gap: 6px !important;
  }
  .navbar > .nav-tabs {
    grid-column: 1 / -1 !important;
    grid-row: 2 !important;
    width: 100% !important;
    overflow-x: auto !important;
    justify-content: flex-start !important;
    -webkit-overflow-scrolling: touch !important;
    margin: 0 !important;
  }
  .header-right .user-info-text {
    display: none !important;
  }
  .map-top-left-bar {
    left: 10px !important;
    right: 54px !important;
    width: auto !important;
  }
  .map-top-right-bar {
    top: 56px !important;
    left: 10px !important;
    right: auto !important;
    flex-wrap: wrap !important;
    gap: 4px !important;
  }
  .map-top-right-bar .layer-pills-group {
    flex: 1 0 100% !important;
  }
  .map-top-right-bar .clean-select-pill {
    min-width: 0 !important;
    flex: 1 !important;
    width: 0 !important;
  }
  .map-left-hud,
  .vessel-drawer.mst-dossier {
    top: 148px !important;
  }
}

/* Mobile screens (<= 600px) */
@media (max-width: 600px) {
  .navbar, .navbar.dui-navbar {
    grid-template-columns: minmax(0, 1fr) !important;
  }
  .navbar > .header-right {
    grid-column: 1 !important;
    grid-row: 2 !important;
    justify-content: space-between !important;
  }
  .navbar > .nav-tabs {
    grid-row: 3 !important;
  }
  .map-top-left-bar .search-box {
    width: 130px !important;
  }
  .layer-toggle-btn {
    padding: 4px 6px !important;
    font-size: 10px !important;
  }
  .map-left-hud {
    max-height: calc(100% - 180px) !important;
    overflow-y: auto !important;
  }
}

#drawerAnomalyContainer,
.drawer-anomaly-container {
  display: none !important;
}

/* Monitored Vessels Pagination */
.mgmt-pagination-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid #e2e8f0;
  flex-wrap: wrap;
  gap: 12px;
}

.mgmt-page-info {
  font-size: 12px;
  color: #64748b;
  font-weight: 500;
}

.mgmt-page-controls {
  display: flex;
  align-items: center;
  gap: 6px;
}

.mgmt-page-btn {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  color: #1e293b;
  padding: 5px 10px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
  min-width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.mgmt-page-btn:hover:not(:disabled) {
  background: #f1f5f9;
  border-color: #0284c7;
  color: #0284c7;
}

.mgmt-page-btn.active {
  background: #0284c7;
  border-color: #0284c7;
  color: #ffffff;
  font-weight: 700;
}

.mgmt-page-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  background: #f8fafc;
  border-color: #e2e8f0;
}

/* ==========================================================================
   DRAWER VOYAGE CARD & HEADER REFINEMENTS (ANTI-BENTROK & RAPI)
   ========================================================================== */
.mst-hero-banner {
  background: #ffffff;
  border-bottom: 1px solid #e2e8f0;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.mst-hero-left {
  flex: 1;
  min-width: 0;
}

.mst-vessel-title {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.2px;
  line-height: 1.25;
  margin: 0 0 5px 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mst-vessel-sub {
  display: flex;
  align-items: center;
  gap: 6px 8px;
  flex-wrap: wrap;
}

.mst-station-badge {
  font-size: 10px;
  font-family: var(--font-mono);
  font-weight: 700;
  background: #ecfdf5;
  color: #059669;
  border: 1px solid #a7f3d0;
  padding: 2px 7px;
  border-radius: 4px;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  line-height: 1.2;
  flex-shrink: 0;
}

/* Ports Row (2 Kolom Luas 50/50) */
.mst-voyage-ports-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 12px;
}

.mst-voyage-port {
  flex: 1;
  min-width: 0;
}

.mst-voyage-port.origin {
  text-align: left;
}

.mst-voyage-port.dest {
  text-align: right;
}

.mst-port-badge-label {
  font-size: 9.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #64748b;
  margin-bottom: 3px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.mst-voyage-port.dest .mst-port-badge-label {
  justify-content: flex-end;
}

.mst-port-title {
  font-family: var(--font-heading);
  font-size: 13.5px;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.3;
  margin-bottom: 4px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mst-port-subinfo {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
}

.mst-voyage-port.dest .mst-port-subinfo {
  justify-content: flex-end;
}

.mst-port-locode-pill {
  font-size: 10px;
  font-family: var(--font-mono);
  font-weight: 700;
  color: #0369a1;
  background: #e0f2fe;
  border: 1px solid #bae6fd;
  padding: 1px 6px;
  border-radius: 4px;
  white-space: nowrap;
}

.mst-port-timestamp {
  font-size: 11px;
  font-family: var(--font-mono);
  color: #475569;
  font-weight: 600;
  white-space: nowrap;
}

/* Full-width Connecting Progress Segment */
.mst-voyage-card .mst-progress-segment {
  width: 100%;
  flex: none;
  min-width: 0;
  padding: 8px 0 12px 0;
  border-bottom: 1px solid #e2e8f0;
  margin-bottom: 12px;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.mst-progress-badge-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  margin-top: 4px;
}

.mst-progress-left-info {
  display: flex;
  align-items: center;
  gap: 6px;
}

.mst-progress-label {
  font-size: 10.5px;
  font-weight: 600;
  color: #64748b;
}

/* Symmetrical 4-Column Metrics Grid (2 Baris x 4 Kolom Seragam) */
.mst-voyage-metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px 8px;
}

.mst-v-item {
  display: flex;
  flex-direction: column;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  padding: 6px 8px;
}

.mst-v-label {
  font-size: 9.5px;
  font-weight: 600;
  color: #64748b;
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mst-v-val {
  font-size: 11.5px;
  font-weight: 700;
  color: #0f172a;
  font-family: var(--font-mono);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ==========================================================================
   CLEAN NON-OVERFLOWING 2-COLUMN VOYAGE METRICS GRID & ROUTE
   ========================================================================== */
.mst-voyage-card {
  width: 100% !important;
  min-height: fit-content !important;
  height: auto !important;
  max-height: none !important;
  flex: 0 0 auto !important;
  flex-shrink: 0 !important;
  box-sizing: border-box !important;
  overflow: visible !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 12px !important;
  padding: 14px !important;
}

.mst-voyage-ports-row {
  display: flex !important;
  flex-direction: row !important;
  justify-content: space-between !important;
  align-items: flex-start !important;
  gap: 12px !important;
  margin-bottom: 0 !important;
  width: 100% !important;
  height: auto !important;
  min-height: fit-content !important;
  box-sizing: border-box !important;
}

.mst-voyage-port {
  flex: 1 1 0 !important;
  min-width: 0 !important;
  max-width: none !important;
  overflow: visible !important;
}

.mst-voyage-port.origin {
  text-align: left !important;
}

.mst-voyage-port.dest {
  text-align: right !important;
}

.mst-voyage-port.dest #drawerDestFlag {
  color: #ec4899 !important;
}

.mst-voyage-port.origin #drawerOriginFlag {
  color: #0284c7 !important;
}

.mst-port-badge-label {
  font-size: 9.5px !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.5px !important;
  color: #64748b !important;
  margin-bottom: 4px !important;
  display: flex !important;
  align-items: center !important;
  gap: 4px !important;
}

.mst-voyage-port.dest .mst-port-badge-label {
  justify-content: flex-end !important;
}

.mst-port-title {
  display: block !important;
  font-family: var(--font-heading) !important;
  font-size: 13px !important;
  line-height: 1.35 !important;
  font-weight: 700 !important;
  color: #0f172a !important;
  margin-bottom: 4px !important;
  word-break: break-word !important;
  overflow-wrap: break-word !important;
  white-space: normal !important;
  overflow: visible !important;
}

.mst-port-subinfo {
  display: flex !important;
  align-items: center !important;
  gap: 6px !important;
  font-size: 11px !important;
  flex-wrap: wrap !important;
}

.mst-voyage-port.dest .mst-port-subinfo {
  justify-content: flex-end !important;
}

.mst-voyage-card .mst-progress-segment {
  display: flex !important;
  flex-direction: column !important;
  width: 100% !important;
  flex: none !important;
  min-width: 0 !important;
  height: auto !important;
  box-sizing: border-box !important;
  padding: 8px 0 12px 0 !important;
  margin-bottom: 0 !important;
  border-bottom: 1px solid #e2e8f0 !important;
  gap: 8px !important;
}

.mst-voyage-card .mst-progress-badge-wrapper {
  display: flex !important;
  flex-direction: row !important;
  justify-content: space-between !important;
  align-items: center !important;
  width: 100% !important;
  margin-top: 4px !important;
  box-sizing: border-box !important;
}

/* 2-Column Symmetrical Metrics Grid (No Horizontal Overflow) */
.mst-voyage-metrics-grid {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 8px 10px !important;
  width: 100% !important;
  height: auto !important;
  box-sizing: border-box !important;
  overflow: visible !important;
}

.mst-v-item {
  display: flex !important;
  flex-direction: column !important;
  background: #f8fafc !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 6px !important;
  padding: 8px 10px !important;
  min-width: 0 !important;
  box-sizing: border-box !important;
  overflow: hidden !important;
}

.mst-v-label {
  font-size: 10px !important;
  font-weight: 600 !important;
  color: #64748b !important;
  margin-bottom: 3px !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

.mst-v-val {
  font-size: 12px !important;
  font-weight: 700 !important;
  color: #0f172a !important;
  font-family: var(--font-mono) !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

/* Ensure no blue border in sat-event-item */
.sat-event-item {
  border-left: 1px solid #e2e8f0 !important;
}


/* ==========================================================================
   VESSEL TYPE DROPDOWN & MAP HAMBURGER MENU (Fasilitas & Satelit)
   ========================================================================== */

/* Vessel Type Dropdown in Top-Left Map Bar */
.vessel-type-dropdown-wrapper {
  display: inline-flex !important;
  align-items: center !important;
  flex-shrink: 0 !important;
}

.vessel-type-select {
  height: 30px !important;
  padding: 2px 10px !important;
  font-size: 11.5px !important;
  font-weight: 600 !important;
  color: #0f172a !important;
  background: #ffffff !important;
  border: 1px solid #cbd5e1 !important;
  border-radius: var(--radius-sm, 6px) !important;
  outline: none !important;
  cursor: pointer !important;
  transition: all 0.15s ease-in-out !important;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04) !important;
}

.vessel-type-select:hover {
  border-color: #94a3b8 !important;
  background: #f8fafc !important;
}

.vessel-type-select:focus {
  border-color: #0284c7 !important;
  box-shadow: 0 0 0 2px rgba(2, 132, 199, 0.15) !important;
}

/* Map Top-Right Hamburger Menu Container */
.map-hamburger-container {
  position: relative !important;
  display: inline-flex !important;
  align-items: center !important;
}

.map-hamburger-btn {
  display: inline-flex !important;
  align-items: center !important;
  gap: 7px !important;
  height: 30px !important;
  padding: 0 11px !important;
  background: #ffffff !important;
  color: #0f172a !important;
  border: 1px solid #cbd5e1 !important;
  border-radius: var(--radius-sm, 6px) !important;
  font-size: 11.5px !important;
  font-weight: 600 !important;
  font-family: inherit !important;
  cursor: pointer !important;
  transition: all 0.15s ease-in-out !important;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04) !important;
  white-space: nowrap !important;
}

.map-hamburger-btn svg {
  color: #475569 !important;
  transition: color 0.15s !important;
}

.map-hamburger-btn:hover,
.map-hamburger-btn.active {
  background: #f0f9ff !important;
  border-color: #0284c7 !important;
  color: #0284c7 !important;
}

.map-hamburger-btn:hover svg,
.map-hamburger-btn.active svg {
  color: #0284c7 !important;
}

.map-hamburger-dropdown {
  position: absolute !important;
  top: calc(100% + 8px) !important;
  right: 0 !important;
  width: 310px !important;
  background: #ffffff !important;
  border: 1px solid #cbd5e1 !important;
  border-radius: 10px !important;
  box-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.18), 0 8px 10px -6px rgba(15, 23, 42, 0.1) !important;
  padding: 14px !important;
  z-index: 1050 !important;
  box-sizing: border-box !important;
}

.mhd-header {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  padding-bottom: 9px !important;
  margin-bottom: 12px !important;
  border-bottom: 1px solid #e2e8f0 !important;
}

.mhd-header-title {
  display: flex !important;
  align-items: center !important;
  gap: 6px !important;
  font-size: 10.5px !important;
  font-weight: 700 !important;
  color: #0f172a !important;
  letter-spacing: 0.5px !important;
  text-transform: uppercase !important;
}

.mhd-close-btn {
  background: transparent !important;
  border: none !important;
  font-size: 14px !important;
  color: #64748b !important;
  cursor: pointer !important;
  padding: 2px 6px !important;
  border-radius: 4px !important;
  line-height: 1 !important;
  transition: all 0.15s !important;
}

.mhd-close-btn:hover {
  background: #f1f5f9 !important;
  color: #0f172a !important;
}

.mhd-section {
  margin-bottom: 12px !important;
}

.mhd-section:last-child {
  margin-bottom: 0 !important;
}

.mhd-section-label {
  display: flex !important;
  align-items: center !important;
  gap: 6px !important;
  font-size: 11px !important;
  font-weight: 600 !important;
  color: #334155 !important;
  margin-bottom: 5px !important;
}

.mhd-select-wrapper {
  width: 100% !important;
}

.mhd-select {
  width: 100% !important;
  height: 33px !important;
  padding: 4px 8px !important;
  font-size: 11.5px !important;
  font-weight: 500 !important;
  color: #0f172a !important;
  background: #f8fafc !important;
  border: 1px solid #cbd5e1 !important;
  border-radius: 6px !important;
  outline: none !important;
  cursor: pointer !important;
  box-sizing: border-box !important;
  transition: all 0.15s !important;
}

.mhd-select:focus {
  border-color: #0284c7 !important;
  background: #ffffff !important;
  box-shadow: 0 0 0 2px rgba(2, 132, 199, 0.12) !important;
}

.mhd-layer-buttons {
  display: flex !important;
  gap: 6px !important;
  margin-bottom: 6px !important;
}

.mhd-layer-btn {
  flex: 1 !important;
  height: 31px !important;
  justify-content: center !important;
  font-size: 11px !important;
  border-radius: 6px !important;
}

.mhd-weather-wrapper {
  width: 100% !important;
}

.mhd-weather-btn {
  width: 100% !important;
  height: 31px !important;
  justify-content: center !important;
  font-size: 11px !important;
  border-radius: 6px !important;
}


/* ==========================================================================
   MYSHIP HOVER TOOLTIP OVERFLOW & WRAPPING FIX
   ========================================================================== */
.leaflet-tooltip.myship-hover-tooltip {
  white-space: normal !important;
  max-width: 320px !important;
  width: auto !important;
  box-sizing: border-box !important;
  overflow: visible !important;
}

.myship-tooltip-box {
  width: 290px !important;
  max-width: 320px !important;
  box-sizing: border-box !important;
  white-space: normal !important;
  overflow: hidden !important;
  padding: 10px 14px !important;
}

.myship-tt-title {
  white-space: normal !important;
  word-break: break-word !important;
}

.myship-tt-table {
  width: 100% !important;
  table-layout: fixed !important;
  border-collapse: collapse !important;
}

.myship-tt-table tr {
  line-height: 1.5 !important;
}

.myship-tt-lbl {
  width: 102px !important;
  min-width: 102px !important;
  max-width: 102px !important;
  white-space: nowrap !important;
  vertical-align: top !important;
  padding-right: 2px !important;
  font-size: 11px !important;
  color: #64748b !important;
}

.myship-tt-sep {
  width: 8px !important;
  min-width: 8px !important;
  max-width: 8px !important;
  text-align: center !important;
  white-space: nowrap !important;
  vertical-align: top !important;
  padding: 0 4px !important;
  color: #94a3b8 !important;
}

.myship-tt-val {
  white-space: normal !important;
  word-wrap: break-word !important;
  overflow-wrap: break-word !important;
  word-break: break-word !important;
  vertical-align: top !important;
  font-size: 11px !important;
  color: #0f172a !important;
  line-height: 1.35 !important;
}

/* Missing provider fields must stay hidden despite component display rules. */
#vesselDrawer [hidden] { display: none !important; }

.kpi-card[hidden] { display: none !important; }

.kpi-stat-card[hidden], .alert-ai-box[hidden], .ai-eval-conf[hidden] { display: none !important; }

/* Sleek Floating Progress Pill & Top Bar (Non-blocking, No Dimming Overlay) */
.vessel-import-progress-pill {
  position: fixed;
  top: 76px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100000;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 9999px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.14);
  padding: 8px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 260px;
  max-width: 90vw;
  animation: slideDownImportProgress 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}

@keyframes slideDownImportProgress {
  from { opacity: 0; transform: translate(-50%, -12px); }
  to { opacity: 1; transform: translate(-50%, 0); }
}

.vessel-import-top-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, #0284c7, #38bdf8);
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.7);
  z-index: 100001;
  transition: width 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}
#drawerDailyObservations { padding: 14px; }
#drawerDailyObservations p, [data-weather-source] { font-size: 12px; line-height: 1.6; margin: 8px 0; }
[data-weather-source] { padding: 0 14px; color: #64748b; }

#drawerVoyageAvailability { padding: 14px; }
#drawerVoyageAvailability p, .vessel-data-note { margin: 8px 0; font-size: 12px; line-height: 1.6; }
.vessel-data-note { padding: 0 14px; color: #64748b; }
.mst-spec-row { gap: 12px; align-items: start; }
.mst-s-val { overflow-wrap: anywhere; min-width: 0; }

/* --- Vessel Detail Drawer Exact Screenshot Match --- */
.mst-spec-row {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  gap: 12px !important;
  padding: 7px 0 !important;
  border-bottom: 1px solid #f1f5f9 !important;
  font-size: 11.5px !important;
}
.mst-spec-row:last-child {
  border-bottom: none !important;
}
.mst-s-key {
  color: #475569 !important;
  font-weight: 500 !important;
  font-size: 11.5px !important;
}
.mst-s-val {
  color: #0f172a !important;
  font-weight: 600 !important;
  text-align: right !important;
  font-size: 12px !important;
  overflow-wrap: anywhere !important;
  min-width: 0 !important;
}
.sat-event-item {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 8px !important;
  padding: 10px 14px !important;
  font-size: 11px !important;
  color: #1e293b !important;
}
