#statistics-clan-result {
    margin-top: 14px;
    padding: 0;
    border: 0;
    background: transparent;
    text-align: left;
}

.statistics-clan-actions {
    display: block;
}

.statistics-clan-actions form {
    width: 100%;
}

.clan-statistics-empty {
    width: fit-content;
    max-width: 100%;
    min-width: min(460px, 100%);
    margin: 0 auto;
    padding: 28px;
    border: 1px dashed rgba(96, 130, 155, 0.25);
    border-radius: 8px;
    color: #839caf;
    background: rgba(7, 22, 35, 0.68);
    text-align: center;
}

.clan-statistics-result-list {
    display: grid;
    gap: 6px;
}

.clan-statistics-result {
    display: flex;
    min-height: 54px;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 9px 14px;
    border: 1px solid rgba(82, 118, 145, 0.24);
    border-radius: 7px;
    color: #dceaf1;
    background: #091b2a;
    font: inherit;
    text-align: left;
    cursor: pointer;
}

.clan-statistics-result:hover {
    border-color: rgba(101, 216, 239, 0.36);
    background: #0e2639;
}

.clan-statistics-result.is-unavailable {
    opacity: 0.52;
    cursor: default;
}

.clan-statistics-result span {
    display: grid;
    gap: 3px;
}

.clan-statistics-result small,
.clan-statistics-result > span:last-child {
    color: #839caf;
    font-size: 0.68rem;
}

.clan-statistics-profile {
    overflow: hidden;
    border: 1px solid rgba(81, 118, 145, 0.24);
    border-radius: 9px;
    background: #061523;
}

.clan-statistics-header {
    display: grid;
    grid-template-columns:
        minmax(230px, 0.55fr)
        minmax(0, 1.8fr);
    gap: 20px;
    align-items: center;
    padding: 16px 18px;
    border-bottom: 1px solid rgba(81, 118, 145, 0.2);
    background:
        linear-gradient(
            100deg,
            rgba(13, 38, 57, 0.98),
            rgba(6, 20, 33, 0.98)
        );
}

.clan-statistics-identity {
    min-width: 0;
}

.clan-statistics-identity > span {
    color: #efbd5b;
    font-size: 0.62rem;
    font-weight: 950;
    letter-spacing: 0.13em;
}

.clan-statistics-identity h2 {
    margin: 6px 0 3px;
    overflow: hidden;
    color: #f1f6f8;
    font-size: 1.55rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.clan-statistics-identity p {
    margin: 0;
    color: #839caf;
    font-size: 0.72rem;
}

.clan-statistics-header-summary {
    display: grid;
    grid-template-columns:
        repeat(4, minmax(105px, 1fr));
    gap: 6px;
}

.clan-statistics-header-summary article,
.clan-statistics-pillar-grid article {
    min-width: 0;
    padding: 9px 10px;
    border: 1px solid rgba(81, 118, 145, 0.18);
    border-radius: 7px;
    background: rgba(11, 32, 48, 0.78);
}

.clan-statistics-header-summary span,
.clan-statistics-pillar-grid span {
    display: block;
    overflow: hidden;
    color: #829caf;
    font-size: 0.55rem;
    font-weight: 900;
    text-overflow: ellipsis;
    text-transform: uppercase;
    white-space: nowrap;
}

.clan-statistics-header-summary strong,
.clan-statistics-pillar-grid strong {
    display: block;
    margin-top: 5px;
    color: #eef5f7;
    font-size: 0.94rem;
}

.clan-statistics-periods,
.clan-statistics-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    padding: 8px 12px;
    border-bottom: 1px solid rgba(81, 118, 145, 0.16);
}

.clan-statistics-periods button,
.clan-statistics-tabs button {
    min-height: 30px;
    padding: 0 12px;
    border: 1px solid rgba(96, 127, 149, 0.22);
    border-radius: 6px;
    color: #8fa8b9;
    background: rgba(127, 157, 177, 0.035);
    font: inherit;
    font-size: 0.65rem;
    font-weight: 850;
    cursor: pointer;
}

.clan-statistics-periods button:hover,
.clan-statistics-tabs button:hover {
    border-color: rgba(101, 216, 239, 0.3);
    color: #dceaf1;
}

.clan-statistics-periods button.is-active,
.clan-statistics-tabs button.is-active {
    border-color: rgba(239, 185, 87, 0.38);
    color: #efc66d;
    background: rgba(239, 185, 87, 0.1);
}

/*
 * Ein Panel kann mehrere kompakte Tabellen oder Karten nebeneinander
 * aufnehmen. Einzelne Tabellen werden nicht künstlich verbreitert.
 */
section[data-clan-statistics-panel] {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: flex-start;
    justify-content: center;
    padding: 14px;
}

section[data-clan-statistics-panel][hidden] {
    display: none !important;
}

.clan-statistics-table-scroll {
    flex: 0 1 auto;
    width: fit-content;
    max-width: 100%;
    overflow: auto;
    border: 1px solid rgba(81, 118, 145, 0.16);
    border-radius: 7px;
}

.clan-statistics-table {
    width: max-content;
    min-width: 0;
    border-collapse: collapse;
    table-layout: auto;
    font-size: 0.69rem;
}

.clan-statistics-table th,
.clan-statistics-table td {
    height: 31px;
    padding: 5px 11px;
    border-right: 1px solid rgba(81, 118, 145, 0.09);
    border-bottom: 1px solid rgba(81, 118, 145, 0.1);
    text-align: right;
    white-space: nowrap;
}

.clan-statistics-table th {
    color: #8fb2c9;
    background: #10263a;
    font-size: 0.61rem;
    font-weight: 900;
    text-transform: uppercase;
}

.clan-statistics-table th:first-child,
.clan-statistics-table td:first-child,
.clan-statistics-table th:nth-child(2),
.clan-statistics-table td:nth-child(2) {
    text-align: left;
}

.clan-statistics-table tbody tr:nth-child(odd) {
    background: rgba(6, 19, 31, 0.95);
}

.clan-statistics-table tbody tr:nth-child(even) {
    background: rgba(11, 29, 44, 0.95);
}

.clan-statistics-table tbody tr:hover {
    background: rgba(18, 48, 68, 0.96);
}

.clan-statistics-table tr.has-no-statistics {
    opacity: 0.55;
}

.clan-statistics-pillar-grid {
    display: grid;
    grid-template-columns:
        repeat(4, minmax(135px, 1fr));
    gap: 8px;
    width: fit-content;
    max-width: 100%;
}

@media (max-width: 1180px) {
    .clan-statistics-header {
        grid-template-columns: 1fr;
    }

    .clan-statistics-header-summary {
        grid-template-columns:
            repeat(4, minmax(100px, 1fr));
    }
}

@media (max-width: 760px) {
    .clan-statistics-header {
        padding: 14px;
    }

    .clan-statistics-header-summary {
        grid-template-columns:
            repeat(2, minmax(100px, 1fr));
    }

    section[data-clan-statistics-panel] {
        justify-content: flex-start;
        padding: 10px;
    }

    .clan-statistics-table-scroll {
        width: 100%;
    }

    .clan-statistics-pillar-grid {
        grid-template-columns:
            repeat(2, minmax(115px, 1fr));
    }
}

/* CIR_CLAN_SPLIT_SORT_START */

/*
 * Die Mitgliederliste wird auf breiten Bildschirmen in zwei gleich
 * strukturierte Tabellen aufgeteilt. Beide Tabellen bleiben gemeinsam
 * sortierbar.
 */
.clan-member-table-grid {
    display: grid;
    grid-template-columns:
        repeat(2, max-content);
    gap: 16px;
    align-items: start;
    justify-content: center;
    width: fit-content;
    max-width: 100%;
    margin: 0 auto;
}

.clan-member-table {
    width: max-content;
    max-width: 100%;
}

/*
 * Tabellenüberschriften sind echte Schaltflächen. Dadurch sind die
 * Sortierungen mit Maus und Tastatur bedienbar.
 */
.clan-sort-button {
    display: inline-flex;
    min-width: 100%;
    align-items: center;
    justify-content: inherit;
    gap: 5px;
    padding: 0;
    border: 0;
    color: inherit;
    background: transparent;
    font: inherit;
    font-weight: inherit;
    text-align: inherit;
    text-transform: inherit;
    white-space: nowrap;
    cursor: pointer;
}

.clan-sort-button:hover {
    color: #efc66d;
}

.clan-sort-button:focus-visible {
    border-radius: 3px;
    outline: 1px solid rgba(101, 216, 239, 0.7);
    outline-offset: 3px;
}

.clan-sort-indicator {
    min-width: 9px;
    color: #63839a;
    font-size: 0.53rem;
    line-height: 1;
}

.clan-sort-button[aria-sort="ascending"]
.clan-sort-indicator,
.clan-sort-button[aria-sort="descending"]
.clan-sort-indicator {
    color: #efbd5b;
}

/*
 * Keine sichtbaren WG-Badges mehr. Die Regel dient zusätzlich als
 * Rückfallschutz für bereits zwischengespeichertes HTML.
 */
.statistics-login-marker {
    display: none !important;
}

.statistics-main-tabs [data-statistics-section] {
    gap: 0;
}

@media (max-width: 1450px) {
    .clan-member-table-grid {
        grid-template-columns: max-content;
    }
}

@media (max-width: 760px) {
    .clan-member-table-grid {
        display: flex;
        width: 100%;
        flex-direction: column;
        align-items: stretch;
    }

    .clan-member-table {
        width: 100%;
    }
}

/* CIR_CLAN_SPLIT_SORT_END */
