/* Durango Smart Fleet — Unified Chicago Sunset-Dusk Glass Components */

/* 1. Live Chicago Storm Readiness & Salt Stock Ticker */
.sf-storm-ticker {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 18px;
  padding: 13px 18px;
  margin: 0 auto 18px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(17, 24, 39, 0.88) 0%, rgba(28, 35, 52, 0.84) 100%);
  border: 1px solid rgba(245, 185, 66, 0.24);
  backdrop-filter: blur(18px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.34);
  color: #f8fafc;
}
.sf-storm-ticker.is-storm {
  background: linear-gradient(135deg, rgba(66, 32, 6, 0.92) 0%, rgba(120, 53, 15, 0.82) 55%, rgba(20, 26, 38, 0.9) 100%);
  border-color: rgba(245, 185, 66, 0.65);
  box-shadow: 0 14px 36px rgba(230, 126, 34, 0.26);
}
.sf-storm-left {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1 1 320px;
  min-width: 0;
}
.sf-pulse-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #34d399;
  box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.7);
  animation: sfPulse 2.2s infinite;
  flex-shrink: 0;
}
.sf-storm-ticker.is-storm .sf-pulse-dot {
  background: #f5b942;
  box-shadow: 0 0 0 0 rgba(245, 185, 66, 0.8);
}
@keyframes sfPulse {
  0% { box-shadow: 0 0 0 0 rgba(245, 185, 66, 0.65); }
  70% { box-shadow: 0 0 0 10px rgba(245, 185, 66, 0); }
  100% { box-shadow: 0 0 0 0 rgba(245, 185, 66, 0); }
}
.sf-storm-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.sf-storm-headline {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #fde68a;
  text-transform: uppercase;
}
.sf-storm-meta {
  font-size: 0.84rem;
  color: #cbd5e1;
}
.sf-storm-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.sf-chip-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 13px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.08);
  color: #f8fafc;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}
.sf-chip-btn:hover {
  transform: translateY(-1px);
  border-color: #f5b942;
  background: rgba(245, 185, 66, 0.16);
}
.sf-chip-btn.gold {
  background: linear-gradient(135deg, #f5b942 0%, #e08d27 100%);
  color: #111827;
  border-color: transparent;
}

/* 2. Interactive Snow & Salt Estimator Band */
.sf-estimator-band {
  margin: 22px 0 28px;
  padding: 26px;
  border-radius: 22px;
  background:
    radial-gradient(ellipse 80% 70% at 100% 0%, rgba(245, 185, 66, 0.13), transparent 60%),
    linear-gradient(155deg, rgba(16, 22, 34, 0.92) 0%, rgba(22, 30, 46, 0.86) 100%);
  border: 1px solid rgba(245, 185, 66, 0.24);
  backdrop-filter: blur(20px);
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.36);
  color: #f8fafc;
}
.sf-est-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 20px;
}
.sf-est-kicker {
  display: block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.73rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  color: #f5b942;
  text-transform: uppercase;
  margin-bottom: 6px;
}
.sf-est-title {
  margin: 0;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: clamp(1.6rem, 3.2vw, 2.2rem);
  letter-spacing: 0.01em;
  line-height: 1.08;
}
.sf-est-sub {
  margin: 6px 0 0;
  font-size: 0.9rem;
  color: #94a3b8;
  max-width: 640px;
}
.sf-est-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
@media (min-width: 860px) {
  .sf-est-grid {
    grid-template-columns: 1.15fr 0.85fr;
    align-items: stretch;
  }
}
.sf-est-controls {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 20px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.sf-ctrl-label-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 8px;
}
.sf-ctrl-label {
  font-size: 0.83rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #cbd5e1;
}
.sf-ctrl-val {
  font-family: 'JetBrains Mono', monospace;
  font-size: 1rem;
  font-weight: 700;
  color: #f5b942;
}
.sf-range {
  width: 100%;
  accent-color: #f5b942;
  cursor: pointer;
}
.sf-preset-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}
.sf-pill-opt {
  padding: 7px 12px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.05);
  color: #e2e8f0;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}
.sf-pill-opt:hover {
  border-color: rgba(245, 185, 66, 0.55);
}
.sf-pill-opt.active {
  background: rgba(245, 185, 66, 0.2);
  border-color: #f5b942;
  color: #fef08a;
}
.sf-est-output {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 14px;
  padding: 20px;
  border-radius: 16px;
  background: linear-gradient(160deg, rgba(245, 185, 66, 0.1) 0%, rgba(15, 23, 42, 0.72) 100%);
  border: 1px solid rgba(245, 185, 66, 0.34);
}
.sf-out-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}
.sf-out-stat {
  padding: 12px 13px;
  border-radius: 12px;
  background: rgba(11, 15, 23, 0.58);
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.sf-out-stat.wide {
  grid-column: 1 / -1;
}
.sf-out-stat small {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #94a3b8;
  margin-bottom: 4px;
}
.sf-out-stat strong {
  display: block;
  font-size: 1.05rem;
  color: #f8fafc;
  line-height: 1.3;
}
.sf-out-stat strong.gold {
  color: #fde68a;
}
.sf-out-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.sf-out-actions .sf-chip-btn {
  flex: 1 1 160px;
  justify-content: center;
  padding: 11px 14px;
  border-radius: 12px;
  font-size: 0.86rem;
}
.sf-est-disclaimer {
  font-size: 0.76rem;
  color: #94a3b8;
  margin: 0;
}

/* 3. Self-Service Tekmetric Repair Tracker Visual Progress Stepper */
.sf-tek-banner {
  margin: 0 0 16px;
  padding: 14px 16px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(245, 185, 66, 0.12) 0%, rgba(15, 23, 42, 0.78) 100%);
  border: 1px solid rgba(245, 185, 66, 0.28);
}
.sf-tek-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}
.sf-tek-title {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #f5b942;
  text-transform: uppercase;
}
.sf-tek-live-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(52, 211, 153, 0.15);
  border: 1px solid rgba(52, 211, 153, 0.35);
  color: #6ee7b7;
}
.sf-bay-track {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 6px;
}
@media (max-width: 600px) {
  .sf-bay-track {
    grid-template-columns: 1fr;
  }
}
.sf-bay-node {
  position: relative;
  padding: 9px 8px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
  font-size: 0.73rem;
  color: #94a3b8;
  font-weight: 600;
}
.sf-bay-node .sf-bay-num {
  display: block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.66rem;
  opacity: 0.7;
  margin-bottom: 2px;
}
.sf-bay-node.done {
  background: rgba(52, 211, 153, 0.14);
  border-color: rgba(52, 211, 153, 0.4);
  color: #a7f3d0;
}
.sf-bay-node.active {
  background: linear-gradient(135deg, rgba(245, 185, 66, 0.28), rgba(230, 126, 34, 0.22));
  border-color: #f5b942;
  color: #fef08a;
  box-shadow: 0 0 18px rgba(245, 185, 66, 0.24);
}
.sf-tek-summary {
  margin-top: 10px;
  font-size: 0.82rem;
  color: #cbd5e1;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 6px 12px;
}

/* Hide redundant legacy step row inside WO card now that live 5-stage tracker sits above it */
#repair-tracker-results .wo-card .wo-stepper {
  display: none;
}

/* 4. Fleet Card QR Passport Full-Width Footer Strip */
.sf-qr-footer {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
}
.sf-qr-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  padding: 7px 12px;
  border-radius: 9px;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-decoration: none;
  color: #fde68a;
  background: rgba(245, 185, 66, 0.09);
  border: 1px solid rgba(245, 185, 66, 0.28);
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}
.sf-qr-pill:hover {
  background: rgba(245, 185, 66, 0.22);
  border-color: rgba(245, 185, 66, 0.55);
  transform: translateY(-1px);
  color: #ffffff;
}

/* 5. Live Hero Drag-and-Drop Layout Studio (?edit=1 only) */
body.sf-hero-edit-mode .sf-draggable {
  position: relative;
  cursor: grab !important;
  user-select: none;
  -webkit-user-select: none;
  touch-action: none;
  outline: 1.5px dashed rgba(245, 185, 66, 0.55);
  outline-offset: 6px;
  border-radius: 10px;
  transition: outline-color 0.15s ease;
}
body.sf-hero-edit-mode .sf-draggable:hover {
  outline-color: #f5b942;
}
body.sf-hero-edit-mode .sf-draggable.sf-dragging {
  cursor: grabbing !important;
  outline: 2px solid #f5b942;
  z-index: 40;
}
body.sf-hero-edit-mode .sf-draggable::before {
  content: attr(data-sf-drag-label);
  position: absolute;
  top: -24px;
  left: 0;
  padding: 2px 8px;
  border-radius: 6px;
  background: rgba(15, 20, 32, 0.92);
  border: 1px solid rgba(245, 185, 66, 0.55);
  color: #fde68a;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  pointer-events: none;
  white-space: nowrap;
  opacity: 0.92;
}
body.sf-hero-edit-mode.sf-guides-hidden .sf-draggable {
  outline-color: transparent !important;
}
body.sf-hero-edit-mode.sf-guides-hidden .sf-draggable::before {
  display: none;
}
.sf-edit-toolbar {
  position: fixed;
  top: 82px;
  right: 18px;
  z-index: 120;
  width: 268px;
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(13, 18, 28, 0.92);
  border: 1px solid rgba(245, 185, 66, 0.45);
  backdrop-filter: blur(18px);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.55);
  color: #f8fafc;
  font-family: 'Plus Jakarta Sans', sans-serif;
}
.sf-edit-toolbar h4 {
  margin: 0 0 4px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #f5b942;
}
.sf-edit-toolbar p {
  margin: 0 0 12px;
  font-size: 12px;
  color: #cbd5e1;
  line-height: 1.4;
}
.sf-edit-slider-row {
  margin-bottom: 12px;
}
.sf-edit-slider-row label {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  font-weight: 600;
  color: #e2e8f0;
  margin-bottom: 4px;
}
.sf-edit-slider-row input[type="range"] {
  width: 100%;
  accent-color: #f5b942;
}
.sf-edit-btns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.sf-edit-btns button {
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.07);
  color: #f8fafc;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}
.sf-edit-btns button:hover {
  border-color: #f5b942;
}
.sf-edit-btns button.primary {
  grid-column: 1 / -1;
  background: linear-gradient(135deg, #f5b942 0%, #e08d27 100%);
  color: #111827;
  border-color: transparent;
}
