/* Portal and admin-dashboard styles, split out of style.css so public
   pages do not parse them. Generated by scripts/split-stylesheet.js. */

.order-package-entry{margin:18px 0;padding:16px;border:1px solid var(--line);border-radius:12px}
.order-package-entry summary{cursor:pointer}
.order-package-entry input{margin:10px 0;width:100%}
#soPackageSelect{width:100%;margin:8px 0 12px}


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

.section-note {
  display: inline-block;
  margin-left: 6px;
  padding: 2px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 153, 0, 0.28);
  background: rgba(255, 153, 0, 0.05);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  vertical-align: middle;
}
.wiz-cat-card__icon {
  font-size: 26px;
  line-height: 1;
  color: var(--accent);
}

/* ── CTA band ────────────────────────────────────────────────────────────── */

.cta-shell {
  display: grid;
  grid-template-columns: 1fr 0.95fr;
  gap: 28px;
  align-items: stretch;
  padding: 34px;
  border-radius: 34px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  background:
    radial-gradient(circle at 10% 20%, rgba(255, 153, 0, 0.12), transparent 22%),
    radial-gradient(circle at 90% 70%, rgba(255, 153, 0, 0.1), transparent 24%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.025));
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.admin-nav-group {
  color: var(--accent);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .12em;
  margin-left: 6px;
  text-transform: uppercase;
}/* ── Responsive ──────────────────────────────────────────────────────────── */

@media (max-width: 1120px){
  .cta-shell {
    grid-template-columns: 1fr;
  }}@media (max-width: 720px){

  .cta-shell {
    padding: 22px;
  }}@media (max-width: 720px){

  .vehicle-type-row {
    flex-direction: column;
  }}

/* ── Inquiry funnel (admin) ──────────────────────────────────────────────── */

.funnel-card {
  margin-top: 20px;
  padding: 24px 28px;
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.038), rgba(255, 255, 255, 0.018));
  border: 1px solid rgba(255, 255, 255, 0.07);
}

.funnel-card-title {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: 20px;
}

.funnel-step {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.funnel-step:last-child {
  border-bottom: none;
}

.funnel-bar-wrap {
  width: 180px;
  flex-shrink: 0;
  height: 8px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 4px;
  overflow: hidden;
}

.funnel-bar {
  height: 100%;
  background: var(--accent);
  border-radius: 4px;
}

.funnel-meta {
  display: flex;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
}

.funnel-label {
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
  min-width: 80px;
}

.funnel-count {
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
}

.funnel-pct {
  font-size: 12px;
  color: var(--muted);
}

/* ── Dealer churn alert (admin) ──────────────────────────────────────────── */

.churn-alert {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 20px;
  margin-bottom: 22px;
  border-radius: var(--radius);
  background: rgba(251, 146, 60, 0.1);
  border: 1px solid rgba(251, 146, 60, 0.35);
}

.churn-alert-icon {
  font-size: 18px;
  flex-shrink: 0;
  line-height: 1;
}

.churn-alert-body {
  flex: 1;
  min-width: 0;
}

.churn-alert-body strong {
  display: block;
  font-size: 13px;
  color: rgba(255, 200, 100, 0.95);
  margin-bottom: 3px;
}

.churn-alert-names {
  font-size: 12px;
  color: var(--muted);
}

.churn-alert-link {
  font-size: 12px;
  color: var(--accent);
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
}

.churn-alert-link:hover {
  text-decoration: underline;
}

/* ── Portal Banner ───────────────────────────────────────────────────────── */

.portal-banner {
  padding: 52px 0 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  background: linear-gradient(180deg, rgba(255, 153, 0, 0.035) 0%, transparent 100%);
}

.portal-banner-inner {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}

.portal-identity {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.portal-tier-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 153, 0, 0.32);
  background: rgba(255, 153, 0, 0.06);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  width: fit-content;
}

.portal-tier-badge::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 8px currentColor;
  flex-shrink: 0;
}

.portal-tier-badge.tier-silver  { border-color: rgba(190,200,216,0.32); background: rgba(190,200,216,0.06); color: #bec8d8; }
.portal-tier-badge.tier-gold    { border-color: rgba(245,158,11,0.32);  background: rgba(245,158,11,0.06);  color: #f59e0b; }
.portal-tier-badge.tier-elite   { border-color: rgba(248,113,113,0.32); background: rgba(248,113,113,0.06); color: #f87171; }

.portal-terms-badge {
  display: inline-flex;
  align-items: center;
  padding: 5px 12px;
  border-radius: 999px;
  border: 1px solid rgba(148,163,184,0.22);
  background: rgba(148,163,184,0.06);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  width: fit-content;
}

.portal-name {
  margin: 0;
  font-size: clamp(28px, 4vw, 46px);
  letter-spacing: -0.04em;
  line-height: 1;
}

.portal-meta {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
  letter-spacing: 0.04em;
}

.portal-stats {
  max-width: 380px;
  flex-shrink: 0;
}

/* ── Batch form meta row ─────────────────────────────────────────────────── */

.batch-meta-row {
  display: grid;
  grid-template-columns: 1fr 1fr 2fr;
  gap: 16px;
  margin-bottom: 32px;
}

.batch-meta-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 20px;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.09);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.02));
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.field-label-muted {
  font-weight: 400;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.32);
  text-transform: none;
  font-size: 10px;
  margin-left: 6px;
}

/* ── Location toggle ─────────────────────────────────────────────────────── */

.toggle-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.toggle-opt {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.02);
  cursor: pointer;
  font-size: 13px;
  color: var(--muted);
  transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
  user-select: none;
}

.toggle-opt input[type="radio"] {
  accent-color: var(--accent);
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  cursor: pointer;
}

.toggle-opt:has(input:checked) {
  border-color: rgba(255, 153, 0, 0.42);
  background: rgba(255, 153, 0, 0.06);
  color: var(--text);
}

/* ── Vehicles list header ────────────────────────────────────────────────── */

.vehicles-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.vehicles-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* ── Vehicle card ────────────────────────────────────────────────────────── */

.vehicle-card {
  position: relative;
  overflow: hidden;
  border-radius: calc(var(--radius) + 4px);
  border: 1px solid rgba(255, 255, 255, 0.09);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.022));
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.vehicle-card::before {
  content: "";
  position: absolute;
  inset: auto auto 0 0;
  width: 180px;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), transparent);
  box-shadow: 0 0 20px var(--accent-glow);
  opacity: 0.9;
}

.vehicle-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.vehicle-number-badge {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
}

.vehicle-remove-btn {
  padding: 6px 14px;
  font-size: 11px;
  border-radius: 999px;
}

.vehicle-card-body {
  display: grid;
  gap: 22px;
  padding: 24px;
}

.vehicle-card-subtotal {
  padding: 14px 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  text-align: right;
}

.vehicle-subtotal-val {
  color: var(--text);
  font-weight: 700;
  font-size: 14px;
  margin-left: 8px;
}

/* ── Tier options ────────────────────────────────────────────────────────── */

.tier-section,
.addon-section {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.tier-options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tier-option {
  position: relative;
}

.tier-option input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  pointer-events: none;
}

.tier-option-label {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 10px 16px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.02);
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
  min-width: 116px;
  text-align: center;
}

.tier-option-label:hover {
  border-color: rgba(255, 153, 0, 0.28);
  background: rgba(255, 153, 0, 0.04);
}

.tier-option input:checked + .tier-option-label {
  border-color: rgba(255, 153, 0, 0.5);
  background: rgba(255, 153, 0, 0.08);
  box-shadow: 0 0 20px rgba(255, 153, 0, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.tier-name {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text);
  transition: color 0.2s ease;
}

.tier-desc {
  font-size: 10px;
  color: rgba(255, 255, 255, 0.35);
  letter-spacing: 0.02em;
  line-height: 1.4;
}

.tier-price {
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  margin-top: 2px;
  transition: color 0.2s ease;
}

.tier-option input:checked + .tier-option-label .tier-name {
  color: var(--accent);
}

.tier-option input:checked + .tier-option-label .tier-price {
  color: rgba(255, 153, 0, 0.75);
}

.addon-grid {
  grid-template-columns: repeat(3, 1fr);
}

.addon-price {
  font-style: normal;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.38);
  margin-left: 4px;
}

/* ── Upcoming batches ────────────────────────────────────────────────────── */

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

.batch-card {
  position: relative;
  overflow: hidden;
  border-radius: calc(var(--radius) + 4px);
  border: 1px solid rgba(255, 255, 255, 0.09);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.025));
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  display: flex;
  flex-direction: column;
}

.batch-card::before {
  content: "";
  position: absolute;
  inset: auto auto 0 0;
  width: 180px;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), transparent);
  box-shadow: 0 0 20px var(--accent-glow);
  opacity: 0.9;
}

.batch-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 20px 24px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.batch-card-date {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 5px;
}

.batch-card-title {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.batch-status {
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  flex-shrink: 0;
  margin-top: 2px;
}

.status-confirmed {
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.25);
  color: rgb(134, 239, 172);
}

.status-pending {
  background: rgba(255, 153, 0, 0.08);
  border: 1px solid rgba(255, 153, 0, 0.28);
  color: var(--accent);
}

.batch-card-vehicles {
  flex: 1;
}

.batch-vehicle-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 10px 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.batch-vehicle-row:last-child {
  border-bottom: none;
}

.batch-vehicle-name {
  font-size: 13px;
  color: var(--muted);
}

.batch-vehicle-service {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.tier-tag       { color: var(--text); }
.tier-tag-low   { color: rgba(255, 255, 255, 0.42); }
.tier-tag-high  { color: var(--accent); }
.tier-tag-top   { color: var(--accent); text-shadow: 0 0 10px rgba(255, 153, 0, 0.4); }

/* ── Tier badge — admin table & pipeline ─────────────────────────────────── */

.tier-badge {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid;
}

.tier-badge.tier-standard,
.tier-standard {
  color: var(--accent);
  border-color: rgba(255, 153, 0, 0.32);
  background: rgba(255, 153, 0, 0.10);
}

.tier-badge.tier-silver,
.tier-silver {
  color: #bec8d8;
  border-color: rgba(190, 200, 216, 0.32);
  background: rgba(190, 200, 216, 0.08);
}

.tier-badge.tier-gold,
.tier-gold {
  color: #f59e0b;
  border-color: rgba(245, 158, 11, 0.32);
  background: rgba(245, 158, 11, 0.10);
}

.tier-badge.tier-elite,
.tier-elite {
  color: #f87171;
  border-color: rgba(248, 113, 113, 0.32);
  background: rgba(248, 113, 113, 0.10);
}

.batch-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.04em;
}

.batch-card-total {
  font-weight: 700;
  font-size: 15px;
  color: var(--text);
}

/* ── History list ────────────────────────────────────────────────────────── */

.history-list {
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.09);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.015));
  overflow: hidden;
}

.history-row {
  display: grid;
  grid-template-columns: 140px 1fr auto auto auto auto;
  align-items: center;
  gap: 20px;
  padding: 18px 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  transition: background 0.2s ease;
  cursor: pointer;
}

.history-row:last-of-type {
  border-bottom: none;
}

.history-row:hover {
  background: rgba(255, 255, 255, 0.02);
}

.history-expand-btn {
  font-size: 12px;
  padding: 2px 6px;
  opacity: 0.45;
  transition: opacity 0.15s;
  border: none;
  background: none;
  color: inherit;
  cursor: pointer;
}

.history-row:hover .history-expand-btn {
  opacity: 0.8;
}

.history-detail {
  padding: 4px 24px 16px 164px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.history-vehicle-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 7px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  font-size: 13px;
}

.history-vehicle-row:last-child {
  border-bottom: none;
}

.history-vehicle-name {
  flex: 1;
  font-weight: 500;
  color: var(--text);
}

.history-vehicle-total {
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
}

.history-date {
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.06em;
  white-space: nowrap;
}

.history-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}

.history-breakdown {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.38);
}

.history-total {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  white-space: nowrap;
}

.history-status {
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  white-space: nowrap;
}

.status-done {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.5);
}

/* ── Sticky batch bar ────────────────────────────────────────────────────── */

.batch-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 30;
  background: rgba(5, 5, 5, 0.92);
  backdrop-filter: blur(22px);
  border-top: 1px solid rgba(255, 153, 0, 0.2);
  box-shadow: 0 -8px 40px rgba(0, 0, 0, 0.5);
}

.batch-bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px 0;
  flex-wrap: wrap;
}

.batch-bar-left {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  min-width: 0;
}

.batch-bar-count {
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: 0.06em;
  white-space: nowrap;
}

.batch-bar-sep {
  color: rgba(255, 255, 255, 0.22);
}

.batch-bar-breakdown {
  font-size: 12px;
  color: var(--muted);
}

.batch-bar-right {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-shrink: 0;
}

.batch-bar-note {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.3);
  letter-spacing: 0.04em;
}

.batch-bar-total {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--accent);
  white-space: nowrap;
}

.batch-bar-confirm {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  font-weight: 600;
  color: rgb(134, 239, 172);
  padding: 14px 0;
}

.batch-bar-confirm-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(34, 197, 94, 0.2);
  border: 1px solid rgba(34, 197, 94, 0.4);
  font-size: 13px;
}/* ── Portal responsive ───────────────────────────────────────────────────── */

@media (max-width: 1120px){
  .batch-meta-row {
    grid-template-columns: 1fr 1fr;
  }

  .batch-meta-row .batch-meta-card:last-child {
    grid-column: 1 / -1;
  }

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

  .history-row {
    grid-template-columns: 1fr 1fr;
    gap: 10px 20px;
  }

  .history-date { grid-column: 1; }
  .history-status { grid-column: 2; text-align: right; }
  .history-label { grid-column: 1 / -1; }
  .history-breakdown { grid-column: 1 / -1; }
  .history-total { grid-column: 1 / -1; }

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

/* ── Portal empty state ─────────────────────────────────────────────────────── */

.portal-empty {
  margin: 0;
  padding: 40px 24px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.35);
  letter-spacing: 0.06em;
  text-align: center;
}/* ── Portal responsive ───────────────────────────────────────────────────────── */

@media (max-width: 720px){
  .portal-banner-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .portal-stats {
    max-width: 100%;
    width: 100%;
  }

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

  .batch-meta-row .batch-meta-card:last-child {
    grid-column: auto;
  }

  .tier-options {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
  }

  .addon-grid {
    grid-template-columns: 1fr 1fr !important;
  }

  .batch-bar-left {
    display: none;
  }

  .batch-bar-note {
    display: none;
  }

  .history-row {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .history-status {
    text-align: left;
    grid-column: auto;
    width: fit-content;
  }}

/* ═══════════════════════════════════════════════════════════════════════════════
   ADMIN DASHBOARD
   ═══════════════════════════════════════════════════════════════════════════════ */

/* ── Admin section layout ────────────────────────────────────────────────────── */

.admin-section {
  padding: 80px 0;
}

.admin-section + .admin-section {
  padding-top: 0;
}

.admin-section-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 36px;
}

.admin-date {
  font-size: 13px;
  color: var(--muted);
  margin-top: 8px;
  white-space: nowrap;
}

/* ── KPI cards ───────────────────────────────────────────────────────────────── */

.kpi-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 28px;
}

.kpi-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 24px 24px 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: border-color 0.2s;
}

.kpi-card:hover {
  border-color: rgba(255, 153, 0, 0.3);
}

.kpi-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.kpi-value {
  font-size: 32px;
  font-weight: 800;
  color: var(--text);
  line-height: 1;
}

.kpi-sub {
  font-size: 12px;
  color: var(--muted);
  margin-top: 2px;
}

/* ── Charts ──────────────────────────────────────────────────────────────────── */

.charts-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}

.chart-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 24px;
}

.chart-card-title {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 20px;
}

.chart-wrap {
  position: relative;
  height: 220px;
}

/* ── Add-on performance card ─────────────────────────────────────────────────── */

.addon-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 24px;
}

.addon-card-title {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 20px;
}

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

.addon-row {
  display: grid;
  grid-template-columns: 1fr 60px 100px 80px;
  align-items: center;
  gap: 16px;
  font-size: 14px;
}

.addon-row-name {
  font-weight: 500;
}

.addon-row-count {
  text-align: right;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.addon-row-bar-wrap {
  height: 6px;
  background: rgba(255,255,255,0.08);
  border-radius: 99px;
  overflow: hidden;
}

.addon-row-bar {
  height: 100%;
  background: var(--accent);
  border-radius: 99px;
  transition: width 0.6s ease;
}

.addon-row-pct {
  text-align: right;
  color: var(--accent);
  font-size: 13px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

/* ── Pipeline board ──────────────────────────────────────────────────────────── */

.pipeline-cols {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  align-items: start;
}

.pipeline-col {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
}

.pipeline-col-header {
  padding: 12px 18px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.pipeline-pending    { background: rgba(255,200,0,0.12);  color: #ffd700; }
.pipeline-confirmed  { background: rgba(96,165,250,0.12); color: #60a5fa; }
.pipeline-scheduled  { background: rgba(74,222,128,0.12); color: #4ade80; }
.pipeline-inprogress { background: rgba(255,153,0,0.15);  color: var(--accent); }

.pipeline-col-body {
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 60px;
}

.pipeline-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px;
  padding: 14px 16px;
  font-size: 13px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.pipeline-card-dealer {
  font-weight: 700;
  font-size: 14px;
}

.pipeline-card-meta {
  color: var(--muted);
  font-size: 12px;
}

.pipeline-card-value {
  font-weight: 600;
  color: var(--accent);
  font-size: 13px;
}

.pipeline-card-actions {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 4px;
}

.pipeline-action-btn {
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 6px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  transition: all 0.2s;
}

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

.pipeline-action-btn.danger:hover {
  border-color: #f87171;
  color: #f87171;
}

/* ── Dealer table ────────────────────────────────────────────────────────────── */

.admin-table-wrap {
  overflow-x: auto;
  border-radius: 16px;
  border: 1px solid var(--line);
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.admin-table thead tr {
  background: rgba(255,255,255,0.04);
  border-bottom: 1px solid var(--line);
}

.admin-table th {
  padding: 12px 16px;
  text-align: left;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}

.admin-table td {
  padding: 14px 16px;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  vertical-align: middle;
}

.admin-table tbody tr:last-child td {
  border-bottom: none;
}

.admin-table tbody tr:hover td {
  background: rgba(255,255,255,0.02);
}

.dealer-name-cell {
  font-weight: 600;
}

.dealer-test-badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: rgba(255,153,0,0.15);
  color: var(--accent);
  border: 1px solid rgba(255,153,0,0.3);
  border-radius: 4px;
  padding: 1px 6px;
  margin-left: 6px;
  vertical-align: middle;
}

.dealer-inactive-badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: rgba(255,255,255,0.06);
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 1px 6px;
  margin-left: 6px;
  vertical-align: middle;
}

.dealer-nodocs-badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: rgba(249,115,22,0.15);
  color: #f97316;
  border: 1px solid rgba(249,115,22,0.35);
  border-radius: 4px;
  padding: 1px 6px;
  margin-left: 6px;
  vertical-align: middle;
}

.table-action-btn {
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 6px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}

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

/* ── Invite / create dealer shell ────────────────────────────────────────────── */

.invite-shell {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 40px;
  align-items: start;
}

.invite-heading {
  font-size: 18px;
  font-weight: 700;
  margin: 0 0 20px;
}

.invite-step {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
  margin: 0 0 14px;
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.invite-step-num {
  flex-shrink: 0;
  font-size: 12px;
  font-weight: 700;
  background: rgba(255,153,0,0.15);
  color: var(--accent);
  border-radius: 6px;
  padding: 2px 7px;
  margin-top: 1px;
}

.invite-send-card {
  margin-top: 32px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 20px;
}

.invite-note {
  margin-top: 24px;
  font-size: 13px;
  color: var(--muted);
  background: rgba(255,255,255,0.03);
  border: 1px dashed var(--line);
  border-radius: 10px;
  padding: 14px 16px;
}

.dealer-create-form {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 28px;
}/* ── Admin responsive ────────────────────────────────────────────────────────── */

@media (max-width: 1100px){
  .kpi-row {
    grid-template-columns: repeat(2, 1fr);
  }}@media (max-width: 1100px){
  .pipeline-cols {
    grid-template-columns: repeat(2, 1fr);
  }}@media (max-width: 860px){
  .charts-row {
    grid-template-columns: 1fr;
  }

  .pipeline-cols {
    grid-template-columns: 1fr;
  }

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

  .addon-row {
    grid-template-columns: 1fr 60px 80px;
  }

  .addon-row-bar-wrap {
    display: none;
  }}@media (max-width: 600px){
  .kpi-row {
    grid-template-columns: 1fr;
  }

  .kpi-value {
    font-size: 26px;
  }}

/* ── Edit Dealer Modal ───────────────────────────────────────────────────────── */

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(4px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-overlay[hidden] { display: none; }

.modal-card {
  background: #111113;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 32px;
  width: 100%;
  max-width: 600px;
  max-height: 90vh;
  overflow-y: auto;
}

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

.modal-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin: 0;
}

.modal-close {
  background: none;
  border: none;
  color: var(--muted);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  padding: 2px 8px;
  border-radius: 6px;
  transition: color 0.2s, background 0.2s;
}

.modal-close:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.08);
}

.modal-actions {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 4px;
}

/* ── Batch detail modal ──────────────────────────────────────────────────────── */

.modal-card-wide { max-width: 760px; }

/* ── Sign agreement modal — two-column with PDF viewer ──────────────────────── */

.sign-modal-card {
  max-width: min(92vw, 980px);
  max-height: 92vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.sign-modal-body {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 24px;
  min-height: 0;
  flex: 1;
}

.sign-pdf-pane {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  min-height: 560px;
}

.sign-sig-pane {
  overflow-y: auto;
  padding-right: 4px;
}@media (max-width: 700px){
  .sign-modal-card {
    max-height: 95vh;
    overflow-y: auto;
  }
  .sign-modal-body {
    grid-template-columns: 1fr;
  }
  .sign-pdf-pane {
    min-height: 320px;
  }}

.modal-sub {
  font-size: 13px;
  color: var(--muted);
  margin: 4px 0 0;
}

.batch-vehicle-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0 0 20px;
  max-height: 38vh;
  overflow-y: auto;
  padding-right: 4px;
}

.batch-vehicle-item {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.bv-header {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.bv-name {
  font-weight: 600;
  font-size: 14px;
  flex: 1;
  min-width: 120px;
}

.bv-tier-price {
  font-size: 13px;
  color: var(--muted);
  white-space: nowrap;
}

.bv-notes {
  font-size: 12px;
  color: var(--muted);
  font-style: italic;
}

.bv-addons {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.bv-addon {
  font-size: 11px;
  background: rgba(255, 153, 0, 0.1);
  color: var(--accent);
  border-radius: 6px;
  padding: 2px 8px;
}

.bv-addon-none {
  font-size: 12px;
  color: var(--muted);
}

.bv-subtotal {
  font-size: 13px;
  font-weight: 600;
  text-align: right;
}

.batch-modal-footer {
  border-top: 1px solid var(--line);
  padding-top: 18px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.batch-totals-row {
  display: flex;
  gap: 32px;
  align-items: flex-end;
  flex-wrap: wrap;
}

.batch-total-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.batch-total-label {
  font-size: 11px;
  color: var(--muted);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.batch-total-val {
  font-size: 22px;
  font-weight: 700;
}

.batch-final-input {
  width: 160px;
  padding: 8px 12px;
  font-size: 15px;
}

.batch-dealer-notes {
  font-size: 13px;
  color: var(--muted);
  font-style: italic;
  margin: 0;
}

.pipeline-card { cursor: pointer; }

/* ── Batch vehicle inline edit ───────────────────────────────────────────────── */

.bv-edit-btn {
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 6px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  transition: all 0.2s;
  margin-left: auto;
  white-space: nowrap;
}

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

.bv-edit-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid rgba(255,255,255,0.06);
}

.bv-save-btn {
  grid-column: 1 / -1;
  font-size: 12px;
  padding: 7px 14px;
  border-radius: 8px;
}

/* ── Inquiry section ─────────────────────────────────────────────────────────── */

.inquiry-filter-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.filter-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line);
  color: var(--muted);
  border-radius: 8px;
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.2s;
}

.filter-btn:hover { background: rgba(255, 255, 255, 0.08); color: var(--text); }

.chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  width: fit-content;
  border-radius: 6px;
  padding: 3px 9px;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.35;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
  background: rgba(148, 163, 184, 0.14);
  color: #cbd5e1;
  border: 1px solid rgba(148, 163, 184, 0.2);
}

.chip-active,
.chip-paid,
.chip-ready,
.chip-published,
.chip-delivered {
  background: rgba(34, 197, 94, 0.14);
  color: #86efac;
  border-color: rgba(34, 197, 94, 0.26);
}

.chip-draft,
.chip-muted {
  background: rgba(148, 163, 184, 0.12);
  color: #cbd5e1;
  border-color: rgba(148, 163, 184, 0.18);
}

.chip-warn,
.chip-pending,
.chip-processing,
.chip-review {
  background: rgba(251, 191, 36, 0.14);
  color: #fcd34d;
  border-color: rgba(251, 191, 36, 0.28);
}

.chip-purchase,
.chip-imported {
  background: rgba(249, 115, 22, 0.15);
  color: #fdba74;
  border-color: rgba(249, 115, 22, 0.28);
}

.chip-shipped,
.chip-ordered,
.chip-info {
  background: rgba(96, 165, 250, 0.14);
  color: #93c5fd;
  border-color: rgba(96, 165, 250, 0.26);
}

.chip-backorder,
.chip-attention {
  background: rgba(168, 85, 247, 0.14);
  color: #d8b4fe;
  border-color: rgba(168, 85, 247, 0.28);
}

.chip-archived,
.chip-error,
.chip-failed,
.chip-cancelled,
.chip-refunded {
  background: rgba(248, 113, 113, 0.14);
  color: #fca5a5;
  border-color: rgba(248, 113, 113, 0.28);
}

.inquiry-type-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  border-radius: 6px;
  padding: 2px 8px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

.inquiry-name    { font-weight: 600; font-size: 14px; }
.inquiry-contact { font-size: 12px; color: var(--muted); }
.inquiry-service { font-size: 13px; color: var(--muted); max-width: 200px; }

.inquiry-status {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  border-radius: 6px;
  padding: 3px 9px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

/* Inquiry detail modal body */
.inquiry-detail-body {
  display: flex;
  flex-direction: column;
  margin-bottom: 20px;
  max-height: 40vh;
  overflow-y: auto;
  padding-right: 4px;
}

.inquiry-detail-row {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 12px;
  padding: 9px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  font-size: 14px;
}

.inquiry-detail-label {
  color: var(--muted);
  font-weight: 600;
  font-size: 12px;
  padding-top: 1px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.inquiry-detail-value {
  color: var(--text);
  word-break: break-word;
  white-space: pre-wrap;
}

/* ── Scheduling sub-form (inside inquiry modal) ───────────────────────────── */
.schedule-sub-form {
  background: rgba(255, 153, 0, 0.04);
  border: 1px solid rgba(255, 153, 0, 0.18);
  border-radius: 10px;
  padding: 18px 20px 16px;
  margin-bottom: 16px;
}

.schedule-sub-heading {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--accent);
  margin: 0 0 14px;
}

.vehicle-type-row {
  display: flex;
  gap: 10px;
  margin-bottom: 16px;
  align-items: center;
}

/* ── Dealer portal — batch card actions (cancel / edit pending) ─────────────── */

.batch-card-actions {
  display: flex;
  gap: 8px;
  padding: 10px 24px 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* ── Admin notes log ─────────────────────────────────────────────────────────── */

.notes-log-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 220px;
  overflow-y: auto;
  padding-right: 4px;
}

.notes-log-entry {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 8px;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.notes-log-meta {
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.04em;
}

.notes-log-text {
  font-size: 13px;
  color: var(--text);
  white-space: pre-wrap;
  line-height: 1.55;
}

/* ── Edit batch modal — existing vehicle row ─────────────────────────────────── */

.eb-existing-vehicle {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 13px;
  transition: opacity 0.2s;
}/* ── Admin dashboard — mobile responsive improvements ────────────────────────── */

@media (max-width: 860px){
  .admin-section-head {
    flex-direction: column;
    gap: 12px;
  }

  .admin-table th:nth-child(5),
  .admin-table td:nth-child(5),
  .admin-table th:nth-child(7),
  .admin-table td:nth-child(7) {
    display: none;
  }}@media (max-width: 600px){
  .admin-section {
    padding: 48px 0;
  }

  .modal-card {
    padding: 20px;
    border-radius: 12px;
  }

  .batch-totals-row {
    flex-direction: column;
    gap: 14px;
  }

  .admin-table th:nth-child(4),
  .admin-table td:nth-child(4),
  .admin-table th:nth-child(6),
  .admin-table td:nth-child(6) {
    display: none;
  }

  .pipeline-card-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .pipeline-action-btn {
    text-align: center;
  }

  .modal-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .batch-bar-inner {
    flex-direction: column;
    gap: 10px;
    padding: 12px 0;
  }

  .batch-bar-right {
    width: 100%;
    justify-content: space-between;
  }}

/* ── Activity feed ───────────────────────────────────────────────────────────── */

.activity-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 16px 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  transition: background 0.2s ease;
}

.activity-row:last-child {
  border-bottom: none;
}

.activity-row:hover {
  background: rgba(255, 255, 255, 0.02);
}

.activity-row-left {
  flex: 1;
  min-width: 0;
}

.activity-row-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.activity-row-meta {
  font-size: 12px;
  color: var(--muted);
  margin-top: 3px;
}

.activity-row-right {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.activity-row-date {
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
}

.status-complete {
  background: rgba(99, 102, 241, 0.10);
  border: 1px solid rgba(99, 102, 241, 0.28);
  color: rgb(165, 180, 252);
}

.status-cancel {
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.22);
  color: rgb(252, 165, 165);
}

/* ── CRM / segmentation ──────────────────────────────────────────────────────── */

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

.crm-tile {
  padding: 24px;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.038), rgba(255, 255, 255, 0.018));
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.crm-active  { border-color: rgba(34, 197, 94, 0.2); }
.crm-risk    { border-color: rgba(255, 153, 0, 0.2); }
.crm-lapsed  { border-color: rgba(239, 68, 68, 0.2); }
.crm-new     { border-color: rgba(99, 102, 241, 0.2); }

.crm-tile-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 10px;
}

.crm-tile-value {
  font-size: 36px;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
}

.crm-active  .crm-tile-value { color: rgb(134, 239, 172); }
.crm-risk    .crm-tile-value { color: var(--accent); }
.crm-lapsed  .crm-tile-value { color: rgb(252, 165, 165); }
.crm-new     .crm-tile-value { color: rgb(165, 180, 252); }

.crm-tile-sub {
  font-size: 12px;
  color: var(--muted);
  margin-top: 6px;
}

.crm-lower {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.crm-panel {
  padding: 24px;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.038), rgba(255, 255, 255, 0.018));
}

.crm-panel-head {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}

.crm-list-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 9px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  font-size: 14px;
}

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

.crm-list-label {
  color: var(--muted);
}

.crm-list-val {
  font-weight: 600;
}@media (max-width: 900px){
  .crm-grid {
    grid-template-columns: repeat(2, 1fr);
  }}@media (max-width: 600px){
  .crm-grid,
  .crm-lower {
    grid-template-columns: 1fr;
  }}

/* ════════════════════════════════════════════════════════════════════════════
   SERVICE CALENDAR — admin-dashboard.html
   ════════════════════════════════════════════════════════════════════════════ */

.cal-nav-controls {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.cal-month-label {
  font-size: 15px;
  font-weight: 700;
  min-width: 168px;
  text-align: center;
  letter-spacing: -0.01em;
}

.cal-summary {
  font-size: 13px;
  color: var(--muted);
  margin: 0 0 16px;
  min-height: 18px;
}

/* ── Calendar shell ──────────────────────────────────────────────────────── */

.cal-wrap {
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.08);
  overflow: hidden;
  margin-bottom: 14px;
}

.cal-day-headers {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.cal-day-headers > div {
  padding: 10px 8px;
  text-align: center;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
}

/* ── Calendar cells ──────────────────────────────────────────────────────── */

.cal-cell {
  min-height: 100px;
  padding: 8px 7px 6px;
  border-right: 1px solid rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  transition: background 0.15s;
}

.cal-cell:nth-child(7n) {
  border-right: none;
}

.cal-cell.cal-other-month {
  opacity: 0.3;
}

.cal-cell.cal-today {
  background: rgba(255, 153, 0, 0.06);
}

.cal-cell.cal-conflict {
  background: rgba(248, 113, 113, 0.04);
}

.cal-day-num {
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 5px;
  line-height: 1;
}

.cal-cell.cal-today .cal-day-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  background: var(--accent);
  color: #0a0a0a;
  border-radius: 50%;
  font-size: 11px;
  margin-bottom: 4px;
}

/* ── Calendar events ─────────────────────────────────────────────────────── */

.cal-event {
  display: block;
  width: 100%;
  font-size: 11px;
  line-height: 1.3;
  padding: 3px 6px;
  border-radius: 4px;
  margin-bottom: 3px;
  cursor: pointer;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  border: none;
  text-align: left;
  background: none;
  transition: opacity 0.15s, transform 0.1s;
}

.cal-event:hover {
  opacity: 0.78;
  transform: translateX(1px);
}

.cal-event:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}

.cal-event.cal-status-pending {
  background: rgba(147, 197, 253, 0.12);
  border-left: 2px dashed rgba(147, 197, 253, 0.5);
  color: rgba(147, 197, 253, 0.85);
}

.cal-event.cal-status-confirmed {
  background: rgba(253, 224, 71, 0.11);
  border-left: 2px solid rgba(253, 224, 71, 0.5);
  color: rgba(253, 224, 71, 0.85);
}

.cal-event.cal-status-scheduled {
  background: rgba(255, 153, 0, 0.14);
  border-left: 2px solid var(--accent);
  color: #ffc84d;
}

.cal-event.cal-status-in_progress {
  background: rgba(74, 222, 128, 0.13);
  border-left: 2px solid #4ade80;
  color: #4ade80;
}

.cal-event.cal-status-completed {
  background: rgba(255, 255, 255, 0.05);
  border-left: 2px solid rgba(255, 255, 255, 0.18);
  color: var(--muted);
}

.cal-event-meta {
  font-size: 10px;
  opacity: 0.7;
}

/* ── Conflict badge ──────────────────────────────────────────────────────── */

.cal-conflict-badge {
  display: inline-block;
  font-size: 9px;
  font-weight: 700;
  padding: 1px 5px;
  border-radius: 3px;
  background: rgba(248, 113, 113, 0.22);
  color: #f87171;
  letter-spacing: 0.04em;
  margin-bottom: 4px;
}

/* ── Legend ──────────────────────────────────────────────────────────────── */

.cal-legend {
  display: flex;
  align-items: center;
  gap: 6px 16px;
  flex-wrap: wrap;
}

.cal-legend-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 2px;
  flex-shrink: 0;
}

.cal-dot-pending    { background: rgba(147, 197, 253, 0.70); }
.cal-dot-confirmed  { background: rgba(253, 224, 71, 0.70); }
.cal-dot-scheduled  { background: rgba(255, 153, 0, 0.70); }
.cal-dot-inprogress { background: rgba(74, 222, 128, 0.70); }
.cal-dot-completed  { background: rgba(255, 255, 255, 0.20); }
.cal-dot-conflict   { background: rgba(248, 113, 113, 0.55); }

.cal-legend-label {
  font-size: 12px;
  color: var(--muted);
}/* ── Responsive ──────────────────────────────────────────────────────────── */

@media (max-width: 860px){
  .cal-cell {
    min-height: 72px;
    padding: 6px 5px;
  }

  .cal-event {
    font-size: 10px;
    padding: 2px 4px;
  }

  .cal-month-label {
    min-width: 130px;
    font-size: 13px;
  }}@media (max-width: 540px){
  .cal-cell {
    min-height: 50px;
    padding: 4px 3px;
  }

  /* Hide text labels — show dot indicator only */
  .cal-event {
    display: none;
  }

  .cal-cell.has-events .cal-day-num::after {
    content: '';
    display: block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent);
    margin: 3px auto 0;
  }

  .cal-conflict-badge {
    display: none;
  }}

/* ════════════════════════════════════════════════════════════════════════════
   ADMIN — HAMBURGER NAV (mobile)
   ════════════════════════════════════════════════════════════════════════════ */

.nav-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
}

.hamburger-line {
  display: block;
  width: 18px;
  height: 1.5px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.22s, opacity 0.15s;
}

.hamburger.hamburger-open .hamburger-line:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}
.hamburger.hamburger-open .hamburger-line:nth-child(2) {
  opacity: 0;
}
.hamburger.hamburger-open .hamburger-line:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}@media (max-width: 900px){
  .hamburger {
    display: flex;
  }}

/* ════════════════════════════════════════════════════════════════════════════
   ADMIN — GLOBAL SEARCH OVERLAY
   ════════════════════════════════════════════════════════════════════════════ */

.admin-search-trigger {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  font-size: 12px;
}

.admin-search-overlay {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 80px;
}

.admin-search-overlay[hidden] { display: none; }

.admin-search-inner {
  width: min(600px, calc(100vw - 32px));
  background: rgba(12, 12, 16, 0.98);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.7);
}

.admin-search-input {
  display: block;
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 16px 20px;
  font-size: 16px;
  color: var(--text);
  outline: none;
}

.admin-search-input::placeholder {
  color: rgba(255, 255, 255, 0.3);
}

.admin-search-results {
  max-height: 360px;
  overflow-y: auto;
}

.search-result-item {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 10px 20px;
  background: none;
  border: none;
  color: var(--text);
  cursor: pointer;
  text-align: left;
  transition: background 0.12s;
}

.search-result-item:hover,
.search-result-item:focus-visible {
  background: rgba(255, 255, 255, 0.06);
  outline: none;
}

.search-result-type {
  flex-shrink: 0;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  min-width: 50px;
}

.search-result-text {
  min-width: 0;
}

.search-result-label {
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.search-result-sub {
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.search-empty {
  padding: 20px;
  font-size: 14px;
  color: var(--muted);
  text-align: center;
}

/* ════════════════════════════════════════════════════════════════════════════
   ADMIN — REVENUE FORECAST CARD
   ════════════════════════════════════════════════════════════════════════════ */

.forecast-card {
  background: var(--panel);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 24px;
}

.forecast-card-title {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 20px;
}

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

.forecast-panel {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 14px;
  padding: 18px 20px;
}

.forecast-panel-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}

.forecast-panel-value {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--accent);
  line-height: 1.1;
  margin-bottom: 4px;
}

.forecast-panel-sub {
  font-size: 12px;
  color: var(--muted);
}@media (max-width: 600px){
  .forecast-panels {
    grid-template-columns: 1fr;
    gap: 10px;
  }}

/* ════════════════════════════════════════════════════════════════════════════
   ADMIN — BULK BATCH ACTION BAR
   ════════════════════════════════════════════════════════════════════════════ */

.bulk-action-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding: 12px 18px;
  background: rgba(255, 153, 0, 0.07);
  border: 1px solid rgba(255, 153, 0, 0.22);
  border-radius: 12px;
  margin-bottom: 16px;
}

.bulk-selected-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  margin-right: auto;
}

.bulk-confirm-btn {
  font-size: 13px;
  padding: 8px 18px;
}

/* Select-all checkbox wrapper in pipeline header */
.pipeline-select-all-wrap {
  display: inline-flex;
  align-items: center;
  margin-right: 6px;
  cursor: pointer;
}

.pipeline-select-all-wrap input[type="checkbox"] {
  width: 14px;
  height: 14px;
  accent-color: var(--accent);
  cursor: pointer;
}

/* Checkbox on each pending card */
.pipeline-card-checkbox {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 15px;
  height: 15px;
  accent-color: var(--accent);
  cursor: pointer;
  z-index: 2;
}

.pipeline-card {
  position: relative; /* ensure checkbox positioning works */
}

/* Primary action button (Confirm) */
.pipeline-action-btn.pipeline-action-primary {
  background: rgba(255, 153, 0, 0.16);
  border-color: rgba(255, 153, 0, 0.45);
  color: var(--accent);
  font-weight: 600;
}

.pipeline-action-btn.pipeline-action-primary:hover {
  background: rgba(255, 153, 0, 0.28);
}

/* ════════════════════════════════════════════════════════════════════════════
   CALENDAR — BLOCKED DAY, INQUIRY CHIP, REVENUE OVERLAY, CTRL BUTTONS
   ════════════════════════════════════════════════════════════════════════════ */

/* Blocked date cell */
.cal-cell.cal-blocked {
  background: rgba(248, 113, 113, 0.06);
  cursor: pointer;
}

.cal-cell.cal-blocked .cal-day-num {
  color: #f87171;
}

.cal-blocked-banner {
  font-size: 9px;
  font-weight: 700;
  color: #f87171;
  background: rgba(248, 113, 113, 0.15);
  border-radius: 3px;
  padding: 2px 5px;
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Consumer inquiry chip */
.cal-event.cal-event-inquiry {
  background: rgba(167, 139, 250, 0.14);
  border-left: 2px solid #a78bfa;
  color: #c4b5fd;
}

/* Revenue overlay label */
.cal-rev-overlay {
  font-size: 10px;
  font-weight: 700;
  color: rgba(255, 153, 0, 0.85);
  margin-top: 4px;
  letter-spacing: -0.01em;
}

/* Calendar control buttons */
.cal-ctrl-btn {
  font-size: 11px;
  padding: 5px 12px;
  border-radius: 7px;
}

.cal-ctrl-btn.cal-ctrl-active {
  background: rgba(255, 153, 0, 0.15);
  border-color: rgba(255, 153, 0, 0.45);
  color: var(--accent);
}

/* Legend additions */
.cal-dot-inquiry { background: rgba(167, 139, 250, 0.7); }
.cal-dot-blocked { background: rgba(248, 113, 113, 0.55); }/* ════════════════════════════════════════════════════════════════════════════
   ADMIN — PIPELINE MOBILE RESPONSIVE
   ════════════════════════════════════════════════════════════════════════════ */

@media (max-width: 768px){
  .pipeline-cols {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .forecast-panels {
    grid-template-columns: 1fr 1fr;
  }

  .cal-nav-controls {
    gap: 6px;
  }

  .cal-ctrl-btn {
    font-size: 10px;
    padding: 4px 9px;
  }

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

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

  .admin-search-overlay {
    padding-top: 60px;
    align-items: flex-start;
  }}

/* ════════════════════════════════════════════════════════════════════════════
   DEALER PORTAL — MINI-CALENDAR
   ════════════════════════════════════════════════════════════════════════════ */

.dealer-cal {
  background: var(--panel);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 28px;
  max-width: 380px;
}

.dealer-cal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.dealer-cal-label {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.dealer-cal-nav {
  font-size: 16px;
  padding: 4px 10px;
  line-height: 1;
}

.dealer-cal-days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  margin-bottom: 4px;
}

.dealer-cal-days > div {
  text-align: center;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 4px 0;
}

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

.dealer-cal-cell {
  position: relative;
  min-height: 32px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 5px;
  font-size: 12px;
  font-weight: 500;
  color: var(--muted);
  border-radius: 6px;
  cursor: default;
  flex-direction: column;
  align-items: center;
}

.dealer-cal-cell.dealer-cal-other {
  opacity: 0.25;
}

.dealer-cal-cell.dealer-cal-today {
  background: rgba(255, 153, 0, 0.1);
  color: var(--accent);
  font-weight: 700;
}

.dealer-cal-cell.dealer-cal-has-service {
  background: rgba(255, 153, 0, 0.08);
  color: var(--text);
  font-weight: 700;
  border: 1px solid rgba(255, 153, 0, 0.25);
}

.dealer-cal-cell.dealer-cal-past {
  opacity: 0.35;
}

.dealer-cal-dot {
  display: block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  margin: 2px auto 0;
}

.dealer-cal-dot-scheduled  { background: var(--accent); }
.dealer-cal-dot-in_progress { background: #4ade80; }
.dealer-cal-dot-pending    { background: rgba(255, 255, 255, 0.4); }
.dealer-cal-dot-confirmed  { background: #60a5fa; }
.dealer-cal-dot-completed  { background: #4ade80; opacity: 0.6; }

.dealer-cal-cell.dealer-cal-completed {
  background: rgba(74, 222, 128, 0.05);
  border: 1px solid rgba(74, 222, 128, 0.15);
  opacity: 0.7;
}

/* ── Condition Report — Admin Modal ─────────────────────────────────────────── */

.cr-vehicle-forms {
  max-height: 60vh;
  overflow-y: auto;
  padding: 4px 24px 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.cr-vehicle-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.cr-card-header {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.cr-card-name {
  font-weight: 600;
  font-size: 14px;
  flex: 1;
}

.cr-flags-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.cr-flag-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 11px;
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,0.12);
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
  user-select: none;
  color: rgba(255,255,255,0.55);
}

.cr-flag-chip input[type="checkbox"] {
  display: none;
}

.cr-flag-chip:hover {
  border-color: rgba(255,255,255,0.3);
  color: rgba(255,255,255,0.8);
}

.cr-flag-chip.cr-flag-active {
  background: rgba(255,153,0,0.18);
  border-color: var(--accent);
  color: var(--accent);
}

.cr-notes-row {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.cr-notes {
  min-height: 56px;
  font-size: 13px;
}

.cr-photo-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.cr-photo-label {
  align-self: flex-start;
  font-size: 12px;
  padding: 4px 12px;
  cursor: pointer;
}

.cr-photo-input {
  display: none;
}

/* Hide native file pickers — labels trigger them via for= */
.cr-slot-input,
.cr-extras-input {
  display: none;
}

/* Photo slot grid */
.cr-slots-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  gap: 8px;
  margin-bottom: 4px;
}

.cr-slot {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.cr-slot-label {
  font-size: 10px;
  color: rgba(255,255,255,0.45);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  text-align: center;
}

.cr-slot-btn {
  font-size: 11px;
  padding: 5px 10px;
  cursor: pointer;
  width: 100%;
  text-align: center;
}

.cr-slot-preview {
  width: 100%;
  min-height: 0;
}

.cr-slot-thumb-wrap {
  position: relative;
  width: 100%;
}

.cr-slot-thumb-wrap img {
  width: 100%;
  height: 70px;
  object-fit: cover;
  border-radius: 4px;
  display: block;
}

.cr-slot-remove {
  position: absolute;
  top: 2px;
  right: 2px;
  background: rgba(0,0,0,0.6);
  border: none;
  color: #fff;
  font-size: 12px;
  line-height: 1;
  padding: 1px 4px;
  border-radius: 3px;
  cursor: pointer;
}

.cr-extras-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.cr-photo-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.cr-photo-item {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(255,255,255,0.06);
  border-radius: 6px;
  padding: 3px 8px;
  font-size: 11px;
  max-width: 200px;
}

.cr-photo-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cr-photo-remove {
  background: none;
  border: none;
  color: rgba(255,255,255,0.4);
  cursor: pointer;
  font-size: 14px;
  line-height: 1;
  padding: 0;
  flex-shrink: 0;
}

.cr-photo-remove:hover { color: #f87171; }

.cr-disclaimer {
  font-size: 12px;
  color: rgba(255,255,255,0.35);
  margin-bottom: 12px;
}

/* ── Condition Report — Dealer Portal View ──────────────────────────────────── */

.cr-report-section {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(255,255,255,0.07);
}

.cr-report-btn {
  font-size: 11px;
  padding: 3px 12px;
  opacity: 0.7;
}

.cr-report-btn:hover { opacity: 1; }

.cr-report-block {
  padding: 4px 0 8px;
}

.cr-report-heading {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
  margin-bottom: 10px;
}

.cr-report-vehicle {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 12px;
}

.cr-report-flags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.cr-flag-pill {
  display: inline-block;
  padding: 2px 9px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 500;
  background: rgba(255,153,0,0.14);
  color: var(--accent);
  border: 1px solid rgba(255,153,0,0.3);
}

.cr-no-flags {
  font-size: 12px;
  color: rgba(255,255,255,0.3);
  font-style: italic;
}

.cr-report-notes {
  font-size: 12px;
  color: rgba(255,255,255,0.6);
  line-height: 1.5;
  margin: 0;
}

.cr-photo-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.cr-photo-thumb {
  display: block;
  width: 72px;
  height: 72px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.1);
  flex-shrink: 0;
}

.cr-photo-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.cr-empty {
  font-size: 12px;
  color: rgba(255,255,255,0.3);
  font-style: italic;
  padding: 8px 0;
}

/* ── Lead Center ─────────────────────────────────────────────────────────── */

.lead-pipeline-strip {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.lead-count-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  font-size: 11px;
  font-weight: 700;
  padding: 1px 6px;
  margin-left: 4px;
  min-width: 20px;
}

.lead-search-row {
  margin-bottom: 24px;
}

.lead-card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}@media (max-width: 1024px){
  .lead-card-grid { grid-template-columns: repeat(2, 1fr); }}@media (max-width: 640px){
  .lead-card-grid { grid-template-columns: 1fr; }}

.lead-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 18px 20px;
  transition: border-color 0.2s, transform 0.15s;
}

.lead-card:hover {
  border-color: rgba(255, 153, 0, 0.25);
  transform: translateY(-1px);
}

.lead-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
}

.lead-card-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.3;
}

.lead-card-vehicle {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 10px;
}

.lead-card-contacts {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-bottom: 10px;
}

.lead-card-contact-link {
  font-size: 13px;
  color: rgba(255, 153, 0, 0.85);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: color 0.15s;
}

.lead-card-contact-link:hover {
  color: var(--accent);
}

.lead-card-service {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 8px;
}

.lead-card-meta {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.3);
  margin-bottom: 14px;
}

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

.lead-return-badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  background: rgba(99, 102, 241, 0.15);
  color: #818cf8;
  border-radius: 6px;
  padding: 2px 7px;
  white-space: nowrap;
}
