.table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
}

.table th,
.table td {
    padding: 0.68rem 0.75rem;
    border-bottom: 1px solid var(--color-border);
    text-align: left;
    vertical-align: top;
}

.table th {
    width: 210px;
    background: #f6f7f9;
    color: var(--color-primary-dark);
    font-weight: 650;
}

.table tr:last-child td {
    border-bottom: 0;
}

.table-actions {
    white-space: nowrap;
}

.table .compact-list {
    margin: 0.15rem 0 0;
    padding-left: 1rem;
    font-size: 0.83em;
    line-height: 1.25;
    color: var(--color-text);
}

.table .compact-list li {
    margin: 0.03rem 0;
    font-size: inherit;
    line-height: inherit;
}

@media (max-width: 800px) {
    .table {
        font-size: 0.9rem;
    }

    .table th {
        width: auto;
    }
}
.table-month-row th {
    background: #eef1f5;
    color: var(--color-primary-dark);
    font-size: 0.9rem;
    letter-spacing: 0.01em;
    border-top: 1px solid var(--color-border);
}

.table-year-row th {
    padding-top: 0.9rem;
    padding-bottom: 0.35rem;
    background: var(--color-surface);
    color: var(--color-muted);
    border-top: 2px solid var(--color-border);
    font-size: 1rem;
    font-weight: 500;
}

.event-year-nav {
    align-items: center;
    margin-bottom: 0.75rem;
}

.event-year-nav__current {
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    background: #f6f7f9;
    color: var(--color-primary-dark);
    font-weight: 650;
}
.table-row--inactive {
    opacity: 0.55;
}

.table-row--inactive td {
    background: #f3f4f6;
}

/* Tabellenköpfe folgen der Ausrichtung ihrer Inhalte. */
.table th.text-end,
.table td.text-end {
    text-align: right;
}

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

/* Breite Tabellen scrollen innerhalb ihres Bereichs statt die gesamte Seite zu verbreitern. */
.table-scroll,
.table-responsive {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-inline: contain;
}

.table-scroll > table,
.table-responsive > table {
    max-width: none;
}

.table-responsive[data-scrollable="true"] {
    border-radius: var(--radius);
    outline: none;
}

.table-responsive[data-scrollable="true"]:focus-visible {
    box-shadow: 0 0 0 3px var(--color-focus-ring);
}
