/* CablingQuote 0.9.47-beta. Navy and orange from the wordmark sheet. */

:root,
[data-theme="light"] {
  --cq-navy: #0F1B3D;
  --cq-orange: #F26A1B;
  --navy: #143c68;
  --navy-mid: #1b4f86;
  --accent: #8a4e00;
  --accent-dark: #6e3e00;
  --bg: #f3f4f6;
  --surface: #ffffff;
  --panel: #ffffff;
  --surface-2: #f3f4f6;
  --surface-3: #e6e8ec;
  --border: #d5d8de;
  --border-soft: #e6e8ec;
  --text: #1c1f24;
  --muted: #4e5966;
  --warn-bg: #fbf6ee;
  --warn-border: #8a4e00;
  --warn-text: #6e3e00;
  --cq-primary: #1b4f86;
  --cq-primary-dark: #143c68;
  --cq-amber: #8a4e00;
}

[data-theme="dark"] {
  --navy: #e8edf2;
  --navy-mid: #f0c48a;
  --accent: #f0c48a;
  --accent-dark: #f0c48a;
  --bg: #12161c;
  --surface: #1a2028;
  --panel: #1a2028;
  --surface-2: #222a34;
  --surface-3: #2a3440;
  --border: #3a4553;
  --border-soft: #2a3440;
  --text: #e8edf2;
  --muted: #c5d0dc;
  --warn-bg: #2a2116;
  --warn-border: #f0c48a;
  --warn-text: #f0c48a;
  --cq-primary: #1b4f86;
  --cq-primary-dark: #143c68;
  --cq-amber: #f0c48a;
}

@media print {
  :root,
  [data-theme="dark"],
  [data-theme="light"] {
    --accent: #8a4e00;
    --accent-dark: #6e3e00;
    --warn-border: #8a4e00;
    --warn-text: #6e3e00;
  }

  .print-product-name,
  .print-eyebrow,
  .print-cover-kicker {
    color: #1b4f86 !important;
  }

  .print-callout {
    border-left-color: #1b4f86 !important;
  }

  .print-header {
    border-bottom-color: #143c68 !important;
  }
}

.tab.active,
.btn-primary,
.btn-send,
.settings-segment-btn.active {
  background: #1b4f86;
  color: #ffffff;
  border-color: #143c68;
}

.btn-primary:hover,
.btn-send:hover,
.tab.active:hover {
  background: #143c68;
  color: #ffffff;
}

.btn-send {
  box-shadow: none;
}

.chip,
.mixed-role-tab {
  background: #e6e8ec;
  color: #1c1f24;
  border: 2px solid #d5d8de;
  box-shadow: none;
}

[data-theme="dark"] .chip,
[data-theme="dark"] .mixed-role-tab {
  background: #2a3440;
  color: #e8edf2;
  border-color: #3a4553;
}

.chip:hover:not(.active):not(:disabled),
.mixed-role-tab:hover:not(.active) {
  background: #e6e8ec;
  color: #1c1f24;
  border-color: #8b939e;
}

[data-theme="dark"] .chip:hover:not(.active):not(:disabled),
[data-theme="dark"] .mixed-role-tab:hover:not(.active) {
  background: #2a3440;
  color: #e8edf2;
  border-color: #6b7785;
}

.chip.active,
.mixed-role-tab.active {
  background: #e6e8ec;
  color: #1c1f24;
  border-color: #F26A1B;
  box-shadow: none;
}

[data-theme="dark"] .chip.active,
[data-theme="dark"] .mixed-role-tab.active {
  background: #2a3440;
  color: #e8edf2;
  border-color: #F26A1B;
}

.chip.active::after,
.mixed-role-tab.active::after {
  content: "✓";
  margin-left: 0.35rem;
  font-weight: 800;
}

.mixed-stock-card {
  background: #e6e8ec;
  color: #1c1f24;
  border: 2px solid #d5d8de;
  box-shadow: none;
}

[data-theme="dark"] .mixed-stock-card {
  background: #2a3440;
  color: #e8edf2;
  border-color: #3a4553;
}

.mixed-stock-card.active {
  background: #e6e8ec;
  color: #1c1f24;
  border: 2px solid #F26A1B;
  box-shadow: none;
}

[data-theme="dark"] .mixed-stock-card.active {
  background: #2a3440;
  color: #e8edf2;
  border-color: #F26A1B;
}

.mixed-stock-card.active::after {
  content: "✓";
  margin-left: auto;
  font-weight: 800;
}

.grok-assist-row {
  display: none !important;
}

.add-drop-cable-picks > .field,
.add-drop-card > .option-group,
.basic-net-sheet > .field,
.basic-net-fiber,
.basic-net-fiber > .field,
.add-fiber-run-fields > .field,
.add-fusion-fields > .field,
.add-conveyance-run-fields > .field,
.add-testing-fields > .field,
.mixed-builder {
  margin: 0 0 0.9rem;
  padding: 0.85rem 1rem 1rem;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
}

.add-drop-cable-picks > .field > span,
.add-drop-card > .option-group > span,
.basic-net-sheet > .field > span,
.basic-net-fiber > .field > span,
.add-fiber-run-fields > .field > span,
.add-fusion-fields > .field > span,
.add-conveyance-run-fields > .field > span,
.add-testing-fields > .field > span,
.mixed-builder-header strong {
  font-weight: 800;
  letter-spacing: 0.04em;
}

.add-drop-fields .qty-input-wrap,
.add-drop-card > .option-group .qty-input-wrap,
.basic-net-grid .qty-input-wrap,
.basic-net-sheet .qty-input-wrap,
.add-fiber-run-fields .qty-input-wrap,
.add-conveyance-run-fields .qty-input-wrap,
.add-fusion-fields .qty-input-wrap,
.add-testing-fields .qty-input-wrap,
.add-quick-repair-fields .qty-input-wrap {
  flex-direction: column;
  align-items: stretch;
  gap: 0.35rem;
  width: 100%;
  max-width: 16rem;
}

.add-drop-fields .qty-input-wrap > .qty-step-btn[aria-label="Increase quantity"],
.add-drop-card > .option-group .qty-input-wrap > .qty-step-btn[aria-label="Increase quantity"],
.basic-net-grid .qty-input-wrap > .qty-step-btn[aria-label="Increase quantity"],
.basic-net-sheet .qty-input-wrap > .qty-step-btn[aria-label="Increase quantity"],
.add-fiber-run-fields .qty-input-wrap > .qty-step-btn[aria-label="Increase quantity"],
.add-conveyance-run-fields .qty-input-wrap > .qty-step-btn[aria-label="Increase quantity"],
.add-fusion-fields .qty-input-wrap > .qty-step-btn[aria-label="Increase quantity"],
.add-testing-fields .qty-input-wrap > .qty-step-btn[aria-label="Increase quantity"],
.add-quick-repair-fields .qty-input-wrap > .qty-step-btn[aria-label="Increase quantity"] {
  order: 1;
}

.add-drop-fields .qty-input-wrap > .qty-input,
.add-drop-card > .option-group .qty-input-wrap > .qty-input,
.basic-net-grid .qty-input-wrap > .qty-input,
.basic-net-sheet .qty-input-wrap > .qty-input,
.add-fiber-run-fields .qty-input-wrap > .qty-input,
.add-conveyance-run-fields .qty-input-wrap > .qty-input,
.add-fusion-fields .qty-input-wrap > .qty-input,
.add-testing-fields .qty-input-wrap > .qty-input,
.add-quick-repair-fields .qty-input-wrap > .qty-input {
  order: 2;
  min-height: 48px;
}

.add-drop-fields .qty-input-wrap > .qty-step-btn[aria-label="Decrease quantity"],
.add-drop-card > .option-group .qty-input-wrap > .qty-step-btn[aria-label="Decrease quantity"],
.basic-net-grid .qty-input-wrap > .qty-step-btn[aria-label="Decrease quantity"],
.basic-net-sheet .qty-input-wrap > .qty-step-btn[aria-label="Decrease quantity"],
.add-fiber-run-fields .qty-input-wrap > .qty-step-btn[aria-label="Decrease quantity"],
.add-conveyance-run-fields .qty-input-wrap > .qty-step-btn[aria-label="Decrease quantity"],
.add-fusion-fields .qty-input-wrap > .qty-step-btn[aria-label="Decrease quantity"],
.add-testing-fields .qty-input-wrap > .qty-step-btn[aria-label="Decrease quantity"],
.add-quick-repair-fields .qty-input-wrap > .qty-step-btn[aria-label="Decrease quantity"] {
  order: 3;
}

.add-drop-fields .qty-step-btn,
.add-drop-card > .option-group .qty-step-btn,
.basic-net-grid .qty-step-btn,
.basic-net-sheet .qty-step-btn,
.add-fiber-run-fields .qty-step-btn,
.add-conveyance-run-fields .qty-step-btn,
.add-fusion-fields .qty-step-btn,
.add-testing-fields .qty-step-btn,
.add-quick-repair-fields .qty-step-btn {
  min-width: 48px;
  min-height: 48px;
  border: 1px solid var(--border) !important;
  border-radius: 10px !important;
}

a {
  text-underline-offset: 2px;
}

.cq-chooser {
  margin: 0.75rem 0 1rem;
}

.cq-chooser-kicker {
  margin: 0 0 0.2rem;
  color: #8a4e00;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

[data-theme="dark"] .cq-chooser-kicker {
  color: #f0c48a;
}

.cq-chooser-title {
  margin: 0 0 0.35rem;
  color: var(--text);
  font-size: 1.35rem;
  line-height: 1.25;
}

.cq-chooser-copy {
  margin: 0 0 0.85rem;
  color: var(--muted);
  max-width: 40rem;
}

.cq-chooser-links {
  display: grid;
  gap: 0.75rem;
}

@media (min-width: 800px) {
  .cq-chooser-links {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.cq-chooser-links a {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.2rem;
  min-height: 48px;
  padding: 0.9rem 1rem;
  border: 1px solid var(--border);
  border-left: 4px solid #8a4e00;
  border-radius: 12px;
  background: var(--surface);
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
}

.cq-chooser-links a small {
  color: var(--muted);
  font-weight: 500;
  font-size: 0.92rem;
}

.cq-chooser-links a:hover {
  border-color: #1b4f86;
  border-left-color: #8a4e00;
}

.start-quote-cards-7 > [data-cq-market="1"] {
  display: none !important;
}

.cq-other-tools {
  margin: 0.4rem 0 0;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.start-quote-card,
.basic-net-sheet .chip,
.cq-finalize input,
.cq-wizard-back,
.cq-wizard-next {
  min-height: 48px;
}

[data-cq-hide="1"] {
  display: none !important;
}

.basic-net-sheet {
  padding-bottom: 8.5rem !important;
}

/* The basic-network sheet covers the app. Send stays above it, and the
   send preview stays above that lifted button. */
body.cq-net-open .send-quote-block {
  position: relative;
  z-index: 160;
}

body.cq-net-open .mobile-sticky-bar {
  z-index: 160;
}

body.cq-net-open .send-preview-overlay {
  z-index: 170;
}

body.cq-wizard-done .cq-wizard-host {
  top: 0;
  bottom: auto;
  padding-top: calc(0.75rem + env(safe-area-inset-top));
  padding-bottom: 0;
}

body.cq-wizard-done .cq-wizard-panel {
  border-radius: 0 0 14px 14px;
  box-shadow: 0 8px 28px rgba(18, 22, 28, 0.18);
}

.cq-wizard-host {
  position: fixed;
  z-index: 140;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  justify-content: center;
  padding: 0 0.75rem calc(0.75rem + env(safe-area-inset-bottom));
  pointer-events: none;
}

.cq-wizard-host[hidden] {
  display: none !important;
}

.cq-wizard-panel {
  pointer-events: auto;
  width: min(560px, 100%);
  padding: 0.75rem 0.85rem 0.85rem;
  border: 1px solid var(--border);
  border-radius: 14px 14px 0 0;
  background: var(--surface);
  box-shadow: 0 -8px 28px rgba(18, 22, 28, 0.18);
}

.cq-wizard-progress-text {
  margin: 0 0 0.4rem;
  color: var(--text);
  font-weight: 700;
}

.cq-wizard-progress {
  height: 8px;
  margin-bottom: 0.75rem;
  border-radius: 999px;
  background: #e6e8ec;
  overflow: hidden;
}

[data-theme="dark"] .cq-wizard-progress {
  background: #2a3440;
}

.cq-wizard-progress-fill {
  display: block;
  height: 100%;
  background: #1b4f86;
}

.cq-wizard-nav {
  display: flex;
  gap: 0.6rem;
}

.cq-wizard-back,
.cq-wizard-next {
  flex: 1;
  min-width: 48px;
  border-radius: 10px;
  font-size: 1.05rem;
  font-weight: 700;
  cursor: pointer;
}

.cq-wizard-back {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
}

.cq-wizard-next {
  background: #1b4f86;
  color: #ffffff;
  border: 1px solid #143c68;
}

.cq-wizard-next:hover {
  background: #143c68;
}

body.cq-wizard-on .start-quote-back {
  display: none;
}

.cq-finalize {
  margin: 0 0 1rem;
  padding: 0.9rem 1rem 1rem;
  border: 1px solid var(--border);
  border-left: 4px solid #8a4e00;
  border-radius: 12px;
  background: var(--surface);
}

.cq-finalize h3 {
  margin: 0 0 0.25rem;
  font-size: 1.15rem;
}

.cq-finalize-help,
.cq-finalize-hint {
  display: block;
  margin: 0 0 0.75rem;
  color: var(--muted);
  font-weight: 500;
}

.cq-finalize-field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin: 0 0 0.85rem;
  color: var(--text);
  font-weight: 700;
}

.cq-finalize input {
  width: 100%;
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--input-bg, #fff);
  color: var(--text);
  font: inherit;
  font-weight: 500;
}

.cq-credential-lines {
  margin-top: 0.35rem;
}

.cq-credential-line {
  margin: 0.12rem 0 0;
  color: #1c1f24;
  font-size: 0.84rem;
}

.cq-credential-label {
  font-weight: 700;
}

.cq-wizard-back:focus-visible,
.cq-wizard-next:focus-visible,
.cq-chooser-links a:focus-visible,
.cq-finalize input:focus-visible,
.start-quote-card:focus-visible {
  outline: 3px solid #1b4f86;
  outline-offset: 2px;
}

[data-theme="dark"] .cq-wizard-back:focus-visible,
[data-theme="dark"] .cq-wizard-next:focus-visible,
[data-theme="dark"] .cq-chooser-links a:focus-visible,
[data-theme="dark"] .cq-finalize input:focus-visible {
  outline-color: #f0c48a;
}

.app-header {
  background: #0F1B3D;
  background-image: none;
}

.brand-wordmark-img {
  display: block;
  height: 36px;
  width: auto;
  max-width: 220px;
  background: #fff;
  border-radius: 8px;
  padding: 4px 8px;
}

.cq-empty-art {
  display: block;
  width: 88px;
  height: auto;
  margin: 0 auto 0.75rem;
}

.tab.active {
  background: var(--surface, #fff);
  color: var(--text, #1c1f24);
  border: 2px solid #F26A1B;
  box-shadow: none;
}

.quote-list-tab.active {
  border: 2px solid #F26A1B;
  box-shadow: none;
}

.print-powered {
  margin: 0.4rem 0 0;
  font-size: 0.75rem;
  color: #5a6a7a;
  text-align: center;
}
