/*
 * One-line odds layout repair.
 *
 * This stylesheet is deliberately inert until the runtime detects
 * .filter-type-1 and adds .sport-one-line-odds to the 6-in-1 root. It keeps
 * the original renderer and every other display mode untouched.
 */
@media screen and (min-width: 1001px) {
    body #scrollIframe.wrap-iframe-6in1.sport-one-line-odds #app6in1 .table-view {
        overflow-x: auto !important;
        overflow-y: visible !important;
        overscroll-behavior-inline: contain;
        scrollbar-width: thin;
    }

    body #scrollIframe.wrap-iframe-6in1.sport-one-line-odds #app6in1 .table-view > .league-item {
        min-width: 1180px !important;
    }

    /* Do not let flexbox collapse the team column to roughly 100px. */
    body #scrollIframe.wrap-iframe-6in1.sport-one-line-odds #iframe_6in1 .match-list-head > .info-teams,
    body #scrollIframe.wrap-iframe-6in1.sport-one-line-odds #iframe_6in1 .bet-match-list.filter-type-1 .info-teams {
        flex: 0 0 180px !important;
        width: 180px !important;
        min-width: 180px !important;
        max-width: 180px !important;
    }

    body #scrollIframe.wrap-iframe-6in1.sport-one-line-odds #iframe_6in1 .match-list-head > .w-60,
    body #scrollIframe.wrap-iframe-6in1.sport-one-line-odds #iframe_6in1 .bet-match-list.filter-type-1 .w-60 {
        flex: 0 0 72px !important;
        width: 72px !important;
        min-width: 72px !important;
        max-width: 72px !important;
    }

    body #scrollIframe.wrap-iframe-6in1.sport-one-line-odds #iframe_6in1 .match-list-head > .live-col,
    body #scrollIframe.wrap-iframe-6in1.sport-one-line-odds #iframe_6in1 .bet-match-list.filter-type-1 .live-col {
        flex: 0 0 50px !important;
        width: 50px !important;
        min-width: 50px !important;
        max-width: 50px !important;
    }

    body #scrollIframe.wrap-iframe-6in1.sport-one-line-odds #iframe_6in1 .match-list-head > .w-score,
    body #scrollIframe.wrap-iframe-6in1.sport-one-line-odds #iframe_6in1 .bet-match-list.filter-type-1 .w-score {
        flex: 0 0 52px !important;
        width: 52px !important;
        min-width: 52px !important;
        max-width: 52px !important;
    }

    /* Restore the compact, flat odds cells used by the original table. */
    body #scrollIframe.wrap-iframe-6in1.sport-one-line-odds #iframe_6in1 .bet-match-list.filter-type-1 .odds.normal {
        min-height: 20px !important;
        padding: 0 3px !important;
        color: #070f03 !important;
        background: #efefef !important;
        border: 0 !important;
        border-radius: 2px !important;
        line-height: 20px !important;
        box-shadow: none !important;
    }

    body #scrollIframe.wrap-iframe-6in1.sport-one-line-odds #iframe_6in1 .bet-match-list.filter-type-1 .odds.normal.up {
        color: #075e3b !important;
        background: #d7fae9 !important;
    }

    body #scrollIframe.wrap-iframe-6in1.sport-one-line-odds #iframe_6in1 .bet-match-list.filter-type-1 .odds.normal.down {
        color: #a92b22 !important;
        background: #fde1de !important;
    }

    /* Analysis/favourite controls were removed from the requested one-line UI. */
    body #scrollIframe.wrap-iframe-6in1.sport-one-line-odds #iframe_6in1 .bet-match-list.filter-type-1 .action-list {
        visibility: hidden !important;
        pointer-events: none !important;
    }

    body #scrollIframe.wrap-iframe-6in1.sport-one-line-odds #iframe_6in1 .bet-match-list.filter-type-1 .toggle-bet {
        color: #e51b00 !important;
        background: #edfff8 !important;
    }
}
