.division-leaders {
    --button--unsel: #F2F2F2;
    --button--sel: #fff;
    --button--border: #DDDDDD;
    --table--header: #F2F5F7;
    --table--header-text: #777777;
    --table--border: #EFEFEF;
}

.col-md-9 {
    background-color: white;
    border-radius: 10px;
    padding: 1.2em 0.9em;
}

h3 {
    clear: both;
}

.division-leaders.player-type-selector {
    background-color: var(--button--unsel);
    border-radius: 1000px;
    border: 1px solid var(--button--border);
    overflow: auto;
    float: left;
    margin: 1em 0;
    font-size: 0.825em;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    text-align: center;
}

.division-leaders.player-type-selector .button {
    display: inline-block;
    padding: 0.25em 1.5em;
}
.division-leaders.player-type-selector .button:not(:last-child) {
    border-right: 1px solid var(--button--border);
}
.division-leaders.player-type-selector .button.selected {
    background-color: var(--button--sel);
    font-weight: bold;
}
.division-leaders.player-type-selector .button i {
    font-size: 0.825em;
    margin-right: 0.5em;
    display: none;
}
.division-leaders.player-type-selector .button.selected i {
    display: inline-block;
}


.division-leaders.table {
    width: 100%;
    min-width: 640px;
    margin-bottom: 0;
    border-collapse: separate;
    border-spacing: 0;
}
.division-leaders-table-scroll {
    clear: both;
    width: 100%;
    margin-bottom: 1em;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    width: 100%;
}
.division-leaders.table thead {
    background-color: var(--table--header);
}
.division-leaders.table thead th {
    color: var(--table--header-text);
    font-weight: normal;
    padding: 0.5em 0 !important;
    border: none !important;
    min-width: 2em;
}
.division-leaders.table thead th:first-child {
    text-align: center;
}
.division-leaders.table thead th:first-child,
.division-leaders.table thead th:nth-child(2),
.division-leaders.table td:first-child,
.division-leaders.table td:nth-child(2) {
    position: sticky;
    z-index: 1;
}
.division-leaders.table thead th:first-child,
.division-leaders.table td:first-child {
    left: 0;
    width: 2.5em;
    min-width: 2.5em;
}
.division-leaders.table thead th:nth-child(2),
.division-leaders.table td:nth-child(2) {
    left: 2.5em;
    width: 8em;
    min-width: 8em;
}
.division-leaders.table thead th:first-child,
.division-leaders.table thead th:nth-child(2) {
    z-index: 3;
    background-color: var(--table--header);
}
.division-leaders.table td:first-child,
.division-leaders.table td:nth-child(2) {
    background-color: #fff;
}
.division-leaders.table tr:first-child td {
    border: none !important;
}
.division-leaders.table td {
    vertical-align: middle;
    padding: 0.6em 0 !important;
}
.division-leaders.table td:first-child {
    text-align: center;
}
.division-leaders.table td img {
    height: 1.5em;
    width: auto;
    aspect-ratio: 1;
    object-fit: cover;
    margin-right: 0.35em;
}

@media (max-width: 767px) {
    .col-md-9 {
        border-radius: 0;
        padding: 1em 0.75em;
    }

    .division-leaders.player-type-selector {
        float: none;
        width: 100%;
        margin: 0.75em 0 1em;
        font-size: 0.9em;
    }

    .division-leaders.player-type-selector .button {
        padding: 0.65em 0.5em;
    }

    .division-leaders.table {
        min-width: 720px;
    }
}
