/* Generated by Trae Work */
/* YurevoTech RFQ admin styles */

/* Inherit design tokens from admin.css (served on the same host) */
:root {
  --rfq-primary: #165DFF;
  --rfq-primary-dark: #1149CC;
  --rfq-gold: #D4AF37;
  --rfq-bg: #FFFFFF;
  --rfq-bg-alt: #F8FAFC;
  --rfq-dark: #0F172A;
  --rfq-dark-2: #1E293B;
  --rfq-text: #1E293B;
  --rfq-muted: #64748B;
  --rfq-border: #E2E8F0;
  --rfq-danger: #DC2626;
  --rfq-success: #16A34A;
  --rfq-warning: #D97706;
  --rfq-radius: 8px;
  --rfq-radius-sm: 4px;
  --rfq-shadow: 0 4px 12px rgba(15, 23, 42, 0.08);
  --rfq-font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  height: 100%;
}

body {
  font-family: var(--rfq-font);
  font-size: 14px;
  color: var(--rfq-text);
  background: var(--rfq-bg-alt);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { margin: 0; line-height: 1.3; }
a { color: var(--rfq-primary); text-decoration: none; }
input, select, textarea, button { font-family: inherit; font-size: 14px; }

/* ---------- Login screen (self-contained for the RFQ page) ---------- */
.login-screen {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    linear-gradient(rgba(15, 23, 42, 0.94), rgba(15, 23, 42, 0.94)),
    radial-gradient(circle at 20% 20%, rgba(22, 93, 255, 0.35), transparent 55%);
  z-index: 500;
  padding: 1.5rem;
}

.login-card {
  width: 100%;
  max-width: 380px;
  background: #fff;
  border-radius: var(--rfq-radius);
  padding: 2rem;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.35);
}

.login-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.logo-mark {
  width: 40px;
  height: 40px;
  border-radius: 6px;
  background: var(--rfq-primary);
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  letter-spacing: 0.04em;
}

.login-brand h1 { font-size: 1.05rem; }
.login-brand p { margin: 2px 0 0; font-size: 12px; color: var(--rfq-muted); }

.login-error {
  display: none;
  background: #FEF2F2;
  border: 1px solid #FCA5A5;
  color: #991B1B;
  font-size: 12.5px;
  padding: 0.6rem 0.75rem;
  border-radius: 4px;
  margin-bottom: 1rem;
}
.login-error.show { display: block; }

/* ---------- Top header (no sidebar on this page — standalone) ---------- */
.rfq-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--rfq-dark);
  color: #fff;
  padding: 0.85rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.rfq-header .logo-mark { width: 36px; height: 36px; flex-shrink: 0; }
.rfq-header h1 { font-size: 1rem; font-weight: 600; }
.rfq-header .header-sub { font-size: 11px; color: #94A3B8; margin-top: 2px; letter-spacing: 0.05em; text-transform: uppercase; }

.rfq-header .header-right { margin-left: auto; display: flex; gap: 0.5rem; align-items: center; }
.rfq-header .header-right a { color: #CBD5E1; font-size: 12px; }
.rfq-header .header-right a:hover { color: #fff; }

.breadcrumb {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 12.5px;
  color: #94A3B8;
}
.breadcrumb a { color: #CBD5E1; }
.breadcrumb a:hover { color: #fff; text-decoration: underline; }
.breadcrumb .sep { opacity: 0.5; }
.breadcrumb .current { color: #fff; font-weight: 600; }

/* ---------- Layout ---------- */
.rfq-app { min-height: calc(100vh - 60px); }

.main {
  padding: 1.5rem 1.75rem 3rem;
  min-width: 0;
  max-width: 1440px;
  margin: 0 auto;
}

.page-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
}
.page-head h2 { font-size: 1.35rem; }
.page-head p { margin: 4px 0 0; font-size: 12.5px; color: var(--rfq-muted); }
.head-actions { display: flex; gap: 0.5rem; flex-wrap: wrap; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.5rem 0.9rem;
  border-radius: 4px;
  border: 1px solid transparent;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  transition: background 150ms ease, border-color 150ms ease, color 150ms ease;
  white-space: nowrap;
}
.btn-primary { background: var(--rfq-primary); color: #fff; }
.btn-primary:hover { background: var(--rfq-primary-dark); }
.btn-gold { background: var(--rfq-gold); color: #1F2937; }
.btn-gold:hover { background: #C19F2E; }
.btn-ghost { background: #fff; border-color: var(--rfq-border); color: var(--rfq-text); }
.btn-ghost:hover { border-color: var(--rfq-primary); color: var(--rfq-primary); }
.btn-danger { background: #fff; border-color: #FCA5A5; color: var(--rfq-danger); }
.btn-danger:hover { background: #FEF2F2; }
.btn-success { background: #fff; border-color: #86EFAC; color: var(--rfq-success); }
.btn-success:hover { background: #F0FDF4; }
.btn-sm { padding: 0.3rem 0.6rem; font-size: 12px; }
.btn:disabled { opacity: 0.55; cursor: not-allowed; }

/* Tooltip on disabled buttons */
.btn[disabled][data-tip] { position: relative; }
.btn[disabled][data-tip]:hover::after {
  content: attr(data-tip);
  position: absolute;
  bottom: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--rfq-dark);
  color: #fff;
  padding: 0.25rem 0.55rem;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 500;
  white-space: nowrap;
  pointer-events: none;
  z-index: 300;
}

/* ---------- Cards / tables ---------- */
.card {
  background: #fff;
  border: 1px solid var(--rfq-border);
  border-radius: var(--rfq-radius);
  overflow: hidden;
}
.card + .card { margin-top: 1rem; }
.card-pad { padding: 1.1rem 1.25rem; }

.toolbar {
  display: flex;
  gap: 0.6rem;
  align-items: center;
  padding: 0.9rem 1.1rem;
  border-bottom: 1px solid var(--rfq-border);
  flex-wrap: wrap;
}
.toolbar input[type="search"],
.toolbar select {
  padding: 0.45rem 0.65rem;
  border: 1px solid var(--rfq-border);
  border-radius: 4px;
  background: #fff;
  color: var(--rfq-text);
  min-width: 200px;
}
.toolbar input[type="search"]:focus,
.toolbar select:focus { outline: none; border-color: var(--rfq-primary); }

.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 13px; }

thead th {
  background: #F8FAFC;
  text-align: left;
  font-size: 11.5px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--rfq-muted);
  padding: 0.7rem 0.9rem;
  border-bottom: 1px solid var(--rfq-border);
  white-space: nowrap;
}
tbody td {
  padding: 0.7rem 0.9rem;
  border-bottom: 1px solid #F1F5F9;
  vertical-align: middle;
}
tbody tr:hover { background: #F8FAFC; }
tbody tr:last-child td { border-bottom: 0; }

.cell-name { font-weight: 600; }
.cell-muted { color: var(--rfq-muted); font-size: 12px; }
.cell-nowrap { white-space: nowrap; }

.row-actions { display: flex; gap: 0.35rem; }

.empty {
  padding: 3rem 1rem;
  text-align: center;
  color: var(--rfq-muted);
  font-size: 13px;
}

/* ---------- Status badges ---------- */
.badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

/* Default set already in admin.css; RFQ page also defines these for standalone use */
.badge-draft { background: #E2E8F0; color: #475569; }
.badge-submitted { background: #DBEAFE; color: #1D4ED8; }
.badge-needs_more_info { background: #FED7AA; color: #9A3412; }
.badge-under_review { background: #FEF3C7; color: #B45309; }
.badge-approved { background: #DCFCE7; color: #15803D; }
.badge-matched { background: #CCFBF1; color: #0F766E; }
.badge-quoting { background: #CFFAFE; color: #0E7490; }
.badge-closed { background: #1E293B; color: #E2E8F0; }
.badge-rejected { background: #FEE2E2; color: #B91C1C; }
.badge-expired { background: #F1F5F9; color: #64748B; }

/* Generic count badge */
.count-badge {
  background: var(--rfq-primary);
  color: #fff;
  border-radius: 10px;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  white-space: nowrap;
}
.count-badge.muted { background: #E2E8F0; color: #475569; }

/* ---------- Forms ---------- */
.field { margin-bottom: 0.9rem; }
.field label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 0.3rem;
  color: var(--rfq-text);
}
.field .hint { font-size: 11.5px; color: var(--rfq-muted); margin-top: 4px; }

.input, .select, .textarea {
  width: 100%;
  padding: 0.5rem 0.65rem;
  border: 1px solid var(--rfq-border);
  border-radius: 4px;
  background: #fff;
  color: var(--rfq-text);
}
.input:focus, .select:focus, .textarea:focus {
  outline: none;
  border-color: var(--rfq-primary);
  box-shadow: 0 0 0 3px rgba(22, 93, 255, 0.08);
}
.textarea { resize: vertical; min-height: 70px; line-height: 1.5; }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 1rem; }

.toggle-row { display: flex; align-items: center; gap: 0.5rem; font-size: 13px; }

/* ---------- Drawer / modal ---------- */
.overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease;
  z-index: 200;
}
.overlay.open { opacity: 1; pointer-events: auto; }

.drawer {
  position: fixed;
  top: 0;
  right: 0;
  height: 100vh;
  width: 720px;
  max-width: 100%;
  background: #fff;
  box-shadow: -8px 0 32px rgba(15, 23, 42, 0.18);
  transform: translateX(100%);
  transition: transform 200ms ease;
  z-index: 210;
  display: flex;
  flex-direction: column;
}
.drawer.open { transform: translateX(0); }

.drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--rfq-border);
  flex-shrink: 0;
}
.drawer-head h3 { font-size: 1rem; }
.drawer-head .close {
  border: 0;
  background: transparent;
  font-size: 22px;
  line-height: 1;
  color: var(--rfq-muted);
  cursor: pointer;
}

.drawer-body {
  padding: 1.25rem;
  overflow-y: auto;
  flex: 1;
}
.drawer-foot {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.9rem 1.25rem;
  border-top: 1px solid var(--rfq-border);
  background: #F8FAFC;
  flex-shrink: 0;
}
.drawer-foot .right { display: flex; gap: 0.5rem; margin-left: auto; }

/* ---------- Toast ---------- */
.toast {
  position: fixed;
  left: 50%;
  bottom: 2rem;
  transform: translate(-50%, 12px);
  background: var(--rfq-dark);
  color: #fff;
  padding: 0.65rem 1rem;
  border-radius: 4px;
  font-size: 13px;
  box-shadow: var(--rfq-shadow);
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease, transform 180ms ease;
  z-index: 400;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast.error { background: #B91C1C; }

/* ============ RFQ-SPECIFIC COMPONENTS ============ */

/* ---------- RFQ header block ---------- */
.rfq-header-block {
  background: #fff;
  border: 1px solid var(--rfq-border);
  border-radius: var(--rfq-radius);
  padding: 1.25rem 1.4rem;
  margin-bottom: 1rem;
}
.rfq-header-block .title-row {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  flex-wrap: wrap;
}
.rfq-header-block h2 { font-size: 1.2rem; flex: 1; min-width: 220px; }
.rfq-header-block .rfq-no {
  font-family: 'WorkSans', 'Inter', monospace;
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--rfq-primary);
  font-weight: 700;
  margin-top: 2px;
}
.rfq-header-block .meta {
  display: flex;
  gap: 1.2rem;
  flex-wrap: wrap;
  margin-top: 0.85rem;
  font-size: 12.5px;
  color: var(--rfq-muted);
}
.rfq-header-block .meta span strong { color: var(--rfq-text); font-weight: 600; }

/* ---------- AI score bar ---------- */
.ai-score-wrap { margin-top: 0.85rem; }
.ai-score-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  font-weight: 700;
  color: var(--rfq-dark-2);
  margin-bottom: 0.35rem;
}
.ai-score-label .score-num { font-variant-numeric: tabular-nums; }

.ai-score-bar {
  height: 8px;
  width: 100%;
  background: #E2E8F0;
  border-radius: 6px;
  overflow: hidden;
  position: relative;
}
.ai-score-bar .bar-fill {
  height: 100%;
  border-radius: 6px;
  transition: width 250ms ease, background 250ms ease;
}
.ai-score-bar.green .bar-fill { background: linear-gradient(90deg, #16A34A, #22C55E); }
.ai-score-bar.yellow .bar-fill { background: linear-gradient(90deg, #D97706, #F59E0B); }
.ai-score-bar.red .bar-fill { background: linear-gradient(90deg, #DC2626, #EF4444); }

.ai-score-details { margin-top: 0.6rem; }

.ai-missing-list,
.ai-risks,
.ai-suggestions {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 12.5px;
}
.ai-missing-list li,
.ai-risks li,
.ai-suggestions li {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  padding: 0.25rem 0;
}
.ai-missing-list li::before {
  content: '';
  flex-shrink: 0;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--rfq-muted);
  margin-top: 6px;
}
.ai-risks li::before {
  content: '';
  flex-shrink: 0;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--rfq-warning);
  margin-top: 6px;
}
.ai-suggestions li::before {
  content: '';
  flex-shrink: 0;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--rfq-primary);
  margin-top: 6px;
}

.ai-section-title {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 700;
  color: var(--rfq-muted);
  margin: 0.65rem 0 0.15rem;
}

.ai-warning-icon { color: var(--rfq-warning); flex-shrink: 0; }
.ai-info-icon { color: var(--rfq-primary); flex-shrink: 0; }

/* ---------- Verification dots ---------- */
.verification-dots {
  display: inline-flex;
  gap: 3px;
  align-items: center;
  cursor: help;
}
.verification-dots .verification-label {
  font-size: 11px;
  color: var(--rfq-muted);
  margin-left: 4px;
}

.dot-pass {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: #16A34A;
  box-shadow: 0 0 0 2px rgba(22,163,74,0.18);
}
.dot-fail {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: #DC2626;
  box-shadow: 0 0 0 2px rgba(220,38,38,0.18);
}
.dot-pending {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: #CBD5E1;
  border: 1px dashed #94A3B8;
}

.verification-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.5rem;
  margin-top: 0.5rem;
}
.verification-row .v-item {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  font-size: 11.5px;
  color: var(--rfq-muted);
}
.verification-row .v-item strong {
  color: var(--rfq-text);
  font-size: 13px;
  font-weight: 600;
}
.verification-row .v-item .dot-pass,
.verification-row .v-item .dot-fail,
.verification-row .v-item .dot-pending { width: 12px; height: 12px; }

/* ---------- Match row (card per supplier) ---------- */
.match-list { display: flex; flex-direction: column; gap: 0.65rem; }

.match-row {
  background: #fff;
  border: 1px solid var(--rfq-border);
  border-radius: 6px;
  padding: 0.85rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.9rem;
  transition: border-color 150ms ease, box-shadow 150ms ease;
}
.match-row:hover {
  border-color: #CBD5E1;
  box-shadow: 0 2px 8px rgba(15,23,42,0.04);
}
.match-row .match-main { flex: 1; min-width: 0; }
.match-row .match-name { font-weight: 600; font-size: 13.5px; color: var(--rfq-text); }
.match-row .match-reason { font-size: 12px; color: var(--rfq-muted); margin-top: 2px; line-height: 1.5; }

.match-row .match-score {
  flex-shrink: 0;
  min-width: 64px;
  text-align: center;
  padding: 0.3rem 0.55rem;
  border-radius: 6px;
  font-weight: 700;
  font-size: 14px;
  font-variant-numeric: tabular-nums;
}
.match-score.high { background: #DCFCE7; color: #15803D; }
.match-score.mid { background: #FEF3C7; color: #B45309; }
.match-score.low { background: #FEE2E2; color: #B91C1C; }

.match-row .match-cats {
  display: flex;
  gap: 0.35rem;
  flex-wrap: wrap;
  margin-top: 4px;
}
.match-row .match-cats .cat-chip {
  background: #F1F5F9;
  color: #475569;
  border-radius: 4px;
  padding: 1px 6px;
  font-size: 11px;
  font-weight: 600;
}
.match-row .contact-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #CBD5E1;
  flex-shrink: 0;
}
.match-row .contact-dot.active { background: #16A34A; box-shadow: 0 0 0 2px rgba(22,163,74,0.18); }

.match-row .row-actions { flex-shrink: 0; }

/* ---------- Timeline ---------- */
.timeline {
  position: relative;
  padding-left: 24px;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 7px;
  top: 4px;
  bottom: 4px;
  width: 2px;
  background: #E2E8F0;
}

.tl-entry {
  position: relative;
  background: #F1F5F9;
  border: 1px solid #E2E8F0;
  border-radius: 6px;
  padding: 0.75rem 0.9rem;
  margin-bottom: 0.6rem;
  font-size: 12.5px;
}

.tl-dot {
  position: absolute;
  left: -22px;
  top: 14px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--rfq-primary);
  box-shadow: 0 0 0 2px #fff, 0 0 0 4px rgba(22,93,255,0.15);
}
.tl-dot.status { background: #D4AF37; box-shadow: 0 0 0 2px #fff, 0 0 0 4px rgba(212,175,55,0.2); }
.tl-dot.match { background: #14B8A6; box-shadow: 0 0 0 2px #fff, 0 0 0 4px rgba(20,184,166,0.15); }
.tl-dot.quote { background: #0EA5E9; box-shadow: 0 0 0 2px #fff, 0 0 0 4px rgba(14,165,233,0.15); }
.tl-dot.note { background: #64748B; box-shadow: 0 0 0 2px #fff, 0 0 0 4px rgba(100,116,139,0.15); }
.tl-dot.warning { background: var(--rfq-warning); box-shadow: 0 0 0 2px #fff, 0 0 0 4px rgba(217,119,6,0.15); }

.tl-entry .tl-top {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  font-size: 11.5px;
  color: var(--rfq-muted);
}
.tl-entry .tl-actor { font-weight: 700; color: var(--rfq-dark-2); font-size: 12.5px; }
.tl-entry .tl-action { font-weight: 600; color: var(--rfq-text); margin-top: 2px; }
.tl-entry .tl-detail {
  margin-top: 0.4rem;
  padding: 0.5rem 0.65rem;
  background: #fff;
  border-radius: 4px;
  font-size: 12px;
  line-height: 1.5;
  color: #475569;
  border: 1px solid #E2E8F0;
  font-family: 'SF Mono', ui-monospace, Menlo, monospace;
  white-space: pre-wrap;
  word-break: break-word;
}
.tl-entry .tl-detail.empty { font-family: inherit; color: var(--rfq-muted); font-style: italic; }

/* ---------- Quote row / comparison card ---------- */
.quote-compare {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 0.85rem;
}

.quote-row {
  background: #fff;
  border: 1px solid var(--rfq-border);
  border-radius: 8px;
  overflow: hidden;
  transition: border-color 150ms ease, box-shadow 150ms ease;
}
.quote-row:hover {
  border-color: #CBD5E1;
  box-shadow: 0 2px 10px rgba(15,23,42,0.05);
}
.quote-row .quote-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.5rem;
  padding: 0.85rem 1rem;
  background: #F8FAFC;
  border-bottom: 1px solid var(--rfq-border);
}
.quote-row .quote-head .supplier {
  font-weight: 700;
  font-size: 13.5px;
  color: var(--rfq-dark-2);
}
.quote-row .quote-head .supplier-email { font-size: 11.5px; color: var(--rfq-muted); margin-top: 2px; }

.quote-row .quote-body { padding: 0.85rem 1rem; }

.quote-row .quote-metrics {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem 1rem;
}
.quote-row .quote-metrics span {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--rfq-muted);
  display: block;
  margin-bottom: 2px;
}
.quote-row .quote-metrics strong {
  font-size: 13px;
  font-weight: 700;
  color: var(--rfq-dark-2);
}
.quote-row .quote-metrics strong.money {
  color: var(--rfq-primary);
  font-variant-numeric: tabular-nums;
}

.quote-row .quote-certs {
  margin-top: 0.7rem;
  font-size: 11px;
  color: var(--rfq-muted);
}
.quote-row .quote-certs strong { color: var(--rfq-dark-2); font-weight: 700; margin-right: 0.35rem; }

.quote-row .quote-foot {
  display: flex;
  gap: 0.4rem;
  padding: 0.75rem 1rem;
  border-top: 1px solid var(--rfq-border);
  background: #fff;
}

.quote-row .quote-empty {
  padding: 1rem;
  text-align: center;
  color: var(--rfq-muted);
  font-size: 12px;
}

/* ---------- Tabs ---------- */
.tabs {
  display: flex;
  gap: 0.25rem;
  border-bottom: 1px solid var(--rfq-border);
  margin-bottom: 1rem;
  overflow-x: auto;
}
.tab-btn {
  padding: 0.65rem 1rem;
  background: transparent;
  border: 0;
  border-bottom: 2px solid transparent;
  color: var(--rfq-muted);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  margin-bottom: -1px;
}
.tab-btn:hover { color: var(--rfq-text); }
.tab-btn.active {
  color: var(--rfq-primary);
  border-bottom-color: var(--rfq-primary);
}

.tab-pane { display: none; }
.tab-pane.active { display: block; }

/* ---------- RFQ form / review drawer extras ---------- */
.rfq-form .form-section {
  padding: 1rem 0;
  border-bottom: 1px solid var(--rfq-border);
}
.rfq-form .form-section:last-child { border-bottom: 0; }

.section-title {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 700;
  color: var(--rfq-muted);
  margin-bottom: 0.7rem;
}

/* ---------- Supplier selector in drawer ---------- */
.supplier-search {
  width: 100%;
  padding: 0.5rem 0.65rem;
  border: 1px solid var(--rfq-border);
  border-radius: 4px;
  margin-bottom: 0.75rem;
}
.supplier-search:focus { outline: none; border-color: var(--rfq-primary); }

.supplier-list {
  max-height: 360px;
  overflow-y: auto;
  border: 1px solid var(--rfq-border);
  border-radius: 6px;
}
.supplier-list .supplier-option {
  padding: 0.6rem 0.85rem;
  border-bottom: 1px solid #F1F5F9;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
}
.supplier-list .supplier-option:last-child { border-bottom: 0; }
.supplier-list .supplier-option:hover { background: #F8FAFC; }
.supplier-list .supplier-option .company { font-weight: 600; font-size: 13px; }
.supplier-list .supplier-option .email { font-size: 11.5px; color: var(--rfq-muted); }
.supplier-list .supplier-option small { font-size: 11px; color: var(--rfq-primary); font-weight: 700; }

/* ---------- Detail grid (info cards) ---------- */
.detail-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem 1.25rem;
}
.detail-item span {
  display: block;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--rfq-muted);
  margin-bottom: 2px;
}
.detail-item strong, .detail-item a {
  font-size: 13.5px;
  word-break: break-word;
  color: var(--rfq-text);
  font-weight: 600;
}
.detail-item a:hover { text-decoration: underline; }

.info-block {
  background: #F8FAFC;
  border: 1px solid var(--rfq-border);
  border-radius: 6px;
  padding: 0.85rem 1rem;
  margin-bottom: 0.75rem;
  font-size: 13px;
  line-height: 1.6;
  white-space: pre-wrap;
}
.info-block h4 { font-size: 12px; text-transform: uppercase; letter-spacing: 0.05em; font-weight: 700; color: var(--rfq-muted); margin-bottom: 0.3rem; }

/* ---------- Icon button ---------- */
.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border: 1px solid var(--rfq-border);
  border-radius: 4px;
  background: #fff;
  cursor: pointer;
  color: var(--rfq-muted);
}
.icon-btn:hover { color: var(--rfq-danger); border-color: #FCA5A5; background: #FEF2F2; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .grid-2, .grid-3, .detail-grid { grid-template-columns: 1fr; }
  .drawer { width: 100%; }
  .main { padding: 1rem; }
  .verification-row { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .rfq-header { padding: 0.75rem 1rem; gap: 0.5rem; flex-wrap: wrap; }
  .quote-compare { grid-template-columns: 1fr; }
  .match-row { flex-wrap: wrap; }
  .match-row .match-score { order: 2; }
}
@media (max-width: 520px) {
  .rfq-header h1 { font-size: 0.9rem; }
  .rfq-header .header-sub { display: none; }
  .verification-row { grid-template-columns: 1fr 1fr; }
}
