/* ============================================================
   STEINWEG YARD MANAGER — LIGHT CORPORATE THEME
   C. Steinweg Oman LLC
   ============================================================ */

:root {
  --steinweg-teal: #006B7F;
  --steinweg-teal-light: #E6F2F5;
  --steinweg-teal-mid: #0085a0;
  --steinweg-dark-navy: #003F59;
  --steinweg-gold: #D9AA27;
  --steinweg-gold-light: #FDF3D8;
  --background: #FFFFFF;
  --background-alt: #F2F6F9;
  --surface: #FFFFFF;
  --surface-hover: #F8FAFB;
  --border: #E2E8F0;
  --border-light: #F1F5F9;
  --text-primary: #1E293B;
  --text-secondary: #5A5C65;
  --text-tertiary: #94A3B8;
  --success: #16A34A;
  --success-light: #DCFCE7;
  --warning: #D97706;
  --warning-light: #FEF3C7;
  --danger: #DC2626;
  --danger-light: #FEE2E2;
  --info: #006B7F;
  --info-light: #E6F2F5;
  --sidebar-width: 240px;
  --topbar-height: 64px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 6px rgba(0,0,0,0.05), 0 2px 4px rgba(0,0,0,0.04);
  --shadow-lg: 0 10px 25px rgba(0,0,0,0.08), 0 4px 10px rgba(0,0,0,0.04);
  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 16px;
}

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

html { font-size: 16px; }

body {
  font-family: 'Source Sans 3', -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 400;
  color: var(--text-primary);
  background: var(--background-alt);
  display: flex;
  min-height: 100vh;
  overflow: hidden;
}

/* ============================================================
   SIDEBAR
   ============================================================ */
.sidebar {
  width: var(--sidebar-width);
  min-height: 100vh;
  background: var(--background);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  position: fixed;
  left: 0;
  top: 0;
  bottom: 0;
  z-index: 100;
  box-shadow: 2px 0 8px rgba(0,0,0,0.04);
}

.sidebar-logo {
  padding: 20px 20px 16px;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.logo-img {
  height: 45px;
  width: auto;
  object-fit: contain;
  object-position: left center;
}

.sidebar-subtitle {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--steinweg-gold);
  padding-left: 2px;
}

.sidebar-nav {
  flex: 1;
  padding: 16px 12px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  overflow-y: auto;
}

.nav-section-label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-tertiary);
  padding: 8px 8px 6px;
  margin-top: 4px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.15s ease;
  cursor: pointer;
}

.nav-item:hover {
  background: var(--background-alt);
  color: var(--steinweg-teal);
}

.nav-item.active {
  background: var(--steinweg-teal-light);
  color: var(--steinweg-teal);
  font-weight: 600;
}

.nav-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  stroke: currentColor;
}

.sidebar-footer {
  padding: 14px 20px;
  border-top: 1px solid var(--border-light);
}

.sidebar-version {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--success);
}

.version-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--success);
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(0.85); }
}

.sidebar-build {
  font-size: 0.72rem;
  color: var(--text-tertiary);
  margin-top: 2px;
}

/* ============================================================
   MAIN WRAPPER
   ============================================================ */
.main-wrapper {
  margin-left: var(--sidebar-width);
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  overflow: hidden;
}

/* ============================================================
   TOP BAR
   ============================================================ */
.top-bar {
  height: var(--topbar-height);
  background: var(--background);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 28px;
  flex-shrink: 0;
  position: sticky;
  top: 0;
  z-index: 50;
}

.top-bar-left { display: flex; flex-direction: column; gap: 1px; }

.page-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--steinweg-teal);
  line-height: 1.2;
}

.page-breadcrumb {
  font-size: 0.78rem;
  color: var(--text-tertiary);
}

.top-bar-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.top-bar-date {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  color: var(--text-secondary);
}

.top-bar-date svg { color: var(--text-tertiary); }

.top-bar-time {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--steinweg-teal);
  background: var(--steinweg-teal-light);
  padding: 4px 10px;
  border-radius: 6px;
}

.user-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--steinweg-dark-navy);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.03em;
}

/* ============================================================
   PAGE CONTENT
   ============================================================ */
.page-content {
  flex: 1;
  overflow-y: auto;
  padding: 28px;
  background: var(--background-alt);
}

/* ============================================================
   CARDS
   ============================================================ */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.card-header {
  padding: 18px 20px 14px;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.card-header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.card-title {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--steinweg-teal);
}

.card-subtitle {
  font-size: 0.78rem;
  color: var(--text-tertiary);
  margin-top: 2px;
}

.card-body { padding: 20px; }

/* ============================================================
   KPI CARDS
   ============================================================ */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

@media (max-width: 1400px) {
  .kpi-grid { grid-template-columns: repeat(3, 1fr); }
}

.kpi-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 18px 20px;
  border-left: 4px solid var(--steinweg-teal);
  position: relative;
  overflow: hidden;
  transition: box-shadow 0.2s, transform 0.2s;
}

.kpi-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}

.kpi-label {
  font-size: 0.69rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.kpi-value {
  font-size: 1.9rem;
  font-weight: 900;
  color: var(--text-primary);
  line-height: 1;
  margin-bottom: 8px;
  font-family: 'Source Sans 3', sans-serif;
}

.kpi-trend {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.78rem;
  font-weight: 600;
}

.kpi-trend.up { color: var(--success); }
.kpi-trend.down { color: var(--danger); }
.kpi-trend.neutral { color: var(--text-tertiary); }

.kpi-sparkline {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 80px;
  height: 40px;
  opacity: 0.35;
}

/* ============================================================
   CHARTS
   ============================================================ */
.charts-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 24px;
}

.charts-grid-3 {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 20px;
  margin-bottom: 24px;
}

.chart-wrap {
  position: relative;
  height: 260px;
}

.chart-wrap-sm {
  position: relative;
  height: 220px;
}

/* ============================================================
   TABLES
   ============================================================ */
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.87rem;
}

.data-table th {
  background: var(--background-alt);
  color: var(--text-secondary);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  padding: 11px 14px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}

.data-table th.sortable { cursor: pointer; user-select: none; }
.data-table th.sortable:hover { color: var(--steinweg-teal); }

.data-table td {
  padding: 11px 14px;
  border-bottom: 1px solid var(--border-light);
  color: var(--text-primary);
  vertical-align: middle;
}

.data-table tr:last-child td { border-bottom: none; }

.data-table tbody tr:nth-child(even) td { background: var(--surface-hover); }
.data-table tbody tr:hover td {
  background: var(--steinweg-teal-light);
  cursor: pointer;
}

.data-table .mono {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.82rem;
  font-weight: 500;
}

.data-table .actions-cell {
  display: flex;
  gap: 6px;
  align-items: center;
}

/* ============================================================
   BADGES
   ============================================================ */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.badge-teal     { background: var(--steinweg-teal-light); color: var(--steinweg-teal); }
.badge-navy     { background: #E6EDF2; color: var(--steinweg-dark-navy); }
.badge-gold     { background: var(--steinweg-gold-light); color: #8B6A0A; }
.badge-success  { background: var(--success-light); color: #15803D; }
.badge-warning  { background: var(--warning-light); color: #92400E; }
.badge-danger   { background: var(--danger-light); color: #991B1B; }
.badge-gray     { background: var(--background-alt); color: var(--text-secondary); }
.badge-purple   { background: #F3E8FF; color: #6B21A8; }
.badge-blue     { background: #DBEAFE; color: #1D4ED8; }
.badge-orange   { background: #FFEDD5; color: #9A3412; }

/* ============================================================
   FILTER PILLS
   ============================================================ */
.filter-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.filter-pill {
  padding: 5px 14px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  border: 1.5px solid var(--border);
  background: var(--surface);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.15s;
}

.filter-pill:hover { border-color: var(--steinweg-teal); color: var(--steinweg-teal); }
.filter-pill.active { background: var(--steinweg-teal); border-color: var(--steinweg-teal); color: white; }

/* ============================================================
   SEARCH INPUT
   ============================================================ */
.search-input-wrap {
  position: relative;
  flex: 1;
  max-width: 340px;
}

.search-input-wrap svg {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-tertiary);
  pointer-events: none;
}

.search-input {
  width: 100%;
  padding: 8px 14px 8px 38px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  font-family: 'Source Sans 3', sans-serif;
  font-size: 0.87rem;
  color: var(--text-primary);
  outline: none;
  transition: border-color 0.15s;
}

.search-input:focus { border-color: var(--steinweg-teal); }
.search-input::placeholder { color: var(--text-tertiary); }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 18px;
  border-radius: var(--radius-sm);
  font-family: 'Source Sans 3', sans-serif;
  font-size: 0.87rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
  border: 1.5px solid transparent;
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background: var(--steinweg-teal);
  color: white;
  border-color: var(--steinweg-teal);
}
.btn-primary:hover { background: var(--steinweg-dark-navy); border-color: var(--steinweg-dark-navy); }

.btn-secondary {
  background: transparent;
  color: var(--steinweg-teal);
  border-color: var(--steinweg-teal);
}
.btn-secondary:hover { background: var(--steinweg-teal-light); }

.btn-gold {
  background: var(--steinweg-gold);
  color: white;
  border-color: var(--steinweg-gold);
}
.btn-gold:hover { background: #c49a20; }

.btn-danger {
  background: var(--danger);
  color: white;
  border-color: var(--danger);
}
.btn-danger:hover { background: #b91c1c; border-color: #b91c1c; }

.btn-icon {
  background: none;
  border: 1.5px solid var(--border);
  color: var(--text-secondary);
  padding: 5px 8px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.15s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.btn-icon:hover { border-color: var(--steinweg-teal); color: var(--steinweg-teal); background: var(--steinweg-teal-light); }
.btn-icon.danger:hover { border-color: var(--danger); color: var(--danger); background: var(--danger-light); }

.btn-sm { padding: 5px 12px; font-size: 0.8rem; }
.btn-lg { padding: 11px 24px; font-size: 0.95rem; }

/* ============================================================
   FORM ELEMENTS
   ============================================================ */
.form-group { margin-bottom: 18px; }

.form-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-secondary);
  margin-bottom: 6px;
}

.form-control {
  width: 100%;
  padding: 9px 13px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  font-family: 'Source Sans 3', sans-serif;
  font-size: 0.88rem;
  color: var(--text-primary);
  outline: none;
  transition: border-color 0.15s;
}

.form-control:focus { border-color: var(--steinweg-teal); }

select.form-control { cursor: pointer; }

.form-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.form-grid-3 {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 14px;
}

.form-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--border-light);
}

/* ============================================================
   TABS
   ============================================================ */
.tab-bar {
  display: flex;
  border-bottom: 2px solid var(--border);
  margin-bottom: 24px;
  gap: 0;
}

.tab-btn {
  padding: 11px 22px;
  background: none;
  border: none;
  font-family: 'Source Sans 3', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  border-bottom: 2.5px solid transparent;
  margin-bottom: -2px;
  transition: all 0.15s;
  display: flex;
  align-items: center;
  gap: 6px;
}

.tab-btn:hover { color: var(--steinweg-teal); }
.tab-btn.active { color: var(--steinweg-teal); border-bottom-color: var(--steinweg-teal); }

/* ============================================================
   PROGRESS BAR
   ============================================================ */
.progress-bar-wrap {
  height: 7px;
  background: var(--border);
  border-radius: 999px;
  overflow: hidden;
}

.progress-bar-fill {
  height: 100%;
  border-radius: 999px;
  background: var(--steinweg-teal);
  transition: width 0.6s ease;
}

.progress-bar-fill.gold { background: var(--steinweg-gold); }
.progress-bar-fill.success { background: var(--success); }
.progress-bar-fill.danger { background: var(--danger); }

/* ============================================================
   YARD MAP
   ============================================================ */
.yard-map-container {
  overflow-x: auto;
  padding-bottom: 8px;
}

.yard-grid-table {
  min-width: 640px;
}

.yard-row {
  display: flex;
  align-items: stretch;
  gap: 6px;
  margin-bottom: 6px;
}

.yard-row-label {
  width: 22px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-tertiary);
  padding-top: 4px;
}

.yard-row-cells {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 6px;
  flex: 1;
}

.yard-col-labels {
  display: flex;
  gap: 6px;
  margin-bottom: 6px;
  padding-left: 28px;
}

.yard-col-label {
  flex: 1;
  text-align: center;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--text-tertiary);
}

.yard-cell {
  border-radius: 7px;
  border: 1px solid var(--border);
  padding: 8px 7px;
  min-height: 76px;
  cursor: pointer;
  transition: all 0.15s;
  position: relative;
  overflow: hidden;
  background: var(--surface);
}

.yard-cell.empty {
  background: var(--background-alt);
  border-style: dashed;
  border-color: #CBD5E1;
  cursor: default;
  opacity: 0.75;
  display: flex;
  align-items: center;
  justify-content: center;
}

.yard-cell.available {
  background: var(--background-alt);
  border-style: dashed;
  border-color: #CBD5E1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 4px;
  transition: all 0.15s;
}

.yard-cell.available:hover {
  border-color: var(--steinweg-teal);
  background: var(--steinweg-teal-light);
}

.yard-cell.occupied {
  border-left: 4px solid var(--steinweg-teal);
  box-shadow: var(--shadow-sm);
}

.yard-cell.occupied:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
  border-left-color: var(--steinweg-dark-navy);
}

.yard-cell-pos {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.65rem;
  font-weight: 600;
  color: var(--text-tertiary);
  margin-bottom: 4px;
}

.yard-cell-plate {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--steinweg-dark-navy);
  margin-bottom: 2px;
}

.yard-cell-type {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 2px;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.yard-cell-status {
  font-size: 0.65rem;
  font-weight: 600;
}

.yard-cell.empty .yard-cell-pos { color: var(--text-tertiary); }

.yard-cell-add-icon {
  color: var(--text-tertiary);
  font-size: 1rem;
  line-height: 1;
}

/* Vehicle type color coding */
.yard-cell.truck        { border-left-color: #006B7F; }
.yard-cell.prime-mover  { border-left-color: #003F59; }
.yard-cell.forklift     { border-left-color: #D9AA27; }
.yard-cell.crane        { border-left-color: #D97706; }
.yard-cell.trailer      { border-left-color: #6366F1; }
.yard-cell.loader       { border-left-color: #16A34A; }

/* ============================================================
   VESSEL CARDS
   ============================================================ */
.vessel-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-bottom: 24px;
}

.vessel-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow-sm);
  border-top: 4px solid var(--steinweg-teal);
}

.vessel-name {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.vessel-imo {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  color: var(--text-tertiary);
  margin-bottom: 14px;
}

.vessel-stat-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 12px;
  gap: 8px;
}

.vessel-stat { flex: 1; }

.vessel-stat-label {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--text-tertiary);
  margin-bottom: 2px;
}

.vessel-stat-value {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-primary);
}

/* ============================================================
   REPORT CARDS
   ============================================================ */
.reports-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-bottom: 24px;
}

.report-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  transition: all 0.2s;
}

.report-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.report-icon {
  width: 44px;
  height: 44px;
  background: var(--steinweg-teal-light);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  color: var(--steinweg-teal);
}

.report-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.report-desc {
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.45;
  margin-bottom: 16px;
}

/* ============================================================
   ZONE CARDS
   ============================================================ */
.zones-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-bottom: 24px;
}

.zone-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow-sm);
  border-top: 4px solid var(--steinweg-teal);
  transition: all 0.15s;
}

.zone-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}

.zone-id {
  font-family: 'JetBrains Mono', monospace;
  font-size: 1.8rem;
  font-weight: 900;
  color: var(--steinweg-teal);
  line-height: 1;
  margin-bottom: 4px;
}

.zone-name {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 14px;
}

.zone-stat-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 12px;
  gap: 8px;
}

.zone-stat { flex: 1; }

.zone-stat-label {
  font-size: 0.66rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--text-tertiary);
  margin-bottom: 2px;
}

.zone-stat-value {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text-primary);
}

/* ============================================================
   ACTIVITY LOG
   ============================================================ */
.activity-list { list-style: none; }

.activity-item {
  display: flex;
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border-light);
}

.activity-item:last-child { border-bottom: none; }

.activity-icon {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}

.activity-icon.add    { background: var(--success-light); color: var(--success); }
.activity-icon.edit   { background: var(--steinweg-teal-light); color: var(--steinweg-teal); }
.activity-icon.delete { background: var(--danger-light); color: var(--danger); }
.activity-icon.assign { background: var(--steinweg-gold-light); color: #8B6A0A; }
.activity-icon.release { background: #E6EDF2; color: var(--steinweg-dark-navy); }
.activity-icon.move   { background: #F3E8FF; color: #6B21A8; }

.activity-body { flex: 1; }

.activity-title {
  font-size: 0.87rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 2px;
}

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

/* ============================================================
   SUMMARY BAR
   ============================================================ */
.summary-bar {
  display: flex;
  align-items: center;
  gap: 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 20px;
  margin-bottom: 20px;
  box-shadow: var(--shadow-sm);
  flex-wrap: wrap;
}

.summary-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
}

.summary-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

.summary-label { color: var(--text-secondary); }
.summary-value { font-weight: 700; color: var(--text-primary); }

/* ============================================================
   MODAL
   ============================================================ */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
  backdrop-filter: blur(2px);
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: all;
}

.modal-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
  width: 560px;
  max-width: 92vw;
  max-height: 85vh;
  overflow-y: auto;
  transform: translateY(12px) scale(0.98);
  transition: transform 0.2s;
}

.modal-overlay.active .modal-card {
  transform: translateY(0) scale(1);
}

.modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 22px 24px 16px;
  border-bottom: 1px solid var(--border-light);
  position: sticky;
  top: 0;
  background: var(--surface);
  z-index: 1;
}

.modal-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--steinweg-teal);
}

.modal-subtitle {
  font-size: 0.8rem;
  color: var(--text-tertiary);
  margin-top: 2px;
}

.modal-close {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-tertiary);
  padding: 4px;
  border-radius: 6px;
  transition: all 0.15s;
  flex-shrink: 0;
}

.modal-close:hover { background: var(--background-alt); color: var(--text-primary); }

.modal-body { padding: 20px 24px 24px; }

/* ============================================================
   DETAIL GRID (modal)
   ============================================================ */
.detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 16px;
}

.detail-item-label {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--text-tertiary);
  margin-bottom: 3px;
}

.detail-item-value {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
}

/* ============================================================
   PAGE SECTION HEADERS
   ============================================================ */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  flex-wrap: wrap;
  gap: 8px;
}

.section-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--steinweg-teal);
}

/* ============================================================
   UTILITY
   ============================================================ */
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-2 { gap: 8px; }
.gap-3 { gap: 12px; }
.gap-4 { gap: 16px; }
.mb-1 { margin-bottom: 4px; }
.mb-2 { margin-bottom: 8px; }
.mb-3 { margin-bottom: 12px; }
.mb-4 { margin-bottom: 16px; }
.mb-5 { margin-bottom: 20px; }
.mb-6 { margin-bottom: 24px; }
.mt-2 { margin-top: 8px; }
.mt-4 { margin-top: 16px; }
.text-xs { font-size: 0.78rem; }
.text-sm { font-size: 0.87rem; }
.font-mono { font-family: 'JetBrains Mono', monospace; }
.font-bold { font-weight: 700; }
.text-teal { color: var(--steinweg-teal); }
.text-muted { color: var(--text-secondary); }
.text-tertiary { color: var(--text-tertiary); }
.text-right { text-align: right; }
.text-danger { color: var(--danger); }
.text-success { color: var(--success); }

.w-full { width: 100%; }
.overflow-auto { overflow: auto; }

.divider {
  height: 1px;
  background: var(--border-light);
  margin: 16px 0;
}

/* ============================================================
   SCROLLBAR
   ============================================================ */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-tertiary); }

/* ============================================================
   ANIMATED COUNTER
   ============================================================ */
@keyframes countUp { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: translateY(0); } }
.counter-animate { animation: countUp 0.5s ease forwards; }

/* ============================================================
   TABLE PAGE FOOTER
   ============================================================ */
.table-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: var(--background-alt);
  border-top: 1px solid var(--border);
  border-radius: 0 0 var(--radius) var(--radius);
  font-size: 0.82rem;
  color: var(--text-secondary);
}

/* ============================================================
   EMPTY STATE
   ============================================================ */
.empty-state {
  text-align: center;
  padding: 48px 24px;
}

.empty-state-icon {
  width: 56px;
  height: 56px;
  background: var(--background-alt);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  color: var(--text-tertiary);
}

.empty-state-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.empty-state-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 20px;
}

/* ============================================================
   TOAST NOTIFICATION
   ============================================================ */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

.toast {
  background: var(--steinweg-dark-navy);
  color: white;
  padding: 12px 18px;
  border-radius: var(--radius-sm);
  font-size: 0.87rem;
  font-weight: 600;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 10px;
  animation: toastIn 0.3s ease forwards;
  border-left: 4px solid var(--steinweg-gold);
  pointer-events: all;
}

.toast.success { border-left-color: var(--success); }
.toast.danger  { border-left-color: var(--danger); }

@keyframes toastIn {
  from { opacity: 0; transform: translateX(20px); }
  to   { opacity: 1; transform: translateX(0); }
}

@keyframes toastOut {
  from { opacity: 1; transform: translateX(0); }
  to   { opacity: 0; transform: translateX(20px); }
}
