/**
 * TEN Logistics Portal - Component & Page Stylesheet
 * Fully customized Select2, form validation, KPI cards, charts, and screen layouts
 */

/* ==========================================================================
   1. CORE UI COMPONENTS & TYPOGRAPHY
   ========================================================================== */

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

.page-heading .heading-copy {
  display: flex;
  align-items: center;
  gap: 14px;
}

.page-title-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--ten-accent), #005473);
  color: #fff;
  font-size: 20px;
  box-shadow: 0 4px 10px rgba(13, 154, 176, 0.25);
  flex-shrink: 0;
}

.page-heading h1 {
  margin: 0;
  font-size: 22px;
  font-weight: 800;
  color: var(--ten-navy-dark);
  letter-spacing: -0.5px;
}

.page-heading p {
  margin: 3px 0 0;
  color: var(--ten-muted);
  font-size: 11.5px;
  font-weight: 500;
}

/* Action Buttons */
.btn-primary {
  background: var(--ten-accent);
  border: 1px solid var(--ten-accent);
  color: #ffffff;
  border-radius: 8px;
  padding: 9px 18px;
  font-size: 12px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 3px 10px rgba(13, 154, 176, 0.25);
  transition: all 0.2s ease;
  cursor: pointer;
}

.btn-primary:hover {
  background: #0b8396;
  border-color: #0b8396;
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 5px 14px rgba(13, 154, 176, 0.35);
}

.btn-outline {
  background: #ffffff;
  border: 1px solid #70bfd0;
  color: #087f99;
  border-radius: 8px;
  padding: 9px 18px;
  font-size: 12px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.2s ease;
  cursor: pointer;
}

.btn-outline:hover {
  background: #f0f9fb;
  border-color: var(--ten-accent);
  color: #055f73;
}

/* Cards */
.portal-card {
  background: #ffffff;
  border: 1px solid var(--ten-border);
  border-radius: var(--ten-radius);
  box-shadow: var(--ten-shadow);
  overflow: hidden;
  margin-bottom: 16px;
  transition: box-shadow 0.2s ease;
}

.portal-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  border-bottom: 1px solid #edf3f7;
  background: #ffffff;
}

.portal-card-header h2 {
  font-size: 14px;
  font-weight: 800;
  color: var(--ten-navy-dark);
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.portal-card-header h2 i {
  color: var(--ten-accent);
  font-size: 15px;
}

.portal-card-body {
  padding: 18px;
}

.muted-note {
  font-size: 11px;
  color: var(--ten-muted);
  font-weight: 600;
}

/* ==========================================================================
   2. SELECT2 CUSTOM STYLING (Matches Client Design & Screenshot)
   ========================================================================== */

.select2-container {
  width: 100% !important;
}

.select2-container--default .select2-selection--single {
  height: 42px !important;
  border: 1px solid #dce8f1 !important;
  border-radius: 8px !important;
  background-color: #fbfdff !important;
  padding: 8px 14px !important;
  display: flex !important;
  align-items: center !important;
  font-family: inherit !important;
  font-size: 12.5px !important;
  color: var(--ten-text) !important;
  transition: all 0.2s ease !important;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
  color: #1e3a5f !important;
  padding-left: 0 !important;
  line-height: normal !important;
  font-size: 12.5px !important;
  font-weight: 500 !important;
}

.select2-container--default .select2-selection--single .select2-selection__placeholder {
  color: #7b91ab !important;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
  height: 40px !important;
  right: 12px !important;
}

.select2-container--default.select2-container--open .select2-selection--single {
  border-color: var(--ten-accent) !important;
  box-shadow: 0 0 0 3px rgba(13, 154, 176, 0.15) !important;
  background-color: #ffffff !important;
}

.select2-dropdown {
  border: 1px solid #c8dbe7 !important;
  border-radius: 8px !important;
  box-shadow: 0 10px 25px rgba(0, 43, 73, 0.12) !important;
  font-family: inherit !important;
  font-size: 12.5px !important;
  overflow: hidden !important;
  z-index: 9999 !important;
}

.select2-container--default .select2-search--dropdown {
  padding: 8px !important;
}

.select2-container--default .select2-search--dropdown .select2-search__field {
  border: 1px solid #d7e4ec !important;
  border-radius: 6px !important;
  padding: 8px 10px !important;
  font-size: 12px !important;
  outline: none !important;
}

.select2-container--default .select2-results__option {
  padding: 8px 12px !important;
  font-size: 12px !important;
}

.select2-container--default .select2-results__option--highlighted[aria-selected] {
  background-color: var(--ten-accent) !important;
  color: #fff !important;
}

.select2-container--default .select2-results__option--selected {
  background-color: #e6f6f9 !important;
  color: #075875 !important;
  font-weight: 700 !important;
}

/* ==========================================================================
   3. FORM INPUTS & VALIDATION STATES (Matching User Screenshot)
   ========================================================================== */

.ten-form .field {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-bottom: 12px;
}

.ten-form .field label,
.form-label-custom {
  font-size: 12px;
  font-weight: 700;
  color: #17385d;
}

.ten-form .field label span,
.form-label-custom span {
  color: #ef4444;
}

.ten-form input,
.ten-form select,
.ten-form textarea,
.form-input-custom {
  border: 1px solid #dce8f1;
  border-radius: 8px;
  background: #fbfdff;
  color: #18385e;
  outline: 0;
  padding: 9px 12px;
  font-size: 12.5px;
  min-height: 40px;
  transition: all 0.2s ease;
  width: 100%;
}

.ten-form input:focus,
.ten-form select:focus,
.ten-form textarea:focus,
.form-input-custom:focus {
  border-color: var(--ten-accent);
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(13, 154, 176, 0.14);
}

.input-icon-field {
  position: relative;
  display: flex;
  align-items: center;
}

.input-icon-field>i:first-child {
  position: absolute;
  left: 14px;
  z-index: 2;
  color: #4b6785;
  font-size: 14px;
  pointer-events: none;
}

.input-icon-field input,
.input-icon-field select {
  padding-left: 40px !important;
}

.input-icon-field .trailing {
  position: absolute;
  right: 14px;
  color: #7d93a8;
  font-size: 11px;
  pointer-events: none;
}

/* Error Instruction below fields */
.error-instruction,
.field-error-msg {
  display: none;
  color: #dc2626;
  font-size: 11.5px;
  font-weight: 700;
  margin-top: 5px;
  align-items: center;
  gap: 5px;
}

.error-instruction.show,
.field-error-msg.show {
  display: flex !important;
}

/* Validation Invalid States (Red outline glow + red border + light red bg) */
.form-input-custom.is-invalid,
.ten-form input.is-invalid,
.ten-form select.is-invalid,
.ten-form textarea.is-invalid,
input.is-invalid,
select.is-invalid,
textarea.is-invalid {
  border: 1.5px solid #ef4444 !important;
  background-color: #fef2f2 !important;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.18) !important;
}

.select2-container--default .select2-selection--single.is-invalid,
.select2-container--default .select2-selection.is-invalid,
.select2-container--default .select2-selection.select2-invalid,
.select2-container.is-invalid .select2-selection,
.select2-container.select2-invalid .select2-selection,
.is-invalid+.select2-container .select2-selection,
.is-invalid+.select2 .select2-selection {
  border: 1.5px solid #ef4444 !important;
  background-color: #fef2f2 !important;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.18) !important;
}

/* Top Alerts */
.ajax-error-alert {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #991b1b;
  padding: 12px 18px;
  border-radius: 8px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12.5px;
  font-weight: 700;
}

.ajax-success-alert {
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  color: #065f46;
  padding: 12px 18px;
  border-radius: 8px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12.5px;
  font-weight: 700;
}

/* ==========================================================================
   4. DASHBOARD SPECIFIC COMPONENTS (Matches PDF Page 3)
   ========================================================================== */

/* Hero Banner */
.ten-hero-banner {
  min-height: 124px;
  border-radius: var(--ten-radius);
  padding: 24px 28px;
  background: #ffffff url('images/ten-truck-banner-clean.png') right center no-repeat;
  background-size: contain;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: var(--ten-shadow);
  margin-bottom: 14px;
  position: relative;
  overflow: hidden;
}

.ten-hero-banner:before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, #ffffff 0%, #ffffff 42%, rgba(255, 255, 255, 0.85) 60%, transparent 100%);
  z-index: 1;
}

.ten-hero-copy {
  position: relative;
  z-index: 2;
  max-width: 580px;
}

.ten-hero-copy h1 {
  margin: 0;
  font-size: 23px;
  font-weight: 800;
  color: var(--ten-navy-dark);
  letter-spacing: -0.5px;
}

.ten-hero-copy p {
  margin: 3px 0 2px;
  font-size: 15px;
  font-weight: 700;
  color: #17385d;
}

.ten-hero-copy small {
  font-size: 11.5px;
  color: var(--ten-muted);
}

/* 7 Top KPI Cards */
.ten-stat-row {
  display: grid;
  grid-template-columns: repeat(7, minmax(130px, 1fr));
  gap: 8px;
  margin-bottom: 16px;
}

.ten-stat-card {
  background: #ffffff;
  border: 1px solid var(--ten-border);
  border-radius: var(--ten-radius);
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: var(--ten-shadow);
  transition: all 0.2s ease;
}

.ten-stat-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(0, 48, 77, 0.1);
}

.stat-icon {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 16px;
  flex-shrink: 0;
}

.stat-icon.blue {
  background: #e0f2fe;
  color: #0284c7;
}

.stat-icon.green {
  background: #dcfce7;
  color: #16a34a;
}

.stat-icon.orange {
  background: #ffedd5;
  color: #ea580c;
}

.stat-icon.purple {
  background: #f3e8ff;
  color: #9333ea;
}

.stat-icon.red {
  background: #fee2e2;
  color: #dc2626;
}

.stat-icon.teal {
  background: #ccfbf1;
  color: #0d9488;
}

.stat-icon.dark-teal {
  background: #e0f7fa;
  color: #006064;
}

.ten-stat-card div {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.ten-stat-card strong {
  font-size: 19px;
  font-weight: 800;
  color: var(--ten-navy-dark);
  line-height: 1.1;
}

.ten-stat-card small {
  font-size: 10px;
  font-weight: 600;
  color: var(--ten-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 3px;
}

.stat-arrow {
  margin-left: auto;
  color: #94a3b8;
  font-size: 11px;
}

/* Quick Actions 8-grid */
.quick-actions-wrap {
  margin-bottom: 16px;
}

.quick-actions-title {
  font-size: 13.5px;
  font-weight: 800;
  color: var(--ten-navy-dark);
  margin-bottom: 8px;
}

.quick-actions-grid {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 8px;
}

.quick-action-item {
  background: #ffffff;
  border: 1px solid var(--ten-border);
  border-radius: var(--ten-radius);
  padding: 12px 6px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  text-align: center;
  color: #0b4562;
  box-shadow: var(--ten-shadow);
  transition: all 0.2s ease;
  min-height: 80px;
}

.quick-action-item:hover {
  transform: translateY(-2px);
  border-color: var(--ten-accent);
  box-shadow: 0 6px 16px rgba(0, 48, 77, 0.1);
}

.quick-action-item i {
  font-size: 20px;
  color: var(--ten-accent);
}

.quick-action-item strong {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--ten-navy-dark);
}

.quick-action-item small {
  font-size: 9.5px;
  color: var(--ten-muted);
}

.quick-action-item.primary {
  background: var(--ten-accent);
  border-color: var(--ten-accent);
  color: #ffffff;
}

.quick-action-item.primary i,
.quick-action-item.primary strong,
.quick-action-item.primary small {
  color: #ffffff;
}

/* 2-Column Dashboard Content Layout */
.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(360px, 0.85fr);
  gap: 16px;
}

/* Filter Tabs */
.filter-tabs {
  display: flex;
  gap: 6px;
  padding: 0 18px 12px;
  overflow-x: auto;
}

.filter-tab {
  padding: 6px 14px;
  border-radius: 6px;
  background: #f1f6fa;
  color: #4b6785;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
  transition: all 0.2s;
  cursor: pointer;
}

.filter-tab:hover {
  background: #e2edf5;
  color: #18385e;
}

.filter-tab.active {
  background: var(--ten-accent);
  color: #ffffff;
}

/* Tables */
.table-scroll {
  overflow-x: auto;
}

.portal-table {
  width: 100%;
  border-collapse: collapse;
  white-space: nowrap;
}

.portal-table th {
  background: #f8fbfe;
  padding: 10px 14px;
  font-size: 11px;
  font-weight: 700;
  color: #274768;
  text-align: left;
  border-bottom: 1px solid #e5edf3;
}

.portal-table td {
  padding: 11px 14px;
  font-size: 11.5px;
  color: #3b5673;
  border-bottom: 1px solid #edf3f7;
}

.portal-table tr:hover td {
  background: #f8fbfe;
}

.portal-table .num {
  font-family: monospace;
  font-weight: 800;
  color: #0b4562;
  font-size: 12px;
}

/* Status Pills */
.status-pill {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 12px;
  font-size: 10.5px;
  font-weight: 700;
  line-height: 1.4;
}

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

.status-pill.info {
  background: #e0f2fe;
  color: #0369a1;
}

.status-pill.warning {
  background: #fef3c7;
  color: #b45309;
}

.status-pill.danger {
  background: #fee2e2;
  color: #b91c1c;
}

.status-pill.neutral {
  background: #f1f5f9;
  color: #475569;
}

.view-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border: 1px solid #7dc7d7;
  color: var(--ten-accent);
  background: #ffffff;
  border-radius: 6px;
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
}

.view-btn:hover {
  background: #eef8fa;
  border-color: var(--ten-accent);
}

/* Donut & Legends */
.donut-card-wrap {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 12px 18px 20px;
}

.donut-canvas-box {
  width: 140px;
  height: 140px;
  position: relative;
  flex-shrink: 0;
}

.donut-inner-label {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.donut-inner-label strong {
  font-size: 20px;
  font-weight: 800;
  color: var(--ten-navy-dark);
}

.donut-inner-label small {
  font-size: 10px;
  color: var(--ten-muted);
}

.donut-legend-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.donut-legend-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  color: #3b5673;
}

.donut-legend-item>div {
  display: flex;
  align-items: center;
  gap: 8px;
}

.legend-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  flex-shrink: 0;
}

/* Inventory Summary 3-cards */
.inv-summary-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  padding: 12px 18px 18px;
}

.inv-summary-box {
  border: 1px solid #e2edf5;
  border-radius: 8px;
  padding: 12px 10px;
  display: flex;
  align-items: center;
  gap: 10px;
  background: #fbfdff;
}

.inv-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 15px;
  flex-shrink: 0;
}

.inv-icon.green {
  background: #dcfce7;
  color: #16a34a;
}

.inv-icon.blue {
  background: #e0f2fe;
  color: #0284c7;
}

.inv-icon.orange {
  background: #ffedd5;
  color: #ea580c;
}

.inv-summary-box strong {
  font-size: 18px;
  font-weight: 800;
  color: var(--ten-navy-dark);
}

.inv-summary-box small {
  font-size: 10px;
  color: var(--ten-muted);
  font-weight: 600;
}

/* Delivery Locations Bars */
.locations-list {
  padding: 8px 18px 18px;
}

.location-bar-item {
  display: grid;
  grid-template-columns: 20px 1.2fr 1.5fr 36px;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid #edf3f7;
  font-size: 11.5px;
}

.location-bar-item:last-child {
  border-bottom: 0;
}

.location-rank {
  color: #8fa0b5;
  font-weight: 700;
}

.location-name {
  font-weight: 600;
  color: #18385e;
}

.location-progress {
  height: 7px;
  background: #e8f0f6;
  border-radius: 6px;
  overflow: hidden;
}

.location-progress-fill {
  height: 100%;
  background: var(--ten-accent);
  border-radius: 6px;
}

.location-count {
  text-align: right;
  font-weight: 800;
  color: var(--ten-navy-dark);
}

/* ==========================================================================
   5. NEW BOOKING PAGE (Matches PDF Page 4)
   ========================================================================== */

.booking-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(420px, 0.95fr);
  gap: 16px;
  align-items: start;
}

.booking-stepper {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.booking-stepper span {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11.5px;
  font-weight: 700;
  color: #7b91ab;
}

.booking-stepper span.active {
  color: var(--ten-accent);
}

.booking-stepper b {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #e2edf5;
  color: #64748b;
  display: grid;
  place-items: center;
  font-size: 11px;
}

.booking-stepper .active b {
  background: var(--ten-accent);
  color: #ffffff;
}

.booking-stepper i {
  flex: 1;
  height: 2px;
  background: #dbe7f0;
}

/* Radio Cards (Normal, Priority, Urgent) */
.choice-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 6px;
}

.choice {
  border: 1px solid #dce8f1;
  border-radius: 8px;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 3px;
  cursor: pointer;
  background: #ffffff;
  transition: all 0.2s ease;
  position: relative;
}

.choice:hover {
  border-color: #8ecbd7;
  background: #fbfdfe;
}

.choice.active {
  border-color: #f59e0b;
  background: #fffbeb;
  box-shadow: 0 2px 8px rgba(245, 158, 11, 0.15);
}

.choice b {
  font-size: 12.5px;
  color: var(--ten-navy-dark);
}

.choice small {
  font-size: 10px;
  color: var(--ten-muted);
}

.choice input[type="radio"] {
  position: absolute;
  top: 12px;
  right: 12px;
  accent-color: var(--ten-accent);
}

/* Material Details Table */
.material-table {
  width: 100%;
  border-collapse: collapse;
}

.material-table th {
  background: #f8fbfe;
  padding: 9px 10px;
  font-size: 11px;
  font-weight: 700;
  color: #274768;
  text-align: left;
  border-bottom: 1px solid #e5edf3;
}

.material-table td {
  padding: 8px 6px;
  border-bottom: 1px solid #edf3f7;
}

.material-table input,
.material-table select {
  min-height: 36px;
  padding: 6px 10px;
  font-size: 12px;
}

.remove-material {
  border: 0;
  background: transparent;
  color: #ef4444;
  cursor: pointer;
  font-size: 14px;
  padding: 6px 8px;
  border-radius: 6px;
}

.remove-material:hover {
  background: #fee2e2;
}

/* Document Uploads Grid */
.booking-upload-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
}

.upload-box {
  border: 1px dashed #9bc6d3;
  border-radius: 8px;
  padding: 12px 8px;
  text-align: center;
  background: #f8fcfe;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  transition: all 0.2s;
}

.upload-box:hover {
  background: #eff9fc;
  border-color: var(--ten-accent);
}

.upload-box i {
  font-size: 22px;
  color: #ef4444;
  margin-bottom: 2px;
}

.upload-box span {
  font-size: 11px;
  font-weight: 700;
  color: #17385d;
}

.upload-box em {
  font-style: normal;
  border: 1px solid #7bc5d4;
  color: var(--ten-accent);
  background: #ffffff;
  border-radius: 6px;
  padding: 4px 14px;
  font-size: 10px;
  font-weight: 800;
  margin-top: 4px;
}

.upload-box small {
  font-size: 9px;
  color: #7b91ab;
}

.file-input-hidden {
  display: none;
}

/* Success Card in Aside */
.booking-success-card {
  padding: 20px 18px;
  text-align: center;
  background: linear-gradient(145deg, #ffffff, #f0fafd);
  border-top: 3px solid #10b981;
}

.booking-success-card .success-icon {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #10b981;
  color: #ffffff;
  display: grid;
  place-items: center;
  font-size: 26px;
  margin: 0 auto 10px;
  box-shadow: 0 0 0 8px #e6f9f0;
}

.booking-success-card h2 {
  font-size: 16px;
  font-weight: 800;
  color: var(--ten-navy-dark);
  margin: 0 0 4px;
}

.booking-success-card p {
  font-size: 11.5px;
  color: var(--ten-muted);
  margin: 0 0 14px;
}

.booking-ref-box,
.booking-status-box {
  background: #f8fbfe;
  border: 1px solid #e2edf5;
  border-radius: 8px;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
  text-align: left;
}

.booking-ref-box span,
.booking-status-box span {
  font-size: 11px;
  font-weight: 700;
  color: #4b6785;
}

.booking-ref-box strong {
  font-size: 13px;
  font-weight: 800;
  color: #0b4562;
  margin-left: auto;
  margin-right: 8px;
}

.booking-ref-box i {
  color: var(--ten-accent);
  cursor: pointer;
}

.booking-status-box b {
  background: #fffbeb;
  color: #b45309;
  border: 1px solid #fef3c7;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 11px;
}

.booking-aside-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 12px;
}

/* Need Help? Live Chat Widget */
.booking-chat {
  padding: 12px 16px;
  background: #ffffff;
}

.chat-line {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 10px;
}

.chat-line.user {
  justify-content: flex-end;
}

.chat-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #e2edf5;
  font-size: 15px;
  flex-shrink: 0;
}

.chat-avatar.user-avatar {
  background: var(--ten-accent);
  color: #ffffff;
  font-size: 10px;
  font-weight: 800;
}

.chat-line p {
  max-width: 80%;
  background: #f1f6fa;
  border-radius: 8px;
  padding: 8px 12px;
  margin: 0;
  font-size: 11.5px;
  color: #18385e;
  line-height: 1.4;
}

.chat-line.user p {
  background: #dbeafe;
  color: #1e3a8a;
}

.chat-line small {
  display: block;
  font-size: 9px;
  color: #94a3b8;
  margin-top: 4px;
}

.chat-input-bar {
  display: flex;
  gap: 8px;
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid #edf3f7;
}

.chat-input-bar input {
  flex: 1;
  min-height: 38px;
  border: 1px solid #dce8f1;
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 12px;
}

.chat-input-bar button {
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 8px;
  background: var(--ten-accent);
  color: #ffffff;
  display: grid;
  place-items: center;
  cursor: pointer;
}

/* ==========================================================================
   6. TRACK YOUR ORDER (Matches PDF Page 5)
   ========================================================================== */

.track-filter-bar {
  display: flex;
  gap: 12px;
  padding: 14px 18px;
  background: #ffffff;
  border: 1px solid var(--ten-border);
  border-radius: var(--ten-radius);
  box-shadow: var(--ten-shadow);
  margin-bottom: 16px;
  align-items: center;
  flex-wrap: wrap;
}

.track-search-input {
  flex: 1;
  min-width: 250px;
  height: 42px;
  border: 1px solid #dce8f1;
  border-radius: 8px;
  padding: 8px 14px;
  font-size: 12.5px;
}

.track-3col-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1.15fr) minmax(320px, 0.8fr);
  gap: 16px;
  align-items: start;
}

/* Tracking Details Middle Column */
.track-detail-header-card {
  padding: 16px;
  border: 1px solid #dce8f1;
  border-radius: var(--ten-radius);
  background: #fbfdff;
  margin-bottom: 14px;
}

.track-route-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  background: #ffffff;
  border: 1px solid #e2edf5;
  border-radius: 8px;
  margin: 10px 0;
}

.track-route-node strong {
  display: block;
  font-size: 13px;
  color: var(--ten-navy-dark);
}

.track-route-node small {
  font-size: 10.5px;
  color: var(--ten-muted);
}

.track-route-arrow {
  color: var(--ten-accent);
  font-size: 18px;
}

/* Route Map Preview Image */
.track-map-wrapper {
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid #dce8f1;
  margin-bottom: 14px;
  position: relative;
}

.track-map-wrapper img {
  width: 100%;
  height: auto;
  display: block;
}

/* Milestone Progress Stepper */
.milestone-stepper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 8px;
  margin-bottom: 14px;
  position: relative;
}

.milestone-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-align: center;
  position: relative;
  z-index: 2;
  flex: 1;
}

.milestone-step .step-dot {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #e2edf5;
  color: #7b91ab;
  font-size: 13px;
  border: 2px solid #ffffff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.milestone-step.completed .step-dot {
  background: #10b981;
  color: #ffffff;
}

.milestone-step.active .step-dot {
  background: var(--ten-accent);
  color: #ffffff;
  box-shadow: 0 0 0 4px rgba(13, 154, 176, 0.2);
}

.milestone-step strong {
  font-size: 11px;
  color: var(--ten-navy-dark);
}

.milestone-step small {
  font-size: 9.5px;
  color: var(--ten-muted);
}

/* Live Driver Info Box */
.driver-info-box {
  border: 1px solid #e2edf5;
  border-radius: 8px;
  padding: 14px;
  background: #f8fbfe;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.driver-info-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.driver-info-row i {
  font-size: 16px;
  color: var(--ten-accent);
  width: 20px;
}

.driver-info-row div strong {
  display: block;
  font-size: 12px;
  color: var(--ten-navy-dark);
}

.driver-info-row div small {
  font-size: 10px;
  color: var(--ten-muted);
}

/* Vertical Timeline Right Column */
.v-timeline {
  display: flex;
  flex-direction: column;
  position: relative;
  padding: 8px 4px;
}

.v-timeline-item {
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 12px;
  position: relative;
  padding-bottom: 20px;
}

.v-timeline-item:before {
  content: '';
  position: absolute;
  left: 15px;
  top: 30px;
  bottom: 0;
  width: 2px;
  background: #e2edf5;
}

.v-timeline-item:last-child:before {
  display: none;
}

.v-timeline-dot {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #10b981;
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 13px;
  z-index: 2;
}

.v-timeline-dot.active {
  background: #0284c7;
  box-shadow: 0 0 0 4px rgba(2, 132, 199, 0.2);
}

.v-timeline-dot.pending {
  background: #cbd5e1;
  color: #64748b;
}

.v-timeline-content h4 {
  margin: 0 0 3px;
  font-size: 12px;
  font-weight: 700;
  color: var(--ten-navy-dark);
}

.v-timeline-content small {
  display: block;
  font-size: 10px;
  color: var(--ten-muted);
  margin-bottom: 3px;
}

.v-timeline-content p {
  margin: 0;
  font-size: 11px;
  color: #4b6785;
}

/* Document Row */
.doc-item-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid #edf3f7;
}

.doc-item-row:last-child {
  border-bottom: 0;
}

.doc-item-info {
  display: flex;
  align-items: center;
  gap: 10px;
}

.doc-item-info i {
  color: #ef4444;
  font-size: 22px;
}

.doc-item-info strong {
  display: block;
  font-size: 12px;
  color: var(--ten-navy-dark);
}

.doc-item-info small {
  font-size: 10px;
  color: var(--ten-muted);
}

.doc-item-actions {
  display: flex;
  gap: 6px;
}

/* ==========================================================================
   7. MATERIAL OUTWARD & POD VIEWER (Matches PDF Page 8)
   ========================================================================== */

.pod-viewer-card {
  border: 1px solid var(--ten-border);
  border-radius: var(--ten-radius);
  background: #ffffff;
  overflow: hidden;
}

.pod-tab-strip {
  display: flex;
  border-bottom: 1px solid #e5edf3;
  background: #f8fbfe;
  padding: 4px 8px 0;
}

.pod-tab {
  padding: 10px 16px;
  font-size: 11.5px;
  font-weight: 700;
  color: #475569;
  border-bottom: 2px solid transparent;
  cursor: pointer;
}

.pod-tab.active {
  color: var(--ten-accent);
  border-bottom-color: var(--ten-accent);
  background: #ffffff;
  border-radius: 6px 6px 0 0;
}

.pod-document-preview-frame {
  padding: 16px;
  background: #334155;
  display: flex;
  justify-content: center;
  align-items: center;
}

.pod-document-preview-frame img {
  max-width: 100%;
  height: auto;
  border-radius: 4px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

/* ==========================================================================
   8. NOTIFICATIONS PAGE (Matches PDF Page 9)
   ========================================================================== */

.notif-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(420px, 0.95fr);
  gap: 16px;
  align-items: start;
}

.notif-item-card {
  padding: 14px 16px;
  border-bottom: 1px solid #edf3f7;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
  transition: all 0.15s ease;
  position: relative;
}

.notif-item-card:hover {
  background: #f8fbfe;
}

.notif-item-card.active {
  background: #eef8fa;
  border-left: 3px solid var(--ten-accent);
}

.notif-icon-box {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  font-size: 17px;
  flex-shrink: 0;
}

.notif-icon-box.green {
  background: #dcfce7;
  color: #16a34a;
}

.notif-icon-box.purple {
  background: #f3e8ff;
  color: #9333ea;
}

.notif-icon-box.orange {
  background: #ffedd5;
  color: #ea580c;
}

.notif-icon-box.blue {
  background: #e0f2fe;
  color: #0284c7;
}

.notif-icon-box.red {
  background: #fee2e2;
  color: #dc2626;
}

.notif-content-box {
  flex: 1;
}

.notif-content-box h4 {
  margin: 0 0 3px;
  font-size: 13px;
  font-weight: 800;
  color: var(--ten-navy-dark);
}

.notif-content-box p {
  margin: 0;
  font-size: 11.5px;
  color: #475569;
  line-height: 1.4;
}

.notif-meta-box {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
}

.notif-meta-box small {
  font-size: 10px;
  color: #94a3b8;
}

.unread-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #0284c7;
}

/* ==========================================================================
   9. AUTHENTICATION PAGES: LOGIN & REGISTER (Matches PDF Pages 1 & 2)
   ========================================================================== */

.ten-auth-body {
  min-height: 100vh;
  background: #f1f8fc;
  color: var(--ten-text);
}

.auth-site-header {
  height: 76px;
  padding: 0 4%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #ffffff;
  border-bottom: 1px solid #dce8f1;
}

.auth-site-brand img {
  width: 260px;
  max-width: 50vw;
  height: auto;
  display: block;
}

.auth-site-actions {
  display: flex;
  align-items: center;
  gap: 20px;
}

.auth-site-actions>a {
  color: var(--ten-navy-dark);
  font-size: 12.5px;
  font-weight: 700;
}

.auth-shell {
  min-height: calc(100vh - 76px);
  display: grid;
  grid-template-columns: 58% 42%;
  background: #ffffff;
}

.auth-visual {
  padding: 60px 50px 30px;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #e4f4fb 0%, #fef5e0 30%, #58adc8 65%, #003d5b 100%);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.auth-copy h1 {
  font-size: 40px;
  line-height: 1.15;
  margin: 0;
  color: var(--ten-navy-dark);
  font-weight: 800;
  letter-spacing: -1.2px;
}

.auth-copy h1 strong {
  color: #002b49;
  position: relative;
  display: inline-block;
}

.auth-copy h1 strong:after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 60px;
  height: 4px;
  background: #f59e0b;
  border-radius: 2px;
}

.auth-copy p {
  font-size: 18px;
  line-height: 1.35;
  color: #1e3a5f;
  margin-top: 14px;
  font-weight: 600;
}

.auth-benefits {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  max-width: 620px;
  margin: 30px 0;
}

.auth-benefits span {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
  color: #ffffff;
  font-weight: 700;
  font-size: 11.5px;
}

.auth-benefits i {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.7);
  background: rgba(0, 61, 91, 0.6);
  font-size: 20px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.auth-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid rgba(255, 255, 255, 0.35);
  padding-top: 18px;
  color: #ffffff;
  max-width: 620px;
}

.auth-stats span {
  display: flex;
  flex-direction: column;
  align-items: center;
  border-right: 1px solid rgba(255, 255, 255, 0.35);
}

.auth-stats span:last-child {
  border-right: 0;
}

.auth-stats b {
  font-size: 24px;
  font-weight: 800;
}

.auth-stats small {
  font-size: 11px;
  opacity: 0.9;
}

.auth-form-panel {
  padding: 40px 50px;
  background: #ffffff;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.auth-card {
  max-width: 460px;
  width: 100%;
  margin: auto;
}

.auth-card h2 {
  margin: 0;
  color: var(--ten-navy-dark);
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.8px;
}

.auth-card>p {
  margin: 6px 0 24px;
  color: var(--ten-muted);
  font-size: 13px;
}

.auth-input {
  height: 48px;
  border: 1px solid #dce8f1;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 16px;
  margin-bottom: 12px;
  background: #fbfdff;
  transition: all 0.2s;
}

.auth-input:focus-within {
  border-color: var(--ten-accent);
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(13, 154, 176, 0.15);
}

.auth-input i {
  color: #64748b;
  font-size: 15px;
}

.auth-input input {
  border: 0;
  outline: 0;
  background: transparent;
  flex: 1;
  font-size: 13px;
  color: var(--ten-text);
}

.check-line {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: #334155;
  margin: 14px 0;
}

.check-line a {
  margin-left: auto;
  color: var(--ten-accent);
  font-weight: 700;
}

.auth-submit {
  width: 100%;
  min-height: 46px;
  font-size: 13.5px;
}

.auth-or {
  text-align: center;
  color: #94a3b8;
  font-size: 11.5px;
  font-weight: 700;
  margin: 18px 0;
  position: relative;
}

.auth-or:before,
.auth-or:after {
  content: '';
  position: absolute;
  top: 50%;
  width: 44%;
  height: 1px;
  background: #e2edf5;
}

.auth-or:before {
  left: 0;
}

.auth-or:after {
  right: 0;
}

.auth-bottom {
  text-align: center;
  font-size: 12px;
  color: var(--ten-muted);
  margin-top: 22px;
}

.auth-bottom a {
  color: var(--ten-accent);
  font-weight: 800;
  text-decoration: underline;
}

/* Modal Backdrop */
.ten-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 24, 43, 0.6);
  backdrop-filter: blur(4px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.ten-modal-card {
  background: #ffffff;
  border-radius: var(--ten-radius);
  max-width: 750px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.25);
  position: relative;
  padding: 24px;
}

.ten-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: #f1f5f9;
  border: 0;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  cursor: pointer;
  color: #64748b;
}

.ten-modal-close:hover {
  background: #fee2e2;
  color: #ef4444;
}

/* Responsive Media Queries */
@media (max-width: 1200px) {
  .ten-stat-row {
    grid-template-columns: repeat(4, 1fr);
  }

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

  .dashboard-grid,
  .booking-layout,
  .notif-layout {
    grid-template-columns: 1fr;
  }

  .track-3col-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 800px) {
  .ten-stat-row {
    grid-template-columns: repeat(2, 1fr);
  }

  .quick-actions-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .choice-row {
    grid-template-columns: 1fr;
  }

  .booking-upload-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .auth-shell {
    grid-template-columns: 1fr;
  }

  .auth-visual {
    display: none;
  }

  .inv-summary-grid {
    grid-template-columns: 1fr;
  }
}

/* Dashboard card polish: soft interior backgrounds and smooth hover motion. */
.dashboard-page .ten-stat-card,
.dashboard-page .quick-action-item,
.dashboard-page .portal-card,
.dashboard-page .inv-summary-box {
  background: linear-gradient(145deg, #ffffff 0%, #f4fbfd 100%);
  transition: transform .24s ease, box-shadow .24s ease, border-color .24s ease, background .24s ease;
}

.dashboard-page .ten-stat-card:hover,
.dashboard-page .quick-action-item:hover,
.dashboard-page .portal-card:hover,
.dashboard-page .inv-summary-box:hover {
  transform: translateY(-4px);
  border-color: rgba(13, 154, 176, .48);
  background: linear-gradient(145deg, #ffffff 0%, #eaf9fc 100%);
  box-shadow: 0 12px 26px rgba(7, 91, 117, .14);
}

.dashboard-page .portal-card-header {
  background: linear-gradient(90deg, rgba(248, 252, 254, .96), rgba(239, 249, 252, .82));
  transition: background .24s ease;
}

.dashboard-page .portal-card:hover .portal-card-header {
  background: linear-gradient(90deg, #f1fbfd, #e8f8fb);
}

.dashboard-page .ten-stat-card .stat-icon,
.dashboard-page .quick-action-item i,
.dashboard-page .inv-summary-box .inv-icon {
  transition: transform .24s ease, box-shadow .24s ease;
}

.dashboard-page .ten-stat-card:hover .stat-icon,
.dashboard-page .quick-action-item:hover i,
.dashboard-page .inv-summary-box:hover .inv-icon {
  transform: scale(1.08) rotate(-3deg);
  box-shadow: 0 5px 12px rgba(8, 127, 153, .16);
}

.dashboard-page .portal-table tbody tr td {
  transition: background .18s ease, color .18s ease;
}

.dashboard-page .portal-table tbody tr:hover td {
  background: #eefafd;
  color: #0b4e6b;
}

@media (prefers-reduced-motion: reduce) {
  .dashboard-page .ten-stat-card,
  .dashboard-page .quick-action-item,
  .dashboard-page .portal-card,
  .dashboard-page .inv-summary-box,
  .dashboard-page .ten-stat-card .stat-icon,
  .dashboard-page .quick-action-item i,
  .dashboard-page .inv-summary-box .inv-icon {
    transition: none;
  }
}

/* Dashboard icon system: clearer category colors and polished circular badges. */
.dashboard-page .stat-icon,
.dashboard-page .inv-icon {
  border: 1px solid rgba(255, 255, 255, .82);
  box-shadow: inset 0 1px 2px rgba(255, 255, 255, .72), 0 4px 10px rgba(12, 83, 111, .10);
}

.dashboard-page .stat-icon.blue,
.dashboard-page .inv-icon.blue { background: linear-gradient(145deg, #e7f3ff, #cfe8ff); color: #1976d2; }
.dashboard-page .stat-icon.green,
.dashboard-page .inv-icon.green { background: linear-gradient(145deg, #e5faef, #c9f2dc); color: #0b9b62; }
.dashboard-page .stat-icon.orange,
.dashboard-page .inv-icon.orange { background: linear-gradient(145deg, #fff4df, #ffe2b4); color: #f28a0b; }
.dashboard-page .stat-icon.purple { background: linear-gradient(145deg, #f1eaff, #dfceff); color: #7545d9; }
.dashboard-page .stat-icon.red { background: linear-gradient(145deg, #ffe9eb, #ffd0d4); color: #e54450; }
.dashboard-page .stat-icon.teal { background: linear-gradient(145deg, #e0fbf8, #c2eee9); color: #078f91; }
.dashboard-page .stat-icon.dark-teal { background: linear-gradient(145deg, #e5f3f8, #cbe5ed); color: #086080; }

.dashboard-page .quick-action-item:not(.primary) i {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(145deg, #e8f8fb, #d3edf3);
  border: 1px solid #bfe2eb;
  box-shadow: inset 0 1px 2px rgba(255, 255, 255, .9), 0 3px 8px rgba(11, 112, 143, .10);
}

.dashboard-page .quick-action-item:nth-child(2) i { background: linear-gradient(145deg, #e6f3ff, #cfe6ff); color: #1374c5; border-color: #b8d9f5; }
.dashboard-page .quick-action-item:nth-child(3) i { background: linear-gradient(145deg, #f0e9ff, #dfd1ff); color: #7044d0; border-color: #d1bfff; }
.dashboard-page .quick-action-item:nth-child(4) i { background: linear-gradient(145deg, #e5faef, #c9f2dc); color: #0b9b62; border-color: #b9e9cf; }
.dashboard-page .quick-action-item:nth-child(5) i { background: linear-gradient(145deg, #fff3df, #ffe1b6); color: #e98208; border-color: #f5d297; }
.dashboard-page .quick-action-item:nth-child(6) i { background: linear-gradient(145deg, #e9f0ff, #d3e1ff); color: #376ec4; border-color: #c0d4fb; }
.dashboard-page .quick-action-item:nth-child(7) i { background: linear-gradient(145deg, #e0fbf8, #c2eee9); color: #078f91; border-color: #b3e4df; }
.dashboard-page .quick-action-item:nth-child(8) i { background: linear-gradient(145deg, #ffe9eb, #ffd0d4); color: #e54450; border-color: #f6bdc4; }

.dashboard-page .quick-action-item.primary i {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, .20);
  border: 1px solid rgba(255, 255, 255, .48);
  box-shadow: inset 0 1px 2px rgba(255, 255, 255, .35);
}

.dashboard-page .portal-card-header h2 i {
  width: 28px;
  height: 28px;
  display: inline-grid;
  place-items: center;
  border-radius: 9px;
  background: linear-gradient(145deg, #e7f8fb, #d1edf3);
  color: var(--ten-accent);
  box-shadow: inset 0 1px 2px rgba(255, 255, 255, .9);
}

/* Dashboard reference alignment: vivid KPI circles and clean action icons. */
.dashboard-page .ten-stat-card {
  min-height: 66px;
  padding: 9px 11px;
  gap: 10px;
  background: #fff;
  border-color: #e3edf4;
  box-shadow: 0 3px 12px rgba(17, 76, 104, .06);
}

.dashboard-page .stat-icon {
  width: 46px;
  height: 46px;
  border: 0;
  box-shadow: inset 0 1px 2px rgba(255, 255, 255, .25), 0 4px 10px rgba(13, 75, 104, .13);
  color: #fff;
  font-size: 19px;
}

.dashboard-page .stat-icon.blue { background: linear-gradient(145deg, #1678f2, #0d63d7); color: #fff; }
.dashboard-page .stat-icon.green { background: linear-gradient(145deg, #18b978, #07985e); color: #fff; }
.dashboard-page .stat-icon.orange { background: linear-gradient(145deg, #ff9b0b, #f17b00); color: #fff; }
.dashboard-page .stat-icon.purple { background: linear-gradient(145deg, #7a43ec, #6430d2); color: #fff; }
.dashboard-page .stat-icon.red { background: linear-gradient(145deg, #ff3e4d, #ed263a); color: #fff; }
.dashboard-page .stat-icon.teal { background: linear-gradient(145deg, #1cbfc0, #08a2a6); color: #fff; }
.dashboard-page .stat-icon.dark-teal { background: linear-gradient(145deg, #0c5b7b, #064866); color: #fff; }

.dashboard-page .ten-stat-card strong {
  font-size: 17px;
  letter-spacing: -.15px;
}

.dashboard-page .ten-stat-card small {
  font-size: 9.5px;
  color: #64799a;
}

.dashboard-page .quick-action-item {
  min-height: 90px;
  padding: 10px 5px;
  border-color: #e3edf4;
  background: linear-gradient(145deg, #fff, #f4faff);
  box-shadow: 0 3px 12px rgba(17, 76, 104, .055);
}

.dashboard-page .quick-action-item:not(.primary) i {
  width: auto;
  height: auto;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  font-size: 25px;
  color: #0a7099;
}

.dashboard-page .quick-action-item:nth-child(2) i,
.dashboard-page .quick-action-item:nth-child(3) i,
.dashboard-page .quick-action-item:nth-child(4) i,
.dashboard-page .quick-action-item:nth-child(5) i,
.dashboard-page .quick-action-item:nth-child(6) i,
.dashboard-page .quick-action-item:nth-child(7) i,
.dashboard-page .quick-action-item:nth-child(8) i {
  background: transparent;
  border: 0;
  color: #0a7099;
}

.dashboard-page .quick-action-item.primary {
  background: linear-gradient(145deg, #0c9aad, #087e98);
  border-color: #087e98;
}

.dashboard-page .quick-action-item.primary i {
  width: 30px;
  height: 30px;
  font-size: 18px;
  background: #fff;
  color: #0b89a4;
  border: 0;
  box-shadow: 0 2px 7px rgba(0, 55, 77, .18);
}

.dashboard-page .quick-action-item strong { font-size: 11px; }
.dashboard-page .quick-action-item small { font-size: 9px; }

/* ==========================================================================\n+   SETTINGS PAGE\n+   ========================================================================== */
.settings-page .ten-page-content {
  background: radial-gradient(circle at 96% 4%, rgba(13, 154, 176, .06), transparent 26%), #f6fbfd;
}
.settings-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; margin-bottom: 18px; }
.settings-heading-copy { display: flex; align-items: center; gap: 14px; }
.settings-heading h1 { margin: 2px 0 0; color: var(--ten-navy-dark); font-size: 24px; letter-spacing: -.65px; }
.settings-heading p { margin: 4px 0 0; color: var(--ten-muted); font-size: 11.5px; }
.settings-eyebrow { color: var(--ten-accent); font-size: 9px; font-weight: 800; letter-spacing: 1.3px; }
.settings-eyebrow i { margin-right: 4px; }
.settings-back-btn { white-space: nowrap; }
.settings-layout { display: grid; grid-template-columns: minmax(0, 1fr) 310px; align-items: start; gap: 18px; }
.settings-main { margin-bottom: 0; }
.settings-tabs { display: flex; gap: 4px; padding: 10px 16px 0; border-bottom: 1px solid #e8f0f5; background: linear-gradient(180deg, #fff, #fafdff); }
.settings-tabs a { display: inline-flex; align-items: center; gap: 7px; padding: 12px 14px 11px; border-bottom: 2px solid transparent; color: #7a8fa8; font-size: 11.5px; font-weight: 800; transition: color .2s ease, border-color .2s ease, background .2s ease; }
.settings-tabs a:hover, .settings-tabs a.active { color: var(--ten-accent); border-bottom-color: var(--ten-accent); background: rgba(13, 154, 176, .05); }
.settings-section { padding: 22px 22px 20px; border-bottom: 1px solid #edf3f7; }
.settings-section-last { border-bottom: 0; }
.settings-section-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; margin-bottom: 16px; }
.settings-section-heading h2 { display: flex; align-items: center; gap: 8px; margin: 0; color: var(--ten-navy-dark); font-size: 14px; }
.settings-section-heading h2 i { color: var(--ten-accent); font-size: 15px; }
.settings-section-heading p { margin: 4px 0 0; color: var(--ten-muted); font-size: 10.5px; }
.settings-readonly, .settings-status-pill, .settings-configured { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; border-radius: 999px; padding: 6px 9px; color: #607b96; background: #f1f6f9; font-size: 9.5px; font-weight: 800; }
.settings-status-pill { color: #07865d; background: #e9faf2; }
.settings-status-pill i { font-size: 8px; }
.settings-fields-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.settings-field-wide { grid-column: 1 / -1; }
.settings-field { min-width: 0; padding: 12px 13px; border: 1px solid #e1edf3; border-radius: 10px; background: linear-gradient(145deg, #fff, #f8fcfe); transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease; }
.settings-field:hover { transform: translateY(-2px); border-color: #b8dce7; box-shadow: 0 7px 16px rgba(16, 83, 108, .08); }
.settings-field label { display: flex; align-items: center; gap: 7px; margin-bottom: 8px; color: #6d849d; font-size: 9.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .35px; }
.settings-field label i { width: 14px; color: var(--ten-accent); text-align: center; font-size: 11px; }
.settings-value { overflow: hidden; color: #153b61; font-size: 12px; font-weight: 800; line-height: 1.35; text-overflow: ellipsis; white-space: nowrap; }
.settings-color-value { display: flex; align-items: center; gap: 8px; }
.settings-color-value span { width: 18px; height: 18px; border-radius: 6px; box-shadow: inset 0 0 0 1px rgba(0,0,0,.08), 0 2px 5px rgba(0,0,0,.1); }
.settings-path-value { display: flex; align-items: center; gap: 7px; color: #39708f; font-size: 11px; }
.settings-path-value i { color: var(--ten-accent); font-size: 10px; }
.settings-contact-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.settings-contact-card { display: flex; align-items: center; gap: 10px; min-width: 0; padding: 13px; border: 1px solid #e1edf3; border-radius: 10px; background: #fbfdff; color: inherit; transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease; }
.settings-contact-card:hover { transform: translateY(-2px); border-color: #a8d5e1; box-shadow: 0 7px 16px rgba(16, 83, 108, .08); }
.settings-contact-card > span:nth-child(2) { display: flex; flex-direction: column; min-width: 0; }
.settings-contact-card small { color: #7b91a9; font-size: 9.5px; font-weight: 700; }
.settings-contact-card strong { overflow: hidden; margin-top: 3px; color: #163c60; font-size: 11.5px; text-overflow: ellipsis; white-space: nowrap; }
.settings-contact-icon { display: grid; place-items: center; width: 34px; height: 34px; flex: 0 0 34px; border-radius: 10px; font-size: 14px; }
.settings-contact-icon.phone { color: #0b8c69; background: #e5f8ef; }
.settings-contact-icon.mail { color: #436fd0; background: #eaf0ff; }
.contact-arrow { margin-left: auto; color: #93a7ba; font-size: 10px; }
.settings-operation-row { display: flex; align-items: center; gap: 12px; padding: 13px; border: 1px solid #dfeef3; border-radius: 10px; background: linear-gradient(90deg, #f5fbfd, #fff); }
.settings-operation-icon { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 11px; color: var(--ten-accent); background: #e5f7fa; font-size: 16px; }
.settings-operation-row > div:nth-child(2) { display: flex; flex-direction: column; }
.settings-operation-row small { color: #7a90a8; font-size: 9.5px; font-weight: 700; }
.settings-operation-row strong { margin-top: 3px; color: #163c60; font-size: 12px; }
.settings-configured { margin-left: auto; color: #07865d; background: #e9faf2; }
.settings-configured i { font-size: 8px; }
.settings-sidebar { display: flex; flex-direction: column; gap: 14px; }
.settings-preview-card { overflow: hidden; position: relative; padding: 17px; border-radius: 14px; color: #fff; background: linear-gradient(145deg, var(--preview-secondary), #086c83 60%, var(--preview-primary)); box-shadow: 0 11px 24px rgba(0, 61, 91, .2); }
.settings-preview-card:after { content: ''; position: absolute; width: 170px; height: 170px; right: -72px; bottom: -82px; border: 1px solid rgba(255,255,255,.18); border-radius: 50%; box-shadow: 0 0 0 20px rgba(255,255,255,.05), 0 0 0 42px rgba(255,255,255,.04); }
.settings-preview-top { display: flex; justify-content: space-between; color: rgba(255,255,255,.72); font-size: 9px; font-weight: 800; letter-spacing: 1px; }
.settings-brand-preview { position: relative; display: inline-flex; align-items: center; margin: 22px 0 12px; padding: 8px 12px; border-radius: 10px; background: rgba(255,255,255,.94); }
.settings-brand-preview img { width: 160px; max-width: 100%; height: 36px; object-fit: contain; }
.preview-dot { position: absolute; right: -4px; top: -4px; width: 10px; height: 10px; border: 2px solid #fff; border-radius: 50%; background: #20c785; }
.settings-preview-card h2 { position: relative; z-index: 1; margin: 0; font-size: 16px; letter-spacing: -.25px; }
.settings-preview-card p { position: relative; z-index: 1; margin: 5px 0 22px; color: rgba(255,255,255,.75); font-size: 9px; letter-spacing: .45px; }
.settings-preview-footer { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; padding-top: 11px; border-top: 1px solid rgba(255,255,255,.18); color: rgba(255,255,255,.8); font-size: 9.5px; font-weight: 700; }
.settings-preview-footer i { color: #65e1ae; margin-right: 4px; }
.settings-preview-footer b { color: #fff; font-size: 15px; }
.settings-status-card { padding: 16px; border: 1px solid #dcebf1; border-radius: 14px; background: #fff; box-shadow: 0 6px 17px rgba(17, 76, 104, .06); }
.settings-status-card-title { display: flex; align-items: center; gap: 8px; padding-bottom: 11px; border-bottom: 1px solid #edf3f7; color: #153b61; font-size: 12px; font-weight: 800; }
.status-live-dot { width: 8px; height: 8px; border-radius: 50%; background: #12b979; box-shadow: 0 0 0 4px #e4faf1; }
.settings-status-row { display: flex; justify-content: space-between; gap: 8px; padding-top: 12px; color: #7890a8; font-size: 10px; font-weight: 700; }
.settings-status-row strong { color: #355878; font-size: 10px; }
.settings-status-row .status-online { color: #07865d; }
.settings-status-row .status-online i { margin-right: 4px; font-size: 7px; }
.settings-db-note { display: flex; align-items: flex-start; gap: 10px; padding: 13px; border: 1px solid #cfe9ef; border-radius: 12px; color: #22617b; background: linear-gradient(145deg, #effafd, #f8fdff); }
.settings-db-note > i { margin-top: 2px; color: var(--ten-accent); font-size: 16px; }
.settings-db-note strong { font-size: 11px; }
.settings-db-note p { margin: 4px 0 0; color: #6b879c; font-size: 9.5px; line-height: 1.45; }
@media (max-width: 1050px) { .settings-layout { grid-template-columns: 1fr; } .settings-sidebar { display: grid; grid-template-columns: 1fr 1fr; align-items: start; } .settings-db-note { grid-column: 1 / -1; } }
@media (max-width: 680px) { .settings-heading { align-items: flex-start; flex-direction: column; } .settings-back-btn { align-self: stretch; } .settings-fields-grid, .settings-contact-grid, .settings-sidebar { grid-template-columns: 1fr; } .settings-section { padding: 18px 14px; } .settings-section-heading { flex-direction: column; } .settings-tabs { overflow-x: auto; padding-left: 8px; padding-right: 8px; } .settings-tabs a { white-space: nowrap; } .settings-db-note { grid-column: auto; } }

/* Reference-style panel settings and warehouse management pages. */
.settings-page .settings-page-tabs, .warehouse-page .warehouse-tabs { margin-bottom: 16px; padding: 5px; gap: 3px; border: 1px solid #dce7f0; border-radius: 10px; background: #f1f5f9; }
.settings-page .settings-page-tabs a, .warehouse-page .warehouse-tabs a { border: 1px solid transparent; border-radius: 8px; padding: 10px 15px; color: #526b86; }
.settings-page .settings-page-tabs a.active, .warehouse-page .warehouse-tabs a.active { border-color: #c4d5e4; background: #fff; color: #1d55cb; box-shadow: 0 2px 5px rgba(34, 76, 112, .08); }
.settings-page .settings-page-tabs a:hover, .warehouse-page .warehouse-tabs a:hover { border-bottom-color: transparent; background: #fff; color: var(--ten-accent); }
.settings-alert, .warehouse-alert { display: flex; align-items: center; gap: 8px; margin-bottom: 14px; padding: 11px 14px; border-radius: 8px; font-size: 11.5px; font-weight: 700; }
.warehouse-alert[hidden] { display: none !important; }
.settings-alert.success, .warehouse-alert.success { border: 1px solid #bcebd4; color: #08784f; background: #effcf5; }
.settings-alert.danger, .warehouse-alert.danger { border: 1px solid #f4c5c5; color: #b42323; background: #fff4f4; }
.reference-settings-card { margin-bottom: 16px; padding: 25px 25px 20px; border: 1px solid #dce6ef; border-radius: 12px; background: #fff; box-shadow: 0 3px 11px rgba(17, 76, 104, .045); }
.reference-card-heading { display: flex; align-items: flex-start; gap: 11px; padding-bottom: 14px; border-bottom: 1px solid #e9eff4; }
.reference-card-heading h2 { margin: 0; color: #0d2341; font-size: 16px; letter-spacing: -.25px; }
.reference-card-heading p { margin: 3px 0 0; color: #71849b; font-size: 11.5px; }
.reference-heading-icon { display: grid; place-items: center; width: 28px; height: 28px; flex: 0 0 28px; border-radius: 6px; font-size: 14px; }
.reference-heading-icon.orange { color: #ff7217; background: #fff1e6; }
.reference-heading-icon.blue { color: #3179ed; background: #e9f1ff; }
.reference-heading-icon.purple { color: #8141df; background: #f0e7ff; }
.reference-heading-icon.teal { color: #078b99; background: #e4f8fa; }
.reference-fields { display: grid; gap: 15px 19px; padding-top: 18px; }
.reference-fields.two-col { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.reference-fields .field { min-width: 0; }
.reference-fields .field.full { grid-column: 1 / -1; }
.reference-fields .field > label { display: block; margin-bottom: 6px; color: #18395e; font-size: 11.5px; font-weight: 800; }
.reference-fields .field > label span { color: #e23434; }
.reference-fields input, .reference-fields select { width: 100%; min-height: 38px; padding: 8px 13px; border: 1px solid #c6d6e6; border-radius: 8px; outline: 0; background: #fff; color: #122d50; font-family: inherit; font-size: 12px; transition: border-color .2s ease, box-shadow .2s ease; }
.reference-fields input:focus, .reference-fields select:focus { border-color: var(--ten-accent); box-shadow: 0 0 0 3px rgba(13, 154, 176, .12); }
.reference-help { display: block; margin-top: 5px; color: #7890a7; font-size: 10.5px; }
.reference-help b { color: #079b68; }
.reference-help i { margin: 0 3px; color: #b5c0cc; font-size: 5px; vertical-align: middle; }
.reference-color-input { display: flex; align-items: center; gap: 10px; }
.reference-color-input input[type=color] { width: 42px; height: 42px; flex: 0 0 42px; padding: 4px; border: 1px solid #c6d6e6; border-radius: 8px; background: #fff; cursor: pointer; }
.reference-color-input input[type=text] { flex: 1; }
.reference-check { display: inline-flex !important; align-items: center; gap: 8px; margin: 2px 24px 2px 0; color: #294765 !important; font-size: 11px !important; font-weight: 700 !important; }
.reference-check input { width: 16px; min-height: 16px; accent-color: var(--ten-accent); }
.label-format-preview { display: flex; align-items: center; justify-content: space-between; min-height: 38px; padding: 0 12px; border: 1px dashed #a9c7da; border-radius: 8px; color: #176487; background: #f3fbfd; font-size: 11px; font-weight: 800; }
.label-format-preview small { color: #7a91a7; font-size: 9px; font-weight: 600; }
.reference-form-actions { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 4px 2px 12px; color: #7289a0; font-size: 10.5px; }
.reference-form-actions i { margin-right: 4px; color: var(--ten-accent); }

/* Warehouse list / CRUD page. */
.warehouse-heading { margin-bottom: 16px; }
.warehouse-tabs b { min-width: 18px; padding: 2px 5px; border-radius: 99px; color: #fff; background: var(--ten-accent); font-size: 9px; text-align: center; }
.warehouse-metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 16px; }
.warehouse-metrics > div { display: flex; align-items: center; gap: 10px; padding: 13px 15px; border: 1px solid #dce8f0; border-radius: 10px; background: linear-gradient(145deg, #fff, #f6fbfd); box-shadow: 0 3px 10px rgba(17, 76, 104, .04); }
.warehouse-metrics > div > span:last-child { display: flex; flex-direction: column; }
.warehouse-metrics small { color: #7890a8; font-size: 9.5px; font-weight: 700; }
.warehouse-metrics strong { margin-top: 3px; color: #14395e; font-size: 19px; }
.warehouse-metric-icon { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 11px; font-size: 16px; }
.warehouse-metric-icon.blue { color: #2875de; background: #e7f0ff; }
.warehouse-metric-icon.green { color: #079b67; background: #e5faf0; }
.warehouse-metric-icon.orange { color: #eb8509; background: #fff2df; }
.warehouse-layout { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(330px, .8fr); gap: 16px; align-items: start; }
.warehouse-list-card, .warehouse-form-card { margin-bottom: 0; }
.warehouse-count-label { color: #7d94aa; font-size: 10px; font-weight: 700; }
.warehouse-table-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 14px; border-top: 1px solid #edf3f7; border-bottom: 1px solid #e2eaf0; background: #fff; }
.warehouse-table-search { display: flex; align-items: center; gap: 8px; width: min(285px, 100%); min-height: 31px; padding: 0 9px; border: 1px solid #cbd5e1; border-radius: 6px; color: #688099; background: #f8fafc; transition: border-color .2s ease, box-shadow .2s ease, background .2s ease; }
.warehouse-table-search:focus-within { border-color: var(--ten-accent); background: #fff; box-shadow: 0 0 0 3px rgba(13, 154, 176, .1); }
.warehouse-table-search i { font-size: 11px; }
.warehouse-table-search input { width: 100%; min-width: 0; padding: 6px 0; border: 0; outline: 0; color: #224463; background: transparent; font-size: 10.5px; }
.warehouse-table-search input::placeholder { color: #8ba0b3; }
.warehouse-page-size { display: inline-flex; align-items: center; gap: 6px; color: #64748b; font-size: 10px; font-weight: 700; white-space: nowrap; }
.warehouse-page-size select { min-height: 30px; padding: 5px 24px 5px 8px; border: 1px solid #cbd5e1; border-radius: 6px; outline: 0; color: #334155; background: #fff; font: 700 10px inherit; cursor: pointer; }
.warehouse-table-pagination { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 42px; padding: 8px 14px; border-top: 1px solid #e2e8f0; color: #64748b; background: #fff; font-size: 10.5px; }
.warehouse-pagination-controls { display: inline-flex; align-items: center; gap: 4px; }
.warehouse-pagination-btn { display: inline-flex; align-items: center; justify-content: center; min-width: 28px; height: 28px; padding: 0 6px; border: 1px solid #e2e8f0; border-radius: 5px; color: #334155; background: #fff; font-size: 10px; font-weight: 700; cursor: pointer; transition: all .15s ease; }
.warehouse-pagination-btn:hover:not(:disabled) { border-color: #cbd5e1; color: #0f172a; background: #f8fafc; }
.warehouse-pagination-btn.active { border-color: var(--ten-accent); color: #fff; background: var(--ten-accent); }
.warehouse-pagination-btn:disabled { opacity: .4; cursor: not-allowed; }
.warehouse-pagination-ellipsis { padding: 0 3px; color: #94a3b8; }
.warehouse-table-wrap { overflow-x: auto; }
.warehouse-table { width: 100%; border-collapse: collapse; min-width: 680px; }
.warehouse-table th { padding: 11px 14px; color: #688099; background: #f5f9fc; font-size: 9.5px; font-weight: 800; text-align: left; text-transform: uppercase; letter-spacing: .2px; }
.warehouse-table td { padding: 12px 14px; border-top: 1px solid #edf3f7; color: #385879; font-size: 11px; white-space: nowrap; }
.warehouse-table tbody tr { transition: background .18s ease; }
.warehouse-table tbody tr:hover { background: #f4fbfd; }
.warehouse-name-cell { display: flex; align-items: center; gap: 9px; }
.warehouse-name-cell > span { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 8px; color: var(--ten-accent); background: #e8f7fa; }
.warehouse-name-cell > div { display: flex; flex-direction: column; }
.warehouse-name-cell strong { color: #153c60; font-size: 11.5px; }
.warehouse-name-cell small { margin-top: 2px; color: #8398ad; font-size: 9px; font-weight: 700; }
.warehouse-status { display: inline-flex; align-items: center; gap: 5px; padding: 5px 8px; border-radius: 99px; font-size: 9px; font-weight: 800; }
.warehouse-status i { font-size: 6px; }
.warehouse-status.active { color: #07865d; background: #e7f9ef; }
.warehouse-status.inactive { color: #9a6c13; background: #fff5dc; }
.warehouse-actions { display: flex; align-items: center; gap: 6px; }
.warehouse-actions a, .warehouse-actions button { display: grid; place-items: center; width: 28px; height: 28px; border: 1px solid #d6e6ee; border-radius: 7px; color: #4e7890; background: #fff; cursor: pointer; font-size: 10px; transition: all .18s ease; }
.warehouse-actions a:hover { border-color: #8bcddd; color: var(--ten-accent); background: #effafd; }
.warehouse-actions button:hover { border-color: #f1b4b4; color: #da4040; background: #fff4f4; }
.warehouse-actions form { margin: 0; }
.warehouse-empty { padding: 38px !important; text-align: center; }
.warehouse-empty i { display: block; margin-bottom: 8px; color: #8fc9d5; font-size: 27px; }
.warehouse-empty strong, .warehouse-empty small { display: block; }
.warehouse-empty strong { color: #3b5d79; font-size: 12px; }
.warehouse-empty small { margin-top: 4px; color: #8aa0b5; font-size: 10px; }
.warehouse-cancel { color: #7a90a7; font-size: 10px; font-weight: 700; }
.warehouse-form { padding: 17px; }
.warehouse-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.warehouse-form-grid .field.full { grid-column: 1 / -1; }
.warehouse-form label { display: block; margin-bottom: 6px; color: #284967; font-size: 10px; font-weight: 800; }
.warehouse-form label span { color: #df3a3a; }
.warehouse-form input, .warehouse-form select { width: 100%; min-height: 37px; padding: 8px 10px; border: 1px solid #d3e2eb; border-radius: 7px; outline: 0; color: #224463; background: #fbfdff; font-family: inherit; font-size: 11px; }
.warehouse-form input:focus, .warehouse-form select:focus { border-color: var(--ten-accent); box-shadow: 0 0 0 3px rgba(13, 154, 176, .12); }
.warehouse-invalid { border-color: #d94b4b !important; background: #fff8f8 !important; box-shadow: 0 0 0 3px rgba(217, 75, 75, .1) !important; }
.warehouse-validation-note { display: block; margin-top: 4px; color: #c33434; font-size: 9px; font-weight: 700; line-height: 1.3; }
.warehouse-validation-note i { margin-right: 3px; }
.warehouse-input-icon { position: relative; display: flex; align-items: center; }
.warehouse-input-icon > i { position: absolute; left: 11px; z-index: 1; width: 15px; color: #3f6b87; font-size: 12px; text-align: center; pointer-events: none; }
.warehouse-input-icon input, .warehouse-input-icon select { padding-left: 34px; }
.warehouse-input-icon:focus-within > i { color: var(--ten-accent); }
.warehouse-select-wrap { width: 100%; }
.warehouse-form .select2-container { width: 100% !important; }
.warehouse-form .select2-container--default .select2-selection--single { height: 37px !important; min-height: 37px !important; padding: 8px 34px 8px 12px !important; border: 1px solid #d3e2eb !important; border-radius: 7px !important; background: #fbfdff !important; font-size: 11px !important; }
.warehouse-form .select2-container--default .select2-selection--single .select2-selection__rendered { padding-left: 0 !important; color: #224463 !important; font-size: 11px !important; line-height: 20px !important; }
.warehouse-form .select2-container--default .select2-selection--single .select2-selection__arrow { top: 0 !important; right: 8px !important; height: 35px !important; }
.warehouse-form .select2-container--default.select2-container--open .select2-selection--single { border-color: var(--ten-accent) !important; box-shadow: 0 0 0 3px rgba(13, 154, 176, .12) !important; background: #fff !important; }
.warehouse-form .select2-dropdown { border-color: #c8dbe7 !important; border-radius: 7px !important; box-shadow: 0 10px 25px rgba(0, 43, 73, .14) !important; }
.warehouse-form .select2-search--dropdown { padding: 7px !important; background: #fff !important; }
.warehouse-form .select2-search--dropdown .select2-search__field { min-height: 30px !important; padding: 6px 9px !important; border: 1px solid #c8dbe7 !important; border-radius: 6px !important; font-size: 10.5px !important; outline: 0 !important; }
.warehouse-form .select2-search--dropdown .select2-search__field:focus { border-color: var(--ten-accent) !important; box-shadow: 0 0 0 3px rgba(13, 154, 176, .1) !important; }
.warehouse-form .select2-results__option { padding: 9px 12px !important; font-size: 11px !important; }
.warehouse-form .select2-results__option--highlighted[aria-selected] { background: var(--ten-accent) !important; color: #fff !important; }
.warehouse-form .select2-results__option--selected { background: #e6f6f9 !important; color: #075875 !important; font-weight: 700 !important; }
.warehouse-form .select2-container.warehouse-invalid .select2-selection--single { border-color: #d94b4b !important; background: #fff8f8 !important; box-shadow: 0 0 0 3px rgba(217, 75, 75, .1) !important; }
.warehouse-save-btn { width: 100%; margin-top: 17px; }
body.warehouse-page { overflow-x: hidden; }
body.warehouse-page .ten-main, body.warehouse-page .ten-content { min-width: 0; max-width: 100%; overflow-x: hidden; }
body.warehouse-page .warehouse-table-wrap { max-width: 100%; }
@media (max-width: 900px) { .warehouse-layout { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .warehouse-table-toolbar, .warehouse-table-pagination { align-items: flex-start; flex-direction: column; } .warehouse-table-search { width: 100%; } .warehouse-pagination-controls { align-self: flex-end; } }
@media (max-width: 680px) { .reference-fields.two-col, .warehouse-metrics { grid-template-columns: 1fr; } .reference-fields .field.full, .warehouse-form-grid .field.full { grid-column: auto; } .reference-form-actions { align-items: flex-start; flex-direction: column; } .reference-form-actions .btn-primary { width: 100%; } .warehouse-metrics > div { justify-content: flex-start; } }

/* Compact settings mode. */
.settings-page .settings-page-tabs { margin-top: 0; margin-bottom: 10px; }
.settings-page .settings-page-tabs a { padding: 8px 13px; font-size: 11px; }
.settings-page .reference-settings-card { margin-bottom: 10px; padding: 15px 17px 14px; border-radius: 10px; }
.settings-page .reference-card-heading { gap: 9px; padding-bottom: 9px; }
.settings-page .reference-card-heading h2 { font-size: 14px; }
.settings-page .reference-card-heading p { margin-top: 2px; font-size: 10px; }
.settings-page .reference-heading-icon { width: 25px; height: 25px; flex-basis: 25px; font-size: 12px; }
.settings-page .reference-fields { gap: 9px 14px; padding-top: 12px; }
.settings-page .reference-fields.two-col { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.settings-page .reference-fields .field.full { grid-column: 1 / -1; }
.reference-sections-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; align-items: stretch; }
.settings-page .reference-sections-grid .reference-settings-card { display: flex; flex-direction: column; height: 100%; margin-bottom: 0; min-width: 0; }
.settings-page .reference-sections-grid .reference-fields { flex: 0 0 auto; align-content: start; }
.settings-page .reference-sections-grid .reference-fields.two-col { grid-template-columns: 1fr; }
.settings-page .reference-sections-grid .reference-fields .field.full { grid-column: auto; }
.settings-page .reference-sections-grid .support-settings-card .reference-fields .field { grid-column: auto; }
.settings-page .reference-sections-grid .reference-card-heading { min-height: 54px; }
.settings-page .reference-sections-grid .reference-card-heading h2 { font-size: 13px; }
.settings-page .reference-sections-grid .reference-card-heading p { line-height: 1.35; }
.identity-split-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; padding-top: 12px; }
.identity-side-card { grid-column: span 2; }
.identity-side-card { padding: 12px; border: 1px solid #e2edf3; border-radius: 9px; background: linear-gradient(145deg, #fbfdff, #f5fafc); }
.identity-side-title { display: flex; align-items: center; gap: 7px; margin-bottom: 10px; color: #315675; font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .3px; }
.identity-side-title i { color: var(--ten-accent); font-size: 11px; }
.identity-side-card .field + .field { margin-top: 10px; }
.identity-preview { display: flex; flex-direction: column; gap: 5px; margin-top: 10px; padding: 9px 10px; border-left: 3px solid var(--ten-accent); border-radius: 0 6px 6px 0; background: #eaf8fa; }
.identity-preview small { color: #66849a; font-size: 9px; }
.identity-preview strong { overflow: hidden; color: #17617b; font-size: 10.5px; text-overflow: ellipsis; white-space: nowrap; }
.settings-page .reference-fields .field > label { margin-bottom: 4px; font-size: 10.5px; }
.settings-page .reference-fields input, .settings-page .reference-fields select { min-height: 34px; padding: 6px 10px; font-size: 11px; }
.settings-page .reference-color-input input[type=color] { width: 36px; height: 36px; flex-basis: 36px; }
.settings-input-icon { position: relative; display: flex; align-items: center; min-width: 0; }
.settings-input-icon > i { position: absolute; left: 11px; z-index: 1; width: 14px; color: #54758e; font-size: 11px; text-align: center; pointer-events: none; }
.settings-input-icon > input { padding-left: 32px !important; }
.settings-input-icon:focus-within > i { color: var(--ten-accent); }
.reference-color-input .settings-input-icon { flex: 1; }
.settings-file-picker { display: flex; align-items: center; gap: 8px; min-width: 0; }
.settings-file-picker .settings-input-icon { flex: 1; }
.settings-file-picker input[type=file] { padding: 5px 8px 5px 32px !important; font-size: 10px !important; cursor: pointer; }
.settings-file-picker input[type=file]::file-selector-button { margin-right: 8px; padding: 5px 9px; border: 1px solid #b9d3e2; border-radius: 6px; color: #125779; background: #edf8fb; font: 700 10px inherit; cursor: pointer; }
.settings-file-picker input[type=file]::file-selector-button:hover { border-color: var(--ten-accent); background: #e1f6fa; }
.settings-file-name { flex: 0 0 auto; max-width: 86px; overflow: hidden; color: #6d8498; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.settings-page .reference-help { margin-top: 3px; font-size: 9px; }
.settings-page .reference-form-actions { padding: 0 2px 4px; font-size: 9.5px; }
.settings-page .reference-form-actions .btn-primary { padding: 8px 14px; font-size: 11px; }
.settings-page .reference-form-actions { justify-content: flex-end; margin-top: 10px; padding: 2px 0 4px; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
.settings-page .reference-form-actions .btn-primary { min-width: 168px; }
.warehouse-page .warehouse-tabs { margin-top: 0; margin-bottom: 10px; padding: 4px; }
.warehouse-page .warehouse-tabs a { padding: 8px 13px; font-size: 11px; }
.settings-invalid { border-color: #e34b4b !important; background: #fff7f7 !important; box-shadow: 0 0 0 3px rgba(227, 75, 75, .1) !important; }
.settings-validation-note { display: block; margin-top: 4px; color: #d43838; font-size: 9px; font-weight: 700; }
.settings-validation-note i { margin-right: 3px; }
.ten-toast { position: fixed; top: 78px; right: 24px; z-index: 9999; display: flex; align-items: center; gap: 11px; width: min(390px, calc(100vw - 32px)); min-height: 72px; padding: 12px 14px; overflow: hidden; border: 1px solid #dfe8ef; border-left: 5px solid #16b67a; border-radius: 10px; background: #fff; box-shadow: 0 12px 28px rgba(16, 48, 74, .18); animation: tenToastIn .24s ease-out; }
.ten-toast[hidden] { display: none !important; }
.ten-toast.success { border-left-color: #16b67a; }
.ten-toast.danger { border-left-color: #e04b4b; }
.ten-toast-icon { display: grid; place-items: center; width: 33px; height: 33px; flex: 0 0 33px; border-radius: 9px; color: #079b68; background: #e1f8ee; font-size: 14px; }
.ten-toast.danger .ten-toast-icon { color: #d13d3d; background: #ffebeb; }
.ten-toast-copy { display: flex; min-width: 0; flex: 1; flex-direction: column; gap: 3px; }
.ten-toast-copy strong { color: #102d4d; font-size: 13px; }
.ten-toast-copy small { color: #637a91; font-size: 11px; line-height: 1.35; }
.ten-toast-close { align-self: flex-start; padding: 0 2px; border: 0; color: #94a6b7; background: transparent; cursor: pointer; font-size: 22px; line-height: 1; }
.ten-toast-close:hover { color: #3b5b76; }
.ten-toast-progress { position: absolute; right: 0; bottom: 0; left: 0; height: 3px; background: #16b67a; animation: tenToastProgress 4.2s linear forwards; transform-origin: left; }
.ten-toast.danger .ten-toast-progress { background: #e04b4b; }
@keyframes tenToastIn { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: translateY(0); } }
@keyframes tenToastProgress { from { transform: scaleX(1); } to { transform: scaleX(0); } }
@media (max-width: 680px) { .ten-toast { top: 64px; right: 12px; width: calc(100vw - 24px); } }
.identity-settings-card .reference-fields .field.full, .support-settings-card .reference-fields .field { grid-column: auto; }
@media (max-width: 900px) { .settings-page .reference-fields.two-col { grid-template-columns: repeat(2, minmax(0, 1fr)); } .identity-settings-card .reference-fields .field.full { grid-column: 1 / -1; } }
@media (max-width: 680px) { .settings-page .reference-fields.two-col { grid-template-columns: 1fr; } }
@media (max-width: 680px) { .identity-split-grid { grid-template-columns: 1fr; } .identity-side-card { grid-column: auto; } }
@media (max-width: 1100px) { .reference-sections-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .reference-sections-grid .theme-settings-card { grid-column: 1 / -1; } .settings-page .reference-sections-grid .theme-settings-card .reference-fields.two-col { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 680px) { .reference-sections-grid { grid-template-columns: 1fr; } .reference-sections-grid .theme-settings-card { grid-column: auto; } .settings-page .reference-sections-grid .theme-settings-card .reference-fields.two-col { grid-template-columns: 1fr; } }

/* Compact New Booking layout and stable Select2 dropdowns. */
body.booking-page { overflow-x: hidden; }
.booking-page .ten-main,
.booking-page .ten-content { min-width: 0; max-width: 100%; overflow-x: hidden; }
.booking-page .page-heading { margin-bottom: 10px; }
.booking-page .page-heading .page-title-icon { width: 38px; height: 38px; font-size: 17px; }
.booking-page .page-heading h1 { font-size: 19px; }
.booking-page .page-heading p { font-size: 10.5px; }
.booking-page .booking-layout { grid-template-columns: minmax(0, 1.28fr) minmax(360px, .92fr); gap: 12px; }
.booking-page .booking-stepper { gap: 8px; margin-bottom: 10px; }
.booking-page .booking-stepper span { gap: 6px; font-size: 10.5px; }
.booking-page .booking-stepper b { width: 21px; height: 21px; font-size: 10px; }
.booking-page .portal-card { margin-bottom: 10px; }
.booking-page .portal-card-header { min-height: 0; padding: 9px 13px; }
.booking-page .portal-card-header h2 { gap: 6px; font-size: 12.5px; }
.booking-page .portal-card-header h2 i { font-size: 13px; }
.booking-page .portal-card-body { padding: 12px 13px; }
.booking-page .booking-detail-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 11px; }
.booking-page .booking-detail-grid.appointment-grid { margin-top: 4px; }
.booking-page .ten-form .field { gap: 4px; margin-bottom: 7px; }
.booking-page .ten-form .field > label,
.booking-page .form-label-custom { font-size: 10.5px; }
.booking-page .ten-form input,
.booking-page .ten-form select,
.booking-page .ten-form textarea,
.booking-page .form-input-custom { min-height: 35px; padding: 7px 9px; font-size: 11px; }
.booking-page .input-icon-field i { left: 10px; font-size: 12px; }
.booking-page .input-icon-field input { padding-left: 30px; }
.booking-page .booking-select-icon,
.booking-page .booking-input-icon,
.booking-page .booking-textarea-icon { position: relative; min-width: 0; }
.booking-page .booking-select-icon > i,
.booking-page .booking-input-icon > i,
.booking-page .booking-textarea-icon > i { position: absolute; top: 50%; left: 10px; z-index: 2; width: 13px; color: #4b718b; font-size: 11px; text-align: center; pointer-events: none; transform: translateY(-50%); }
.booking-page .booking-select-icon:focus-within > i,
.booking-page .booking-input-icon:focus-within > i,
.booking-page .booking-textarea-icon:focus-within > i { color: var(--ten-accent); }
.booking-page .booking-select-icon .select2-container--default .select2-selection--single { padding-left: 31px !important; }
.booking-page .booking-select-icon .select2-container--default .select2-selection--single .select2-selection__rendered { padding-left: 0 !important; }
.booking-page .booking-input-icon input { padding-left: 29px !important; }
.booking-page .booking-textarea-icon > i { top: 12px; transform: none; }
.booking-page .booking-textarea-icon textarea { min-height: 64px; padding-left: 30px !important; }
.booking-page .choice-row { gap: 8px; margin-top: 4px; }
.booking-page .choice { min-height: 53px; padding: 8px 10px; }
.booking-page .choice b { font-size: 11.5px; }
.booking-page .choice small { font-size: 9px; }
.booking-page .choice input[type="radio"] { top: 10px; right: 10px; width: 16px !important; height: 16px; min-width: 16px; min-height: 16px !important; margin: 0; padding: 0 !important; border: 0; border-radius: 50%; background: transparent; box-shadow: none; }
.booking-page .booking-confirmation-label { display: flex; align-items: center; gap: 7px; margin: 14px 0; color: #294967; font-size: 11px; line-height: 1.35; cursor: pointer; }
.booking-page .booking-confirmation-label input[type="checkbox"] { width: 14px !important; height: 14px; min-width: 14px; min-height: 14px !important; flex: 0 0 14px; margin: 0; padding: 0 !important; border: 1px solid #b9cedc; border-radius: 4px; background: #fff; box-shadow: none; accent-color: var(--ten-accent); }
.booking-page .booking-confirmation-label input[type="checkbox"]:focus { box-shadow: 0 0 0 3px rgba(13, 154, 176, .12); }

/* All booking selects use the same compact box and a contained dropdown. */
.booking-page .select2-container { width: 100% !important; min-width: 0; }
.booking-page .select2-container--default .select2-selection--single {
  height: 35px !important;
  min-height: 35px !important;
  padding: 7px 29px 7px 9px !important;
  border: 1px solid #d4e3ed !important;
  border-radius: 7px !important;
  background: #fbfdff !important;
  font-size: 11px !important;
}
.booking-page .select2-container--default .select2-selection--single .select2-selection__rendered {
  padding-left: 0 !important;
  color: #244562 !important;
  font-size: 11px !important;
  line-height: 19px !important;
}
.booking-page .select2-container--default .select2-selection--single .select2-selection__placeholder { color: #7189a2 !important; }
.booking-page .select2-container--default .select2-selection--single .select2-selection__arrow { top: 0 !important; right: 7px !important; height: 33px !important; }
.booking-page .select2-container--default.select2-container--open .select2-selection--single {
  border-color: var(--ten-accent) !important;
  background: #fff !important;
  box-shadow: 0 0 0 3px rgba(13, 154, 176, .11) !important;
}
.select2-dropdown.booking-select2-dropdown {
  max-width: min(calc(100vw - 24px), 560px);
  border: 1px solid #c8dbe7 !important;
  border-radius: 7px !important;
  box-shadow: 0 10px 24px rgba(0, 43, 73, .14) !important;
  overflow: hidden;
}
.select2-dropdown.booking-select2-dropdown .select2-search--dropdown { padding: 6px !important; background: #fff !important; }
.select2-dropdown.booking-select2-dropdown .select2-search__field {
  min-height: 29px !important;
  padding: 6px 8px !important;
  border: 1px solid #c8dbe7 !important;
  border-radius: 6px !important;
  font-size: 10.5px !important;
  outline: 0;
}
.select2-dropdown.booking-select2-dropdown .select2-search__field:focus { border-color: var(--ten-accent) !important; box-shadow: 0 0 0 3px rgba(13, 154, 176, .1); }
.select2-dropdown.booking-select2-dropdown .select2-results__option { padding: 7px 10px !important; font-size: 10.5px !important; }
.select2-dropdown.booking-select2-dropdown .select2-results__option--highlighted[aria-selected] { color: #fff !important; background: var(--ten-accent) !important; }
.select2-dropdown.booking-select2-dropdown .select2-results__option--selected { color: #075875 !important; background: #e6f6f9 !important; font-weight: 700 !important; }

.booking-page .material-table { min-width: 0; }
.booking-page .material-table th { padding: 7px 8px; font-size: 10px; }
.booking-page .material-table td { padding: 5px 5px; }
.booking-page .material-table input,
.booking-page .material-table select { min-height: 32px; padding: 5px 7px; font-size: 10.5px; }
.booking-page .material-table .select2-container--default .select2-selection--single { height: 32px !important; min-height: 32px !important; padding-top: 5px !important; padding-bottom: 5px !important; }
.booking-page .material-table .select2-container--default .select2-selection--single .select2-selection__arrow { height: 30px !important; }
.booking-page .material-table .booking-input-icon > i,
.booking-page .material-table .booking-select-icon > i { left: 7px; width: 11px; font-size: 9px; }
.booking-page .material-table .booking-input-icon input { padding-left: 21px !important; }
.booking-page .material-table .booking-select-icon .select2-container--default .select2-selection--single { padding-left: 24px !important; }
.booking-page .booking-recent-card .table-scroll { overflow-x: hidden; }
.booking-page .booking-recent-card .portal-table { width: 100%; min-width: 0; table-layout: fixed; font-size: 9px !important; }
.booking-page .booking-recent-card .portal-table th,
.booking-page .booking-recent-card .portal-table td { max-width: 0; padding: 6px 4px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.booking-page .booking-recent-card .portal-table th:nth-child(1), .booking-page .booking-recent-card .portal-table td:nth-child(1) { width: 24%; }
.booking-page .booking-recent-card .portal-table th:nth-child(2), .booking-page .booking-recent-card .portal-table td:nth-child(2) { width: 14%; }
.booking-page .booking-recent-card .portal-table th:nth-child(3), .booking-page .booking-recent-card .portal-table td:nth-child(3) { width: 19%; }
.booking-page .booking-recent-card .portal-table th:nth-child(4), .booking-page .booking-recent-card .portal-table td:nth-child(4) { width: 17%; }
.booking-page .booking-recent-card .portal-table th:nth-child(5), .booking-page .booking-recent-card .portal-table td:nth-child(5) { width: 13%; }
.booking-page .booking-recent-card .portal-table th:nth-child(6), .booking-page .booking-recent-card .portal-table td:nth-child(6) { width: 13%; }
.booking-page .booking-recent-card .view-btn { padding: 3px 5px; font-size: 8.5px; }
.booking-page .booking-upload-grid { gap: 6px; }
.booking-page .upload-box { gap: 3px; padding: 8px 5px; }
.booking-page .upload-box i { font-size: 17px; }
.booking-page .upload-box span { font-size: 9.5px; }
.booking-page .upload-box em { padding: 3px 8px; font-size: 9px; }
.booking-page .upload-box small { font-size: 8px; }
.booking-page .booking-success-card { padding: 15px 13px !important; }
.booking-page .booking-success-card .success-icon { width: 46px; height: 46px; margin-bottom: 8px; font-size: 21px; }
.booking-page .booking-success-card h2 { font-size: 14px; }
.booking-page .booking-success-card p { margin-bottom: 9px; font-size: 10px; }
.booking-page .booking-ref-box,
.booking-page .booking-status-box { padding: 8px 10px; }
.booking-page .booking-ref-box span,
.booking-page .booking-status-box span { font-size: 9.5px; }
.booking-page .booking-ref-box strong { font-size: 11px; }
.booking-page .booking-status-box b { padding: 3px 7px; font-size: 9.5px; }

@media (max-width: 1150px) {
  .booking-page .booking-layout { grid-template-columns: 1fr; }
}
@media (max-width: 680px) {
  .booking-page .booking-detail-grid { grid-template-columns: 1fr; }
  .booking-page .choice-row { grid-template-columns: 1fr; }
  .booking-page .booking-upload-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Submit confirmation modal. It stays out of the page layout until a booking is saved. */
.booking-success-modal { position: fixed; inset: 0; z-index: 10000; display: none; align-items: center; justify-content: center; padding: 20px; }
.booking-success-modal.is-open { display: flex; }
.booking-success-modal-backdrop { position: absolute; inset: 0; background: rgba(7, 31, 52, .48); backdrop-filter: blur(2px); }
.booking-success-modal-dialog { position: relative; width: min(440px, 100%); padding: 22px 22px 20px; border: 1px solid #dce9f0; border-top: 4px solid #16b67a; border-radius: 13px; background: #fff; box-shadow: 0 22px 60px rgba(7, 31, 52, .28); text-align: center; animation: bookingModalIn .2s ease-out; }
.booking-success-modal-close { position: absolute; top: 9px; right: 12px; width: 27px; height: 27px; padding: 0; border: 0; border-radius: 50%; color: #8398aa; background: transparent; cursor: pointer; font-size: 22px; line-height: 1; }
.booking-success-modal-close:hover { color: #244562; background: #f0f6f9; }
.booking-success-modal-dialog .success-icon { width: 52px; height: 52px; margin: 2px auto 10px; box-shadow: 0 0 0 7px #e5f8ef; }
.booking-success-modal-dialog h2 { margin: 0; color: var(--ten-navy-dark); font-size: 16px; }
.booking-success-modal-dialog > p { margin: 5px 0 13px; color: #6d8296; font-size: 11px; }
.booking-success-modal-dialog .booking-ref-box,
.booking-success-modal-dialog .booking-status-box { max-width: none; margin: 7px 0; padding: 9px 11px; text-align: left; }
.booking-success-modal-dialog .booking-ref-box span,
.booking-success-modal-dialog .booking-status-box span { font-size: 10px; }
.booking-success-modal-dialog .booking-ref-box strong { font-size: 12px; }
.booking-success-modal-dialog .booking-status-box b { padding: 4px 8px; font-size: 10px; }
.booking-success-modal-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 13px; }
.booking-success-modal-actions .btn-outline,
.booking-success-modal-actions .btn-primary { min-width: 0; padding: 8px 9px; font-size: 10.5px; }
.booking-success-details { margin: 10px 0 4px; padding: 9px; border: 1px solid #e2edf2; border-radius: 8px; background: #f8fcfd; text-align: left; }
.booking-success-detail-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px 10px; }
.booking-success-detail-grid div { min-width: 0; }
.booking-success-details small { display: block; margin-bottom: 2px; color: #7890a2; font-size: 8.5px; }
.booking-success-detail-grid strong { display: block; overflow: hidden; color: #183b5b; font-size: 9.5px; text-overflow: ellipsis; white-space: nowrap; }
.booking-success-materials,
.booking-success-documents { margin-top: 9px; padding-top: 7px; border-top: 1px solid #e1edf2; }
.booking-success-materials > small,
.booking-success-documents > small { color: #315675; font-weight: 800; }
.booking-success-materials div,
.booking-success-documents div { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 4px 0; color: #42627e; font-size: 8.5px; }
.booking-success-materials span,
.booking-success-documents span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.booking-success-materials b,
.booking-success-documents b { flex: 0 0 auto; color: #58738a; font-size: 8.5px; font-weight: 700; }
.booking-success-documents b.uploaded { color: #07865d; }
.booking-success-documents b.not-uploaded { color: #98a9b5; font-weight: 600; }
.booking-success-documents i { margin-right: 3px; color: #e34b4b; }
.booking-success-notes { margin-top: 8px; padding-top: 7px; border-top: 1px solid #e1edf2; }
.booking-success-notes p { margin: 3px 0 0; color: #42627e; font-size: 9px; line-height: 1.35; text-align: left; }
.booking-stage-panel[hidden] { display: none !important; }
.booking-stage-actions { display: flex; align-items: center; justify-content: flex-end; gap: 9px; margin: 2px 0 10px; padding: 0 2px; }
.booking-stage-actions > span { margin-right: auto; color: #8196a8; font-size: 9.5px; }
.booking-stage-actions .btn-primary,
.booking-stage-actions .btn-outline { padding: 8px 12px; font-size: 10.5px; }
.booking-stage-actions-between { justify-content: space-between; }
.booking-review-summary { margin: 0 0 13px; padding: 11px 12px; border: 1px solid #dcebf1; border-radius: 9px; background: linear-gradient(135deg, #f8fcfd, #f2fafb); }
.booking-review-heading { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 8px; color: #153958; font-size: 12px; font-weight: 800; }
.booking-review-heading i { color: var(--ten-accent); }
.booking-review-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 7px; }
.booking-review-item { min-width: 0; padding: 6px 7px; border: 1px solid #e3eef3; border-radius: 6px; background: #fff; }
.booking-review-item small { display: block; margin-bottom: 2px; color: #7890a2; font-size: 8.5px; }
.booking-review-item strong { display: block; overflow: hidden; color: #244562; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.booking-review-list { margin-top: 8px; padding-top: 7px; border-top: 1px solid #dcebf1; }
.booking-review-list > small { color: #54738b; font-size: 9px; font-weight: 800; }
.booking-review-list div { display: flex; justify-content: space-between; gap: 8px; padding-top: 4px; color: #41617a; font-size: 9px; }
.booking-review-list span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.booking-review-list b { flex: 0 0 auto; font-weight: 700; }
.booking-review-docs { margin-top: 7px; color: #5a758b; font-size: 9px; }
.booking-review-docs i { margin-right: 3px; color: #e34b4b; }
.booking-review-heading small { color: #7c93a7; font-size: 8.5px; font-weight: 600; }
.booking-stepper span.completed { color: var(--ten-accent); }
.booking-stepper span.completed b { color: #fff; background: var(--ten-accent); }
@keyframes bookingModalIn { from { opacity: 0; transform: translateY(8px) scale(.98); } to { opacity: 1; transform: translateY(0) scale(1); } }
@media (max-width: 480px) {
  .booking-success-modal { padding: 12px; }
  .booking-success-modal-dialog { padding: 19px 14px 15px; }
  .booking-success-modal-actions { grid-template-columns: 1fr; }
  .booking-success-detail-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 680px) {
  .booking-review-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

