:root {
  --rfq-accent: #37c964;
  --rfq-accent-soft: rgba(55, 201, 100, 0.15);
  --rfq-panel: #151f26;
  --rfq-border: #2a343c;
  --rfq-muted: rgba(222, 226, 230, 0.7);
}

body {
  background: radial-gradient(circle at 20% 20%, #1a252b 0%, #11191e 55%, #0b1115 100%);
}

.rfq-main {
  padding: 0 0 4rem;
}

.hero {
  padding: 2.5rem 0 1.5rem;
}

.hero-card {
  background: var(--rfq-panel);
  border: 1px solid var(--rfq-border);
  border-radius: 18px;
  padding: 2rem;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
}

.hero-title {
  font-weight: 700;
  letter-spacing: 0.2px;
  color: #f5f8fa;
}

.hero-lead {
  color: #c9d6df;
}

.product-image {
  background: radial-gradient(circle, rgba(55, 201, 100, 0.2) 0%, rgba(17, 25, 30, 0) 60%);
  border-radius: 20px;
  padding: 1.5rem;
  display: inline-block;
  overflow: visible;
}

.product-image img {
  max-width: 320px;
  width: 100%;
}

.price-card {
  border: 1px solid var(--rfq-border);
  border-radius: 16px;
  background: #0f161b;
  padding: 1.5rem;
}

.price-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.4rem 0;
  color: var(--rfq-muted);
}

.price-row strong {
  color: #ffffff;
}

.total-row {
  border-top: 1px solid var(--rfq-border);
  margin-top: 0.5rem;
  padding-top: 0.75rem;
  font-size: 1.1rem;
}

.section-card {
  background: var(--rfq-panel);
  border: 1px solid var(--rfq-border);
  border-radius: 16px;
  padding: 1.5rem;
}

.rfq-panel-subtle {
  background: #0f161b;
  border: 1px solid var(--rfq-border);
}

.form-label {
  font-weight: 600;
}

.form-control,
.form-select {
  background: #0d1419;
  border-color: var(--rfq-border);
  color: #e6edf3;
}

.form-control::placeholder {
  color: rgba(230, 237, 243, 0.5);
}

.btn-rfq {
  background: var(--rfq-accent);
  border: none;
  color: #06120a;
  font-weight: 700;
}

.btn-rfq:hover {
  background: #2ca150;
  color: #06120a;
}

/* Active dashboard filter: keep the outline-light white border, only fill the
   background with the accent colour. */
.btn-outline-light.filter-active,
.btn-outline-light.filter-active:hover,
.btn-outline-light.filter-active:focus,
.btn-outline-light.filter-active:active {
  background-color: var(--rfq-accent);
  color: #06120a;
  font-weight: 700;
}

/* Operator workflow cards: one per document/stage. The active stage is accented;
   stages that aren't reachable yet are dimmed. The "send to customer" action of
   each card lives in a small, visually-distinct danger box. */
.workflow-card {
  border: 1px solid var(--rfq-border);
  border-radius: 14px;
  padding: 1rem 1.25rem;
  height: 100%;
  background: rgba(255, 255, 255, 0.02);
}
.workflow-card.is-active {
  border-color: var(--rfq-accent);
  box-shadow: inset 0 0 0 1px var(--rfq-accent);
}
.workflow-card.is-muted {
  opacity: 0.55;
}
.workflow-step-badge {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #06120a;
  background: var(--rfq-accent);
  border-radius: 999px;
  padding: 0.1rem 0.6rem;
}
.workflow-send {
  border: 1px solid rgba(220, 53, 69, 0.45);
  background: rgba(220, 53, 69, 0.07);
  border-radius: 10px;
  padding: 0.75rem 0.85rem;
  margin-top: 1rem;
}
.workflow-send-label {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #f1a7ad;
}

/* Review-email-before-sending modal */
.email-modal {
  position: fixed;
  inset: 0;
  z-index: 1050;
  display: flex;
  align-items: center;
  justify-content: center;
}
.email-modal[hidden] { display: none; }
.email-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
}
.email-modal__dialog {
  position: relative;
  background: #0d1419;
  border: 1px solid var(--rfq-border);
  border-radius: 14px;
  padding: 1.5rem;
  width: min(680px, 92vw);
  max-height: 88vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}
.email-modal__dialog--wide { width: min(960px, 95vw); }
.email-modal__text--code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.82rem;
  white-space: pre;
  overflow-wrap: normal;
  min-height: 360px;
}
.email-modal__close {
  position: absolute;
  top: 0.5rem;
  right: 0.75rem;
  background: none;
  border: none;
  color: #e6edf3;
  font-size: 1.7rem;
  line-height: 1;
  cursor: pointer;
}
.email-modal__meta {
  width: 100%;
  border-collapse: collapse;
}
.email-modal__meta th {
  text-align: left;
  color: rgba(230, 237, 243, 0.5);
  font-weight: 600;
  width: 70px;
  padding: 0.2rem 0.6rem 0.2rem 0;
  vertical-align: top;
}
.email-modal__meta td { padding: 0.2rem 0; word-break: break-word; }
.email-modal__label {
  text-transform: uppercase;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  color: rgba(230, 237, 243, 0.5);
  margin: 0.9rem 0 0.3rem;
}
.email-modal__text {
  background: #0a0f13;
  border: 1px solid var(--rfq-border);
  border-radius: 8px;
  padding: 0.75rem;
  white-space: pre-wrap;
  word-break: break-word;
  color: #e6edf3;
  font-family: inherit;
  font-size: 0.9rem;
  margin: 0;
  width: 100%;
  min-height: 150px;
  resize: vertical;
  box-sizing: border-box;
}
.email-modal__text:focus {
  outline: none;
  border-color: var(--rfq-accent);
}
.email-modal__subject {
  background: #0a0f13;
  border: 1px solid var(--rfq-border);
  border-radius: 8px;
  padding: 0.55rem 0.75rem;
  color: #e6edf3;
  font-family: inherit;
  font-size: 0.9rem;
  width: 100%;
  box-sizing: border-box;
}
.email-modal__subject:focus {
  outline: none;
  border-color: var(--rfq-accent);
}
.email-modal__attachments { list-style: none; padding: 0; margin: 0; }
.email-modal__attachments li { padding: 0.2rem 0; }
.email-modal__actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
  margin-top: 1.25rem;
}

/* DHL Online-Frankierung per-field copy helper (in the shipment popup) */
.dhl-field {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.4rem;
}
.dhl-field-label {
  flex: none;
  width: 120px;
  color: rgba(230, 237, 243, 0.55);
}
.dhl-field-value {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  flex: 1 1 auto;
  text-align: left;
  background: #0a0f13;
  border: 1px solid var(--rfq-border);
  border-radius: 8px;
  color: #e6edf3;
  padding: 0.4rem 0.7rem;
  cursor: pointer;
}
.dhl-field-value:hover { border-color: var(--rfq-accent); }
.dhl-field-value.dhl-copied {
  border-color: var(--rfq-accent);
  background: rgba(55, 201, 100, 0.12);
}
.dhl-copy-icon { flex: none; opacity: 0.6; }
.dhl-field-value:hover .dhl-copy-icon { opacity: 1; }
.dhl-field-text { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.badge-soft {
  background: var(--rfq-accent-soft);
  color: #9fe5b5;
}

.eu-info {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  background: #0a0f13;
  border: 1px solid var(--rfq-border);
  border-radius: 14px;
  color: #f5f8fa;
}

.eu-info p {
  margin: 0;
}

.eu-flag {
  flex: 0 0 auto;
  width: 48px;
  height: 32px;
  border-radius: 4px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12);
}

.table td,
.table th {
  vertical-align: middle;
}

.rfq-table {
  color: #e6edf3;
  border-color: var(--rfq-border);
}

.rfq-table thead th {
  color: var(--rfq-muted);
}

.text-secondary {
  color: #d6dee6 !important;
}

.rfq-table tbody tr:hover {
  background-color: rgba(55, 201, 100, 0.08);
}

.status-badge {
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 0.35em 0.65em;
  border-radius: 999px;
  border: 1px solid transparent;
}

.status-pending {
  background: rgba(255, 193, 7, 0.2);
  color: #ffd37a;
  border-color: rgba(255, 193, 7, 0.4);
}

.status-quoted {
  background: rgba(59, 130, 246, 0.18);
  color: #9ac0ff;
  border-color: rgba(59, 130, 246, 0.35);
}

.status-approved {
  background: rgba(55, 201, 100, 0.2);
  color: #a8efbf;
  border-color: rgba(55, 201, 100, 0.35);
}

.status-shipped {
  background: rgba(14, 165, 233, 0.2);
  color: #9edbff;
  border-color: rgba(14, 165, 233, 0.35);
}

.status-invoiced {
  background: rgba(168, 85, 247, 0.2);
  color: #d6b2ff;
  border-color: rgba(168, 85, 247, 0.35);
}

.status-paid {
  background: rgba(34, 197, 94, 0.25);
  color: #b6f2cd;
  border-color: rgba(34, 197, 94, 0.4);
}

.status-rejected {
  background: rgba(239, 68, 68, 0.2);
  color: #ffb3b3;
  border-color: rgba(239, 68, 68, 0.35);
}

.billing-required-marker {
  color: #f0b25c;
  font-weight: 700;
}

.quantity-group {
  width: auto;
}

.quantity-input {
  max-width: 90px;
}

.quantity-btn {
  width: 48px;
  background: #0d1419;
  border: 1px solid var(--rfq-border);
  color: #e6edf3;
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1;
}

.quantity-btn:is(:hover, :active, :focus-visible) {
  background: var(--rfq-accent);
  border-color: var(--rfq-accent);
  color: #ffffff;
}

.stock-note {
  padding: 0.85rem 1rem;
  background: rgba(255, 193, 7, 0.1);
  border: 1px solid rgba(255, 193, 7, 0.35);
  border-radius: 12px;
  color: #ffd37a;
}

/* Core Kit product item */
.kit-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.9rem 1rem;
  background: var(--rfq-panel);
  border: 1px solid var(--rfq-border);
  border-radius: 14px;
}

.kit-thumb {
  width: 112px;
  height: 84px;
  flex-shrink: 0;
  object-fit: contain;
  padding: 4px;
  border-radius: 10px;
  border: 1px solid var(--rfq-border);
  background: #0d1419;
}

/* Clickable kit thumbnail (opens the product-image carousel) */
.kit-thumb-btn {
  position: relative;
  flex-shrink: 0;
  padding: 0;
  border: none;
  background: none;
  line-height: 0;
  border-radius: 10px;
  cursor: pointer;
}

.kit-thumb-btn .kit-thumb {
  transition: border-color 0.12s ease;
}

.kit-thumb-btn:is(:hover, :focus-visible) .kit-thumb {
  border-color: var(--rfq-accent);
}

.kit-thumb-btn:focus-visible {
  outline: 2px solid var(--rfq-accent);
  outline-offset: 2px;
}

.kit-thumb-zoom {
  position: absolute;
  right: 6px;
  bottom: 6px;
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--rfq-accent);
  color: #fff;
  pointer-events: none;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.45);
}

.kit-thumb-btn:is(:hover, :focus-visible) .kit-thumb-zoom {
  background: #2ca150;
}

/* Product-image carousel popup */
.kit-gallery {
  position: fixed;
  inset: 0;
  z-index: 1080;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.kit-gallery[hidden] { display: none; }

.kit-gallery__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.78);
}

.kit-gallery__dialog {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  width: min(820px, 95vw);
  max-height: 92vh;
  padding: 1.25rem;
  background: #0d1419;
  border: 1px solid var(--rfq-border);
  border-radius: 14px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.kit-gallery__close {
  position: absolute;
  top: 0.6rem;
  right: 0.6rem;
  width: 34px;
  height: 34px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--rfq-border);
  border-radius: 50%;
  background: rgba(13, 20, 25, 0.85);
  color: #e6edf3;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  z-index: 2;
}

.kit-gallery__close:is(:hover, :focus-visible) {
  border-color: var(--rfq-accent);
  color: var(--rfq-accent);
}

.kit-gallery__stage {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.kit-gallery__image {
  max-width: 100%;
  max-height: 72vh;
  object-fit: contain;
  border-radius: 10px;
  background: #fff;
}

.kit-gallery__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--rfq-border);
  border-radius: 50%;
  background: rgba(13, 20, 25, 0.85);
  color: #e6edf3;
  cursor: pointer;
}

.kit-gallery__nav:is(:hover, :focus-visible) {
  border-color: var(--rfq-accent);
  color: var(--rfq-accent);
}

.kit-gallery__nav--prev { left: 0.5rem; }
.kit-gallery__nav--next { right: 0.5rem; }

.kit-gallery__caption {
  margin: 0;
  text-align: center;
  color: #e6edf3;
  font-size: 0.9rem;
}

.kit-gallery__dots {
  display: flex;
  justify-content: center;
  gap: 0.4rem;
}

.kit-gallery__dot {
  width: 9px;
  height: 9px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: var(--rfq-border);
  cursor: pointer;
}

.kit-gallery__dot.is-active { background: var(--rfq-accent); }

body.kit-gallery-open { overflow: hidden; }

.kit-body {
  flex: 1 1 auto;
  min-width: 0;
}

.kit-heading {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.kit-title {
  font-weight: 700;
  color: #e6edf3;
}

.kit-info {
  position: relative;
  display: inline-flex;
}

.kit-info-btn {
  width: 18px;
  height: 18px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: var(--rfq-accent);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  font-style: italic;
  line-height: 18px;
  text-align: center;
  cursor: pointer;
}

.kit-info-btn:is(:hover, :focus-visible) {
  background: #2ca150;
}

.kit-popover {
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  width: 230px;
  padding: 0.7rem 0.85rem;
  background: #0d1419;
  border: 1px solid var(--rfq-accent);
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
  color: #e6edf3;
  font-size: 0.85rem;
  z-index: 20;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.12s ease;
}

.kit-popover strong {
  display: block;
  margin-bottom: 0.35rem;
}

.kit-popover ul {
  margin: 0;
  padding-left: 1.1rem;
}

.kit-popover li {
  margin-bottom: 0.15rem;
}

.kit-info:hover .kit-popover,
.kit-info-btn:focus + .kit-popover {
  opacity: 1;
  visibility: visible;
}

.kit-price {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  text-align: right;
  line-height: 1.15;
}

.kit-price-amount {
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--rfq-accent);
  white-space: nowrap;
}

.kit-price-note {
  font-size: 0.7rem;
  color: var(--rfq-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.kit-qty {
  width: auto;
  flex-shrink: 0;
}

@media (max-width: 576px) {
  .kit-item {
    flex-wrap: wrap;
  }

  .kit-price {
    align-items: flex-start;
    text-align: left;
  }

  .kit-qty {
    width: 100%;
  }

  .kit-popover {
    left: 0;
    transform: none;
  }
}

@media (max-width: 576px) {
  .hero .badge-soft,
  .hero-title,
  .hero-lead {
    padding-inline: 0.5rem;
  }

  .hero .badge-soft {
    display: inline-block;
    margin-inline-start: 0.5rem;
  }
}

input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

input[type="number"] {
  -moz-appearance: textfield;
}

/* Customer order-progress timeline */
.order-timeline {
  margin: 0;
  padding: 0;
}

.timeline-item {
  position: relative;
  padding: 0 0 1.4rem 2.1rem;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: 0.6rem;
  top: 1.5rem;
  bottom: 0.1rem;
  width: 2px;
  background: var(--rfq-border);
}

.timeline-item:last-child {
  padding-bottom: 0;
}

.timeline-item:last-child::before {
  display: none;
}

.timeline-marker {
  position: absolute;
  left: 0;
  top: 0.15rem;
  width: 1.3rem;
  height: 1.3rem;
  border-radius: 50%;
  border: 2px solid var(--rfq-border);
  background: #0f161b;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
}

.timeline-done > .timeline-marker {
  border-color: var(--rfq-accent);
  background: var(--rfq-accent-soft);
}

.timeline-done > .timeline-marker::after {
  content: "\2713";
  color: var(--rfq-accent);
}

.timeline-current > .timeline-marker {
  border-color: var(--rfq-accent);
  box-shadow: 0 0 0 4px var(--rfq-accent-soft);
}

.timeline-warn > .timeline-marker {
  border-color: #ffc107;
  background: rgba(255, 193, 7, 0.12);
  box-shadow: 0 0 0 4px rgba(255, 193, 7, 0.12);
}

.timeline-warn > .timeline-marker::after {
  content: "!";
  color: #ffd75e;
  font-weight: 700;
}

.timeline-bad > .timeline-marker {
  border-color: #e5484d;
  background: rgba(229, 72, 77, 0.15);
}

.timeline-bad > .timeline-marker::after {
  content: "\2715";
  color: #ff8b8b;
}

.timeline-label {
  color: #f5f8fa;
  font-weight: 600;
}

.timeline-upcoming .timeline-label {
  color: var(--rfq-muted);
  font-weight: 500;
}

.timeline-warn .timeline-label {
  color: #ffd75e;
}

.timeline-bad .timeline-label {
  color: #ff8b8b;
}

.timeline-date {
  color: var(--rfq-muted);
  font-size: 0.85rem;
}

.timeline-desc {
  color: var(--rfq-muted);
  font-size: 0.9rem;
  margin-top: 0.15rem;
}

/* Paid / unpaid banner in the pricing summary */
.payment-banner {
  border-radius: 10px;
  padding: 0.6rem 0.9rem;
  font-weight: 600;
}

.payment-banner-ok {
  background: var(--rfq-accent-soft);
  border: 1px solid rgba(55, 201, 100, 0.4);
  color: var(--rfq-accent);
}

.payment-banner-warn {
  background: rgba(255, 193, 7, 0.12);
  border: 1px solid rgba(255, 193, 7, 0.35);
  color: #ffd75e;
}

.payment-banner-muted {
  background: rgba(222, 226, 230, 0.08);
  border: 1px solid var(--rfq-border);
  color: var(--rfq-muted);
}

/* Quote Response call-to-action panel: same highlighting as the operator's
   "current step" workflow card (accent border + inset ring, neutral bg). */
.quote-response-panel {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--rfq-accent);
  box-shadow: inset 0 0 0 1px var(--rfq-accent);
}
