@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');

:root {
  /* Color Palette - Premium Dark Mode Primary */
  --bg-primary: #0a0e1a;
  --bg-secondary: #111827;
  --bg-tertiary: #1f2937;
  --bg-glass: rgba(17, 24, 39, 0.7);
  --bg-glass-hover: rgba(31, 41, 55, 0.8);
  --border-color: rgba(255, 255, 255, 0.05);
  --border-color-hover: rgba(255, 255, 255, 0.09);
  
  --primary-color: #3b82f6; /* Electric Blue */
  --primary-glow: rgba(59, 130, 246, 0.35);
  --primary-hover: #2563eb;
  
  --accent-color: #10b981; /* Emerald Teal */
  --accent-glow: rgba(16, 185, 129, 0.3);
  --accent-hover: #059669;
  
  --warning-color: #f59e0b; /* Amber */
  --warning-glow: rgba(245, 158, 11, 0.2);
  --danger-color: #ef4444; /* Crimson Red */
  --danger-glow: rgba(239, 68, 68, 0.2);
  --info-color: #06b6d4; /* Cyan */
  
  --text-primary: #f9fafb; /* Near White */
  --text-secondary: #9ca3af; /* Muted Grey */
  --text-tertiary: #6b7280; /* Darker Grey */
  
  /* Fonts */
  --font-sans: 'Inter', system-ui, sans-serif;
  --font-heading: 'Outfit', system-ui, sans-serif;
  
  /* Layout Options — sharp edges, no rounding */
  --border-radius-sm: 0px;
  --border-radius-md: 0px;
  --border-radius-lg: 0px;
  --border-radius-xl: 0px;
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  /* Layered shadows for the "shadowed sharp edge" look: soft ambient + hard offset step */
  --box-shadow-sm: 0 6px 16px -8px rgba(0, 0, 0, 0.7), 0 2px 0 -1px rgba(0, 0, 0, 0.5);
  --box-shadow-md: 0 16px 34px -16px rgba(0, 0, 0, 0.75), 0 4px 0 -1px rgba(0, 0, 0, 0.45);
  --box-shadow-lg: 0 30px 60px -22px rgba(0, 0, 0, 0.82), 0 8px 0 -2px rgba(0, 0, 0, 0.4);
  --edge-shadow: 0 28px 70px -20px rgba(0, 0, 0, 0.85), 0 8px 0 -2px rgba(0, 0, 0, 0.55);
  --neon-glow: 0 0 15px var(--primary-glow);
}

/* Sharp edges everywhere — overrides rounded corners (incl. inline styles) app-wide */
*,
*::before,
*::after {
  border-radius: 0 !important;
}

/* CSS Resets & Base Elements */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-primary);
  background-image: 
    radial-gradient(at 10% 20%, rgba(59, 130, 246, 0.08) 0px, transparent 50%),
    radial-gradient(at 90% 80%, rgba(16, 185, 129, 0.05) 0px, transparent 50%);
  background-attachment: fixed;
  color: var(--text-primary);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  overflow-x: hidden;
}

#root {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Scrollbar Customization */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
  background: var(--bg-tertiary);
  border-radius: var(--border-radius-sm);
  border: 2px solid var(--bg-primary);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--text-tertiary);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

p {
  color: var(--text-secondary);
}

a {
  color: var(--primary-color);
  text-decoration: none;
  transition: var(--transition-fast);
}

a:hover {
  color: var(--primary-hover);
}

/* Glassmorphism Styles */
.glass-panel {
  background: var(--bg-glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--box-shadow-md);
  transition: var(--transition-normal);
}

.glass-panel:hover {
  border-color: var(--border-color-hover);
  box-shadow: var(--box-shadow-lg);
}

/* Interactive Elements */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: var(--border-radius-md);
  border: 1px solid transparent;
  cursor: pointer;
  transition: var(--transition-fast);
  text-decoration: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary-color), #1d4ed8);
  color: #fff;
  box-shadow: 0 4px 12px var(--primary-glow);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(59, 130, 246, 0.5);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--border-color-hover);
  transform: translateY(-2px);
}

.btn-secondary:active {
  transform: translateY(0);
}

.btn-border {
  background: transparent;
  border: 2px solid var(--primary-color);
  color: var(--primary-color);
  font-weight: 600;
}

.btn-border:hover {
  background: rgba(59, 130, 246, 0.1);
  border-color: var(--primary-hover);
  color: var(--primary-hover);
  transform: translateY(-2px);
}

.btn-border:active {
  transform: translateY(0);
}

/* Border button color variants */
.btn-border-success {
  border-color: #10b981;
  color: #10b981;
}

.btn-border-success:hover {
  background: rgba(16, 185, 129, 0.1);
  border-color: #059669;
  color: #059669;
}

.btn-border-danger {
  border-color: #ef4444;
  color: #ef4444;
}

.btn-border-danger:hover {
  background: rgba(239, 68, 68, 0.1);
  border-color: #dc2626;
  color: #dc2626;
}

.btn-border-warning {
  border-color: #f59e0b;
  color: #f59e0b;
}

.btn-border-warning:hover {
  background: rgba(245, 158, 11, 0.1);
  border-color: #d97706;
  color: #d97706;
}

.btn-border-accent {
  border-color: var(--accent-color);
  color: var(--accent-color);
}

.btn-border-accent:hover {
  background: rgba(16, 185, 129, 0.1);
  border-color: var(--accent-hover);
  color: var(--accent-hover);
}

.btn-accent {
  background: linear-gradient(135deg, var(--accent-color), #047857);
  color: #fff;
  box-shadow: 0 4px 12px var(--accent-glow);
}

.btn-accent:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(16, 185, 129, 0.5);
}

.btn-danger {
  background: linear-gradient(135deg, var(--danger-color), #b91c1c);
  color: #fff;
  box-shadow: 0 4px 12px var(--danger-glow);
}

.btn-danger:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(239, 68, 68, 0.5);
}

.btn-sm {
  padding: 6px 12px;
  font-size: 0.85rem;
  border-radius: var(--border-radius-sm);
}

/* Forms & Inputs */
.form-group {
  margin-bottom: 20px;
  text-align: left;
}

.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 8px;
  color: var(--text-secondary);
}

.form-input, .form-select, .form-textarea {
  width: 100%;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-md);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  transition: var(--transition-fast);
  outline: none;
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--primary-color);
  background: rgba(255, 255, 255, 0.06);
  box-shadow: 0 0 0 3px var(--primary-glow);
}

.form-textarea {
  resize: vertical;
  min-height: 100px;
}

/* Status Badges */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 50px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.badge-pending {
  background: rgba(245, 158, 11, 0.15);
  color: var(--warning-color);
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.badge-approved {
  background: rgba(6, 182, 212, 0.15);
  color: var(--info-color);
  border: 1px solid rgba(6, 182, 212, 0.3);
}

.badge-in-progress, .badge-active {
  background: rgba(59, 130, 246, 0.15);
  color: var(--primary-color);
  border: 1px solid rgba(59, 130, 246, 0.3);
}

.badge-completed, .badge-paid, .badge-accepted {
  background: rgba(16, 185, 129, 0.15);
  color: var(--accent-color);
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.badge-cancelled, .badge-unpaid, .badge-rejected {
  background: rgba(239, 68, 68, 0.15);
  color: var(--danger-color);
  border: 1px solid rgba(239, 68, 68, 0.3);
}

/* Layout Utilities */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

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

.flex-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

.gap-10 { gap: 10px; }
.gap-20 { gap: 20px; }

.section-padding {
  padding: 60px 0;
}

.section-title {
  font-size: 2.25rem;
  margin-bottom: 12px;
  text-align: center;
}

.section-subtitle {
  color: var(--text-secondary);
  text-align: center;
  margin-bottom: 40px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* Custom styles for dashboard & components */
.main-content {
  flex: 1;
  padding-bottom: 60px;
}

@media (max-width: 760px) {
  .navbar.no-print {
    width: calc(100% - 24px) !important;
    max-width: calc(100% - 24px) !important;
    margin: 12px auto 0 !important;
    padding: 12px !important;
    gap: 12px !important;
    overflow: hidden;
  }

  .navbar-logo {
    min-width: max-content;
  }

  .navbar-logo span {
    font-size: 1rem !important;
  }

  .navbar-links {
    min-width: 0;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scrollbar-width: none;
    flex: 1 1 auto;
  }

  .navbar-links::-webkit-scrollbar {
    display: none;
  }

  .navbar-tab-button {
    flex: 0 0 auto;
    padding: 9px 11px !important;
  }

  .navbar-tab-label {
    display: none;
  }

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

/* CSS Transitions for state swaps */
.fade-in {
  animation: fadeIn 0.4s ease-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive View Layout Row */
.view-layout {
  display: flex;
  gap: 24px;
}

@media (max-width: 950px) {
  .view-layout {
    flex-direction: column !important;
  }
}

.portal-hero {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: stretch;
  margin-bottom: 24px;
  padding: 34px;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-lg);
  background:
    linear-gradient(135deg, rgba(59, 130, 246, 0.14), rgba(16, 185, 129, 0.08)),
    rgba(17, 24, 39, 0.82);
}

.staff-hero {
  background:
    linear-gradient(135deg, rgba(6, 182, 212, 0.12), rgba(245, 158, 11, 0.08)),
    rgba(17, 24, 39, 0.82);
}

.portal-hero h1 {
  font-size: clamp(2rem, 4vw, 3.5rem);
  line-height: 1.05;
  margin: 6px 0 12px;
}

.portal-hero p {
  max-width: 720px;
  font-size: 1rem;
}

.eyebrow {
  color: var(--accent-color);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.finance-strip {
  display: grid;
  grid-template-columns: repeat(2, minmax(130px, 1fr));
  min-width: 300px;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-md);
  overflow: hidden;
  background: rgba(10, 14, 26, 0.45);
}

.finance-strip div {
  padding: 18px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-left: 1px solid var(--border-color);
}

.finance-strip div:first-child {
  border-left: none;
}

.finance-strip span,
.metric-card span,
.record-meta span,
.list-row span,
.autosave-note {
  color: var(--text-secondary);
  font-size: 0.82rem;
}

.finance-strip strong {
  color: var(--text-primary);
  font-size: 1.45rem;
  margin-top: 4px;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 24px;
}

.metric-card {
  min-height: 132px;
  padding: 18px;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-md);
  background: rgba(255, 255, 255, 0.035);
  color: var(--text-primary);
  text-align: left;
  cursor: pointer;
  transition: var(--transition-fast);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.metric-card:hover {
  border-color: var(--primary-color);
  transform: translateY(-2px);
}

.metric-card svg {
  color: var(--primary-color);
}

.metric-card strong {
  font-size: 2rem;
  line-height: 1;
}

.portal-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(340px, 0.75fr);
  gap: 24px;
  margin-bottom: 24px;
}

.portal-panel,
.table-panel,
.inventory-form,
.record-card {
  padding: 24px;
}

.panel-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  padding-bottom: 14px;
  margin-bottom: 14px;
  border-bottom: 1px solid var(--border-color);
}

.panel-heading h2 {
  font-size: 1.25rem;
}

.stack-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.stack-list.compact {
  max-height: 280px;
  overflow: auto;
  padding-right: 6px;
}

.list-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-md);
  background: rgba(255, 255, 255, 0.025);
}

.list-row > div:first-child {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.list-row strong,
.list-row span {
  overflow-wrap: anywhere;
}

.row-end {
  display: flex;
  align-items: flex-end;
  flex-direction: column;
  gap: 6px;
  white-space: nowrap;
}

.inline-form,
.inventory-form {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.inventory-form {
  grid-template-columns: repeat(5, minmax(0, 1fr)) auto;
  margin-bottom: 24px;
}

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

.record-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.record-avatar {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(59, 130, 246, 0.13);
  color: var(--primary-color);
}

.contact-lines,
.vehicle-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.contact-lines span,
.vehicle-list span {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-secondary);
  font-size: 0.85rem;
}

.record-meta {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-md);
  overflow: hidden;
}

.record-meta div {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px;
  border-left: 1px solid var(--border-color);
}

.record-meta div:first-child {
  border-left: none;
}

.record-meta strong {
  font-size: 1.2rem;
}

.portal-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.portal-table th,
.portal-table td {
  padding: 14px;
  border-bottom: 1px solid var(--border-color);
}

.portal-table th {
  color: var(--text-secondary);
  font-size: 0.78rem;
  text-transform: uppercase;
}

.table-input {
  width: 80px;
  padding: 7px 8px;
  color: var(--text-primary);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
}

.autosave-note {
  display: flex;
  gap: 6px;
  align-items: center;
  margin-top: 14px;
}

.storefront {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 38px 20px 70px;
}

.storefront-hero {
  min-height: 560px;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(360px, 0.85fr);
  gap: 36px;
  align-items: center;
  padding: 46px;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-lg);
  background:
    linear-gradient(135deg, rgba(10, 14, 26, 0.76), rgba(17, 24, 39, 0.88)),
    url('https://images.unsplash.com/photo-1632823471565-1ecdf5c5d4db?auto=format&fit=crop&w=1800&q=80');
  background-size: cover;
  background-position: center;
  box-shadow: var(--box-shadow-lg);
}

.storefront-copy h1 {
  max-width: 790px;
  margin: 10px 0 18px;
  font-size: clamp(2.6rem, 6vw, 5.5rem);
  line-height: 0.98;
  color: #fff;
}

.storefront-copy p {
  max-width: 640px;
  font-size: 1.08rem;
  color: #d1d5db;
}

.storefront-actions,
.trust-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 24px;
}

.trust-row span,
.contact-strip span,
.portal-preview-list span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.workshop-card {
  display: flex;
  min-height: 390px;
  flex-direction: column;
  justify-content: space-between;
  padding: 24px;
  border: 1px solid var(--border-color-hover);
  border-radius: var(--border-radius-lg);
  background: rgba(10, 14, 26, 0.78);
  backdrop-filter: blur(10px);
}

.garage-visual {
  min-height: 210px;
  display: grid;
  place-items: center;
  color: var(--primary-color);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-md);
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.15), rgba(16, 185, 129, 0.08));
}

.garage-visual svg:last-child {
  margin-top: -46px;
  color: var(--accent-color);
}

.open-status {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  padding: 18px 0;
}

.open-status strong {
  color: var(--text-primary);
}

.contact-strip {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 16px;
  border-top: 1px solid var(--border-color);
}

.storefront-section,
.storefront-band {
  margin-top: 34px;
}

.section-kicker,
.storefront-band {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}

.section-kicker {
  margin-bottom: 16px;
}

.section-kicker h2,
.storefront-band h2 {
  font-size: 1.65rem;
}

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

.storefront-service {
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.storefront-service svg {
  color: var(--primary-color);
}

.storefront-service h3 {
  font-size: 1.05rem;
}

.storefront-service p {
  font-size: 0.86rem;
}

.storefront-service div {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
}

.storefront-service strong {
  color: var(--accent-color);
  font-size: 1.2rem;
}

.storefront-service span {
  color: var(--text-secondary);
  font-size: 0.82rem;
}

.storefront-band {
  padding: 30px;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-lg);
  background: rgba(255, 255, 255, 0.035);
}

.storefront-band p {
  max-width: 660px;
}

.portal-preview-list {
  min-width: 250px;
  display: grid;
  gap: 10px;
}

@media (max-width: 1180px) {
  .metric-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .portal-grid,
  .records-grid,
  .storefront-hero,
  .storefront-service-grid {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 760px) {
  .portal-hero,
  .finance-strip,
  .list-row,
  .panel-heading,
  .section-kicker,
  .storefront-band {
    flex-direction: column;
  }

  .storefront-hero {
    min-height: auto;
    padding: 28px;
  }

  .workshop-card {
    min-height: 320px;
  }

  .portal-hero {
    padding: 24px;
  }

  .finance-strip {
    display: flex;
    min-width: 0;
    width: 100%;
  }

  .finance-strip div {
    border-left: none;
    border-top: 1px solid var(--border-color);
  }

  .metric-grid,
  .inventory-form {
    grid-template-columns: 1fr;
  }

  .portal-table {
    min-width: 680px;
  }

  .table-panel {
    overflow-x: auto;
  }
}

/* Base44-style public storefront */
.base44-nav {
  position: fixed;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  width: min(1440px, calc(100% - 64px));
  min-height: 64px;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(16px, 2vw, 28px);
  padding: 10px 14px 10px 18px;
  color: #fff;
  background: rgba(8, 12, 23, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.11);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.38);
  backdrop-filter: blur(22px) saturate(150%);
  -webkit-backdrop-filter: blur(22px) saturate(150%);
}

.base44-brand,
.base44-actions button {
  border: 0;
  background: transparent;
  color: #fff;
  cursor: pointer;
  font: inherit;
}

.base44-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
  font-weight: 800;
  font-size: 1.05rem;
  white-space: nowrap;
}

.base44-logo {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: linear-gradient(135deg, #4f7cff, #2f5df2);
  box-shadow: 0 12px 28px rgba(59, 130, 246, 0.35);
}

.base44-links,
.base44-actions {
  display: flex;
  align-items: center;
  gap: clamp(14px, 1.8vw, 28px);
}

.base44-links {
  flex: 1 1 auto;
  justify-content: center;
  min-width: 0;
}

.base44-actions {
  flex: 0 0 auto;
}

.base44-links a,
.base44-actions button {
  color: rgba(255, 255, 255, 0.82);
  font-weight: 500;
  font-size: 0.93rem;
  white-space: nowrap;
}

.base44-links a:hover,
.base44-actions button:hover {
  color: #fff;
}

.base44-actions .base44-book {
  padding: 13px 22px;
  border-radius: 999px;
  color: #fff;
  font-weight: 800;
  background: linear-gradient(135deg, #4d7cff, #2764f2);
  box-shadow: 0 14px 34px rgba(59, 130, 246, 0.45);
}

/* Mobile hamburger + dropdown menu (hidden on desktop, revealed in the
   max-width:1100px query where the inline links are hidden). */
.base44-burger {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  cursor: pointer;
}

.base44-mobile-menu {
  display: none;
}

.base44-site {
  background: #070b14;
  color: #fff;
  margin-top: -20px;
  overflow: hidden;
  --store-rail: minmax(24px, 1fr) minmax(0, 1440px) minmax(24px, 1fr);
  --store-pad-y: clamp(72px, 8vw, 128px);
}

.base44-site section[id],
.track-card[id] {
  scroll-margin-top: 112px;
}

.base44-hero {
  position: relative;
  min-height: 92vh;
  display: grid;
  grid-template-columns: var(--store-rail);
  align-items: flex-end;
  padding: 120px 0 13vh;
  overflow: hidden;
  isolation: isolate;
  background:
    linear-gradient(180deg, rgba(8, 12, 23, 0.72), rgba(8, 12, 23, 0.9)),
    linear-gradient(90deg, rgba(8, 12, 23, 0.72), rgba(8, 12, 23, 0.2)),
    url('https://images.unsplash.com/photo-1619642751034-765dfdf7c58e?w=1800&q=85');
  background-position: center;
  background-size: cover;
}

.base44-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(circle at 50% 70%, rgba(59, 130, 246, 0.17), transparent 34%);
}

.grid-overlay {
  position: absolute;
  inset: 0;
  opacity: 0.35;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px);
  background-size: 64px 64px;
  pointer-events: none;
}

.base44-hero-inner {
  grid-column: 2;
  width: min(1120px, 100%);
  text-align: left;
}

.trust-pill {
  width: fit-content;
  margin: 0 0 24px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border-radius: 999px;
  border: 1px solid rgba(96, 165, 250, 0.35);
  color: #dbeafe;
  background: rgba(37, 99, 235, 0.32);
  box-shadow: 0 10px 26px rgba(37, 99, 235, 0.2);
  font-size: 0.85rem;
}

.base44-hero h1 {
  margin: 0;
  font-size: clamp(2.7rem, 5vw, 4.25rem);
  line-height: 1.04;
  letter-spacing: -0.01em;
  color: #fff;
}

.base44-hero h1 span {
  color: #3d7bff;
}

.base44-hero p {
  max-width: 600px;
  margin: 22px 0 0;
  color: #d6dce8;
  font-size: 1.05rem;
  line-height: 1.65;
}

.hero-buttons {
  display: flex;
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}

.base44-site .btn {
  border-radius: 14px;
  padding: 15px 25px;
}

.base44-site .btn-primary {
  background: linear-gradient(135deg, #4f7cff, #2764f2);
}

.base44-site .btn-secondary {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.28);
}

.base44-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 18px 48px;
  margin: 40px 0 0;
  width: 100%;
}

.base44-stats div {
  min-height: 0;
  padding: 0;
  border: 0;
  background: none;
  backdrop-filter: none;
  text-align: left;
}

.base44-stats svg {
  color: #60a5fa;
  margin-bottom: 10px;
}

.base44-stats strong {
  display: block;
  font-size: 1.7rem;
  font-weight: 800;
}

.base44-stats span {
  display: block;
  color: #aab2c3;
  font-size: 0.76rem;
  margin-top: 3px;
}

.track-card {
  width: 100%;
  margin: 0;
  position: relative;
  z-index: 5;
  display: grid;
  grid-template-columns: minmax(24px, 1fr) minmax(0, 850px) minmax(24px, 80px) minmax(320px, 420px) minmax(24px, 1fr);
  align-items: center;
  gap: 0;
  padding: 0;
  border: 0;
  background:
    linear-gradient(90deg, rgba(20, 69, 145, 0.95), rgba(9, 33, 72, 0.94)),
    url('https://images.unsplash.com/photo-1486262715619-67b85e0b08d3?w=1200&q=85');
  background-size: cover;
  background-position: center;
  box-shadow: inset 0 1px 0 rgba(147, 197, 253, 0.25), inset 0 -1px 0 rgba(147, 197, 253, 0.18);
  transform: translateY(-1px);
}

.track-card > div:first-child,
.track-card > .track-form {
  padding: 42px 0;
}

.track-card > div:first-child {
  grid-column: 2;
}

.track-card > .track-form {
  grid-column: 4;
  justify-self: end;
}

.track-card h2 {
  font-size: clamp(2.4rem, 4vw, 4.3rem);
}

.track-card p {
  color: #dbeafe;
}

.guest-track-result {
  grid-column: 2 / 5;
  width: min(760px, 100%);
  margin: -22px 0 36px;
  padding: 18px;
  border: 1px solid rgba(96, 165, 250, 0.28);
  background: rgba(37, 99, 235, 0.12);
}

.guest-track-result strong,
.guest-track-result span {
  display: block;
}

.guest-track-result span {
  color: #93c5fd;
  margin-top: 4px;
  text-transform: capitalize;
}

.guest-track-result p {
  margin-top: 8px;
}

.track-card span,
.section-label {
  color: #60a5fa;
  text-transform: uppercase;
  font-weight: 800;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
}

.track-card h2,
.base44-section h2,
.base44-about h2,
.base44-cta h2,
.base44-contact h2 {
  font-size: clamp(2rem, 4vw, 3.7rem);
  line-height: 1.02;
  margin: 8px 0 12px;
}

.track-card p,
.base44-section p,
.base44-about p,
.base44-cta p,
.base44-contact p {
  color: #aab2c3;
}

.track-form {
  display: flex;
  gap: 10px;
}

.track-form input {
  width: 250px;
  padding: 14px 16px;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.06);
}

.track-form button {
  padding: 14px 20px;
  border: 0;
  border-radius: 14px;
  color: #fff;
  font-weight: 800;
  cursor: pointer;
  background: #2563eb;
}

/* Pulse the rego field when the user lands on it from a "Track My Car" CTA,
   so it's obvious where to start typing (no jarring page jump needed). */
@keyframes trackFieldPulse {
  0%   { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.55); }
  70%  { box-shadow: 0 0 0 12px rgba(16, 185, 129, 0); }
  100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.track-form input.track-input-active {
  border-color: var(--accent-color);
  animation: trackFieldPulse 0.7s ease-out 2;
}

.base44-section,
.base44-about,
.base44-cta,
.base44-contact {
  width: 100%;
  margin: 0;
  display: grid;
  grid-template-columns: var(--store-rail);
  padding: var(--store-pad-y) 0;
}

.base44-section {
  position: relative;
}

.base44-section > *,
.base44-contact > * {
  grid-column: 2;
}

#services {
  padding: var(--store-pad-y) 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background:
    linear-gradient(90deg, rgba(7, 11, 20, 1) 0%, rgba(7, 11, 20, 0.94) 48%, rgba(7, 11, 20, 0.68) 100%),
    url('https://images.unsplash.com/photo-1487754180451-c456f719a1fc?w=1600&q=85');
  background-size: cover;
  background-position: center right;
}

.section-copy {
  max-width: 620px;
  margin-bottom: 26px;
}

.base44-service-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  max-width: 1100px;
}

.base44-service-card,
.process-grid article,
.testimonial-card,
.cert-card {
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.065);
  backdrop-filter: blur(10px);
}

.base44-service-card {
  min-height: 220px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 10px;
  overflow: hidden;
}

/* Keep the price pinned just under the icon, then let the title + copy group
   together — avoids the uneven vertical spread when descriptions differ in length. */
.base44-service-card svg {
  margin-bottom: 2px;
}

.base44-service-card h3 {
  margin-top: 2px;
}

.base44-service-card svg,
.rating-line svg {
  color: #60a5fa;
}

.base44-service-card strong {
  color: #93c5fd;
}

.base44-service-card h3 {
  font-size: 1.35rem;
}

.base44-service-card p {
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
}

.section-button {
  margin-top: 28px;
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-top: 30px;
}

.process-section {
  padding: var(--store-pad-y) 0;
  border-top: 1px solid rgba(96, 165, 250, 0.14);
  border-bottom: 1px solid rgba(96, 165, 250, 0.14);
  background:
    linear-gradient(135deg, rgba(10, 32, 78, 0.98), rgba(10, 17, 31, 0.94)),
    url('https://images.unsplash.com/photo-1609521263047-f8f205293f24?w=1600&q=85');
  background-size: cover;
  background-position: center;
}

.process-grid article {
  padding: 26px;
}

.process-grid article > span {
  color: #60a5fa;
  font-size: 2rem;
  font-weight: 900;
}

.process-grid h3 {
  margin: 18px 0 8px;
}

.base44-about {
  grid-template-columns: minmax(24px, 1fr) minmax(0, 760px) minmax(40px, 96px) minmax(320px, 460px) minmax(24px, 1fr);
  gap: 56px;
  align-items: center;
  min-height: 560px;
  padding: var(--store-pad-y) 0;
  border-top: 1px solid rgba(147, 197, 253, 0.18);
  border-bottom: 1px solid rgba(147, 197, 253, 0.18);
  background:
    linear-gradient(90deg, rgba(6, 13, 28, 0.94) 0%, rgba(15, 47, 89, 0.76) 48%, rgba(186, 214, 250, 0.22) 100%),
    linear-gradient(180deg, rgba(37, 99, 235, 0.08), rgba(6, 182, 212, 0.04)),
    url('https://images.unsplash.com/photo-1487754180451-c456f719a1fc?w=1800&q=85');
  background-size: cover;
  background-position: center;
  box-shadow: inset 0 1px 0 rgba(147, 197, 253, 0.16), inset 0 -1px 0 rgba(147, 197, 253, 0.16);
}

.base44-about > div:first-child,
.base44-about > .cert-card {
  min-width: 0;
}

.base44-about > div:first-child {
  grid-column: 2;
  max-width: 720px;
}

.base44-about > .cert-card {
  grid-column: 4;
  justify-self: end;
  width: min(420px, 100%);
}

.base44-about ul {
  display: grid;
  gap: 12px;
  margin: 26px 0;
  padding: 0;
  list-style: none;
}

.base44-about li {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #dbeafe;
}

.base44-about li svg {
  color: #22c55e;
}

.cert-card {
  min-height: 390px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-align: center;
  background:
    linear-gradient(135deg, rgba(37, 99, 235, 0.42), rgba(6, 182, 212, 0.16)),
    rgba(7, 11, 20, 0.42);
  border-color: rgba(147, 197, 253, 0.2);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.cert-card svg {
  color: #60a5fa;
}

.cert-card strong:first-of-type {
  font-size: 1.5rem;
}

.cert-card strong:last-of-type {
  margin-top: 28px;
  font-size: 3.4rem;
}

.cert-card span {
  color: #aab2c3;
}

.reviews-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}

.reviews-head .rating-line {
  margin-bottom: 0;
}

.rating-line {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 12px 0 28px;
}

.rating-line strong {
  font-size: 1.8rem;
}

.rating-line span {
  color: #aab2c3;
}

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

.guest-review-form {
  margin-top: 24px;
  display: grid;
  grid-template-columns: 1fr 1fr 160px;
  gap: 12px;
}

.guest-review-form input,
.guest-review-form select,
.guest-review-form textarea {
  min-height: 48px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 14px;
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
  padding: 12px 14px;
  font: inherit;
}

.guest-review-form textarea {
  grid-column: 1 / -1;
  min-height: 100px;
  resize: vertical;
}

.guest-review-form button {
  width: fit-content;
}

.review-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 500;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(3, 7, 18, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.review-modal {
  position: relative;
  width: min(780px, 100%);
  padding: 34px;
  border: 1px solid rgba(147, 197, 253, 0.22);
  background:
    linear-gradient(135deg, rgba(8, 12, 23, 0.96), rgba(14, 42, 82, 0.88)),
    url('https://images.unsplash.com/photo-1530046339913-102c9029a43c?w=1400&q=85');
  background-size: cover;
  background-position: center;
  box-shadow: 0 34px 110px rgba(0, 0, 0, 0.55);
}

.review-modal h3 {
  margin: 8px 42px 10px 0;
  font-size: 2.2rem;
}

.review-modal p {
  max-width: 520px;
}

.review-modal .guest-review-form {
  margin-top: 24px;
}

.review-modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  cursor: pointer;
}

.testimonial-card {
  padding: 24px;
}

.testimonial-card p {
  min-height: 132px;
  color: #d6dce8;
}

.testimonial-card div {
  display: grid;
  grid-template-columns: 42px 1fr;
  column-gap: 12px;
  align-items: center;
}

.testimonial-card div span {
  width: 42px;
  height: 42px;
  grid-row: span 2;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #2563eb;
  font-weight: 900;
}

.testimonial-card small {
  color: #aab2c3;
}

.base44-cta {
  padding: 86px 64px;
  text-align: center;
  border-radius: 28px;
  background:
    linear-gradient(135deg, rgba(37, 99, 235, 0.32), rgba(14, 20, 34, 0.96)),
    url('https://images.unsplash.com/photo-1558618666-fcd25c85cd64?w=1600&q=85');
  background-size: cover;
  background-position: center;
}

.base44-cta > span {
  color: #bfdbfe;
  font-weight: 800;
}

.base44-cta p {
  max-width: 610px;
  margin: 0 auto 28px;
}

.base44-cta div {
  display: flex;
  justify-content: center;
  gap: 12px;
}

.base44-contact {
  padding-bottom: 80px;
  margin-bottom: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background:
    linear-gradient(180deg, rgba(7, 11, 20, 0.98), rgba(12, 18, 32, 0.98)),
    radial-gradient(circle at 15% 30%, rgba(59, 130, 246, 0.12), transparent 34%);
}

.contact-head {
  margin-bottom: 30px;
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 24px;
  align-items: stretch;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 34px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.045);
}

.contact-form h3 {
  font-size: 1.3rem;
}

.contact-info-list {
  display: grid;
  gap: 10px;
  padding-bottom: 4px;
}

.contact-info-list a,
.contact-info-list span {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #d6dce8;
  font-size: 0.92rem;
  text-decoration: none;
}

.contact-info-list a:hover {
  color: #fff;
}

.contact-info-list svg {
  color: #60a5fa;
  flex: 0 0 auto;
}

.contact-fields {
  display: grid;
  gap: 12px;
}

.contact-fields input,
.contact-fields textarea {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 14px;
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
  padding: 13px 15px;
  font: inherit;
}

.contact-fields input:focus,
.contact-fields textarea:focus {
  outline: none;
  border-color: var(--primary-color);
}

.contact-fields input::placeholder,
.contact-fields textarea::placeholder {
  color: #8c95a8;
}

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

.contact-form .btn {
  width: fit-content;
}

.contact-sent {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #4ade80;
  font-size: 0.9rem;
}

.contact-map {
  position: relative;
  min-height: 520px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.045);
}

.contact-map iframe {
  width: 100%;
  height: 100%;
  min-height: 520px;
  border: 0;
  display: block;
  filter: grayscale(0.25) contrast(1.05);
}

.contact-directions {
  position: absolute;
  left: 16px;
  bottom: 16px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 12px;
  background: var(--primary-color);
  color: #fff;
  font-weight: 600;
  font-size: 0.88rem;
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.contact-directions:hover {
  background: #2563eb;
}

@media (max-width: 960px) {
  .base44-links {
    display: none;
  }

  .base44-stats,
  .base44-service-grid,
  .process-grid,
  .testimonial-grid {
    grid-template-columns: 1fr 1fr;
  }

  .base44-site {
    --store-rail: minmax(18px, 1fr) minmax(0, 760px) minmax(18px, 1fr);
    --store-pad-y: 78px;
  }

  .contact-grid,
  .track-card {
    grid-template-columns: 1fr;
  }

  .track-card {
    display: grid;
    grid-template-columns: var(--store-rail);
    transform: none;
  }

  .track-card > div:first-child,
  .track-card > .track-form,
  .guest-track-result {
    grid-column: 2;
  }

  .track-card > .track-form {
    justify-self: stretch;
    margin-top: 0;
    padding-bottom: 42px;
  }

  .base44-about {
    grid-template-columns: var(--store-rail);
    column-gap: 0;
    row-gap: 32px;
  }

  .base44-about > div:first-child,
  .base44-about > .cert-card {
    grid-column: 2;
  }

  .base44-about > .cert-card {
    justify-self: stretch;
    width: 100%;
    margin-top: 0;
  }
}

@media (max-width: 1100px) {
  .base44-links {
    display: none;
  }

  .base44-burger {
    display: inline-flex;
  }

  .base44-mobile-menu {
    display: flex;
    flex-direction: column;
    gap: 4px;
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    padding: 12px;
    background: rgba(8, 12, 23, 0.97);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 18px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(22px) saturate(150%);
    -webkit-backdrop-filter: blur(22px) saturate(150%);
  }

  .base44-mobile-menu a {
    padding: 13px 14px;
    border-radius: 12px;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 600;
    font-size: 0.98rem;
  }

  .base44-mobile-menu a:hover {
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
  }

  .base44-mobile-menu .base44-book {
    margin-top: 6px;
    padding: 14px;
    text-align: center;
    justify-content: center;
    border-radius: 14px;
  }
}

@media (max-width: 680px) {
  .base44-actions button:first-child {
    display: none;
  }

  .base44-nav {
    top: 12px;
    width: calc(100% - 24px);
    min-height: 56px;
    padding: 8px 10px 8px 12px;
  }

  .base44-site section[id],
  .track-card[id] {
    scroll-margin-top: 84px;
  }

  .base44-brand {
    gap: 8px;
    font-size: 0.92rem;
  }

  .base44-logo {
    width: 34px;
    height: 34px;
    border-radius: 10px;
  }

  .base44-actions .base44-book {
    padding: 10px 14px;
    font-size: 0.84rem;
  }

  .base44-hero {
    min-height: auto;
    padding: 108px 0 86px;
    place-items: start center;
  }

  .base44-hero-inner {
    transform: none;
  }

  .base44-hero h1 {
    font-size: clamp(3.1rem, 17vw, 4.4rem);
  }

  .base44-hero p {
    font-size: 1rem;
  }

  .hero-buttons,
  .base44-cta div,
  .track-form {
    flex-direction: column;
  }

  .process-grid,
  .testimonial-grid,
  .base44-about,
  .guest-review-form {
    grid-template-columns: 1fr;
  }

  .base44-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-top: 26px;
    width: min(420px, 100%);
  }

  .reviews-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .base44-service-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .base44-service-card {
    padding: 16px;
  }

  .base44-service-card h3 {
    font-size: 1.05rem;
  }

  .base44-service-card p {
    font-size: 0.82rem;
    line-height: 1.45;
    -webkit-line-clamp: 3;
  }

  .base44-stats div {
    min-height: 78px;
    padding: 12px;
  }

  .base44-stats svg {
    width: 16px;
    height: 16px;
    margin-bottom: 7px;
  }

  .base44-stats strong {
    font-size: 1.12rem;
  }

  .base44-stats span {
    font-size: 0.68rem;
  }

  .base44-site {
    --store-rail: 14px minmax(0, 1fr) 14px;
    --store-pad-y: 62px;
  }

  .base44-about {
    grid-template-columns: var(--store-rail);
  }

  .base44-about > div:first-child,
  .base44-about > .cert-card {
    grid-column: 2;
  }

  .track-card {
    width: 100%;
    margin: 0;
  }

  .track-card > div:first-child {
    padding-top: 32px;
    padding-bottom: 20px;
  }

  .track-form input {
    width: 100%;
  }

  .base44-cta {
    padding: 54px 0;
  }

  .contact-map,
  .contact-map iframe {
    min-height: 360px;
  }

  .review-modal {
    max-height: calc(100vh - 48px);
    overflow-y: auto;
    padding: 24px;
  }
}

@media (max-width: 520px) {
  .base44-service-grid {
    grid-template-columns: 1fr;
  }

  .base44-service-card {
    aspect-ratio: auto;
    min-height: 210px;
  }
}

/* Base44-style admin portal */
.b44-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 240px 1fr;
  background: #f3f4f6;
  color: #111827;
  font-family: Inter, system-ui, sans-serif;
}

.b44-shell h1,
.b44-shell h2,
.b44-shell h3,
.b44-shell strong {
  color: #111827;
}

.b44-sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  background: #111318;
  color: #fff;
  border-right: 1px solid #24272f;
}

.b44-sidebar-brand {
  height: 78px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 20px 24px;
  border-bottom: 1px solid #2a2d35;
}

.b44-sidebar-brand > span {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: #fff;
  background: linear-gradient(135deg, #4f7cff, #2563eb);
  box-shadow: 0 10px 24px rgba(37, 99, 235, 0.35);
}

.b44-sidebar-brand strong,
.b44-sidebar-brand small {
  display: block;
  color: #fff;
}

.b44-sidebar-brand strong {
  font-size: 1.05rem;
}

.b44-sidebar-brand small {
  opacity: 0.7;
  margin-top: 2px;
}

.b44-sidebar nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 24px 16px;
}

.b44-sidebar button {
  min-height: 43px;
  display: flex;
  align-items: center;
  gap: 13px;
  border: 0;
  border-radius: 10px;
  color: #f9fafb;
  background: transparent;
  font-weight: 750;
  cursor: pointer;
  padding: 0 10px;
  text-align: left;
}

.b44-sidebar button.active,
.b44-sidebar button:hover {
  background: rgba(255, 255, 255, 0.08);
}

.b44-logout {
  margin: auto 16px 22px;
}

.b44-main {
  padding: 34px 28px 80px;
}

.b44-page-head {
  min-height: 54px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 28px;
}

.b44-page-head h1 {
  font-size: 2rem;
  line-height: 1.05;
}

.b44-page-head p,
.b44-page-head span {
  color: #6b7280;
  margin-top: 7px;
}

.b44-page-head-actions {
  display: flex;
  justify-content: flex-end;
  align-items: flex-start;
  gap: 12px;
  flex-wrap: wrap;
}

.b44-sync-pill {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  border: 1px solid #e5e7eb;
  border-radius: 999px;
  padding: 6px 13px;
  background: #fff;
}

.b44-sync-pill strong,
.b44-sync-pill small {
  display: block;
  line-height: 1.1;
}

.b44-sync-pill strong {
  color: #111827;
  font-size: 0.78rem;
}

.b44-sync-pill small {
  max-width: 210px;
  margin-top: 2px;
  overflow: hidden;
  color: #6b7280;
  font-size: 0.7rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.b44-sync-pill.green {
  border-color: #bbf7d0;
  background: #f0fdf4;
}

.b44-sync-pill.green svg {
  color: #15803d;
}

.b44-sync-pill.orange {
  border-color: #fed7aa;
  background: #fff7ed;
}

.b44-sync-pill.orange svg {
  color: #c2410c;
}

.b44-sync-pill.yellow {
  border-color: #fef08a;
  background: #fefce8;
}

.b44-sync-pill.yellow svg {
  color: #a16207;
}

.b44-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 0;
  border-radius: 999px;
  padding: 14px 22px;
  color: #fff;
  font-weight: 800;
  cursor: pointer;
  background: linear-gradient(135deg, #3b82f6, #2563eb);
  box-shadow: 0 10px 22px rgba(37, 99, 235, 0.24);
}

.b44-stat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 28px;
}

.b44-stat-card,
.b44-panel,
.b44-table-card,
.b44-person-card {
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  background: #fff;
}

.b44-stat-card {
  min-height: 104px;
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 24px;
}

.b44-stat-card p {
  color: #6b7280;
  margin-bottom: 4px;
}

.b44-stat-card strong {
  font-size: 1.85rem;
  line-height: 1;
}

.b44-icon {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 12px;
}

.b44-gold { color: #a16207; background: #fefce8; }
.b44-blue { color: #2563eb; background: #eff6ff; }
.b44-purple { color: #7e22ce; background: #faf5ff; }
.b44-green { color: #15803d; background: #f0fdf4; }
.b44-red { color: #b91c1c; background: #fef2f2; }
.b44-orange { color: #c2410c; background: #fff7ed; }

.b44-stat-grid.large {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.b44-two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 26px;
}

.b44-alert-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 12px;
  margin: -10px 0 24px;
}

.b44-alert-card {
  min-height: 96px;
  display: grid;
  align-content: center;
  gap: 10px;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  padding: 16px;
  color: #111827;
  background: #fff;
  text-align: left;
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.b44-alert-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 34px -22px rgba(15, 23, 42, 0.65);
}

.b44-alert-card strong {
  font-size: 0.96rem;
  line-height: 1.35;
}

.b44-alert-card.red {
  border-color: #fecaca;
  background: #fef2f2;
}

.b44-alert-card.orange {
  border-color: #fed7aa;
  background: #fff7ed;
}

.b44-alert-card.yellow {
  border-color: #fef08a;
  background: #fefce8;
}

.b44-alert-card.blue {
  border-color: #bfdbfe;
  background: #eff6ff;
}

.b44-alert-card.green {
  border-color: #bbf7d0;
  background: #f0fdf4;
}

.b44-three-col {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 26px;
}

.b44-panel {
  min-height: 395px;
  padding: 22px;
}

.b44-panel.compact {
  min-height: 280px;
}

.b44-panel-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
}

.b44-panel-head h2 {
  font-size: 1.1rem;
}

.b44-panel-head button {
  border: 0;
  background: transparent;
  color: #1d4ed8;
  font-weight: 700;
  cursor: pointer;
}

.b44-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.b44-list.tight {
  gap: 10px;
}

.b44-list-row {
  min-height: 66px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  padding: 13px 16px;
  border-radius: 12px;
  background: #f3f4f6;
}

.b44-list.tight .b44-list-row {
  min-height: 58px;
  padding: 11px 12px;
}

.b44-list-row strong,
.b44-list-row span,
.b44-table td span,
.b44-person-card span {
  display: block;
}

.b44-list-row span,
.b44-table td span,
.b44-row-meta small,
.b44-person-card p,
.b44-person-card span {
  color: #6b7280;
  font-size: 0.88rem;
}

.b44-row-meta {
  text-align: right;
}

.b44-inline-chips {
  display: flex;
  gap: 6px;
  white-space: nowrap;
}

.b44-chip {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  min-height: 25px;
  padding: 3px 11px;
  border: 1px solid;
  border-radius: 999px;
  font-size: 0.78rem !important;
  font-weight: 700;
}

.b44-chip.yellow { color: #854d0e; background: #fef9c3; border-color: #fef08a; }
.b44-chip.blue { color: #1e40af; background: #dbeafe; border-color: #bfdbfe; }
.b44-chip.purple { color: #6b21a8; background: #f3e8ff; border-color: #e9d5ff; }
.b44-chip.green { color: #166534; background: #dcfce7; border-color: #bbf7d0; }
.b44-chip.red { color: #991b1b; background: #fee2e2; border-color: #fecaca; }
.b44-chip.orange { color: #9a3412; background: #ffedd5; border-color: #fed7aa; }
.b44-chip.gray { color: #374151; background: #e5e7eb; border-color: #d1d5db; }

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

.b44-action-grid button {
  min-height: 92px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border-radius: 16px;
  font-weight: 800;
  cursor: pointer;
  background: #fff;
}

.b44-action-grid .gold { color: #854d0e; border: 1px solid #fde68a; background: #fefce8; }
.b44-action-grid .blue { color: #1d4ed8; border: 1px solid #bfdbfe; background: #eff6ff; }
.b44-action-grid .purple { color: #7e22ce; border: 1px solid #e9d5ff; background: #faf5ff; }
.b44-action-grid .green { color: #166534; border: 1px solid #bbf7d0; background: #f0fdf4; }

.b44-toolbar {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) auto auto;
  gap: 16px;
  align-items: center;
  margin-bottom: 18px;
}

.b44-search {
  height: 52px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 16px;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  background: #fff;
  color: #6b7280;
}

.b44-search input {
  width: 100%;
  border: 0;
  outline: 0;
  color: #111827;
  font-size: 0.95rem;
}

.b44-filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.b44-role-switch,
.b44-page-tools {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

.b44-role-switch button {
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid #e5e7eb;
  border-radius: 999px;
  background: #fff;
  color: #4b5563;
  font-weight: 800;
  cursor: pointer;
}

.b44-role-switch button.active {
  color: #fff;
  border-color: #2563eb;
  background: #2563eb;
}

/* Static, read-only role indicator in the dashboard header (replaces the old
   interactive role switch — a signed-in user's role is fixed to their account). */
.b44-role-badge {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 16px;
  border: 1px solid #d1d5db;
  border-radius: 999px;
  background: #eef2ff;
  color: #2563eb;
  font-weight: 800;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}

/* Single "Staff Portal" sign-in entry in the public navbar (replaces the old
   Client/Staff/Admin role switcher). */
.navbar-staff-portal {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border: 1px solid rgba(59, 130, 246, 0.35);
  border-radius: 8px;
  background: rgba(59, 130, 246, 0.18);
  color: var(--text-primary);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: all 0.2s ease;
}

.navbar-staff-portal:hover {
  background: rgba(59, 130, 246, 0.28);
}

.b44-page-tools {
  margin-bottom: 16px;
}

.b44-filters button {
  min-height: 44px;
  padding: 0 17px;
  border: 1px solid #e5e7eb;
  border-radius: 999px;
  color: #4b5563;
  font-weight: 700;
  background: #fff;
  cursor: pointer;
}

.b44-filters button.active {
  color: #fff;
  background: #2563eb;
  border-color: #2563eb;
}

.b44-table-card {
  overflow: hidden;
}

.b44-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.b44-table th {
  padding: 16px 20px;
  color: #6b7280;
  background: #f3f4f6;
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.b44-table td {
  padding: 18px 20px;
  border-top: 1px solid #e5e7eb;
  vertical-align: middle;
  color: #111827;
}

.b44-table td button {
  border: 0;
  background: transparent;
  color: #2563eb;
  font-weight: 700;
  cursor: pointer;
  margin-right: 8px;
}

.b44-table td button.danger {
  color: #dc2626;
}

.b44-row-actions {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.b44-row-actions button {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border: 0;
  background: transparent;
  color: #2563eb;
  font-weight: 800;
  cursor: pointer;
}

.b44-row-actions button.danger {
  color: #dc2626;
}

.b44-code {
  color: #2563eb !important;
}

.b44-progress {
  width: 120px;
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: #e5e7eb;
  margin-bottom: 5px;
}

.b44-progress span {
  height: 100%;
  display: block;
  border-radius: inherit;
  background: #2563eb;
}

.b44-stage-toggle {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  max-width: 520px;
}

.b44-stage-toggle button {
  min-height: 28px;
  margin: 0 !important;
  padding: 0 8px;
  border: 1px solid #dbeafe !important;
  background: #eff6ff !important;
  color: #1d4ed8 !important;
  font-size: 0.72rem;
}

.b44-stage-toggle button.active {
  color: #fff !important;
  background: #2563eb !important;
  border-color: #2563eb !important;
}

.b44-mini-select {
  min-height: 32px;
  border: 1px solid #e5e7eb;
  border-radius: 999px;
  padding: 0 10px;
  color: #111827;
  background: #fff;
  font-weight: 700;
}

.b44-chart {
  height: 280px;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
  align-items: end;
  padding: 18px;
  border-radius: 14px;
  background: #f9fafb;
}

.b44-chart div {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: end;
  gap: 8px;
  text-align: center;
}

.b44-chart div span {
  min-height: 34px;
  display: block;
  border-radius: 999px 999px 8px 8px;
  background: linear-gradient(180deg, #60a5fa, #2563eb);
}

.b44-chart small {
  color: #6b7280;
  font-weight: 700;
}

.b44-chart em {
  color: #6b7280;
  font-size: 0.72rem;
  font-style: normal;
  font-weight: 800;
}

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

.b44-person-card {
  padding: 22px;
  min-height: 160px;
}

.b44-management h2 {
  font-size: 1.1rem;
  margin: 24px 0 14px;
}

.b44-person-card strong {
  display: block;
  font-size: 1.05rem;
  margin-bottom: 6px;
}

.b44-person-card p {
  margin: 14px 0;
}

.b44-calendar-board {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 16px;
  margin-bottom: 18px;
}

.b44-calendar-day {
  min-height: 230px;
  border: 1px solid #e5e7eb;
  background: #fff;
  padding: 16px;
}

.b44-calendar-date {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid #e5e7eb;
  margin-bottom: 12px;
}

.b44-calendar-date span {
  color: #6b7280;
  font-size: 0.8rem;
  font-weight: 700;
}

.b44-calendar-stack {
  display: grid;
  gap: 10px;
}

.b44-calendar-event {
  display: grid;
  gap: 4px;
  border: 1px solid #dbeafe;
  background: #eff6ff;
  padding: 11px;
  color: #111827;
  text-align: left;
  cursor: pointer;
}

.b44-calendar-event span,
.b44-calendar-event small {
  color: #4b5563;
  font-size: 0.76rem;
}

.b44-calendar-event em {
  width: fit-content;
  font-style: normal;
  margin-top: 4px;
}

.b44-card-grid.rich {
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

.b44-person-card.rich {
  min-height: 260px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.b44-card-kicker,
.b44-profile-row,
.b44-metric-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.b44-card-kicker {
  justify-content: space-between;
  color: #6b7280;
  font-size: 0.82rem;
}

.b44-profile-row {
  align-items: flex-start;
}

.b44-avatar,
.b44-inventory-image {
  display: grid;
  place-items: center;
  overflow: hidden;
  color: #2563eb;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
}

.b44-avatar {
  width: 46px;
  height: 46px;
  flex: 0 0 auto;
}

.b44-avatar img,
.b44-inventory-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.b44-inventory-image {
  height: 118px;
  background: #f3f4f6;
  color: #6b7280;
  border-color: #e5e7eb;
}

.b44-metric-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.b44-metric-row div {
  min-height: 58px;
  display: grid;
  align-content: center;
  gap: 3px;
  padding: 10px;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
}

.b44-metric-row small {
  color: #6b7280;
  font-size: 0.7rem;
  font-weight: 800;
}

.b44-metric-row b {
  color: #111827;
  font-size: 0.96rem;
}

.b44-mini-history {
  display: grid;
  gap: 6px;
  margin-top: auto;
}

.b44-mini-history span {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #6b7280;
  font-size: 0.78rem;
}

.b44-email-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.75fr);
  gap: 18px;
}

.b44-help-text {
  color: #6b7280;
  font-size: 0.9rem;
  margin-bottom: 16px;
}

.b44-form-grid.email {
  padding: 0;
}

.b44-form-grid .wide {
  grid-column: 1 / -1;
}

.b44-modal-actions.inline {
  padding: 18px 0 0;
  border: 0;
  justify-content: flex-start;
}

.b44-email-status {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  color: #374151;
  font-weight: 700;
}

.b44-email-log {
  display: grid;
  gap: 10px;
  max-height: 520px;
  overflow: auto;
}

.b44-email-log article {
  display: grid;
  gap: 5px;
  padding: 12px;
  border: 1px solid #e5e7eb;
  background: #f9fafb;
}

.b44-email-log small,
.b44-email-log em {
  color: #6b7280;
  font-size: 0.78rem;
}

.b44-email-log em {
  color: #dc2626;
  font-style: normal;
}

.b44-record-toolbar {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) auto auto;
  gap: 14px;
  align-items: center;
  margin-bottom: 18px;
}

.b44-view-toggle {
  display: inline-flex;
  gap: 6px;
  padding: 5px;
  border: 1px solid #e5e7eb;
  background: #fff;
}

.b44-view-toggle button {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 0;
  padding: 0 13px;
  color: #4b5563;
  background: transparent;
  font-weight: 800;
  cursor: pointer;
}

.b44-view-toggle button.active {
  color: #fff;
  background: #2563eb;
}

.b44-row-actions button:disabled,
.b44-preview-actions button:disabled,
.b44-permission-grid button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.b44-tooltip {
  position: relative;
}

.b44-tooltip::after {
  content: attr(data-tooltip);
  position: absolute;
  left: 0;
  bottom: calc(100% + 10px);
  z-index: 30;
  width: min(300px, 70vw);
  padding: 10px 12px;
  color: #fff;
  background: #111827;
  font-size: 0.76rem;
  line-height: 1.4;
  text-align: left;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.22);
  opacity: 0;
  pointer-events: none;
  transform: translateY(4px);
  transition: opacity 160ms ease, transform 160ms ease;
}

.b44-tooltip:hover::after,
.b44-tooltip:focus-visible::after {
  opacity: 1;
  transform: translateY(0);
}

.b44-preview-backdrop {
  z-index: 820;
}

.b44-doc-preview {
  width: min(1180px, 100%);
  max-height: min(90vh, 920px);
  overflow: hidden;
  border: 1px solid #e5e7eb;
  background: #f3f4f6;
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.28);
}

.b44-preview-body {
  display: grid;
  grid-template-columns: 310px minmax(0, 1fr);
  gap: 18px;
  max-height: calc(90vh - 84px);
  overflow: auto;
  padding: 20px;
}

.b44-preview-controls,
.b44-doc-card,
.b44-detail-card,
.b44-history-section {
  border: 1px solid #e5e7eb;
  background: #fff;
}

.b44-preview-controls {
  align-self: start;
  display: grid;
  gap: 16px;
  padding: 18px;
}

.b44-preview-controls label {
  display: grid;
  gap: 7px;
  color: #374151;
  font-weight: 800;
  font-size: 0.86rem;
}

.b44-preview-controls input {
  min-height: 42px;
  border: 1px solid #d1d5db;
  padding: 0 12px;
  color: #111827;
  font: inherit;
}

.b44-preview-note {
  display: flex;
  gap: 10px;
  padding: 12px;
  color: #4b5563;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  font-size: 0.86rem;
  line-height: 1.45;
}

.b44-warning {
  padding: 10px 12px;
  color: #9a3412;
  background: #fff7ed;
  border: 1px solid #fed7aa;
  font-size: 0.85rem;
  font-weight: 800;
}

.b44-preview-actions {
  display: grid;
  gap: 9px;
}

.b44-preview-actions button,
.b44-profile-actions button,
.b44-history-list article button {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: 1px solid #e5e7eb;
  padding: 0 13px;
  background: #fff;
  color: #2563eb;
  font-weight: 800;
  cursor: pointer;
}

.b44-doc-card {
  min-width: 0;
  padding: 34px;
  color: #111827;
}

.b44-doc-card header,
.b44-doc-meta,
.b44-doc-card footer,
.b44-doc-totals div {
  display: flex;
  justify-content: space-between;
  gap: 20px;
}

.b44-doc-card header {
  padding-bottom: 22px;
  border-bottom: 2px solid #111827;
  margin-bottom: 22px;
}

.b44-doc-card header strong,
.b44-doc-card header h3 {
  display: block;
  margin: 0 0 8px;
  font-size: 1.3rem;
  letter-spacing: 0;
}

.b44-doc-card header div:last-child {
  text-align: right;
}

.b44-doc-card span,
.b44-doc-card small {
  display: block;
  color: #6b7280;
}

.b44-doc-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-bottom: 20px;
}

.b44-doc-meta div,
.b44-doc-issue {
  padding: 14px;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
}

.b44-doc-meta small,
.b44-doc-issue small {
  color: #6b7280;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
}

.b44-doc-meta b {
  display: block;
  margin: 4px 0;
}

.b44-doc-issue {
  margin-bottom: 18px;
}

.b44-doc-issue p {
  margin-top: 6px;
  color: #374151;
}

.b44-doc-table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
}

.b44-doc-table th,
.b44-doc-table td {
  padding: 12px 10px;
  border-bottom: 1px solid #e5e7eb;
  text-align: left;
}

.b44-doc-table th:last-child,
.b44-doc-table td:last-child {
  text-align: right;
}

.b44-doc-table th {
  color: #6b7280;
  background: #f3f4f6;
  font-size: 0.76rem;
  text-transform: uppercase;
}

.b44-doc-totals {
  width: min(330px, 100%);
  margin-left: auto;
}

.b44-doc-totals div {
  padding: 5px 0;
  color: #374151;
}

.b44-doc-card footer {
  align-items: center;
  padding-top: 14px;
  border-top: 2px solid #111827;
  margin-left: auto;
  width: min(360px, 100%);
  font-size: 1.1rem;
}

.b44-doc-card footer strong {
  font-size: 1.35rem;
}

.b44-detail-backdrop {
  position: fixed;
  inset: 0;
  z-index: 760;
  display: flex;
  justify-content: flex-end;
  background: rgba(17, 24, 39, 0.42);
}

.b44-detail-panel {
  width: min(720px, 100%);
  height: 100%;
  overflow: auto;
  padding: 24px;
  background: #f9fafb;
  box-shadow: -22px 0 70px rgba(15, 23, 42, 0.25);
}

.b44-detail-panel > header {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding-bottom: 18px;
  border-bottom: 1px solid #e5e7eb;
}

.b44-detail-panel > header h2 {
  margin: 10px 0 4px;
  font-size: 1.8rem;
}

.b44-detail-panel > header p {
  color: #6b7280;
}

.b44-detail-panel > header button {
  width: 40px;
  height: 40px;
  border: 1px solid #e5e7eb;
  background: #fff;
  font-size: 1.4rem;
  cursor: pointer;
}

.b44-profile-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 18px 0;
}

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

.b44-detail-metrics div {
  min-height: 74px;
  display: grid;
  align-content: center;
  gap: 4px;
  padding: 12px;
  border: 1px solid #e5e7eb;
  background: #fff;
}

.b44-detail-metrics small {
  color: #6b7280;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
}

.b44-detail-metrics b {
  font-size: 1.1rem;
}

.b44-detail-card,
.b44-history-section {
  display: grid;
  gap: 10px;
  padding: 16px;
  margin-bottom: 14px;
}

.b44-detail-card h3,
.b44-history-section h3,
.b44-permission-editor h3 {
  margin: 0;
  font-size: 0.98rem;
}

.b44-detail-card span,
.b44-detail-card p,
.b44-history-list p {
  color: #6b7280;
  font-size: 0.9rem;
}

.b44-history-list {
  display: grid;
  gap: 9px;
}

.b44-history-list article {
  display: grid;
  gap: 5px;
  padding: 12px;
  border: 1px solid #e5e7eb;
  background: #f9fafb;
}

.b44-history-list article span {
  color: #6b7280;
  font-size: 0.84rem;
}

.b44-history-list article button {
  width: fit-content;
  min-height: 32px;
  margin-top: 4px;
  padding: 0 10px;
}

.b44-avatar.large {
  width: 58px;
  height: 58px;
}

.b44-permission-editor {
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px solid #e5e7eb;
  background: #f9fafb;
}

.b44-permission-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
}

.b44-permission-grid button {
  min-height: 58px;
  display: grid;
  gap: 3px;
  align-content: center;
  justify-items: start;
  border: 1px solid #e5e7eb;
  padding: 10px 12px;
  color: #4b5563;
  background: #fff;
  text-align: left;
  cursor: pointer;
}

.b44-permission-grid button.active {
  color: #1d4ed8;
  border-color: #bfdbfe;
  background: #eff6ff;
}

.b44-permission-grid span {
  color: inherit;
  font-weight: 800;
}

.b44-permission-grid small {
  color: #6b7280;
  font-size: 0.72rem;
  font-weight: 800;
}

@media (max-width: 1100px) {
  .b44-shell {
    grid-template-columns: 82px 1fr;
  }

  .b44-sidebar-brand div,
  .b44-sidebar nav button:not(.active),
  .b44-sidebar nav button.active {
    font-size: 0;
  }

  .b44-sidebar button {
    justify-content: center;
  }

  .b44-stat-grid,
  .b44-action-grid,
  .b44-card-grid,
  .b44-stat-grid.large,
  .b44-three-col {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .b44-two-col,
  .b44-toolbar,
  .b44-record-toolbar,
  .b44-email-layout {
    grid-template-columns: 1fr;
  }

  .b44-preview-body {
    grid-template-columns: 1fr;
  }
}

.b44-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 900;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(17, 24, 39, 0.5);
}

.b44-modal {
  width: min(780px, 100%);
  max-height: min(86vh, 760px);
  overflow: auto;
  border-radius: 20px;
  border: 1px solid #e5e7eb;
  background: #fff;
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.25);
}

.b44-modal-head,
.b44-modal-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px;
  border-bottom: 1px solid #e5e7eb;
}

.b44-modal-actions {
  justify-content: flex-end;
  border-top: 1px solid #e5e7eb;
  border-bottom: 0;
}

.b44-modal-head button,
.b44-modal-actions button {
  min-height: 40px;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 0 14px;
  background: #fff;
  cursor: pointer;
  font-weight: 800;
}

.b44-modal-actions .b44-primary {
  color: #fff;
  border-color: #2563eb;
  background: linear-gradient(135deg, #3b82f6, #2563eb);
  box-shadow: 0 10px 22px rgba(37, 99, 235, 0.2);
}

.b44-modal-head button {
  width: 36px;
  padding: 0;
  font-size: 1.4rem;
}

.b44-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  padding: 24px;
}

.b44-form-grid label {
  display: flex;
  flex-direction: column;
  gap: 7px;
  color: #374151;
  font-weight: 800;
  font-size: 0.86rem;
}

.b44-form-grid input,
.b44-form-grid select,
.b44-form-grid textarea {
  width: 100%;
  min-height: 44px;
  border: 1px solid #d1d5db;
  border-radius: 12px;
  padding: 10px 12px;
  color: #111827;
  background: #fff;
  font: inherit;
  font-weight: 500;
}

.b44-form-grid textarea {
  min-height: 110px;
  resize: vertical;
}

@media (max-width: 720px) {
  .b44-shell {
    display: block;
  }

  .b44-sidebar {
    position: relative;
    width: 100%;
    height: auto;
  }

  .b44-sidebar nav {
    flex-direction: row;
    overflow-x: auto;
  }

  .b44-logout {
    display: none !important;
  }

  .b44-main {
    padding: 22px 14px 60px;
  }

  .b44-page-head {
    display: grid;
  }

  .b44-page-head-actions,
  .b44-role-switch {
    width: 100%;
    justify-content: flex-start;
  }

  .b44-sync-pill {
    width: 100%;
    border-radius: 14px;
  }

  .b44-stat-grid,
  .b44-action-grid,
  .b44-card-grid,
  .b44-stat-grid.large,
  .b44-alert-grid,
  .b44-three-col {
    grid-template-columns: 1fr;
  }

  .b44-table-card {
    overflow-x: auto;
  }

  .b44-table {
    min-width: 860px;
  }

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

  .b44-view-toggle {
    width: 100%;
  }

  .b44-view-toggle button {
    flex: 1;
  }

  .b44-doc-preview {
    max-height: 94vh;
  }

  .b44-preview-body {
    padding: 12px;
  }

  .b44-doc-card {
    padding: 18px;
  }

  .b44-doc-card header,
  .b44-doc-card footer {
    display: grid;
    text-align: left;
  }

  .b44-doc-card header div:last-child {
    text-align: left;
  }

  .b44-doc-meta,
  .b44-detail-metrics,
  .b44-permission-grid {
    grid-template-columns: 1fr;
  }

  .b44-detail-panel {
    padding: 18px 14px;
  }
}

/* ============================================================
   Shadowed sharp-edge depth
   Corners are flattened globally; re-introduce depth with shadows
   on the key surfaces of the light admin portal and the storefront.
   ============================================================ */
.b44-stat-card,
.b44-panel,
.b44-table-card,
.b44-person-card,
.b44-alert-card,
.b44-chart,
.b44-search,
.b44-modal {
  box-shadow: 0 14px 30px -18px rgba(15, 23, 42, 0.5), 0 3px 0 -1px rgba(15, 23, 42, 0.06);
}

.b44-primary,
.b44-action-grid button,
.b44-role-switch button.active,
.b44-filters button.active {
  box-shadow: 0 5px 0 -2px rgba(15, 23, 42, 0.18), 0 14px 24px -14px rgba(37, 99, 235, 0.55);
}

.base44-service-card,
.process-grid article,
.testimonial-card,
.cert-card,
.contact-form,
.contact-map,
.base44-stats div,
.track-card {
  box-shadow: 0 20px 46px -22px rgba(0, 0, 0, 0.85), 0 4px 0 -1px rgba(0, 0, 0, 0.4);
}

.base44-actions .base44-book,
.base44-site .btn,
.track-form button {
  box-shadow: 0 6px 0 -2px rgba(0, 0, 0, 0.35), 0 14px 28px -12px rgba(37, 99, 235, 0.5) !important;
}

/* ============================================================
   Staff / Admin / Owner authentication page
   ============================================================ */
.auth-screen {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  background:
    radial-gradient(at 12% 18%, rgba(59, 130, 246, 0.12) 0px, transparent 55%),
    radial-gradient(at 88% 82%, rgba(16, 185, 129, 0.08) 0px, transparent 55%),
    var(--bg-primary);
}

/* Left brand / marketing panel */
.auth-brand {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 32px;
  padding: 46px 54px;
  overflow: hidden;
  border-right: 1px solid var(--border-color);
  background:
    linear-gradient(150deg, rgba(10, 14, 26, 0.82), rgba(17, 24, 39, 0.92)),
    url('https://images.unsplash.com/photo-1619642751034-765dfdf7c58e?w=1400&q=80');
  background-size: cover;
  background-position: center;
  box-shadow: inset -1px 0 0 rgba(255, 255, 255, 0.04);
}

.auth-brand::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 56px 56px;
  pointer-events: none;
  opacity: 0.5;
}

.auth-brand > * {
  position: relative;
  z-index: 1;
}

.auth-brand-mark {
  display: flex;
  align-items: center;
  gap: 14px;
}

.auth-logo {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(135deg, var(--primary-color), #1d4ed8);
  box-shadow: 0 10px 26px -8px var(--primary-glow), 0 4px 0 -1px rgba(0, 0, 0, 0.5);
}

.auth-brand-mark strong {
  display: block;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: 0.08em;
  line-height: 1;
}

.auth-brand-mark small {
  display: block;
  color: var(--primary-color);
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.32em;
  margin-top: 4px;
}

.auth-eyebrow {
  display: inline-block;
  color: var(--accent-color);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.auth-brand-copy h1 {
  font-size: clamp(2rem, 3vw, 2.9rem);
  line-height: 1.05;
  max-width: 460px;
  color: #fff;
}

.auth-brand-copy p {
  margin-top: 16px;
  max-width: 440px;
  color: #cdd5e3;
  font-size: 1.02rem;
  line-height: 1.6;
}

.auth-points {
  list-style: none;
  margin: 28px 0 0;
  padding: 0;
  display: grid;
  gap: 14px;
}

.auth-points li {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #e2e8f0;
  font-size: 0.94rem;
}

.auth-points li svg {
  color: var(--accent-color);
  flex: 0 0 auto;
}

.auth-guest-note {
  max-width: 460px;
  padding: 16px 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-left: 3px solid var(--primary-color);
  background: rgba(10, 14, 26, 0.55);
  color: #aab4c5;
  font-size: 0.86rem;
  line-height: 1.55;
}

/* Back-to-site buttons */
.auth-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  padding: 9px 14px;
  border: 1px solid var(--border-color);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-secondary);
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.84rem;
  cursor: pointer;
  transition: var(--transition-fast);
}

.auth-back:hover {
  color: var(--text-primary);
  border-color: var(--border-color-hover);
  background: rgba(255, 255, 255, 0.08);
}

.auth-back-mobile {
  display: none;
  margin-bottom: 22px;
}

/* Right form panel */
.auth-main {
  display: grid;
  place-items: center;
  padding: 48px 28px;
}

.auth-card {
  width: min(440px, 100%);
  padding: 40px 38px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  box-shadow: var(--edge-shadow);
}

.auth-head h2 {
  font-size: 1.85rem;
  line-height: 1.1;
}

.auth-head p {
  margin-top: 8px;
  color: var(--text-secondary);
  font-size: 0.94rem;
}

.auth-segment {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin: 26px 0 24px;
  padding: 5px;
  border: 1px solid var(--border-color);
  background: rgba(255, 255, 255, 0.03);
}

.auth-segment button {
  padding: 11px 0;
  border: 1px solid transparent;
  background: transparent;
  color: var(--text-secondary);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.92rem;
  cursor: pointer;
  transition: var(--transition-fast);
}

.auth-segment button.active {
  color: var(--text-primary);
  background: rgba(59, 130, 246, 0.16);
  border-color: rgba(59, 130, 246, 0.35);
  box-shadow: 0 3px 0 -1px rgba(0, 0, 0, 0.4);
}

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

.auth-label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.auth-label em {
  color: var(--text-tertiary);
  font-style: normal;
  font-weight: 500;
}

.auth-field {
  display: block;
}

.auth-input {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 14px;
  border: 1px solid var(--border-color);
  background: rgba(255, 255, 255, 0.03);
  transition: var(--transition-fast);
}

.auth-input:focus-within {
  border-color: var(--primary-color);
  background: rgba(255, 255, 255, 0.06);
  box-shadow: 0 0 0 3px var(--primary-glow);
}


.auth-submit:disabled {
  opacity: 0.65;
  cursor: progress;
  transform: none;
}

.auth-input svg {
  color: var(--text-tertiary);
  flex: 0 0 auto;
}

.auth-input input {
  width: 100%;
  padding: 13px 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 0.95rem;
}

.auth-input input::placeholder {
  color: var(--text-tertiary);
}

.auth-eye {
  border: 0;
  background: transparent;
  color: var(--text-tertiary);
  cursor: pointer;
  display: grid;
  place-items: center;
  padding: 4px;
}

.auth-eye:hover {
  color: var(--text-secondary);
}


.auth-error {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 11px 14px;
  border: 1px solid rgba(239, 68, 68, 0.35);
  background: rgba(239, 68, 68, 0.12);
  color: #fca5a5;
  font-size: 0.86rem;
}

.auth-error svg {
  flex: 0 0 auto;
}

.auth-submit {
  width: 100%;
  margin-top: 4px;
  padding: 14px 20px;
  font-size: 1rem;
}

.auth-foot {
  margin-top: 24px;
  padding-top: 22px;
  border-top: 1px solid var(--border-color);
}

.auth-foot > p {
  text-align: center;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.auth-foot button {
  border: 0;
  background: transparent;
  color: var(--primary-color);
  font-weight: 700;
  cursor: pointer;
  font-size: 0.9rem;
}

.auth-foot button:hover {
  color: var(--primary-hover);
}


@media (max-width: 920px) {
  .auth-screen {
    grid-template-columns: 1fr;
  }

  .auth-brand {
    display: none;
  }

  .auth-back-mobile {
    display: inline-flex;
  }

  .auth-main {
    padding: 28px 18px;
  }
}

@media (max-width: 440px) {
  .auth-card {
    padding: 30px 22px;
  }
}

/* ============================================================
   Windows XP "Luna" style database viewer (admin → Database)
   ============================================================ */
.xp-window {
  font-family: Tahoma, 'Segoe UI', 'Trebuchet MS', Verdana, sans-serif;
  font-size: 11px;
  color: #000;
  background: #ece9d8;
  border: 1px solid #003c74;
  box-shadow: 0 14px 34px -14px rgba(0, 0, 0, 0.55);
  display: flex;
  flex-direction: column;
  max-width: 100%;
  overflow: hidden;
}

.xp-titlebar {
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 4px 0 8px;
  color: #fff;
  background: linear-gradient(180deg, #0997ff 0%, #0053ee 8%, #0050ee 40%, #0061ff 88%, #0052f5 93%, #0c4ddb 95%, #002dbe 100%);
  border-bottom: 1px solid #003c74;
}

.xp-title {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-weight: 700;
  text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.45);
  letter-spacing: 0.01em;
}

.xp-controls {
  display: flex;
  gap: 3px;
}

.xp-controls span {
  width: 21px;
  height: 21px;
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(180deg, #4b9bff, #1860d3);
  border: 1px solid #003c74;
  box-shadow: inset 1px 1px 0 rgba(255, 255, 255, 0.5);
}

.xp-controls .xp-close {
  background: linear-gradient(180deg, #f2a17a, #e0481f);
}

.xp-menubar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 5px 8px;
  background: #ece9d8;
  border-bottom: 1px solid #aca899;
}

.xp-menubar button {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  font: inherit;
  font-weight: 700;
  color: #000;
  cursor: pointer;
  background: linear-gradient(180deg, #fdfdfd, #dcd8c8);
  border: 1px solid;
  border-color: #ffffff #808080 #808080 #ffffff;
}

.xp-menubar button:active {
  border-color: #808080 #ffffff #ffffff #808080;
  background: linear-gradient(180deg, #dcd8c8, #fdfdfd);
}

.xp-source {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #2a5d2a;
  font-weight: 700;
}

.xp-source.is-local {
  color: #9a3412;
}

.xp-menu-note {
  margin-left: auto;
  color: #444;
}

.xp-body {
  display: flex;
  min-height: 360px;
  max-height: 62vh;
}

.xp-tables {
  width: 188px;
  flex: 0 0 188px;
  display: flex;
  flex-direction: column;
  background: #fff;
  border-right: 1px solid #aca899;
  overflow: auto;
}

.xp-pane-title {
  padding: 5px 9px;
  font-weight: 700;
  color: #1b3c8c;
  background: linear-gradient(180deg, #fbfbfd, #e7ebf6);
  border-bottom: 1px solid #c4ccdd;
  position: sticky;
  top: 0;
}

.xp-tables ul {
  list-style: none;
  margin: 0;
  padding: 4px;
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.xp-tables li {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 4px 7px;
  cursor: pointer;
  color: #000;
  white-space: nowrap;
}

.xp-tables li svg {
  color: #d6a400;
  flex: 0 0 auto;
}

.xp-tables li span {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
}

.xp-tables li em {
  font-style: normal;
  color: #666;
  font-size: 10px;
}

.xp-tables li:hover {
  background: #e8eef9;
}

.xp-tables li.active {
  background: #316ac5;
  color: #fff;
}

.xp-tables li.active svg { color: #ffe07a; }
.xp-tables li.active em { color: #d6e2fb; }

.xp-data {
  flex: 1;
  min-width: 0;
  background: #fff;
  display: flex;
}

.xp-grid-wrap {
  flex: 1;
  min-width: 0;
  overflow: auto;
}

.xp-grid {
  border-collapse: collapse;
  width: max-content;
  min-width: 100%;
  font-size: 11px;
}

.xp-grid th,
.xp-grid td {
  border: 1px solid #d4d0c0;
  padding: 3px 8px;
  text-align: left;
  max-width: 260px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  vertical-align: top;
}

.xp-grid thead th {
  position: sticky;
  top: 0;
  z-index: 1;
  font-weight: 700;
  color: #1b3c8c;
  background: linear-gradient(180deg, #fbfbfd, #dfe4ef);
  border-color: #b9c0d0;
}

.xp-grid tbody tr:nth-child(even) td {
  background: #f4f6fb;
}

.xp-grid tbody tr:hover td {
  background: #fff6d6;
}

.xp-rownum {
  text-align: right !important;
  color: #888;
  background: #ece9d8 !important;
  font-weight: 700;
  position: sticky;
  left: 0;
}

.xp-grid thead .xp-rownum {
  z-index: 2;
}

.xp-null {
  color: #b00;
  font-style: italic;
  opacity: 0.7;
}

.xp-empty {
  padding: 24px !important;
  text-align: center !important;
  color: #777;
  font-style: italic;
}

.xp-statusbar {
  display: flex;
  gap: 4px;
  padding: 3px 4px;
  background: #ece9d8;
  border-top: 1px solid #aca899;
}

.xp-status-cell {
  padding: 2px 9px;
  color: #333;
  border: 1px solid;
  border-color: #808080 #ffffff #ffffff #808080;
  background: #ece9d8;
}

.xp-status-grow {
  margin-left: auto;
}

@media (max-width: 720px) {
  .xp-body {
    flex-direction: column;
    max-height: none;
  }

  .xp-tables {
    width: 100%;
    flex: none;
    max-height: 170px;
    border-right: 0;
    border-bottom: 1px solid #aca899;
  }
}
