/* ==========================================
   HYPERROUTE / FLEET MANAGER UI
========================================== */

:root {

  --bg: #f8fafc;
  --card: #ffffff;

  --text: #0f172a;
  --muted: #64748b;

  --primary: #2563eb;
  --primary-hover: #1d4ed8;

  --success: #10b981;
  --warning: #f59e0b;
  --danger: #ef4444;

  --border: #e2e8f0;

  --radius: 14px;

  --shadow:
    0 1px 3px rgba(0,0,0,.05),
    0 10px 25px rgba(0,0,0,.05);

  --sidebar-width: 220px;
}

/* ==========================================
   RESET
========================================== */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  min-height: 100vh;
}

body {
  display: flex;
  background: var(--bg);
  font-family:
    Inter,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    sans-serif;
  color: var(--text);
}

/* ==========================================
   SIDEBAR
========================================== */

.sidebar {

  width: var(--sidebar-width);
  min-width: var(--sidebar-width);

  background: white;

  border-right: 1px solid var(--border);

  padding: 24px;

  position: sticky;
  top: 0;

  height: 100vh;

  overflow-y: auto;
}

.sidebar h2 {

  font-size: 30px;
  font-weight: 700;

  margin-bottom: 30px;
}

.sidebar a {

  display: flex;

  align-items: center;

  padding: 12px 14px;

  margin-bottom: 8px;

  border-radius: 10px;

  color: #475569;

  text-decoration: none;

  transition: .2s ease;
}

.sidebar a:hover {

  background: #eff6ff;

  color: var(--primary);
}

/* ==========================================
   MAIN
========================================== */

.main {

  flex: 1;

  padding: 30px;

  overflow-x: hidden;
}

main {
  max-width: 1400px;
}

/* ==========================================
   PAGE HEADER
========================================== */

.page-header {

  display: flex;

  justify-content: space-between;

  align-items: center;

  margin-bottom: 24px;
}

.page-header h1 {

  font-size: 42px;

  font-weight: 700;
}

/* ==========================================
   CARD
========================================== */

.card,
.details-card {

  background: var(--card);

  border-radius: 20px;

  padding: 30px;

  border: 1px solid var(--border);

  box-shadow: var(--shadow);
}

/* ==========================================
   FORM
========================================== */

.form {

  display: grid;

  grid-template-columns: repeat(2, minmax(0, 1fr));

  gap: 22px;
}

.field {

  display: flex;

  flex-direction: column;
}

.field label {

  font-size: 14px;

  font-weight: 600;

  color: var(--muted);

  margin-bottom: 8px;
}

.field input,
.field select,
.field textarea {

  width: 100%;

  padding: 14px 16px;

  border: 1px solid var(--border);

  border-radius: 10px;

  background: white;

  font-size: 15px;

  transition: .2s ease;
}

.field input:focus,
.field select:focus,
.field textarea:focus {

  outline: none;

  border-color: var(--primary);

  box-shadow:
    0 0 0 4px rgba(37,99,235,.12);
}

/* ==========================================
   BUTTONS
========================================== */

.btn {

  grid-column: span 2;

  width: 220px;

  height: 48px;

  border: none;

  border-radius: 10px;

  background: var(--primary);

  color: white;

  font-size: 15px;

  font-weight: 600;

  cursor: pointer;

  transition: .2s ease;
}

.btn:hover {

  background: var(--primary-hover);

  transform: translateY(-1px);
}

/* ==========================================
   KPI GRID
========================================== */

.kpi-grid {

  display: grid;

  grid-template-columns:
      repeat(auto-fit,minmax(220px,1fr));

  gap: 20px;

  margin-bottom: 24px;
}

.kpi-card {

  background: white;

  padding: 24px;

  border-radius: 16px;

  border: 1px solid var(--border);

  box-shadow: var(--shadow);
}

.kpi-card h3 {

  font-size: 38px;

  margin-bottom: 4px;
}

.kpi-card p {

  color: var(--muted);
}

.kpi-card.success {
  border-top: 4px solid var(--success);
}

.kpi-card.warning {
  border-top: 4px solid var(--danger);
}

.kpi-card.caution {
  border-top: 4px solid var(--warning);
}

/* ==========================================
   TABLES
========================================== */

table {

  width: 100%;

  border-collapse: collapse;

  background: white;

  border-radius: 16px;

  overflow: hidden;

  box-shadow: var(--shadow);
}

thead {

  background: #f8fafc;
}

th {

  text-align: left;

  padding: 16px;

  font-size: 13px;

  text-transform: uppercase;

  color: var(--muted);
}

td {

  padding: 16px;

  border-top: 1px solid var(--border);
}

tbody tr:hover {

  background: #fafcff;
}

/* ==========================================
   DRIVER CARDS
========================================== */

.list {

  list-style: none;

  display: grid;

  gap: 16px;
}

.list li {

  background: white;

  padding: 20px;

  border-radius: 16px;

  border: 1px solid var(--border);

  box-shadow: var(--shadow);
}

.driver-row {

  display: flex;

  align-items: center;

  gap: 15px;
}

.avatar {

  width: 56px;

  height: 56px;

  border-radius: 50%;

  object-fit: cover;

  background: #e5e7eb;
}

/* ==========================================
   ACTION BUTTONS
========================================== */

.actions {

  margin-top: 15px;

  display: flex;

  gap: 10px;
}

.actions button,
.actions a {

  border: none;

  text-decoration: none;

  padding: 10px 14px;

  border-radius: 8px;

  cursor: pointer;
}

.view {
  background: var(--primary);
  color: white;
}

.delete {
  background: var(--danger);
  color: white;
}

/* ==========================================
   MESSAGE
========================================== */

.message {

  margin-top: 20px;

  font-weight: 600;

  color: var(--success);
}

/* ==========================================
   MOBILE
========================================== */

@media (max-width: 900px) {

  body {
    flex-direction: column;
  }

  .sidebar {

    width: 100%;

    min-width: 100%;

    height: auto;

    position: relative;
  }

  .main {
    padding: 20px;
  }

  .form {
    grid-template-columns: 1fr;
  }

  .btn {
    grid-column: span 1;
    width: 100%;
  }

  .page-header h1 {
    font-size: 32px;
  }
}
/* ==========================================
   PAGE LAYOUT
========================================== */

.layout {
  display: flex;
  min-height: 100vh;
}

.content {
  flex: 1;
  padding: 40px;
}

/* ==========================================
   HEADER
========================================== */

.page-header {
  margin-bottom: 30px;
}

.page-header h1 {
  font-size: 42px;
  font-weight: 700;
  margin-bottom: 8px;
}

.page-header p {
  color: #64748b;
  font-size: 15px;
}

/* ==========================================
   FORM
========================================== */

.form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  max-width: 950px;
}

.field {
  display: flex;
  flex-direction: column;
}

.field label {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 8px;
  color: #475569;
}

.field input {
  width: 100%;
  padding: 14px;
  border: 1px solid #dbe3ec;
  border-radius: 10px;
  font-size: 15px;
}

.field input:focus {
  outline: none;
  border-color: #2563eb;
  box-shadow: 0 0 0 4px rgba(37, 99, 235, .10);
}

.btn {
  grid-column: 1 / -1;
  width: 220px;
  height: 50px;
}

/* ==========================================
   CARD
========================================== */

.card {
  background: white;
  border-radius: 18px;
  padding: 30px;
  box-shadow:
    0 2px 10px rgba(0,0,0,.04);
}

/* ==========================================
   MOBILE
========================================== */

@media (max-width: 900px) {

  .layout {
    flex-direction: column;
  }

  .content {
    padding: 20px;
  }

  .form {
    grid-template-columns: 1fr;
  }

  .btn {
    width: 100%;
  }
}

/* ==========================================
   DISPATCH BOARD
========================================== */

.dispatch-toolbar {
  display: grid;
  grid-template-columns: minmax(160px, 220px) minmax(150px, 190px) minmax(220px, 1fr) auto;
  gap: 16px;
  align-items: end;
  margin-bottom: 22px;
  padding: 18px;
}

.dispatch-toolbar .btn {
  grid-column: auto;
  width: 140px;
}

.dispatch-kpis {
  margin-bottom: 18px;
}

.dispatch-board {
  display: grid;
  grid-template-columns: repeat(7, minmax(260px, 1fr));
  gap: 16px;
  overflow-x: auto;
  padding-bottom: 12px;
}

.dispatch-column {
  min-width: 260px;
  background: rgba(255, 255, 255, .72);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px;
}

.dispatch-column-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.dispatch-column-header h2 {
  font-size: 15px;
  line-height: 1.2;
}

.dispatch-column-header span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  height: 28px;
  border-radius: 999px;
  background: #e7f2ff;
  color: var(--primary);
  font-size: 13px;
  font-weight: 800;
}

.dispatch-card-list {
  display: grid;
  gap: 12px;
}

.dispatch-load-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: var(--shadow);
  padding: 14px;
}

.dispatch-load-card.at-risk {
  border-color: rgba(220, 38, 38, .36);
  box-shadow: 0 1px 2px rgba(15, 23, 42, .04), 0 10px 24px rgba(220, 38, 38, .1);
}

.dispatch-load-top {
  display: flex;
  gap: 10px;
  justify-content: space-between;
  margin-bottom: 10px;
}

.dispatch-load-top h3 {
  font-size: 16px;
  line-height: 1.2;
}

.dispatch-load-top p,
.empty-state {
  color: var(--muted);
  font-size: 13px;
}

.status-pill {
  align-self: flex-start;
  border-radius: 999px;
  background: #edf6ff;
  color: #075fa6;
  font-size: 12px;
  font-weight: 800;
  padding: 5px 8px;
  text-transform: capitalize;
  white-space: nowrap;
}

.dispatch-lane {
  color: #0b1220;
  font-size: 14px;
  font-weight: 750;
  line-height: 1.35;
  margin-bottom: 12px;
}

.dispatch-lane span {
  color: var(--muted);
  font-weight: 600;
}

.dispatch-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}

.dispatch-meta dt {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.dispatch-meta dd {
  color: #172033;
  font-size: 13px;
  line-height: 1.25;
  margin-top: 3px;
}

.dispatch-status-control {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  margin-bottom: 12px;
  text-transform: uppercase;
}

.dispatch-status-control select {
  border: 1px solid var(--border);
  border-radius: 8px;
  color: #0b1220;
  font-size: 14px;
  padding: 10px;
  text-transform: none;
}

.dispatch-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.dispatch-actions .view {
  border-radius: 8px;
  font-size: 13px;
  padding: 8px 10px;
}

@media (max-width: 1100px) {
  .dispatch-toolbar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 700px) {
  .dispatch-toolbar {
    grid-template-columns: 1fr;
  }

  .dispatch-toolbar .btn {
    width: 100%;
  }
}

/* ==========================================
   SETTLEMENTS
========================================== */

.settlement-kpis {
  margin-bottom: 22px;
}

#netProfit[readonly] {
  background: #eef5fb;
  color: #0b1220;
  font-weight: 800;
}

/* ==========================================
   COMPANY ADMIN
========================================== */

.company-admin-kpis {
  margin-bottom: 22px;
}

.company-admin-toolbar {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) auto;
  gap: 16px;
  align-items: end;
  margin-bottom: 22px;
}

.company-admin-toolbar .view {
  border: 0;
  cursor: pointer;
  height: 48px;
  padding: 0 16px;
}

.company-mode-text {
  color: var(--muted);
  font-size: 14px;
  margin: 6px 0 16px;
}

#companyUsersTableBody select {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px 10px;
  width: 100%;
}

/* ==========================================
   DOCUMENTS
========================================== */

.document-kpis {
  margin-bottom: 22px;
}

.document-notes {
  grid-column: 1 / -1;
}

.document-toolbar {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) minmax(180px, 240px);
  gap: 16px;
  margin: 24px 0;
}

#documentsTableBody .view,
#documentsTableBody .delete {
  border: 0;
  cursor: pointer;
  margin-right: 8px;
  padding: 9px 11px;
}

/* ==========================================
   QUOTES
========================================== */

.quote-kpis {
  margin-bottom: 22px;
}

.quotes-list-card {
  margin-top: 30px;
}

.table-select {
  min-width: 120px;
  height: 36px;
  padding: 0 10px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #ffffff;
  color: #0f172a;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
}

button:disabled,
.view:disabled {
  cursor: not-allowed;
  opacity: .55;
}

/* ==========================================
   MAINTENANCE AUTOMATION
========================================== */

.maintenance-kpis {
  margin-bottom: 22px;
}

.status-pill.success {
  background: #dcfce7;
  color: #166534;
}

.status-pill.caution {
  background: #fef3c7;
  color: #92400e;
}

.status-pill.warning {
  background: #fee2e2;
  color: #991b1b;
}

.notification-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 22px;
  margin-left: auto;
  padding: 0 6px;
  border-radius: 999px;
  background: #ef4444;
  color: #ffffff;
  font-size: 11px;
  font-weight: 900;
}

@media (max-width: 700px) {
  .company-admin-toolbar {
    grid-template-columns: 1fr;
  }

  .document-toolbar {
    grid-template-columns: 1fr;
  }
}

/* ==========================================
   COMPANY SETTINGS / INVOICES
========================================== */

.invoice-company-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 22px;
}

.invoice-company-header h2 {
  font-size: 28px;
  line-height: 1.1;
  margin-bottom: 8px;
}

.invoice-company-header p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.invoice-company-header img {
  display: none;
  max-width: 160px;
  max-height: 90px;
  object-fit: contain;
}

@media print {
  body {
    background: #ffffff;
    display: block;
  }

  .sidebar,
  .no-print,
  .invoiceUpdateForm,
  #invoiceUpdateForm,
  .back-link,
  .message {
    display: none !important;
  }

  .layout,
  .content {
    display: block;
    padding: 0;
  }

  .card,
  .details-card,
  .invoice-company-header {
    border: 0;
    box-shadow: none;
    padding: 0;
  }

  .invoice-company-header {
    border-bottom: 2px solid #0b1220;
    margin-bottom: 24px;
    padding-bottom: 18px;
  }
}

/* ==========================================
   DRIVER PORTAL
========================================== */

.driver-lookup {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto;
  gap: 16px;
  align-items: end;
  margin-bottom: 22px;
}

.driver-lookup .btn {
  grid-column: auto;
  width: 190px;
}

.driver-portal-kpis {
  margin-bottom: 18px;
}

.driver-loads-list {
  display: grid;
  gap: 18px;
}

.driver-load-card.at-risk {
  border-color: rgba(220, 38, 38, .36);
}

.driver-load-header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
}

.driver-load-header h2 {
  font-size: 22px;
  line-height: 1.15;
}

.driver-load-header p {
  color: var(--muted);
  margin-top: 4px;
}

.driver-load-meta {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.driver-status-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 14px 0;
}

.driver-status-actions button {
  border: 0;
  cursor: pointer;
  padding: 10px 12px;
}

.driver-checkcall-form,
.driver-pod-form {
  border-top: 1px solid var(--border);
  margin-top: 16px;
  padding-top: 16px;
}

@media (max-width: 800px) {
  .driver-lookup {
    grid-template-columns: 1fr;
  }

  .driver-lookup .btn {
    width: 100%;
  }

  .driver-load-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .driver-load-meta {
    grid-template-columns: 1fr;
  }
}

/* ==========================================
   REPORTS
========================================== */

.reports-toolbar {
  display: grid;
  grid-template-columns: minmax(160px, 220px) repeat(3, minmax(140px, 180px)) minmax(220px, 1fr) auto;
  gap: 16px;
  align-items: end;
  margin-bottom: 22px;
  padding: 18px;
}

.reports-toolbar .btn {
  grid-column: auto;
  width: 120px;
}

.reports-kpis {
  margin-bottom: 18px;
}

.report-table-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.report-table-header h2 {
  font-size: 24px;
  line-height: 1.1;
}

.report-table-header p {
  color: var(--muted);
  font-size: 14px;
}

@media (max-width: 1200px) {
  .reports-toolbar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 700px) {
  .reports-toolbar {
    grid-template-columns: 1fr;
  }

  .reports-toolbar .btn {
    width: 100%;
  }

  .support-toolbar {
    grid-template-columns: 1fr;
  }

  .notification-toolbar {
    grid-template-columns: 1fr;
  }

  .support-toolbar .btn,
  .notification-toolbar .btn {
    width: 100%;
  }

  .notification-item,
  .notification-main {
    flex-direction: column;
  }

  .notification-actions {
    justify-content: flex-start;
    width: 100%;
  }

  .report-table-header {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media print {
  .reports-toolbar,
  .quick-actions.no-print {
    display: none !important;
  }

  .reports-kpis {
    grid-template-columns: repeat(4, 1fr);
  }

  .report-table-header {
    border-bottom: 1px solid #d8e1ee;
    padding-bottom: 12px;
  }

  .data-table {
    font-size: 12px;
  }
}

/* ==========================================
   HYPERROUTE BRAND REFRESH
========================================== */

:root {
  --bg: #f4f7fb;
  --card: #ffffff;
  --text: #0b1220;
  --muted: #66758a;
  --primary: #0788e8;
  --primary-hover: #036fbe;
  --success: #12a36d;
  --warning: #d98a00;
  --danger: #dc2626;
  --border: #dbe6f2;
  --radius: 8px;
  --shadow: 0 1px 2px rgba(15, 23, 42, .04), 0 12px 28px rgba(15, 23, 42, .07);
  --sidebar-width: 248px;
}

body {
  background:
    linear-gradient(180deg, rgba(7, 136, 232, .06), rgba(7, 136, 232, 0) 180px),
    var(--bg);
  color: var(--text);
}

.sidebar {
  background:
    linear-gradient(180deg, #020713 0%, #061426 58%, #07101f 100%);
  border-right: 1px solid #112a45;
  box-shadow: 18px 0 38px rgba(2, 8, 23, .14);
  color: #f8fbff;
  padding: 22px 18px;
}

.sidebar .logo,
.sidebar h2.logo {
  display: block;
  margin: 0 0 24px;
  width: 100%;
  height: 92px;
  overflow: hidden;
  color: transparent;
  font-size: 0;
  line-height: 0;
}

.sidebar .logo::before,
.sidebar h2.logo::before {
  content: "";
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: 0;
  background: url("assets/hyperroute-logo-clean.png") center / contain no-repeat;
  box-shadow: none;
}

.sidebar a {
  border: 1px solid transparent;
  border-radius: 8px;
  color: #b8c6da;
  font-size: 14px;
  font-weight: 650;
  margin-bottom: 6px;
  padding: 11px 12px;
}

.sidebar a:hover,
.sidebar a.active {
  background: rgba(7, 136, 232, .13);
  border-color: rgba(98, 185, 255, .18);
  color: #ffffff;
}

.company-switcher {
  margin: 0 0 18px;
  padding: 12px;
  border: 1px solid rgba(98, 185, 255, .18);
  border-radius: 8px;
  background: rgba(255, 255, 255, .045);
}

.company-switcher label {
  display: block;
  margin-bottom: 7px;
  color: #8fa7c4;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.company-switcher select {
  width: 100%;
  min-height: 38px;
  border: 1px solid rgba(148, 163, 184, .28);
  border-radius: 8px;
  background: #07101f;
  color: #f8fbff;
  font-size: 13px;
  font-weight: 650;
  padding: 8px 10px;
}

.company-switcher-empty {
  color: #cbd5e1;
  font-size: 13px;
}

.role-hidden {
  display: none !important;
}

.logout-btn {
  width: 100%;
  min-height: 42px;
  margin-top: 18px;
  border: 0;
  border-radius: 8px;
  background: #dc2626;
  color: #ffffff;
  cursor: pointer;
  font-size: 14px;
  font-weight: 800;
  padding: 10px 12px;
}

.logout-btn:hover {
  background: #b91c1c;
}

.muted-line {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
}

.platform-users-table {
  margin-top: 22px;
}

.readiness-grid {
  display: grid;
  grid-template-columns: minmax(260px, .8fr) minmax(320px, 1.2fr);
  gap: 18px;
  margin: 22px 0;
}

.readiness-score-card h2 {
  margin: 8px 0 12px;
  font-size: 54px;
  line-height: 1;
}

.readiness-actions-card {
  display: grid;
  align-content: center;
  gap: 18px;
}

.readiness-mini-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.readiness-mini-grid div {
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #f8fafc;
}

.readiness-mini-grid strong,
.readiness-mini-grid span {
  display: block;
}

.readiness-mini-grid strong {
  color: #0f172a;
  font-size: 24px;
}

.readiness-mini-grid span,
.readiness-next span {
  color: var(--muted);
  font-size: 13px;
}

.readiness-next {
  padding: 14px;
  border-left: 4px solid var(--primary);
  border-radius: 8px;
  background: #f8fbff;
}

.readiness-next strong,
.readiness-next span {
  display: block;
}

.readiness-section {
  margin-top: 22px;
}

.readiness-dot {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 900;
}

.readiness-dot.pass {
  background: #dcfce7;
  color: #166534;
}

.readiness-dot.warning {
  background: #fef3c7;
  color: #92400e;
}

.readiness-dot.blocker,
.warning-count {
  background: #fee2e2;
  color: #991b1b;
}

.launch-revenue-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.launch-revenue-card {
  display: grid;
  gap: 5px;
  min-height: 118px;
  align-content: start;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #f8fafc;
}

.launch-revenue-card strong {
  color: #0b1220;
  font-size: 26px;
  line-height: 1.1;
}

.launch-revenue-card span {
  color: #1f2a3d;
  font-weight: 800;
}

.launch-revenue-card small {
  color: var(--muted);
  line-height: 1.4;
}

.compact-input {
  width: min(260px, 100%);
  min-height: 36px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 13px;
  padding: 8px 10px;
}

.subscription-stack {
  display: grid;
  gap: 8px;
  min-width: 190px;
}

.support-kpis {
  margin-bottom: 22px;
}

.notification-kpis {
  margin-bottom: 22px;
}

.support-toolbar,
.notification-toolbar {
  display: grid;
  grid-template-columns: minmax(180px, 240px) minmax(180px, 240px) auto;
  gap: 16px;
  align-items: end;
  margin-top: 24px;
}

.support-toolbar .btn,
.notification-toolbar .btn {
  grid-column: auto;
  width: 130px;
}

.alerts-toolbar {
  display: grid;
  grid-template-columns: minmax(160px, 220px) minmax(180px, 240px) minmax(220px, 1fr);
  gap: 16px;
  align-items: end;
  margin-top: 24px;
}

.action-center-list {
  display: grid;
  gap: 12px;
}

.action-center-item {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding: 16px;
  border: 1px solid var(--border);
  border-left: 4px solid #cbd5e1;
  border-radius: 8px;
  background: #ffffff;
}

.action-center-item.critical {
  border-left-color: var(--danger);
  background: #fff8f8;
}

.action-center-item.warning {
  border-left-color: #f59e0b;
  background: #fffbeb;
}

.action-center-item h3 {
  margin: 8px 0 4px;
  font-size: 16px;
}

.action-center-item p {
  margin: 0 0 6px;
  color: var(--muted);
  line-height: 1.45;
}

.action-center-item small {
  color: #64748b;
  font-size: 12px;
}

.legal-page {
  max-width: 920px;
}

.legal-page h2 {
  margin: 22px 0 8px;
  font-size: 18px;
}

.legal-page p {
  color: var(--muted);
  line-height: 1.65;
}

.sidebar nav a.utility-link {
  font-size: 12px;
  opacity: .78;
}

.qa-checklist-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.qa-checklist-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #ffffff;
}

.qa-checklist-item input {
  width: 18px;
  height: 18px;
  margin-top: 2px;
}

.qa-checklist-item strong,
.qa-checklist-item small {
  display: block;
}

.qa-checklist-item small {
  margin-top: 4px;
  color: var(--muted);
  line-height: 1.4;
}

.demo-readiness-list {
  grid-column: 1 / -1;
  margin-top: 18px;
}

.rate-confirmation-document {
  max-width: 980px;
}

.rate-confirmation-header,
.rate-confirmation-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 18px;
  margin-bottom: 18px;
}

.rate-confirmation-header h2,
.rate-confirmation-grid h3,
.rate-confirmation-terms h3 {
  margin-top: 0;
}

.rate-confirmation-terms {
  line-height: 1.6;
}

.signature-grid {
  display: grid;
  grid-template-columns: 1fr 180px;
  gap: 20px;
  margin-top: 34px;
}

.signature-grid span {
  border-top: 1px solid #111827;
  padding-top: 8px;
}

@media print {
  .no-print,
  .sidebar {
    display: none !important;
  }

  .layout,
  .content {
    display: block;
    margin: 0;
    padding: 0;
  }

  .card {
    box-shadow: none;
    border: 0;
  }
}

.notification-list {
  display: grid;
  gap: 12px;
}

.notification-item {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding: 16px;
  border: 1px solid var(--border);
  border-left: 4px solid #cbd5e1;
  border-radius: 8px;
  background: #ffffff;
}

.notification-item.unread {
  border-left-color: var(--primary);
  background: #f8fbff;
}

.notification-main {
  display: flex;
  gap: 14px;
  min-width: 0;
}

.notification-main h2 {
  margin: 0 0 4px;
  font-size: 16px;
}

.notification-main p {
  margin: 0 0 6px;
  color: var(--muted);
  line-height: 1.45;
}

.notification-main small {
  color: #64748b;
  font-size: 12px;
}

.notification-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.support-conversation-panel {
  margin-top: 22px;
  border-top: 1px solid var(--border);
  padding-top: 22px;
}

.support-message-list {
  display: grid;
  gap: 12px;
  margin: 18px 0;
}

.support-message {
  display: grid;
  gap: 8px;
  padding: 14px;
  border: 1px solid var(--border);
  border-left: 4px solid var(--primary);
  border-radius: 8px;
  background: #f8fafc;
}

.support-message.internal {
  border-left-color: #f59e0b;
  background: #fffbeb;
}

.support-message div {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.support-message strong {
  color: #0b1220;
}

.support-message small,
.support-message p {
  color: var(--muted);
}

.support-message p {
  margin: 0;
  line-height: 1.5;
}

.support-reply-form {
  display: grid;
  gap: 14px;
}

.hidden {
  display: none !important;
}

textarea {
  min-height: 120px;
  resize: vertical;
}

.platform-company-list {
  display: grid;
  gap: 14px;
  width: 100%;
  min-width: 0;
}

.lifecycle-pipeline-grid {
  margin: 14px 0 18px;
}

.platform-company-card {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  align-items: stretch;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 8px 20px rgba(15, 23, 42, .05);
  min-width: 0;
}

.platform-company-main {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.platform-company-main strong {
  color: #0b1220;
  font-size: 15px;
  overflow-wrap: anywhere;
}

.platform-company-controls {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
}

.platform-company-field {
  display: grid;
  gap: 5px;
}

.platform-company-field span,
.platform-company-stat span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
  text-transform: uppercase;
}

.platform-company-field select {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  padding: 9px 10px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #ffffff;
  color: #0f172a;
  font-size: 13px;
}

.platform-company-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(95px, 1fr));
  gap: 8px;
}

.platform-company-stat {
  display: grid;
  gap: 4px;
  padding: 9px;
  border: 1px solid #eef2f7;
  border-radius: 8px;
  background: #f8fafc;
}

.platform-company-stat strong {
  color: #0b1220;
  font-size: 13px;
  overflow-wrap: anywhere;
}

.platform-company-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  justify-content: flex-start;
}

.platform-company-actions .view,
.platform-company-actions .delete {
  min-width: 92px;
  white-space: nowrap;
}

.auth-page {
  display: block;
  background: #f8fafc;
}

.signup-page {
  display: block;
  min-height: 100vh;
  background:
    linear-gradient(108deg, #020617 0%, #07111f 42%, #f8fafc 42%, #eef4fb 100%);
}

.login-page {
  display: block;
  min-height: 100vh;
  background:
    linear-gradient(108deg, #020617 0%, #07111f 58%, #f8fafc 58%, #eef4fb 100%);
}

.login-shell {
  display: grid;
  grid-template-columns: minmax(500px, 1fr) minmax(360px, .76fr);
  gap: 32px;
  align-items: center;
  width: min(1180px, calc(100% - 40px));
  min-height: 100vh;
  margin: 0 auto;
  padding: 36px 0;
}

.login-brand-panel {
  display: grid;
  align-content: center;
  gap: 26px;
  color: #ffffff;
  max-width: 720px;
  padding-right: 80px;
}

.login-logo {
  width: min(340px, 78vw);
  height: auto;
  object-fit: contain;
}

.login-brand-panel h1 {
  max-width: 620px;
  margin: 8px 0 12px;
  color: #ffffff;
  font-size: 48px;
  line-height: 1.04;
}

.login-brand-panel p {
  max-width: 580px;
  color: #cbd5e1;
  font-size: 17px;
  line-height: 1.6;
}

.login-proof-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  max-width: 560px;
}

.login-proof-grid span {
  display: grid;
  place-items: center;
  min-height: 42px;
  padding: 9px 10px;
  border: 1px solid rgba(148, 163, 184, .42);
  border-radius: 8px;
  background: rgba(2, 6, 23, .86);
  color: #ffffff;
  font-size: 13px;
  font-weight: 800;
  text-align: center;
  line-height: 1.25;
}

.login-card {
  display: grid;
  gap: 22px;
  width: 100%;
  padding: 34px;
  border: 1px solid rgba(226, 232, 240, .9);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 24px 70px rgba(15, 23, 42, .18);
}

.login-heading h2 {
  margin: 5px 0 8px;
  color: #0b1220;
  font-size: 32px;
}

.login-heading p {
  color: var(--muted);
}

.login-form {
  display: grid;
  gap: 16px;
}

.login-form .btn {
  width: 100%;
  margin-top: 4px;
}

.login-form .btn:disabled {
  cursor: not-allowed;
  opacity: .68;
}

.signup-shell {
  display: grid;
  grid-template-columns: minmax(320px, .62fr) minmax(560px, 1fr);
  gap: 32px;
  align-items: center;
  width: min(1280px, calc(100% - 40px));
  min-height: 100vh;
  margin: 0 auto;
  padding: 36px 0;
}

.signup-brand-panel {
  display: grid;
  align-content: center;
  gap: 26px;
  color: #ffffff;
  max-width: 520px;
  padding-right: 28px;
}

.signup-brand-panel h1 {
  margin: 8px 0 12px;
  color: #ffffff;
  font-size: 42px;
  line-height: 1.06;
}

.signup-brand-panel p {
  color: #cbd5e1;
  font-size: 16px;
  line-height: 1.6;
}

.signup-panel {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: var(--shadow);
  padding: 28px;
}

.signup-heading {
  margin-bottom: 22px;
}

.signup-heading h1 {
  font-size: 34px;
  line-height: 1.1;
  margin: 6px 0 8px;
}

.signup-heading p,
.auth-switch {
  color: var(--muted);
}

.auth-switch {
  margin-top: 18px;
  font-size: 14px;
}

.auth-switch a {
  color: var(--primary);
  font-weight: 800;
  text-decoration: none;
}

.signup-form .field:first-child {
  grid-column: 1 / -1;
}

.signup-form .btn {
  margin-top: 4px;
}

.signup-form .btn:disabled {
  cursor: not-allowed;
  opacity: .68;
}

.plan-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.plan-option {
  display: grid;
  gap: 6px;
  min-height: 92px;
  border: 1px solid var(--border);
  border-radius: 8px;
  cursor: pointer;
  padding: 14px;
}

.plan-option input {
  width: auto;
}

.plan-option span {
  color: #334155;
  font-weight: 800;
}

.plan-option strong {
  color: #0b1220;
  font-size: 18px;
}

.plan-option.selected {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(7, 136, 232, .12);
}

@media (max-width: 900px) {
  .login-page {
    background: #f8fafc;
  }

  .signup-page {
    background: #f8fafc;
  }

  .login-shell {
    grid-template-columns: 1fr;
    align-content: start;
    min-height: auto;
    padding: 24px 0;
  }

  .login-brand-panel {
    padding: 24px;
    border-radius: 8px;
    background: #020617;
  }

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

  .login-proof-grid {
    grid-template-columns: 1fr;
    max-width: none;
  }

  .login-card {
    padding: 24px;
  }

  .signup-shell {
    grid-template-columns: 1fr;
    align-content: start;
    min-height: auto;
    padding: 24px 0;
  }

  .signup-brand-panel {
    max-width: none;
    padding: 24px;
    border-radius: 8px;
    background: #020617;
  }

  .signup-brand-panel h1 {
    font-size: 32px;
  }

  .plan-grid {
    grid-template-columns: 1fr;
  }

  .signup-form {
    grid-template-columns: 1fr;
  }
}

.onboarding-summary {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(220px, .8fr);
  gap: 18px;
  align-items: center;
}

.onboarding-focus {
  margin-top: 22px;
}

.onboarding-launch-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.launch-phase-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 4px 12px;
  align-items: center;
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 10px 24px rgba(15, 23, 42, .06);
}

.launch-phase-card span {
  grid-row: span 2;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: #e0f2fe;
  color: #0369a1;
  font-weight: 900;
}

.launch-phase-card strong {
  color: #0b1220;
  font-size: 15px;
}

.launch-phase-card small {
  color: var(--muted);
  font-weight: 750;
}

.launch-phase-card.complete {
  border-left: 4px solid var(--success);
}

.launch-phase-card.attention {
  border-left: 4px solid var(--warning);
}

.onboarding-progress-track {
  width: 100%;
  height: 12px;
  overflow: hidden;
  border-radius: 8px;
  background: #e2e8f0;
}

.onboarding-progress-bar {
  width: 0;
  height: 100%;
  border-radius: 8px;
  background: linear-gradient(90deg, #0788e8, #10b981);
  transition: width .25s ease;
}

.onboarding-next {
  display: inline-flex;
  width: fit-content;
  margin: 10px 0 0;
  padding: 8px 10px;
  border-radius: 8px;
  background: #eef6ff;
  color: #075985;
  font-size: 13px;
  font-weight: 800;
}

.onboarding-list {
  display: grid;
  gap: 12px;
  margin-top: 24px;
}

.onboarding-item {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr) 150px;
  gap: 18px;
  align-items: center;
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 10px 24px rgba(15, 23, 42, .06);
}

.onboarding-item.complete {
  border-left: 4px solid var(--success);
}

.onboarding-item.attention {
  border-left: 4px solid var(--warning);
}

.onboarding-status {
  width: fit-content;
  border-radius: 8px;
  background: #f1f5f9;
  color: #334155;
  font-size: 13px;
  font-weight: 800;
  padding: 8px 10px;
}

.onboarding-item.complete .onboarding-status {
  background: #dcfce7;
  color: #166534;
}

.onboarding-item.attention .onboarding-status {
  background: #fef3c7;
  color: #92400e;
}

.onboarding-phase {
  margin-top: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
}

.onboarding-copy h2 {
  margin: 0 0 4px;
  font-size: 18px;
}

.onboarding-copy p {
  margin: 0 0 6px;
  color: var(--muted);
}

.onboarding-copy span {
  color: #334155;
  font-size: 13px;
  font-weight: 650;
}

.onboarding-action {
  justify-content: center;
  text-align: center;
}

.quick-start-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.quick-start-card {
  display: grid;
  gap: 7px;
  min-height: 132px;
  align-content: start;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #f8fafc;
  color: inherit;
  text-decoration: none;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.quick-start-card:hover {
  transform: translateY(-1px);
  border-color: rgba(7, 136, 232, .45);
  box-shadow: 0 12px 22px rgba(15, 23, 42, .08);
}

.quick-start-card strong {
  color: #0b1220;
  font-size: 15px;
}

.quick-start-card span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.quick-start-card small {
  width: fit-content;
  margin-top: auto;
  padding: 6px 9px;
  border-radius: 8px;
  background: rgba(7, 136, 232, .10);
  color: #075f9f;
  font-size: 12px;
  font-weight: 850;
}

.customer-account-profile {
  display: grid;
  gap: 18px;
}

.customer-account-hero {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: stretch;
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #f8fafc;
}

.customer-account-hero h3 {
  margin: 4px 0 6px;
  color: #0b1220;
  font-size: 24px;
}

.customer-account-hero p {
  color: var(--muted);
}

.customer-launch-score {
  display: grid;
  min-width: 170px;
  align-content: center;
  justify-items: center;
  padding: 16px;
  border-radius: 8px;
  background: #ffffff;
  border: 1px solid var(--border);
}

.customer-launch-score strong {
  color: #0b1220;
  font-size: 36px;
  line-height: 1;
}

.customer-launch-score span {
  margin-top: 6px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  text-align: center;
}

.customer-launch-score.complete {
  border-left: 4px solid var(--success);
}

.customer-launch-score.attention {
  border-left: 4px solid var(--warning);
}

.customer-account-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
}

.customer-account-stat {
  display: grid;
  gap: 5px;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #ffffff;
}

.customer-account-stat span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
}

.customer-account-stat strong {
  color: #0b1220;
  font-size: 16px;
}

.customer-account-columns {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(260px, .8fr);
  gap: 18px;
}

.customer-account-columns article {
  display: grid;
  align-content: start;
  gap: 12px;
}

.customer-account-columns h3 {
  margin: 0;
  font-size: 18px;
}

.handoff-note-box {
  display: grid;
  gap: 10px;
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #f8fafc;
}

.handoff-form-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.handoff-note-box p {
  color: var(--muted);
}

.readiness-status {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 900;
}

.readiness-status.pass {
  background: #dcfce7;
  color: #166534;
}

.readiness-status.warning {
  background: #fef3c7;
  color: #92400e;
}

.readiness-status.blocker {
  background: #fee2e2;
  color: #991b1b;
}

.quick-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.demo-mode-banner,
.demo-admin-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 20px;
  border-left: 4px solid var(--primary);
  background:
    linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

.demo-mode-banner[hidden] {
  display: none;
}

.demo-mode-banner h2,
.demo-admin-panel h2 {
  margin: 4px 0 6px;
}

.demo-mode-banner p,
.demo-admin-panel p {
  color: var(--muted);
}

.demo-script-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.secondary-action {
  background: #f8fafc;
  color: #0f172a;
  border: 1px solid var(--border);
}

.dashboard-command-grid {
  display: grid;
  grid-template-columns: minmax(260px, .8fr) minmax(320px, 1.2fr);
  gap: 18px;
  margin-bottom: 20px;
}

.command-score-card h2 {
  margin: 8px 0 12px;
  font-size: 54px;
  line-height: 1;
}

.command-score-card p,
.command-panel p {
  color: var(--muted);
}

.health-meter {
  width: 100%;
  height: 12px;
  overflow: hidden;
  border-radius: 999px;
  background: #e2e8f0;
}

.health-meter span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #ef4444, #f59e0b, #10b981);
  transition: width .25s ease;
}

.command-panel {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.command-panel h2 {
  margin: 8px 0;
  font-size: 30px;
}

.mini-stat-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 18px;
}

.mini-stat-row span {
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #f8fafc;
  color: var(--muted);
  font-size: 13px;
}

.mini-stat-row strong {
  display: block;
  color: #0f172a;
  font-size: 20px;
}

.dashboard-kpis {
  margin-bottom: 20px;
}

.dashboard-two-column {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 20px;
}

.section-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.section-header h2 {
  margin: 4px 0 0;
}

.section-eyebrow {
  margin: 0;
  color: #0788e8;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.dashboard-list {
  display: grid;
  gap: 10px;
}

.dashboard-list-item {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  min-height: 58px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #ffffff;
  color: inherit;
  text-decoration: none;
}

.dashboard-list-item:hover {
  border-color: #93c5fd;
  background: #f8fbff;
}

.dashboard-list-item strong,
.dashboard-list-item small {
  display: block;
}

.dashboard-list-item small {
  margin-top: 3px;
  color: var(--muted);
}

.status-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: #fee2e2;
  color: #991b1b;
  font-weight: 900;
}

.quote-count {
  width: auto;
  min-width: 48px;
  padding: 0 8px;
  white-space: nowrap;
}

.activity-dot {
  justify-self: center;
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: #0788e8;
  box-shadow: 0 0 0 6px #e0f2fe;
}

.empty-state {
  padding: 18px;
  border: 1px dashed var(--border);
  border-radius: 8px;
  color: var(--muted);
  background: #f8fafc;
}

@media (max-width: 900px) {
  .onboarding-summary,
  .onboarding-item {
    grid-template-columns: 1fr;
  }

  .onboarding-launch-grid {
    grid-template-columns: 1fr;
  }

  .customer-account-hero,
  .customer-account-columns {
    grid-template-columns: 1fr;
    display: grid;
  }

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

  .platform-company-card {
    grid-template-columns: 1fr;
  }

  .platform-company-controls {
    grid-template-columns: 1fr;
  }

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

  .platform-company-actions {
    justify-content: flex-start;
  }

  .handoff-form-grid {
    grid-template-columns: 1fr;
  }

  .onboarding-action {
    width: 100%;
  }

  .dashboard-command-grid,
  .dashboard-two-column,
  .readiness-grid,
  .readiness-mini-grid,
  .launch-revenue-grid,
  .quick-start-grid,
  .mini-stat-row {
    grid-template-columns: 1fr;
  }

  .quick-actions {
    justify-content: flex-start;
  }

  .demo-mode-banner,
  .demo-admin-panel {
    align-items: flex-start;
    flex-direction: column;
  }

  .demo-script-actions {
    justify-content: flex-start;
  }
}

.main,
.content {
  padding: 32px;
}

main {
  width: 100%;
}

.page-header {
  gap: 16px;
}

.page-header h1 {
  color: #0b1220;
  font-size: clamp(28px, 3vw, 40px);
  line-height: 1.05;
}

.page-header p {
  color: var(--muted);
}

.card,
.details-card,
.kpi-card,
.list li {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.card,
.details-card {
  padding: 24px;
}

.kpi-card {
  background:
    linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
  padding: 20px;
}

.kpi-card h3 {
  color: #0b1220;
  font-size: 34px;
}

.kpi-card.success,
.kpi-card.warning,
.kpi-card.caution {
  border-top-width: 3px;
}

table {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

thead {
  background: #eef5fb;
}

th {
  color: #536276;
  letter-spacing: .04em;
}

td {
  color: #172033;
}

tbody tr:hover {
  background: #f4f9ff;
}

.field label {
  color: #536276;
}

.field input,
.field select,
.field textarea {
  border-color: var(--border);
  border-radius: 8px;
  color: #0b1220;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(7, 136, 232, .12);
}

.btn,
button,
.actions a,
.actions button {
  border-radius: 8px;
}

.btn,
.view {
  background: linear-gradient(180deg, #109cf4 0%, var(--primary) 100%);
  color: #ffffff;
  box-shadow: 0 10px 18px rgba(7, 136, 232, .18);
}

.btn:hover,
.view:hover {
  background: var(--primary-hover);
}

.delete {
  background: var(--danger);
  color: #ffffff;
}

.view,
.delete,
a.view,
button.view,
button.delete {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  border: 0;
  border-radius: 8px;
  color: #ffffff;
  cursor: pointer;
  font-size: 13px;
  font-weight: 800;
  line-height: 1;
  padding: 9px 12px;
  text-decoration: none;
  white-space: nowrap;
}

a.view:visited,
a.view:active,
a.view:focus,
a.view:hover {
  color: #ffffff;
  text-decoration: none;
}

.delete:hover,
button.delete:hover {
  background: #b91c1c;
}

td .view,
td .delete {
  margin: 2px 4px 2px 0;
  vertical-align: middle;
}

/* ==========================================
   CUSTOMER LOAD TRACKING
========================================== */

.tracking-page {
  display: block;
  min-height: 100vh;
  background:
    linear-gradient(180deg, #07111f 0, #07111f 280px, #f4f7fb 280px, #eef4fb 100%);
}

.tracking-shell {
  width: min(1080px, calc(100% - 32px));
  margin: 0 auto;
  padding: 34px 0 56px;
}

.tracking-header {
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr);
  gap: 24px;
  align-items: center;
  margin-bottom: 26px;
  color: #ffffff;
}

.tracking-brand-wrap {
  display: grid;
  gap: 10px;
}

.tracking-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 120px;
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(14, 165, 233, .20), rgba(2, 6, 23, .95)),
    #020713;
  border: 1px solid rgba(148, 163, 184, .24);
  box-shadow: 0 18px 44px rgba(2, 6, 23, .24);
}

.company-first-brand {
  color: #ffffff;
  font-size: 42px;
  font-weight: 900;
  letter-spacing: .02em;
}

.tracking-powered-pill {
  display: inline-flex;
  justify-content: center;
  width: 100%;
  padding: 8px 10px;
  border: 1px solid rgba(148, 163, 184, .28);
  border-radius: 8px;
  background: rgba(15, 23, 42, .62);
  color: #e2e8f0;
  font-size: 12px;
  font-weight: 850;
}

.tracking-brand img {
  max-width: 150px;
  max-height: 88px;
  object-fit: contain;
}

.tracking-kicker {
  margin: 0 0 8px;
  color: #38bdf8;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.tracking-header h1 {
  max-width: 760px;
  color: #ffffff;
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1;
}

.tracking-header p {
  max-width: 680px;
  color: #cbd5e1;
  font-size: 16px;
  line-height: 1.55;
}

.tracking-panel span,
.tracking-company {
  color: var(--muted);
}

.tracking-card,
.tracking-summary,
.tracking-panel {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.tracking-card {
  padding: 24px;
  margin-bottom: 22px;
}

.tracking-card-heading {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  margin-bottom: 18px;
}

.tracking-card-heading h2 {
  color: #0b1220;
  font-size: 22px;
}

.tracking-card-heading > span {
  width: fit-content;
  padding: 7px 10px;
  border-radius: 8px;
  background: #eef6ff;
  color: #075fa6;
  font-size: 12px;
  font-weight: 850;
}

.tracking-form {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) auto;
  gap: 16px;
  align-items: end;
}

.tracking-form .btn {
  grid-column: auto;
  width: 160px;
}

.tracking-result {
  display: grid;
  gap: 22px;
}

.tracking-summary {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  padding: 24px;
  border-left: 4px solid var(--primary);
}

.tracking-summary h2 {
  font-size: 30px;
  line-height: 1.1;
  margin: 4px 0 6px;
}

.tracking-code {
  display: inline-flex;
  width: fit-content;
  margin-top: 8px;
  padding: 6px 8px;
  border-radius: 8px;
  background: #f1f5f9;
  color: #334155;
  font-size: 13px;
  font-weight: 800;
}

.tracking-status {
  display: inline-flex;
  justify-content: center;
  border-radius: 999px;
  background: #edf6ff;
  color: #075fa6;
  font-size: 14px;
  font-weight: 900;
  padding: 9px 12px;
  text-transform: capitalize;
  white-space: nowrap;
}

.tracking-status-block {
  display: grid;
  gap: 8px;
  justify-items: end;
}

.tracking-status-block small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.tracking-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.tracking-grid-secondary {
  margin-top: -6px;
}

.tracking-panel {
  padding: 18px;
  min-height: 126px;
}

.tracking-panel h3 {
  color: var(--muted);
  font-size: 12px;
  letter-spacing: .04em;
  margin-bottom: 8px;
  text-transform: uppercase;
}

.tracking-panel p {
  color: #0b1220;
  font-size: 18px;
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 6px;
}

.tracking-timeline {
  display: grid;
  gap: 12px;
  list-style: none;
  margin-top: 16px;
}

.tracking-timeline li {
  position: relative;
  border-left: 3px solid #cbd5e1;
  padding: 4px 0 18px 18px;
}

.tracking-timeline li.complete {
  border-left-color: var(--primary);
}

.tracking-timeline li::before {
  content: "";
  position: absolute;
  left: -7px;
  top: 6px;
  width: 11px;
  height: 11px;
  border-radius: 999px;
  background: #cbd5e1;
}

.tracking-timeline li.complete::before {
  background: var(--primary);
}

.tracking-timeline strong {
  display: block;
  color: #0b1220;
  font-size: 15px;
  text-transform: capitalize;
}

.tracking-timeline span,
.tracking-timeline p {
  display: block;
  color: var(--muted);
  font-size: 13px;
  margin-top: 3px;
}

.tracking-footer {
  display: grid;
  gap: 4px;
  justify-items: center;
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}

.tracking-footer strong {
  color: #0f172a;
}

.tracking-footer span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: .08em;
  text-transform: uppercase;
}

/* ==========================================
   CUSTOMER-FACING PRINT DOCUMENTS
========================================== */

.print-document {
  max-width: 980px;
  margin: 0 auto;
  border: 1px solid #d8e3f0;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 16px 40px rgba(15, 23, 42, .08);
}

.document-header {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: flex-start;
  padding-bottom: 22px;
  margin-bottom: 22px;
  border-bottom: 3px solid #07111f;
}

.document-header h2 {
  margin: 5px 0 8px;
  color: #07111f;
  font-size: 30px;
  line-height: 1.05;
}

.document-header p {
  color: #536276;
  font-size: 13px;
  line-height: 1.45;
}

.document-title-block,
.document-logo-box {
  display: grid;
  justify-items: end;
  gap: 7px;
  min-width: 190px;
}

.document-title-block strong {
  color: #07111f;
  font-size: 25px;
}

.document-title-block span,
.document-title-block small,
.document-logo-box span {
  width: fit-content;
  padding: 7px 9px;
  border-radius: 8px;
  background: #eef6ff;
  color: #075fa6;
  font-size: 12px;
  font-weight: 850;
  text-transform: capitalize;
}

.document-logo-box img {
  display: none;
  max-width: 160px;
  max-height: 90px;
  object-fit: contain;
}

.invoice-document {
  display: grid;
  gap: 20px;
}

.invoice-hero {
  display: flex;
  justify-content: space-between;
  gap: 22px;
  align-items: stretch;
  padding: 22px;
  border-radius: 8px;
  background: #f8fafc;
  border: 1px solid var(--border);
}

.invoice-hero h2 {
  margin: 0 0 12px;
  color: #07111f;
  font-size: 34px;
}

.invoice-hero p {
  margin: 5px 0;
  color: #536276;
}

.invoice-total-box {
  display: grid;
  align-content: center;
  justify-items: end;
  min-width: 210px;
  padding: 18px;
  border-radius: 8px;
  background: #07111f;
  color: #ffffff;
}

.invoice-total-box span {
  color: #9dd7ff;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.invoice-total-box strong {
  margin: 8px 0;
  font-size: 34px;
}

.invoice-total-box small {
  color: #dbeafe;
  font-weight: 850;
  text-transform: capitalize;
}

.document-info-grid,
.invoice-line-items {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.document-info-grid div,
.invoice-line-items div {
  display: grid;
  gap: 5px;
  padding: 15px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #ffffff;
}

.document-info-grid span,
.invoice-line-items span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
}

.document-info-grid strong,
.invoice-line-items strong {
  color: #07111f;
  font-size: 18px;
}

.invoice-line-total {
  border-color: rgba(7, 136, 232, .35) !important;
  background: #eef6ff !important;
}

.document-notes {
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #ffffff;
}

.document-notes h3 {
  margin: 0 0 8px;
}

.document-notes p {
  color: #536276;
  line-height: 1.55;
}

.rate-confirmation-document {
  display: grid;
  gap: 18px;
}

.rate-confirmation-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 18px;
}

.rate-confirmation-grid > div,
.rate-confirmation-terms {
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #ffffff;
}

.rate-confirmation-grid h3,
.rate-confirmation-terms h3 {
  margin: 0 0 10px;
  color: #07111f;
}

.rate-confirmation-grid p,
.rate-confirmation-terms p {
  margin: 6px 0;
  color: #536276;
  line-height: 1.45;
}

.document-footer {
  display: grid;
  gap: 4px;
  justify-items: center;
  margin-top: 4px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 12px;
  text-align: center;
}

.document-footer span {
  font-weight: 850;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.document-footer strong {
  color: #07111f;
}

/* ==========================================
   DEMO CENTER
========================================== */

.demo-center-hero {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: center;
  margin-bottom: 22px;
  border-left: 4px solid var(--primary);
  background:
    linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

.demo-center-hero h2 {
  margin: 5px 0 8px;
  color: #07111f;
  font-size: 30px;
}

.demo-center-hero p {
  color: var(--muted);
  line-height: 1.55;
}

.demo-center-score {
  display: grid;
  justify-items: center;
  min-width: 150px;
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #ffffff;
}

.demo-center-score strong {
  color: #07111f;
  font-size: 42px;
  line-height: 1;
}

.demo-center-score span {
  margin-top: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
}

.demo-center-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 22px;
}

.demo-center-card {
  display: grid;
  gap: 16px;
  align-content: start;
}

.demo-center-card-header {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: flex-start;
}

.demo-center-card-header h2 {
  margin: 4px 0 6px;
  color: #07111f;
}

.demo-center-card-header p {
  color: var(--muted);
}

.demo-center-card-header > span {
  width: fit-content;
  padding: 7px 10px;
  border-radius: 8px;
  background: #eef6ff;
  color: #075fa6;
  font-size: 12px;
  font-weight: 850;
  text-transform: capitalize;
}

.demo-page-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.demo-page-actions .view {
  width: 100%;
}

.demo-script-box {
  display: grid;
  gap: 10px;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #f8fafc;
}

.demo-script-box p {
  margin: 0;
  color: #536276;
  line-height: 1.45;
}

.demo-script-box strong {
  color: #07111f;
}

@media (max-width: 760px) {
  .demo-center-hero,
  .demo-center-card-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .demo-center-grid,
  .demo-page-actions {
    grid-template-columns: 1fr;
  }

  .document-header,
  .invoice-hero {
    align-items: flex-start;
    flex-direction: column;
  }

  .document-title-block,
  .document-logo-box,
  .invoice-total-box {
    justify-items: start;
    width: 100%;
  }

  .document-info-grid,
  .invoice-line-items,
  .rate-confirmation-grid {
    grid-template-columns: 1fr;
  }
}

@media print {
  @page {
    margin: .55in;
  }

  body {
    background: #ffffff !important;
  }

  .sidebar,
  .no-print,
  #invoiceUpdateForm,
  #invoiceDetailsMessage,
  #rateConfirmationMessage,
  .back-link {
    display: none !important;
  }

  .layout,
  .content {
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
    max-width: none !important;
  }

  .print-document,
  .card,
  .details-card {
    box-shadow: none !important;
  }

  .print-document {
    border: 0 !important;
    padding: 0 !important;
  }

  .document-header {
    border-bottom-color: #07111f !important;
  }
}

/* ==========================================
   SUBSCRIPTION
========================================== */

.subscription-kpis {
  margin-bottom: 22px;
}

.subscription-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.subscription-plan {
  display: grid;
  gap: 16px;
  align-content: space-between;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: var(--shadow);
  padding: 20px;
}

.subscription-plan.active {
  border-color: rgba(7, 136, 232, .55);
  box-shadow: 0 0 0 4px rgba(7, 136, 232, .10), var(--shadow);
}

.subscription-plan h2 {
  font-size: 22px;
  margin: 10px 0 6px;
}

.subscription-plan p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

.subscription-plan strong {
  color: #0b1220;
  font-size: 34px;
}

.subscription-plan strong span {
  color: var(--muted);
  font-size: 14px;
  margin-left: 2px;
}

.subscription-plan ul {
  display: grid;
  gap: 8px;
  list-style: none;
}

.subscription-plan li {
  color: #334155;
  font-size: 13px;
}

.plan-badge {
  display: inline-flex;
  width: fit-content;
  border-radius: 999px;
  background: #edf6ff;
  color: #075fa6;
  font-size: 11px;
  font-weight: 900;
  padding: 6px 8px;
  text-transform: uppercase;
}

.subscription-plan button[disabled] {
  cursor: default;
  opacity: .72;
}

.subscription-details {
  margin-top: 24px;
}

@media (max-width: 760px) {
  .tracking-page {
    background:
      linear-gradient(180deg, #07111f 0, #07111f 360px, #f4f7fb 360px, #eef4fb 100%);
  }

  .tracking-header,
  .tracking-form,
  .tracking-grid {
    grid-template-columns: 1fr;
  }

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

  .tracking-form .btn {
    width: 100%;
  }

  .tracking-summary {
    align-items: flex-start;
    flex-direction: column;
  }

  .tracking-status-block {
    justify-items: start;
  }
}

@media (max-width: 1100px) {
  .subscription-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 700px) {
  .subscription-grid {
    grid-template-columns: 1fr;
  }
}

.message {
  color: var(--success);
}

.carrier-kpis {
  margin-bottom: 22px;
}

.carriers-list-card {
  margin-top: 30px;
}

.carrier-toolbar {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) minmax(160px, 220px) minmax(170px, 230px);
  gap: 16px;
  margin-bottom: 20px;
}

.carrier-notes-field {
  grid-column: 1 / -1;
}

.tender-wide {
  grid-column: 1 / -1;
}

.tender-history-card {
  margin-top: 30px;
}

.communication-card {
  margin-top: 30px;
}

.communication-wide {
  grid-column: 1 / -1;
}

.issue-card {
  margin-top: 30px;
}

.issue-wide {
  grid-column: 1 / -1;
}

.muted-line {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

td .secondary-action {
  color: #0f172a;
  box-shadow: none;
}

td .secondary-action:hover {
  background: #eef5fb;
  color: #0f172a;
}

@media (max-width: 900px) {
  .sidebar {
    padding: 18px;
  }

  .sidebar .logo,
  .sidebar h2.logo {
    height: 76px;
    margin-bottom: 18px;
  }

  .main,
  .content {
    padding: 18px;
  }

  .page-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .carrier-toolbar {
    grid-template-columns: 1fr;
  }
}
