/* Rows of figures. The block scrolls sideways on its own rather than widening the page on a phone. */
.table {
    overflow-x: auto;
}

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

.table__heading {
    padding: var(--spacing-xs) var(--spacing-sm);
    font-weight: var(--font-weight-medium);
    color: var(--color-on-surface-muted);
    text-align: left;
    white-space: nowrap;
    border-bottom: var(--border-width) solid var(--color-divider-subtle);
}

.table__heading:first-child,
.table__cell:first-child {
    padding-left: 0;
}

.table__cell {
    padding: var(--spacing-xs) var(--spacing-sm);
    border-bottom: var(--border-width) solid var(--color-divider-subtle);
}

/* A value that reads wrong broken across lines, such as a model id: the table scrolls instead. */
.table__cell--nowrap {
    white-space: nowrap;
}

/* A totals row: set apart from the rows it adds up. */
.table__cell--total {
    font-weight: var(--font-weight-medium);
    text-align: left;
    border-top: var(--border-width) solid var(--color-border);
    border-bottom: none;
}

.table__heading--numeric,
.table__cell--numeric {
    text-align: right;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}
