/* ==========================================================================
   Apex Auto Transit - Minimalist US Vehicle Freight Logistics Theme
   Swiss-inspired technical grid design. Zero AI slop. Maximum functionality.
   ========================================================================== */

:root {
  /* Color Palette - Pure White Theme Default */
  --bg-primary: #ffffff;
  --bg-surface: #ffffff;
  --bg-secondary: #f8fafc;
  --bg-tertiary: #f1f5f9;
  
  --border-subtle: #e2e8f0;
  --border-strong: #cbd5e1;
  
  --text-primary: #0f172a;
  --text-secondary: #334155;
  --text-tertiary: #64748b;
  --text-muted: #94a3b8;
  
  --brand-primary: #0f172a;
  --brand-accent: #1d4ed8;
  
  /* Status Colors */
  --status-emerald-bg: #ecfdf5;
  --status-emerald-text: #047857;
  --status-emerald-border: #a7f3d0;
  
  --status-amber-bg: #fffbeb;
  --status-amber-text: #b45309;
  --status-amber-border: #fde68a;
  
  --status-blue-bg: #eff6ff;
  --status-blue-text: #1d4ed8;
  --status-blue-border: #bfdbfe;
  
  /* Fonts */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', SFMono-Regular, Consolas, 'Liberation Mono', monospace;
  
  /* Shadows & Radius */
  --radius-sm: 4px;
  --radius-md: 6px;
  --radius-lg: 8px;
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.06), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
}

[data-theme="dark"] {
  --bg-primary: #090d16;
  --bg-surface: #111827;
  --bg-secondary: #1f2937;
  --bg-tertiary: #374151;
  
  --border-subtle: #1f2937;
  --border-strong: #374151;
  
  --text-primary: #f9fafb;
  --text-secondary: #9ca3af;
  --text-tertiary: #6b7280;
  --text-muted: #4b5563;
  
  --brand-primary: #f9fafb;
  --brand-accent: #3b82f6;
  
  --status-emerald-bg: rgba(16, 185, 129, 0.12);
  --status-emerald-text: #34d399;
  --status-emerald-border: rgba(16, 185, 129, 0.3);
  
  --status-amber-bg: rgba(245, 158, 11, 0.12);
  --status-amber-text: #fbbf24;
  --status-amber-border: rgba(245, 158, 11, 0.3);
  
  --status-blue-bg: rgba(59, 130, 246, 0.12);
  --status-blue-text: #60a5fa;
  --status-blue-border: rgba(59, 130, 246, 0.3);
}

/* Base resets */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Utilities */
.font-mono {
  font-family: var(--font-mono);
}

/* Navbar */
.navbar {
  background-color: var(--bg-surface);
  border-bottom: 1px solid var(--border-subtle);
  position: sticky;
  top: 0;
  z-index: 50;
}

.nav-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0.85rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--text-primary);
}

.brand-icon {
  width: 36px;
  height: 36px;
  background-color: var(--text-primary);
  color: var(--bg-surface);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.05em;
}

.brand-sub {
  font-size: 0.65rem;
  font-weight: 600;
  color: var(--text-tertiary);
  letter-spacing: 0.12em;
}

.nav-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.usdot-badge {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-secondary);
  background-color: var(--bg-secondary);
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
}

.pulse-dot {
  width: 8px;
  height: 8px;
  background-color: #10b981;
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  animation: pulse-green 2s infinite;
}

@keyframes pulse-green {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.icon-button {
  background: transparent;
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  width: 34px;
  height: 34px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s ease;
}

.icon-button:hover {
  background-color: var(--bg-secondary);
  color: var(--text-primary);
  border-color: var(--border-strong);
}

[data-theme="dark"] .sun-icon { display: block; }
[data-theme="dark"] .moon-icon { display: none; }
:root:not([data-theme="dark"]) .sun-icon { display: none; }
:root:not([data-theme="dark"]) .moon-icon { display: block; }

/* Main Layout */
.main-layout {
  max-width: 1280px;
  margin: 0 auto;
  padding: 2rem 1.5rem 4rem;
}

/* Search Section */
.search-section {
  margin-bottom: 2rem;
}

.search-box {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
}

.search-header {
  margin-bottom: 1.5rem;
}

.search-title {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin-bottom: 0.35rem;
}

.search-subtitle {
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.search-input-wrapper {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.input-relative {
  position: relative;
  flex: 1;
  display: flex;
  align-items: center;
}

.search-icon {
  position: absolute;
  left: 1rem;
  color: var(--text-tertiary);
  pointer-events: none;
}

.clear-btn {
  position: absolute;
  right: 0.75rem;
  background: transparent;
  border: none;
  color: var(--text-tertiary);
  cursor: pointer;
  padding: 0.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.clear-btn:hover {
  color: var(--text-primary);
}

#tracking-input {
  width: 100%;
  padding: 0.85rem 2.5rem 0.85rem 2.75rem;
  font-family: var(--font-mono);
  font-size: 1rem;
  font-weight: 500;
  background-color: var(--bg-secondary);
  color: var(--text-primary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  outline: none;
  transition: all 0.15s ease;
}

#tracking-input:focus {
  border-color: var(--brand-accent);
  background-color: var(--bg-surface);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.5rem;
  background-color: var(--brand-accent);
  color: #ffffff;
  font-weight: 600;
  font-size: 0.9rem;
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: background-color 0.15s ease;
  white-space: nowrap;
}

.btn-primary:hover {
  background-color: #1d4ed8;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  background-color: var(--bg-secondary);
  color: var(--text-primary);
  font-weight: 600;
  font-size: 0.875rem;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-secondary:hover {
  background-color: var(--bg-tertiary);
  border-color: var(--border-strong);
}

/* Demo chips */
.demo-chips {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-size: 0.8rem;
}

.demo-label {
  color: var(--text-tertiary);
  font-weight: 500;
  margin-right: 0.25rem;
}

.chip-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 0.8rem;
  transition: all 0.15s ease;
}

.chip-btn:hover {
  border-color: var(--border-strong);
  color: var(--text-primary);
  background-color: var(--bg-tertiary);
}

.chip-btn.active {
  border-color: var(--brand-accent);
  background-color: var(--bg-surface);
  color: var(--text-primary);
}

.chip-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
}

.chip-dot.in-transit { background-color: #10b981; }
.chip-dot.delivered { background-color: #3b82f6; }
.chip-dot.dispatched { background-color: #f59e0b; }

.chip-meta {
  color: var(--text-tertiary);
  font-size: 0.75rem;
}

/* Tracking Result Layout Grid */
.tracking-dashboard {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* Top Banner Status Bar */
.status-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
}

.status-top-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.tracking-id-group {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.tracking-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--text-tertiary);
  text-transform: uppercase;
}

.tracking-number-val {
  font-family: var(--font-mono);
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

.status-badge-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.85rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  border: 1px solid transparent;
}

.status-badge-tag.emerald {
  background-color: var(--status-emerald-bg);
  color: var(--status-emerald-text);
  border-color: var(--status-emerald-border);
}

.status-badge-tag.blue {
  background-color: var(--status-blue-bg);
  color: var(--status-blue-text);
  border-color: var(--status-blue-border);
}

.status-badge-tag.amber {
  background-color: var(--status-amber-bg);
  color: var(--status-amber-text);
  border-color: var(--status-amber-border);
}

/* Route Origin to Destination Header */
.route-summary {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1.5rem;
  background-color: var(--bg-secondary);
  padding: 1.25rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  margin-bottom: 1.5rem;
}

.location-block {
  display: flex;
  flex-direction: column;
}

.location-block.right {
  text-align: right;
}

.loc-state {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
}

.loc-city {
  font-size: 0.9rem;
  color: var(--text-secondary);
  font-weight: 500;
}

.loc-facility {
  font-size: 0.75rem;
  color: var(--text-tertiary);
  margin-top: 0.2rem;
}

.route-progress-line {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
}

.distance-tag {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-tertiary);
}

.line-visual {
  width: 160px;
  height: 4px;
  background-color: var(--border-strong);
  border-radius: 2px;
  position: relative;
  overflow: hidden;
}

.line-visual-fill {
  height: 100%;
  background-color: var(--brand-accent);
  border-radius: 2px;
}

/* Progress bar container */
.eta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  padding-top: 0.5rem;
  border-top: 1px dashed var(--border-subtle);
}

.eta-block {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.eta-icon {
  color: var(--brand-accent);
}

.eta-val {
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--text-primary);
}

.eta-sub {
  font-size: 0.75rem;
  color: var(--text-tertiary);
}

/* Grid Layout for Details */
.dashboard-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 1.5rem;
}

@media (max-width: 960px) {
  .dashboard-grid {
    grid-template-columns: 1fr;
  }
  .route-summary {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .location-block.right {
    text-align: center;
  }
  .line-visual {
    width: 100%;
  }
}

/* Content Box Cards */
.card-box {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
}

.card-title-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border-subtle);
}

.card-title {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.card-tag {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-tertiary);
  background-color: var(--bg-secondary);
  padding: 0.2rem 0.5rem;
  border-radius: var(--radius-sm);
}

/* SVG US Map Visualizer */
.map-card {
  position: relative;
  overflow: hidden;
}

.map-wrapper {
  width: 100%;
  height: 280px;
  background-color: var(--bg-secondary);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.us-map-svg {
  width: 100%;
  height: 100%;
}

.map-overlay-info {
  position: absolute;
  bottom: 0.75rem;
  left: 0.75rem;
  background-color: rgba(17, 24, 39, 0.85);
  backdrop-filter: blur(4px);
  color: #ffffff;
  padding: 0.5rem 0.85rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Stepper & Checkpoint Timeline */
.timeline-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  position: relative;
}

.timeline-item {
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 1rem;
  position: relative;
  padding-bottom: 1.5rem;
}

.timeline-item:last-child {
  padding-bottom: 0;
}

.timeline-item:not(:last-child)::after {
  content: '';
  position: absolute;
  left: 15px;
  top: 32px;
  bottom: 0;
  width: 2px;
  background-color: var(--border-subtle);
}

.timeline-item.completed:not(:last-child)::after {
  background-color: var(--brand-accent);
}

.timeline-node {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  z-index: 2;
  background-color: var(--bg-surface);
  border: 2px solid var(--border-strong);
  color: var(--text-tertiary);
}

.timeline-item.completed .timeline-node {
  background-color: var(--brand-accent);
  border-color: var(--brand-accent);
  color: #ffffff;
}

.timeline-item.in_progress .timeline-node {
  background-color: #10b981;
  border-color: #10b981;
  color: #ffffff;
  box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.2);
}

.timeline-content {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.timeline-header-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.timeline-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
}

.timeline-time {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-tertiary);
}

.timeline-location {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--brand-accent);
}

.timeline-note {
  font-size: 0.825rem;
  color: var(--text-secondary);
  background-color: var(--bg-secondary);
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--border-strong);
  margin-top: 0.25rem;
}

.timeline-item.in_progress .timeline-note {
  border-left-color: #10b981;
}

/* Vehicle Technical Card */
.spec-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

@media (max-width: 600px) {
  .spec-grid {
    grid-template-columns: 1fr;
  }
}

.spec-item {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  background-color: var(--bg-secondary);
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
}

.spec-label {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-tertiary);
}

.spec-value {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
}

.vin-badge {
  font-family: var(--font-mono);
  background-color: var(--bg-surface);
  border: 1px solid var(--border-strong);
  padding: 0.25rem 0.5rem;
  border-radius: var(--radius-sm);
  letter-spacing: 0.05em;
  display: inline-block;
  width: fit-content;
}

/* Carrier Card */
.carrier-info-box {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.carrier-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.85rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border-subtle);
}

.carrier-row:last-child {
  border-bottom: none;
}

.carrier-key {
  color: var(--text-tertiary);
  font-weight: 500;
}

.carrier-val {
  font-weight: 600;
  color: var(--text-primary);
  text-align: right;
}

/* Action Bar Buttons */
.action-buttons-group {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 1rem;
}

.full-btn {
  width: 100%;
}

/* Modal Styling */
.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(4px);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.modal-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  max-width: 800px;
  width: 100%;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.2);
  overflow: hidden;
}

.modal-header {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: var(--bg-secondary);
}

.modal-tag {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--brand-accent);
  letter-spacing: 0.08em;
}

.modal-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
}

.modal-body {
  padding: 1.5rem;
  overflow-y: auto;
  flex: 1;
}

.modal-footer {
  padding: 1rem 1.5rem;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.75rem;
  background-color: var(--bg-secondary);
}

/* Electronic Bill of Lading (e-BOL) Specific Styles */
.bol-container {
  font-family: var(--font-sans);
  color: var(--text-primary);
}

.bol-header-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding: 1rem;
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
}

.bol-label {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-tertiary);
}

.bol-val {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-primary);
}

.car-inspection-diagram {
  margin: 1.5rem 0;
  padding: 1.25rem;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  background-color: var(--bg-surface);
  text-align: center;
}

.inspection-svg-view {
  max-width: 100%;
  height: auto;
  margin: 0 auto;
}

.inspection-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.75rem;
  padding: 0.35rem 0.85rem;
  background-color: var(--status-emerald-bg);
  color: var(--status-emerald-text);
  border: 1px solid var(--status-emerald-border);
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
}

/* Footer */
.footer {
  margin-top: 4rem;
  border-top: 1px solid var(--border-subtle);
  background-color: var(--bg-surface);
  padding: 2.5rem 1.5rem 1.5rem;
}

.footer-container {
  max-width: 1280px;
  margin: 0 auto 2rem;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2rem;
}

@media (max-width: 768px) {
  .footer-container {
    grid-template-columns: 1fr;
  }
}

.footer-desc {
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-top: 0.5rem;
  max-width: 400px;
}

.footer-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-tertiary);
  margin-bottom: 0.5rem;
}

.footer-info {
  font-size: 0.825rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.footer-bottom {
  max-width: 1280px;
  margin: 0 auto;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-subtle);
  font-size: 0.75rem;
  color: var(--text-tertiary);
  text-align: center;
}

/* Toast alert notification */
.toast-msg {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background-color: var(--text-primary);
  color: var(--bg-surface);
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-md);
  font-size: 0.85rem;
  font-weight: 500;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.3);
  z-index: 200;
  animation: slide-up 0.2s ease;
}

@keyframes slide-up {
  from { transform: translateY(20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

/* Print CSS for Bill of Lading */
@media print {
  body * {
    visibility: hidden;
  }
  #bol-modal, #bol-modal * {
    visibility: visible;
  }
  #bol-modal {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: auto;
    background: white !important;
    color: black !important;
  }
  .modal-card {
    border: none !important;
    box-shadow: none !important;
  }
  .modal-close, .modal-footer {
    display: none !important;
  }
}
