.aggregate-view-selector {
    overflow-x: auto;
    scrollbar-width: thin;
}

.aggregate-view-selector .nav {
    min-width: max-content;
}

.aggregate-mode-controls {
    flex-shrink: 0;
}

.aggregate-mode-controls .btn {
    min-width: 4.25rem;
    padding: 0.3rem 0.65rem;
    border-color: var(--efi-navy-800);
    font-size: 0.8rem;
    font-weight: 600;
    line-height: 1.25;
    white-space: nowrap;
}

.aggregate-mode-controls .btn-dark {
    color: #ffffff;
    background-color: var(--efi-navy-800);
    border-color: var(--efi-navy-800);
}

.aggregate-mode-controls .btn-outline-dark {
    color: var(--efi-navy-800);
    background-color: var(--efi-surface);
}

.aggregate-mode-controls .btn-outline-dark:hover {
    color: #ffffff;
    background-color: var(--efi-navy-800);
    border-color: var(--efi-navy-800);
}

.aggregate-mode-controls .btn:focus-visible {
    box-shadow:
        0 0 0 0.2rem rgb(242 177 52 / 35%);
}

.aggregate-statistics-table {
    width: 100%;
    font-size: 0.8125rem;
    line-height: 1.3;
}

.aggregate-statistics-table th,
.aggregate-statistics-table td {
    padding: 0.45rem 0.6rem;
}

.aggregate-statistics-table .statistic-heading {
    max-width: 8rem;
    white-space: normal;
    vertical-align: bottom;
}

.aggregate-statistics-table thead th[scope="col"] {
    font-weight: 600;
}

.aggregate-statistics-table thead th[scope="col"] .btn {
    font: inherit;
    text-align: inherit;
    white-space: normal;
}

.aggregate-statistics-table thead [scope="colgroup"] {
    color: var(--efi-navy-900);
    background-color: #e7f0f3;
    text-align: center;
}

.aggregate-statistics-table thead tr:nth-child(2) [scope="colgroup"] {
    background-color: #eef4f6;
}

.aggregate-statistics-table thead .statistic-group-end {
    border-right: 2px solid var(--efi-border);
}

.aggregate-statistics-table .sticky-team-column {
    position: sticky;
    left: 0;
    z-index: 2;
    min-width: 8.5rem;
    background-color: var(--bs-table-bg);
    border-right: 1px solid var(--bs-border-color);
}

.aggregate-statistics-table thead .sticky-team-column {
    z-index: 3;
}

.aggregate-mode-panel[hidden] {
    display: none !important;
}

@media (max-width: 575.98px) {
    .aggregate-statistics-table th,
    .aggregate-statistics-table td {
        padding: 0.4rem 0.5rem;
    }

    .aggregate-statistics-table .sticky-team-column {
        min-width: 7.5rem;
    }
}
