:root {
  --bg: #f4f7fb;
  --surface: #ffffff;
  --surface-2: #f8fbff;
  --sidebar: linear-gradient(180deg, #1f4f9e 0%, #2f69c5 100%);
  --primary: #0856d3;
  --primary-dark: #1853c0;
  --danger: #e5484d;
  --danger-dark: #cc3a40;
  --text: #16202a;
  --muted: #66788a;
  --border: #d3dfec;
  --shadow: 0 18px 42px rgba(16, 40, 72, 0.1);
  --radius: 18px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Segoe UI", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
}

.app {
  display: flex;
  min-height: 100vh;
}

.sidebar {
  width: 260px;
  background: var(--sidebar);
  color: white;
  padding: 28px 20px;
  position: fixed;
  inset: 0 auto 0 0;
  display: flex;
  flex-direction: column;
  box-shadow: 6px 0 20px rgba(10, 30, 60, 0.15);
  z-index: 20;
}

.brand {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 28px;
}

.brand h1 {
  margin: 0;
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.brand p {
  margin: 0;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.8);
}

.nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 10px;
}

.nav-section-label {
  margin: 12px 8px 4px;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.62);
}

.nav a {
  color: white;
  background: transparent;
  text-align: left;
  padding: 14px 16px;
  border-radius: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s ease, transform 0.2s ease;
  display: block;
}

.nav a:hover,
.nav a.active {
  background: rgba(255, 255, 255, 0.18);
  transform: translateX(2px);
}

.nav-subtabs {
  display: grid;
  gap: 6px;
  margin: -2px 0 8px 14px;
  padding-left: 12px;
  border-left: 1px solid rgba(255, 255, 255, 0.18);
}

.nav-subtab {
  appearance: none;
  border: none;
  background: transparent;
  color: rgba(255, 255, 255, 0.78);
  text-align: left;
  padding: 8px 12px;
  border-radius: 10px;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.nav-subtab:hover,
.nav-subtab.active {
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
  transform: translateX(2px);
}

.nav-disabled-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 14px 16px;
  border-radius: 14px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.76);
  background: rgba(255, 255, 255, 0.08);
  cursor: not-allowed;
  user-select: none;
}

.nav-soon-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.btn-disabled-soft {
  opacity: 0.6;
  pointer-events: none;
}

.sidebar-footer {
  margin-top: auto;
  padding-top: 20px;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.78);
}

.sidebar-settings-link {
  display: flex;
  align-items: center;
  gap: 10px;
  color: white;
  text-decoration: none;
  padding: 12px 14px;
  border-radius: 14px;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.14);
  margin-bottom: 14px;
  transition: background 0.2s ease, transform 0.2s ease;
}

.sidebar-settings-link:hover,
.sidebar-settings-link.active {
  background: rgba(255, 255, 255, 0.2);
  transform: translateX(2px);
}

.sidebar-settings-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  font-size: 1rem;
}

.main {
  margin-left: 260px;
  width: calc(100% - 260px);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.topbar {
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  padding: 18px 28px;
  position: sticky;
  top: 0;
  z-index: 10;
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.topbar h2 {
  margin: 0;
  font-size: 1.6rem;
  letter-spacing: -0.03em;
}

.topbar p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.hero-actions,
.button-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.content {
  padding: 28px;
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(180px, 1fr));
  gap: 18px;
  margin-bottom: 24px;
}

.stat-card {
  background: linear-gradient(180deg, #ffffff 0%, #fdfefe 100%);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px;
  border: 1px solid rgba(211, 223, 236, 0.92);
}

.stat-label {
  color: var(--muted);
  font-weight: 600;
  font-size: 0.92rem;
  margin-bottom: 8px;
}

.stat-value {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.stat-sub {
  color: var(--muted);
  margin-top: 8px;
  font-size: 0.9rem;
}

.section-card {
  background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
  border-radius: 22px;
  box-shadow: var(--shadow);
  padding: 24px;
  border: 1px solid rgba(211, 223, 236, 0.94);
  margin-bottom: 22px;
}

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

.section-header h3 {
  margin: 0;
  font-size: 1.4rem;
  letter-spacing: -0.03em;
}

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

.btn-primary,
.btn-secondary,
.btn-danger {
  border: none;
  border-radius: 14px;
  padding: 12px 16px;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.btn-primary:hover,
.btn-secondary:hover,
.btn-danger:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: linear-gradient(135deg, #3a78d1 0%, #2f69c5 100%);
  color: white;
  box-shadow: 0 10px 20px rgba(47, 105, 197, 0.2);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #2f6fc9 0%, #255bac 100%);
}

.btn-secondary {
  background: #eef4fb;
  color: var(--text);
}

.btn-danger {
  background: var(--danger);
  color: white;
}

.btn-danger:hover {
  background: var(--danger-dark);
}

.btn-small {
  padding: 10px 14px;
  font-size: 0.88rem;
  border-radius: 12px;
}

.customers-grid,
.vehicles-grid,
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 20px;
}

.customer-card,
.vehicle-card-global,
.mini-card {
  background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
  border: 1px solid rgba(211, 223, 236, 0.94);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 16px 34px rgba(18, 52, 88, 0.1);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.customer-card:hover,
.vehicle-card-global:hover,
.mini-card:hover,
.mini-stat-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 44px rgba(18, 52, 88, 0.14);
  border-color: #c6d7ea;
}

.customer-top,
.mini-card-body {
  padding: 20px;
}

.customer-top {
  border-bottom: 1px solid #e7eef7;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}

.customer-title-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.customer-name {
  margin: 0 0 8px;
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.customer-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 10px;
  border-radius: 999px;
  background: #eef5ff;
  border: 1px solid #d7e5fb;
  color: #245aa9;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.customer-meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
  color: var(--muted);
  font-size: 0.94rem;
}

.customer-meta-item {
  display: grid;
  gap: 4px;
  padding: 10px 12px;
  border-radius: 14px;
  background: #f6faff;
  border: 1px solid #e1ebf6;
}

.customer-meta-label {
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #6b7f95;
}

.customer-meta-value {
  color: var(--text);
  font-weight: 600;
  word-break: break-word;
}

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

.customer-body {
  padding: 18px 20px 20px;
}

.vehicle-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.vehicle-header-row h4 {
  margin: 0;
  font-size: 1rem;
}

.vehicle-count {
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 600;
}

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

.vehicle-card {
  background: linear-gradient(180deg, #fbfdff 0%, #f5f9fd 100%);
  border: 1px solid #d9e5f1;
  border-radius: 16px;
  padding: 14px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.vehicle-main {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  flex-wrap: wrap;
}

.vehicle-title {
  margin: 0 0 6px;
  font-size: 1rem;
  font-weight: 800;
}

.vehicle-sub {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.45;
}

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

.mods-wrap {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid #dde8f3;
}

.mods-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}

.mods-list {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.mod-pill {
  background: #e8f2ff;
  color: #0f4fa8;
  border: 1px solid #cfe2fb;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 700;
}

.no-mods {
  color: var(--muted);
  font-size: 0.92rem;
}

.mini-card-body h4 {
  margin: 0 0 10px;
  font-size: 1.1rem;
}

.mini-card-body p {
  margin: 6px 0;
  color: var(--muted);
}

.empty-state {
  background: linear-gradient(180deg, #f9fbfe 0%, #f3f8fd 100%);
  border: 1px dashed #cddbea;
  border-radius: 18px;
  padding: 30px;
  text-align: center;
  color: var(--muted);
}

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 20, 35, 0.5);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 100;
}

.modal-overlay.show {
  display: flex;
}

.modal {
  width: 100%;
  max-width: 560px;
  background: white;
  border-radius: 24px;
  box-shadow: 0 30px 60px rgba(6, 20, 42, 0.24);
  overflow: hidden;
}

.modal-header {
  padding: 22px 24px 14px;
  border-bottom: 1px solid #edf2f8;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.modal-header h3 {
  margin: 0;
  font-size: 1.35rem;
  letter-spacing: -0.03em;
}

.modal-close {
  background: #eef4fb;
  color: #304458;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  padding: 0;
  font-size: 1.2rem;
  line-height: 1;
  border: none;
  cursor: pointer;
}

.modal-body {
  padding: 22px 24px 24px;
}

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

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

.field {
  display: grid;
  gap: 8px;
}

.field label {
  font-size: 0.92rem;
  font-weight: 700;
  color: #33485b;
}

.toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 16px;
  border: 1px solid #d4e0ec;
  border-radius: 14px;
  background: #f8fbff;
}

.toggle-row-text {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.toggle-row-text strong {
  font-size: 0.98rem;
  color: #17324b;
}

.toggle-row-text span {
  font-size: 0.85rem;
  line-height: 1.45;
  color: #60758a;
}

.ui-switch {
  position: relative;
  display: inline-flex;
  width: 54px;
  height: 32px;
  flex: 0 0 auto;
}

.ui-switch input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.ui-switch-slider {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: #d3dfeb;
  border: 1px solid #c6d4e1;
  transition: 0.2s ease;
  cursor: pointer;
}

.ui-switch-slider::before {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 3px 8px rgba(19, 49, 82, 0.18);
  transition: 0.2s ease;
}

.ui-switch input:checked + .ui-switch-slider {
  background: linear-gradient(135deg, #3a78d1 0%, #2f69c5 100%);
  border-color: #2f69c5;
}

.ui-switch input:checked + .ui-switch-slider::before {
  transform: translateX(22px);
}

.ui-switch input:focus + .ui-switch-slider {
  box-shadow: 0 0 0 4px rgba(58, 120, 209, 0.14);
}

.field input {
  width: 100%;
  padding: 13px 14px;
  border-radius: 14px;
  border: 1px solid #d8e3ef;
  background: #fbfdff;
  font: inherit;
  color: var(--text);
  outline: none;
}

.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 18px;
  flex-wrap: wrap;
}

.toast {
  position: fixed;
  right: 22px;
  bottom: 22px;
  background: #17212c;
  color: white;
  padding: 14px 18px;
  border-radius: 14px;
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.18);
  z-index: 200;
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
  max-width: 320px;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

/* added shared utility / status classes for upgraded pages */

.muted {
  color: var(--muted);
}

.list-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid #e7eef7;
}

.list-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.list-row-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.mini-stat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(140px, 1fr));
  gap: 14px;
}

.mini-stat-card {
  background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
  border: 1px solid rgba(211, 223, 236, 0.94);
  border-radius: 16px;
  padding: 16px;
  box-shadow: 0 12px 28px rgba(18, 52, 88, 0.09);
}

.mini-stat-card span {
  display: block;
  color: var(--muted);
  font-size: 0.86rem;
  margin-bottom: 8px;
}

.mini-stat-card strong {
  font-size: 1.05rem;
  color: var(--text);
}

.customer-summary-grid {
  margin-bottom: 22px;
}

.customer-stat-card {
  min-height: 110px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.customer-stat-card strong {
  font-size: 2rem;
  line-height: 1;
  letter-spacing: -0.04em;
}

.search-panel {
  padding: 18px;
  border-radius: 18px;
  background: linear-gradient(180deg, #f9fbff 0%, #f5f9fe 100%);
  border: 1px solid #dde8f3;
}

.search-helper {
  margin: 6px 0 12px;
  color: var(--muted);
  font-size: 0.92rem;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 0.84rem;
  font-weight: 800;
  white-space: nowrap;
}

.status-badge--draft {
  background: #eef2f6;
  color: #5a6c7d;
}

.status-badge--approved {
  background: #e8f2ff;
  color: #0f4fa8;
}

.status-badge--awaiting-deposit {
  background: #fff0d9;
  color: #9a5c00;
}

.status-badge--waiting-parts {
  background: #fff6dd;
  color: #946200;
}

.status-badge--in-progress {
  background: #fff4d9;
  color: #946200;
}

.status-badge--ready-pickup {
  background: #ede8ff;
  color: #5d3fd3;
}

.status-badge--completed {
  background: #e6f7ec;
  color: #18794e;
}

.status-badge--purchase-queue {
  background: #eef4fb;
  color: #42576a;
}

.status-badge--ordered {
  background: #e8f2ff;
  color: #0f4fa8;
}

.status-badge--received {
  background: #e6f7ec;
  color: #18794e;
}

.status-badge--unpaid {
  background: #fff4d9;
  color: #946200;
}

.status-badge--partial {
  background: #e8f2ff;
  color: #0f4fa8;
}

.status-badge--paid {
  background: #e6f7ec;
  color: #18794e;
}

.status-badge--pending {
  background: #eef2f6;
  color: #5a6c7d;
}

.status-badge--declined {
  background: #ffe8e8;
  color: #b42318;
}

.part-chip {
  background: #e8f2ff;
  color: #0f4fa8;
  border: 1px solid #cfe2fb;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 700;
}

.app-shell-menu-btn,
.app-shell-overlay {
  display: none;
}

body.native-app-shell {
  overflow-x: hidden;
}

body.native-app-shell .app {
  display: block;
}

body.native-app-shell .sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: min(84vw, 320px);
  height: 100vh;
  overflow-y: auto;
  transform: translateX(-105%);
  transition: transform 0.24s ease;
  z-index: 1300;
}

body.native-app-shell.app-sidebar-open .sidebar {
  transform: translateX(0);
}

body.native-app-shell .main {
  margin-left: 0;
  width: 100%;
  min-height: 100vh;
}

body.native-app-shell .topbar {
  position: sticky;
  top: 0;
  z-index: 1100;
}

body.native-app-shell .topbar-inner {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: start;
}

body.native-app-shell .topbar-inner > .hero-actions,
body.native-app-shell .topbar-inner > .button-row {
  grid-column: 1 / -1;
}

body.native-app-shell .app-shell-menu-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #ffffff;
  box-shadow: 0 8px 18px rgba(18, 52, 88, 0.08);
  cursor: pointer;
}

body.native-app-shell .app-shell-menu-btn span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 2px 0;
  border-radius: 999px;
  background: #244f8f;
}

body.native-app-shell .app-shell-overlay {
  display: block;
  position: fixed;
  inset: 0;
  border: none;
  padding: 0;
  background: rgba(14, 26, 43, 0.36);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.24s ease;
  z-index: 1200;
}

body.native-app-shell.app-sidebar-open .app-shell-overlay {
  opacity: 1;
  pointer-events: auto;
}

body.native-app-shell .content,
body.native-app-shell .page-shell {
  padding: 18px;
}

body.native-app-shell .hero-actions > *,
body.native-app-shell .button-row > * {
  flex: 1 1 auto;
}

body.native-app-shell .dashboard-grid,
body.native-app-shell .invoice-grid,
body.native-app-shell .hero-card,
body.native-app-shell .info-grid,
body.native-app-shell .field-grid,
body.native-app-shell .cart-layout,
body.native-app-shell .summary-grid,
body.native-app-shell .parts-results,
body.native-app-shell .saved-parts-grid,
body.native-app-shell .hero-quick-stats {
  grid-template-columns: 1fr !important;
}

body.native-app-shell .cart-card {
  position: static;
  order: -1;
}

@media (max-width: 900px) {
  .sidebar {
    position: sticky;
    top: 0;
    width: 100%;
    height: auto;
    inset: auto;
    padding: 16px 14px 12px;
    box-shadow: 0 6px 20px rgba(10, 30, 60, 0.14);
  }

  .main {
    margin-left: 0;
    width: 100%;
  }

  .app {
    flex-direction: column;
  }

  .topbar {
    position: static;
    padding: 16px 18px;
  }

  .content {
    padding: 18px;
  }

  .brand {
    margin-bottom: 14px;
    gap: 2px;
  }

  .brand h1 {
    font-size: 1.7rem;
  }

  .brand p {
    font-size: 0.88rem;
  }

  .nav {
    flex-direction: row;
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    gap: 10px;
    padding-bottom: 4px;
    margin: 0 -2px;
    scrollbar-width: none;
  }

  .nav::-webkit-scrollbar {
    display: none;
  }

  .nav-section-label {
    display: none;
  }

  .nav a,
  .nav-disabled-link {
    flex: 0 0 auto;
    padding: 12px 14px;
    white-space: nowrap;
  }

  .sidebar-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 12px;
    padding-top: 12px;
    font-size: 0.78rem;
  }

  .sidebar-settings-link {
    margin-bottom: 0;
    padding: 10px 12px;
    white-space: nowrap;
  }

  .topbar-inner,
  .section-header {
    align-items: flex-start;
  }

  .hero-actions,
  .button-row {
    width: 100%;
  }

  .hero-actions > *,
  .button-row > * {
    flex: 1 1 auto;
  }
}

@media (max-width: 700px) {
  .content {
    padding: 14px;
  }

  .topbar {
    padding: 14px;
  }

  .topbar h2 {
    font-size: 1.35rem;
  }

  .topbar p {
    font-size: 0.9rem;
  }

  .section-card,
  .stat-card,
  .customer-card,
  .vehicle-card-global,
  .mini-card {
    border-radius: 18px;
  }

  .section-card {
    padding: 18px;
  }

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

  .customers-grid,
  .vehicles-grid,
  .cards-grid,
  .form-row-2 {
    grid-template-columns: 1fr;
  }

  .mini-stat-grid {
    grid-template-columns: 1fr;
  }

  .customer-top,
  .vehicle-main,
  .mods-head,
  .section-header,
  .topbar-inner {
    flex-direction: column;
    align-items: stretch;
  }

  .customer-actions,
  .vehicle-actions {
    justify-content: stretch;
  }

  .customer-actions > *,
  .vehicle-actions > *,
  .modal-footer > *,
  .hero-actions > *,
  .button-row > * {
    width: 100%;
  }

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

  .field input,
  .field select,
  .field textarea {
    font-size: 16px;
  }

  .modal {
    max-width: 100%;
    border-radius: 20px;
  }

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

  .search-panel {
    padding: 14px;
  }

  .empty-state {
    padding: 22px 16px;
  }

  .list-row {
    flex-direction: column;
    align-items: flex-start;
  }
}
