/* Turnuva Yönetimi: tüm ana ve modal gridler için ortak responsive görünüm. */
.tm-responsive-grid {
    width: 100% !important;
    min-width: 0 !important;
    margin: 0 !important;
    color: #334155;
    font-size: .64rem;
    table-layout: auto !important;
}

.tm-responsive-grid thead th {
    padding: .56rem .48rem !important;
    color: #e2e8f0 !important;
    background: #26384e !important;
    border-color: #3a4b60 !important;
    font-size: .53rem !important;
    font-weight: 850 !important;
    letter-spacing: .025em;
    line-height: 1.25;
    text-align: center;
    text-transform: uppercase;
    vertical-align: middle;
    white-space: normal;
}

.tm-responsive-grid tbody td {
    width: 1% !important;
    padding: .54rem .48rem !important;
    border-color: #e5eaf0 !important;
    text-align: center;
    vertical-align: middle;
    white-space: nowrap;
}

.tm-responsive-grid tbody tr:nth-child(even) td {
    background-color: #fafbfd;
}

.tm-responsive-grid tbody tr:hover td {
    box-shadow: inset 0 0 0 999px rgba(212,160,23,.055);
}

/* Her gridde metin ağırlıklı ana sütun kalan alanı kullanır. */
.tm-responsive-grid :is(
    .application-note,
    .athlete-column,
    .athlete-name,
    .excuse-note,
    .result-athletes,
    .group-athletes-column,
    .group-athletes,
    .group-match-athletes,
    .match-athletes,
    .match-program-athletes,
    .scheduled-athletes,
    .ranking-athlete
) {
    width: 100% !important;
    min-width: 0 !important;
    text-align: left;
}

/* Özel ana sütunu bulunmayan yardımcı modal gridlerinde son sütun esnektir. */
.tm-responsive-grid:not(:has(:is(
    .application-note,
    .athlete-column,
    .athlete-name,
    .excuse-note,
    .result-athletes,
    .group-athletes-column,
    .group-athletes,
    .group-match-athletes,
    .match-athletes,
    .match-program-athletes,
    .scheduled-athletes,
    .ranking-athlete
))) th:last-child,
.tm-responsive-grid:not(:has(:is(
    .application-note,
    .athlete-column,
    .athlete-name,
    .excuse-note,
    .result-athletes,
    .group-athletes-column,
    .group-athletes,
    .group-match-athletes,
    .match-athletes,
    .match-program-athletes,
    .scheduled-athletes,
    .ranking-athlete
))) td:last-child {
    width: 100% !important;
}

.bb-theme-dark .tm-responsive-grid {
    color: #e2e8f0;
}

.bb-theme-dark .tm-responsive-grid tbody td {
    background-color: #1e293b;
    border-color: #334155 !important;
}

.bb-theme-dark .tm-responsive-grid tbody tr:nth-child(even) td {
    background-color: #172033;
}

@media (max-width: 767.98px) {
    .tm-responsive-grid {
        min-width: 0 !important;
        font-size: .58rem;
    }

    .tm-responsive-grid thead th {
        padding: .42rem .3rem !important;
        font-size: .48rem !important;
    }

    .tm-responsive-grid tbody td {
        padding: .44rem .3rem !important;
    }

    .tm-responsive-grid :is(
        .application-note,
        .athlete-column,
        .athlete-name,
        .excuse-note,
        .result-athletes,
        .group-athletes-column,
        .group-athletes,
        .group-match-athletes,
        .match-athletes,
        .match-program-athletes,
        .scheduled-athletes,
        .ranking-athlete
    ) {
        white-space: normal !important;
        overflow-wrap: anywhere;
    }
}
