/* ============================================================
   VeriGate Trade Operations Dashboard
   Matches: navy (#0a1628) + gold (#d4a843) + cream (#f5f0e6)
   ============================================================ */

/* Shell */
.dashboard-shell {
  padding: 96px 48px 60px;
  min-height: 100vh;
  background: var(--off-white);
}

/* Header */
.dash-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 32px;
}
.dash-eyebrow {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 6px;
}
.dash-title {
  font-family: 'Playfair Display', serif;
  font-size: 36px;
  font-weight: 700;
  color: var(--text-dark);
  letter-spacing: -0.01em;
  line-height: 1;
}
.dash-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
}
.dash-meta-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-light);
}
.dash-meta-value {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-dark);
}

/* Status Strip */
.status-strip {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
  margin-bottom: 32px;
}
.status-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px 12px;
  background: var(--white);
  border: 1px solid var(--cream-dark);
  gap: 4px;
}
.status-tile-num {
  font-family: 'Playfair Display', serif;
  font-size: 28px;
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1;
}
.status-tile-lbl {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-light);
  text-align: center;
}
.status-tile--transit  { border-top: 3px solid #3b82f6; }
.status-tile--customs  { border-top: 3px solid #f59e0b; }
.status-tile--delivery { border-top: 3px solid #8b5cf6; }
.status-tile--pending  { border-top: 3px solid #94a3b8; }
.status-tile--delivered{ border-top: 3px solid #22c55e; }
.status-tile--delayed  { border-top: 3px solid #ef4444; }

/* Table Card */
.table-card {
  background: var(--white);
  border: 1px solid var(--cream-dark);
}
.table-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 28px;
  border-bottom: 1px solid var(--cream-dark);
  background: var(--off-white);
}
.table-heading {
  font-family: 'Playfair Display', serif;
  font-size: 18px;
  font-weight: 600;
  color: var(--text-dark);
}
.table-count {
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  color: var(--text-light);
  font-weight: 400;
}
.table-actions {
  display: flex;
  gap: 10px;
}

/* Buttons */
.btn-icon {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-mid);
  background: var(--white);
  border: 1px solid var(--cream-dark);
  cursor: pointer;
  letter-spacing: 0.02em;
  transition: border-color 0.15s, color 0.15s;
}
.btn-icon:hover {
  border-color: var(--gold);
  color: var(--text-dark);
}
.btn-icon--primary {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}
.btn-icon--primary:hover {
  background: var(--navy-mid);
  border-color: var(--navy-mid);
  color: var(--gold-light);
}

/* Table */
.table-scroll {
  overflow-x: auto;
}
.shipments-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 1100px;
}
.shipments-table thead {
  background: var(--cream);
  border-bottom: 1px solid var(--cream-dark);
}
.shipments-table th {
  padding: 12px 16px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-light);
  text-align: left;
  white-space: nowrap;
}
.shipments-table tbody tr {
  border-bottom: 1px solid var(--cream-dark);
  cursor: pointer;
  transition: background 0.12s;
}
.shipments-table tbody tr:last-child {
  border-bottom: none;
}
.shipments-table tbody tr:hover {
  background: rgba(212, 168, 67, 0.04);
}
.shipments-table tbody tr.row-delayed {
  background: rgba(239, 68, 68, 0.04);
}
.shipments-table tbody tr.row-delayed:hover {
  background: rgba(239, 68, 68, 0.08);
}
.shipments-table td {
  padding: 14px 16px;
  vertical-align: top;
}

/* Cell types */
.td-id { white-space: nowrap; }
.shipment-id {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-dark);
  font-variant-numeric: tabular-nums;
}
.shipment-type {
  display: inline-block;
  margin-top: 2px;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-light);
  background: var(--cream);
  padding: 1px 6px;
}
.td-client { max-width: 180px; }
.client-name {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-dark);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.incoterm {
  display: block;
  font-size: 11px;
  color: var(--text-light);
  margin-top: 2px;
}
.td-route {
  white-space: nowrap;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.route-origin, .route-dest {
  font-size: 13px;
  color: var(--text-dark);
}
.route-arrow {
  color: var(--gold);
  margin: 1px 0;
}

/* Status badge */
.status-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  padding: 3px 10px;
  letter-spacing: 0.04em;
}

/* Carrier */
.carrier-name {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-dark);
}
.tracking-num {
  display: block;
  font-size: 11px;
  color: var(--text-light);
  margin-top: 2px;
  font-variant-numeric: tabular-nums;
}

/* Cargo */
.cargo-type {
  display: block;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-dark);
}
.cargo-goods {
  display: block;
  font-size: 12px;
  color: var(--text-mid);
  margin-top: 1px;
}
.cargo-weight {
  display: block;
  font-size: 11px;
  color: var(--text-light);
  margin-top: 2px;
}

/* Value */
.value-amount {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-dark);
  font-variant-numeric: tabular-nums;
}

/* Dates */
.date-val {
  display: block;
  font-size: 13px;
  color: var(--text-dark);
  font-variant-numeric: tabular-nums;
}
.date-delivered { color: var(--text-light); text-decoration: line-through; }
.date-tbd {
  font-size: 12px;
  color: var(--text-light);
  font-style: italic;
}

/* Update text */
.update-text {
  display: block;
  font-size: 12px;
  color: var(--text-mid);
  max-width: 220px;
  line-height: 1.4;
}

/* Risk badge */
.risk-badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 600;
  padding: 3px 8px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.risk-high   { background: #fee2e2; color: #ef4444; }
.risk-medium { background: #fef3c7; color: #d97706; }
.risk-low    { background: #f0fdf4; color: #16a34a; }

/* Footer */
.table-footer {
  padding: 12px 28px;
  border-top: 1px solid var(--cream-dark);
  background: var(--off-white);
}
.table-note {
  font-size: 12px;
  color: var(--text-light);
  font-style: italic;
}

/* Nav override for app pages */
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}
.nav-left { display: flex; align-items: center; gap: 16px; }
.nav-right {
  display: flex;
  align-items: center;
  gap: 24px;
}
.nav-link {
  font-size: 13px;
  font-weight: 500;
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  letter-spacing: 0.02em;
  transition: color 0.15s;
}
.nav-link:hover { color: var(--white); }
.nav-link-active { color: var(--gold); }

/* Mobile */
@media (max-width: 768px) {
  .dashboard-shell { padding: 88px 16px 40px; }
  .status-strip { grid-template-columns: repeat(3, 1fr); }
  .dash-header { flex-direction: column; align-items: flex-start; gap: 12px; }
  .shipments-table { font-size: 12px; }
  .table-toolbar { padding: 14px 16px; }
  .table-toolbar .table-heading { font-size: 15px; }
}