/* Scoped NexWave sales-order → delivery demo (matches saved HTML mockup) */
body.nw-sod-modal-open {
  overflow: hidden;
}

.nw-sod {
  --nw-sod-bg: #edf2f4;
}

.dark .nw-sod {
  --nw-sod-bg: #edf2f4;
}

/* Mock app UI stays light when the marketing site uses dark mode (guide layer keeps its own palette) */
html.dark .nw-sod #nw-sod-shell.nw-mock-light,
html.dark .nw-sod .nw-mock-light#nw-sod-shell {
  color-scheme: light;
  background-color: #f4f6f8 !important;
}

html.dark .nw-sod #nw-sod-side {
  background-color: #fff !important;
  color: #1a1a1a;
}

html.dark .nw-sod #nw-sod-main,
html.dark .nw-sod #nw-sod-ttl,
html.dark .nw-sod #nw-sod-acts,
html.dark .nw-sod #nw-sod-md {
  color: #1a1a1a;
}

html.dark .nw-sod #nw-sod-main {
  background-color: #fff !important;
}

html.dark .nw-sod #nw-sod-shell [style*="background:#fff"],
html.dark .nw-sod #nw-sod-shell [style*="background: #fff"],
html.dark .nw-sod #nw-sod-shell [style*="background:#FFF"] {
  background-color: #fff !important;
}

html.dark .nw-sod #nw-sod-shell input:not([type="checkbox"]):not([type="radio"]),
html.dark .nw-sod #nw-sod-shell select,
html.dark .nw-sod #nw-sod-shell textarea,
html.dark .nw-sod #nw-sod-shell .nwi,
html.dark .nw-sod #nw-sod-shell .nws {
  background-color: #fff !important;
  color: #1a1a1a !important;
  border-color: #c5e5ec !important;
}

html.dark .nw-sod #nw-sod-shell .nwro {
  background-color: #f5f9fa !important;
  color: #555 !important;
  border-color: #e0edf0 !important;
}

html.dark .nw-sod #nw-sod-main,
html.dark .nw-sod #nw-sod-main * {
  transition-property: background-color, border-color, opacity, transform, box-shadow, filter !important;
}

.nw-sod .nwi,
.nw-sod .nws,
.nw-sod .nwro {
  box-sizing: border-box;
}

.nw-sod .nwi {
  width: 100%;
  border: 1px solid #c5e5ec;
  border-radius: 4px;
  padding: 5px 8px;
  font-size: 12px;
  background: #fff;
  color: #1a1a1a;
  outline: none;
  font-family: inherit;
}

.nw-sod .nwi:focus {
  border-color: #1ab8c8;
}

.nw-sod .nws {
  width: 100%;
  border: 1px solid #c5e5ec;
  border-radius: 4px;
  padding: 5px 8px;
  font-size: 12px;
  background: #fff;
  color: #1a1a1a;
  font-family: inherit;
}

.nw-sod .nwro {
  background: #f5f9fa;
  border: 1px solid #e0edf0;
  border-radius: 4px;
  padding: 5px 8px;
  font-size: 12px;
  color: #555;
  display: block;
}

/* Coach: step track with arrows */
.nw-sod-coach-track {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  gap: 0.25rem 0.35rem;
  row-gap: 0.5rem;
}

.nw-sod-coach-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  border-radius: 9999px;
  padding: 0.35rem 0.65rem;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  border: 1px solid rgba(6, 182, 212, 0.35);
  background: rgba(255, 255, 255, 0.75);
  color: #64748b;
  white-space: nowrap;
}

.dark .nw-sod-coach-pill {
  background: rgba(15, 23, 42, 0.85);
  color: #94a3b8;
  border-color: rgba(34, 211, 238, 0.25);
}

.nw-sod-coach-pill.is-upcoming {
  opacity: 0.55;
  border-style: dashed;
}

.nw-sod-coach-pill.is-active {
  border-color: #0891b2;
  background: linear-gradient(135deg, #ecfeff 0%, #cffafe 100%);
  color: #0e7490;
  box-shadow: 0 0 0 2px rgba(6, 182, 212, 0.25);
}

.dark .nw-sod-coach-pill.is-active {
  background: rgba(8, 145, 178, 0.25);
  color: #67e8f9;
  border-color: #22d3ee;
  box-shadow: 0 0 0 2px rgba(34, 211, 238, 0.15);
}

.nw-sod-coach-pill.is-done {
  border-color: rgba(34, 197, 94, 0.45);
  background: rgba(240, 253, 244, 0.95);
  color: #166534;
}

.dark .nw-sod-coach-pill.is-done {
  background: rgba(20, 83, 45, 0.35);
  color: #86efac;
  border-color: rgba(74, 222, 128, 0.4);
}

.nw-sod-coach-arrow {
  display: inline-flex;
  align-items: center;
  color: #0891b2;
  font-size: 0.85rem;
  font-weight: 700;
  padding: 0 0.1rem;
  user-select: none;
}

.dark .nw-sod-coach-arrow {
  color: #22d3ee;
}

/* In-mock guide overlay (dims only #nw-sod-shell; hole passes clicks through) */
.nw-sod-guide-layer {
  position: absolute;
  inset: 0;
  z-index: 85;
  pointer-events: none;
}

.nw-sod-dim {
  position: absolute;
  display: none;
  background: rgba(15, 23, 42, 0.34);
  z-index: 1;
  pointer-events: none;
}

.dark .nw-sod-dim {
  background: rgba(0, 0, 0, 0.42);
}

.nw-sod-guide-rim {
  position: absolute;
  display: none;
  border: 3px solid #22d3ee;
  border-radius: 10px;
  box-shadow:
    0 0 0 2px rgba(34, 211, 238, 0.45),
    0 0 24px rgba(34, 211, 238, 0.35);
  z-index: 2;
  pointer-events: none;
}

.nw-sod-guide-pointer {
  position: absolute;
  display: none;
  font-size: 2.25rem;
  line-height: 1;
  color: #67e8f9;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
  z-index: 3;
  pointer-events: none;
  transform: translateX(-50%);
}

.nw-sod-guide-card {
  position: absolute;
  max-width: 22rem;
  width: min(22rem, calc(100% - 1rem));
  padding: 1.1rem 1.25rem 1rem;
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid rgba(6, 182, 212, 0.35);
  box-shadow:
    0 12px 40px rgba(0, 0, 0, 0.35),
    0 0 0 1px rgba(255, 255, 255, 0.08) inset;
  z-index: 4;
  pointer-events: auto;
  text-align: left;
}

.dark .nw-sod-guide-card {
  background: rgba(15, 23, 42, 0.97);
  border-color: rgba(34, 211, 238, 0.35);
}

.nw-sod-guide-dismiss {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  width: 2rem;
  height: 2rem;
  border: none;
  border-radius: 0.5rem;
  background: transparent;
  color: #64748b;
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
}

.nw-sod-guide-dismiss:hover {
  background: rgba(6, 182, 212, 0.12);
  color: #0e7490;
}

.nw-sod-guide-kicker {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #0891b2;
  margin: 0 0 0.75rem;
  padding-right: 2rem;
}

.dark .nw-sod-guide-kicker {
  color: #67e8f9;
}

.nw-sod-guide-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 0.5rem;
  line-height: 1.3;
}

.dark .nw-sod-guide-title {
  color: #f8fafc;
}

.nw-sod-guide-body {
  font-size: 0.8125rem;
  color: #475569;
  line-height: 1.55;
  margin: 0 0 0.75rem;
}

.dark .nw-sod-guide-body {
  color: #cbd5e1;
}

.nw-sod-guide-next {
  font-size: 0.8125rem;
  line-height: 1.55;
  color: #0f172a;
  background: rgba(207, 250, 254, 0.65);
  border: 1px solid rgba(6, 182, 212, 0.4);
  border-radius: 0.65rem;
  padding: 0.65rem 0.75rem;
  margin: 0 0 0.5rem;
}

.dark .nw-sod-guide-next {
  color: #e2e8f0;
  background: rgba(8, 145, 178, 0.2);
  border-color: rgba(34, 211, 238, 0.35);
}

.nw-sod-guide-after {
  font-size: 0.75rem;
  color: #64748b;
  line-height: 1.5;
  margin: 0 0 0.5rem;
}

.dark .nw-sod-guide-after {
  color: #94a3b8;
}

.nw-sod-guide-foot {
  font-size: 0.7rem;
  font-weight: 600;
  color: #64748b;
  margin: 0;
}

.dark .nw-sod-guide-foot {
  color: #94a3b8;
}

.nw-sod-guide-next .nw-sod-next-label {
  display: block;
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #0e7490;
  margin-bottom: 0.35rem;
}

.dark .nw-sod-guide-next .nw-sod-next-label {
  color: #67e8f9;
}

/* Minimal guided overlay — lighter dim, numeric step arrows */
.nw-sod-guide-kicker,
.nw-sod-guide-title,
.nw-sod-guide-body,
.nw-sod-guide-next,
.nw-sod-guide-after,
.nw-sod-guide-foot {
  display: none !important;
}

.nw-sod-guide-card {
  max-width: none;
  width: auto;
  min-width: 0;
  padding: 0.35rem 0.55rem 0.35rem 0.45rem;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
}

.dark .nw-sod-guide-card {
  background: rgba(15, 23, 42, 0.92);
}

.nw-sod-guide-dismiss {
  position: static;
  width: 1.65rem;
  height: 1.65rem;
  margin-right: 0.15rem;
  flex-shrink: 0;
}

.nw-sod-guide-card {
  display: inline-flex;
  align-items: center;
  gap: 0.15rem;
}

.nw-sod-coach-track {
  justify-content: center;
  flex-wrap: nowrap;
  margin: 0 !important;
}

.nw-sod-coach-pill {
  min-width: 1.65rem;
  justify-content: center;
  padding: 0.3rem 0.45rem;
  font-size: 0.75rem;
}

.nw-sod-coach-arrow {
  font-size: 1rem;
  padding: 0 0.05rem;
}

.nw-sod-guide-pointer {
  font-size: 2.75rem;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.35));
}

.nw-sod-guide-rim {
  border-width: 2px;
  box-shadow:
    0 0 0 2px rgba(34, 211, 238, 0.35),
    0 0 14px rgba(34, 211, 238, 0.22);
}
