
@media (max-width: 1024px) {
    #tools {
        display: none !important;
    }
    #tools-mobile {
        display: flex;
        justify-content: space-between;
        gap: 6px;
        padding: 5px;
        background-color: #e5e5e5;
    }
    .dark #tools-mobile{
        background-color: transparent;
    }

    .dark #filter-match-type .filter-button, #CompanySelMobile .dropdown-toggle, .dark #CompanySelMobile .dropdown-toggle {
        border: 1px solid #2E352A;
        color: #d4d4d4;
    }
    
    .dark #CompanySelMobileDropdown-menu2.dropdown-menu {
        background-color: #292929;
    }
    .dark #CompanySelMobileDropdown-menu2.dropdown-menu .option{
        background-color: #222222;
    }
    .dark #CompanySelMobileDropdown-menu2.dropdown-menu .option.active{
        background-color: #374041;
    }

    .dark #CompanySelMobileDropdown-menu2.dropdown-menu::before {
        border-bottom: 4.5px solid #292929;
    }

    #filter-match-type {
        display: flex;
        justify-content: start;
        gap: 6px;
    }

    #filter-match-type .dropdown-toggle {
        max-width: 181px;
        width: 100%;
        height: 100%;
        position: relative;
        margin-right: 0;
        text-align: left;
    }

    #CompanySelMobile .filter-button.active {
        color: white;
        background-color: #205c04;
    }

    #filter-match-type .filter-button,
    #CompanySelMobile .dropdown-toggle {
        font-size: 12px;
        line-height: 30px;
        min-width: 30px;
        padding: 0 10px;
        text-align: center;
        border: 1px solid #bbbbbb;
        border-radius: 40px;
        font-weight: bold;
        white-space: nowrap;
        background-color: transparent;
    }

    #CompanySelMobile {
        height: 100%;
        /* flex-grow: 1; */
        display: flex;
        justify-content: end;
        position: relative;
    }

    #CompanySelMobile .dropdown-toggle {
        max-width: 181px;
        width: 100%;
        min-width: 163px;
        height: 100%;
        position: relative;
        margin-right: 0;
        text-align: left;
    }

    #filter-match-type .filter-button.active {
        color: white;
        background-color: #03472c;
    }

    .dropdown-menu {
        width: calc(100% - 8px);
    }

    .dropdown-menu::before {
        content: "";
        position: absolute;
        top: -4px;
        right: 0;
        left: 10px;
        width: 0;
        height: 0;
        border-left: 5px solid transparent;
        border-bottom: 4.5px solid #ffffff;
        border-right: 5px solid transparent;
    }

    .dropdown-menu .option {
        display: flex;
        height: 30px;
        padding: 0px 8px;
        justify-content: center;
        align-items: center;
        align-self: stretch;
        border-radius: 4px;
        background: #f2f2f2;
    }

    .option.active {
        background: #c1e1b1;
    }

    .dropdown-menu {
        z-index: 103;
        position: absolute;
        background-color: red;
        top: 34px;
        display: flex;
        width: 100%;
        padding: 4px;
        flex-direction: column;
        align-items: flex-start;
        gap: 2px;
        border-radius: 4px;
        background: #fff;
        box-shadow: -1px -1px 8px 0px rgba(0, 0, 0, 0.2),
            1px 1px 6px 0px rgba(0, 0, 0, 0.2);
        display: none;
    }

    .dropdown-toggle::before {
        content: "";
        transition: 0.3s all ease-in-out;
        width: 16px;
        height: 16px;
        line-height: 16px;
        right: 3px;
        position: absolute;
        border: 0;
        transform: rotate(0) translateY(-50%);
        top: 50%;
        background: url(/assets/football-vn/images/icon_arrow_down.svg);
    }
    .dropdown-menu.show {
        display: flex;
    }
    .dropdown.show .dropdown-toggle::before {
        transform: rotate(180deg);
    }

    #basketball #showoptional2 {
        max-width: calc(100dvw - 20px);
        left: 0 !important;
    }

    #basketball #myleague2 ul {
        display: flex;
        flex-direction: column;
    }

    #basketball #myleague2 ul li {
        width: 100%;
    }

    .match-list-mobile {
        display: flex;
        flex-direction: column;
        gap: 10px;
        background-color: #fff;
    }
    .league-box {
        display: flex;
        flex-direction: column;
    }
    .dark .odds-table-bg {
        background-color: #353535;
    }
    .league-box.league-box--hidden {
        display: none;
    }
    .league-box--content {
        display: none;
    }
    .league-box--content.league-show {
        display: flex;
        flex-direction: column;
    }

    .league-box .league-box--detail {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 5px;
        background-color: var(--bgcolor);
        color: #fff;
    }
    .league-box .league-box--detail .league-box--detail_name {
        flex-grow: 1;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        padding-left: 14px;
    }

    .league-box .league-box--detail .league-box--detail_close {
        height: 40px;
        width: 40px;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: all 200 linear;
    }
    .league-box--match_item__info___close img {
        width: 10px;
        height: 10px;
    }

    .league-box .league-box--matches {
        display: flex;
        flex-direction: column;
    }
    .league-box .league-box--matches > *:not(:last-child) {
        border-bottom: 1px solid #070f03;
    }

    .league-box--match_detail {
        display: flex;
        gap: 20px;
        padding: 12px;
    }

    .league-box--detail:not(.league-show) .league-box--detail_close img {
        transform: rotate(180deg);
    }
    .league-box--match_item.league-box--match_item__hidden {
        display: none;
    }
    .league-box--match_item__time {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-items: center;
        border-right: 1px solid #e5e5e5;
        padding-right: 20px;
    }
    .league-box--match_item__time span:first-child {
        color: #f75000;
    }
    .league-box--match_item__time span:last-child {
        text-align: center;
        width: 52px;
    }
    .league-box--match_item__team {
        display: flex;
        flex-direction: column;
        flex-grow: 1;
        gap: 10px;
        justify-content: center;
    }
    .league-box--match_item__info {
        display: flex;
        flex-direction: column;
        align-items: end;
        gap: 12px;
    }
    .league-box--match_info___icon {
        display: flex;
        gap: 18px;
        color: #888888;
    }

    .league-box--match_item:not(:last-child) {
        border-bottom: 1px solid #909090;
    }

    .league-box--match_odds {
        display: flex;
        flex-direction: column;
        gap: 4px;
    }
    .league-box--match_odds_box {
        display: none;
    }
    .league-box--match_odds_box:is(.odd-show, .odd-title) {
        flex: 1;
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 4px;
        padding-bottom: 8px;
    }
    .league-box--match_odds_box strong {
        text-align: center;
    }
    .league-box--match_odds_box .league-box--match_odds__item {
        display: flex;
        justify-content: center;
        gap: 14px;
    }
    .league-box--match_odds_box.odd-show
        > .league-box--match_odds__item:nth-child(2)
        span {
        color: #0000bb;
    }
    .dark
        .league-box--match_odds_box.odd-show
        > .league-box--match_odds__item:nth-child(2)
        span {
        color: #7aa4e2;
    }

    .league-box--match_odds_box.odd-show
        > .league-box--match_odds__item:nth-child(3)
        span {
        color: #880000;
    }
    .dark
        .league-box--match_odds_box.odd-show
        > .league-box--match_odds__item:nth-child(3)
        span {
        color: #dc4232;
    }

    .layui-layer-page {
        width: 100% !important;
        left: 0 !important;
    }
    .match-odds-menu {
        display: flex;
        gap: 1px;
    }
    .match-odds-menu > * {
        margin: 0;
    }
}
