.fml-table-scroll, .fml-public-table-wrap, .fml-columns-scroll {
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;
}

.fml-table-scroll:focus-visible, .fml-columns-scroll:focus-visible {
    outline: 2px solid #896514;
    outline-offset: 2px;
}

.fml-columns-toolbar, .fml-columns-scroll {
    --columns-ink: #13161c;
    --columns-muted: #535965;
    --columns-surface: #f5f3ef;
    --columns-border: #dedfe2;
    --columns-gold: #f7ce4d;
    color: var(--columns-ink);
}

.fml-columns-toolbar {
    display: flex;
    justify-content: flex-end;
    align-items: start;
    gap: .65rem;
}

.fml-columns-toolbar:has(> details[hidden]):has(> span[hidden]) {
    display: none;
}

.fml-columns-toolbar > details {
    max-width: 100%;
    margin: 0 0 .5rem;
    padding: 0;
}

.fml-columns-toolbar > details[open] {
    flex: 1;
}

.fml-columns-toolbar > details > summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .5rem;
    min-height: 44px;
    padding: .35rem .7rem;
    border: 1px solid var(--columns-border);
    border-radius: 8px;
    background: #fff;
    color: var(--columns-ink);
    font: inherit;
    font-size: .875rem;
    font-weight: 750;
    list-style: none;
    cursor: pointer;
}

.fml-columns-toolbar > details > summary::-webkit-details-marker { display: none; }

.fml-columns-toolbar > details > summary::after {
    content: '';
    width: .45em;
    height: .45em;
    margin-left: .25rem;
    transform: translateY(-.12em) rotate(45deg);
    border: solid currentColor;
    border-width: 0 2px 2px 0;
}

.fml-columns-toolbar > details[open] > summary {
    background: #fff4cf;
}

.fml-columns-toolbar > details[open] > summary::after {
    transform: translateY(.12em) rotate(225deg);
}

.fml-columns-settings {
    margin-top: .4rem;
    padding: .5rem .65rem;
    border: 1px solid var(--columns-border);
    border-radius: 8px;
    background: var(--columns-surface);
}

.fml-columns-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 9rem), 1fr));
    gap: .25rem .65rem;
}

.fml-columns-options label {
    display: flex;
    gap: .4rem;
    align-items: center;
    min-height: 38px;
    color: var(--columns-ink);
    font-size: .85rem;
    line-height: 1.25;
    cursor: pointer;
}

.fml-columns-options input[type=checkbox] {
    width: 1.05rem;
    height: 1.05rem;
    margin: 0;
    flex: 0 0 auto;
    accent-color: #8c650a;
}

.fml-columns-settings > button {
    display: block;
    min-height: 38px;
    padding: .35rem 0;
    border: 0;
    background: none;
    color: var(--columns-ink);
    font-size: .8rem;
    text-decoration: underline;
    text-underline-offset: .2em;
}

.fml-columns-scroll-hint {
    margin-right: auto;
    align-self: start;
    padding-top: .7rem;
    font-size: .8rem;
    color: var(--columns-muted);
}

.fml-columns-scroll:has(> table[data-fml-columns-ready]) {
    overflow-x: auto !important;
    min-width: 0 !important;
    border: 1px solid var(--columns-border);
    border-radius: 10px;
    background: #fff;
}

.fml-columns-scroll > table[data-fml-columns-ready] {
    width: 100% !important;
    min-width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    border-collapse: separate !important;
    border-spacing: 0 !important;
    overflow: visible !important;
    table-layout: auto !important;
}

.fml-columns-scroll > table[data-fml-columns-ready] > colgroup {
    display: none !important;
}

.fml-columns-scroll > table[data-fml-columns-ready] > :is(thead, tbody, tfoot) > tr > :is(th, td) {
    width: auto !important;
    height: auto !important;
    min-width: 0;
    padding: .65rem .55rem !important;
    border: 0 !important;
    border-bottom: 1px solid var(--columns-border) !important;
    background: #fff !important;
    color: var(--columns-ink) !important;
    font-size: .875rem !important;
    text-align: center;
    line-height: 1.3;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}

.fml-columns-scroll > table[data-fml-columns-ready][data-fml-columns-layout] > :is(thead, tbody, tfoot) > tr > :is(th, td):not([data-fml-col-hidden]) {
    display: table-cell !important;
}

.fml-columns-scroll > table[data-fml-columns-ready][data-fml-columns-layout] > :is(thead, tbody, tfoot) > tr > :is(th, td)[data-fml-col-hidden] {
    display: none !important;
}

.fml-columns-scroll > table[data-fml-columns-ready] > thead > tr > th {
    background: var(--columns-surface) !important;
    font-weight: 750;
}

.fml-columns-scroll > table[data-fml-columns-ready] > thead > tr > th.is-active {
    background: #fff1c0 !important;
}

.fml-columns-scroll > table[data-fml-columns-ready] > tbody > tr:hover > :is(th, td) {
    background: #faf8f2 !important;
}

.fml-columns-scroll > table[data-fml-columns-ready] > tbody > tr:last-child > :is(th, td) {
    border-bottom: 0 !important;
}

.fml-columns-scroll > table[data-fml-columns-ready] > :is(thead, tbody, tfoot) > tr > :is(th, td):not([data-fml-col-pinned]) {
    position: static !important;
    box-shadow: none !important;
}

.fml-columns-scroll > table[data-fml-columns-ready] > :is(thead, tbody, tfoot) > tr > [data-fml-col-pinned] {
    position: sticky !important;
    left: var(--fml-column-offset) !important;
    right: auto !important;
    z-index: 1;
}

.fml-columns-scroll[data-fml-table-scrolled] > table[data-fml-columns-ready] > :is(thead, tbody, tfoot) > tr > [data-fml-col-identity] {
    box-shadow: 1px 0 var(--columns-border), 6px 0 10px -9px #13161c !important;
}

.fml-columns-scroll > table[data-fml-columns-ready] > :is(thead, tbody, tfoot) > tr > [data-fml-col-identity] {
    min-width: 6rem;
    max-width: 15rem;
    text-align: left !important;
    white-space: normal !important;
    overflow-wrap: anywhere;
}

.fml-columns-scroll > table[data-fml-columns-layout=compact] > :is(thead, tbody, tfoot) > tr > :is(th, td) {
    padding: .5rem .35rem !important;
    font-size: .8rem !important;
}

.fml-columns-scroll > table[data-fml-columns-layout=compact] > thead > tr > th {
    white-space: normal;
}

.fml-columns-scroll > table[data-fml-columns-ready] > thead th :is(button, a) {
    padding: .12rem !important;
    color: inherit !important;
    background: transparent !important;
    text-align: inherit;
}

.fml-columns-scroll > table[data-fml-columns-ready] .fml-stat-label-full { display: inline; }
.fml-columns-scroll > table[data-fml-columns-ready] .fml-stat-label-short { display: none; }
.fml-columns-scroll > table[data-fml-columns-layout=compact] .fml-stat-label-full { display: none; }
.fml-columns-scroll > table[data-fml-columns-layout=compact] .fml-stat-label-short { display: inline; }

.fml-columns-scroll > table[data-fml-columns-ready] [data-fml-col-identity] :is(.fml-team-full, .fml-season-stats-name-full, .fml-history-label-full, .fml-history-team-full) { display: inline !important; }
.fml-columns-scroll > table[data-fml-columns-ready] [data-fml-col-identity] :is(.fml-team-mobile-code, .fml-season-stats-name-short, .fml-history-label-short, .fml-history-team-short) { display: none !important; }

.fml-columns-scroll > table[data-fml-columns-ready] [data-fml-col-identity] :is(.fml-leader-team, .fml-season-stats-player, .fml-season-stats-name, .fml-rating-player-name, .fml-player-name, .fml-rating-player-copy) {
    min-width: 0;
    max-width: none !important;
    overflow: visible;
    white-space: normal !important;
    overflow-wrap: anywhere;
}

.fml-columns-scroll > table[data-fml-columns-ready] .fml-season-stats-player { gap: .35rem; }
.fml-columns-scroll > table[data-fml-columns-layout=compact] .fml-season-stats-position { display: none !important; }

.fml-columns-context { display: none; }

.fml-columns-scroll > table[data-fml-col-team-hidden] .fml-columns-context {
    display: block;
    margin-top: .2rem;
    color: var(--columns-muted);
    font-size: .75rem;
    font-weight: 500;
    overflow-wrap: anywhere;
    white-space: normal;
}

.fml-columns-scroll > table.fml-player-rating-table:is([data-fml-columns-layout=compact], [data-fml-columns-layout=medium]) .fml-rating-meta {
    display: flex;
    white-space: normal;
}

.fml-columns-scroll > table[data-fml-columns-ready] .fml-col-gd a::after {
    display: none;
}

.fml-columns-scroll > table[data-fml-columns-ready] .fml-col-gd a {
    font-size: inherit;
}

.fml-report-roster > .fml-columns-toolbar {
    padding-inline: .5rem;
}

.fml-report-roster > .fml-columns-scroll:has(> table[data-fml-columns-ready]) {
    border: 0;
    border-radius: 0;
}

@media (max-width: 600px) {
    .fml-columns-scroll > table[data-fml-columns-ready] td:is(.fml-history-col-club, .fml-recent-col-team) .fml-history-team-cell,
    .fml-columns-scroll > :is(.fml-season-stats-table, .fml-player-rating-table)[data-fml-columns-ready]
        :is(.fml-leader-team, .fml-rating-team) {
        display: inline-flex;
        justify-content: center;
        align-items: center;
        gap: .25rem;
        white-space: nowrap;
    }

    .fml-columns-scroll > table[data-fml-columns-ready] td:is(.fml-history-col-club, .fml-recent-col-team) .fml-history-team-full,
    .fml-columns-scroll > :is(.fml-season-stats-table, .fml-player-rating-table)[data-fml-columns-ready]
        :is(.fml-leader-team, .fml-rating-team) .fml-team-full {
        display: none !important;
    }

    .fml-columns-scroll > table[data-fml-columns-ready] td:is(.fml-history-col-club, .fml-recent-col-team) .fml-history-team-short,
    .fml-columns-scroll > :is(.fml-season-stats-table, .fml-player-rating-table)[data-fml-columns-ready]
        :is(.fml-leader-team, .fml-rating-team) .fml-team-mobile-code {
        display: inline !important;
        font-size: .75rem;
        font-weight: 700;
        text-decoration: none;
    }

    .fml-columns-scroll > table[data-fml-columns-ready] td:is(.fml-history-col-club, .fml-recent-col-team) .fml-history-team-cell > img,
    .fml-columns-scroll > :is(.fml-season-stats-table, .fml-player-rating-table)[data-fml-columns-ready]
        :is(.fml-leader-team, .fml-rating-team) > img {
        display: block !important;
        flex: 0 0 19px;
        width: 19px;
        height: 19px;
        object-fit: contain;
    }

    .fml-columns-scroll > .fml-player-rating-table[data-fml-columns-ready]:not([data-fml-col-team-hidden]) .fml-rating-meta {
        display: none;
    }
}
