/* qa.css — QA section in drawer, reopen badges, tester rail */

/* ── Reopen badge (inline on rows + drawer) ──────────────────── */
.qa-reopen-badge {
  display: inline-flex; align-items: center; gap: 3px;
  padding: 1px 6px 1px 4px;
  border-radius: 999px;
  background: rgba(226, 68, 92, 0.12);
  color: #c2253a;
  font-size: 10.5px; font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
  border: 1px solid rgba(226, 68, 92, 0.2);
  line-height: 1.5;
}
.qa-reopen-badge svg { width: 11px; height: 11px; }
.qa-reopen-badge.sm { font-size: 10px; padding: 0 5px 0 3px; }

/* ── QA badge (pending/passed/failed) ────────────────────────── */
.qa-chip {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 10.5px; font-weight: 700;
  letter-spacing: .02em;
  text-transform: uppercase;
  border: 1px solid transparent;
}
.qa-chip.tone-amber { color: #b07416; background: rgba(253,171,61,.14); border-color: rgba(253,171,61,.3); }
.qa-chip.tone-green { color: #027447; background: rgba(0,200,117,.14); border-color: rgba(0,200,117,.3); }
.qa-chip.tone-red   { color: #c2253a; background: rgba(226,68,92,.12); border-color: rgba(226,68,92,.3); }
.qa-chip svg { width: 11px; height: 11px; }

/* Tiny "QA required" indicator on a row (vertical tick mark) */
.qa-required-mark {
  display: inline-flex; align-items: center; gap: 3px;
  font-size: 10px; font-weight: 700;
  color: #a25ddc; letter-spacing: .04em;
}
.qa-required-mark svg { width: 11px; height: 11px; }

/* ── Drawer: QA section ──────────────────────────────────────── */
.qa-section {
  margin-top: 16px;
  background: linear-gradient(180deg, #faf6ff 0%, #fff 100%);
  border: 1px solid #ece0ff;
  border-radius: 10px;
  padding: 14px 14px 12px;
}
.qa-section-head {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 10px;
}
.qa-section-title {
  font-size: 11px; font-weight: 700; color: #6834c4; letter-spacing: .08em; text-transform: uppercase;
  display: inline-flex; align-items: center; gap: 5px;
}
.qa-section-title svg { width: 13px; height: 13px; }
.qa-section-head .qa-chip { margin-left: auto; }

.qa-toggle {
  display: flex; align-items: center; gap: 10px;
  font-size: 13px; color: var(--ink-1); font-weight: 500;
  cursor: pointer;
  padding: 8px 10px;
  border-radius: 7px;
  background: white;
  border: 1px solid #ece0ff;
  margin-bottom: 10px;
}
.qa-toggle input[type="checkbox"] {
  width: 16px; height: 16px;
  accent-color: #a25ddc;
  margin: 0;
  flex-shrink: 0;
}
.qa-toggle strong { font-weight: 600; color: var(--ink-1); }
.qa-toggle small { color: var(--ink-muted); font-size: 11.5px; font-weight: 500; margin-left: auto; }

.qa-tester {
  display: grid; grid-template-columns: auto 1fr;
  gap: 10px 12px;
  padding: 10px;
  background: white;
  border: 1px solid #ece0ff; border-radius: 7px;
  margin-bottom: 10px;
  align-items: center;
}
.qa-tester-label { font-size: 11px; color: var(--ink-muted); font-weight: 600; text-transform: uppercase; letter-spacing: .05em; }
.qa-tester-person { display: flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 600; color: var(--ink-1); }
.qa-tester-meta   { font-size: 11px; color: var(--ink-muted); font-weight: 500; }

/* Linked QA task card */
.qa-link-card {
  display: grid; grid-template-columns: auto 1fr auto;
  gap: 10px;
  padding: 10px 12px;
  background: white;
  border: 1px solid #ece0ff; border-radius: 8px;
  margin-bottom: 10px;
  align-items: center;
  cursor: pointer;
  transition: border-color .1s;
}
.qa-link-card:hover { border-color: #a25ddc; }
.qa-link-card-ico {
  width: 30px; height: 30px; border-radius: 7px;
  background: #a25ddc; color: white;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.qa-link-card-title { font-size: 12.5px; font-weight: 600; color: var(--ink-1); display: flex; align-items: center; gap: 6px; }
.qa-link-card-title svg { width: 11px; height: 11px; color: var(--ink-muted); flex-shrink: 0; }
.qa-link-card-sub   { font-size: 11px; color: var(--ink-muted); font-weight: 500; margin-top: 1px; }
.qa-link-card-cta {
  font-size: 11px; font-weight: 600; color: #6834c4;
}

/* Pass/Fail action buttons */
.qa-actions { display: flex; gap: 8px; margin-top: 8px; }
.qa-btn {
  flex: 1;
  padding: 9px 14px;
  border-radius: 7px;
  font-size: 13px; font-weight: 700; cursor: pointer;
  font-family: inherit;
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  transition: filter .12s, transform .08s;
}
.qa-btn.pass { background: #00c875; color: white; border: 1px solid #00c875; }
.qa-btn.fail { background: white; color: #c2253a; border: 1px solid #e2445c; }
.qa-btn:hover { filter: brightness(1.05); }
.qa-btn:active { transform: translateY(0.5px); }

/* Reopen history strip */
.qa-history {
  margin-top: 10px;
  padding: 8px 10px;
  background: rgba(226,68,92,.06);
  border: 1px dashed rgba(226,68,92,.3);
  border-radius: 7px;
  font-size: 11.5px; color: #a31c33; font-weight: 500;
  display: flex; align-items: center; gap: 8px;
}
.qa-history svg { color: #c2253a; flex-shrink: 0; }

/* Fail-note modal */
.qa-fail-form { display: flex; flex-direction: column; gap: 10px; padding: 4px 0 10px; }
.qa-fail-form label { font-size: 12px; font-weight: 600; color: var(--ink-1); }
.qa-fail-form textarea {
  width: 100%; min-height: 90px;
  padding: 10px;
  border: 1px solid var(--divider); border-radius: 6px;
  font-family: inherit; font-size: 13px;
  resize: vertical;
  box-sizing: border-box;
}
.qa-fail-form textarea:focus { border-color: #a25ddc; outline: none; box-shadow: 0 0 0 3px rgba(162,93,220,.14); }

/* Checklist inside QA drawer */
.qa-checklist { display: flex; flex-direction: column; gap: 2px; }
.qa-check-row {
  display: flex; align-items: center; gap: 8px;
  padding: 7px 8px;
  border-radius: 5px;
  font-size: 13px;
  cursor: pointer;
}
.qa-check-row:hover { background: var(--surface-1); }
.qa-check-row input { accent-color: #a25ddc; margin: 0; }
.qa-check-row.is-done span { text-decoration: line-through; color: var(--ink-muted); }
.qa-check-progress { font-size: 11px; color: var(--ink-muted); font-weight: 600; margin-left: auto; }
