/* Ledger tables: figures right-aligned with tabular numbers where a view marks them .col-right. */
@layer modules {
  .table-wrapper {
    border: 1px solid var(--color-border);
    border-radius: var(--radius-large);
    overflow-x: auto;
  }

  table { font-size: var(--text-small); inline-size: 100%; }
  thead { background: var(--color-subtle); }

  th {
    border-block-end: 1px solid var(--color-border);
    color: var(--color-ink-muted);
    font-size: var(--text-x-small);
    font-weight: 600;
    letter-spacing: 0.05em;
    padding: var(--space-3) var(--space-4);
    text-align: start;
    text-transform: uppercase;
    white-space: nowrap;
  }

  td { border-block-end: 1px solid var(--color-border); padding: var(--space-3) var(--space-4); vertical-align: middle; }
  tbody tr:last-child td { border-block-end: 0; }
  tbody tr:hover { background: var(--color-subtle); }

  .col-right { font-variant-numeric: tabular-nums; text-align: end; }
}
