@font-face {
  font-family: "Metropolis";
  src: url("../assets/fonts/metropolis/Metropolis-Regular.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Metropolis";
  src: url("../assets/fonts/metropolis/Metropolis-Medium.otf") format("opentype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Metropolis";
  src: url("../assets/fonts/metropolis/Metropolis-SemiBold.otf") format("opentype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Metropolis";
  src: url("../assets/fonts/metropolis/Metropolis-Bold.otf") format("opentype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --lte-sidebar-width: 15rem;
  --whoosh-font: "Metropolis", "Segoe UI Variable", "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, Arial, sans-serif;
  --whoosh-blue: #0874b9;
  --whoosh-blue-dark: #07527f;
  --whoosh-blue-deep: #063d61;
  --whoosh-blue-soft: #eaf5fb;
  --whoosh-orange: #ff6b16;
  --whoosh-orange-dark: #dd5000;
  --whoosh-orange-soft: #fff1e8;
  --whoosh-navy: #123a55;
  --whoosh-ink: #18364a;
  --whoosh-muted: #688092;
  --whoosh-canvas: #f5f7f8;
  --whoosh-surface: #ffffff;
  --whoosh-border: #e0e7eb;
  --whoosh-shadow: 0 0.15rem 0.55rem rgba(18, 58, 85, 0.055);
  --whoosh-shadow-raised: 0 0.7rem 2rem rgba(18, 58, 85, 0.1);
  --whoosh-radius-sm: 0.55rem;
  --whoosh-radius-md: 0.8rem;
  --whoosh-radius-lg: 1.1rem;
  --whoosh-focus-ring: 0 0 0 0.2rem rgba(8, 116, 185, 0.18);
  --bs-primary: var(--whoosh-blue);
  --bs-primary-rgb: 8, 116, 185;
  --bs-link-color: var(--whoosh-blue);
  --bs-link-hover-color: var(--whoosh-blue-dark);
  --bs-body-font-family: var(--whoosh-font);
  --bs-body-color: var(--whoosh-ink);
  --bs-body-bg: var(--whoosh-canvas);
}

html {
  background: var(--whoosh-canvas);
}

body {
  font-family: var(--whoosh-font);
  font-size: 0.9rem;
  font-weight: 400;
  line-height: 1.5;
  color: var(--whoosh-ink);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body.whoosh-theme {
  background-color: var(--whoosh-canvas);
  background-image: none;
}

body.whoosh-theme .app-wrapper,
body.whoosh-theme .app-main {
  background: transparent;
}

body.whoosh-theme a {
  color: var(--whoosh-blue);
}

body.whoosh-theme :is(a, button, input, select, textarea, [tabindex]):focus-visible {
  outline: 2px solid var(--whoosh-orange);
  outline-offset: 2px;
}

body.whoosh-theme :is(.btn, .nav-link, .dropdown-item) {
  -webkit-tap-highlight-color: transparent;
}

/* Top navigation */
body.whoosh-theme .app-header {
  min-height: 4rem;
  padding: 0;
  background: #fff !important;
  border-bottom: 1px solid var(--whoosh-border);
  box-shadow: 0 0.1rem 0.35rem rgba(18, 58, 85, 0.04);
}

body.whoosh-theme .app-header .container-fluid {
  min-height: 4rem;
  flex-wrap: nowrap;
  gap: 0.5rem;
  padding: 0 1.25rem;
}

body.whoosh-theme .app-header .navbar-nav {
  min-width: 0;
}

body.whoosh-theme .app-header .nav-link {
  display: inline-flex;
  align-items: center;
  height: 3rem;
  max-width: 100%;
  border-radius: 0.75rem;
  color: #4f6b7f;
  font-weight: 500;
  line-height: 1.25;
  white-space: nowrap;
}

body.whoosh-theme .app-header .nav-link:hover,
body.whoosh-theme .app-header .nav-link:focus {
  color: var(--whoosh-blue);
  background: var(--whoosh-blue-soft);
}

.whoosh-navbar-icon {
  justify-content: center;
  min-width: 2.75rem;
  font-size: 1.2rem;
}

.whoosh-navbar-title {
  gap: 0.55rem;
  font-size: 0.84rem;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
}

.whoosh-navbar-title-dot {
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 999px;
  background: var(--whoosh-orange);
  box-shadow: 0 0 0 0.3rem var(--whoosh-orange-soft);
}

.btn-whoosh-accent {
  color: #fff !important;
  background: var(--whoosh-orange);
  border-color: var(--whoosh-orange);
  box-shadow: none !important;
}

.btn-whoosh-accent:hover,
.btn-whoosh-accent:focus {
  color: #fff !important;
  background: var(--whoosh-orange-dark);
  border-color: var(--whoosh-orange-dark);
  transform: none;
}

.whoosh-user-toggle {
  gap: 0.55rem;
  padding-right: 0.6rem !important;
}

.whoosh-user-toggle::after {
  display: none;
}

.whoosh-user-avatar-sm,
.whoosh-user-avatar-lg {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(135deg, var(--whoosh-blue), var(--whoosh-blue-dark));
  font-weight: 700;
  letter-spacing: 0;
}

.whoosh-user-avatar-sm {
  width: 2rem;
  height: 2rem;
  font-size: 0.76rem;
  box-shadow: 0 0 0 0.2rem var(--whoosh-blue-soft);
}

.whoosh-user-avatar-lg {
  width: 4rem;
  height: 4rem;
  margin-bottom: 0.65rem;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.35);
  font-size: 1.2rem;
}

.whoosh-user-name {
  display: block;
  max-width: 11rem;
  overflow: hidden;
  color: var(--whoosh-ink);
  font-size: 0.88rem;
  font-weight: 600;
  text-overflow: ellipsis;
}

.whoosh-user-chevron {
  color: #91a5b2;
  font-size: 0.72rem;
}

/* Sidebar */
body.whoosh-theme .app-sidebar {
  background: #07527f !important;
  border-right: 0;
  box-shadow: 0.25rem 0 0.9rem rgba(7, 55, 82, 0.08) !important;
}

body.whoosh-theme .sidebar-brand {
  height: 4rem;
  padding: 0 0.8rem;
  background: rgba(3, 43, 68, 0.14);
  border-bottom: 1px solid rgba(255, 255, 255, 0.11);
}

.sidebar-brand .brand-link {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  width: 100%;
  height: 100%;
  padding: 0;
  overflow: hidden;
  color: #fff !important;
  text-decoration: none;
}

.brand-mark {
  width: 2.15rem;
  height: 2.15rem;
  flex: 0 0 auto;
  border-radius: 50%;
  filter: drop-shadow(0 0.4rem 0.65rem rgba(0, 0, 0, 0.18));
}

.brand-wordmark-image {
  display: block;
  width: 10.5rem;
  height: 3rem;
  flex: 0 0 auto;
  border-radius: 0.5rem;
  background: #fff;
  object-fit: cover;
  object-position: center;
  box-shadow: 0 0.45rem 1rem rgba(0, 0, 0, 0.14);
}

.brand-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
  line-height: 1.05;
}

.brand-wordmark {
  display: flex;
  align-items: baseline;
  gap: 0.24rem;
  color: #fff;
  font-size: 0.96rem;
  font-weight: 700;
  letter-spacing: 0;
}

.brand-accent {
  color: #ff873f;
}

.brand-copy small {
  margin-top: 0.2rem;
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.59rem;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: uppercase;
}

body.whoosh-theme .sidebar-wrapper {
  position: relative;
}

body.whoosh-theme .sidebar-wrapper > nav {
  margin-top: 0.65rem !important;
}

body.whoosh-theme .sidebar-menu > .nav-header {
  margin: 0.85rem 0.8rem 0.3rem;
  padding: 0;
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.63rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

body.whoosh-theme .app-sidebar .nav-link {
  position: relative;
  display: flex;
  align-items: center;
  width: calc(100% - 0.9rem);
  min-height: 2.48rem;
  margin: 0.1rem 0.45rem;
  padding: 0.5rem 0.65rem;
  overflow: hidden;
  border-radius: 0.48rem;
  color: rgba(241, 249, 253, 0.86);
  transition: color 0.18s ease, background-color 0.18s ease;
}

body.whoosh-theme .app-sidebar .nav-link > .nav-icon {
  flex: 0 0 1.35rem;
  width: 1.35rem;
  margin: 0;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.88rem;
  line-height: 1;
  text-align: center;
}

body.whoosh-theme .app-sidebar .nav-link > p {
  display: block;
  min-width: 0;
  padding-right: 1.05rem;
  padding-left: 0.45rem;
  overflow: hidden;
  font-size: 0.79rem;
  font-weight: 600;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.whoosh-theme .app-sidebar .nav-link:hover,
body.whoosh-theme .app-sidebar .nav-link:focus {
  color: #fff;
  background: rgba(255, 255, 255, 0.09);
  transform: none;
}

body.whoosh-theme .app-sidebar .nav-link:hover > .nav-icon,
body.whoosh-theme .app-sidebar .nav-link.active > .nav-icon,
body.whoosh-theme .app-sidebar .menu-open > .nav-link > .nav-icon {
  color: #fff;
}

body.whoosh-theme .app-sidebar .nav-link.active,
body.whoosh-theme .app-sidebar .menu-open > .nav-link {
  color: #fff;
  background: rgba(255, 255, 255, 0.14);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}

body.whoosh-theme .app-sidebar .nav-link.active::before {
  content: "";
  position: absolute;
  inset: 0.5rem auto 0.5rem 0;
  width: 0.2rem;
  border-radius: 0 999px 999px 0;
  background: var(--whoosh-orange);
  box-shadow: 0 0 0.7rem rgba(255, 107, 22, 0.55);
}

body.whoosh-theme .app-sidebar .nav-treeview {
  width: calc(100% - 0.9rem);
  margin: 0 0.45rem 0.28rem;
  padding: 0.18rem 0;
  border-radius: 0.6rem;
  background: rgba(2, 39, 61, 0.2);
}

body.whoosh-theme .app-sidebar .nav-treeview .nav-link {
  width: calc(100% - 0.5rem);
  min-height: 2.12rem;
  margin: 0.06rem 0.25rem;
  padding: 0.38rem 0.58rem;
}

body.whoosh-theme .app-sidebar .nav-treeview .nav-icon {
  font-size: 0.36rem;
}

/* Main layout */
body.whoosh-theme .app-content-header {
  padding: 0.8rem 0 0.55rem;
}

body.whoosh-theme .app-content-header .container-fluid,
body.whoosh-theme .app-content .container-fluid {
  max-width: 1520px;
  padding-right: 1.25rem;
  padding-left: 1.25rem;
}

.page-eyebrow,
.card-kicker {
  display: none;
}

.page-eyebrow {
  margin-bottom: 0.25rem;
}

body.whoosh-theme .app-content-header h3,
body.whoosh-theme .app-content-header .h3 {
  padding-left: 0.6rem;
  border-left: 0.25rem solid var(--whoosh-orange);
  color: var(--whoosh-navy);
  font-size: clamp(1.2rem, 1.8vw, 1.5rem);
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.22;
}

body.whoosh-theme .app-content-header p,
body.whoosh-theme .breadcrumb {
  font-size: 0.76rem;
}

body.whoosh-theme .app-content-header :is(.page-eyebrow, p.text-muted, .breadcrumb) {
  display: none;
}

body.whoosh-theme .breadcrumb {
  padding: 0.25rem 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

body.whoosh-theme .breadcrumb-item + .breadcrumb-item::before {
  color: #a3b4bf;
}

body.whoosh-theme .breadcrumb-item.active,
body.whoosh-theme .text-muted {
  color: var(--whoosh-muted) !important;
}

body.whoosh-theme .app-content {
  padding-bottom: 1.5rem;
}

/* Shared components */
body.whoosh-theme .card,
body.whoosh-theme .info-box,
body.whoosh-theme .callout {
  overflow: hidden;
  border: 1px solid var(--whoosh-border);
  border-radius: 0.75rem;
  background: #fff;
  box-shadow: var(--whoosh-shadow);
}

body.whoosh-theme .card-header {
  display: flex;
  min-height: 3rem;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  flex-wrap: wrap;
  padding: 0.65rem 0.85rem;
  background: #fff;
  border-bottom: 1px solid #e5edf1;
  box-shadow: inset 0.2rem 0 0 var(--whoosh-orange);
}

body.whoosh-theme .card-header > * {
  min-width: 0;
  max-width: 100%;
}

body.whoosh-theme .card-header > div:first-child,
body.whoosh-theme .card-header > .card-title {
  flex: 1 1 12rem;
}

body.whoosh-theme .card-title {
  float: none;
  margin: 0;
  color: var(--whoosh-navy);
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.card-kicker {
  margin-bottom: 0.15rem;
  color: var(--whoosh-orange-dark);
  font-size: 0.66rem;
}

body.whoosh-theme .card-header > .card-tools {
  float: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0 0 0 auto;
}

body.whoosh-theme .card-body,
body.whoosh-theme .card-footer,
body.whoosh-theme .callout {
  overflow-wrap: anywhere;
}

body.whoosh-theme .card-body,
body.whoosh-theme .card-footer {
  padding: 0.85rem;
}

body.whoosh-theme .row > *,
body.whoosh-theme .card,
body.whoosh-theme .card-body,
body.whoosh-theme .card-footer,
body.whoosh-theme .d-flex > *,
body.whoosh-theme .input-group > * {
  min-width: 0;
}

body.whoosh-theme .card :is(h1, h2, h3, h4, h5, h6, p, span, strong, small, a, label),
body.whoosh-theme .alert,
body.whoosh-theme .table th,
body.whoosh-theme .table td {
  overflow-wrap: anywhere;
  word-break: normal;
}

body.whoosh-theme img,
body.whoosh-theme svg,
body.whoosh-theme video,
body.whoosh-theme canvas {
  max-width: 100%;
}

body.whoosh-theme .callout {
  padding: 1rem 1.15rem;
  border-left: 0.28rem solid var(--whoosh-blue);
  box-shadow: none;
}

body.whoosh-theme .callout p:last-child {
  margin-bottom: 0;
}

body.whoosh-theme .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  max-width: 100%;
  border-radius: 0.45rem;
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1.25;
  white-space: normal;
  overflow-wrap: anywhere;
  transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

body.whoosh-theme .btn-primary,
body.whoosh-theme .badge.text-bg-primary,
body.whoosh-theme .whoosh-user-header {
  color: #fff !important;
  background: var(--whoosh-blue) !important;
  border-color: var(--whoosh-blue) !important;
}

body.whoosh-theme .btn-primary:hover,
body.whoosh-theme .btn-primary:focus {
  background: var(--whoosh-blue-dark) !important;
  border-color: var(--whoosh-blue-dark) !important;
  box-shadow: none;
  transform: none;
}

body.whoosh-theme .btn-outline-primary {
  color: var(--whoosh-blue);
  border-color: rgba(8, 116, 185, 0.35);
}

body.whoosh-theme .btn-outline-primary:hover,
body.whoosh-theme .btn-outline-primary:focus {
  color: #fff;
  background: var(--whoosh-blue);
  border-color: var(--whoosh-blue);
}

body.whoosh-theme .btn-outline-secondary {
  color: #536f82;
  border-color: #c8d8e1;
}

body.whoosh-theme .btn-outline-secondary:hover,
body.whoosh-theme .btn-outline-secondary:focus {
  color: #fff;
  background: #536f82;
  border-color: #536f82;
}

body.whoosh-theme .btn-info {
  color: #fff;
  background: #2298c9;
  border-color: #2298c9;
}

body.whoosh-theme .btn-warning {
  color: #fff;
  background: var(--whoosh-orange);
  border-color: var(--whoosh-orange);
}

body.whoosh-theme .btn-icon {
  display: inline-flex;
  width: 2rem;
  height: 2rem;
  align-items: center;
  justify-content: center;
  padding: 0;
  border-radius: 50%;
}

body.whoosh-theme .badge {
  padding: 0.38rem 0.55rem;
  font-size: 0.72rem;
  font-weight: 600;
  line-height: 1.15;
  white-space: normal;
}

body.whoosh-theme .badge.text-bg-light {
  color: #4e6d80 !important;
  background: #f2f7fa !important;
  border-color: #dce8ee !important;
}

body.whoosh-theme .text-bg-warning {
  color: #fff !important;
  background-color: var(--whoosh-orange) !important;
}

body.whoosh-theme .alert {
  border: 1px solid rgba(18, 58, 85, 0.08);
  border-radius: 0.6rem;
  box-shadow: none;
  font-size: 0.88rem;
}

body.whoosh-theme .form-label {
  margin-bottom: 0.4rem;
  color: #35556b;
  font-size: 0.82rem;
  font-weight: 700;
}

body.whoosh-theme .form-control,
body.whoosh-theme .form-select,
body.whoosh-theme .input-group-text {
  min-height: 2.55rem;
  border-color: #cfdde5;
  max-width: 100%;
  border-radius: 0.45rem;
  color: var(--whoosh-ink);
  font-size: 0.88rem;
}

body.whoosh-theme textarea.form-control {
  min-height: 6rem;
}

body.whoosh-theme .form-control:focus,
body.whoosh-theme .form-select:focus {
  border-color: rgba(8, 116, 185, 0.65);
  box-shadow: 0 0 0 0.22rem rgba(8, 116, 185, 0.11);
}

body.whoosh-theme .input-group > .form-control:not(:last-child),
body.whoosh-theme .input-group > .form-select:not(:last-child) {
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
}

body.whoosh-theme .input-group-text {
  color: var(--whoosh-orange-dark);
  background: var(--whoosh-orange-soft);
}

body.whoosh-theme .table-responsive {
  overflow-x: auto;
  max-width: 100%;
  background: #fff;
  -webkit-overflow-scrolling: touch;
}

body.whoosh-theme .table {
  --bs-table-bg: transparent;
  --bs-table-hover-bg: rgba(8, 116, 185, 0.035);
  margin-bottom: 0;
  color: #304f64;
  width: 100%;
  font-size: 0.76rem;
  line-height: 1.3;
}

body.whoosh-theme .table th,
body.whoosh-theme .table td {
  padding: 0.5rem 0.6rem;
  vertical-align: middle;
  overflow-wrap: normal;
  word-break: normal;
  border-bottom-color: #e5edf1;
}

body.whoosh-theme .table-sm > :not(caption) > * > * {
  padding: 0.42rem 0.52rem;
}

body.whoosh-theme .table thead th {
  color: #3d6279;
  background: #f5f8fa;
  border-bottom: 2px solid rgba(255, 107, 22, 0.55);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.2;
  text-transform: uppercase;
  white-space: nowrap;
}

body.whoosh-theme .table tbody tr:last-child > td {
  border-bottom-width: 0;
}

body.whoosh-theme .whoosh-table-wide {
  min-width: 860px;
}

body.whoosh-theme .whoosh-table-extra-wide {
  min-width: 1080px;
}

body.whoosh-theme .table-number-cell {
  width: 3.25rem;
  min-width: 3.25rem;
  text-align: center;
  white-space: nowrap;
}

body.whoosh-theme .table-status-cell {
  min-width: 7rem;
  text-align: center;
  white-space: nowrap;
}

body.whoosh-theme .table td > :is(.badge, .btn) {
  vertical-align: middle;
}

body.whoosh-theme .table td > small.d-block {
  line-height: 1.25;
}

body.whoosh-theme .table-bordered > :not(caption) > * {
  border-color: #e1eaf0;
}

body.whoosh-theme .table .btn-sm {
  display: inline-flex;
  min-width: 2rem;
  min-height: 2rem;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  padding: 0.3rem 0.48rem;
  font-size: 0.71rem;
  line-height: 1.1;
  white-space: nowrap;
}

body.whoosh-theme .whoosh-action-table .table-action-column,
body.whoosh-theme .whoosh-action-table .table-action-cell,
body.whoosh-theme .whoosh-action-table > tbody > tr > td:last-child {
  width: 1%;
  min-width: 6rem;
  text-align: center;
  white-space: nowrap;
}

body.whoosh-theme .whoosh-action-table .table-action-cell > a,
body.whoosh-theme .whoosh-action-table .table-action-cell > button,
body.whoosh-theme .whoosh-action-table .table-action-cell > form,
body.whoosh-theme .whoosh-action-table > tbody > tr > td:last-child > a,
body.whoosh-theme .whoosh-action-table > tbody > tr > td:last-child > button,
body.whoosh-theme .whoosh-action-table > tbody > tr > td:last-child > form {
  display: inline-flex !important;
  margin: 0.12rem;
  vertical-align: middle;
}

body.whoosh-theme .whoosh-action-table .table-action-cell > div,
body.whoosh-theme .whoosh-action-table > tbody > tr > td:last-child > div {
  align-items: center;
  justify-content: center;
  gap: 0.25rem !important;
}

body.whoosh-theme .whoosh-action-table .table-action-cell .btn-sm,
body.whoosh-theme .whoosh-action-table > tbody > tr > td:last-child .btn-sm {
  min-width: 2rem;
  min-height: 2rem;
  margin: 0;
}

/* SLA keeps dense operational values aligned without forcing text to wrap. */
.sla-operational-table {
  min-width: 1120px;
  table-layout: auto;
}

.sla-operational-table :is(th:nth-child(1), td:nth-child(1)) {
  width: 3.25rem;
  min-width: 3.25rem;
  text-align: center;
}

.sla-operational-table :is(th:nth-child(2), td:nth-child(2)) {
  min-width: 11rem;
}

.sla-operational-table :is(th, td):nth-last-child(-n + 6),
.sla-operational-table :is(th, td):last-child {
  text-align: center;
}

.sla-operational-table :is(th, td):last-child {
  width: 6rem;
  min-width: 6rem;
}

.sla-policy-table {
  min-width: 980px;
}

.sla-policy-table :is(th, td):not(:first-child) {
  text-align: center;
}

.sla-policy-table :is(th, td):last-child {
  width: 7rem;
  min-width: 7rem;
  white-space: nowrap;
}

body.whoosh-theme .table-striped > tbody > tr:nth-of-type(odd) > * {
  --bs-table-accent-bg: rgba(8, 116, 185, 0.022);
}

body.whoosh-theme .dropdown-menu {
  overflow: hidden;
  padding: 0.45rem;
  border: 1px solid var(--whoosh-border);
  border-radius: 0.65rem;
  box-shadow: 0 0.45rem 1rem rgba(18, 58, 85, 0.1);
}

body.whoosh-theme .dropdown-item {
  border-radius: 0.55rem;
  font-size: 0.86rem;
}

body.whoosh-theme .user-menu .dropdown-menu {
  padding: 0;
}

body.whoosh-theme .whoosh-user-header {
  display: flex;
  min-height: 10rem;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: 1.25rem;
  background-image:
    radial-gradient(circle at 90% 0%, rgba(255, 107, 22, 0.45), transparent 45%),
    linear-gradient(135deg, var(--whoosh-blue), var(--whoosh-blue-dark)) !important;
}

body.whoosh-theme .whoosh-user-header p {
  margin: 0;
  color: #fff;
  font-size: 0.96rem;
  font-weight: 600;
  line-height: 1.4;
  text-align: center;
}

body.whoosh-theme .whoosh-user-header small {
  display: block;
  margin-top: 0.25rem;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.72rem;
  font-weight: 500;
}

body.whoosh-theme .user-footer {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.75rem;
  background: #f7fafb;
}

/* AdminLTE summary boxes retained for the driver portal */
body.whoosh-theme .small-box {
  min-height: 9rem;
  overflow: hidden;
  border: 0;
  border-radius: 1rem;
  box-shadow: var(--whoosh-shadow);
}

body.whoosh-theme .small-box > .inner {
  min-height: 7.1rem;
  padding: 1rem 5rem 0.8rem 1rem;
}

body.whoosh-theme .small-box h3 {
  margin-bottom: 0.45rem;
  color: #fff;
  font-size: 1.9rem;
  font-weight: 700;
}

body.whoosh-theme .small-box p {
  color: rgba(255, 255, 255, 0.95);
  font-size: 0.84rem;
  font-weight: 600;
}

body.whoosh-theme .small-box small {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.74rem;
}

body.whoosh-theme .small-box .small-box-icon {
  top: 1.35rem;
  right: 1rem;
  color: rgba(255, 255, 255, 0.24);
  font-size: 3.45rem;
}

body.whoosh-theme .small-box > .small-box-footer {
  padding: 0.42rem 0.75rem;
  color: #fff;
  background: rgba(0, 0, 0, 0.09);
  font-size: 0.76rem;
  font-weight: 600;
}

body.whoosh-theme .small-box.text-bg-primary { background: linear-gradient(135deg, #0874b9, #07527f) !important; }
body.whoosh-theme .small-box.text-bg-info { background: linear-gradient(135deg, #159bc7, #0874b9) !important; }
body.whoosh-theme .small-box.text-bg-success { background: linear-gradient(135deg, #1d9d7c, #14735c) !important; }
body.whoosh-theme .small-box.text-bg-warning { background: linear-gradient(135deg, #ff8a32, #e45a05) !important; }
body.whoosh-theme .small-box.text-bg-danger { background: linear-gradient(135deg, #dc5b5b, #b43838) !important; }

/* Dashboard */
.whoosh-dashboard-hero {
  position: relative;
  display: flex;
  min-height: 8.8rem;
  align-items: stretch;
  overflow: hidden;
  border-radius: 0.8rem;
  color: #fff;
  background: var(--whoosh-blue-dark);
  box-shadow: var(--whoosh-shadow);
}

.whoosh-dashboard-hero::before {
  display: none;
}

.whoosh-hero-content {
  position: relative;
  z-index: 2;
  width: 75%;
  padding: 1.15rem 1.35rem;
}

.whoosh-hero-date {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 0.75rem;
  padding: 0.42rem 0.7rem;
  border: 0;
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.82);
  background: rgba(255, 255, 255, 0.12);
  font-size: 0.74rem;
  font-weight: 600;
}

.whoosh-hero-content h1 {
  max-width: 42rem;
  margin: 0;
  color: #fff;
  font-size: clamp(1.35rem, 2.5vw, 1.8rem);
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.16;
}

.whoosh-hero-content p {
  max-width: 38rem;
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.9rem;
}

.btn-whoosh-light {
  color: var(--whoosh-blue-deep) !important;
  background: #fff;
  border-color: #fff;
}

.btn-whoosh-light:hover {
  color: var(--whoosh-blue) !important;
  background: var(--whoosh-blue-soft);
  border-color: var(--whoosh-blue-soft);
  transform: translateY(-1px);
}

.whoosh-hero-visual {
  position: relative;
  flex: 1 1 auto;
  min-width: 12rem;
}

.whoosh-hero-visual > .bi-truck {
  position: absolute;
  right: 2.25rem;
  bottom: 1.5rem;
  z-index: 2;
  color: rgba(255, 255, 255, 0.2);
  font-size: 4.5rem;
  filter: none;
}

.whoosh-stat-card {
  position: relative;
  display: flex;
  min-height: 7.4rem;
  align-items: center;
  gap: 0.9rem;
  overflow: hidden;
  padding: 1.1rem;
  border: 1px solid var(--whoosh-border);
  border-radius: 0.75rem;
  color: var(--whoosh-ink) !important;
  background: #fff;
  box-shadow: var(--whoosh-shadow);
  text-decoration: none;
  transition: border-color 0.18s ease, background-color 0.18s ease;
}

.whoosh-stat-card::after {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 0.16rem;
  background: var(--card-tone, var(--whoosh-blue));
}

.whoosh-stat-card:hover {
  border-color: #b9dce9;
  background: #fbfdfe;
  box-shadow: var(--whoosh-shadow);
  transform: none;
}

.whoosh-stat-card.tone-primary { --card-tone: #0874b9; --card-soft: #e8f4fb; }
.whoosh-stat-card.tone-success { --card-tone: #1d9d7c; --card-soft: #e7f7f2; }
.whoosh-stat-card.tone-navy { --card-tone: #174c6d; --card-soft: #e9f0f4; }
.whoosh-stat-card.tone-accent { --card-tone: #ff6b16; --card-soft: #fff0e7; }

.whoosh-stat-icon {
  display: inline-flex;
  width: 2.8rem;
  height: 2.8rem;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  border-radius: 0.6rem;
  color: var(--card-tone);
  background: var(--card-soft);
  font-size: 1.1rem;
}

.whoosh-stat-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

.whoosh-stat-label {
  color: #607a8b;
  font-size: 0.76rem;
  font-weight: 600;
}

.whoosh-stat-copy strong {
  margin: 0.06rem 0;
  color: var(--whoosh-navy);
  font-size: 1.5rem;
  line-height: 1.15;
}

.whoosh-stat-copy small {
  color: #8a9da9;
  font-size: 0.68rem;
  line-height: 1.4;
}

.whoosh-stat-arrow {
  display: none;
}

.dashboard-dispatch-table {
  min-width: 760px;
}

.live-monitoring-map-shell {
  position: relative;
  margin: 0.9rem;
  overflow: hidden;
  border: 1px solid var(--whoosh-border);
  border-radius: 0.8rem;
  background: #eef5f8;
}

.live-monitoring-toolbar {
  display: flex;
  min-height: 2.7rem;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.55rem 0.75rem;
  border-bottom: 1px solid var(--whoosh-border);
  background: rgba(255, 255, 255, 0.96);
}

.live-monitoring-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  color: var(--whoosh-muted);
  font-size: 0.68rem;
}

.live-monitoring-legend span,
.live-tracking-table-state {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.live-monitoring-legend strong {
  color: var(--whoosh-ink);
}

.live-monitoring-updated {
  color: var(--whoosh-muted);
  font-size: 0.66rem;
  white-space: nowrap;
}

.live-monitoring-map {
  z-index: 1;
  width: 100%;
  height: clamp(20rem, 48vh, 31rem);
}

.live-monitoring-empty {
  position: absolute;
  z-index: 500;
  inset: 50% auto auto 50%;
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.65rem 0.85rem;
  border: 1px solid var(--whoosh-border);
  border-radius: 0.65rem;
  color: var(--whoosh-muted);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--whoosh-shadow);
  font-size: 0.72rem;
  transform: translate(-50%, -30%);
}

.tracking-dot {
  display: inline-block;
  width: 0.48rem;
  height: 0.48rem;
  flex: 0 0 auto;
  border-radius: 50%;
  background: #94a3ad;
}

.tracking-dot.is-online { background: #1d9d7c; box-shadow: 0 0 0 0.18rem rgba(29, 157, 124, 0.12); }
.tracking-dot.is-stale { background: #f59e0b; box-shadow: 0 0 0 0.18rem rgba(245, 158, 11, 0.12); }
.tracking-dot.is-offline { background: #dc3545; box-shadow: 0 0 0 0.18rem rgba(220, 53, 69, 0.1); }
.tracking-dot.is-waiting { background: #94a3ad; }

.live-tracking-table-state {
  font-size: 0.7rem;
  font-weight: 700;
  white-space: nowrap;
}

.live-tracking-table-state small {
  display: block;
  margin-left: 0.2rem;
  color: var(--whoosh-muted);
  font-size: 0.62rem;
  font-weight: 500;
}

.live-tracking-table-state.is-online { color: #168267; }
.live-tracking-table-state.is-stale { color: #b66d00; }
.live-tracking-table-state.is-offline { color: #b62d3b; }
.live-tracking-table-state.is-waiting { color: var(--whoosh-muted); }

.live-vehicle-marker-wrap {
  border: 0;
  background: transparent;
}

.live-vehicle-marker {
  display: inline-flex;
  width: 2.35rem;
  height: 2.35rem;
  align-items: center;
  justify-content: center;
  border: 0.2rem solid #fff;
  border-radius: 50%;
  color: #fff;
  background: var(--whoosh-blue);
  box-shadow: 0 0.3rem 0.9rem rgba(12, 67, 96, 0.28);
  font-size: 0.85rem;
}

.live-vehicle-marker i {
  display: block;
  transition: transform 0.25s ease;
}

.live-vehicle-marker.is-online { background: #1d9d7c; }
.live-vehicle-marker.is-stale { background: #f59e0b; }
.live-vehicle-marker.is-offline { background: #dc3545; }

.live-route-target-marker-wrap {
  border: 0;
  background: transparent;
}

.live-route-target-marker {
  display: inline-flex;
  width: 2.1rem;
  height: 2.1rem;
  align-items: center;
  justify-content: center;
  border: 0.18rem solid #fff;
  border-radius: 50%;
  color: #fff;
  background: var(--whoosh-orange);
  box-shadow: 0 0.25rem 0.8rem rgba(198, 74, 0, 0.28);
  font-size: 0.72rem;
}

.live-map-popup {
  display: flex;
  min-width: 12rem;
  flex-direction: column;
  gap: 0.18rem;
  color: var(--whoosh-ink);
  font-family: inherit;
}

.live-map-popup strong { color: var(--whoosh-navy); font-size: 0.78rem; }
.live-map-popup span { font-size: 0.72rem; }
.live-map-popup small { color: var(--whoosh-muted); font-size: 0.65rem; }
.live-map-popup .live-map-route-alert {
  margin-top: 0.15rem;
  padding: 0.28rem 0.38rem;
  border-radius: 0.35rem;
  color: #b94700;
  background: #fff0e6;
  font-weight: 700;
}
.live-map-popup a { margin-top: 0.3rem; color: var(--whoosh-blue); font-size: 0.68rem; font-weight: 700; }

@media (max-width: 767.98px) {
  .live-monitoring-toolbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .live-monitoring-map {
    height: 22rem;
  }
}

/* Driver assignment modal */
.client-driver-assignment-summary {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(150px, 0.8fr));
    gap: 10px;
}

.client-driver-assignment-summary > div {
    min-width: 0;
    padding: 11px 12px;
    border: 1px solid var(--app-border, #dce7ed);
    border-radius: 12px;
    background: #f7fafc;
}

.client-driver-assignment-summary small,
.client-driver-assignment-summary strong {
    display: block;
}

.client-driver-assignment-summary small {
    margin-bottom: 3px;
    color: #6b8290;
}

.client-driver-assignment-summary strong {
    overflow: hidden;
    color: #123a55;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.client-driver-assignment-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.client-driver-assignment-option {
    display: grid;
    grid-template-columns: auto 42px minmax(0, 1fr);
    gap: 10px;
    align-items: center;
    min-width: 0;
    padding: 12px;
    border: 1px solid #dce7ed;
    border-radius: 14px;
    background: #fff;
    cursor: pointer;
    transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}

.client-driver-assignment-option:hover,
.client-driver-assignment-option.is-selected {
    border-color: #0b7fbd;
    background: #f2f9fd;
    box-shadow: 0 8px 22px rgba(8, 82, 128, .08);
}

.client-driver-assignment-option[hidden] {
    display: none;
}

.client-driver-avatar {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border-radius: 13px;
    color: #07527f;
    background: #dff2fb;
    font-weight: 800;
}

.client-driver-copy,
.client-driver-copy strong,
.client-driver-copy small,
.client-driver-copy span {
    display: block;
    min-width: 0;
}

.client-driver-copy strong {
    overflow: hidden;
    color: #123a55;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.client-driver-copy small {
    color: #6b8290;
}

.client-driver-copy span {
    margin-top: 3px;
    color: #188468;
    font-size: .75rem;
    font-weight: 700;
}

@media (max-width: 767.98px) {
    .client-driver-assignment-summary,
    .client-driver-assignment-grid {
        grid-template-columns: 1fr;
    }
}

.dashboard-route {
  display: flex;
  max-width: 19rem;
  align-items: center;
  gap: 0.4rem;
}

.dashboard-route span {
  max-width: 8.5rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dashboard-route .bi {
  flex: 0 0 auto;
  color: var(--whoosh-orange);
  font-size: 0.7rem;
}

.dashboard-driver-name {
  margin-right: 0.25rem;
  white-space: nowrap;
}

.whoosh-empty-state {
  display: flex;
  min-height: 12rem;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 0.25rem;
  color: var(--whoosh-muted);
}

.whoosh-empty-state > span {
  display: inline-flex;
  width: 3.5rem;
  height: 3.5rem;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.35rem;
  border-radius: 50%;
  color: var(--whoosh-orange-dark);
  background: var(--whoosh-orange-soft);
  font-size: 1.35rem;
}

.whoosh-empty-state strong {
  color: var(--whoosh-ink);
  font-size: 0.88rem;
}

.whoosh-empty-state small {
  font-size: 0.72rem;
}

.dispatch-pipeline {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.dispatch-pipeline-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.7rem;
  border: 1px solid #e5edf1;
  border-radius: 0.55rem;
  color: inherit !important;
  background: #fbfdfe;
  text-decoration: none;
  transition: border-color 0.18s ease, background-color 0.18s ease;
}

.dispatch-pipeline-item:hover {
  border-color: #c7e1ef;
  background: var(--whoosh-blue-soft);
  transform: none;
}

.pipeline-icon {
  display: inline-flex;
  width: 2.35rem;
  height: 2.35rem;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  border-radius: 0.65rem;
  color: var(--whoosh-blue);
  background: var(--whoosh-blue-soft);
  font-size: 0.9rem;
}

.dispatch-pipeline-item:nth-child(even) .pipeline-icon {
  color: var(--whoosh-orange-dark);
  background: var(--whoosh-orange-soft);
}

.dispatch-pipeline-item:nth-child(even):hover {
  border-color: #f2c5a8;
  background: #fff8f3;
}

.pipeline-copy {
  display: flex;
  min-width: 0;
  flex: 1 1 auto;
  flex-direction: column;
}

.pipeline-copy strong {
  color: #31536a;
  font-size: 0.78rem;
}

.pipeline-copy small {
  color: #8a9da9;
  font-size: 0.66rem;
}

.pipeline-count {
  min-width: 2rem;
  color: var(--whoosh-navy);
  font-size: 1.05rem;
  font-weight: 700;
  text-align: center;
}

.attendance-summary {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.attendance-rate {
  display: flex;
  width: 8rem;
  height: 8rem;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  flex-direction: column;
  border: 0.55rem solid var(--whoosh-blue-soft);
  border-top-color: var(--whoosh-orange);
  border-radius: 50%;
  background: #fff;
}

.attendance-rate strong {
  color: var(--whoosh-blue-dark);
  font-size: 1.55rem;
  line-height: 1.2;
}

.attendance-rate span {
  color: var(--whoosh-muted);
  font-size: 0.64rem;
}

.attendance-progress-copy {
  flex: 1 1 auto;
  font-size: 0.78rem;
}

.attendance-progress-copy .progress {
  height: 0.55rem;
  border-radius: 999px;
  background: #eaf1f4;
}

.attendance-progress-copy .progress-bar {
  border-radius: 999px;
  background: linear-gradient(90deg, var(--whoosh-blue), #23a6d5);
}

.quick-access-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
}

.quick-access-grid a {
  display: flex;
  min-height: 5.4rem;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.5rem;
  flex-direction: column;
  padding: 0.85rem;
  border: 1px solid #e1ebf0;
  border-radius: 0.55rem;
  color: #3b6077 !important;
  background: #f9fcfd;
  font-size: 0.78rem;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.18s ease, border-color 0.18s ease, background-color 0.18s ease;
}

.quick-access-grid a:hover {
  color: var(--whoosh-blue) !important;
  border-color: #badbea;
  background: var(--whoosh-blue-soft);
  transform: none;
}

.quick-access-grid .bi {
  color: var(--whoosh-orange);
  font-size: 1.2rem;
}

.service-mix-list {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.service-mix-list-dashboard {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.service-mix-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.75rem 0.8rem;
  border: 1px solid #e3edf2;
  min-width: 0;
  border-radius: 0.55rem;
  color: inherit !important;
  background: #fbfdfe;
  text-decoration: none;
}

.service-mix-item:hover {
  border-color: #f2c5a8;
  background: var(--whoosh-orange-soft);
}

.service-mix-item strong {
  flex: 0 0 auto;
  color: var(--whoosh-navy);
  font-size: 1.1rem;
}

.live-location-summary {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.live-location-summary > span {
  display: inline-flex;
  width: 2.8rem;
  height: 2.8rem;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  border-radius: 0.75rem;
  color: #fff;
  background: linear-gradient(135deg, var(--whoosh-blue), #23a6d5);
  font-size: 1.1rem;
}

.live-location-summary div {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 0.15rem;
}

.live-location-summary strong {
  color: var(--whoosh-ink);
  font-size: 0.84rem;
}

.live-location-summary small {
  color: var(--whoosh-muted);
  font-size: 0.7rem;
}

/* Tables with dense operational data */
.dispatch-active-table {
  min-width: 1260px;
  table-layout: auto;
}

.dispatch-active-table :is(th, td) {
  vertical-align: middle;
}

.dispatch-col-number,
.dispatch-number-cell {
  width: 3.75rem;
  min-width: 3.75rem;
  max-width: 3.75rem;
  text-align: center;
  white-space: nowrap !important;
  overflow-wrap: normal;
  word-break: keep-all;
}

.dispatch-col-client,
.dispatch-client-cell {
  width: 14rem;
  min-width: 14rem;
  white-space: nowrap !important;
  overflow-wrap: normal;
  word-break: keep-all;
}

.dispatch-client-primary,
.dispatch-client-reference {
  display: inline;
  white-space: nowrap;
}

.dispatch-client-reference {
  margin-left: 0.3rem;
}

.dispatch-col-driver,
.dispatch-driver-cell {
  min-width: 10rem;
}

body.whoosh-theme .dispatch-active-table .dispatch-col-code,
body.whoosh-theme .dispatch-active-table .dispatch-code-cell {
  width: 12rem;
  min-width: 12rem;
  max-width: none;
  white-space: nowrap !important;
  overflow-wrap: normal;
  word-break: keep-all;
}

.dispatch-code-text {
  display: inline-block;
  min-width: max-content;
  white-space: nowrap;
  overflow-wrap: normal;
  word-break: keep-all;
}

.dispatch-col-service,
.dispatch-service-cell {
  min-width: 7.5rem;
  text-align: center;
}

.dispatch-col-file,
.dispatch-file-cell {
  min-width: 8rem;
}

.dispatch-col-route,
.dispatch-route-cell {
  min-width: 10.5rem;
}

.dispatch-col-date,
.dispatch-date-cell {
  min-width: 8.5rem;
  text-align: center;
}

.dispatch-col-status,
.dispatch-status-cell {
  min-width: 8rem;
  text-align: center;
}

.dispatch-col-created,
.dispatch-created-cell {
  min-width: 6.5rem;
  text-align: center;
}

.dispatch-col-actions,
.dispatch-action-cell {
  min-width: 12rem;
  width: 12rem;
  text-align: center;
}

.dispatch-date-cell,
.dispatch-created-cell {
  white-space: nowrap;
}

.dispatch-file-link {
  min-width: 5rem;
}

/* Web notification center */
.whoosh-notification-toggle {
  position: relative;
}

.web-notification-badge {
  position: absolute;
  top: 0.15rem;
  right: 0.05rem;
  display: inline-flex;
  min-width: 1.05rem;
  height: 1.05rem;
  align-items: center;
  justify-content: center;
  padding: 0 0.25rem;
  color: #fff;
  font-size: 0.55rem;
  font-weight: 800;
  line-height: 1;
  background: var(--whoosh-orange);
  border: 2px solid #fff;
  border-radius: 999px;
}

.whoosh-notification-menu {
  width: min(25rem, calc(100vw - 1rem));
  overflow: hidden;
  padding: 0;
  border: 1px solid var(--whoosh-border);
  border-radius: 0.9rem;
  box-shadow: 0 0.75rem 2rem rgba(18, 58, 85, 0.14);
}

.whoosh-notification-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--whoosh-border);
}

.whoosh-notification-header > div {
  display: grid;
  gap: 0.1rem;
}

.whoosh-notification-header strong {
  color: var(--whoosh-ink);
  font-size: 0.85rem;
}

.whoosh-notification-header small {
  color: var(--whoosh-muted);
  font-size: 0.65rem;
}

.whoosh-notification-header form {
  margin: 0;
}

.whoosh-notification-header button {
  padding: 0;
  color: var(--whoosh-blue);
  font-size: 0.65rem;
  font-weight: 700;
  background: transparent;
  border: 0;
}

.whoosh-notification-dropdown-list {
  max-height: 24rem;
  overflow-y: auto;
}

.whoosh-notification-dropdown-item {
  margin: 0;
  border-bottom: 1px solid rgba(224, 231, 235, 0.72);
}

.whoosh-notification-dropdown-item.is-unread {
  background: rgba(8, 116, 185, 0.045);
  box-shadow: inset 0.2rem 0 0 var(--whoosh-blue);
}

.whoosh-notification-dropdown-item > button {
  display: grid;
  width: 100%;
  grid-template-columns: 2.1rem minmax(0, 1fr);
  align-items: start;
  gap: 0.65rem;
  padding: 0.8rem 0.9rem;
  color: inherit;
  text-align: left;
  background: transparent;
  border: 0;
}

.whoosh-notification-dropdown-item > button:hover {
  background: rgba(8, 116, 185, 0.055);
}

.whoosh-notification-dropdown-item > button > span:last-child {
  display: grid;
  min-width: 0;
  gap: 0.15rem;
}

.whoosh-notification-dropdown-item strong {
  color: var(--whoosh-ink);
  font-size: 0.73rem;
}

.whoosh-notification-dropdown-item small {
  display: -webkit-box;
  overflow: hidden;
  color: var(--whoosh-muted);
  font-size: 0.65rem;
  line-height: 1.4;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.whoosh-notification-dropdown-item time {
  color: #8da0ac;
  font-size: 0.58rem;
}

.web-notification-icon {
  display: inline-flex;
  width: 2.1rem;
  height: 2.1rem;
  flex: 0 0 2.1rem;
  align-items: center;
  justify-content: center;
  color: var(--whoosh-blue);
  background: var(--whoosh-blue-soft);
  border-radius: 0.7rem;
}

.web-notification-icon.tone-success {
  color: #138a55;
  background: #e9f8f0;
}

.web-notification-icon.tone-warning {
  color: #a96700;
  background: #fff5dc;
}

.web-notification-icon.tone-danger {
  color: #c83b42;
  background: #fff0f1;
}

.web-notification-icon.tone-info {
  color: var(--whoosh-orange-dark);
  background: var(--whoosh-orange-soft);
}

.whoosh-notification-empty {
  display: grid;
  place-items: center;
  gap: 0.35rem;
  min-height: 8rem;
  padding: 1rem;
  color: var(--whoosh-muted);
  font-size: 0.7rem;
}

.whoosh-notification-empty i {
  color: var(--whoosh-blue);
  font-size: 1.25rem;
}

.whoosh-notification-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.75rem;
  color: var(--whoosh-blue);
  font-size: 0.68rem;
  font-weight: 700;
  text-decoration: none;
  background: var(--whoosh-canvas);
}

/* Corporate client order workflow */
.client-order-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.client-order-summary-card {
  display: flex;
  min-height: 5.5rem;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.1rem;
  color: var(--whoosh-ink);
  text-decoration: none;
  background: #fff;
  border: 1px solid var(--whoosh-border);
  border-radius: 0.9rem;
  box-shadow: var(--whoosh-shadow);
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.client-order-summary-card:hover {
  color: var(--whoosh-ink);
  border-color: rgba(8, 116, 185, 0.32);
  transform: translateY(-1px);
}

.client-order-summary-card strong {
  color: var(--whoosh-blue);
  font-size: 1.55rem;
}

.client-order-table {
  min-width: 1040px;
}

.client-order-table th,
.client-order-table td {
  vertical-align: middle;
}

.client-order-route {
  display: grid;
  min-width: 14rem;
  gap: 0.3rem;
}

.client-order-route span {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 0.45rem;
  color: var(--whoosh-ink);
  font-size: 0.78rem;
}

.client-order-route span:first-child i {
  color: var(--whoosh-blue);
}

.client-order-route span:last-child i {
  color: var(--whoosh-orange);
}

.client-order-form-card {
  overflow: hidden;
}

.client-order-form-section {
  margin-bottom: 1.75rem;
  padding-bottom: 1.75rem;
  border-bottom: 1px solid var(--whoosh-border);
}

.client-order-form-section:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.client-order-form-heading {
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
  margin-bottom: 1rem;
}

.client-order-form-heading > span {
  display: inline-flex;
  width: 2rem;
  height: 2rem;
  flex: 0 0 2rem;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 0.7rem;
  font-weight: 800;
  background: var(--whoosh-blue);
  border-radius: 0.65rem;
}

.client-order-form-heading h5 {
  margin: 0;
  color: var(--whoosh-ink);
  font-size: 0.94rem;
}

.client-order-form-heading p {
  margin: 0.2rem 0 0;
  color: var(--whoosh-muted);
  font-size: 0.75rem;
}

.client-order-form-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.client-order-detail-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
}

.client-order-detail-grid > div {
  display: grid;
  align-content: start;
  gap: 0.2rem;
  min-width: 0;
  padding: 0.85rem;
  background: var(--whoosh-canvas);
  border: 1px solid var(--whoosh-border);
  border-radius: 0.75rem;
}

.client-order-detail-grid small,
.client-order-route-detail article small,
.client-order-notes small {
  color: var(--whoosh-muted);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.client-order-detail-grid strong {
  color: var(--whoosh-ink);
  font-size: 0.82rem;
  overflow-wrap: anywhere;
}

.client-order-route-detail {
  display: grid;
  gap: 0.75rem;
}

.client-order-route-detail article {
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
  padding: 1rem;
  background: #fff;
  border: 1px solid var(--whoosh-border);
  border-radius: 0.85rem;
}

.client-order-route-detail article > div {
  display: grid;
  min-width: 0;
  gap: 0.25rem;
}

.client-order-route-detail h5 {
  margin: 0;
  color: var(--whoosh-ink);
  font-size: 0.9rem;
}

.client-order-route-detail p {
  margin: 0;
  color: var(--whoosh-muted);
  font-size: 0.78rem;
}

.client-order-route-detail article span:not(.route-icon),
.client-order-route-detail article a {
  font-size: 0.75rem;
}

.route-icon {
  display: inline-flex;
  width: 2.2rem;
  height: 2.2rem;
  flex: 0 0 2.2rem;
  align-items: center;
  justify-content: center;
  border-radius: 0.7rem;
}

.route-icon.pickup {
  color: var(--whoosh-blue);
  background: rgba(8, 116, 185, 0.1);
}

.route-icon.dropoff {
  color: var(--whoosh-orange);
  background: rgba(255, 107, 0, 0.11);
}

.client-order-notes {
  padding: 1rem;
  background: rgba(255, 107, 0, 0.06);
  border-left: 3px solid var(--whoosh-orange);
  border-radius: 0.25rem 0.75rem 0.75rem 0.25rem;
}

.client-order-notes p {
  color: var(--whoosh-ink);
  font-size: 0.8rem;
}

.client-order-action-card {
  border-top: 3px solid var(--whoosh-orange);
}

.client-order-converted-icon {
  display: inline-flex;
  width: 3.5rem;
  height: 3.5rem;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.75rem;
  color: #fff;
  font-size: 1.5rem;
  background: var(--whoosh-blue);
  border-radius: 1rem;
}

.client-order-timeline {
  display: grid;
  gap: 0;
}

.client-order-timeline > div {
  position: relative;
  display: grid;
  grid-template-columns: 0.8rem minmax(0, 1fr);
  gap: 0.65rem;
  padding-bottom: 1rem;
}

.client-order-timeline > div:not(:last-child)::before {
  position: absolute;
  top: 0.7rem;
  bottom: -0.15rem;
  left: 0.31rem;
  width: 2px;
  content: "";
  background: rgba(8, 116, 185, 0.16);
}

.client-order-timeline > div > span {
  position: relative;
  z-index: 1;
  width: 0.7rem;
  height: 0.7rem;
  margin-top: 0.18rem;
  background: var(--whoosh-blue);
  border: 2px solid #fff;
  border-radius: 50%;
  box-shadow: 0 0 0 2px rgba(8, 116, 185, 0.17);
}

.client-order-timeline article {
  display: grid;
  gap: 0.18rem;
}

.client-order-timeline strong {
  color: var(--whoosh-ink);
  font-size: 0.78rem;
}

.client-order-timeline small {
  color: var(--whoosh-muted);
  font-size: 0.68rem;
}

.client-order-timeline p {
  margin: 0.15rem 0 0;
  color: var(--whoosh-muted);
  font-size: 0.72rem;
}

@media (max-width: 991.98px) {
  .client-order-summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .client-order-detail-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 575.98px) {
  .whoosh-notification-menu {
    position: fixed !important;
    top: 3.8rem !important;
    right: 0.5rem !important;
    left: 0.5rem !important;
    width: auto;
    transform: none !important;
  }

  .client-order-summary-grid,
  .client-order-detail-grid {
    grid-template-columns: 1fr;
  }

  .client-order-form-actions {
    align-items: stretch;
    flex-direction: column-reverse;
  }

  .client-order-form-actions > div,
  .client-order-form-actions .btn {
    width: 100%;
  }
}

#driverAttendanceTable,
#driverTetapTable,
#driverFreelanceTable,
#partnerTable { min-width: 760px; }
#assignment-table { min-width: 440px; }

.dispatch-actions,
.dispatch-driver-list {
  min-width: 0;
}

.dispatch-actions {
  display: grid;
  width: 100%;
  max-width: 12rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
  gap: 0.35rem;
}

.dispatch-actions form {
  display: flex;
  width: 100%;
  min-width: 0;
  max-width: 100%;
}

.dispatch-actions > a,
.dispatch-actions form .btn {
  display: inline-flex;
  width: 100%;
  min-height: 2.05rem;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.32rem 0.45rem;
  font-size: 0.7rem;
  line-height: 1.2;
  text-align: center;
}

.dispatch-actions form .btn {
  height: 100%;
}

.dispatch-actions > :last-child:nth-child(odd) {
  grid-column: 1 / -1;
}

.dispatch-stage-card {
  border-top: 3px solid var(--whoosh-orange);
}

.dispatch-stage-summary {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 1.5rem;
}

.dispatch-stage-copy {
  min-width: 0;
}

.dispatch-stage-heading {
  display: flex;
  min-width: 0;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem;
}

.dispatch-stage-heading h3 {
  margin: 0;
  color: var(--whoosh-ink);
  font-size: 1.05rem;
  font-weight: 700;
}

.dispatch-stage-copy p {
  margin: 0.4rem 0 0;
  color: var(--whoosh-muted);
  font-size: 0.78rem;
}

.dispatch-stage-actions {
  display: flex;
  min-width: 0;
  flex: 0 1 auto;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.5rem;
}

.dispatch-stage-actions form,
.dispatch-stage-actions .btn {
  min-width: 0;
}

.dispatch-stage-actions .btn {
  display: inline-flex;
  min-height: 2.15rem;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
}

.dispatch-driver-list {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.dispatch-driver-name,
.dispatch-action-cell {
  overflow-wrap: anywhere;
}

body.whoosh-theme .card-header .card-tools,
body.whoosh-theme .card-header .card-tools form,
body.whoosh-theme .card-header > .btn,
body.whoosh-theme .card-header > a,
body.whoosh-theme .card-header > .badge {
  max-width: 100%;
}

body.whoosh-theme .table .badge,
body.whoosh-theme .table .btn {
  max-width: 100%;
}

.attendance-progress-copy > .d-flex {
  flex-wrap: wrap;
}

/* Footer */
body.whoosh-theme .app-footer {
  min-height: 3.6rem;
  padding: 0.95rem 1.5rem;
  color: #718694;
  background: #fff;
  border-top: 1px solid rgba(18, 58, 85, 0.08);
  font-size: 0.76rem;
}

.whoosh-footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

body.whoosh-theme .app-footer strong {
  color: var(--whoosh-blue);
}

.whoosh-footer-tagline {
  color: #8a9da9;
}

.whoosh-footer-tagline .bi {
  margin-right: 0.25rem;
  color: var(--whoosh-orange);
}

/* Login */
body.whoosh-login-page {
  display: flex;
  width: 100%;
  min-height: 100vh;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  overflow-x: hidden;
  background: var(--whoosh-canvas);
}

.login-page .login-box {
  width: min(1040px, calc(100vw - 3rem));
  max-width: 100%;
  margin: auto;
}

.login-shell {
  display: grid;
  width: 100%;
  max-width: 100%;
  min-height: 36rem;
  overflow: hidden;
  grid-template-columns: 1.06fr 0.94fr;
  border: 1px solid rgba(18, 58, 85, 0.1);
  border-radius: 0.9rem;
  background: #fff;
  box-shadow: 0 0.45rem 1.5rem rgba(18, 58, 85, 0.1);
}

.login-brand-panel {
  position: relative;
  display: flex;
  overflow: hidden;
  justify-content: space-between;
  flex-direction: column;
  padding: 3rem;
  color: #fff;
  background:
    radial-gradient(circle at 82% 18%, rgba(255, 131, 61, 0.42), transparent 12rem),
    linear-gradient(145deg, #07527f 0%, #0874b9 62%, #0b83c5 100%);
}

.login-brand-panel::before,
.login-brand-panel::after {
  content: "";
  position: absolute;
  width: 18rem;
  height: 18rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 50%;
}

.login-brand-panel::before { top: -7rem; right: -6rem; }
.login-brand-panel::after { right: 4rem; bottom: -12rem; }

.login-brand-lockup,
.login-brand-message,
.login-brand-footer {
  position: relative;
  z-index: 2;
}

.login-brand-lockup {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.login-brand-mark {
  width: 3.5rem;
  height: 3.5rem;
  flex: 0 0 auto;
  border-radius: 50%;
  filter: drop-shadow(0 0.7rem 1rem rgba(0, 0, 0, 0.18));
}

.login-brand-wordmark-image {
  display: block;
  width: 16rem;
  height: 5rem;
  border-radius: 0.75rem;
  background: #fff;
  object-fit: cover;
  object-position: center;
  box-shadow: 0 0.7rem 1.4rem rgba(0, 0, 0, 0.16);
}

.login-brand-wordmark {
  display: flex;
  align-items: baseline;
  gap: 0.35rem;
  color: #fff;
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: 0;
}

.login-brand-wordmark .brand-accent {
  color: #ff9a5d;
}

.login-brand-lockup small {
  display: block;
  margin-top: 0.2rem;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.66rem;
  letter-spacing: 0;
  text-transform: uppercase;
}

.login-brand-message {
  max-width: 27rem;
  margin: auto 0;
}

.login-brand-message .login-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 1rem;
  color: #ffd1b5;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: uppercase;
}

.login-brand-message h1 {
  margin-bottom: 0.8rem;
  color: #fff;
  font-size: clamp(1.8rem, 4vw, 2.75rem);
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.12;
}

.login-brand-message p {
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.9rem;
  line-height: 1.75;
}

.login-brand-footer {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.7rem;
}

.login-brand-footer .bi {
  color: #ff9a5d;
}

.login-form-panel {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: center;
  padding: 3rem;
  background: #fff;
}

.login-form-wrap {
  width: 100%;
  max-width: 22rem;
  min-width: 0;
}

.login-form-panel :is(form, .input-group, .form-control) {
  min-width: 0;
  max-width: 100%;
}

.login-mobile-brand {
  display: none;
}

.login-mobile-wordmark-image {
  display: block;
  width: 12rem;
  height: 3.6rem;
  border-radius: 0.6rem;
  background: #fff;
  object-fit: cover;
  object-position: center;
}

.login-form-header {
  margin-bottom: 2rem;
}

.login-form-header span {
  display: block;
  margin-bottom: 0.45rem;
  color: var(--whoosh-orange-dark);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

.login-form-header h2 {
  margin-bottom: 0.5rem;
  color: var(--whoosh-navy);
  font-size: 1.65rem;
  font-weight: 700;
  letter-spacing: 0;
}

.login-form-header p {
  margin: 0;
  color: var(--whoosh-muted);
  font-size: 0.82rem;
  line-height: 1.6;
}

.login-form-panel .form-label {
  font-size: 0.82rem;
}

.login-form-panel .input-group-text {
  min-width: 2.8rem;
  justify-content: center;
}

.login-submit {
  min-height: 2.75rem;
  margin-top: 0.4rem;
}

.login-meta {
  padding-top: 1.25rem;
  border-top: 1px solid #e7eef2;
  color: #8a9da9;
  font-size: 0.72rem;
  line-height: 1.6;
  text-align: center;
}

/* DataTables */
body.whoosh-theme .dataTables_wrapper .dataTables_length,
body.whoosh-theme .dataTables_wrapper .dataTables_filter,
body.whoosh-theme .dataTables_wrapper .dataTables_info,
body.whoosh-theme .dataTables_wrapper .dataTables_paginate {
  max-width: 100%;
  padding: 0.45rem 0.55rem;
  color: var(--whoosh-muted);
  font-size: 0.74rem;
}

body.whoosh-theme .dataTables_wrapper .row > * {
  min-width: 0;
}

body.whoosh-theme .dataTables_wrapper :is(input, select) {
  max-width: 100%;
  min-height: 2rem;
  font-size: 0.75rem;
}

body.whoosh-theme .dataTables_wrapper .dataTables_length select {
  width: auto;
  min-width: 4.25rem;
  padding-top: 0.25rem;
  padding-bottom: 0.25rem;
}

body.whoosh-theme .dataTables_wrapper .dataTables_filter input {
  width: min(12rem, 100%);
  margin-left: 0.35rem;
  padding: 0.3rem 0.5rem;
}

body.whoosh-theme .dataTables_wrapper .pagination,
body.whoosh-theme .pagination {
  flex-wrap: wrap;
  align-items: center;
  gap: 0.18rem;
}

body.whoosh-theme .page-link {
  display: inline-flex;
  min-width: 1.85rem;
  min-height: 1.85rem;
  align-items: center;
  justify-content: center;
  padding: 0.25rem 0.42rem;
  color: var(--whoosh-blue);
  border-color: #dce7ed;
  border-radius: 0.38rem !important;
  font-size: 0.68rem;
  line-height: 1;
  white-space: nowrap;
}

body.whoosh-theme .page-item.disabled .page-link {
  color: #9aabb5;
  background: #f7f9fa;
}

body.whoosh-theme .active > .page-link,
body.whoosh-theme .page-link.active {
  background: var(--whoosh-blue);
  border-color: var(--whoosh-blue);
}

@media (max-width: 991.98px) {
  body.whoosh-theme .app-content-header .container-fluid,
  body.whoosh-theme .app-content .container-fluid {
    padding-right: 1rem;
    padding-left: 1rem;
  }

  .whoosh-hero-content {
    width: 75%;
    padding: 1.4rem;
  }

  .whoosh-hero-visual {
    min-width: 12rem;
  }

  .whoosh-hero-visual > .bi-truck {
    right: 1.5rem;
    font-size: 4rem;
  }

  .login-shell {
    min-height: 34rem;
    grid-template-columns: 0.9fr 1.1fr;
  }

  .login-brand-panel,
  .login-form-panel {
    padding: 2.25rem;
  }

  .service-mix-list-dashboard {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767.98px) {
  body.whoosh-theme .app-header .container-fluid {
    padding-right: 0.7rem;
    padding-left: 0.55rem;
  }

  body.whoosh-theme .app-header .nav-link {
    padding-right: 0.6rem;
    padding-left: 0.6rem;
  }

  .whoosh-user-chevron {
    display: none;
  }

  body.whoosh-theme .app-content-header {
    padding-top: 1.1rem;
  }

  body.whoosh-theme .card-header > .card-tools {
    width: 100%;
    margin-left: 0;
  }

  body.whoosh-theme .card-header > .card-tools .btn {
    flex: 1 1 auto;
  }

  .dispatch-stage-summary {
    align-items: stretch;
    flex-direction: column;
  }

  .dispatch-stage-actions {
    width: 100%;
    justify-content: flex-start;
  }

  .dispatch-stage-actions form {
    flex: 1 1 12rem;
  }

  .dispatch-stage-actions .btn {
    width: 100%;
  }

  .whoosh-dashboard-hero {
    min-height: auto;
  }

  .whoosh-hero-content {
    width: 100%;
  }

  .whoosh-hero-visual {
    display: none;
  }

  .attendance-summary {
    align-items: flex-start;
    flex-direction: column;
  }

  .attendance-rate {
    width: 6.5rem;
    height: 6.5rem;
  }

  body.whoosh-login-page {
    padding: 0.85rem;
  }

  .login-page .login-box {
    width: calc(100vw - 1.7rem);
  }

  .login-shell {
    display: block;
    min-height: 0;
  }

  .login-brand-panel {
    display: none;
  }

  .login-form-panel {
    min-height: 35rem;
    padding: 2rem clamp(1.25rem, 6vw, 2rem);
  }

  .login-mobile-brand {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    margin-bottom: 2rem;
  }

  .login-mobile-brand img.login-mobile-wordmark-image {
    width: 12rem;
    height: 3.6rem;
  }

  .login-mobile-brand .login-brand-wordmark {
    color: var(--whoosh-blue-dark);
    font-size: 1.1rem;
  }

  .login-mobile-brand .brand-accent {
    color: var(--whoosh-orange);
  }
}

@media (max-width: 575.98px) {
  body.whoosh-theme .app-content-header .container-fluid,
  body.whoosh-theme .app-content .container-fluid {
    padding-right: 0.75rem;
    padding-left: 0.75rem;
  }

  body.whoosh-theme .app-content-header h3,
  body.whoosh-theme .app-content-header .h3 {
    font-size: 1.3rem;
  }

  body.whoosh-theme .app-content-header .breadcrumb.float-sm-end {
    float: none !important;
    margin-top: 0.65rem;
  }

  .whoosh-hero-content {
    padding: 1.2rem;
  }

  .whoosh-hero-content h1 {
    font-size: 1.6rem;
  }

  .whoosh-stat-card {
    min-height: 7rem;
  }

  body.whoosh-theme .card-body,
  body.whoosh-theme .card-footer {
    padding: 0.85rem;
  }

  .quick-access-grid {
    grid-template-columns: 1fr;
  }

  .service-mix-list-dashboard {
    grid-template-columns: 1fr;
  }

  .quick-access-grid a {
    min-height: 4rem;
    align-items: center;
    justify-content: flex-start;
    flex-direction: row;
  }

  .whoosh-footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .whoosh-footer-tagline {
    display: none;
  }

  .login-form-panel {
    min-height: auto;
    padding: 1.5rem 1.2rem;
  }

  .login-mobile-brand {
    margin-bottom: 1.5rem;
  }

  .login-form-header {
    margin-bottom: 1.5rem;
  }

  .login-form-header h2 {
    font-size: 1.45rem;
  }

  .login-meta {
    font-size: 0.67rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

/* Corporate team access */
.client-team-summary {
  display: flex;
  gap: 0.55rem;
  flex-wrap: wrap;
}

.client-team-summary span {
  display: inline-flex;
  align-items: baseline;
  gap: 0.35rem;
  padding: 0.5rem 0.75rem;
  border: 1px solid rgba(8, 116, 185, 0.14);
  border-radius: 0.75rem;
  color: var(--whoosh-blue-dark);
  background: #fff;
  font-size: 0.78rem;
}

.client-team-summary strong {
  font-size: 1rem;
}

.client-team-card-icon,
.client-role-icon {
  display: inline-grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  flex: 0 0 auto;
  border-radius: 0.7rem;
  color: var(--whoosh-orange);
  background: rgba(255, 102, 16, 0.1);
}

.client-verified-domains > span {
  display: block;
  margin-bottom: 0.4rem;
  color: var(--whoosh-muted);
  font-size: 0.74rem;
}

.client-verified-domains > div {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.client-role-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.7rem;
}

.client-role-grid > div {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  padding: 0.75rem;
  border: 1px solid rgba(8, 116, 185, 0.1);
  border-radius: 0.8rem;
  background: rgba(8, 116, 185, 0.025);
}

.client-role-grid strong,
.client-role-grid small {
  display: block;
}

.client-role-grid strong {
  color: var(--whoosh-blue-dark);
  font-size: 0.82rem;
}

.client-role-grid small {
  margin-top: 0.18rem;
  color: var(--whoosh-muted);
  font-size: 0.72rem;
  line-height: 1.45;
}

.client-member-role-form {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  min-width: 13rem;
}

.client-member-role-form .form-select {
  min-width: 7.6rem;
}

.client-team-table th {
  white-space: nowrap;
}

.client-team-table td:last-child {
  white-space: nowrap;
}

.client-invitation-result {
  border: 0;
  border-left: 0.25rem solid var(--whoosh-orange);
}

/* The invitation page intentionally has no third-party assets. */
.staff-invitation-page {
  min-height: 100vh;
  margin: 0;
  color: #17384b;
  background:
    radial-gradient(circle at 10% 10%, rgba(8, 116, 185, 0.13), transparent 35rem),
    #f4f8fb;
  font-family: Inter, "Segoe UI", Arial, sans-serif;
}

.staff-invitation-shell {
  display: grid;
  grid-template-columns: minmax(18rem, 0.85fr) minmax(22rem, 1.15fr);
  width: min(62rem, calc(100% - 2rem));
  min-height: 38rem;
  margin: 4rem auto;
  overflow: hidden;
  border: 1px solid rgba(8, 116, 185, 0.1);
  border-radius: 1.4rem;
  background: #fff;
  box-shadow: 0 1.5rem 4rem rgba(14, 64, 90, 0.12);
}

.staff-invitation-brand {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(2rem, 5vw, 4rem);
  color: #fff;
  background: linear-gradient(145deg, #075f99, #083c5a);
}

.staff-invitation-brand img {
  width: 4.5rem;
  height: 4.5rem;
  margin-bottom: 2rem;
  border-radius: 1rem;
  object-fit: cover;
  background: #fff;
}

.staff-invitation-brand > span,
.staff-invitation-eyebrow {
  color: #ff8a3d;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.staff-invitation-brand h1 {
  max-width: 22rem;
  margin: 0.65rem 0;
  font-size: clamp(1.8rem, 4vw, 2.7rem);
  line-height: 1.08;
}

.staff-invitation-brand p {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.88rem;
  line-height: 1.6;
}

.staff-invitation-brand > div {
  display: grid;
  gap: 0.25rem;
  margin-top: 2rem;
  padding: 0.85rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 0.8rem;
  background: rgba(255, 255, 255, 0.06);
}

.staff-invitation-brand small {
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.7rem;
  line-height: 1.5;
}

.staff-invitation-form-panel {
  display: grid;
  place-items: center;
  padding: clamp(2rem, 6vw, 4.5rem);
}

.staff-invitation-form {
  width: min(100%, 27rem);
}

.staff-invitation-form h2 {
  margin: 0.5rem 0;
  color: #123c54;
  font-size: 1.75rem;
}

.staff-invitation-form > p {
  margin: 0 0 1.4rem;
  color: #657d8b;
  font-size: 0.84rem;
  line-height: 1.6;
}

.staff-invitation-role {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.2rem;
  padding: 0.75rem 0.85rem;
  border-radius: 0.75rem;
  color: #075f99;
  background: rgba(8, 116, 185, 0.08);
  font-size: 0.78rem;
}

.staff-invitation-form form {
  display: grid;
  gap: 0.45rem;
}

.staff-invitation-form label {
  margin-top: 0.5rem;
  color: #234b61;
  font-size: 0.75rem;
  font-weight: 700;
}

.staff-invitation-form input {
  box-sizing: border-box;
  width: 100%;
  min-height: 2.65rem;
  padding: 0.65rem 0.75rem;
  border: 1px solid #cfdae0;
  border-radius: 0.6rem;
  color: #17384b;
  font: inherit;
  font-size: 0.85rem;
  outline: none;
}

.staff-invitation-form input:focus {
  border-color: #0874b9;
  box-shadow: 0 0 0 0.18rem rgba(8, 116, 185, 0.1);
}

.staff-invitation-form form small {
  color: #78909c;
  font-size: 0.67rem;
}

.staff-invitation-form button,
.staff-invitation-form > a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  margin-top: 1rem;
  border: 0;
  border-radius: 0.65rem;
  color: #fff;
  background: #0874b9;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}

.staff-invitation-expiry {
  margin-top: 1rem !important;
  text-align: center;
  font-size: 0.68rem !important;
}

.staff-invitation-error-icon {
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  margin-bottom: 1rem;
  border-radius: 50%;
  color: #fff;
  background: #e45a32;
  font-size: 1.5rem;
  font-weight: 800;
}

@media (max-width: 767.98px) {
  .client-role-grid {
    grid-template-columns: 1fr;
  }

  .staff-invitation-shell {
    grid-template-columns: 1fr;
    margin: 1rem auto;
  }

  .staff-invitation-brand {
    padding: 2rem;
  }

  .staff-invitation-brand img {
    width: 3.5rem;
    height: 3.5rem;
    margin-bottom: 1rem;
  }

  .staff-invitation-brand h1 {
    font-size: 1.8rem;
  }

  .staff-invitation-brand > div {
    display: none;
  }

  .staff-invitation-form-panel {
    padding: 2rem 1.25rem;
  }
}
.rate-card-route-cell {
    min-width: 250px;
}

.rate-card-route-cell strong,
.rate-card-route-cell small {
    display: block;
}

.rate-calculator-card {
    border-top: 3px solid var(--whoosh-orange, #ff6b00);
}

.rate-calculator-settings {
    padding: 1rem;
    border: 1px solid rgba(8, 116, 185, 0.14);
    border-radius: 0.9rem;
    background: rgba(8, 116, 185, 0.035);
}

.rate-calculator-results {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.75rem;
}

.rate-result-card {
    min-width: 0;
    padding: 0.95rem 1rem;
    border: 1px solid rgba(16, 54, 75, 0.12);
    border-radius: 0.85rem;
    background: #fff;
}

.rate-result-card small,
.rate-result-card strong {
    display: block;
}

.rate-result-card small {
    margin-bottom: 0.3rem;
    color: #647786;
}

.rate-result-card strong {
    color: #163f55;
    font-size: 1rem;
    overflow-wrap: anywhere;
}

.rate-result-card-primary {
    border-color: rgba(8, 116, 185, 0.24);
    background: rgba(8, 116, 185, 0.07);
}

.rate-result-card-orange {
    border-color: rgba(255, 107, 0, 0.28);
    background: rgba(255, 107, 0, 0.09);
}

@media (max-width: 991.98px) {
    .rate-calculator-results {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 575.98px) {
    .rate-calculator-results {
        grid-template-columns: 1fr;
    }
}

.client-rate-preview-section {
    border: 1px solid rgba(255, 107, 0, 0.2);
    border-radius: 1rem;
    background: linear-gradient(145deg, rgba(255, 107, 0, 0.045), #fff 62%);
}

.client-rate-preview-section .client-order-form-heading > span {
    color: #fff;
    background: var(--whoosh-orange, #ff6b00);
}

.client-rate-preview-shell {
    min-width: 0;
}

.client-rate-preview-result {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.95rem 1rem;
    border: 1px solid rgba(8, 116, 185, 0.14);
    border-radius: 0.9rem;
    background: rgba(8, 116, 185, 0.045);
    transition: border-color 160ms ease, background 160ms ease;
}

.client-rate-preview-icon {
    display: grid;
    flex: 0 0 2.6rem;
    width: 2.6rem;
    height: 2.6rem;
    place-items: center;
    border-radius: 0.75rem;
    color: #0874b9;
    background: rgba(8, 116, 185, 0.12);
}

.client-rate-preview-result > div,
.client-rate-preview-result small,
.client-rate-preview-result strong,
.client-rate-preview-result p {
    min-width: 0;
}

.client-rate-preview-result small,
.client-rate-preview-result strong,
.client-rate-preview-result p {
    display: block;
}

.client-rate-preview-result strong {
    margin: 0.12rem 0;
    color: #123f58;
    font-size: 1.15rem;
}

.client-rate-preview-result p {
    color: #657987;
    font-size: 0.76rem;
}

.client-rate-preview-result.is-ready {
    border-color: rgba(255, 107, 0, 0.32);
    background: rgba(255, 107, 0, 0.075);
}

.client-rate-preview-result.is-ready .client-rate-preview-icon {
    color: #fff;
    background: var(--whoosh-orange, #ff6b00);
}

.client-rate-preview-result.is-error {
    border-color: rgba(220, 53, 69, 0.28);
    background: rgba(220, 53, 69, 0.06);
}

.client-rate-preview-result.is-loading {
    opacity: 0.72;
}

.client-order-price-estimate {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(15rem, 0.7fr);
    gap: 1rem;
    padding: 1rem;
    border: 1px solid rgba(255, 107, 0, 0.24);
    border-radius: 0.95rem;
    background: linear-gradient(145deg, rgba(255, 107, 0, 0.065), rgba(8, 116, 185, 0.035));
}

.client-order-price-estimate-copy small,
.client-order-price-estimate-copy strong,
.client-order-price-estimate-copy p {
    display: block;
}

.client-order-price-estimate-copy small {
    margin-top: 0.65rem;
    color: #5d7482;
}

.client-order-price-estimate-copy strong {
    margin: 0.12rem 0 0.25rem;
    color: #123f58;
    font-size: 1.45rem;
}

.client-order-price-estimate-copy p {
    margin: 0;
    color: #6b7f8b;
    font-size: 0.76rem;
}

.client-order-price-estimate dl {
    display: grid;
    gap: 0.5rem;
    margin: 0;
}

.client-order-price-estimate dl > div {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding-bottom: 0.45rem;
    border-bottom: 1px solid rgba(18, 63, 88, 0.08);
}

.client-order-price-estimate dt,
.client-order-price-estimate dd {
    margin: 0;
    font-size: 0.76rem;
}

.client-order-price-estimate dt {
    color: #6b7f8b;
    font-weight: 500;
}

.client-order-price-estimate dd {
    color: #123f58;
    font-weight: 700;
    text-align: right;
}

@media (max-width: 767.98px) {
    .client-order-price-estimate {
        grid-template-columns: 1fr;
    }
}

.client-order-quotation {
    overflow: hidden;
    border: 1px solid rgba(8, 116, 185, 0.18);
    border-radius: 1rem;
    background: #fff;
}

.client-order-quotation-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem;
    background: linear-gradient(135deg, rgba(8, 116, 185, 0.08), rgba(255, 107, 0, 0.055));
}

.client-order-quotation-header h5 {
    margin: 0.55rem 0 0;
    color: #123f58;
}

.client-order-quotation-header h5 small {
    display: block;
    margin-top: 0.18rem;
    color: #6c7f8b;
    font-size: 0.72rem;
    font-weight: 600;
}

.client-order-quotation-header > strong {
    color: #0874b9;
    font-size: 1.4rem;
    white-space: nowrap;
}

.client-order-quotation .table-responsive {
    padding: 0 1rem;
}

.client-order-quotation-meta {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.75rem;
    padding: 1rem;
    border-top: 1px solid rgba(18, 63, 88, 0.08);
}

.client-order-quotation-meta span,
.client-order-quotation-meta small,
.client-order-quotation-meta strong {
    display: block;
}

.client-order-quotation-meta span {
    padding: 0.7rem;
    border-radius: 0.7rem;
    background: rgba(8, 116, 185, 0.04);
}

.client-order-quotation-meta small {
    color: #6c7f8b;
    font-size: 0.69rem;
}

.client-order-quotation-meta strong {
    margin-top: 0.18rem;
    color: #123f58;
    font-size: 0.82rem;
}

.client-order-quotation-terms {
    margin: 0 1rem 1rem;
    padding: 0.8rem;
    border-radius: 0.75rem;
    background: #f8fafb;
}

.client-order-quotation-terms small {
    color: #6c7f8b;
    font-weight: 700;
}

.client-order-quotation-terms p {
    margin: 0.25rem 0 0;
    color: #405d6d;
    font-size: 0.78rem;
}

.quotation-editor-card {
    border-top: 3px solid var(--whoosh-orange, #ff6b00);
}

.quotation-editor-total {
    color: #0874b9;
    font-size: 1.2rem;
}

.quotation-items-table .form-control,
.quotation-items-table .form-select,
.quotation-items-table .input-group-text {
    min-height: 2.15rem;
}

.rate-agreement-table {
    font-size: 0.82rem;
}

.rate-agreement-table th,
.rate-agreement-table td {
    padding: 0.55rem 0.65rem;
    vertical-align: middle;
}

.rate-agreement-table td:first-child {
    min-width: 260px;
    white-space: normal;
}

.rate-agreement-table .input-group {
    min-width: 160px;
}

@media (max-width: 767.98px) {
    .client-order-quotation-header {
        align-items: stretch;
        flex-direction: column;
    }

    .client-order-quotation-meta {
        grid-template-columns: 1fr;
    }
}

/* Expanded monitoring: controls remain available in full screen. */
.live-monitoring-map { height: clamp(26rem, 62vh, 46rem); }
.live-monitoring-toolbar { flex-wrap: wrap; }
.live-monitoring-map-shell:fullscreen,
.live-monitoring-map-shell.is-fullscreen {
  display: flex; flex-direction: column; margin: 0; border: 0;
  border-radius: 0; width: 100%; height: 100dvh; background: #eef5f8;
}
.live-monitoring-map-shell.is-fullscreen { position: fixed; inset: 0; z-index: 1080; }
.live-monitoring-map-shell:fullscreen .live-monitoring-map,
.live-monitoring-map-shell.is-fullscreen .live-monitoring-map { flex: 1; min-height: 0; height: auto; }
.live-monitoring-map-shell:fullscreen .live-monitoring-toolbar,
.live-monitoring-map-shell.is-fullscreen .live-monitoring-toolbar { flex-shrink: 0; }
.live-map-popup a { display: block; margin-top: .6rem; padding: .5rem .65rem;
  border: 1px solid #0874b9; border-radius: .45rem; font-weight: 600; text-align: center; }
.live-vehicle-marker-wrap { cursor: pointer; }
@media(max-width: 575px) { .live-monitoring-map { height: 60vh; min-height: 24rem; } }
