/**
 * Table (ds-table)
 * ================
 * Ledger / list table in the site style — used by the accountant view.
 * Header is muted + uppercase, rows are separated by subtle borders and
 * lift on hover. Built from design tokens only.
 */

/* Boxed container — puts the ledger in a bordered card in the site style
   (instead of a bare table floating on the page) and scrolls on narrow
   screens. Wrap the <table class="ds-table"> in <div class="ds-table-wrap">. */
.ds-table-wrap {
    background: var(--color-bg-secondary);
    border: 1px solid var(--color-border-subtle);
    border-radius: var(--radius-lg);
    overflow-x: auto;
}

.ds-table {
    width: 100%;
    border-collapse: collapse;
    font-size: var(--font-size-sm);
}

.ds-table thead th {
    text-align: left;
    padding: var(--space-3) var(--space-4);
    color: var(--color-text-tertiary);
    font-weight: var(--font-weight-semibold);
    font-size: var(--font-size-xs);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    border-bottom: 1px solid var(--color-border-default);
    white-space: nowrap;
}

.ds-table tbody td {
    padding: var(--space-3) var(--space-4);
    color: var(--color-text-primary);
    border-bottom: 1px solid var(--color-border-subtle);
    vertical-align: top;
}

.ds-table tbody tr:last-child td {
    border-bottom: none;
}

.ds-table tbody tr:hover td {
    background: var(--color-surface-hover);
}

/* Monospace cells (commitments, hashes) opt in with .mono. */
.ds-table .mono {
    font-family: var(--font-family-mono);
    font-size: var(--font-size-xs);
    color: var(--color-text-secondary);
}
