.qp-data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}

.qp-data-table thead th {
  position: sticky;
  top: 0;
  background: var(--surface);
  text-align: left;
  padding: 8px 12px;
  border-bottom: 1px solid var(--border);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  opacity: 0.7;
}

.qp-data-table td {
  padding: 8px 12px;
  border-bottom: 1px solid var(--border);
}

.qp-data-table-empty {
  text-align: center;
  opacity: 0.6;
  padding: 24px 12px;
}

.qp-align-right {
  text-align: right;
}

.qp-data-table-zebra tbody tr:nth-child(even) {
  background: color-mix(in srgb, var(--text) 4%, transparent);
}

.qp-data-table-row:hover {
  background: color-mix(in srgb, var(--accent) 8%, transparent);
}

/* Turn 18 accessibility QA finding: colored text on a 16%-tint-of-itself
   background — the original design — failed 4.5:1 for every one of the 4
   status colors in at least one theme (as low as 2.42:1 for info/light).
   No solid-fill variant (white text, or --text, on the full-strength
   color) passed universally either — some brand colors here just aren't
   dark/light enough at full saturation for reliable text-on-color use at
   this size. Fixed by decoupling color from the text contrast requirement
   entirely: text is always --text on --surface (already verified passing
   at 14-16.5:1 in both themes), and the status color moves to a small
   dot — supplementary, not load-bearing, since the label text itself
   already states the status in words (guideline §7's "never color alone"
   was already a hint this was the safer direction anyway). */
.qp-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 2px 10px 2px 8px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border);
}

.qp-status-pill::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.qp-status-pill-positive::before { background: var(--positive); }
.qp-status-pill-negative::before { background: var(--negative); }
.qp-status-pill-caution::before  { background: var(--caution); }
.qp-status-pill-info::before     { background: var(--info); }
