body {
  margin: 0;
  min-height: 100vh;
  background: #f7f7f8;
  color: #172033;
  overflow-x: hidden;
  transition: background .3s ease, color .3s ease;
  font-family: Arial, "Noto Sans Hebrew", sans-serif;
}

.layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  min-height: 100vh;
}

.layout.sidebar-collapsed {
  grid-template-columns: minmax(0, 1fr) 84px;
}

.content {
  flex: 1;
  grid-column: 1;
  min-width: 0;
  padding: 54px clamp(24px, 4vw, 72px);
  transition: all .3s ease;
}

.app-page {
  margin: 0 auto;
  max-width: 1320px;
}

.sidebar {
  grid-column: 2;
  width: 280px;
  min-width: 280px;
  background: #fff;
  border-left: 1px solid #e2e8f0;
  color: #0f172a;
  display: flex;
  flex-direction: column;
  transition: width .25s ease, min-width .25s ease, border-color .25s ease;
  min-height: 100vh;
  overflow: hidden;
}

.sidebar.collapsed {
  min-width: 84px;
  width: 84px;
}

.sidebar-header {
  padding: 24px 18px 16px;
  white-space: nowrap;
}

.sidebar-brand {
  align-items: center;
  display: flex;
  gap: .75rem;
  margin-bottom: 28px;
}

.sidebar-logo {
  align-items: center;
  background: #eff6ff;
  border-radius: 14px;
  color: #2563eb;
  display: inline-flex;
  flex: 0 0 48px;
  font-size: 1.65rem;
  height: 48px;
  justify-content: center;
  width: 48px;
}

.sidebar-brand-copy,
.workspace-copy,
.profile-copy {
  display: grid;
  min-width: 0;
}

.sidebar-brand-copy strong {
  font-size: 1.35rem;
  line-height: 1.1;
}

.sidebar-brand-copy small,
.workspace-copy small,
.profile-copy small,
.sidebar-section-title {
  color: #64748b;
  font-size: .78rem;
}

.workspace-card {
  align-items: center;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  color: #0f172a;
  display: grid;
  gap: .7rem;
  grid-template-columns: 36px minmax(0, 1fr) auto;
  min-height: 76px;
  padding: 12px;
  text-align: right;
  width: 100%;
}

.workspace-icon {
  align-items: center;
  background: #f8fafc;
  border-radius: 10px;
  color: #64748b;
  display: inline-flex;
  font-size: 1.15rem;
  height: 36px;
  justify-content: center;
  width: 36px;
}

.workspace-copy strong {
  font-size: .94rem;
}

.workspace-arrow {
  color: #0f172a;
}

.sidebar-nav {
  flex: 1;
  overflow-y: auto;
  padding: 0 18px 16px;
}

.sidebar-section-title {
  font-weight: 800;
  margin: 0 0 .5rem;
  padding: 0 12px;
}

.sidebar-section {
  border-bottom: 1px solid #e2e8f0;
  display: grid;
  gap: .35rem;
  padding: 20px 0;
}

.sidebar-section:first-child {
  padding-top: 0;
}

.sidebar-section:last-child {
  border-bottom: 0;
}

.sidebar-link {
  align-items: center;
  background: transparent;
  border: 0;
  border-radius: 12px;
  color: #0f172a;
  display: grid;
  gap: .75rem;
  grid-template-columns: 36px minmax(0, 1fr) auto;
  min-height: 52px;
  padding: 8px 12px;
  position: relative;
  text-align: right;
  text-decoration: none;
  transition: background .2s ease, color .2s ease;
  white-space: nowrap;
  width: 100%;
}

.sidebar-link:hover,
.sidebar-link:focus {
  background: #eff6ff;
  color: #2563eb;
}

.sidebar-link.active {
  background: #eff6ff;
  color: #2563eb;
  font-weight: 800;
}

.sidebar-link.active::before {
  background: #2563eb;
  border-radius: 999px;
  bottom: 10px;
  content: "";
  position: absolute;
  right: 0;
  top: 10px;
  width: 4px;
}

.sidebar-link-icon {
  align-items: center;
  border-radius: 10px;
  color: #64748b;
  display: inline-flex;
  font-size: 1.2rem;
  height: 36px;
  justify-content: center;
  position: relative;
  width: 36px;
}

.sidebar-link.active .sidebar-link-icon,
.sidebar-link:hover .sidebar-link-icon {
  color: #2563eb;
}

.sidebar-button {
  font: inherit;
}

.sidebar-notification-icon em {
  align-items: center;
  background: #dbeafe;
  border-radius: 50%;
  color: #2563eb;
  display: inline-flex;
  font-size: .68rem;
  font-style: normal;
  height: 20px;
  justify-content: center;
  left: -4px;
  position: absolute;
  top: -4px;
  width: 20px;
}

.sidebar-switch {
  background: #cbd5e1;
  border-radius: 999px;
  height: 24px;
  position: relative;
  width: 44px;
}

.sidebar-switch::before {
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 1px 3px rgba(15, 23, 42, .2);
  content: "";
  height: 20px;
  left: 2px;
  position: absolute;
  top: 2px;
  transition: transform .2s ease;
  width: 20px;
}

body.dark-mode .sidebar-switch {
  background: #2563eb;
}

body.dark-mode .sidebar-switch::before {
  transform: translateX(20px);
}

.sidebar-link-extra {
  color: #64748b;
}

.sidebar-footer {
  padding: 16px 18px 22px;
}

.profile-box {
  margin-bottom: 14px;
  white-space: nowrap;
}

.profile-btn {
  width: 100%;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  color: #0f172a;
  display: grid;
  gap: .75rem;
  grid-template-columns: minmax(0, 1fr) 48px auto;
  min-height: 84px;
  padding: 12px;
  text-align: right;
}

.profile-btn strong,
.profile-btn small {
  display: block;
}

.profile-btn small {
  color: #64748b;
  font-size: .78rem;
  overflow: hidden;
  text-overflow: ellipsis;
}

.avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, #2563eb, #9333ea);
  display: flex;
  justify-content: center;
  align-items: center;
  color: white;
  font-weight: bold;
  flex-shrink: 0;
}

.sidebar-collapse-btn {
  align-items: center;
  background: transparent;
  border: 0;
  color: #64748b;
  display: flex;
  gap: .6rem;
  justify-content: flex-start;
  min-height: 40px;
  padding: 0 10px;
  width: 100%;
}

.sidebar-collapse-btn:hover,
.sidebar-collapse-btn:focus {
  color: #2563eb;
}

.sidebar.collapsed .sidebar-brand-copy,
.sidebar.collapsed .workspace-copy,
.sidebar.collapsed .workspace-arrow,
.sidebar.collapsed .sidebar-section-title,
.sidebar.collapsed .sidebar-link-label,
.sidebar.collapsed .sidebar-link-extra,
.sidebar.collapsed .sidebar-switch,
.sidebar.collapsed .profile-copy,
.sidebar.collapsed .profile-btn::after,
.sidebar.collapsed .sidebar-collapse-btn span {
  display: none;
}

.sidebar.collapsed .sidebar-header,
.sidebar.collapsed .sidebar-nav,
.sidebar.collapsed .sidebar-footer {
  padding-left: 14px;
  padding-right: 14px;
}

.sidebar.collapsed .sidebar-brand {
  justify-content: center;
  margin-bottom: 18px;
}

.sidebar.collapsed .workspace-card,
.sidebar.collapsed .sidebar-link,
.sidebar.collapsed .profile-btn {
  display: flex;
  justify-content: center;
  padding-left: 0;
  padding-right: 0;
}

.sidebar.collapsed .workspace-card {
  border-color: transparent;
  min-height: 48px;
}

.sidebar.collapsed .sidebar-link {
  min-height: 48px;
}

.sidebar.collapsed .profile-btn {
  min-height: 58px;
}

.sidebar.collapsed .sidebar-section {
  align-items: center;
}

.sidebar.collapsed .sidebar-link.active::before {
  bottom: 8px;
  top: 8px;
}

.sidebar.collapsed .sidebar-collapse-btn {
  justify-content: center;
}

.sidebar.collapsed .sidebar-collapse-btn i {
  transform: rotate(180deg);
}

.profile-avatar-img {
  border: 0;
  object-fit: cover;
}

.profile-avatar-empty {
  align-items: center;
  background: #0d6efd;
  color: white;
  display: inline-flex;
  height: 40px;
  justify-content: center;
  width: 40px;
}

.section-panel,
.metric,
.card {
  background: #fff;
  border: 1px solid #dfe3ea;
  border-radius: 10px;
  box-shadow: 0 2px 5px rgba(15, 23, 42, .08);
}

.section-panel {
  padding: 20px;
}

.metric {
  min-height: 190px;
  overflow: hidden;
  padding: 42px 28px 24px;
  position: relative;
}

.metric span {
  color: #52606d;
  display: block;
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: .75rem;
}

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

.metric small {
  color: #7b8794;
  display: block;
  margin-top: 1rem;
}

.metric::before {
  content: "";
  height: 5px;
  left: 0;
  position: absolute;
  right: 0;
  top: 0;
}

.metric-accent-cyan::before {
  background: #07aeea;
}

.metric-accent-slate::before {
  background: #8aa1bd;
}

.metric-accent-amber::before {
  background: #f59e0b;
}

.metric-accent-green::before {
  background: #12b886;
}

.metric-icon {
  align-items: center;
  background: #eef6fb;
  border-radius: 10px;
  color: #087ea4;
  display: flex;
  height: 44px;
  justify-content: center;
  position: absolute;
  left: 24px;
  top: 48px;
  width: 44px;
}

.metric-price,
.metric-text {
  font-size: 1.35rem !important;
  line-height: 1.25 !important;
  overflow-wrap: anywhere;
}

.analytics-list {
  display: grid;
  gap: .9rem;
}

.analytics-row span {
  color: #6c757d;
}

.dashboard-drill-link {
  color: inherit;
  text-decoration: none;
}

.dashboard-drill-link:hover .bar-fill,
.dashboard-drill-link:hover .progress-bar {
  filter: brightness(.92);
}

.dashboard-drill-link:hover .bar-label,
.dashboard-drill-link:hover span {
  color: #0d6efd;
}

.analytics-progress {
  height: .55rem;
  margin-top: .45rem;
}

.sales-filter-card,
.sales-table-card {
  border: 0;
  border-radius: 1rem;
  box-shadow: 0 .5rem 1.5rem rgba(15, 23, 42, .06);
}

.sales-filter-card .card-body {
  padding: 22px;
}

.sales-search-control {
  flex: 1 1 320px;
  min-width: 260px;
}

.sales-seller-control {
  flex: 0 1 220px;
  min-width: 190px;
}

.sales-date-range {
  flex: 1 1 390px;
  min-width: 320px;
}

.sales-date-range .form-floating {
  flex: 1 1 0;
}

.sales-date-separator {
  color: #6c757d;
  font-size: .85rem;
}

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

.sales-table thead th {
  background: #fff;
  border-bottom-color: #d7dee8;
  color: #111827;
  font-weight: 800;
  position: sticky;
  top: 0;
  z-index: 2;
}

.sales-table tbody tr {
  transition: background-color .15s ease, box-shadow .15s ease;
}

.sales-table tbody tr:hover {
  background: #f8fafc;
}

.sales-primary-link {
  color: #0d47a1;
}

.sales-primary-link:hover {
  color: #0d6efd;
}

.sales-money {
  font-variant-numeric: tabular-nums;
  font-weight: 700;
}

.sales-flow-badge {
  border: 1px solid #d7dee8;
  color: #334155 !important;
}

.dashboard-modern {
  max-width: 1480px;
}

.dashboard-modern .card {
  border: 0;
  border-radius: 1rem;
  box-shadow: 0 .5rem 1.5rem rgba(15, 23, 42, .06);
}

.dashboard-topbar {
  overflow: hidden;
}

.dashboard-topbar-grid {
  align-items: center;
  grid-template-columns: minmax(230px, 1fr) minmax(420px, 1.2fr) minmax(260px, 1fr);
}

.dashboard-logo {
  align-items: center;
  background: #e8f8ef;
  border-radius: 999px;
  color: #16a765;
  display: inline-flex;
  font-size: 1.55rem;
  height: 52px;
  justify-content: center;
  width: 52px;
}

.dashboard-date-input {
  min-width: 190px;
}

.dashboard-icon-btn {
  align-items: center;
  border-radius: .75rem;
  display: inline-flex;
  height: 40px;
  justify-content: center;
  width: 40px;
}

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

.dashboard-kpi-card .card-body {
  min-height: 178px;
  padding: 28px;
  position: relative;
}

.dashboard-kpi-card span {
  color: #111827;
  display: block;
  font-size: .98rem;
  font-weight: 800;
  margin-bottom: 1.25rem;
}

.dashboard-kpi-card strong {
  color: #111827;
  display: block;
  font-size: 2rem;
  line-height: 1.1;
}

.dashboard-kpi-card small {
  bottom: 24px;
  color: #64748b;
  display: block;
  position: absolute;
}

.dashboard-kpi-card small b {
  color: #16a765;
  margin-inline-end: .35rem;
}

.dashboard-kpi-money {
  font-size: 1.75rem !important;
}

.dashboard-kpi-icon {
  align-items: center;
  border-radius: 999px;
  display: inline-flex;
  font-size: 1.45rem;
  height: 56px;
  justify-content: center;
  left: 24px;
  position: absolute;
  top: 40px;
  width: 56px;
}

.kpi-blue {
  background: #dbeafe;
  color: #2563eb;
}

.kpi-purple {
  background: #f3e8ff;
  color: #7c3aed;
}

.kpi-orange {
  background: #ffedd5;
  color: #f97316;
}

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

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

.dashboard-card .card-body {
  padding: 28px;
}

.dashboard-card-header {
  margin-bottom: 28px;
}

.dashboard-card-header h2 {
  color: #111827;
  font-weight: 800;
}

.dashboard-period-select {
  border-radius: .65rem;
  width: 96px;
}

.dashboard-bar-chart {
  align-items: end;
  border-bottom: 2px solid #d7dee8;
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(6, minmax(48px, 1fr));
  height: 270px;
  padding-top: 22px;
}

.dashboard-bar-item {
  align-items: center;
  display: grid;
  gap: .5rem;
  grid-template-rows: auto 1fr auto;
  height: 100%;
  min-width: 0;
}

.dashboard-bar-value {
  color: #334155;
  font-size: .85rem;
  font-weight: 700;
  min-height: 20px;
  overflow-wrap: anywhere;
  text-align: center;
}

.dashboard-bar-track {
  align-items: end;
  display: flex;
  height: 100%;
  justify-content: center;
  width: 100%;
}

.dashboard-bar-fill {
  background: linear-gradient(180deg, #60a5fa 0%, #2563eb 100%);
  border-radius: .45rem .45rem 0 0;
  box-shadow: 0 10px 24px rgba(37, 99, 235, .18);
  min-height: 10px;
  width: min(100%, 62px);
}

.chart-counts .dashboard-bar-fill {
  background: linear-gradient(180deg, #34d399 0%, #059669 100%);
  box-shadow: 0 10px 24px rgba(5, 150, 105, .18);
}

.dashboard-bar-label {
  color: #64748b;
  font-size: .86rem;
  text-align: center;
  white-space: nowrap;
}

.dashboard-ranking-list {
  display: grid;
  gap: 1rem;
}

.dashboard-rank-row {
  align-items: center;
  display: grid;
  gap: 1rem;
  grid-template-columns: 42px minmax(0, 1fr);
}

.dashboard-rank-badge {
  align-items: center;
  background: #dcfce7;
  border-radius: .65rem;
  color: #16803d;
  display: inline-flex;
  font-weight: 800;
  height: 30px;
  justify-content: center;
  width: 42px;
}

.rank-status-sold {
  background: #dbeafe;
  color: #1d4ed8;
}

.rank-status-reserved {
  background: #ffedd5;
  color: #c2410c;
}

.rank-status-in_service {
  background: #f3e8ff;
  color: #7c3aed;
}

.dashboard-rank-main span {
  color: #475569;
}

.dashboard-rank-progress {
  background: #e8edf4;
  height: .45rem;
  margin-top: .55rem;
}

.dashboard-recent-card {
  overflow: hidden;
}

.dashboard-vehicle-search {
  min-width: 280px;
}

.dashboard-vehicles-table thead th {
  background: #fff;
  border-bottom-color: #d7dee8;
  color: #111827;
  font-weight: 800;
  position: sticky;
  top: 0;
  z-index: 2;
}

.dashboard-vehicles-table tbody tr:hover {
  background: #f8fafc;
}

.inventory-page {
  max-width: 1480px;
}

.inventory-shell {
  border: 0;
  border-radius: 1rem;
  box-shadow: 0 .5rem 1.5rem rgba(15, 23, 42, .06);
}

.inventory-shell > .card-body {
  padding: 30px;
}

.inventory-header {
  margin-bottom: 28px;
}

.inventory-header-icon {
  align-items: center;
  background: #dbeafe;
  border-radius: 1rem;
  color: #2563eb;
  display: inline-flex;
  font-size: 1.6rem;
  height: 60px;
  justify-content: center;
  width: 60px;
}

.inventory-summary-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  margin-bottom: 22px;
}

.inventory-summary-card {
  background: #f8fafc;
  border: 1px solid #e5eaf2;
  border-radius: 1rem;
  padding: 18px;
}

.inventory-summary-card span {
  color: #64748b;
  display: block;
  font-size: .85rem;
  font-weight: 700;
  margin-bottom: .5rem;
}

.inventory-summary-card strong {
  color: #111827;
  display: block;
  font-size: 1.35rem;
  line-height: 1.2;
}

.inventory-summary-card small {
  color: #94a3b8;
  display: block;
  margin-top: .35rem;
}

.inventory-filter-card {
  margin-bottom: 18px;
}

.inventory-filter-card .card-body {
  padding: 24px;
}

.inventory-filter-form {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(5, minmax(150px, 1fr));
}

.inventory-global-search {
  grid-column: span 2;
}

.inventory-filter-actions {
  align-items: end;
  display: flex;
  gap: .75rem;
  grid-column: span 2;
  justify-content: flex-start;
}

.inventory-saved-filters {
  border-top: 1px solid #e5eaf2;
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-top: 20px;
  padding-top: 16px;
}

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

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

.inventory-table thead th {
  background: #fff;
  border-bottom-color: #d7dee8;
  color: #111827;
  font-weight: 800;
  position: sticky;
  top: 0;
  z-index: 2;
}

.inventory-table tbody tr:hover {
  background: #f8fafc;
}

.inventory-vehicle-title {
  color: #111827;
  display: inline-block;
  font-weight: 800;
  margin-bottom: .25rem;
  text-decoration: none;
}

.inventory-vehicle-title:hover {
  color: #0d6efd;
}

.inventory-number,
.inventory-money {
  font-variant-numeric: tabular-nums;
}

.inventory-money {
  font-weight: 700;
}

.inventory-action-btn {
  align-items: center;
  border-radius: .75rem;
  display: inline-flex;
  height: 38px;
  justify-content: center;
  width: 42px;
}

.inventory-pagination {
  border-top: 1px solid #e5eaf2;
  padding: 16px 22px;
}

.vehicle-onboarding-modal .modal-dialog {
  max-width: min(1280px, calc(100vw - 32px));
  height: calc(100vh - 32px);
  margin-bottom: 16px;
  margin-top: 16px;
}

.vehicle-onboarding-modal .modal-content {
  border-radius: 12px;
  box-shadow: 0 28px 80px rgba(15, 23, 42, .35);
  display: flex;
  flex-direction: column;
  height: calc(100vh - 32px);
  max-height: calc(100vh - 32px);
  overflow: hidden;
}

.vehicle-onboarding-modal form {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  height: 100%;
  min-height: 0;
  overflow: hidden;
}

.vehicle-modal-header {
  align-items: center;
  border-bottom: 1px solid #e5eaf2;
  justify-content: space-between;
  min-height: 128px;
  padding: 28px 48px;
}

.vehicle-modal-header-actions {
  align-items: center;
  display: flex;
  gap: .75rem;
}

.vehicle-modal-title {
  align-items: center;
  display: flex;
  gap: 1.25rem;
}

.vehicle-modal-title h2 {
  color: #0f172a;
  font-size: 1.85rem;
  font-weight: 900;
  margin: 0 0 .35rem;
}

.vehicle-modal-title p {
  color: #64748b;
  font-size: 1rem;
}

.vehicle-modal-icon {
  align-items: center;
  background: #ede9fe;
  border-radius: 50%;
  color: #4f46e5;
  display: inline-flex;
  font-size: 2rem;
  height: 74px;
  justify-content: center;
  width: 74px;
}

.vehicle-modal-close {
  align-items: center;
  background: #fff;
  border: 1px solid #d8dee9;
  border-radius: 10px;
  color: #334155;
  display: inline-flex;
  font-size: 1.25rem;
  height: 58px;
  justify-content: center;
  width: 58px;
}

.vehicle-modal-close:hover,
.vehicle-modal-close:focus {
  background: #f8fafc;
  color: #0f172a;
}

.vehicle-modal-body {
  flex: 1 1 auto;
  max-height: calc(100vh - 282px);
  min-height: 0;
  overflow-y: auto;
  padding: 28px 48px 36px;
}

.vehicle-onboarding-form {
  display: grid;
  gap: 19px 26px;
  grid-template-columns: repeat(12, minmax(0, 1fr));
}

.vehicle-span-3 {
  grid-column: span 3;
}

.vehicle-span-4 {
  grid-column: span 4;
}

.vehicle-span-6 {
  grid-column: span 6;
}

.vehicle-span-12 {
  grid-column: span 12;
}

.vehicle-offset-4 {
  grid-column: 5 / span 4;
}

.vehicle-field {
  min-width: 0;
}

.vehicle-field .form-label {
  color: #0f172a;
  display: block;
  font-weight: 800;
  margin-bottom: .55rem;
  text-align: right;
}

.vehicle-field .form-label span {
  color: #dc2626;
  margin-right: .25rem;
}

.vehicle-input-wrap {
  align-items: center;
  background: #fff;
  border: 1px solid #d8dee9;
  border-radius: 10px;
  display: flex;
  direction: rtl;
  min-height: 54px;
  overflow: hidden;
}

.vehicle-input-wrap:focus-within {
  border-color: #8b5cf6;
  box-shadow: 0 0 0 .2rem rgba(139, 92, 246, .12);
}

.vehicle-input-wrap > i {
  align-items: center;
  color: #4f46e5;
  display: inline-flex;
  flex: 0 0 54px;
  font-size: 1.25rem;
  justify-content: center;
}

.vehicle-input-wrap .form-control,
.vehicle-input-wrap .form-select {
  background-color: transparent;
  border: 0;
  box-shadow: none;
  color: #0f172a;
  flex: 1 1 auto;
  min-height: 52px;
  min-width: 0;
  padding: 0 14px;
  text-align: right;
}

.vehicle-input-wrap .form-control::placeholder,
.vehicle-input-wrap .form-select {
  color: #64748b;
}

.vehicle-input-wrap .form-select {
  background-image: none;
}

.vehicle-combobox,
.vehicle-filter-combobox {
  position: relative;
}

.vehicle-combobox-menu {
  background: #fff;
  border: 1px solid #d8dee9;
  border-radius: 14px;
  box-shadow: 0 18px 42px rgba(15, 23, 42, .14);
  direction: rtl;
  inset-inline: 0;
  margin-top: 8px;
  max-height: 280px;
  overflow-y: auto;
  padding: 8px;
  position: absolute;
  text-align: right;
  top: 100%;
  z-index: 1090;
}

.vehicle-combobox-option {
  align-items: center;
  background: transparent;
  border: 0;
  border-radius: 10px;
  color: #0f172a;
  display: flex;
  gap: 10px;
  padding: 10px;
  text-align: right;
  width: 100%;
}

.vehicle-combobox-option:hover,
.vehicle-combobox-option:focus,
.vehicle-combobox-option.active {
  background: #eff6ff;
  color: #1d4ed8;
  outline: 0;
}

.vehicle-brand-fallback {
  align-items: center;
  background: #eef2ff;
  border-radius: 12px;
  color: #4f46e5;
  display: inline-flex;
  flex: 0 0 36px;
  font-size: .78rem;
  font-weight: 900;
  height: 36px;
  justify-content: center;
  overflow: hidden;
  text-transform: uppercase;
}

.vehicle-brand-logo {
  height: 24px;
  max-width: 26px;
  object-fit: contain;
  width: auto;
}

.vehicle-option-text {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
  min-width: 0;
}

.vehicle-option-text strong {
  font-weight: 800;
}

.vehicle-option-text small,
.vehicle-catalog-status,
.vehicle-combobox-empty {
  color: #64748b;
}

.vehicle-option-text small {
  font-size: .78rem;
}

.vehicle-catalog-status {
  font-size: .78rem;
  margin-top: .35rem;
}

.vehicle-combobox-empty {
  font-size: .88rem;
  padding: 12px;
}

.vehicle-select-cue {
  align-items: center;
  background: transparent;
  border: 0;
  color: #0f172a;
  display: inline-flex;
  flex: 0 0 46px;
  justify-content: center;
}

.vehicle-filter-combobox .form-control {
  padding-left: 44px;
}

.vehicle-filter-cue {
  align-items: center;
  background: transparent;
  border: 0;
  bottom: 0;
  color: #64748b;
  display: inline-flex;
  justify-content: center;
  left: 8px;
  position: absolute;
  top: 0;
  width: 38px;
  z-index: 5;
}

.vehicle-prefix,
.vehicle-suffix {
  align-items: center;
  align-self: stretch;
  background: #f8fafc;
  color: #64748b;
  display: inline-flex;
  flex: 0 0 52px;
  justify-content: center;
}

.vehicle-status-dot {
  background: #22c55e;
  border-radius: 50%;
  height: 14px;
  margin-left: 10px;
  width: 14px;
}

.vehicle-textarea-wrap {
  align-items: flex-start;
  min-height: 72px;
}

.vehicle-textarea-wrap > i {
  padding-top: 18px;
}

.vehicle-textarea-wrap textarea.form-control {
  min-height: 72px;
  padding-top: 16px;
  resize: vertical;
}

.vehicle-field .form-text {
  color: #64748b;
  margin-top: .45rem;
}

.vehicle-modal-footer {
  background: #fff;
  border-top: 1px solid #e5eaf2;
  flex: 0 0 auto;
  gap: 1rem;
  justify-content: flex-end;
  padding: 18px 48px;
  position: sticky;
  bottom: 0;
  z-index: 3;
}

.vehicle-save-btn,
.vehicle-cancel-btn {
  align-items: center;
  border-radius: 10px;
  display: inline-flex;
  font-weight: 800;
  justify-content: center;
  min-height: 52px;
  padding-inline: 1.5rem;
}

.vehicle-save-btn {
  background: linear-gradient(135deg, #6d28d9, #4f46e5);
  border: 0;
  box-shadow: 0 14px 28px rgba(79, 70, 229, .2);
  min-width: 156px;
}

.vehicle-save-btn-top {
  min-height: 48px;
}

.vehicle-save-btn:hover,
.vehicle-save-btn:focus {
  background: linear-gradient(135deg, #5b21b6, #4338ca);
}

.vehicle-cancel-btn {
  min-width: 128px;
}

.customer-onboarding-modal .modal-dialog {
  max-width: min(1180px, calc(100vw - 32px));
}

.customer-onboarding-modal .modal-content {
  border-radius: 1rem;
  box-shadow: 0 28px 80px rgba(15, 23, 42, .3);
  overflow: hidden;
}

.customer-onboarding-modal form {
  display: flex;
  flex-direction: column;
  max-height: calc(100vh - 40px);
  min-height: 0;
}

.customer-modal-header {
  align-items: center;
  border-bottom: 1px solid #e5eaf2;
  justify-content: space-between;
  min-height: 126px;
  padding: 28px 38px;
}

.customer-modal-title {
  align-items: center;
  display: flex;
  gap: 1.25rem;
}

.customer-modal-title h2 {
  color: #0f172a;
  font-size: 1.85rem;
  font-weight: 900;
  letter-spacing: 0;
  margin: 0 0 .35rem;
}

.customer-modal-title p {
  color: #64748b;
  font-size: 1rem;
  max-width: 720px;
}

.customer-modal-icon {
  align-items: center;
  background: #ede9fe;
  border-radius: 50%;
  color: #4338ca;
  display: inline-flex;
  flex: 0 0 auto;
  font-size: 2.15rem;
  height: 76px;
  justify-content: center;
  width: 76px;
}

.customer-modal-close {
  align-items: center;
  background: #fff;
  border: 1px solid #cfd8e6;
  border-radius: .75rem;
  color: #334155;
  display: inline-flex;
  flex: 0 0 auto;
  font-size: 1.4rem;
  height: 58px;
  justify-content: center;
  width: 58px;
}

.customer-modal-close:hover,
.customer-modal-close:focus {
  background: #f8fafc;
  color: #0f172a;
}

.customer-modal-body {
  flex: 1 1 auto;
  overflow-y: auto;
  padding: 38px;
}

.customer-onboarding-form {
  display: grid;
  gap: 1.35rem 2rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.customer-modal-field label {
  color: #172033;
  font-size: 1rem;
  font-weight: 900;
  margin-bottom: .65rem;
}

.customer-modal-field label span {
  color: #dc2626;
}

.customer-modal-input {
  position: relative;
}

.customer-modal-input > i {
  color: #64748b;
  font-size: 1.35rem;
  pointer-events: none;
  position: absolute;
  right: 1.15rem;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
}

.customer-modal-input .form-control {
  border-color: #cfd8e6;
  border-radius: .75rem;
  font-size: 1rem;
  min-height: 58px;
  padding: .85rem 3.25rem .85rem 1rem;
}

.customer-modal-input .form-control:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 .2rem rgba(37, 99, 235, .12);
}

.customer-modal-field .form-text {
  color: #64748b;
  font-size: .8rem;
  margin-top: .4rem;
}

.customer-modal-notes {
  grid-column: 1 / -1;
}

.customer-modal-textarea > i {
  top: 1.15rem;
  transform: none;
}

.customer-modal-textarea .form-control {
  min-height: 118px;
  padding-top: 1rem;
  resize: vertical;
}

.customer-modal-footer {
  background: #fff;
  border-top: 1px solid #e5eaf2;
  flex: 0 0 auto;
  gap: .75rem;
  justify-content: flex-end;
  padding: 22px 38px;
}

.customer-save-btn,
.customer-cancel-btn {
  align-items: center;
  border-radius: .7rem;
  display: inline-flex;
  font-weight: 900;
  justify-content: center;
  min-height: 50px;
  padding-inline: 1.35rem;
}

.customer-save-btn {
  min-width: 160px;
}

.customer-cancel-btn {
  min-width: 104px;
}

.customers-page {
  max-width: 1480px;
}

.customers-shell {
  border: 0;
  border-radius: 1rem;
  box-shadow: 0 .5rem 1.5rem rgba(15, 23, 42, .06);
}

.customers-shell > .card-body {
  padding: 30px;
}

.customers-header {
  margin-bottom: 28px;
}

.customers-header-icon {
  align-items: center;
  background: #eef2ff;
  border-radius: 1rem;
  color: #2563eb;
  display: inline-flex;
  font-size: 1.6rem;
  height: 60px;
  justify-content: center;
  width: 60px;
}

.customers-search-card {
  margin-bottom: 18px;
}

.customers-search-card .card-body {
  padding: 20px;
}

.customers-search-form {
  align-items: end;
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(260px, 1fr) minmax(180px, 240px) auto auto;
}

.customers-global-search .input-group-text {
  background: #fff;
}

.customers-summary-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  margin-bottom: 18px;
}

.customers-summary-card {
  background: #fff;
  border: 1px solid #e5eaf2;
  border-radius: 1rem;
  box-shadow: 0 .5rem 1.5rem rgba(15, 23, 42, .05);
  padding: 18px;
}

.customers-summary-card span {
  color: #64748b;
  display: block;
  font-size: .85rem;
  font-weight: 700;
  margin-bottom: .5rem;
}

.customers-summary-card strong {
  color: #111827;
  display: block;
  font-size: 1.5rem;
  line-height: 1.15;
}

.customers-summary-card small {
  color: #94a3b8;
  display: block;
  margin-top: .35rem;
}

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

.customers-table-toolbar {
  align-items: center;
  border-bottom: 1px solid #e5eaf2;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  padding: 22px;
}

.customers-saved-views {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
}

.customers-table {
  min-width: 940px;
}

.customers-table thead th {
  background: #fff;
  border-bottom-color: #d7dee8;
  color: #111827;
  font-weight: 800;
  position: sticky;
  top: 0;
  z-index: 2;
}

.customers-table tbody tr:hover {
  background: #f8fafc;
}

.customer-avatar {
  align-items: center;
  background: linear-gradient(135deg, #2563eb, #7c3aed);
  border-radius: 50%;
  color: #fff;
  display: inline-flex;
  flex: 0 0 36px;
  font-size: .78rem;
  font-weight: 800;
  height: 36px;
  justify-content: center;
  letter-spacing: 0;
  width: 36px;
}

.customer-name-link {
  color: #111827;
  display: inline-block;
  font-weight: 800;
  text-decoration: none;
}

.customer-name-link:hover {
  color: #0d6efd;
}

.customer-count {
  font-variant-numeric: tabular-nums;
  font-weight: 700;
}

.customer-action-btn {
  align-items: center;
  border-radius: .75rem;
  display: inline-flex;
  height: 38px;
  justify-content: center;
  width: 42px;
}

.customers-pagination {
  border-top: 1px solid #e5eaf2;
  padding: 16px 22px;
}

.admin-page {
  max-width: 1500px;
}

.admin-shell {
  border: 0;
  border-radius: 1rem;
  box-shadow: 0 .5rem 1.5rem rgba(15, 23, 42, .06);
}

.admin-shell > .card-body {
  padding: 26px;
}

.admin-header {
  margin-bottom: 34px;
}

.admin-header-icon,
.admin-card-icon {
  align-items: center;
  background: #eef2ff;
  border-radius: 1rem;
  color: #2563eb;
  display: inline-flex;
  font-size: 1.55rem;
  height: 58px;
  justify-content: center;
  width: 58px;
}

.admin-card-icon {
  background: #eff6ff;
  height: 48px;
  width: 48px;
}

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

.admin-summary-card {
  align-items: center;
  background: #fff;
  border: 1px solid #e5eaf2;
  border-radius: 1rem;
  box-shadow: 0 .5rem 1.5rem rgba(15, 23, 42, .05);
  display: flex;
  justify-content: space-between;
  min-height: 116px;
  padding: 20px 24px;
}

.admin-summary-card span {
  color: #64748b;
  display: block;
  font-size: .85rem;
  font-weight: 800;
  margin-bottom: .5rem;
}

.admin-summary-card strong {
  color: #111827;
  display: block;
  font-size: 1.7rem;
  line-height: 1.15;
}

.admin-summary-card small {
  color: #94a3b8;
  display: block;
  margin-top: .75rem;
}

.admin-summary-icon {
  align-items: center;
  border-radius: 50%;
  display: inline-flex;
  flex: 0 0 58px;
  font-size: 1.55rem;
  height: 58px;
  justify-content: center;
  width: 58px;
}

.admin-summary-sales .admin-summary-icon {
  background: #dbeafe;
  color: #2563eb;
}

.admin-summary-owner .admin-summary-icon {
  background: #f3e8ff;
  color: #7c3aed;
}

.admin-summary-active .admin-summary-icon {
  background: #dcfce7;
  color: #16a34a;
}

.admin-summary-users .admin-summary-icon {
  background: #e0f2fe;
  color: #2563eb;
}

.admin-create-card,
.admin-users-card,
.admin-security-card {
  margin-bottom: 14px;
}

.admin-create-card .card-body,
.admin-security-card .card-body {
  padding: 24px 26px;
}

.admin-create-grid {
  align-items: end;
  display: grid;
  gap: 20px;
  grid-template-columns: minmax(210px, 1fr) minmax(210px, 1fr) minmax(180px, .75fr) minmax(210px, 1fr) minmax(150px, auto);
}

.admin-password-group .form-floating {
  flex: 1 1 auto;
}

.admin-active-switch {
  align-items: center;
  display: flex;
  min-height: 58px;
}

.admin-users-card {
  overflow: hidden;
}

.admin-users-toolbar {
  align-items: center;
  border-bottom: 1px solid #e5eaf2;
  display: grid;
  gap: 1rem;
  grid-template-columns: minmax(220px, 1fr) minmax(280px, 360px) auto;
  padding: 22px;
}

.admin-user-search {
  min-width: 280px;
}

.admin-users-table {
  min-width: 1060px;
}

.admin-users-table thead th {
  background: #fff;
  border-bottom-color: #d7dee8;
  color: #111827;
  font-weight: 800;
  position: sticky;
  top: 0;
  z-index: 2;
}

.admin-users-table tbody tr:hover {
  background: #f8fafc;
}

.admin-avatar-cell {
  width: 54px;
}

.admin-avatar {
  align-items: center;
  background: #c7d2fe;
  border-radius: 50%;
  color: #4338ca;
  display: inline-flex;
  flex: 0 0 38px;
  font-size: .8rem;
  font-weight: 800;
  height: 38px;
  justify-content: center;
  letter-spacing: 0;
  width: 38px;
}

.admin-user-name {
  color: #111827;
  font-weight: 800;
  text-decoration: none;
}

.admin-user-name:hover {
  color: #0d6efd;
}

.admin-role-badge {
  align-items: center;
  display: inline-flex;
  font-weight: 700;
  gap: .25rem;
}

.admin-role-owner {
  background: #ede9fe;
  color: #6d28d9;
}

.admin-role-sales {
  background: #dbeafe;
  color: #1d4ed8;
}

.admin-row-switch {
  display: inline-flex;
  gap: .45rem;
  min-width: 92px;
}

.admin-row-switch .form-check-input:checked {
  background-color: #22c55e;
  border-color: #22c55e;
}

.admin-action-btn {
  align-items: center;
  border-radius: .75rem;
  display: inline-flex;
  height: 38px;
  justify-content: center;
  width: 42px;
}

.admin-action-menu {
  min-width: 220px;
}

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

.admin-security-item {
  align-items: center;
  background: #fff;
  border: 1px solid #e5eaf2;
  border-radius: 1rem;
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  min-height: 98px;
  padding: 18px 20px;
}

.admin-security-item strong {
  color: #111827;
  display: block;
  font-size: .95rem;
}

.admin-security-item small {
  color: #64748b;
  display: block;
  margin-top: .25rem;
}

.invitation-status {
  border: 1px solid transparent;
}

.invitation-status-pending {
  background: #fff4df;
  border-color: #ffd899;
  color: #8a5300;
}

.invitation-status-accepted {
  background: #dcfce7;
  border-color: #86efac;
  color: #166534;
}

.invitation-status-expired,
.invitation-status-revoked {
  background: #f1f5f9;
  border-color: #cbd5e1;
  color: #475569;
}

.dashboard-hero {
  margin: 0 auto 32px;
  text-align: center;
}

.brand-mark {
  align-items: center;
  color: #12b886;
  display: inline-flex;
  font-size: 1.7rem;
  height: 42px;
  justify-content: center;
  margin-bottom: .25rem;
  width: 42px;
}

.dashboard-hero h1 {
  color: #111827;
  font-size: 2.15rem;
  font-weight: 800;
  line-height: 1;
  margin: 0 0 .5rem;
}

.dashboard-hero p {
  color: #7b8794;
  font-size: 1rem;
  margin: 0;
}

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

.dashboard-filter-panel {
  margin-bottom: 26px;
}

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

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

.dashboard-inventory {
  margin-top: 22px;
}

.chart-card {
  background: #fff;
  border: 1px solid #dfe3ea;
  border-radius: 10px;
  box-shadow: 0 2px 5px rgba(15, 23, 42, .08);
  min-height: 410px;
  padding: 26px 28px;
}

.chart-heading {
  margin-bottom: 28px;
  text-align: right;
}

.chart-heading h2 {
  color: #111827;
  font-size: 1.25rem;
  font-weight: 800;
  margin: 0 0 .5rem;
}

.chart-heading p {
  color: #7b8794;
  margin: 0;
}

.bar-chart {
  align-items: end;
  border-bottom: 2px solid #9aa4b2;
  border-right: 2px solid #9aa4b2;
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(6, minmax(48px, 1fr));
  height: 280px;
  padding: 16px 18px 0 0;
}

.bar-item {
  align-items: center;
  display: grid;
  gap: .45rem;
  grid-template-rows: auto 1fr auto;
  height: 100%;
  min-width: 0;
}

.bar-value {
  color: #52606d;
  font-size: .82rem;
  min-height: 18px;
  overflow-wrap: anywhere;
  text-align: center;
}

.bar-track {
  align-items: end;
  display: flex;
  height: 100%;
  justify-content: center;
  width: 100%;
}

.bar-fill {
  background: #137b91;
  border-radius: 5px 5px 0 0;
  min-height: 8px;
  width: min(100%, 74px);
}

.chart-counts .bar-fill {
  background: #1db5a7;
}

.bar-label {
  color: #6b7280;
  font-size: .85rem;
  overflow: hidden;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
  width: 100%;
}

.table {
  margin-bottom: 0;
}

.danger-panel {
  border-color: #f1c7c7;
}

.danger-action {
  border-top: 1px solid #f1c7c7;
  padding-top: 1rem;
}

.vehicle-detail-shell {
  color: #0f172a;
  margin-inline: auto;
  max-width: 1280px;
}

.vehicle-detail-hero {
  align-items: flex-start;
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.vehicle-back-btn {
  align-items: center;
  background: #fff;
  border-color: #dbe3ef;
  border-radius: .75rem;
  box-shadow: 0 .5rem 1.25rem rgba(15, 23, 42, .04);
  display: inline-flex;
  font-weight: 800;
  min-height: 54px;
  margin-inline-start: auto;
  padding-inline: 1.25rem;
}

.vehicle-hero-copy {
  margin-inline-end: auto;
  text-align: left;
}

.vehicle-breadcrumb {
  align-items: center;
  color: #64748b;
  display: inline-flex;
  flex-wrap: wrap;
  font-size: .9rem;
  font-weight: 700;
  gap: .55rem;
  justify-content: flex-start;
  margin-bottom: .85rem;
}

.vehicle-breadcrumb a {
  color: #64748b;
  text-decoration: none;
}

.vehicle-breadcrumb a:hover {
  color: #2563eb;
}

.vehicle-hero-copy h1 {
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1.1;
  margin: 0 0 .75rem;
}

.vehicle-hero-meta {
  align-items: center;
  color: #64748b;
  display: flex;
  font-size: 1rem;
  font-weight: 700;
  gap: .7rem;
  justify-content: flex-start;
}

.vehicle-meta-separator {
  color: #94a3b8;
}

.vehicle-stat-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.vehicle-stat-card,
.vehicle-detail-card {
  background: #fff;
  border: 1px solid #e8edf5;
  border-radius: 1rem;
  box-shadow: 0 .8rem 2rem rgba(15, 23, 42, .06);
}

.vehicle-stat-card {
  min-height: 112px;
  padding: 1.45rem 1.65rem;
  position: relative;
  text-align: right;
}

.vehicle-stat-card span {
  color: #64748b;
  display: block;
  font-size: .95rem;
  font-weight: 800;
  margin-bottom: .5rem;
}

.vehicle-stat-card strong {
  color: #0f172a;
  display: block;
  font-size: 1.55rem;
  font-weight: 900;
  overflow-wrap: anywhere;
}

.vehicle-stat-icon {
  align-items: center;
  border-radius: 1rem;
  display: inline-flex;
  font-size: 1.55rem;
  height: 56px;
  justify-content: center;
  left: 1.35rem;
  position: absolute;
  top: 1.35rem;
  width: 56px;
}

.vehicle-stat-year,
.vehicle-card-icon {
  background: #eaf2ff;
  color: #2563eb;
}

.vehicle-stat-price {
  background: #dcfce7;
  color: #16a34a;
}

.vehicle-stat-km {
  background: #ffedd5;
  color: #f97316;
}

.vehicle-stat-color {
  background: #ede9fe;
  color: #4f46e5;
}

.vehicle-detail-card {
  padding: 1.5rem;
}

.vehicle-card-heading {
  align-items: center;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.35rem;
}

.vehicle-card-title {
  align-items: center;
  display: flex;
  gap: .85rem;
}

.vehicle-card-icon {
  align-items: center;
  border-radius: 50%;
  display: inline-flex;
  font-size: 1.25rem;
  height: 46px;
  justify-content: center;
  width: 46px;
}

.vehicle-card-title h2 {
  font-size: 1.25rem;
  font-weight: 900;
  margin: 0;
}

.vehicle-photo-strip {
  display: grid;
  gap: 1rem;
  grid-template-columns: 180px repeat(auto-fit, minmax(180px, 1fr));
}

.vehicle-photo-add-tile {
  align-items: center;
  aspect-ratio: 4 / 3;
  border: 1px dashed #cbd5e1;
  border-radius: .85rem;
  color: #64748b;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  font-weight: 800;
  gap: .65rem;
  justify-content: center;
  min-height: 130px;
  transition: border-color .2s ease, color .2s ease, background .2s ease;
}

.vehicle-photo-add-tile i {
  font-size: 1.55rem;
}

.vehicle-photo-add-tile:hover {
  background: #f8fafc;
  border-color: #2563eb;
  color: #2563eb;
}

.vehicle-photo-empty {
  max-width: 190px;
}

.vehicle-photo-help {
  color: #64748b;
  font-size: .9rem;
  margin: .85rem 0 0;
  text-align: left;
}

.vehicle-expanded-grid {
  display: grid;
  gap: 1.25rem 1.75rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.vehicle-info-field,
.vehicle-info-wide {
  border-bottom: 1px solid #e5eaf2;
  min-height: 58px;
  padding-bottom: .85rem;
  text-align: right;
}

.vehicle-info-field span,
.vehicle-info-wide span {
  color: #64748b;
  display: block;
  font-size: .9rem;
  font-weight: 700;
  margin-bottom: .35rem;
}

.vehicle-info-field strong,
.vehicle-info-wide strong {
  color: #0f172a;
  display: block;
  font-size: 1rem;
  font-weight: 900;
  overflow-wrap: anywhere;
}

.vehicle-info-wide {
  margin-top: 1rem;
}

.vehicle-details-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
}

.vehicle-details-grid span {
  color: #6c757d;
  display: block;
  font-size: .9rem;
  margin-bottom: .25rem;
}

.vehicle-details-grid strong {
  color: #172033;
  display: block;
  font-size: 1rem;
  overflow-wrap: anywhere;
}

.vehicle-photo-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
}

.vehicle-photo {
  border: 1px solid #dfe3ea;
  border-radius: .85rem;
  overflow: hidden;
}

.vehicle-photo img {
  aspect-ratio: 4 / 3;
  display: block;
  object-fit: cover;
  width: 100%;
}

.vehicle-photo-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  padding: .75rem;
}

.photo-upload-form {
  flex: 0 0 auto;
}

.role-badge,
.status {
  border: 1px solid transparent;
}

.role-buyer,
.status-sold {
  background: #edf2ff;
  border-color: #c6d4ff;
  color: #2444a6;
}

.role-seller,
.status-reserved {
  background: #fff4df;
  border-color: #ffd899;
  color: #8a5300;
}

.role-both,
.status-available {
  background: #e9f8ef;
  border-color: #b9e8ca;
  color: #146c43;
}

.status-in_service {
  background: #f1f3f5;
  border-color: #d5d9de;
  color: #495057;
}

.relationship-map {
  display: grid;
  gap: .75rem;
}

.relationship-row {
  align-items: center;
  display: grid;
  gap: .75rem;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) auto minmax(0, 1fr);
}

.relationship-node {
  border: 1px solid #dfe3ea;
  border-radius: 8px;
  min-height: 72px;
  padding: .75rem;
}

.relationship-node strong,
.relationship-node span {
  overflow-wrap: anywhere;
}

.seller-node {
  background: #fffaf0;
}

.vehicle-node {
  background: #f8fafc;
}

.buyer-node {
  background: #f5f8ff;
}

.relationship-arrow {
  color: #6c757d;
  font-weight: 700;
}

.license {
  direction: ltr;
  display: inline-block;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  letter-spacing: 0;
}

.empty-state {
  border: 1px dashed #c8ced8;
  border-radius: 8px;
  padding: 2rem;
  text-align: center;
}

.auth-page {
  background:
    radial-gradient(circle at 12% 18%, rgba(99, 102, 241, .12), transparent 30%),
    radial-gradient(circle at 88% 80%, rgba(37, 99, 235, .1), transparent 34%),
    #f8fafc;
  min-height: 100vh;
}

.auth-shell {
  align-items: center;
  display: flex;
  justify-content: center;
  min-height: 100vh;
  padding: 48px 24px;
}

.auth-card {
  background: #fff;
  border-radius: 22px;
  box-shadow: 0 26px 70px rgba(15, 23, 42, .16);
  display: grid;
  direction: ltr;
  grid-template-columns: minmax(420px, 540px) minmax(420px, 560px);
  max-width: 1120px;
  min-height: 680px;
  overflow: hidden;
  width: 100%;
}

.auth-form-panel {
  direction: rtl;
  padding: 50px 46px;
}

.auth-brand {
  align-items: center;
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 36px;
}

.auth-brand-mark {
  align-items: center;
  background: linear-gradient(135deg, #7c3aed, #4f46e5);
  border-radius: 14px;
  color: #fff;
  display: inline-flex;
  font-size: 2rem;
  height: 68px;
  justify-content: center;
  width: 68px;
}

.auth-brand strong {
  color: #111827;
  display: block;
  font-size: 2rem;
  font-weight: 900;
  line-height: 1.1;
}

.auth-brand span {
  color: #64748b;
  display: block;
  font-size: 1rem;
  margin-top: .35rem;
}

.auth-heading {
  margin-bottom: 34px;
  text-align: center;
}

.auth-heading h1 {
  color: #111827;
  font-size: 2.1rem;
  font-weight: 900;
  margin-bottom: .75rem;
}

.auth-heading p {
  color: #64748b;
  font-size: 1rem;
  margin: 0;
}

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

.auth-field .form-label {
  color: #111827;
  font-weight: 700;
  margin-bottom: .75rem;
}

.auth-input-group {
  border: 1px solid #d8dee9;
  border-radius: 12px;
  box-shadow: 0 6px 16px rgba(15, 23, 42, .04);
  direction: rtl;
  overflow: hidden;
}

.auth-input-group .input-group-text,
.auth-input-group .btn {
  background: #f8fafc;
  border: 0;
  color: #64748b;
  min-width: 48px;
}

.auth-input-group .form-control {
  border: 0;
  color: #111827;
  min-height: 54px;
  padding: 0 14px;
  text-align: right;
}

.auth-input-group .form-control:focus {
  box-shadow: none;
}

.auth-options {
  align-items: center;
  display: flex;
  justify-content: space-between;
  margin-top: -2px;
}

.auth-link,
.auth-signup a {
  color: #6d28d9;
  font-weight: 700;
  text-decoration: none;
}

.auth-link:hover,
.auth-signup a:hover {
  color: #4c1d95;
}

.btn-login {
  background: linear-gradient(135deg, #7c3aed, #5b21b6);
  border: 0;
  border-radius: 10px;
  box-shadow: 0 14px 28px rgba(91, 33, 182, .24);
  color: #fff;
  font-size: 1.05rem;
  font-weight: 800;
  min-height: 56px;
  width: 100%;
}

.btn-login:hover,
.btn-login:focus {
  background: linear-gradient(135deg, #6d28d9, #4c1d95);
  color: #fff;
}

.auth-divider {
  align-items: center;
  color: #64748b;
  display: flex;
  gap: 1rem;
  justify-content: center;
}

.auth-divider::before,
.auth-divider::after {
  background: #e2e8f0;
  content: "";
  flex: 1;
  height: 1px;
}

.auth-social-row {
  display: grid;
  gap: 14px;
  grid-template-columns: 1fr 1fr;
}

.btn-google,
.btn-facebook {
  align-items: center;
  border-radius: 10px;
  display: inline-flex;
  font-weight: 700;
  gap: .55rem;
  justify-content: center;
  min-height: 52px;
}

.btn-google {
  background: #fff;
  border: 1px solid #d8dee9;
  box-shadow: 0 8px 18px rgba(15, 23, 42, .08);
  color: #475569;
}

.btn-facebook {
  background: #1877f2;
  border: 0;
  color: #fff;
}

.btn-google:hover,
.btn-google:focus {
  background: #f8fafc;
  border-color: #cbd5e1;
  color: #334155;
}

.btn-facebook:hover,
.btn-facebook:focus {
  background: #166fe5;
  color: #fff;
}

.auth-signup {
  color: #64748b;
  margin-top: 22px;
  text-align: center;
}

.auth-visual-panel {
  align-items: center;
  background:
    linear-gradient(135deg, rgba(88, 28, 135, .9), rgba(15, 23, 42, .92)),
    radial-gradient(circle at 76% 44%, rgba(255, 255, 255, .16), transparent 12%),
    linear-gradient(145deg, #312e81, #111827);
  color: #fff;
  direction: rtl;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  padding: 58px 48px;
  position: relative;
  text-align: center;
}

.auth-visual-panel::before {
  background:
    linear-gradient(90deg, transparent 0 32%, rgba(255,255,255,.08) 32% 33%, transparent 33% 66%, rgba(255,255,255,.06) 66% 67%, transparent 67%),
    linear-gradient(0deg, transparent 0 32%, rgba(255,255,255,.05) 32% 33%, transparent 33% 66%, rgba(255,255,255,.05) 66% 67%, transparent 67%);
  content: "";
  inset: 0;
  opacity: .24;
  position: absolute;
}

.auth-visual-panel::after {
  background:
    radial-gradient(ellipse at center, rgba(99, 102, 241, .22), transparent 58%),
    linear-gradient(transparent 40%, rgba(0, 0, 0, .28));
  border: 2px solid rgba(255,255,255,.12);
  border-radius: 45% 45% 12% 12% / 32% 32% 16% 16%;
  bottom: 118px;
  content: "";
  height: 240px;
  opacity: .55;
  position: absolute;
  right: 94px;
  transform: skewX(-10deg);
  width: 360px;
}

.auth-visual-content {
  margin-top: 34px;
  max-width: 430px;
  position: relative;
  z-index: 1;
}

.auth-shield {
  color: #fff;
  font-size: 5.2rem;
  line-height: 1;
  margin-bottom: 18px;
}

.auth-visual-panel h2 {
  font-size: 1.75rem;
  font-weight: 900;
  margin-bottom: 18px;
}

.auth-visual-panel p {
  color: rgba(255,255,255,.86);
  font-size: 1.05rem;
  line-height: 1.8;
  margin: 0;
}

.auth-feature-row {
  bottom: 74px;
  display: grid;
  gap: 28px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  left: 44px;
  position: absolute;
  right: 44px;
  z-index: 1;
}

.auth-feature {
  color: #fff;
  display: grid;
  font-weight: 800;
  gap: 10px;
  justify-items: center;
}

.auth-feature i {
  align-items: center;
  background: rgba(255, 255, 255, .1);
  border-radius: 50%;
  display: inline-flex;
  font-size: 2rem;
  height: 62px;
  justify-content: center;
  width: 62px;
}

.profile-photo-preview {
  align-items: center;
  background: #f8fafc;
  border: 1px solid #dfe3ea;
  border-radius: 8px;
  display: flex;
  justify-content: center;
  min-height: 240px;
  overflow: hidden;
}

.profile-photo-preview img {
  aspect-ratio: 1;
  display: block;
  max-width: 240px;
  object-fit: cover;
  width: 100%;
}

.profile-photo-preview .default-user-icon {
  color: #667085;
}

body.dark-mode {
  --bs-body-bg: #0b1120;
  --bs-body-color: #e5e7eb;
  --bs-border-color: #334155;
  --bs-secondary-color: #94a3b8;
  background: #0b1120;
  color: #e5e7eb;
}

html.theme-dark,
html.theme-dark body {
  background: #0b1120;
  color-scheme: dark;
}

body.dark-mode .content,
body.dark-mode .app-page {
  background: #0b1120;
}

body.dark-mode .section-panel,
body.dark-mode .metric,
body.dark-mode .card,
body.dark-mode .chart-card,
body.dark-mode .auth-panel,
body.dark-mode .modal-content,
body.dark-mode .dropdown-menu,
body.dark-mode .vehicle-stat-card,
body.dark-mode .vehicle-detail-card,
body.dark-mode .customer-onboarding-modal .modal-content,
body.dark-mode .vehicle-onboarding-modal .modal-content,
body.dark-mode .customer-modal-footer,
body.dark-mode .vehicle-modal-footer,
body.dark-mode .inventory-filter-card,
body.dark-mode .sales-filter-card,
body.dark-mode .admin-form-card,
body.dark-mode .admin-users-card,
body.dark-mode .customers-search-card {
  background: #111827;
  border-color: #334155;
  color: #f8fafc;
}

body.dark-mode .modal-header,
body.dark-mode .modal-footer,
body.dark-mode .customer-modal-header,
body.dark-mode .customer-modal-footer,
body.dark-mode .vehicle-modal-header,
body.dark-mode .vehicle-modal-footer {
  background: #111827;
  border-color: #334155;
}

body.dark-mode .form-control,
body.dark-mode .form-select,
body.dark-mode .input-group-text,
body.dark-mode textarea,
body.dark-mode .vehicle-input-wrap .form-control,
body.dark-mode .vehicle-input-wrap .form-select,
body.dark-mode .customer-modal-input .form-control {
  background-color: #0f172a;
  border-color: #475569;
  color: #f8fafc;
}

body.dark-mode .form-control:focus,
body.dark-mode .form-select:focus,
body.dark-mode textarea:focus,
body.dark-mode .vehicle-input-wrap .form-control:focus,
body.dark-mode .vehicle-input-wrap .form-select:focus,
body.dark-mode .customer-modal-input .form-control:focus {
  background-color: #0f172a;
  border-color: #60a5fa;
  box-shadow: 0 0 0 .2rem rgba(96, 165, 250, .18);
  color: #fff;
}

body.dark-mode .form-control::placeholder,
body.dark-mode textarea::placeholder,
body.dark-mode .vehicle-input-wrap .form-control::placeholder,
body.dark-mode .customer-modal-input .form-control::placeholder {
  color: #64748b;
  opacity: 1;
}

body.dark-mode .form-control:disabled,
body.dark-mode .form-control[readonly],
body.dark-mode .form-select:disabled {
  background: #1e293b;
  color: #94a3b8;
}

body.dark-mode .form-check-input {
  background-color: #0f172a;
  border-color: #64748b;
}

body.dark-mode .form-check-input:checked {
  background-color: #2563eb;
  border-color: #2563eb;
}

body.dark-mode input[type="date"]::-webkit-calendar-picker-indicator {
  filter: invert(1);
}

body.dark-mode input:-webkit-autofill,
body.dark-mode input:-webkit-autofill:hover,
body.dark-mode input:-webkit-autofill:focus {
  -webkit-text-fill-color: #f8fafc;
  box-shadow: 0 0 0 1000px #0f172a inset;
}

body.dark-mode .form-label,
body.dark-mode .customer-modal-field label,
body.dark-mode .vehicle-field label,
body.dark-mode .modal-title,
body.dark-mode .customer-modal-title h2,
body.dark-mode .vehicle-modal-title h2,
body.dark-mode .vehicle-card-title h2,
body.dark-mode .vehicle-hero-copy h1,
body.dark-mode .vehicle-stat-card strong,
body.dark-mode .vehicle-info-field strong,
body.dark-mode .vehicle-info-wide strong {
  color: #f8fafc;
}

body.dark-mode .form-text,
body.dark-mode .customer-modal-field .form-text,
body.dark-mode .vehicle-field .form-text,
body.dark-mode .customer-modal-title p,
body.dark-mode .vehicle-modal-title p,
body.dark-mode .vehicle-stat-card span,
body.dark-mode .vehicle-info-field span,
body.dark-mode .vehicle-info-wide span,
body.dark-mode .vehicle-breadcrumb,
body.dark-mode .vehicle-breadcrumb a,
body.dark-mode .vehicle-hero-meta,
body.dark-mode .vehicle-photo-help {
  color: #94a3b8 !important;
}

body.dark-mode .dropdown-item {
  color: #e5e7eb;
}

body.dark-mode .dropdown-item:hover,
body.dark-mode .dropdown-item:focus {
  background: #1e293b;
  color: #fff;
}

body.dark-mode .dropdown-divider {
  border-color: #334155;
}

body.dark-mode .alert-danger {
  background: #3f1d25;
  border-color: #7f1d1d;
  color: #fecaca;
}

body.dark-mode .alert-success {
  background: #123524;
  border-color: #166534;
  color: #bbf7d0;
}

body.dark-mode .page-link {
  background: #111827;
  border-color: #334155;
  color: #93c5fd;
}

body.dark-mode .page-link:hover,
body.dark-mode .page-link:focus {
  background: #1e293b;
  color: #fff;
}

body.dark-mode .page-item.active .page-link {
  background: #2563eb;
  border-color: #2563eb;
  color: #fff;
}

body.dark-mode .btn-close {
  filter: invert(1) grayscale(100%) brightness(180%);
}

body.dark-mode .btn-outline-secondary {
  border-color: #64748b;
  color: #cbd5e1;
}

body.dark-mode .btn-outline-secondary:hover,
body.dark-mode .btn-outline-secondary:focus {
  background: #334155;
  border-color: #64748b;
  color: #fff;
}

body.dark-mode .customer-modal-close,
body.dark-mode .vehicle-modal-close,
body.dark-mode .vehicle-back-btn,
body.dark-mode .vehicle-photo-add-tile,
body.dark-mode .vehicle-combobox-menu {
  background: #0f172a;
  border-color: #475569;
  color: #cbd5e1;
}

body.dark-mode .vehicle-combobox-option:hover,
body.dark-mode .vehicle-combobox-option:focus,
body.dark-mode .vehicle-photo-add-tile:hover {
  background: #1e293b;
  color: #93c5fd;
}

body.dark-mode .vehicle-info-field,
body.dark-mode .vehicle-info-wide,
body.dark-mode .vehicle-photo,
body.dark-mode .inventory-pagination {
  border-color: #334155;
}

body.dark-mode .empty-state,
body.dark-mode .danger-action {
  border-color: #475569;
}

body.dark-mode .text-muted,
body.dark-mode .text-secondary,
body.dark-mode .vehicle-details-grid span,
body.dark-mode .metric span,
body.dark-mode .analytics-row span {
  color: #adb5bd !important;
}

body.dark-mode .vehicle-details-grid strong {
  color: #f8fafc;
}

body.dark-mode .sidebar {
  background: #111827;
  border-color: #334155;
  color: #f8fafc;
}

body.dark-mode .sidebar-link,
body.dark-mode .sidebar-link-icon,
body.dark-mode .sidebar-brand-copy strong,
body.dark-mode .workspace-card,
body.dark-mode .workspace-copy strong,
body.dark-mode .profile-btn,
body.dark-mode .dashboard-hero h1,
body.dark-mode .chart-heading h2,
body.dark-mode .dashboard-card-header h2,
body.dark-mode .dashboard-kpi-card span,
body.dark-mode .dashboard-kpi-card strong {
  color: white;
}

body.dark-mode .sidebar-link:hover,
body.dark-mode .sidebar-link:focus,
body.dark-mode .sidebar-link.active {
  background: #1e3a8a;
  color: #fff;
}

body.dark-mode .workspace-card,
body.dark-mode .profile-btn,
body.dark-mode .workspace-icon {
  background: #0f172a;
  border-color: #334155;
}

body.dark-mode .table {
  --bs-table-bg: #111827;
  --bs-table-color: #e5e7eb;
  --bs-table-border-color: #334155;
  --bs-table-striped-bg: #172033;
  --bs-table-hover-bg: #1e293b;
  --bs-table-hover-color: #fff;
}

body.dark-mode .sales-table thead th {
  background: #111827;
  color: #fff;
}

body.dark-mode .dashboard-vehicles-table thead th {
  background: #111827;
  color: #fff;
}

body.dark-mode .inventory-summary-card {
  background: #172033;
  border-color: #334155;
}

body.dark-mode .customers-summary-card {
  background: #172033;
  border-color: #334155;
}

body.dark-mode .admin-summary-card,
body.dark-mode .admin-security-item {
  background: #172033;
  border-color: #334155;
}

body.dark-mode .invitation-status-pending {
  background: #422006;
  border-color: #92400e;
  color: #fde68a;
}

body.dark-mode .invitation-status-accepted {
  background: #052e16;
  border-color: #166534;
  color: #bbf7d0;
}

body.dark-mode .invitation-status-expired,
body.dark-mode .invitation-status-revoked {
  background: #1e293b;
  border-color: #475569;
  color: #cbd5e1;
}

body.dark-mode .inventory-summary-card strong,
body.dark-mode .inventory-vehicle-title,
body.dark-mode .inventory-table thead th,
body.dark-mode .customers-summary-card strong,
body.dark-mode .customer-name-link,
body.dark-mode .customers-table thead th,
body.dark-mode .admin-summary-card strong,
body.dark-mode .admin-user-name,
body.dark-mode .admin-users-table thead th,
body.dark-mode .admin-security-item strong {
  color: #fff;
}

body.dark-mode .inventory-table thead th,
body.dark-mode .customers-table thead th,
body.dark-mode .admin-users-table thead th {
  background: #111827;
}

body.dark-mode .sales-table tbody tr:hover {
  background: #262626;
}

body.dark-mode .dashboard-vehicles-table tbody tr:hover {
  background: #262626;
}

body.dark-mode .inventory-table tbody tr:hover {
  background: #262626;
}

body.dark-mode .customers-table tbody tr:hover {
  background: #262626;
}

body.dark-mode .admin-users-table tbody tr:hover {
  background: #262626;
}

@media (max-width: 1199.98px) {
  .content {
    padding: 42px 24px;
  }

  .dashboard-topbar-grid {
    grid-template-columns: 1fr;
  }

  .dashboard-date-form,
  .dashboard-actions {
    justify-content: flex-start !important;
  }

  .dashboard-metrics,
  .dashboard-charts,
  .dashboard-secondary,
  .dashboard-kpis,
  .dashboard-chart-grid,
  .dashboard-ranking-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .customers-summary-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

  .inventory-filter-form {
    grid-template-columns: repeat(3, minmax(150px, 1fr));
  }

  .vehicle-span-3,
  .vehicle-span-4,
  .vehicle-span-6,
  .vehicle-offset-4 {
    grid-column: span 6;
    grid-column-start: auto;
  }

  .admin-create-grid {
    grid-template-columns: repeat(2, minmax(160px, 1fr));
  }

  .auth-card {
    grid-template-columns: minmax(0, 1fr);
    max-width: 620px;
  }

  .auth-visual-panel {
    min-height: 420px;
  }

  .inventory-global-search,
  .inventory-filter-actions {
    grid-column: span 3;
  }
}

@media (max-width: 767.98px) {
  .customer-modal-header {
    align-items: flex-start;
    padding: 22px 18px;
  }

  .customer-modal-title {
    gap: .8rem;
  }

  .customer-modal-icon {
    font-size: 1.6rem;
    height: 56px;
    width: 56px;
  }

  .customer-modal-title h2 {
    font-size: 1.45rem;
  }

  .customer-modal-title p {
    font-size: .88rem;
  }

  .customer-modal-close {
    height: 46px;
    width: 46px;
  }

  .customer-modal-body {
    padding: 24px 18px;
  }

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

  .customer-modal-footer {
    flex-direction: column;
    padding: 18px;
  }

  .customer-save-btn,
  .customer-cancel-btn {
    width: 100%;
  }

  .vehicle-detail-hero {
    align-items: stretch;
    flex-direction: column-reverse;
  }

  .vehicle-back-btn {
    justify-content: center;
    width: 100%;
  }

  .vehicle-hero-copy {
    margin-inline-end: 0;
  }

  .vehicle-breadcrumb,
  .vehicle-hero-meta {
    justify-content: flex-start;
  }

  .vehicle-stat-grid,
  .vehicle-expanded-grid {
    grid-template-columns: 1fr;
  }

  .vehicle-photo-strip {
    grid-template-columns: 1fr;
  }

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

  .vehicle-detail-card {
    padding: 1rem;
  }

  .layout {
    display: block;
  }

  .layout.sidebar-collapsed {
    display: block;
  }

  .content {
    padding: 76px 16px 20px;
  }

  .auth-shell {
    padding: 20px 12px;
  }

  .auth-card {
    border-radius: 18px;
    min-height: 0;
  }

  .auth-form-panel {
    padding: 32px 22px;
  }

  .auth-brand {
    justify-content: flex-start;
    margin-bottom: 28px;
  }

  .auth-brand-mark {
    height: 56px;
    width: 56px;
  }

  .auth-brand strong {
    font-size: 1.6rem;
  }

  .auth-heading h1 {
    font-size: 1.75rem;
  }

  .auth-social-row,
  .auth-feature-row {
    grid-template-columns: 1fr;
  }

  .auth-visual-panel {
    min-height: 560px;
    padding: 42px 24px;
  }

  .auth-feature-row {
    bottom: 36px;
  }

  .sidebar {
    bottom: 0;
    grid-column: auto;
    position: fixed;
    right: 0;
    top: 0;
    z-index: 1500;
  }

  .sidebar.collapsed {
    transform: translateX(100%);
    width: 290px;
    min-width: 290px;
  }

  .section-panel {
    padding: .75rem;
  }

  .dashboard-metrics,
  .dashboard-charts,
  .dashboard-secondary,
  .dashboard-kpis,
  .dashboard-chart-grid,
  .dashboard-ranking-grid {
    grid-template-columns: 1fr;
  }

  .dashboard-modern {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  .dashboard-date-input,
  .dashboard-vehicle-search {
    min-width: 100%;
  }

  .inventory-shell > .card-body {
    padding: 18px;
  }

  .vehicle-modal-header,
  .vehicle-modal-body,
  .vehicle-modal-footer {
    padding-left: 20px;
    padding-right: 20px;
  }

  .vehicle-modal-header {
    align-items: flex-start;
    min-height: 120px;
  }

  .vehicle-modal-title {
    gap: .85rem;
  }

  .vehicle-modal-header-actions {
    width: 100%;
  }

  .vehicle-modal-icon {
    height: 58px;
    width: 58px;
  }

  .vehicle-modal-close {
    height: 48px;
    width: 48px;
  }

  .vehicle-onboarding-form {
    gap: 18px;
    grid-template-columns: 1fr;
  }

  .vehicle-span-3,
  .vehicle-span-4,
  .vehicle-span-6,
  .vehicle-span-12,
  .vehicle-offset-4 {
    grid-column: auto;
    grid-column-start: auto;
  }

  .vehicle-modal-footer {
    flex-direction: column-reverse;
  }

  .vehicle-save-btn,
  .vehicle-cancel-btn {
    width: 100%;
  }

  .vehicle-save-btn-top {
    flex: 1 1 auto;
  }

  .customers-shell > .card-body {
    padding: 18px;
  }

  .admin-shell > .card-body {
    padding: 18px;
  }

  .inventory-summary-grid,
  .inventory-filter-form,
  .customers-summary-grid,
  .customers-search-form,
  .admin-summary-grid,
  .admin-create-grid,
  .admin-security-grid {
    grid-template-columns: 1fr;
  }

  .inventory-global-search,
  .inventory-filter-actions {
    grid-column: auto;
  }

  .customers-search-form .btn {
    width: 100%;
  }

  .customers-table-toolbar {
    align-items: stretch;
  }

  .customers-saved-views,
  .customers-table-toolbar > div:last-child {
    width: 100%;
  }

  .admin-users-toolbar {
    align-items: stretch;
    grid-template-columns: 1fr;
  }

  .admin-user-search,
  .admin-users-toolbar > div:last-child {
    min-width: 100%;
    width: 100%;
  }

  .admin-security-item {
    align-items: flex-start;
  }

  .inventory-filter-actions {
    flex-direction: column-reverse;
  }

  .inventory-filter-actions .btn {
    width: 100%;
  }

  .dashboard-date-form > .btn,
  .dashboard-date-form > a {
    flex: 1 1 0;
  }

  .metric {
    min-height: 150px;
    padding: 32px 20px 20px;
  }

  .chart-card {
    min-height: 340px;
    padding: 20px;
  }

  .bar-chart {
    gap: 10px;
    grid-template-columns: repeat(6, minmax(34px, 1fr));
    height: 220px;
  }

  .dashboard-bar-chart {
    gap: 10px;
    grid-template-columns: repeat(6, minmax(34px, 1fr));
    height: 220px;
  }

  .table {
    min-width: 720px;
  }

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

  .relationship-arrow {
    transform: rotate(90deg);
    text-align: center;
  }
}
  flex: 0 0 auto;
