.table-wrap { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: auto; }

.table { width: 100%; border-collapse: collapse; font-size: var(--text-sm); }
.table th, .table td { height: var(--row-compact); padding: 6px var(--space-3); text-align: left; white-space: nowrap; }
.table th {
  position: sticky; top: 0;
  background: var(--surface-muted); color: var(--text-secondary);
  font-size: var(--text-xs); font-weight: 500;
  border-bottom: 1px solid var(--border);
}
.table td { border-bottom: 1px solid var(--border); }
.table tr:last-child td { border-bottom: 0; }
.table tbody tr:hover { background: var(--surface-muted); }
.table .numeric { text-align: right; }
/* Many narrow columns of figures (Intraday): less room between them, so they fit beside the sidebar. A header over a
   few columns has their own short headers under it. */
.table--dense th, .table--dense td { padding-inline: calc(var(--space-1) * 1.5); }
.table--dense th:first-child, .table--dense td:first-child { padding-inline-start: var(--space-3); }
.table th.table__group { text-align: center; border-bottom: 0; padding-block-end: 0; }

.empty-state { padding: var(--space-8) var(--space-5); text-align: center; color: var(--text-secondary); }
.empty-state h3 { color: var(--text); margin-bottom: var(--space-1); }
.table .table__wrap { white-space: normal; }

/* A column header that sorts its list (issue #102). */
.table__sort {
  display: inline-flex; align-items: center; gap: var(--space-1);
  color: inherit; text-decoration: none;
  &:hover { color: var(--text); }
  svg { width: 14px; height: 14px; }
}
