:root {
  --sidebar-width: clamp(292px, 18vw, 340px);
  --sidebar-collapsed-width: 92px;
  --primary: #1666c5;
  --primary-dark: #0a3c75;
  --primary-light: #1ca6e9;
  --page: #eff5fa;
  --surface: #ffffff;
  --surface-soft: #f6f9fc;
  --text: #16314d;
  --muted: #7d90a6;
  --border: #dce7f0;
  --success: #169c74;
  --warning: #f28a26;
  --danger: #e64d64;
  --shadow: 0 20px 45px rgba(31, 76, 116, .10);
  --soft-shadow: 0 12px 30px rgba(31, 76, 116, .07);
}

* { box-sizing: border-box; }

html {
  min-height: 100%;
  scroll-behavior: smooth;
}

body {
  min-height: 100%;
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 100% 0, #dfefff 0, transparent 34rem),
    var(--page);
  font-family: "Mali", system-ui, sans-serif;
}

body.menu-open { overflow: hidden; }

a {
  color: inherit;
  text-decoration: none;
}

button, input { font: inherit; }
button { color: inherit; }

/* Login */
.login-body {
  background:
    radial-gradient(circle at 100% 0, #dcecff 0, transparent 36rem),
    #eef4f9;
}

.login-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 38px;
}

.login-shell {
  width: min(1310px, 100%);
  min-height: 760px;
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.9);
  border-radius: 35px;
  background: rgba(255,255,255,.96);
  box-shadow: 0 28px 80px rgba(28,73,115,.13);
}

.login-brand {
  min-height: 760px;
  padding: clamp(42px, 5vw, 70px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: #fff;
  background: linear-gradient(145deg, #14559b, #2c9bd3);
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 16px;
}

.brand-logo-icon {
  width: 66px;
  height: 66px;
  display: grid;
  place-items: center;
  border-radius: 20px;
  background: rgba(255,255,255,.17);
  font-size: 31px;
}

.brand-logo strong {
  display: block;
  font-size: 26px;
}

.brand-logo span {
  display: block;
  margin-top: 3px;
  opacity: .76;
  font-size: 13px;
  letter-spacing: .15em;
}

.login-brand h1 {
  max-width: 680px;
  margin: 0 0 22px;
  font-size: clamp(42px, 5vw, 66px);
  line-height: 1.18;
}

.login-brand p {
  max-width: 680px;
  margin: 0;
  opacity: .91;
  font-size: 18px;
  line-height: 2;
}

.login-features {
  display: grid;
  gap: 13px;
}

.login-feature {
  display: flex;
  gap: 13px;
  align-items: center;
  font-size: 15px;
}

.login-card {
  padding: clamp(38px, 5vw, 72px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.login-card h2 {
  margin: 0;
  font-size: 35px;
}

.login-card-subtitle {
  margin: 11px 0 31px;
  color: var(--muted);
  line-height: 1.75;
}

.form-group { margin-bottom: 20px; }

.form-label {
  display: block;
  margin-bottom: 9px;
  font-weight: 700;
}

.form-control {
  width: 100%;
  min-height: 58px;
  padding: 0 17px;
  border: 1px solid var(--border);
  border-radius: 16px;
  color: var(--text);
  background: var(--surface-soft);
  outline: none;
  transition: .2s ease;
}

.form-control:focus {
  border-color: var(--primary-light);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(28,166,233,.12);
}

.btn-primary {
  width: 100%;
  min-height: 58px;
  margin-top: 3px;
  border: 0;
  border-radius: 16px;
  color: #fff;
  background: linear-gradient(135deg, var(--primary), #1e91d2);
  box-shadow: 0 14px 28px rgba(22,102,197,.23);
  cursor: pointer;
  font-weight: 800;
}

.alert-error {
  margin-bottom: 18px;
  padding: 13px 15px;
  border: 1px solid #ffd0d8;
  border-radius: 13px;
  color: #a82e45;
  background: #fff1f4;
}

.login-note {
  margin-top: 22px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.8;
}

/* Loader */
.page-loader {
  position: fixed;
  inset: 0;
  z-index: 5000;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(236,244,250,.82);
  backdrop-filter: blur(9px);
  transition: opacity .22s ease, visibility .22s ease;
}

.page-loader.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loader-card {
  width: min(360px, 100%);
  padding: 34px;
  display: grid;
  justify-items: center;
  gap: 13px;
  border: 1px solid rgba(255,255,255,.9);
  border-radius: 24px;
  background: #fff;
  box-shadow: var(--shadow);
}

.loader-logo {
  width: 62px;
  height: 62px;
  display: grid;
  place-items: center;
  border-radius: 19px;
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  font-size: 29px;
}

.loader-spinner {
  width: 34px;
  height: 34px;
  border: 4px solid #deecf7;
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin .7s linear infinite;
}

.loader-card span {
  color: var(--muted);
  font-size: 12px;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* Layout */
.dashboard-layout {
  min-height: 100vh;
  display: grid;
  grid-template-columns: var(--sidebar-width) minmax(0,1fr);
  transition: grid-template-columns .22s ease;
}

.modern-sidebar {
  position: sticky;
  top: 0;
  z-index: 1200;
  height: 100vh;
  padding: 24px 18px;
  display: flex;
  flex-direction: column;
  color: #fff;
  background: linear-gradient(180deg, #0a498d 0%, #073168 100%);
  box-shadow: 8px 0 30px rgba(14,62,109,.08);
}

.modern-brand {
  min-height: 86px;
  padding: 2px 10px 24px;
  display: flex;
  align-items: center;
  gap: 15px;
  border-bottom: 1px solid rgba(255,255,255,.10);
}

.modern-brand-icon {
  width: 58px;
  height: 58px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 17px;
  color: #0b4f91;
  background: #91d7ff;
  font-size: 28px;
}

.modern-brand-text strong {
  display: block;
  font-size: 24px;
}

.modern-brand-text span {
  display: block;
  margin-top: 3px;
  color: rgba(255,255,255,.70);
  font-size: 12px;
}

.sidebar-close {
  width: 44px;
  height: 44px;
  margin-left: auto;
  display: none;
  place-items: center;
  border: 0;
  border-radius: 13px;
  color: #fff;
  background: rgba(255,255,255,.11);
  cursor: pointer;
}

.modern-nav {
  padding: 24px 0;
  display: grid;
  gap: 8px;
  overflow-y: auto;
}

.modern-nav-item {
  width: 100%;
  min-height: 59px;
  padding: 0 17px;
  display: flex;
  align-items: center;
  gap: 15px;
  border: 0;
  border-radius: 15px;
  color: rgba(255,255,255,.76);
  background: transparent;
  cursor: pointer;
  text-align: left;
  transition: .18s ease;
}

.modern-nav-item i {
  width: 22px;
  font-size: 18px;
  text-align: center;
}

.modern-nav-item:hover {
  color: #fff;
  background: rgba(255,255,255,.09);
  transform: translateX(2px);
}

.modern-nav-item.active {
  color: #154e8a;
  background: #fff;
  box-shadow: 0 10px 26px rgba(2,26,57,.19);
  font-weight: 700;
}

.modern-nav-item.active i { color: #155fb9; }

.sidebar-profile {
  margin-top: auto;
  padding: 14px;
  display: flex;
  align-items: center;
  gap: 11px;
  border: 1px solid rgba(255,255,255,.13);
  border-radius: 16px;
  background: rgba(255,255,255,.07);
}

.sidebar-profile-avatar {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  color: #0c4f91;
  background: #fff;
  font-weight: 800;
}

.sidebar-profile strong,
.sidebar-profile span {
  display: block;
}

.sidebar-profile strong {
  max-width: 180px;
  overflow: hidden;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sidebar-profile span {
  margin-top: 3px;
  color: rgba(255,255,255,.65);
  font-size: 10px;
}

.sidebar-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1150;
  display: none;
  background: rgba(4,24,49,.54);
  backdrop-filter: blur(3px);
}

.sidebar-backdrop.is-visible { display: block; }

.dashboard-main { min-width: 0; }

.modern-topbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  min-height: 101px;
  padding: 18px 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 1px solid var(--border);
  background: rgba(255,255,255,.94);
  backdrop-filter: blur(15px);
}

.page-heading {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 16px;
}

.page-heading-icon {
  width: 57px;
  height: 57px;
  display: grid;
  place-items: center;
  border-radius: 17px;
  color: #155db5;
  background: #e7f1ff;
  font-size: 25px;
}

.page-heading h1 {
  margin: 0;
  font-size: clamp(22px,2vw,30px);
}

.page-heading p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 11px;
}

.database-online {
  min-height: 48px;
  padding: 0 18px;
  display: flex;
  align-items: center;
  gap: 9px;
  border: 1px solid #d1efe6;
  border-radius: 16px;
  color: var(--success);
  background: #e8f9f4;
  font-size: 12px;
  font-weight: 700;
}

.online-dot {
  width: 13px;
  height: 13px;
  border: 4px solid #c5eee1;
  border-radius: 50%;
  background: var(--success);
}

.icon-button {
  width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 16px;
  color: #155db5;
  background: #fff;
  cursor: pointer;
  font-size: 20px;
}

.sidebar-toggle { display: none; }

.user-dropdown { position: relative; }

.user-menu-button {
  min-height: 52px;
  padding: 5px 14px 5px 6px;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--border);
  border-radius: 17px;
  background: #fff;
  cursor: pointer;
}

.user-avatar {
  width: 39px;
  height: 39px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: #fff;
  background: linear-gradient(135deg,var(--primary),var(--primary-light));
  font-weight: 800;
}

.user-menu-copy {
  min-width: 0;
  display: grid;
  text-align: left;
}

.user-menu-copy strong {
  max-width: 170px;
  overflow: hidden;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.user-menu-copy small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 9px;
}

.user-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 1500;
  width: 255px;
  padding: 9px;
  display: none;
  border: 1px solid var(--border);
  border-radius: 17px;
  background: #fff;
  box-shadow: var(--shadow);
}

.user-menu.is-open { display: block; }

.user-menu-header {
  padding: 11px 12px 14px;
  border-bottom: 1px solid var(--border);
}

.user-menu-header strong,
.user-menu-header span {
  display: block;
}

.user-menu-header span {
  margin-top: 4px;
  overflow: hidden;
  color: var(--muted);
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.user-menu button {
  width: 100%;
  min-height: 43px;
  margin-top: 5px;
  padding: 0 11px;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 0;
  border-radius: 11px;
  background: transparent;
  cursor: pointer;
}

.user-menu button:hover { background: #f3f7fa; }

.dashboard-content { padding: 35px 38px 30px; }

/* Hero */
.hero-banner {
  position: relative;
  min-height: 390px;
  padding: clamp(36px,4vw,58px);
  display: grid;
  grid-template-columns: minmax(0,1.5fr) minmax(280px,.65fr);
  overflow: hidden;
  border-radius: 32px;
  color: #fff;
  background: linear-gradient(115deg,#0b4c96 0%,#146bd2 48%,#1aa7e8 100%);
  box-shadow: 0 25px 55px rgba(15,88,166,.18);
}

.hero-grid-pattern {
  position: absolute;
  inset: 0;
  opacity: .12;
  background-image:
    linear-gradient(rgba(255,255,255,.4) 1px,transparent 1px),
    linear-gradient(90deg,rgba(255,255,255,.4) 1px,transparent 1px);
  background-size: 52px 52px;
}

.hero-content {
  position: relative;
  z-index: 2;
  align-self: center;
}

.hero-kicker {
  display: block;
  margin-bottom: 16px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .18em;
}

.hero-content h2 {
  max-width: 830px;
  margin: 0;
  font-size: clamp(38px,4.3vw,65px);
  line-height: 1.18;
}

.hero-content h2 span { display: block; }

.hero-content p {
  max-width: 760px;
  margin: 18px 0 27px;
  color: rgba(255,255,255,.88);
  font-size: 16px;
  line-height: 1.9;
}

.hero-action {
  min-height: 55px;
  padding: 0 25px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 0;
  border-radius: 16px;
  color: #1553a1;
  background: #fff;
  box-shadow: 0 14px 30px rgba(7,52,104,.25);
  cursor: pointer;
  font-weight: 800;
}

.hero-visual {
  position: relative;
  min-height: 260px;
  display: grid;
  place-items: center;
}

.hero-ring {
  position: absolute;
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 50%;
}

.ring-one { width: 300px; height: 300px; }
.ring-two { width: 245px; height: 245px; }
.ring-three { width: 185px; height: 185px; }

.hero-truck-card {
  position: relative;
  z-index: 2;
  width: 148px;
  height: 148px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,255,255,.27);
  border-radius: 38px;
  background: rgba(255,255,255,.14);
  font-size: 69px;
  transform: rotate(-4deg);
}

/* Dashboard sections */
.section-heading {
  margin: 34px 3px 17px;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
}

.section-heading span,
.panel-header span {
  display: block;
  color: var(--primary);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .16em;
}

.section-heading h2,
.panel-header h3 { margin: 6px 0 0; }

.last-updated {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-size: 11px;
}

.summary-card-grid,
.performance-grid {
  display: grid;
  grid-template-columns: repeat(4,minmax(0,1fr));
  gap: 19px;
}

.performance-grid { margin-top: 19px; }

.summary-card {
  min-height: 154px;
  padding: 25px;
  display: flex;
  align-items: center;
  gap: 19px;
  border: 1px solid var(--border);
  border-radius: 23px;
  background: #fff;
  box-shadow: var(--soft-shadow);
}

.summary-icon {
  width: 65px;
  height: 65px;
  display: grid;
  place-items: center;
  border-radius: 19px;
  font-size: 28px;
}

.summary-icon.company { color: #1562ba; background: #e9f3ff; }
.summary-icon.product { color: #7651d6; background: #f1ecff; }
.summary-icon.batch { color: #f1781e; background: #fff0e4; }
.summary-icon.transaction { color: #16986f; background: #e7f8f2; }

.summary-card span,
.summary-card strong,
.summary-card small,
.performance-card span,
.performance-card strong,
.performance-card small {
  display: block;
}

.summary-card span,
.performance-card span {
  color: var(--muted);
  font-size: 12px;
}

.summary-card strong {
  margin-top: 5px;
  font-size: clamp(28px,2.2vw,38px);
}

.summary-card small,
.performance-card small {
  margin-top: 3px;
  color: #9aa8b6;
  font-size: 10px;
}

.performance-card {
  padding: 22px 24px;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: linear-gradient(145deg,#fff,#f9fbfd);
  box-shadow: var(--soft-shadow);
}

.performance-card strong {
  margin-top: 8px;
  font-size: 27px;
}

.date-range-value { font-size: 20px !important; }

.dashboard-panel-grid {
  margin-top: 20px;
  display: grid;
  grid-template-columns: minmax(0,1.65fr) minmax(340px,.75fr);
  gap: 20px;
}

.lower-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }

.dashboard-panel {
  min-width: 0;
  padding: 25px;
  border: 1px solid var(--border);
  border-radius: 24px;
  background: #fff;
  box-shadow: var(--soft-shadow);
}

.panel-header {
  min-height: 45px;
  display: flex;
  justify-content: space-between;
  gap: 15px;
}

.panel-header button {
  min-height: 38px;
  padding: 0 12px;
  border: 1px solid var(--border);
  border-radius: 11px;
  color: var(--primary);
  background: #fff;
  cursor: pointer;
  font-size: 10px;
}

.modern-empty-state {
  min-height: 300px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 9px;
  color: var(--muted);
  text-align: center;
}

.modern-empty-state.compact { min-height: 210px; }

.empty-state-icon {
  width: 62px;
  height: 62px;
  display: grid;
  place-items: center;
  border-radius: 19px;
  color: #1a70c9;
  background: #edf5ff;
  font-size: 27px;
}

.empty-state-icon.success {
  color: var(--success);
  background: #e8f8f3;
}

.modern-empty-state strong { color: var(--text); }

.modern-empty-state p {
  max-width: 470px;
  margin: 0;
  font-size: 11px;
  line-height: 1.8;
}

.modern-table-wrap {
  margin-top: 15px;
  overflow-x: auto;
}

.modern-table {
  width: 100%;
  border-collapse: collapse;
}

.modern-table th,
.modern-table td {
  padding: 13px 12px;
  border-bottom: 1px solid var(--border);
  text-align: right;
  white-space: nowrap;
}

.modern-table th:first-child,
.modern-table td:first-child { text-align: left; }

.status-stack,
.batch-list-modern,
.review-list {
  margin-top: 14px;
  display: grid;
  gap: 10px;
}

.status-box {
  min-height: 86px;
  padding: 15px;
  display: flex;
  align-items: center;
  gap: 13px;
  border: 1px solid var(--border);
  border-radius: 17px;
  background: var(--surface-soft);
}

.status-box-icon {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  font-size: 20px;
}

.status-box-icon.blue { color: var(--primary); background: #e7f1ff; }
.status-box-icon.orange { color: var(--warning); background: #fff0df; }
.status-box-icon.success { color: var(--success); background: #e5f8f1; }
.status-box-icon.danger { color: var(--danger); background: #fff0f3; }

.status-box span,
.status-box strong,
.status-box small {
  display: block;
}

.status-box span { color: var(--muted); font-size: 10px; }
.status-box strong { margin-top: 4px; font-size: 13px; }
.status-box small { margin-top: 3px; color: #9aa9b7; font-size: 9px; }

.batch-item-modern {
  min-height: 65px;
  padding: 10px 13px;
  display: grid;
  grid-template-columns: auto minmax(0,1fr) auto;
  align-items: center;
  gap: 11px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface-soft);
}

.batch-status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.batch-status-dot.success { background: var(--success); }
.batch-status-dot.danger { background: var(--danger); }

.batch-item-modern strong,
.batch-item-modern small,
.batch-result span {
  display: block;
}

.batch-item-modern strong {
  overflow: hidden;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.batch-item-modern small,
.batch-result small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 8px;
}

.batch-result { text-align: right; }

.review-item {
  min-height: 51px;
  padding: 0 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 1px solid var(--border);
  border-radius: 13px;
  background: var(--surface-soft);
}

.review-item strong {
  min-width: 45px;
  padding: 5px 9px;
  border-radius: 9px;
  color: var(--danger);
  background: #fff0f3;
  text-align: center;
}

.dashboard-footer {
  padding: 24px 4px 3px;
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 9px;
}

/* SweetAlert */
.truck83-swal {
  border-radius: 24px !important;
  font-family: "Mali",system-ui,sans-serif !important;
}

.truck83-swal .swal2-title { color: var(--text); }

.truck83-swal .swal2-html-container {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.8;
}

.truck83-toast {
  border-radius: 15px !important;
  font-family: "Mali",system-ui,sans-serif !important;
  box-shadow: var(--shadow) !important;
}

.swal-module-copy { line-height: 1.9; }

/* Responsive */
@media (max-width: 1450px) {
  .summary-card-grid,
  .performance-grid {
    grid-template-columns: repeat(2,minmax(0,1fr));
  }
}

@media (max-width: 1180px) {
  .dashboard-panel-grid,
  .lower-grid {
    grid-template-columns: 1fr;
  }

  .hero-banner { grid-template-columns: 1fr 250px; }
}

@media (max-width: 1024px) {
  .dashboard-layout { display: block; }

  .modern-sidebar {
    position: fixed;
    left: 0;
    width: min(340px,88vw);
    transform: translateX(-105%);
    transition: transform .24s ease;
  }

  .modern-sidebar.is-open { transform: translateX(0); }

  .sidebar-close,
  .sidebar-toggle { display: grid; }

  .page-heading-icon { display: none; }

  .modern-topbar { padding: 15px 20px; }

  .dashboard-content { padding: 24px 20px 28px; }

  .hero-banner { grid-template-columns: 1fr; }

  .hero-visual {
    position: absolute;
    right: -35px;
    bottom: -70px;
    opacity: .38;
  }
}

@media (max-width: 820px) {
  .login-page { padding: 0; }

  .login-shell {
    min-height: 100vh;
    grid-template-columns: 1fr;
    border-radius: 0;
  }

  .login-brand {
    min-height: auto;
    padding: 34px;
  }

  .login-brand h1 { font-size: 40px; }

  .login-features { display: none; }

  .login-card { padding: 38px 28px; }

  .database-online span:last-child,
  .user-menu-copy { display: none; }

  .database-online {
    width: 49px;
    padding: 0;
    justify-content: center;
  }

  .summary-card-grid,
  .performance-grid { grid-template-columns: 1fr; }

  .hero-banner {
    min-height: 380px;
    padding: 34px 27px;
  }

  .hero-content h2 { font-size: 39px; }

  .section-heading {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 560px) {
  .modern-topbar {
    min-height: 87px;
    gap: 10px;
  }

  .page-heading h1 { font-size: 20px; }
  .page-heading p { display: none; }
  .database-online { display: none; }

  .icon-button {
    width: 44px;
    height: 44px;
    border-radius: 13px;
  }

  .user-menu-button {
    min-height: 46px;
    padding: 4px;
  }

  .user-menu-button > .bi-chevron-down { display: none; }

  .user-avatar {
    width: 36px;
    height: 36px;
  }

  .dashboard-content { padding: 17px 13px 25px; }

  .hero-banner {
    min-height: 405px;
    padding: 31px 24px;
    border-radius: 24px;
  }

  .hero-content h2 { font-size: 34px; }

  .hero-truck-card {
    width: 120px;
    height: 120px;
    font-size: 54px;
  }

  .dashboard-panel {
    padding: 18px;
    border-radius: 20px;
  }

  .dashboard-footer {
    gap: 8px;
    flex-direction: column;
  }
}


/* ============================================================
   Phase 2E.4 — Desktop Sidebar Collapse
   ============================================================ */

@media (min-width: 1025px) {
  .sidebar-toggle {
    display: grid;
  }

  .modern-sidebar,
  .modern-brand,
  .modern-nav-item,
  .modern-brand-icon {
    transition:
      width .22s ease,
      padding .22s ease,
      gap .22s ease,
      border-radius .22s ease,
      transform .22s ease;
  }

  body.sidebar-collapsed .dashboard-layout {
    grid-template-columns:
      var(--sidebar-collapsed-width)
      minmax(0, 1fr);
  }

  body.sidebar-collapsed .modern-sidebar {
    padding-inline: 12px;
  }

  body.sidebar-collapsed .modern-brand {
    justify-content: center;
    padding-inline: 0;
  }

  body.sidebar-collapsed .modern-brand-icon {
    width: 54px;
    height: 54px;
    border-radius: 16px;
  }

  body.sidebar-collapsed .modern-brand-text,
  body.sidebar-collapsed .modern-nav-item span {
    display: none;
  }

  body.sidebar-collapsed .modern-nav-item {
    min-height: 56px;
    padding: 0;
    justify-content: center;
    gap: 0;
  }

  body.sidebar-collapsed .modern-nav-item i {
    width: auto;
    font-size: 20px;
  }

  body.sidebar-collapsed .modern-nav-item:hover {
    transform: translateX(0) scale(1.03);
  }

  body.sidebar-collapsed .modern-nav-item.active {
    border-radius: 16px;
  }

  body.sidebar-collapsed .modern-nav {
    overflow-x: visible;
  }

  body.sidebar-collapsed .modern-nav-item[title] {
    position: relative;
  }
}
