/* Datentabellen. Farben, Abstaende und Radien stammen aus den Variablen in base.css. */

/* ----------------------------------------------------------------
   Tabellen
---------------------------------------------------------------- */

.table-scroll {
    overflow-x: auto;
    border-radius: var(--radius);
}

table.data {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    overflow: hidden;
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    font-size: 14px;
    font-variant-numeric: tabular-nums;
}

table.data th,
table.data td {
    padding: 11px 16px;
    border-bottom: 1px solid var(--border);
    text-align: left;
    white-space: nowrap;
}

table.data th {
    background: var(--surface-soft);
    color: var(--muted);
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

table.data tbody tr:last-child td,
table.data tbody tr.last-visible td {
    border-bottom: none;
}

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

table.data tr.subrow td {
    background: var(--surface-soft);
    color: var(--muted);
}

.container.centered table.data th,
.container.centered table.data td {
    text-align: center;
}

.tag {
    display: inline-flex;
    align-items: center;
    padding: 2px 10px;
    border: 1px solid var(--border);
    border-radius: var(--radius-pill);
    background: var(--surface-soft);
    color: var(--muted);
    font-size: 12px;
    font-weight: 600;
    line-height: 1.6;
    white-space: nowrap;
}
