.row-table {
  width: 100%;
  font-size: 16px;
}
.row-table th {
  text-align: left;
  font-weight: 600;
  color: var(--color-text-muted);
  padding: var(--space-1) var(--space-4);
  background: var(--color-bg-subtle);
  border-bottom: 1px solid var(--color-border);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.row-table td {
  padding: var(--space-1) var(--space-4);
  border-bottom: 1px solid var(--color-border);
  color: var(--color-text);
  vertical-align: middle;
}
.row-table tbody tr:last-child td { border-bottom: none; }
.row-table tbody tr:hover { background: var(--color-bg-subtle); }
.row-table .col-actions {
  width: 1%;
  white-space: nowrap;
}

/* .flag-pill removed — replaced by inline vocab-driven colors in table.js.
   Table columns with color: <l1>._vocab.<scale> apply inline styles directly.
   No hardcoded data-level CSS selectors. */

.row-table th.sortable {
  cursor: pointer;
  user-select: none;
}
.row-table th.sortable:hover { color: var(--color-text); }
.row-table th.sort-asc::after  { content: ' \25B2'; font-size: 0.7em; }
.row-table th.sort-desc::after { content: ' \25BC'; font-size: 0.7em; }

.row-actions {
  display: inline-flex;
  gap: var(--space-1);
}

/* ── Scroll wrapper ────────────────────────────────────────────────── */
.row-table-wrap {
  overflow-x: auto;
  overflow-y: auto;
}
.row-table-wrap th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: var(--color-bg-subtle);
}

/* ── No-wrap (all cells) ───────────────────────────────────────────── */
.row-table td,
.row-table th {
  white-space: nowrap;
}

/* ── Clickable data cells ──────────────────────────────────────────── */
.cell-clickable {
  cursor: pointer;
  color: var(--color-primary);
}
.cell-clickable:hover {
  text-decoration: underline;
}

/* ── Sub-row (secondary line beneath cell text) ────────────────────── */
.cell-sub {
  color: var(--color-text-muted);
  margin-top: 2px;
  line-height: 1.3;
  white-space: normal;
}
.cell-sub-sm { font-size: 0.78rem; }
.cell-sub-xs { font-size: 0.7rem; }

/* ── Compound rows (cp.vrs[] same-date group) ──────────────────────────
   Header row carries cp.label + actions only. Sub-rows show per-vr.label
   indented under it, per the canonical compound-row layout. */
.row-table tr.row-sub td:first-child {
  padding-left: calc(var(--space-4) + var(--space-3));
}
