:root {
  --navy: #07182b;
  --navy2: #0f2944;
  --blue: #2563eb;
  --blue-hover: #1d4ed8;
  --blue-soft: #eff6ff;
  --bg: #f1f5f9;
  --card: #ffffff;
  --text: #0f172a;
  --muted: #64748b;
  --line: #e2e8f0;
  --green: #15803d;
  --green-soft: #dcfce7;
  --yellow: #b45309;
  --yellow-soft: #fef3c7;
  --red: #b91c1c;
  --red-soft: #fee2e2;
  --gold: #f59e0b;
  --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.05), 0 1px 2px rgba(15, 23, 42, 0.03);
  --shadow: 0 12px 30px -8px rgba(15, 23, 42, 0.08), 0 4px 12px -4px rgba(15, 23, 42, 0.04);
  --shadow-lg: 0 24px 50px -12px rgba(7, 24, 43, 0.32);
  --radius: 18px;
}

* { box-sizing: border-box; }
html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font: 14px/1.55 'Plus Jakarta Sans', Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}
button, input, select, textarea { font: inherit; }
button { cursor: pointer; border: 0; }
.hidden { display: none !important; }
.muted { color: var(--muted); }

@keyframes fadeSlideUp {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes pulseDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.55; transform: scale(1.15); }
}

/* Login / Entry Screen */
.entry-wrap {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.12fr 0.88fr;
  background: #fff;
}
.entry-visual {
  background: radial-gradient(circle at 15% 18%, #1d4ed8 0%, #0b2239 48%, #040e1a 100%);
  color: #fff;
  padding: 5.5vw;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}
.entry-visual::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px);
  background-size: 28px 28px;
  opacity: 0.45;
  pointer-events: none;
}
.entry-visual::after {
  content: "";
  position: absolute;
  width: 560px;
  height: 560px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  right: -170px;
  bottom: -210px;
  box-shadow: 0 0 0 65px rgba(245, 158, 11, 0.04), 0 0 0 130px rgba(37, 99, 235, 0.05);
  pointer-events: none;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.3px;
  position: relative;
  z-index: 1;
}
.brand-mark {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: linear-gradient(135deg, #fbbf24, #d97706);
  color: #07182b;
  display: grid;
  place-items: center;
  font-weight: 900;
  font-size: 20px;
  flex-shrink: 0;
  box-shadow: 0 8px 20px rgba(245, 158, 11, 0.35);
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.4px;
  color: #fbbf24;
  margin-bottom: 16px;
  background: rgba(251, 191, 36, 0.14);
  border: 1px solid rgba(251, 191, 36, 0.28);
  padding: 6px 13px;
  border-radius: 99px;
}
.visual-copy { max-width: 540px; position: relative; z-index: 1; }
.visual-copy h1 { font-size: clamp(34px, 3.8vw, 54px); line-height: 1.06; margin: 0 0 18px; letter-spacing: -1px; font-weight: 800; }
.visual-copy p { color: #cbd5e1; font-size: 16px; max-width: 460px; margin: 0 0 26px; line-height: 1.65; }
.hero-feature-pills {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.hero-pill {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 14px;
  padding: 13px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.hero-pill span { font-size: 18px; }
.hero-pill b { display: block; font-size: 12px; color: #fff; margin-bottom: 2px; }
.hero-pill small { display: block; font-size: 11px; color: #94a3b8; line-height: 1.3; }
.visual-foot { color: #94a3b8; font-size: 11px; letter-spacing: 1.2px; font-weight: 700; position: relative; z-index: 1; }

.entry-panel {
  display: grid;
  place-items: center;
  padding: 32px 24px;
  background: radial-gradient(circle at 80% 20%, #e0e7ff 0%, #f8fafc 45%, #f1f5f9 100%);
}
.entry-box {
  width: min(420px, 100%);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(16px);
  padding: 36px 32px;
  border-radius: 24px;
  border: 1px solid rgba(226, 232, 240, 0.9);
  box-shadow: var(--shadow-lg);
  animation: fadeSlideUp .35s ease;
}
.entry-brand-mobile { display: none; color: var(--navy); margin-bottom: 22px; }
.entry-box h2 { font-size: 26px; margin: 0 0 6px; color: var(--navy); letter-spacing: -0.5px; font-weight: 800; }
.sub { color: var(--muted); margin: 0 0 24px; font-size: 13.5px; }
.entry-meta { display: flex; justify-content: space-between; align-items: center; margin-top: 20px; font-size: 12px; }

/* Form Elements & Buttons */
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 15px; }
.field label { font-size: 12px; font-weight: 700; color: #334155; }
.field input, .field select, .field textarea {
  border: 1.5px solid var(--line);
  border-radius: 12px;
  padding: 11px 13px;
  background: #fff;
  outline: none;
  width: 100%;
  color: var(--text);
  min-height: 44px;
  transition: border-color .18s, box-shadow .18s;
}
.field textarea { min-height: 84px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.13);
}

.btn {
  padding: 10px 16px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 13px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 40px;
  transition: transform .15s, background .18s, box-shadow .18s, opacity .15s;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }
.btn-sm { padding: 7px 12px; font-size: 12px; min-height: 34px; border-radius: 9px; }
.btn-lg { padding: 13px 20px; font-size: 14px; min-height: 48px; }
.btn-block { width: 100%; }
.btn-primary { background: linear-gradient(135deg, #2563eb, #1d4ed8); color: #fff; box-shadow: 0 6px 16px rgba(37, 99, 235, 0.25); }
.btn-primary:hover { box-shadow: 0 8px 22px rgba(37, 99, 235, 0.35); }
.btn-gold { background: linear-gradient(135deg, #fbbf24, #d97706); color: #07182b; font-weight: 800; box-shadow: 0 6px 16px rgba(245, 158, 11, 0.32); }
.btn-glass { background: rgba(255, 255, 255, 0.14); color: #fff; border: 1px solid rgba(255, 255, 255, 0.24); backdrop-filter: blur(8px); }
.btn-glass:hover { background: rgba(255, 255, 255, 0.22); }
.btn-dark { background: linear-gradient(135deg, #07182b, #153b5e); color: #fff; }
.btn-light { background: #eef2f6; color: #334155; }
.btn-light:hover { background: #e2e8f0; }
.btn-danger { background: var(--red-soft); color: var(--red); }
.btn-success { background: var(--green-soft); color: var(--green); }
.btn-warning { background: var(--yellow-soft); color: var(--yellow); }
.btn-icon { position: relative; padding: 8px 12px; }

/* App Shell */
.app { min-height: 100vh; display: flex; }
.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: 272px;
  background: linear-gradient(180deg, #061322 0%, #091d33 55%, #0f2c4c 100%);
  color: #cbd5e1;
  padding: 20px 14px;
  display: flex;
  flex-direction: column;
  z-index: 30;
  transition: transform .24s cubic-bezier(.4, 0, .2, 1);
  box-shadow: 6px 0 28px rgba(7, 24, 43, 0.16);
}
.sidebar-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 2px 6px 20px;
}
.sidebar .brand { font-size: 18px; color: #fff; }
.sidebar .brand-mark { width: 36px; height: 36px; font-size: 17px; }
.drawer-close {
  display: none;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  font-size: 16px;
}
.nav-label {
  font-size: 10px;
  color: #64748b;
  font-weight: 800;
  letter-spacing: 1.4px;
  padding: 8px 12px 8px;
}
.side-nav { flex: 1; overflow-y: auto; padding-right: 2px; }
.nav-btn {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 11px;
  background: transparent;
  color: #94a3b8;
  padding: 9px 11px;
  border-radius: 12px;
  text-align: left;
  margin: 3px 0;
  font-weight: 600;
  font-size: 13px;
  transition: background .16s, color .16s, transform .12s;
}
.nav-btn:hover { background: rgba(255, 255, 255, 0.07); color: #fff; transform: translateX(2px); }
.nav-btn.active {
  background: linear-gradient(90deg, rgba(37, 99, 235, 0.35), rgba(37, 99, 235, 0.08));
  color: #fff;
  box-shadow: inset 3px 0 0 #fbbf24;
}
.nav-ico {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  display: grid;
  place-items: center;
  font-size: 14px;
  flex-shrink: 0;
}
.nav-btn.active .nav-ico { background: rgba(251, 191, 36, 0.18); color: #fbbf24; }
.side-bottom {
  margin-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 14px 6px 2px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.avatar {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: linear-gradient(135deg, #fbbf24, #d97706);
  color: #07182b;
  display: grid;
  place-items: center;
  font-weight: 800;
  flex-shrink: 0;
}
.side-user { flex: 1; min-width: 0; }
.side-user b { display: block; color: #fff; font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.side-user small { color: #94a3b8; font-size: 11px; }
.nav-switch-btn {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  font-size: 15px;
}

.main {
  margin-left: 272px;
  flex: 1;
  min-width: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
.topbar {
  height: 68px;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 28px;
  position: sticky;
  top: 0;
  z-index: 15;
}
.topbar-left { display: flex; align-items: center; gap: 12px; min-width: 0; }
.topbar h2 { font-size: 17px; margin: 0; color: var(--navy); font-weight: 800; letter-spacing: -0.3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.top-actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.role-pill {
  background: var(--blue-soft);
  color: #1d4ed8;
  border: 1px solid #bfdbfe;
  border-radius: 99px;
  padding: 5px 12px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.4px;
}
.sync-pill {
  font-size: 11px;
  font-weight: 700;
  color: var(--green);
  background: var(--green-soft);
  padding: 5px 11px;
  border-radius: 99px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.sync-pill::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #16a34a;
  animation: pulseDot 1.8s infinite;
}
.sync-pill.offline { color: var(--red); background: var(--red-soft); }
.sync-pill.offline::before { background: #dc2626; animation: none; }
.notif-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  background: #ef4444;
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  min-width: 18px;
  height: 18px;
  border-radius: 99px;
  display: grid;
  place-items: center;
  padding: 0 4px;
  box-shadow: 0 2px 8px rgba(239, 68, 68, 0.45);
}
.offline-banner {
  background: var(--yellow-soft);
  color: #92400e;
  padding: 10px 28px;
  font-size: 12px;
  font-weight: 700;
  display: flex;
  justify-content: space-between;
  gap: 10px;
  border-bottom: 1px solid #fde68a;
}

.content {
  padding: 26px 28px;
  max-width: 1500px;
  width: 100%;
  margin: 0 auto;
  animation: fadeSlideUp .24s ease;
}

/* Command Center Hero */
.command-hero {
  background: linear-gradient(125deg, #07182b 0%, #0f2e4d 55%, #1d4ed8 100%);
  border-radius: 20px;
  padding: 24px 26px;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  margin-bottom: 20px;
  box-shadow: 0 16px 36px -12px rgba(7, 24, 43, 0.35);
  position: relative;
  overflow: hidden;
}
.command-hero::after {
  content: "";
  position: absolute;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(251, 191, 36, 0.16), transparent 70%);
  right: -60px;
  top: -90px;
  pointer-events: none;
}
.command-badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1.3px;
  color: #fbbf24;
  background: rgba(251, 191, 36, 0.14);
  padding: 4px 10px;
  border-radius: 99px;
  margin-bottom: 8px;
}
.command-hero h1 { margin: 0 0 4px; font-size: 23px; font-weight: 800; letter-spacing: -0.4px; }
.command-hero p { margin: 0; color: #cbd5e1; font-size: 13px; }

.page-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 22px;
  flex-wrap: wrap;
}
.page-head h1 { font-size: 24px; margin: 0 0 4px; color: var(--navy); letter-spacing: -0.5px; font-weight: 800; }
.page-head p { margin: 0; color: var(--muted); font-size: 13.5px; }
.head-actions { display: flex; gap: 8px; flex-wrap: wrap; position: relative; z-index: 1; }

/* Grids & KPI Bento Cards */
.grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 15px;
  margin-bottom: 20px;
}
.grid-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-bottom: 18px; }
.two-col { display: grid; grid-template-columns: 1.25fr 0.75fr; gap: 16px; margin-bottom: 18px; }

.stat, .panel {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.stat {
  padding: 18px;
  min-width: 0;
  transition: transform .18s, box-shadow .18s;
  position: relative;
  overflow: hidden;
}
.stat::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--blue);
  opacity: 0.85;
}
.stat-accent-blue::before { background: linear-gradient(90deg, #2563eb, #60a5fa); }
.stat-accent-indigo::before { background: linear-gradient(90deg, #4f46e5, #818cf8); }
.stat-accent-amber::before { background: linear-gradient(90deg, #d97706, #fbbf24); }
.stat-accent-green::before { background: linear-gradient(90deg, #15803d, #34d399); }
.stat-accent-navy::before { background: linear-gradient(90deg, #07182b, #38bdf8); }
.stat:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.stat-top { display: flex; justify-content: space-between; align-items: center; color: var(--muted); font-size: 12px; font-weight: 700; gap: 6px; }
.stat-icon { width: 34px; height: 34px; border-radius: 11px; background: var(--blue-soft); display: grid; place-items: center; font-size: 16px; flex-shrink: 0; }
.stat strong { display: block; font-size: 25px; margin: 10px 0 3px; color: var(--navy); font-variant-numeric: tabular-nums; letter-spacing: -0.6px; font-weight: 800; word-break: break-word; }
.stat small { color: var(--muted); font-size: 11.5px; }

.panel { padding: 20px; margin-bottom: 18px; min-width: 0; box-shadow: var(--shadow); }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.panel-head h3 { font-size: 15.5px; margin: 0; color: var(--navy); font-weight: 800; }
.panel-head p { color: var(--muted); margin: 2px 0 0; font-size: 12px; }

/* Tables + Mobile Cards */
.table-wrap { overflow-x: auto; border-radius: 12px; border: 1px solid #f1f5f9; }
table { width: 100%; border-collapse: collapse; }
th {
  text-align: left;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: #64748b;
  padding: 12px 13px;
  border-bottom: 1.5px solid var(--line);
  white-space: nowrap;
  background: #f8fafc;
}
td { padding: 13px; border-bottom: 1px solid #f1f5f9; font-size: 13px; vertical-align: middle; }
tbody tr { transition: background .12s; }
tbody tr:hover { background: #f8fafc; }
tbody tr:last-child td { border-bottom: 0; }

.mobile-cards { display: none; flex-direction: column; gap: 11px; }
.data-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 15px;
  box-shadow: var(--shadow-sm);
}
.data-card-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; margin-bottom: 10px; }
.data-card-row { display: flex; justify-content: space-between; gap: 10px; font-size: 12.5px; padding: 4px 0; }
.data-card-row span:first-child { color: var(--muted); }
.data-card-actions { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }

/* Tags & Alerts */
.tag {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 99px;
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
}
.tag-green { background: var(--green-soft); color: var(--green); }
.tag-yellow { background: var(--yellow-soft); color: var(--yellow); }
.tag-red { background: var(--red-soft); color: var(--red); }
.tag-blue { background: var(--blue-soft); color: #1d4ed8; }
.tag-gray { background: #f1f5f9; color: #475569; }

.toolbar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 16px; }
.toolbar input, .toolbar select {
  border: 1.5px solid var(--line);
  border-radius: 11px;
  padding: 9px 12px;
  background: #fff;
  min-height: 40px;
  min-width: 140px;
}
.toolbar input[type="search"] { flex: 1; min-width: 200px; }

.alert-row {
  display: flex;
  gap: 11px;
  align-items: flex-start;
  padding: 12px 14px;
  border-radius: 13px;
  background: var(--yellow-soft);
  margin: 8px 0;
  color: #92400e;
  font-size: 13px;
}
.alert-row.red { background: var(--red-soft); color: #991b1b; }
.alert-row.blue { background: var(--blue-soft); color: #1e40af; }
.alert-row b { display: block; margin-bottom: 2px; }

.empty { padding: 36px 16px; text-align: center; color: var(--muted); font-size: 13.5px; }

/* Charts */
.chart-box { width: 100%; overflow: hidden; }
.bar-row { display: flex; align-items: center; gap: 10px; margin: 11px 0; font-size: 12.5px; }
.bar-label { width: 115px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 700; color: var(--navy); }
.bar-track { flex: 1; height: 11px; background: #eef2f6; border-radius: 99px; overflow: hidden; }
.bar-fill { height: 100%; background: var(--blue); border-radius: 99px; transition: width .4s ease; }
.bar-val { width: 90px; text-align: right; font-weight: 800; color: var(--navy); font-variant-numeric: tabular-nums; }

/* Modals */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(7, 24, 43, 0.58);
  backdrop-filter: blur(5px);
  z-index: 60;
  display: grid;
  place-items: center;
  padding: 14px;
}
.modal {
  width: min(680px, 100%);
  max-height: 90vh;
  overflow-y: auto;
  background: #fff;
  border-radius: 20px;
  padding: 24px;
  box-shadow: var(--shadow-lg);
  animation: fadeSlideUp .2s ease;
}
.modal-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; gap: 10px; }
.modal-head h3 { margin: 0; font-size: 18px; color: var(--navy); font-weight: 800; }
.modal-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.modal-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 18px; flex-wrap: wrap; }

/* Driver Mobile-First & Stepper */
.driver-hero {
  background: linear-gradient(130deg, #07182b 0%, #123e68 60%, #1d4ed8 100%);
  color: #fff;
  border-radius: 20px;
  padding: 22px;
  margin-bottom: 18px;
  box-shadow: var(--shadow);
}
.driver-hero h1 { margin: 0 0 4px; font-size: 22px; font-weight: 800; }
.driver-hero p { margin: 0; color: #cbd5e1; font-size: 13px; }
.task-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 18px;
  margin-bottom: 14px;
  box-shadow: var(--shadow-sm);
}
.task-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; margin-bottom: 10px; }
.trip-stepper {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
  margin: 12px 0;
  padding: 10px;
  background: #f8fafc;
  border-radius: 12px;
}
.step-dot { text-align: center; opacity: 0.45; }
.step-dot.done { opacity: 1; }
.step-dot span {
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #cbd5e1;
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  margin-bottom: 3px;
}
.step-dot.done span { background: #16a34a; }
.step-dot.current span { background: #2563eb; box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.2); }
.step-dot small { display: block; font-size: 10px; font-weight: 700; color: var(--navy); }

.route { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 10px 0; background: #f8fafc; padding: 12px; border-radius: 12px; border: 1px solid #eef2f6; }
.route small { display: block; color: var(--muted); font-size: 10px; font-weight: 800; letter-spacing: 0.4px; }
.route b { font-size: 13.5px; color: var(--navy); }
.task-meta { display: flex; gap: 14px; flex-wrap: wrap; color: #475569; font-size: 12.5px; margin: 10px 0; }
.task-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 12px; }
.task-actions .btn-full { grid-column: 1 / -1; }

.doc-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.doc { padding: 13px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.doc small { display: block; color: var(--muted); font-size: 11px; }
.doc b { display: block; margin: 4px 0; font-size: 14px; color: var(--navy); }

/* Pagination */
.pagination { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 16px; flex-wrap: wrap; font-size: 12px; color: var(--muted); }
.pagination-btns { display: flex; gap: 6px; }

/* Toast */
.toast {
  position: fixed;
  bottom: 24px;
  right: 20px;
  background: var(--navy);
  color: #fff;
  padding: 13px 18px;
  border-radius: 14px;
  z-index: 80;
  box-shadow: var(--shadow-lg);
  max-width: min(370px, calc(100vw - 32px));
  font-size: 13px;
  font-weight: 600;
  animation: fadeSlideUp .2s ease;
}

.mobile-menu { display: none; }
.mobile-nav { display: none; }
.sidebar-overlay {
  position: fixed;
  inset: 0;
  background: rgba(7, 24, 43, 0.58);
  backdrop-filter: blur(3px);
  z-index: 25;
}

/* Responsive Breakpoints */
@media (max-width: 1150px) {
  .grid, .grid-5 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .two-col, .grid-2, .hero-feature-pills { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .entry-wrap { grid-template-columns: 1fr; }
  .entry-visual { display: none; }
  .entry-brand-mobile { display: flex; }
  .entry-panel { min-height: 100vh; padding: 20px 14px; }
  .entry-box { padding: 24px 18px; border-radius: 20px; }

  .sidebar { transform: translateX(-100%); width: 274px; }
  .sidebar.open { transform: translateX(0); }
  .drawer-close { display: grid; place-items: center; }

  .main { margin-left: 0; padding-bottom: 78px; }
  .topbar { height: 58px; padding: 0 12px; }
  .topbar h2 { font-size: 15px; }
  .hide-xs, .top-actions .role-pill, .top-actions .sync-pill { display: none; }
  .mobile-menu { display: inline-flex; }

  .content { padding: 14px 12px; }
  .command-hero { padding: 18px 16px; border-radius: 16px; }
  .command-hero h1 { font-size: 19px; }
  .page-head h1 { font-size: 20px; }
  .grid, .grid-5 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .stat { padding: 13px; }
  .stat strong { font-size: 20px; }
  .panel { padding: 14px 12px; }

  .desktop-table { display: none; }
  .mobile-cards { display: flex; }

  .toolbar input[type="search"] { min-width: 100%; width: 100%; }
  .toolbar select, .toolbar input[type="date"] { flex: 1; min-width: 120px; }

  .modal { padding: 18px 15px; border-radius: 16px; }
  .modal-grid { grid-template-columns: 1fr; }
  .doc-list { grid-template-columns: 1fr; }
  .route { grid-template-columns: 1fr; gap: 8px; }
  .task-actions { grid-template-columns: 1fr; }

  .mobile-nav {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(10px);
    border-top: 1px solid var(--line);
    z-index: 20;
    justify-content: space-around;
    padding: 6px 4px calc(6px + env(safe-area-inset-bottom));
  }
  .mobile-nav button {
    background: transparent;
    color: var(--muted);
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 10px;
    gap: 2px;
    padding: 4px 6px;
    min-width: 60px;
  }
  .mobile-nav button.active { color: var(--blue); font-weight: 800; }
  .mobile-nav span { font-size: 17px; }
  .toast { bottom: 74px; right: 12px; left: 12px; max-width: none; text-align: center; }
}
