/* ==========================================================================
   Hukum Logistics – application styles
   Load order: fonts.css → bootstrap.min.css → app.css
   Bootstrap is themed through its CSS variables; custom classes exist only
   where the Figma design has no Bootstrap equivalent.
   ========================================================================== */

/* 1. Design tokens + Bootstrap theme
   -------------------------------------------------------------------------- */
:root {
  --hl-navy-900: #0f172a;
  --hl-navy-800: #1e293b;
  --hl-slate-700: #374151;
  --hl-slate-600: #475569;
  --hl-slate-500: #64748b;
  --hl-slate-400: #94a3b8;
  --hl-slate-300: #cbd5e1;
  --hl-slate-200: #e2e8f0;
  --hl-slate-100: #f1f5f9;
  --hl-slate-50: #f8fafc;
  --hl-input-border: #d1d5db;

  --hl-blue: #2563eb;
  --hl-blue-dark: #1d4ed8;
  --hl-blue-50: #eff6ff;
  --hl-green: #16a34a;
  --hl-orange: #ea580c;
  --hl-amber: #d97706;
  --hl-red: #dc2626;
  --hl-purple: #7c3aed;
  --hl-cyan: #0891b2;

  --hl-font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --hl-font-head: 'DM Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --hl-font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Consolas, monospace;

  --hl-sidebar-w: 260px;
  --hl-header-h: 64px;
  --hl-radius: 12px;
  --hl-shadow: 0 1px 3px rgba(0, 0, 0, .06), 0 1px 2px rgba(0, 0, 0, .04);
  --hl-shadow-lg: 0 4px 12px rgba(0, 0, 0, .08);

  --accent: var(--hl-blue);

  /* Bootstrap overrides */
  --bs-primary: #2563eb;
  --bs-primary-rgb: 37, 99, 235;
  --bs-success: #16a34a;
  --bs-success-rgb: 22, 163, 74;
  --bs-danger: #dc2626;
  --bs-danger-rgb: 220, 38, 38;
  --bs-warning: #d97706;
  --bs-warning-rgb: 217, 119, 6;
  --bs-info: #0891b2;
  --bs-info-rgb: 8, 145, 178;
  --bs-body-font-family: var(--hl-font-body);
  --bs-body-font-size: .84375rem; /* 13.5px */
  --bs-body-color: #1e293b;
  --bs-body-color-rgb: 30, 41, 59;
  --bs-body-bg: #f1f5f9;
  --bs-emphasis-color: #0f172a;
  --bs-secondary-color: #64748b;
  --bs-border-color: #e2e8f0;
  --bs-link-color: #2563eb;
  --bs-link-color-rgb: 37, 99, 235;
  --bs-link-hover-color: #1d4ed8;
  --bs-link-hover-color-rgb: 29, 78, 216;
  --bs-focus-ring-color: rgba(37, 99, 235, .15);
}

/* Accent helpers – set --accent for KPI cards, sub-navs, dropzones, page titles */
.accent-blue   { --accent: #2563eb; }
.accent-green  { --accent: #16a34a; }
.accent-orange { --accent: #ea580c; }
.accent-amber  { --accent: #d97706; }
.accent-red    { --accent: #dc2626; }
.accent-purple { --accent: #7c3aed; }
.accent-cyan   { --accent: #0891b2; }

/* 2. Base + typography
   -------------------------------------------------------------------------- */
h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6 {
  font-family: var(--hl-font-head);
  font-weight: 700;
  color: var(--hl-navy-900);
}

.font-mono { font-family: var(--hl-font-mono) !important; }
.font-head { font-family: var(--hl-font-head) !important; }
.fw-800 { font-weight: 800 !important; }
.fs-xs { font-size: 11px !important; }
.fs-sm { font-size: 12px !important; }
.fs-md { font-size: 13px !important; }
.text-faint { color: var(--hl-slate-400) !important; }
.text-dark-2 { color: var(--hl-slate-700) !important; }
.text-purple { color: var(--hl-purple) !important; }
.text-slate-400 { color: var(--hl-slate-400) !important; }
.text-slate-500 { color: var(--hl-slate-500) !important; }
.text-orange { color: var(--hl-orange) !important; }
.text-cyan { color: var(--hl-cyan) !important; }
.min-w-0 { min-width: 0; }

.icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  vertical-align: -.2em;
}
.icon-xs { width: 12px; height: 12px; }
.icon-sm { width: 14px; height: 14px; }
.icon-lg { width: 20px; height: 20px; }
.icon-xl { width: 28px; height: 28px; }

/* 3. App shell – sidebar, header, content
   -------------------------------------------------------------------------- */
.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 1030;
  display: flex;
  flex-direction: column;
  width: var(--hl-sidebar-w);
  background: var(--hl-navy-900);
  transition: transform .25s ease;
}

.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 16px 12px;
  border-bottom: 1px solid var(--hl-navy-800);
  text-decoration: none;
}
.sidebar-logo {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border-radius: 50%;
  background: #fff;
  object-fit: contain;
}
.sidebar-brand-name {
  font-family: var(--hl-font-head);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.2;
  color: #f1f5f9;
}
.sidebar-brand-sub { font-size: 10.5px; color: var(--hl-slate-600); }

.sidebar-nav {
  flex: 1;
  overflow-y: auto;
  padding: 8px 0 24px;
  scrollbar-width: thin;
  scrollbar-color: #334155 transparent;
}
.sidebar-nav::-webkit-scrollbar { width: 4px; }
.sidebar-nav::-webkit-scrollbar-thumb { background: #334155; border-radius: 2px; }

.sidebar-heading,
.sidebar-group-toggle {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--hl-slate-600);
}
.sidebar-heading { padding: 16px 24px 6px; margin: 0; }
.sidebar-group-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 14px 24px 4px;
  border: 0;
  background: none;
}
.sidebar-group-toggle .icon { width: 12px; height: 12px; transition: transform .2s; }
.sidebar-group-toggle[aria-expanded="true"] .icon { transform: rotate(180deg); }

.sidebar-menu { margin: 0; padding: 0; list-style: none; }
.sidebar-link {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 1px 8px;
  padding: 9px 16px;
  border-radius: 8px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--hl-slate-400);
  text-decoration: none;
  transition: background .15s, color .15s;
}
.sidebar-link .icon { width: 15px; height: 15px; }
.sidebar-link:hover, .sidebar-link:focus-visible { background: var(--hl-navy-800); color: #e2e8f0; }
.sidebar-link.active { background: var(--hl-blue); color: #fff; }

.sidebar-user {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-top: 1px solid var(--hl-navy-800);
}
.sidebar-user-name { font-size: 13px; font-weight: 600; color: #e2e8f0; }
.sidebar-user-role { font-size: 11px; color: var(--hl-slate-500); }
.sidebar-logout { color: var(--hl-slate-500); padding: 4px; line-height: 1; }
.sidebar-logout:hover { color: #e2e8f0; }

.sidebar-overlay {
  position: fixed;
  inset: 0;
  z-index: 1029;
  display: none;
  background: rgba(0, 0, 0, .5);
}

.app-main {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 100vh;
  margin-left: var(--hl-sidebar-w);
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 1020;
  display: flex;
  align-items: center;
  gap: 16px;
  height: var(--hl-header-h);
  padding: 0 24px;
  background: #fff;
  border-bottom: 1px solid var(--hl-slate-200);
}
.topbar-title {
  margin: 0;
  font-size: 18px;
  line-height: 1.25;
}
.topbar-date { font-family: var(--hl-font-mono); font-size: 12px; color: var(--hl-slate-400); }
.topbar-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 8px;
  border: 0;
  border-radius: 8px;
  background: none;
  color: var(--hl-slate-500);
}
.topbar-btn:hover { background: var(--hl-slate-50); }
.topbar-btn .icon { width: 18px; height: 18px; }
.topbar-btn .icon-xs { width: 14px; height: 14px; }
.notify-dot {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 8px;
  height: 8px;
  border: 2px solid #fff;
  border-radius: 50%;
  background: var(--hl-red);
}
.topbar-user-name { font-size: 13px; font-weight: 600; color: var(--hl-slate-700); }
.topbar-period {
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.topbar-period .form-control {
  width: 9.75rem;
}

.app-content {
  flex: 1;
  width: 100%;
  max-width: 1600px;
  margin: 0 auto;
  padding: 24px;
}

@media (max-width: 991.98px) {
  .sidebar { transform: translateX(-100%); }
  .sidebar-open .sidebar { transform: none; }
  .sidebar-open .sidebar-overlay { display: block; }
  .app-main { margin-left: 0; }
}
@media (max-width: 575.98px) {
  .topbar { gap: 8px; padding: 0 12px; }
  .app-content { padding: 16px; }
}

/* 4. Page title + breadcrumb
   -------------------------------------------------------------------------- */
.page-title {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px 16px;
  margin-bottom: 20px;
}
.page-title h1 { margin: 0; font-size: 25px; }
.page-eyebrow { margin-bottom: 6px; font-family: var(--hl-font-mono); font-size: 10.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); }
.page-title p { margin: 4px 0 0; font-size: 12.5px; color: var(--hl-slate-500); }
.page-actions { display: flex; flex-wrap: wrap; gap: 8px; }

.breadcrumb {
  --bs-breadcrumb-margin-bottom: 6px;
  --bs-breadcrumb-font-size: 10.5px;
  --bs-breadcrumb-divider-color: var(--hl-slate-300);
  --bs-breadcrumb-item-active-color: var(--accent);
  --bs-breadcrumb-item-padding-x: 6px;
  --bs-breadcrumb-divider: '/';
  font-family: var(--hl-font-mono);
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.breadcrumb a { color: var(--hl-slate-400); text-decoration: none; }
.breadcrumb a:hover { color: var(--accent); }

/* 5. Buttons
   -------------------------------------------------------------------------- */
.btn {
  --bs-btn-font-family: var(--hl-font-head);
  --bs-btn-font-size: 13.5px;
  --bs-btn-font-weight: 600;
  --bs-btn-padding-x: 18px;
  --bs-btn-padding-y: 9px;
  --bs-btn-border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  white-space: nowrap;
  transition: color .15s, background-color .15s, border-color .15s, transform .1s;
}
.btn-sm {
  --bs-btn-font-size: 12px;
  --bs-btn-padding-x: 12px;
  --bs-btn-padding-y: 5px;
  --bs-btn-border-radius: 6px;
}
.btn-primary {
  --bs-btn-bg: #2563eb;
  --bs-btn-border-color: #2563eb;
  --bs-btn-hover-bg: #1d4ed8;
  --bs-btn-hover-border-color: #1d4ed8;
  --bs-btn-active-bg: #1e40af;
  --bs-btn-active-border-color: #1e40af;
  --bs-btn-disabled-bg: #2563eb;
  --bs-btn-disabled-border-color: #2563eb;
  --bs-btn-focus-shadow-rgb: 37, 99, 235;
}
.btn-primary:hover { transform: translateY(-1px); }
.btn-success {
  --bs-btn-bg: #16a34a;
  --bs-btn-border-color: #16a34a;
  --bs-btn-hover-bg: #15803d;
  --bs-btn-hover-border-color: #15803d;
  --bs-btn-active-bg: #166534;
  --bs-btn-active-border-color: #166534;
}
/* Figma "secondary" button: white, grey border */
.btn-outline-secondary {
  --bs-btn-color: #374151;
  --bs-btn-bg: #fff;
  --bs-btn-border-color: #d1d5db;
  --bs-btn-hover-color: #374151;
  --bs-btn-hover-bg: #f8fafc;
  --bs-btn-hover-border-color: #9ca3af;
  --bs-btn-active-color: #374151;
  --bs-btn-active-bg: #f1f5f9;
  --bs-btn-active-border-color: #9ca3af;
  --bs-btn-focus-shadow-rgb: 100, 116, 139;
}
/* Soft tinted buttons (Clear filters, export buttons) */
.btn-soft {
  --bs-btn-color: var(--accent);
  --bs-btn-bg: color-mix(in srgb, var(--accent) 8%, #fff);
  --bs-btn-border-color: color-mix(in srgb, var(--accent) 22%, #fff);
  --bs-btn-hover-color: var(--accent);
  --bs-btn-hover-bg: color-mix(in srgb, var(--accent) 15%, #fff);
  --bs-btn-hover-border-color: color-mix(in srgb, var(--accent) 35%, #fff);
  --bs-btn-active-color: var(--accent);
  --bs-btn-active-bg: color-mix(in srgb, var(--accent) 18%, #fff);
}
/* Glass button used on dark banners */
.btn-glass {
  --bs-btn-color: #e2e8f0;
  --bs-btn-bg: rgba(255, 255, 255, .08);
  --bs-btn-border-color: rgba(255, 255, 255, .2);
  --bs-btn-hover-color: #fff;
  --bs-btn-hover-bg: rgba(255, 255, 255, .15);
  --bs-btn-hover-border-color: rgba(255, 255, 255, .3);
}
/* Dashed "add another" button */
.btn-dashed {
  --bs-btn-color: var(--hl-slate-500);
  --bs-btn-bg: #fafafa;
  --bs-btn-border-color: #d1d5db;
  --bs-btn-hover-color: var(--hl-blue);
  --bs-btn-hover-bg: var(--hl-blue-50);
  --bs-btn-hover-border-color: #93c5fd;
  width: 100%;
  justify-content: center;
  border-width: 2px;
  border-style: dashed;
}
/* Square icon button with tooltip (table actions) */
.btn-icon {
  --bs-btn-padding-x: 0;
  --bs-btn-padding-y: 0;
  --bs-btn-border-radius: 6px;
  --bs-btn-color: var(--accent);
  --bs-btn-bg: #f8fafc;
  --bs-btn-border-color: #e2e8f0;
  --bs-btn-hover-color: var(--accent);
  --bs-btn-hover-bg: color-mix(in srgb, var(--accent) 8%, #fff);
  --bs-btn-hover-border-color: var(--accent);
  width: 30px;
  height: 30px;
}
.btn-icon .icon { width: 13px; height: 13px; }

/* 6. Cards
   -------------------------------------------------------------------------- */
.card {
  --bs-card-border-color: var(--hl-slate-200);
  --bs-card-border-radius: var(--hl-radius);
  --bs-card-inner-border-radius: calc(var(--hl-radius) - 1px);
  --bs-card-spacer-x: 24px;
  --bs-card-spacer-y: 24px;
  --bs-card-cap-bg: #fff;
  --bs-card-cap-padding-x: 20px;
  --bs-card-cap-padding-y: 18px;
  box-shadow: var(--hl-shadow);
}
.card-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border-bottom: 0;
}
.card-header + .card-body { padding-top: 0; }
.card-title { margin: 0; font-size: 15px; }
.card-subtitle { margin: 3px 0 0; font-size: 12px; color: var(--hl-slate-400); }
.card-body-sm { padding: 16px 18px; }
.card-footer { background: #fafafa; border-top-color: var(--hl-slate-100); }

.card-hero {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 24px 28px;
  color: #fff;
  background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 100%);
}
.card-hero h2 { color: #fff; }
.card-hero-blue { padding: 20px; background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 55%, #1e40af 100%); }
.card-hero-orange { background: linear-gradient(135deg, #ea580c, #d97706); }
.card-hero-meta { display: flex; flex-wrap: wrap; gap: 6px 20px; font-size: 13px; color: var(--hl-slate-400); }
.hero-icon {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  flex-shrink: 0;
  border-radius: 14px;
  background: var(--hl-blue);
  color: #fff;
}

/* KPI card (dashboard + module summaries) */
.kpi-card {
  height: 100%;
  padding: 20px;
  background: #fff;
  border: 1px solid var(--hl-slate-200);
  border-top: 3px solid var(--accent);
  border-radius: var(--hl-radius);
  box-shadow: var(--hl-shadow);
  transition: transform .15s ease, box-shadow .15s ease;
}
.kpi-card:hover { transform: translateY(-1px); box-shadow: var(--hl-shadow-lg); }
.kpi-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; margin-bottom: 14px; }
.kpi-label {
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--hl-slate-500);
}
.kpi-icon {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  border-radius: 8px;
  color: var(--accent);
  background: color-mix(in srgb, var(--accent) 10%, transparent);
}
.kpi-value {
  margin-bottom: 8px;
  font-family: var(--hl-font-head);
  font-size: 28px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -.5px;
  color: var(--hl-navy-900);
}
.kpi-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.kpi-trend { display: inline-flex; align-items: center; gap: 2px; font-size: 12px; font-weight: 600; }
.kpi-trend.up { color: var(--hl-green); }
.kpi-trend.down { color: var(--hl-red); }
.kpi-sub { font-size: 11.5px; color: var(--hl-slate-400); }

/* Summary variant used above list tables (vehicles) */
.kpi-card-md { padding: 16px 18px; }
.kpi-card-md .kpi-head { margin-bottom: 10px; }
.kpi-card-md .kpi-label { font-size: 11px; font-weight: 700; letter-spacing: .06em; color: var(--hl-slate-400); }
.kpi-card-md .kpi-icon { width: 32px; height: 32px; }
.kpi-card-md .kpi-value { margin-bottom: 4px; font-size: 30px; letter-spacing: 0; }
.kpi-card-money .kpi-value { margin-bottom: 3px; font-size: 20px; }
/* Drivers: no accent strip, value in the accent colour */
.kpi-card-plain { padding: 14px 16px; border-top: 1px solid var(--hl-slate-200); }
.kpi-card-plain .kpi-head { margin-bottom: 8px; }
.kpi-card-plain .kpi-label { font-size: 10.5px; font-weight: 700; letter-spacing: .07em; line-height: 1.3; color: var(--hl-slate-400); }
.kpi-card-plain .kpi-icon { width: 30px; height: 30px; }
.kpi-card-plain .kpi-value { margin: 0 0 2px; font-family: var(--hl-font-mono); font-size: 24px; font-weight: 800; color: var(--accent); }

/* Compact variant used by Expenses / Fuel / RTO / Drivers modules */
.kpi-card-sm { padding: 16px 17px; }
.kpi-card-sm .kpi-head { margin-bottom: 0; }
.kpi-card-sm .kpi-label { font-size: 10.5px; font-weight: 800; letter-spacing: .08em; }
.kpi-card-sm .kpi-icon { width: 30px; height: 30px; }
.kpi-card-sm .kpi-value { margin: 9px 0 5px; font-family: var(--hl-font-mono); font-size: 21px; font-weight: 800; letter-spacing: 0; }

/* Auto-fit grid matching the Figma KPI rows; set --kpi-min per page if needed. */
.kpi-grid {
  --kpi-min: 220px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(var(--kpi-min), 100%), 1fr));
  gap: 16px;
}
.kpi-grid-sm { --kpi-min: 170px; gap: 14px; }

/* 7. Tables
   -------------------------------------------------------------------------- */
.table-hl {
  --bs-table-bg: transparent;
  --bs-table-color: #374151;
  --bs-table-border-color: var(--hl-slate-100);
  --bs-table-hover-bg: var(--hl-slate-50);
  --bs-table-hover-color: #374151;
  --bs-table-active-bg: var(--hl-blue-50);
  margin: 0;
  font-size: 13.5px;
  vertical-align: middle;
}
.table-hl > thead th {
  padding: 10px 16px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--hl-slate-500);
  background: var(--hl-slate-50);
  border-bottom: 1px solid var(--hl-slate-200);
}
.table-hl > tbody > tr > td { padding: 13px 16px; }
.table-hl > tbody > tr:last-child > td { border-bottom: 0; }
.table-hl > tfoot td {
  padding: 10px 16px;
  font-size: 12px;
  font-weight: 700;
  color: var(--hl-slate-500);
  background: var(--hl-slate-50);
  border-top: 2px solid var(--hl-slate-200);
  border-bottom: 0;
}
.table-hl .row-link { cursor: pointer; }
.table-wide { min-width: 1100px; }

.cell-id {
  padding: 0;
  border: 0;
  background: none;
  font-family: var(--hl-font-mono);
  font-size: 12px;
  font-weight: 700;
  color: var(--hl-blue);
  text-decoration: none;
}
.cell-id:hover { text-decoration: underline; }
.cell-sub { display: block; font-size: 11px; color: var(--hl-slate-400); }
.cell-money { font-family: var(--hl-font-mono); font-weight: 700; white-space: nowrap; }
.cell-chip {
  padding: 3px 8px;
  border-radius: 5px;
  font-family: var(--hl-font-mono);
  font-size: 12px;
  font-weight: 700;
  color: var(--hl-blue);
  background: var(--hl-blue-50);
  white-space: nowrap;
}
.table-actions { display: flex; flex-wrap: nowrap; gap: 4px; }

.vehicle-cell { display: flex; align-items: center; gap: 8px; }
.vehicle-icon {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  border-radius: 8px;
  color: var(--accent);
  background: color-mix(in srgb, var(--accent) 9%, #fff);
}

.table-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 20px;
  font-size: 12.5px;
  color: var(--hl-slate-500);
  background: #fafafa;
  border-top: 1px solid var(--hl-slate-100);
}
.table-empty { padding: 56px 24px; text-align: center; }
.empty-icon {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  margin: 0 auto 16px;
  border-radius: 16px;
  color: var(--hl-slate-400);
  background: var(--hl-slate-100);
}

.totals-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 24px;
  padding: 12px 20px;
  font-size: 12px;
  color: var(--hl-slate-400);
  background: var(--hl-slate-50);
  border-top: 2px solid var(--hl-slate-200);
}
.totals-bar strong { font-family: var(--hl-font-mono); font-size: 14px; font-weight: 800; }

/* 8. Status badges
   -------------------------------------------------------------------------- */
.badge {
  --bs-badge-padding-x: 10px;
  --bs-badge-padding-y: 3px;
  --bs-badge-font-size: 11.5px;
  --bs-badge-font-weight: 600;
  --bs-badge-color: #475569;
  --bs-badge-border-radius: 20px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: var(--hl-slate-100);
}
.badge-square { --bs-badge-border-radius: 5px; --bs-badge-padding-x: 8px; --bs-badge-padding-y: 2px; --bs-badge-font-size: 11px; --bs-badge-font-weight: 700; }
.badge-green  { background: #dcfce7; color: #15803d; }
.badge-blue   { background: #dbeafe; color: #1d4ed8; }
.badge-orange { background: #ffedd5; color: #c2410c; }
.badge-amber  { background: #fef3c7; color: #b45309; }
.badge-red    { background: #fee2e2; color: #b91c1c; }
.badge-gray   { background: #f1f5f9; color: #475569; }
.badge-purple { background: #f3e8ff; color: #7c3aed; }
.badge-cyan   { background: #e0f2fe; color: #0369a1; }

.status-dot { display: inline-flex; align-items: center; gap: 5px; font-weight: 600; white-space: nowrap; }
.status-dot::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }

.stars { color: #f59e0b; letter-spacing: 1px; white-space: nowrap; }
.stars .off { color: var(--hl-slate-200); }

/* 9. Forms
   -------------------------------------------------------------------------- */
.form-label {
  margin-bottom: 6px;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--hl-slate-500);
}
.form-label.required::after { content: ' *'; color: var(--hl-red); }
.form-control,
.form-select {
  --bs-border-color: var(--hl-input-border);
  padding: 9px 12px;
  font-size: 13.5px;
  color: #1e293b;
  border-radius: 8px;
}
.form-select { padding-right: 36px; }
.form-control-sm, .form-select-sm { padding-top: 8px; padding-bottom: 8px; font-size: 13px; border-radius: 8px; }
.form-control::placeholder { color: var(--hl-slate-400); }
.form-control:focus,
.form-select:focus {
  border-color: var(--hl-blue);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, .1);
}
.hl-search-select { position: relative; }
.hl-search-select-native {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: 0 !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0);
  border: 0 !important;
  opacity: 0;
}
.hl-search-select-list {
  position: absolute;
  z-index: 30;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  max-height: 240px;
  overflow: auto;
  background: #fff;
  border: 1px solid var(--hl-input-border);
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, .12);
}
.hl-search-select-item {
  display: block;
  width: 100%;
  padding: 8px 12px;
  border: 0;
  background: none;
  text-align: left;
  font-size: 13.5px;
  color: #1e293b;
}
.hl-search-select-item:hover,
.hl-search-select-item.is-active { background: var(--hl-slate-50); }
.hl-search-select-empty {
  padding: 8px 12px;
  font-size: 13px;
  color: var(--hl-slate-500);
}
.filter-bar > .hl-search-select { width: auto; min-width: 180px; flex: 0 1 220px; }
.form-control[readonly] { background: var(--hl-slate-50); }
.form-control.is-computed { font-weight: 800; color: #0f766e; background: #ecfeff; }
.form-control.is-computed-green { font-weight: 800; color: #047857; background: #ecfdf5; }
.form-check-input:checked { background-color: var(--hl-blue); border-color: var(--hl-blue); }
.form-check-label { font-size: 13px; color: var(--hl-slate-700); }

.input-icon { position: relative; }
.input-icon > .icon {
  position: absolute;
  top: 50%;
  left: 11px;
  width: 14px;
  height: 14px;
  color: var(--hl-slate-400);
  transform: translateY(-50%);
  pointer-events: none;
}
.input-icon > .form-control { padding-left: 34px; }
.input-icon > .input-icon-btn {
  position: absolute;
  top: 50%;
  right: 8px;
  padding: 4px;
  border: 0;
  background: none;
  color: var(--hl-slate-500);
  line-height: 1;
  transform: translateY(-50%);
}
.input-icon:has(.input-icon-btn) > .form-control { padding-right: 40px; }

.form-section-title {
  margin-bottom: 12px;
  padding-bottom: 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--hl-blue);
  border-bottom: 1px solid var(--hl-slate-200);
}

.filter-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.filter-bar > .input-icon { flex: 1 1 220px; min-width: 200px; }
.filter-bar > .form-select, .filter-bar > .form-control { width: auto; min-width: 140px; }
.filter-bar-actions { display: flex; gap: 8px; margin-left: auto; }
.filter-summary { margin-top: 10px; font-size: 12.5px; color: var(--hl-slate-500); }
.check-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 12px;
  font-size: 13px;
  font-weight: 600;
  color: var(--hl-slate-700);
  background: var(--hl-slate-50);
  border: 1px solid var(--hl-slate-200);
  border-radius: 8px;
  cursor: pointer;
}
.check-chip:has(input:checked) { color: var(--hl-red); background: #fee2e2; border-color: #fca5a5; }
.check-chip input { accent-color: var(--hl-red); }

.date-range {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 11px;
  font-size: 12px;
  color: var(--hl-slate-400);
  background: var(--hl-slate-50);
  border: 1px solid var(--hl-slate-200);
  border-radius: 8px;
}
.date-range input { padding: 3px 0; border: 0; background: transparent; font-size: 12px; color: var(--hl-slate-700); outline: none; }

@media (max-width: 575.98px) {
  .filter-bar > * { flex: 1 1 100%; margin-left: 0; }
  .filter-bar > .form-select, .filter-bar > .form-control { flex-basis: calc(50% - 5px); min-width: 0; }
  .filter-bar-actions > .btn { flex: 1; }
}

/* 10. File upload (dropzone)
   -------------------------------------------------------------------------- */
.dropzone {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  width: 100%;
  padding: 25px 16px;
  text-align: center;
  color: var(--accent);
  background: color-mix(in srgb, var(--accent) 7%, #fff);
  border: 1.5px dashed color-mix(in srgb, var(--accent) 45%, #fff);
  border-radius: 9px;
  cursor: pointer;
  transition: background .15s, border-color .15s;
}
.dropzone:hover, .dropzone.is-dragover { background: color-mix(in srgb, var(--accent) 12%, #fff); border-color: var(--accent); }
.dropzone:focus-within { outline: 3px solid rgba(37, 99, 235, .15); }
.dropzone .icon { width: 24px; height: 24px; margin-bottom: 4px; }
.dropzone-title { font-size: 13px; font-weight: 700; }
.dropzone-hint { font-size: 11px; color: var(--hl-slate-500); }
.dropzone-file { margin-top: 6px; font-size: 12px; font-weight: 600; color: var(--hl-green); }
.dropzone-file:empty { display: none; }

.photo-upload {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 80px;
  height: 80px;
  flex-shrink: 0;
  font-size: 9.5px;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  color: #fff;
  background: linear-gradient(135deg, #2563eb, #7c3aed);
  border: 2px dashed rgba(255, 255, 255, .4);
  border-radius: 16px;
  cursor: pointer;
}

/* 11. Tabs + sub-navigation
   -------------------------------------------------------------------------- */
/* Underline tabs (profiles, modals) */
.nav-tabs-line {
  flex-wrap: nowrap;
  overflow-x: auto;
  border: 0;
  box-shadow: inset 0 -1px 0 var(--hl-slate-200);
  scrollbar-width: none;
}
.nav-tabs-line::-webkit-scrollbar { display: none; }
.nav-tabs-line .nav-link {
  padding: 14px 18px;
  font-family: var(--hl-font-head);
  font-size: 13.5px;
  font-weight: 600;
  white-space: nowrap;
  color: var(--hl-slate-500);
  background: none;
  border: 0;
  border-bottom: 2px solid transparent;
  border-radius: 0;
}
.nav-tabs-line .nav-link:hover { color: var(--hl-navy-900); }
.nav-tabs-line .nav-link.active { color: var(--hl-blue); border-bottom-color: var(--hl-blue); }
.nav-tabs-line.nav-tabs-sm .nav-link { padding: 12px 16px; }

/* Module sub-view pills */
.subnav {
  flex-wrap: nowrap;
  gap: 5px;
  margin-bottom: 16px;
  overflow-x: auto;
  scrollbar-width: none;
}
.subnav::-webkit-scrollbar { display: none; }
.subnav .nav-link {
  padding: 7px 10px;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
  color: var(--hl-slate-500);
  border-radius: 6px;
}
.subnav .nav-link:hover { color: var(--hl-navy-900); }
.subnav .nav-link.active {
  color: color-mix(in srgb, var(--accent) 78%, #000);
  background: color-mix(in srgb, var(--accent) 16%, #fff);
}

/* Button-style tab strip (RTO profile) */
.btn-tabs { flex-wrap: nowrap; gap: 6px; overflow-x: auto; scrollbar-width: none; }
.btn-tabs .btn { white-space: nowrap; }
.btn-tabs .btn.active { color: #fff; background: var(--bs-primary); border-color: var(--bs-primary); }

/* Vertical nav (reports, RTO profile) */
.side-nav .list-group-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 16px;
  border: 0;
  border-left: 3px solid transparent;
  border-radius: 0;
  color: var(--hl-slate-700);
}
.side-nav .list-group-item:hover { background: var(--hl-slate-50); }
.side-nav .list-group-item.active { color: #1d4ed8; font-weight: 700; background: var(--hl-blue-50); border-left-color: var(--hl-blue); }
.side-nav-icon {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  border-radius: 7px;
  color: var(--hl-slate-400);
  background: var(--hl-slate-50);
}
.side-nav .active .side-nav-icon { color: var(--hl-blue); background: #dbeafe; }
.side-nav-group {
  padding: 12px 16px 4px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--hl-slate-500);
}

/* Wizard stepper */
.stepper { display: flex; align-items: center; gap: 10px; }
.stepper-step { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--hl-slate-500); white-space: nowrap; }
.stepper-num {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  flex-shrink: 0;
  border-radius: 50%;
  font-size: 12px;
  font-weight: 700;
  color: var(--hl-slate-400);
  background: var(--hl-slate-200);
}
.stepper-step.active { font-weight: 600; color: var(--hl-blue); }
.stepper-step.active .stepper-num { color: #fff; background: var(--hl-blue); }
.stepper-step.done .stepper-num { color: #fff; background: var(--hl-green); }
.stepper-line { flex: 1; min-width: 16px; height: 2px; background: var(--hl-slate-200); }
.stepper-line.done { background: var(--hl-green); }
@media (max-width: 575.98px) { .stepper-step span:last-child { display: none; } .stepper-step.active span:last-child { display: inline; } }
/* Stepper on a dark modal header */
.stepper-dark { align-items: flex-start; }
.stepper-dark .stepper-line { margin-top: 15px; }
.stepper-dark .stepper-step { flex-direction: column; gap: 6px; cursor: pointer; font-size: 10.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: rgba(255, 255, 255, .5); }
.stepper-dark .stepper-num { width: 32px; height: 32px; color: #fff; background: rgba(255, 255, 255, .15); border: 2px solid rgba(255, 255, 255, .25); }
.stepper-dark .stepper-step.active { color: #93c5fd; }
.stepper-dark .stepper-step.active .stepper-num { background: #3b82f6; border-color: #93c5fd; }
.stepper-dark .stepper-step.done .stepper-num { background: #22c55e; border-color: #86efac; }
.stepper-dark .stepper-line { background: rgba(255, 255, 255, .2); }
.stepper-dark .stepper-line.done { background: #60a5fa; }

/* Radio choice buttons (Driver Type) – use with .btn-check */
.btn-choice { --bs-btn-color: var(--hl-slate-400); --bs-btn-border-color: var(--hl-slate-200); --bs-btn-border-width: 2px; --bs-btn-hover-color: var(--accent); --bs-btn-hover-bg: #fff; --bs-btn-hover-border-color: var(--accent); flex: 1; justify-content: center; }
.btn-check:checked + .btn-choice { color: var(--accent); background: color-mix(in srgb, var(--accent) 12%, #fff); border-color: var(--accent); }

/* 12. Modals, offcanvas, dropdowns, alerts, toasts, pagination
   -------------------------------------------------------------------------- */
.modal {
  --bs-modal-border-width: 0;
  --bs-modal-border-radius: 14px;
  --bs-modal-inner-border-radius: 14px;
  --bs-modal-box-shadow: 0 24px 64px rgba(0, 0, 0, .2);
  --bs-modal-header-padding: 20px 24px 16px;
  --bs-modal-header-border-color: var(--hl-slate-200);
  --bs-modal-padding: 20px 24px;
  --bs-modal-footer-border-color: var(--hl-slate-200);
  --bs-modal-footer-gap: 8px;
}
.modal-content { box-shadow: var(--bs-modal-box-shadow); }
@media (min-width: 576px) {
  .modal-md { --bs-modal-width: 600px; }
  .modal-md-wide { --bs-modal-width: 680px; }
}
.modal-title { font-size: 17px; }
.modal-subtitle { margin: 3px 0 0; font-size: 12px; color: var(--hl-slate-400); }
.modal-backdrop { --bs-backdrop-bg: #0f172a; --bs-backdrop-opacity: .45; }
.modal-header-dark { color: #fff; background: linear-gradient(135deg, #0f172a, #1e40af); border-bottom: 0; }
.modal-header-dark .modal-title { color: #fff; }
.modal-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; padding: 16px 24px; text-align: center; background: var(--hl-slate-50); border-bottom: 1px solid var(--hl-slate-200); }

.offcanvas { --bs-offcanvas-width: 440px; --bs-offcanvas-border-color: var(--hl-slate-200); }
.offcanvas-backdrop { --bs-backdrop-bg: #0f172a; --bs-backdrop-opacity: .45; }

.dropdown-menu {
  --bs-dropdown-min-width: 180px;
  --bs-dropdown-padding-x: 8px;
  --bs-dropdown-padding-y: 8px;
  --bs-dropdown-font-size: 13px;
  --bs-dropdown-border-color: var(--hl-slate-200);
  --bs-dropdown-border-radius: 10px;
  --bs-dropdown-link-color: #374151;
  --bs-dropdown-link-hover-bg: var(--hl-slate-50);
  --bs-dropdown-link-active-bg: var(--hl-blue-50);
  --bs-dropdown-link-active-color: var(--hl-blue);
  --bs-dropdown-item-padding-x: 12px;
  --bs-dropdown-item-padding-y: 9px;
  --bs-dropdown-item-border-radius: 6px;
  --bs-dropdown-divider-bg: var(--hl-slate-100);
  box-shadow: 0 8px 24px rgba(0, 0, 0, .12);
}
.notification-menu { width: 320px; max-width: calc(100vw - 24px); }

.alert {
  --bs-alert-padding-x: 16px;
  --bs-alert-padding-y: 12px;
  --bs-alert-border-radius: 8px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  line-height: 1.5;
}
.alert > .icon { margin-top: 2px; }
.alert-title { font-weight: 700; }
.alert-info    { --bs-alert-color: #0369a1; --bs-alert-bg: #f0f9ff; --bs-alert-border-color: #bae6fd; }
.alert-success { --bs-alert-color: #15803d; --bs-alert-bg: #f0fdf4; --bs-alert-border-color: #bbf7d0; }
.alert-warning { --bs-alert-color: #92400e; --bs-alert-bg: #fffbeb; --bs-alert-border-color: #fde68a; }
.alert-danger  { --bs-alert-color: #b91c1c; --bs-alert-bg: #fef2f2; --bs-alert-border-color: #fecaca; }

.toast-container { z-index: 1090; }
.toast { --bs-toast-border-radius: 10px; --bs-toast-font-size: 13px; --bs-toast-max-width: 360px; }

.pagination {
  --bs-pagination-padding-x: 10px;
  --bs-pagination-padding-y: 0;
  --bs-pagination-font-size: 12.5px;
  --bs-pagination-color: #374151;
  --bs-pagination-border-color: var(--hl-slate-200);
  --bs-pagination-border-radius: 7px;
  --bs-pagination-hover-color: var(--hl-blue);
  --bs-pagination-hover-bg: var(--hl-slate-50);
  --bs-pagination-hover-border-color: var(--hl-slate-200);
  --bs-pagination-focus-box-shadow: 0 0 0 3px rgba(37, 99, 235, .15);
  --bs-pagination-active-bg: var(--hl-blue);
  --bs-pagination-active-border-color: var(--hl-blue);
  --bs-pagination-disabled-color: var(--hl-slate-300);
  --bs-pagination-disabled-bg: #fff;
  gap: 4px;
  margin: 0;
}
.page-link {
  display: grid;
  place-items: center;
  min-width: 32px;
  height: 32px;
  font-family: var(--hl-font-head);
  border-radius: var(--bs-pagination-border-radius);
}
.page-item:not(:first-child) .page-link { margin-left: 0; }
.page-link-text { padding: 0 12px; }
.page-item.active .page-link { font-weight: 700; }

/* 13. Small reusable content patterns
   -------------------------------------------------------------------------- */
.avatar {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  border-radius: 50%;
  font-size: 13px;
  font-weight: 700;
  color: #93c5fd;
  background: #1e40af;
}
.avatar-md { width: 32px; height: 32px; font-size: 12px; }
.avatar-sm { width: 26px; height: 26px; font-size: 10px; color: #475569; background: var(--hl-slate-200); }
.avatar-lg { width: 52px; height: 52px; font-family: var(--hl-font-head); font-size: 18px; font-weight: 800; }
.avatar-navy { color: #93c5fd; background: #1e40af; }
.avatar-rounded { border-radius: 28%; font-family: var(--hl-font-head); font-weight: 800; }
.avatar-xl { width: 52px; height: 52px; font-size: 18px; }
.avatar-gradient { color: #fff; background: linear-gradient(135deg, #2563eb, #7c3aed); }
.avatar-gradient.is-green { background: linear-gradient(135deg, #16a34a, #0891b2); }
.avatar-gradient.is-orange { background: linear-gradient(135deg, #d97706, #ea580c); }
.avatar-gradient.is-gray { background: linear-gradient(135deg, #94a3b8, #64748b); }

.meter { display: inline-flex; align-items: center; gap: 8px; }
.meter .progress { width: 60px; }
.progress-thin { --bs-progress-height: 6px; --bs-progress-bg: var(--hl-slate-100); --bs-progress-border-radius: 3px; }
.progress-thin .progress-bar { border-radius: 3px; }

.list-rows > * {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--hl-slate-100);
}
.list-rows > *:last-child { border-bottom: 0; }

.detail-list { display: grid; grid-template-columns: minmax(120px, 170px) 1fr; margin: 0; }
.detail-list > dt, .detail-list > dd { margin: 0; padding: 10px 0; border-bottom: 1px solid var(--hl-slate-100); }
.detail-list > dt { font-size: 10.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--hl-slate-500); align-self: center; }
.detail-list > dd { font-size: 13px; font-weight: 700; color: var(--hl-navy-900); }

.info-tile { padding: 10px 12px; background: var(--hl-slate-50); border-radius: 8px; }
.info-tile-label { margin-bottom: 3px; font-size: 11px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--hl-slate-400); }
.info-tile-value { font-size: 13px; font-weight: 600; color: #1e293b; }
.info-tile-dark { background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .1); }
.info-tile-dark .info-tile-label { color: rgba(255, 255, 255, .45); }
.info-tile-dark .info-tile-value { color: #fff; }

.spec-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); padding: 8px 28px 16px; }
.spec-grid > div { padding: 12px 20px 12px 4px; border-right: 1px solid var(--hl-slate-100); }
.spec-label { margin-bottom: 4px; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--hl-slate-400); }
.spec-value { font-size: 13.5px; font-weight: 600; color: #1e293b; }

.doc-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 12px;
  font-size: 13px;
  font-weight: 600;
  color: var(--hl-slate-700);
  background: var(--hl-slate-50);
  border: 1px solid var(--hl-slate-200);
  border-radius: 8px;
}
.doc-row.is-warning { background: #fff7ed; border-color: #fed7aa; }
.doc-row.is-expired { background: #fef2f2; border-color: #fecaca; }
.doc-row-date { font-family: var(--hl-font-mono); font-size: 12px; font-weight: 400; color: var(--hl-slate-500); }

.timeline { margin: 0; padding: 0; list-style: none; }
.timeline > li { padding: 0 0 15px 12px; font-size: 13px; border-left: 2px solid var(--accent); }
.timeline > li.is-done { border-left-color: var(--hl-green); }
.timeline time { display: block; margin-top: 3px; font-size: 11px; color: var(--hl-slate-400); }

.legend-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; }

/* Tinted mini figure (profile panels) */
.tint-tile { padding: 10px 12px; border-radius: 9px; background: color-mix(in srgb, var(--accent) 10%, #fff); }
.tint-tile-label { margin-bottom: 3px; font-size: 10px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--hl-slate-500); }
.tint-tile-value { font-family: var(--hl-font-mono); font-size: 14px; font-weight: 800; color: var(--accent); }

/* Light grey detail box with label/value rows */
.info-box { padding: 12px 14px; background: var(--hl-slate-50); border: 1px solid var(--hl-slate-200); border-radius: 10px; }
.info-box-title { margin-bottom: 10px; font-size: 12px; font-weight: 700; color: var(--hl-navy-900); }
.info-box dl { display: grid; grid-template-columns: 110px 1fr; gap: 6px 8px; margin: 0; }
.info-box dt { font-size: 11px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--hl-slate-400); }
.info-box dd { margin: 0; font-size: 12.5px; font-weight: 500; color: var(--hl-navy-900); overflow-wrap: anywhere; }

/* Light summary tile inside tab panes */
.stat-tile {
  height: 100%;
  padding: 14px 16px;
  background: var(--hl-slate-50);
  border: 1px solid var(--hl-slate-200);
  border-top: 3px solid var(--accent);
  border-radius: 10px;
}
.stat-tile-label { margin-bottom: 6px; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--hl-slate-400); }
.stat-tile-value { font-family: var(--hl-font-head); font-size: 20px; font-weight: 700; line-height: 1.2; color: var(--accent); }
.stat-tile-sub { margin-top: 3px; font-size: 11.5px; color: var(--hl-slate-400); }

/* Horizontal share bars: label | bar | value | percent */
.bar-list { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.bar-list > li { display: grid; grid-template-columns: 90px 1fr 60px 34px; align-items: center; gap: 10px; font-size: 12.5px; color: var(--hl-slate-500); }
.bar-list .progress { --bs-progress-height: 8px; --bs-progress-bg: var(--hl-slate-100); --bs-progress-border-radius: 4px; }
.bar-list strong { font-size: 12px; color: #1e293b; text-align: right; }
.bar-list small { font-size: 11px; color: var(--hl-slate-400); text-align: right; }

/* Stacked label/amount over an accent-coloured bar */
.cat-bars { display: grid; gap: 14px; margin: 0; padding: 0; list-style: none; }
.cat-bars > li > div:first-child { display: flex; justify-content: space-between; gap: 8px; margin-bottom: 6px; font-size: 13px; color: var(--hl-slate-600, #475569); }
.cat-bars strong { font-family: var(--hl-font-mono); font-size: 12.5px; color: var(--hl-navy-900); }
.cat-bars .progress { --bs-progress-height: 8px; --bs-progress-bg: var(--hl-slate-100); --bs-progress-border-radius: 4px; }
.cat-bars .progress-bar { background: var(--accent); border-radius: 4px; }

.card-accent-top { border-top: 3px solid var(--accent); }

.quick-action {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px 12px;
  font-family: var(--hl-font-head);
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  text-align: left;
  text-decoration: none;
  background: color-mix(in srgb, var(--accent) 6%, #fff);
  border: 1px solid color-mix(in srgb, var(--accent) 19%, #fff);
  border-radius: 8px;
  transition: background .15s;
}
.quick-action:hover { color: var(--accent); background: color-mix(in srgb, var(--accent) 13%, #fff); }
.quick-action-icon {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: color-mix(in srgb, var(--accent) 13%, #fff);
}

.preview-box {
  display: grid;
  place-items: center;
  height: 190px;
  text-align: center;
  color: var(--hl-slate-500);
  background: var(--hl-slate-100);
  border-radius: 8px;
}

/* Report center: side nav (offcanvas below lg) + sticky header + preview */
.app-content-flush { display: flex; max-width: none; padding: 0; }
.report-layout { display: flex; flex: 1; min-width: 0; background: #fff; }
.report-nav-head { padding: 16px 16px 8px; border-bottom: 1px solid var(--hl-slate-100); }
.report-nav .list-group { --bs-list-group-bg: #fff; }
.report-nav .list-group-item { font-size: 13px; }
.report-nav .list-group-item small { display: block; margin-top: 1px; font-size: 10.5px; font-weight: 400; color: var(--hl-slate-400); }
.report-main { flex: 1; min-width: 0; background: var(--hl-slate-50); }
.report-head { padding: 14px 24px; background: #fff; border-bottom: 1px solid var(--hl-slate-200); }
.report-head h1 { margin: 0; font-size: 17px; }
.report-head p { margin: 2px 0 0; font-size: 12.5px; color: var(--hl-slate-500); }
.report-body { padding: 24px; }
@media (min-width: 992px) {
  .report-nav {
    position: sticky;
    top: var(--hl-header-h);
    width: 260px;
    height: calc(100vh - var(--hl-header-h));
    padding-bottom: 24px;
    overflow-y: auto;
    border-right: 1px solid var(--hl-slate-200);
  }
  .report-head { position: sticky; top: var(--hl-header-h); z-index: 10; }
}
@media (max-width: 575.98px) {
  .report-head { padding: 12px 16px; }
  .report-body { padding: 16px; }
}

.report-banner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 20px;
  padding: 14px 20px;
  background: linear-gradient(135deg, #0f172a, #1e3a5f);
  border-radius: var(--hl-radius);
}
.report-banner-title { font-family: var(--hl-font-head); font-size: 15px; font-weight: 700; color: #fff; }
.report-banner-icon { display: grid; place-items: center; width: 36px; height: 36px; flex-shrink: 0; border-radius: 9px; color: #60a5fa; background: rgba(255, 255, 255, .1); }
.report-empty { padding: 40px 24px; text-align: center; }
.report-empty .empty-icon { color: var(--hl-blue); background: var(--hl-blue-50); }
.report-empty h2 { margin-bottom: 6px; font-size: 16px; }
.report-empty p { max-width: 360px; margin: 0 auto 24px; font-size: 13px; line-height: 1.6; color: var(--hl-slate-500); }

.section-head {
  margin-bottom: 12px;
  padding-bottom: 8px;
  font-family: var(--hl-font-head);
  font-size: 14px;
  font-weight: 700;
  color: var(--hl-navy-900);
  border-bottom: 2px solid var(--hl-blue-50);
}

.chart-box { position: relative; height: 240px; }
.chart-box-sm { height: 180px; }
.chart-box-md { height: 210px; }
.chart-box-xs { height: 160px; }

/* Orders / shipments / parties */
.brand-tile { display: grid; place-items: center; width: 42px; height: 42px; flex-shrink: 0; background: #fff; border: 1px solid var(--hl-slate-200); border-radius: 10px; box-shadow: 0 1px 4px rgba(0, 0, 0, .08); }
.brand-tile .icon { width: 24px; height: 24px; }
.is-spinning .icon { animation: hl-spin .8s linear infinite; }
@keyframes hl-spin { to { transform: rotate(360deg); } }

.kpi-card[data-kpi-filter] { cursor: pointer; }
.kpi-card[data-kpi-filter] .kpi-value { color: var(--hl-navy-900); }
.kpi-card[data-kpi-filter].is-active { box-shadow: 0 0 0 2px var(--accent); }
.kpi-card[data-kpi-filter].is-active .kpi-value { color: var(--accent); }

.badge-pink { background: #fdf2f8; color: #be185d; }

.event-timeline { position: relative; margin: 0; padding: 0; list-style: none; }
.event-timeline::before { content: ''; position: absolute; top: 16px; bottom: 16px; left: 15px; width: 2px; background: var(--hl-slate-200); }
.event-timeline > li { position: relative; display: flex; gap: 16px; padding-bottom: 24px; }
.event-timeline > li:last-child { padding-bottom: 0; }
.event-dot { position: relative; display: grid; place-items: center; width: 32px; height: 32px; flex-shrink: 0; color: var(--hl-slate-500); background: var(--hl-slate-200); border: 3px solid #fff; border-radius: 50%; }
.event-timeline > li.is-current .event-dot { color: #fff; background: var(--hl-blue); border-color: #93c5fd; }
.event-title { padding-top: 4px; font-size: 13.5px; font-weight: 600; color: #1e293b; }
.event-meta { display: flex; flex-wrap: wrap; gap: 4px 12px; margin-top: 3px; font-size: 12px; color: var(--hl-slate-400); }
.event-timeline > li.is-done .event-dot { color: var(--hl-green); background: #f0fdf4; border-color: #bbf7d0; }
.event-timeline > li.is-pending { opacity: .4; }

/* Status strip: pill buttons with counts */
.pill-tabs { display: flex; align-items: center; gap: 4px; padding: 4px; overflow-x: auto; background: #fff; border: 1px solid var(--hl-slate-200); border-radius: 12px; box-shadow: 0 1px 3px rgba(0, 0, 0, .04); scrollbar-width: none; }
.pill-tabs .btn-pill { display: inline-flex; align-items: center; gap: 7px; padding: 9px 18px; font-family: var(--hl-font-head); font-size: 13px; font-weight: 600; white-space: nowrap; color: var(--hl-slate-500); background: transparent; border: 0; border-radius: 8px; }
.pill-tabs .btn-pill:hover { color: var(--hl-navy-900); }
.pill-tabs .btn-pill.active { color: #fff; background: var(--hl-blue); }
.pill-count { padding: 1px 8px; font-size: 11px; color: var(--hl-slate-500); background: var(--hl-slate-100); border-radius: 10px; }
.btn-pill.active .pill-count { color: #fff; background: rgba(255, 255, 255, .25); }
@media (max-width: 1199.98px) { .pill-tabs { flex-wrap: wrap; } }

/* Mini progress under a status label; bar colour follows the text colour */
.step-progress { width: 80px; height: 4px; margin-top: 4px; overflow: hidden; background: var(--hl-slate-100); border-radius: 3px; }
.step-progress > span { display: block; height: 100%; background: linear-gradient(90deg, #16a34a, currentColor); border-radius: 3px; }

/* Shipment stepper (dark header) */
.ship-stepper-wrap { padding: 16px 12px 8px; overflow-x: auto; background: rgba(255, 255, 255, .06); border-radius: 12px; }
.ship-stepper { position: relative; display: flex; min-width: 540px; padding: 8px 0; }
.ship-stepper-track { position: absolute; top: 27px; left: 8.33%; right: 8.33%; height: 3px; background: var(--hl-slate-200); border-radius: 3px; }
.ship-stepper-fill { height: 100%; background: linear-gradient(90deg, #16a34a, #2563eb); border-radius: 3px; }
.ship-step { position: relative; display: flex; flex: 1; flex-direction: column; align-items: center; text-align: center; }
.ship-step-dot { display: grid; place-items: center; width: 40px; height: 40px; color: var(--hl-slate-400); background: var(--hl-slate-200); border: 3px solid var(--hl-slate-200); border-radius: 50%; }
.ship-step.is-done .ship-step-dot { color: #fff; background: var(--hl-green); border-color: #bbf7d0; }
.ship-step.is-active .ship-step-dot { color: #fff; background: var(--hl-blue); border-color: #93c5fd; box-shadow: 0 0 0 4px rgba(37, 99, 235, .15); }
.ship-step-label { margin-top: 8px; font-family: var(--hl-font-head); font-size: 12px; font-weight: 700; color: var(--hl-slate-400); }
.ship-step.is-done .ship-step-label { color: #4ade80; }
.ship-step.is-active .ship-step-label { color: #93c5fd; }
.ship-step-time { margin-top: 3px; font-family: var(--hl-font-mono); font-size: 10.5px; line-height: 1.4; color: var(--hl-slate-500); }
.ship-step-actor { margin-top: 2px; font-size: 10px; color: var(--hl-slate-400); }

/* Stat strip under a modal header: wraps on small screens */
.stat-strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); border-bottom: 1px solid var(--hl-slate-200); }
.stat-strip > div { padding: 14px 18px; text-align: center; border-right: 1px solid var(--hl-slate-100); border-bottom: 1px solid var(--hl-slate-100); }
.stat-strip-label { margin-bottom: 5px; font-size: 10px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--hl-slate-400); }
.stat-strip-value { font-family: var(--hl-font-head); font-size: 18px; font-weight: 700; }

/* Split list + profile (clients, vendors): side by side from xl, offcanvas below */
.split-detail { --bs-offcanvas-width: 640px; }
.split-detail-body { flex: 1; padding: 24px; overflow-y: auto; }
@media (min-width: 1200px) {
  .split-view { display: flex; align-items: flex-start; gap: 20px; }
  .split-view > .split-list { flex: 1; min-width: 0; }
  .split-view.is-open > .split-list { flex: 0 0 480px; width: 480px; }
  .split-view:not(.is-open) > .split-detail { display: none !important; }
  .split-view > .split-detail {
    position: sticky;
    top: calc(var(--hl-header-h) + 16px);
    display: flex;
    flex: 1;
    flex-direction: column;
    min-width: 0;
    height: calc(100vh - var(--hl-header-h) - 32px);
    overflow: hidden;
    background: #fff !important;
    border: 1px solid var(--hl-slate-200);
    border-radius: var(--hl-radius);
    box-shadow: var(--hl-shadow);
  }
}
.table-hl > tbody > tr.is-selected > td { background: var(--hl-blue-50); }

.card-hero-vendor { padding: 20px; background: linear-gradient(135deg, #1c0a00 0%, #7c2d12 50%, #6d28d9 100%); }
.avatar-gradient.is-vendor { background: linear-gradient(135deg, #ea580c, #7c3aed); }
.avatar-hero { width: 56px; height: 56px; font-size: 22px; color: #fff; background: rgba(255, 255, 255, .15); border: 2px solid rgba(255, 255, 255, .25); border-radius: 14px; }
.nav-tabs-line.is-orange .nav-link.active { color: var(--hl-orange); border-bottom-color: var(--hl-orange); }
.btn-hero { --bs-btn-color: #fff; --bs-btn-bg: rgba(255, 255, 255, .12); --bs-btn-border-color: rgba(255, 255, 255, .2); --bs-btn-hover-color: #fff; --bs-btn-hover-bg: rgba(255, 255, 255, .2); --bs-btn-hover-border-color: rgba(255, 255, 255, .3); }
.chip { display: inline-block; padding: 3px 8px; font-size: 11.5px; font-weight: 700; color: #374151; white-space: nowrap; background: var(--hl-slate-100); border: 1px solid var(--hl-slate-200); border-radius: 6px; }

/* Finance screens (freight, detention, TDS, POD, income & expenses) */
.accent-ink { --accent: #1e293b; }
.accent-blue-dark { --accent: #1d4ed8; }
.accent-red-dark { --accent: #b91c1c; }
.accent-violet { --accent: #6d28d9; }
.accent-slate { --accent: #64748b; }
.kpi-tint { min-width: 0; padding: 16px 18px; color: var(--accent); background: color-mix(in srgb, var(--accent) 6%, #fff); border: 1px solid color-mix(in srgb, var(--accent) 28%, #fff); border-radius: 12px; }
.kpi-tint-label { margin-bottom: 8px; font-size: 10.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.kpi-tint-value { font-family: var(--hl-font-head); font-size: 22px; font-weight: 800; line-height: 1.1; overflow-wrap: anywhere; }
.kpi-tint-sub { margin-top: 5px; font-size: 12px; opacity: .75; }
.kpi-dot { display: flex; flex-shrink: 0; align-items: center; justify-content: center; width: 44px; height: 44px; background: color-mix(in srgb, var(--accent) 13%, #fff); border: 2px solid color-mix(in srgb, var(--accent) 25%, #fff); border-radius: 50%; }
.kpi-dot::after { content: ''; width: 14px; height: 14px; background: var(--accent); border-radius: 50%; }

.work-grid { display: grid; grid-template-columns: 420px minmax(0, 1fr); gap: 24px; align-items: start; }
.work-grid.is-narrow { grid-template-columns: 380px minmax(0, 1fr); }
.work-side { display: grid; gap: 16px; min-width: 0; }
@media (max-width: 1399.98px) {
  .work-grid, .work-grid.is-narrow { grid-template-columns: minmax(0, 1fr); }
}
@media (min-width: 768px) and (max-width: 1399.98px) {
  .work-side { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
}

.calc-head { padding: 16px 20px; color: #fff; background: linear-gradient(135deg, #0f172a, #1e3a5f); }
.calc-head.is-violet { background: linear-gradient(135deg, #4c1d95, #6d28d9); }
.calc-head-label { margin-bottom: 4px; font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #60a5fa; }
.calc-head.is-violet .calc-head-label, .calc-head.is-violet .calc-head-sub { color: #c4b5fd; }
.calc-head-value { font-family: var(--hl-font-head); font-size: 28px; font-weight: 800; }
.calc-head-sub { margin-top: 2px; font-size: 12.5px; color: #94a3b8; }
.calc-rows > div { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 9px 14px; font-size: 13px; color: #475569; border-bottom: 1px solid var(--hl-slate-100); }
.calc-rows > div > strong { font-family: var(--hl-font-mono); font-size: 13.5px; font-weight: 600; white-space: nowrap; color: var(--accent, #374151); }
.calc-rows > .is-bold { background: var(--hl-slate-50); }
.calc-rows > .is-bold > strong { font-weight: 800; }
.calc-rows > .is-indent { padding-left: 22px; font-style: italic; }
.calc-rows > .is-indent > strong { font-style: normal; }
.calc-rows > .calc-sep { height: 1px; margin: 4px 0; padding: 0; background: var(--hl-slate-200); border: 0; }
.profit-strip { --accent: #16a34a; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 20px; color: var(--accent); background: color-mix(in srgb, var(--accent) 7%, #fff); border-bottom: 2px solid color-mix(in srgb, var(--accent) 30%, #fff); }
.profit-strip.is-loss { --accent: #dc2626; }
.profit-strip-label { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.profit-strip-value { font-family: var(--hl-font-head); font-size: 22px; font-weight: 800; }
.btn-choice-stack { flex-direction: column; gap: 4px; padding: 10px 8px; font-family: var(--hl-font-head); font-size: 13px; font-weight: 700; }
.btn-choice-stack .emoji { font-size: 20px; line-height: 1; }
.form-label-note { margin-left: 6px; font-size: 10.5px; font-weight: 500; text-transform: none; letter-spacing: 0; color: var(--hl-slate-400); }
.type-pill { display: inline-block; padding: 3px 9px; font-size: 11.5px; font-weight: 700; white-space: nowrap; color: var(--accent); background: color-mix(in srgb, var(--accent) 9%, #fff); border-radius: 12px; }
.tint-tile.is-bordered { min-width: 0; background: color-mix(in srgb, var(--accent) 6%, #fff); border: 1px solid color-mix(in srgb, var(--accent) 28%, #fff); border-radius: 8px; }
.tint-tile.is-bordered .tint-tile-label { color: var(--accent); }
.tint-tile.is-bordered .tint-tile-value { font-size: 16px; overflow-wrap: anywhere; }
.chip-violet { color: #6d28d9; background: #faf5ff; border-color: #e9d5ff; }
.chip-green { color: #16a34a; background: #f0fdf4; border-color: #bbf7d0; }

@media (min-width: 768px) and (max-width: 1399.98px) { .work-side > .work-side-wide { grid-column: 1 / -1; } }
.detail-rows > div { display: flex; justify-content: space-between; gap: 16px; padding: 9px 0; border-bottom: 1px solid var(--hl-slate-100); }
.detail-rows dt { font-size: 12.5px; font-weight: 400; color: var(--hl-slate-500); }
.detail-rows dd { max-width: 240px; margin: 0; font-size: 13px; font-weight: 600; text-align: right; color: #1e293b; }
.note-box { padding: 12px 14px; font-size: 13px; line-height: 1.6; color: #78350f; background: #fffbeb; border: 1px solid #fde68a; border-radius: 8px; }
.note-box-title { margin-bottom: 4px; font-size: 11px; font-weight: 700; text-transform: uppercase; color: #92400e; }
.btn-violet { --bs-btn-color: #fff; --bs-btn-bg: #6d28d9; --bs-btn-border-color: #6d28d9; --bs-btn-hover-color: #fff; --bs-btn-hover-bg: #5b21b6; --bs-btn-hover-border-color: #5b21b6; --bs-btn-active-color: #fff; --bs-btn-active-bg: #4c1d95; --bs-btn-active-border-color: #4c1d95; }
.rate-chips { display: flex; flex-shrink: 0; gap: 4px; }
.rate-chips .btn { --bs-btn-padding-x: 9px; --bs-btn-padding-y: 6px; --bs-btn-font-size: 12px; --bs-btn-font-weight: 700; --bs-btn-color: var(--hl-slate-500); --bs-btn-bg: var(--hl-slate-50); --bs-btn-border-color: var(--hl-slate-200); --bs-btn-hover-color: #7c3aed; --bs-btn-hover-bg: #faf5ff; --bs-btn-hover-border-color: #c4b5fd; gap: 0; font-family: var(--hl-font-head); border-radius: 6px; }
.rate-chips .btn.active { color: #7c3aed; background: #faf5ff; border-color: #7c3aed; }
.mini-bar { height: 5px; overflow: hidden; background: var(--hl-slate-100); border-radius: 3px; }
.mini-bar > span { display: block; height: 100%; background: linear-gradient(90deg, #6d28d9, #a78bfa); border-radius: 3px; }
.stack-list > div { padding: 13px 18px; border-bottom: 1px solid var(--hl-slate-50); }
.stack-list > div:last-child { border-bottom: 0; }
.legend-dot { display: inline-block; width: 8px; height: 8px; margin-right: 5px; background: var(--accent); border-radius: 50%; }
.pod-drop { padding: 32px 20px; text-align: center; cursor: pointer; background: #f9fafb; border: 2px dashed #d1d5db; border-radius: 12px; transition: background .2s, border-color .2s; }
.pod-drop:focus-visible { outline: 3px solid rgba(37, 99, 235, .2); }
.pod-drop.is-dragover { background: #eff6ff; border-color: #2563eb; }
.pod-drop.has-file { cursor: default; background: #f0fdf4; border-color: #16a34a; }
.pod-drop.is-error { background: #fef2f2; border-color: #dc2626; }
.pod-drop-icon { display: flex; align-items: center; justify-content: center; width: 52px; height: 52px; margin: 0 auto 14px; color: #94a3b8; background: #e2e8f0; border-radius: 50%; }
.pod-drop-icon .icon { width: 22px; height: 22px; }
.pod-drop.is-error .pod-drop-icon { color: #dc2626; background: #fee2e2; }
.pod-drop.is-error .pod-drop-title { color: #dc2626; }
.file-type { padding: 2px 10px; font-size: 12px; font-weight: 700; color: var(--accent); background: color-mix(in srgb, var(--accent) 12%, #fff); border-radius: 4px; }
.pod-progress { max-width: 240px; height: 8px; margin: 0 auto; }
.pill-tabs.is-compact .btn-pill { gap: 0; padding: 7px 14px; font-size: 12.5px; border-radius: 7px; }
.pill-tabs .btn-pill.active[class*="accent-"] { background: var(--accent); }
.cat-row { margin-bottom: 12px; }
.cat-row:last-child { margin-bottom: 0; }
.cat-row .mini-bar { height: 8px; border-radius: 4px; }
.cat-row .mini-bar > span { background: var(--accent); opacity: .85; }
.pod-completion { display: flex; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 12px 20px; padding: 16px 20px; }
.pod-completion .progress-stacked { flex: 1 1 240px; height: 14px; background: var(--hl-slate-100); border-radius: 8px; }
.det-card { overflow: hidden; background: color-mix(in srgb, var(--accent) 6%, #fff); border: 1.5px solid color-mix(in srgb, var(--accent) 28%, #fff); border-radius: 14px; }
.det-card-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 18px; color: #fff; background: var(--accent); }
.det-card-head small { display: block; font-size: 10.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: rgba(255, 255, 255, .7); }
.det-card .calc-rows { overflow: hidden; background: #fff; border: 1px solid color-mix(in srgb, var(--accent) 28%, #fff); border-radius: 10px; }
.det-card .calc-rows > div { padding: 8px 13px; font-size: 12.5px; }
.det-card .calc-rows > div > strong { font-size: 12.5px; font-weight: 500; color: #374151; }
.det-card .calc-rows > .is-bold > strong { font-weight: 700; }
.det-card .calc-rows > .det-card-total { display: flex; justify-content: space-between; align-items: center; padding: 12px 13px; font-size: 14px; font-weight: 700; color: var(--accent); background: color-mix(in srgb, var(--accent) 6%, #fff); }
.split-bar { display: flex; height: 8px; overflow: hidden; background: var(--hl-slate-200); border-radius: 4px; }
.split-bar > span:first-child { flex-shrink: 0; background: #d1d5db; }
.split-bar > span:last-child { flex: 1; background: var(--accent); opacity: .8; }
.cmp-bar { height: 20px; overflow: hidden; background: var(--hl-slate-100); border-radius: 4px; }
.cmp-bar > span { display: block; height: 100%; }

.segmented { display: inline-flex; padding: 3px; background: var(--hl-slate-100); border-radius: 8px; }
.segmented .btn { --bs-btn-padding-x: 12px; --bs-btn-padding-y: 5px; --bs-btn-font-size: 12.5px; --bs-btn-font-weight: 600; --bs-btn-color: var(--hl-slate-500); --bs-btn-hover-color: var(--hl-navy-900); --bs-btn-border-width: 0; --bs-btn-active-color: #1e293b; --bs-btn-active-bg: #fff; border-radius: 6px; font-family: var(--hl-font-head); }
.segmented .btn.active { box-shadow: 0 1px 3px rgba(0, 0, 0, .1); }
.table-foot-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 28px; padding: 12px 20px; font-size: 12px; color: var(--hl-slate-500); background: var(--hl-slate-50); border-top: 2px solid var(--hl-slate-200); }
.table-foot-bar strong { font-family: var(--hl-font-mono); font-size: 14px; font-weight: 800; }
.table-foot-bar .text-faint { margin-right: 6px; }
.date-range { display: flex; align-items: center; gap: 6px; padding: 0 10px; background: #fff; border: 1px solid var(--hl-slate-200); border-radius: 8px; }
.date-range .form-control { width: auto; padding-left: 4px; padding-right: 4px; font-size: 12.5px; border: 0; box-shadow: none; }
.pnl-card { display: grid; grid-template-columns: minmax(0, 1fr) 260px; overflow: hidden; color: #fff; background: linear-gradient(135deg, #0f172a, #1e3a5f); border-radius: 14px; }
.pnl-card > div { padding: 20px 24px; min-width: 0; }
.pnl-card > div + div { border-left: 1px solid rgba(255, 255, 255, .1); }
.pnl-card dl { display: grid; gap: 8px; margin: 0; }
.pnl-card dl > div { display: flex; justify-content: space-between; gap: 12px; padding-bottom: 8px; border-bottom: 1px solid rgba(255, 255, 255, .06); }
.pnl-card dt { font-size: 12.5px; font-weight: 400; color: #94a3b8; }
.pnl-card dd { margin: 0; font-family: var(--hl-font-mono); font-size: 13px; font-weight: 800; white-space: nowrap; }
.pnl-card .font-head { white-space: nowrap; }
@media (max-width: 991.98px) {
  .pnl-card { grid-template-columns: minmax(0, 1fr); }
  .pnl-card > div + div { border-top: 1px solid rgba(255, 255, 255, .1); border-left: 0; }
}

/* GPS tracking: vehicle list | map | telemetry */
.app-content.is-flush { max-width: none; padding: 0; }
.gps-layout { display: grid; grid-template-columns: 300px minmax(0, 1fr) 300px; height: calc(100vh - var(--hl-header-h)); overflow: hidden; background: #fff; }
.gps-list, .gps-detail { display: flex; flex-direction: column; min-height: 0; background: #fff; }
.gps-list { border-right: 1px solid var(--hl-slate-200); }
.gps-detail { border-left: 1px solid var(--hl-slate-200); }
.gps-list-head { padding: 14px 16px 10px; border-bottom: 1px solid var(--hl-slate-100); }
.gps-list-body, .gps-detail-body { flex: 1; min-height: 0; overflow-y: auto; }
.gps-list-foot { display: flex; justify-content: center; gap: 16px; padding: 10px 16px; text-align: center; background: var(--hl-slate-50); border-top: 1px solid var(--hl-slate-200); }
.gps-list-foot strong { display: block; font-size: 15px; font-weight: 800; }
.gps-list-foot span { font-size: 10px; letter-spacing: .06em; text-transform: uppercase; color: var(--hl-slate-500); }
.gps-pills, .filter-pills { display: flex; flex-wrap: wrap; gap: 4px; }
.gps-pills .btn, .filter-pills .btn { --bs-btn-padding-x: 10px; --bs-btn-padding-y: 3px; --bs-btn-font-size: 11.5px; --bs-btn-font-weight: 600; --bs-btn-border-radius: 12px; --bs-btn-color: var(--hl-slate-500); --bs-btn-bg: var(--hl-slate-50); --bs-btn-border-color: var(--hl-slate-200); --bs-btn-hover-bg: var(--hl-slate-100); --bs-btn-hover-border-color: var(--hl-slate-200); --bs-btn-active-color: #fff; --bs-btn-active-bg: var(--hl-blue); --bs-btn-active-border-color: var(--hl-blue); gap: 0; font-family: var(--hl-font-head); }
.filter-pills .btn { --bs-btn-padding-x: 14px; --bs-btn-padding-y: 6px; --bs-btn-font-size: 12px; --bs-btn-border-radius: 20px; --bs-btn-bg: #fff; }
.filter-pills.is-violet .btn { --bs-btn-active-bg: #6d28d9; --bs-btn-active-border-color: #6d28d9; }
.gps-vehicle { display: block; width: 100%; padding: 12px 16px 12px 13px; text-align: left; background: #fff; border: 0; border-bottom: 1px solid var(--hl-slate-50); border-left: 3px solid transparent; }
.gps-vehicle:hover { background: var(--hl-slate-50); }
.gps-vehicle.is-selected { background: var(--hl-blue-50); border-left-color: var(--hl-blue); }
.gps-vehicle-no { font-family: var(--hl-font-mono); font-size: 13px; font-weight: 800; color: #1e293b; }
.gps-vehicle.is-selected .gps-vehicle-no { color: #1d4ed8; }
.gps-vehicle .progress { --bs-progress-height: 3px; --bs-progress-bg: var(--hl-slate-100); margin-top: 6px; }
.gps-vehicle .progress-bar { background: linear-gradient(90deg, #16a34a, #60a5fa); }
.gps-vehicle.is-selected .progress-bar { background: linear-gradient(90deg, #16a34a, #2563eb); }
.gps-dot { display: inline-block; flex-shrink: 0; width: 7px; height: 7px; background: currentColor; border-radius: 50%; }
.gps-dot.is-live { animation: hl-pulse 2s infinite; }
@keyframes hl-pulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
.is-moving { color: #16a34a; }
.is-idle { color: #f59e0b; }
.is-stopped { color: #94a3b8; }

.gps-map-wrap { position: relative; display: flex; flex-direction: column; min-width: 0; min-height: 0; }
.gps-map-wrap:fullscreen { height: 100vh; }
.gps-toolbar { display: flex; flex-shrink: 0; flex-wrap: wrap; align-items: center; gap: 8px 12px; min-height: 44px; padding: 6px 16px; font-size: 12.5px; color: #94a3b8; background: #1e293b; border-bottom: 1px solid #0f172a; }
.gps-toolbar strong { color: #e2e8f0; }
.gps-toolbar .btn { --bs-btn-padding-x: 12px; --bs-btn-padding-y: 5px; --bs-btn-font-size: 12px; --bs-btn-font-weight: 600; --bs-btn-color: #e2e8f0; --bs-btn-bg: #334155; --bs-btn-border-color: #334155; --bs-btn-hover-color: #fff; --bs-btn-hover-bg: #475569; --bs-btn-hover-border-color: #475569; --bs-btn-active-bg: #475569; }
.gps-toolbar .btn-ghost { --bs-btn-color: #94a3b8; --bs-btn-bg: transparent; }
.gps-map { position: relative; flex: 1; min-height: 0; overflow: hidden; background: radial-gradient(ellipse at 40% 40%, #d4e6c3 0%, #c8dbb7 30%, #b8d0a6 60%, #a8c496 100%); }
.gps-map-sea { position: absolute; background: rgba(59, 130, 246, .3); }
.gps-map svg { position: absolute; inset: 0; width: 100%; height: 100%; transform-origin: 50% 50%; transition: transform .3s ease; }
.gps-map svg text { font-family: var(--hl-font-body); }
.gps-marker { cursor: pointer; }
.gps-zoom { position: absolute; right: 16px; bottom: 16px; display: flex; flex-direction: column; gap: 2px; }
.gps-zoom button { width: 32px; height: 32px; font-size: 14px; font-weight: 700; color: #374151; background: rgba(255, 255, 255, .92); border: 1px solid rgba(0, 0, 0, .15); border-radius: 6px; box-shadow: 0 2px 6px rgba(0, 0, 0, .12); }
.gps-legend { position: absolute; top: 12px; right: 12px; padding: 8px 12px; font-size: 11.5px; font-weight: 500; color: #374151; background: rgba(255, 255, 255, .92); border-radius: 8px; box-shadow: 0 2px 8px rgba(0, 0, 0, .12); }
.gps-legend div { display: flex; align-items: center; gap: 5px; margin-bottom: 3px; }
.gps-legend .gps-dot { width: 8px; height: 8px; }
.gps-alerts { position: absolute; top: 12px; left: 12px; display: grid; gap: 6px; max-width: min(300px, calc(100% - 150px)); }
.gps-alert { display: flex; align-items: center; gap: 8px; padding: 8px 12px; font-size: 12px; font-weight: 600; color: #374151; background: #fff7ed; border: 1px solid #fed7aa; border-radius: 8px; box-shadow: 0 2px 10px rgba(0, 0, 0, .15); }
.gps-alert.is-offline { background: #fef2f2; border-color: #fecaca; }
.gps-alert.is-fuel { background: #fffbeb; border-color: #fde68a; }
.gps-attribution { position: absolute; bottom: 6px; left: 8px; font-size: 9px; color: rgba(0, 0, 0, .4); }

.gps-detail-head { flex-shrink: 0; padding: 18px 16px 14px; background: linear-gradient(135deg, #0f172a, #1e3a5f); }
.gps-status-pill { display: inline-flex; align-items: center; gap: 5px; padding: 4px 12px; font-size: 12px; font-weight: 700; background: color-mix(in srgb, currentColor 13%, transparent); border: 1px solid color-mix(in srgb, currentColor 33%, transparent); border-radius: 20px; }
.gps-section { padding: 12px 16px; border-bottom: 1px solid var(--hl-slate-100); }
.gps-section-title { margin-bottom: 8px; font-size: 10.5px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--hl-blue); }
.gps-detail-foot { display: flex; flex-shrink: 0; gap: 8px; padding: 12px 16px; border-top: 1px solid var(--hl-slate-200); }
.gps-detail-foot .btn { flex: 1; }
.waypoints { position: relative; display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.waypoints::before { content: ''; position: absolute; top: 8px; bottom: 8px; left: 7px; width: 2px; background: var(--hl-slate-200); }
.waypoints li { position: relative; display: flex; align-items: center; gap: 10px; font-size: 12.5px; font-weight: 500; color: #94a3b8; }
.waypoints .wp-dot { display: flex; flex-shrink: 0; align-items: center; justify-content: center; width: 16px; height: 16px; color: #fff; background: var(--hl-slate-100); border: 2px solid var(--hl-slate-200); border-radius: 50%; }
.waypoints .wp-dot .icon { width: 8px; height: 8px; stroke-width: 3.5; }
.waypoints li.is-done { color: #374151; }
.waypoints li.is-done .wp-dot { background: #16a34a; border-color: #bbf7d0; }
.waypoints li.is-current { font-weight: 700; color: #1d4ed8; }
.waypoints li.is-current .wp-dot { background: var(--hl-blue); border-color: #93c5fd; }
.waypoints li.is-current .wp-dot::after { content: ''; width: 5px; height: 5px; background: #fff; border-radius: 50%; }

@media (max-width: 1199.98px) {
  .gps-layout { grid-template-columns: 280px minmax(0, 1fr); height: auto; overflow: visible; }
  .gps-list, .gps-map-wrap { height: 600px; }
  .gps-detail { grid-column: 1 / -1; border-top: 1px solid var(--hl-slate-200); border-left: 0; }
  .gps-detail-body { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); overflow: visible; }
}
@media (max-width: 767.98px) {
  .gps-layout { grid-template-columns: minmax(0, 1fr); }
  .gps-list { height: auto; max-height: 440px; border-right: 0; border-bottom: 1px solid var(--hl-slate-200); }
  .gps-map-wrap { height: 440px; }
  .gps-legend { top: auto; right: auto; bottom: 22px; left: 8px; }
  .gps-alerts { max-width: calc(100% - 24px); }
}

/* Stylised route map (GPS card) */
.route-map { --map-bg: #dbeafe; --map-grid: #bfdbfe; --map-line: var(--hl-blue); position: relative; height: 120px; margin-bottom: 10px; overflow: hidden; background-color: var(--map-bg); background-image: linear-gradient(var(--map-grid) 1px, transparent 1px), linear-gradient(90deg, var(--map-grid) 1px, transparent 1px); background-size: 14.28% 20%; border-radius: 8px; }
.route-map.is-done { --map-bg: #dcfce7; --map-grid: #bbf7d0; --map-line: var(--hl-green); }
.route-map-line { position: absolute; top: 50%; left: 13%; right: 13%; border-top: 2px dashed var(--map-line); }
.route-map-pin { position: absolute; top: 50%; width: 10px; height: 10px; border-radius: 50%; transform: translateY(-50%); }
.route-map-pin.is-from { left: 10%; background: var(--hl-green); box-shadow: 0 0 0 4px rgba(22, 163, 74, .2); }
.route-map-pin.is-to { right: 10%; background: var(--hl-red); box-shadow: 0 0 0 4px rgba(220, 38, 38, .2); }
.route-map-truck { position: absolute; top: 50%; left: 55%; display: grid; place-items: center; width: 22px; height: 22px; color: #fff; background: var(--hl-blue); border: 3px solid #fff; border-radius: 50%; transform: translate(-50%, -50%); box-shadow: 0 2px 8px rgba(37, 99, 235, .4); }
.route-map-truck .icon { width: 10px; height: 10px; }
.route-map.is-done .route-map-truck { display: none; }
.route-map-label { position: absolute; bottom: 6px; font-size: 9px; font-weight: 700; }
.route-map-label.is-from { left: 8%; color: #15803d; }
.route-map-label.is-to { right: 8%; color: var(--hl-red); }

/* 14. Login
   -------------------------------------------------------------------------- */
.login-page {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 50%, #0f172a 100%);
}
.login-page::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: .04;
  background-image: radial-gradient(circle at 1px 1px, #fff 1px, transparent 0);
  background-size: 40px 40px;
  pointer-events: none;
}
.login-brand { position: relative; padding: 60px; color: #fff; }
.login-brand-logo { width: 64px; height: 64px; border-radius: 50%; background: #fff; box-shadow: 0 4px 16px rgba(0, 0, 0, .3); }
.login-brand h1 { margin-bottom: 16px; font-size: 36px; line-height: 1.2; color: #fff; }
.login-brand p { font-size: 15px; line-height: 1.7; color: var(--hl-slate-400); }
.login-stat-value { font-family: var(--hl-font-head); font-size: 28px; font-weight: 700; color: #60a5fa; }
.login-stat-label { margin-top: 2px; font-size: 12px; color: var(--hl-slate-500); }

.login-card {
  position: relative;
  width: 100%;
  max-width: 440px;
  padding: 48px 40px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, .4);
}
.login-card-logo { width: 52px; height: 52px; border: 2px solid var(--hl-slate-200); border-radius: 50%; background: var(--hl-slate-50); }
.login-card .form-label { font-size: 13px; font-weight: 600; letter-spacing: 0; text-transform: none; color: var(--hl-slate-700); }
.login-card .form-control { padding: 11px 14px; font-size: 14px; background: #f9fafb; }
.login-card .form-control:focus { background: #fff; }
.login-card .btn-lg { --bs-btn-padding-y: 13px; --bs-btn-font-size: 15px; }
@media (max-width: 575.98px) { .login-card { padding: 32px 24px; } }

/* User management & settings */
.user-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 14px; }
.user-card {
  padding: 20px 22px;
  background: #fff;
  border: 1px solid var(--hl-slate-200);
  border-radius: 12px;
  border-left: 4px solid var(--accent, var(--hl-blue));
  box-shadow: 0 1px 4px rgba(0, 0, 0, .04);
}
.user-card:hover { box-shadow: 0 4px 16px rgba(0, 0, 0, .1); }
.user-card-avatar {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  border-radius: 11px;
  font-size: 14px;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(135deg, var(--accent), color-mix(in srgb, var(--accent) 55%, #fff));
}
.role-tabs { display: flex; flex-wrap: wrap; gap: 10px; }
.role-tab {
  padding: 8px 18px;
  font-family: var(--hl-font-head);
  font-size: 13.5px;
  font-weight: 700;
  color: var(--hl-slate-500);
  background: #fff;
  border: 2px solid var(--hl-slate-200);
  border-radius: 8px;
}
.role-tab:hover { color: var(--accent); border-color: color-mix(in srgb, var(--accent) 40%, #fff); }
.role-tab.active { color: var(--accent); background: color-mix(in srgb, var(--accent) 16%, #fff); border-color: var(--accent); }
.perm-table { margin: 0; }
.perm-table th { font-size: 11.5px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--hl-slate-400); }
.perm-table td { vertical-align: middle; }
.perm-box {
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  margin: 0 auto;
  padding: 0;
  color: #fff;
  background: #fff;
  border: 2px solid var(--hl-slate-300);
  border-radius: 5px;
}
.perm-box:has(input:checked) { background: var(--hl-blue); border-color: var(--hl-blue); }
.perm-box svg { opacity: 0; }
.perm-box.is-on svg,
.perm-box:has(input:checked) svg { opacity: 1; }
a.role-tab { text-decoration: none; }
.user-card-avatar { object-fit: cover; }
.perm-box:disabled { opacity: 1; }
.perm-locked { color: #16a34a; }
.lr-preview { padding: 14px 18px; background: linear-gradient(135deg, #0f172a, #1e3a5f); border-radius: 10px; }
.lr-preview-label { margin-bottom: 6px; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: rgba(255, 255, 255, .5); }
.lr-preview-value { font-family: var(--hl-font-mono); font-size: 24px; font-weight: 900; letter-spacing: .05em; color: #60a5fa; }
.api-key-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: var(--hl-slate-50);
  border: 1px solid var(--hl-slate-200);
  border-radius: 8px;
}
.api-key-row code { flex: 1; min-width: 0; font-size: 13px; color: var(--hl-slate-700); word-break: break-all; }
.sys-form-max { max-width: 760px; }
.sys-form-max.is-narrow { max-width: 680px; }
.form-switch .form-check-input { width: 40px; height: 22px; cursor: pointer; }
@media (max-width: 575.98px) {
  .user-grid { grid-template-columns: minmax(0, 1fr); }
  .lr-preview-value { font-size: 20px; }
}

/* Client invoice document
   -------------------------------------------------------------------------- */
.invoice-page { background: #e2e8f0; min-height: 100vh; padding: 24px 16px 48px; }
.invoice-toolbar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
  max-width: 820px;
  margin: 0 auto 16px;
}
.invoice-sheet {
  max-width: 820px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid #cbd5e1;
  border-radius: 12px;
  padding: 32px;
  color: #0f172a;
}
.invoice-head { display: flex; justify-content: space-between; gap: 16px; padding-bottom: 20px; border-bottom: 2px solid #0f172a; }
.invoice-logo { width: 56px; height: 56px; object-fit: contain; border-radius: 10px; background: #f8fafc; }
.invoice-company { font-family: var(--hl-font-head, inherit); font-size: 20px; font-weight: 800; }
.invoice-muted { font-size: 12px; color: #64748b; }
.invoice-kicker { font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: #2563eb; }
.invoice-no { font-size: 22px; font-weight: 800; }
.invoice-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; padding: 20px 0; }
.invoice-label { font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: #64748b; margin-bottom: 6px; }
.invoice-table { width: 100%; border-collapse: collapse; margin: 8px 0 16px; }
.invoice-table th, .invoice-table td { padding: 10px 8px; border-bottom: 1px solid #e2e8f0; font-size: 13px; }
.invoice-table thead th { background: #f8fafc; font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: #64748b; }
.invoice-table tfoot th { border-top: 2px solid #0f172a; border-bottom: 0; font-size: 15px; }
.invoice-words, .invoice-notes { font-size: 13px; margin-bottom: 10px; }
.invoice-foot { display: flex; justify-content: space-between; gap: 16px; align-items: flex-end; margin-top: 40px; padding-top: 16px; border-top: 1px dashed #cbd5e1; }
.invoice-sign { font-weight: 700; margin-bottom: 28px; }
@media print {
  .no-print, .invoice-toolbar { display: none !important; }
  .invoice-page { background: #fff; padding: 0; }
  .invoice-sheet { border: 0; border-radius: 0; max-width: none; padding: 0; }
}

/* LR / consignment note
   -------------------------------------------------------------------------- */
.lr-page { background: #e2e8f0; min-height: 100vh; padding: 24px 16px 48px; }
.lr-sheet {
  max-width: 900px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid #94a3b8;
  color: #0f172a;
  padding: 16px 18px 14px;
  font-size: 12.5px;
}
.lr-jurisdiction {
  text-align: center;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.lr-head { display: flex; justify-content: space-between; gap: 16px; padding-bottom: 10px; border-bottom: 2px solid #0f172a; }
.lr-logo { width: 64px; height: 64px; object-fit: contain; }
.lr-company { font-family: var(--hl-font-head, inherit); font-size: 20px; font-weight: 800; letter-spacing: .02em; text-transform: uppercase; line-height: 1.15; }
.lr-muted { font-size: 11.5px; color: #334155; }
.lr-copy { font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: #1d4ed8; }
.lr-kicker { font-size: 13px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.lr-gr { font-size: 18px; font-weight: 800; }
.lr-notices { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 0; border: 1px solid #0f172a; border-top: 0; }
.lr-notices > div { padding: 8px 10px; border-right: 1px solid #0f172a; }
.lr-notices > div:last-child { border-right: 0; }
.lr-notice-title { font-size: 10px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 4px; }
.lr-notices p { margin: 0; font-size: 10px; line-height: 1.35; color: #334155; }
.lr-table { width: 100%; border-collapse: collapse; }
.lr-table th, .lr-table td { border: 1px solid #0f172a; padding: 7px 8px; vertical-align: top; }
.lr-meta th { width: 11%; font-size: 10px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; background: #f8fafc; }
.lr-meta td { width: 14%; }
.lr-parties td { width: 62%; }
.lr-parties .lr-route { width: 38%; }
.lr-label { font-size: 10px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: #475569; }
.lr-goods thead th { font-size: 10px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; background: #f8fafc; }
.lr-goods .lr-total td { font-weight: 700; background: #f8fafc; }
.lr-foot { display: flex; justify-content: space-between; gap: 24px; margin-top: 10px; }
.lr-stamp {
  display: inline-block;
  margin-top: 10px;
  padding: 4px 10px;
  border: 2px solid #0f172a;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.lr-sign-space { min-height: 56px; font-size: 11px; color: #64748b; }
.lr-fine { margin: 10px 0 0; font-size: 10px; color: #64748b; }
@media print {
  .lr-page { background: #fff; padding: 0; }
  .lr-sheet { border: 0; max-width: none; padding: 0; }
}

/* 15. Component gallery (components/index.html only)
   -------------------------------------------------------------------------- */
.gallery-section { margin-bottom: 40px; }
.gallery-section > h2 { margin-bottom: 14px; font-size: 18px; }
