.top_menu{
    --mau-nen1:#69acc2;
    --mau-nen2:#ebebeb;
    --mau-bg-title: #6dbace;
    --min-height-top:45px;
    --mau-high1:#ffee53;
    --mau-select-menu-1:#4d6d8f;
    --mau-dong-1:#e4e4e4;
    --mau-labelmo:#efffef;
    --mau-li1h:#dedede;
    --maunen-c: #0B9444;
    --mau-tmh:#454b29;
    --mau-limnact:#ffffff;
    --pad-5-10-15: 15px;
    --mau-back-ct:#090709ed;
    --mau-ulc2:#f1eeee;
    --mau-barmnc:#ffffff;
    --min-height-bottom: 40px;
    --mau-ulc:#ebebeb;
    --pad-logo-ngang:30px;
    --mau-item-menu-hover:#ffffff;
    --mau-chu-b1:#ffffff;
    max-width: 100vw;
    height: 3em;
    position: sticky; top: 0; left: 0; right: 0; z-index: 8;

    grid-area: a;
    min-height: 3em;
    background: var(--mau-nen2);
    display: flex ;
    justify-content: space-between;
    align-items: center;
    
}
.top_menu *{
    box-sizing: border-box;
}
.logo{
    height: 100%;
    position: relative;
}
.logo::after{
    position: absolute;
    display: block;
    z-index: 3;
    content: "";
    width: 30px;
    height: 100%;
    top: 0;
    right: -8px;
    background: var(--mau-high1);
    clip-path: polygon(0 0, 100% 0, calc(100% - 20px) 100%, 0 100%);
}
.logo>a{
    position: relative;
    z-index: 4;
    display: flex;
    align-items: center;
    padding-left: calc(var(--pad-logo-ngang) - 10px);
    height: 100%;
    padding-right: var(--pad-logo-ngang);
    clip-path: polygon(0 0, 100% 0, calc(100% - 20px) 100%, 0 100%);
    background: var(--maunen-c);
}


/*  MENU ================ */
.menu_guest{
    -webkit-tap-highlight-color: #ffffff00;
    height: 100%;
}
.menu_guest ul{
    margin: 0;
    padding-inline-start: 0;
    list-style: none;
    align-items: center;
    display: flex;
}
.menu_guest>div>ul{
    background-color: #ffff;
    height: 100%;
}
.menu_guest>div>ul>Li:hover{
    background: var(--mau-li1h);
}
.menu_guest>div>ul>li>ul{
    background: var(--mau-ulc2);
}
.menu_guest>div>ul>li>ul>li>a{
    display: block;
    display: flex;
    align-items: center;
    padding: 10px 15px;
}

.menu_guest>div>ul>li>a{
    text-transform: uppercase;
    display: flex;
    padding: 0 1em;
    align-items: center;
    transition: background .5s;
    height: 100%;
}
.menu_guest li{
    position: relative;
}
.menu_guest>div>ul>li{
    transition: background .5s;
    height: 100%;
}
.menu_guest>div>ul>li li{
    width: 100%;
}

.menu_guest a{
    display: block;
}
.menu_guest>div>ul ul{
    flex-direction: column;
    display: none;
    width: max-content;
}
.menu_guest>div>ul>li>ul{
    left: 0;
    top: 100%;
}
.menu_guest>div>ul>li>ul>li>ul>li>a{
    display: flex;
    padding: 5px 10px;
}
.menu_guest>div>ul>li>ul>li>ul{
    left: 100%;
    border-left: 2px solid var(--mau-thuong-hieu);
    background: var(--mau-ulc);
    top: 0;
}
.top_menu>div:nth-of-type(2){
    display: flex;
    justify-content: center;
}
.top_menu a{
    text-decoration: none;
    position: relative;
    color: #293a4b;
}
.top_menu a>*{
    display: block;
    max-width: 4em;
    max-height: 85%;
    object-fit: contain;
}
.menu_guest>div>div{
    display: none;
    /* color: var(--mau-chu-b1); */
    align-items: center;
    background: var(--mau-barmnc);
    justify-content: space-between;
}
.menu_guest>div>div>span{
    margin-left: 15px;
}
.menu_guest>div>div>label{
    display: block;
    background: var(--mau-dong-1);
    padding: 15px 20px;
}




.cont_tm{
    height: 100%;
    position: relative;
}
.cont_tm::before{
    content: "";
    width: 30px;
    height: 100%;
    position: absolute;
    top: 0;
    clip-path: polygon(0 0, 100% 0, 100% 100%, 20px 100%);
    left: -8px;
    background: var(--mau-high1);
    z-index: 3;
}
.cont_tm>label{
    display: none;
}
.tab_main{
    position: relative;
    z-index: 5;
    display: flex;
    width: max-content;
    height: 100%;
    align-items: center;
    padding-right: calc( var(--pad-logo-ngang) - 10px );
    padding-left: var(--pad-logo-ngang);
    clip-path: polygon(0 0, 100% 0, 100% 100%, 20px 100%);
    background: var(--maunen-c);
}
.cont_tm>label{
    display: none;
}

.tab_main>a{
    font-weight: bold;
    text-transform: uppercase;
    display: none;
    height: 100%;
    align-items: center;
    color: #fff;
    transition: background .5s;
}
.cont_tm>input:checked~div>a, .cont_tm>div:hover>a{
    border-bottom: 1px solid var(--mau-high1);
    background: var(--maunen-c);
}

.cont_tm>input:not(:checked)~div::before{
    content: "Tài Khoản";
    color: var(--mau-chu-b1);
    font-weight: bold;
}

.tab_main>a:hover{
    background: var(--mau-item-menu-hover);
}
.tab_main>div:nth-of-type(1){
    display: none;
}
.tab_main>a.active{
    pointer-events: none;
    display: flex;
}

@media only screen and  (min-width: 600px){
    .top_menu{min-height: 3.5em;}
    .cont_tm:hover>.tab_main {
        position: absolute;
        flex-direction: column;
        height: 100vh;
        clip-path: none;
        padding: 0;
        right: 0;
        background: var(--mau-nen2);
    }
    .cont_tm:hover>div::before{
        display: none;
    }
    .tab_main:hover>a.active {
        background: var(--mau-tmh);
        border-left: 2px solid var(--mau-high1);
    }
    .tab_main:hover>a {
        display: flex;
        box-sizing: border-box;
        height: fit-content;
        width: 100%;
        padding: 20px 60px 20px 30px;
    }
    .menu_guest>div>ul>li>ul li:hover{
        background: var(--mau-li1h);
    }

    .menu_guest ul ul li.active>a{ color: var(--mau-thuong-hieu); }
    .menu_guest>div>ul>li:has(.active)>a{
        color: var(--mau-thuong-hieu);
        font-weight: bold;
    }
    .top_menu{
        grid-template-columns: min-content 1fr min-content;
        border-bottom: 1px solid #9c9c9c;
    }
    .menu_guest>div{
        position: absolute;
        top: 0; right: 0; bottom: 0; left: 0;
        width: fit-content;
        margin: auto;
        height: 100%;
    }
    .menu_guest ul li:hover>ul{
        display: flex;
        position: absolute;
    }

}
@media only screen and  (max-width: 599px){
    .cont_tm>input:not(:checked)~div>a{
        border-bottom: none;
    }
    .menu_guest>div>ul>li{
        display: none;
    }
    .cont_tm>input:checked+div>a {
        height: fit-content;
        padding: 20px;
        display: block;
        width: 100%;
        text-align: center;
    }
    .cont_tm>input:checked+div {
        background-color: var(--mau-nen2);
    }
    .menu_guest>div>ul::after{
        content: "MENU";
        color: var(--mau-chu-b1);
    }
    #check_menu_45r:checked ~ div>ul::after{
        display: none;
    }
    .menu_guest:not(:has(input:checked)) #laber{
        display: block !important;
        position: absolute;
        color: var(--mau-chu-b1);
        margin: auto;
        height: fit-content;
        width: fit-content;
        top: 0; right: 0; bottom: 0; left: 0;
    }
    #check_menu_45r:checked~div ul li.active>a::after{
        content: "●";
        margin-left: .2em;
        font-size: large;
    }
    .logo{
        width: 25vw;
    }
    .logo::after{
        right: -5px;
    }
    .menu_guest{
        position: relative;
        flex: auto;
    }
    #check_menu_45r:not(:checked)~div>ul li:has(.active){
        display: block;
        position: absolute;
        top: 0;
        bottom: 0;left: 0;right: 0;
    }

    #check_menu_45r:not(:checked)~div>ul li:has(.active)>a{
        display: none;
    }
    #check_menu_45r:not(:checked)~div>ul ul:has(.active){
        display: block !important;
        background: none;
    }
    #check_menu_45r:not(:checked)~div>ul ul:has(.active) li:not(:has(.active)):not([class="active"]){
        display: none;
    }
    #check_menu_45r:not(:checked)~div>ul li.active{
        display: block;
        position: absolute;
        top: 0; right: 0; bottom: 0; left: 0;
        text-align: center;
        background-color: var(--mau-nen2);
        
    }
    #check_menu_45r:not(:checked)~div>ul li.active>a{
        position: absolute;
        top: 0; right: 0; bottom: 0; left: 0;
        width: fit-content;
        margin: auto;
        align-items: center;
        padding: 0;
    }
    #check_menu_45r:not(:checked)~div>ul li.active>a>label::after{
        display: none;
    }

    .menu_guest>label{
        display: block;
        position: absolute;
        top: 0; right: 0; bottom: 0; left: 0;
        z-index: 2;
    }

    .menu_guest div ul>li input:not(:checked)~a>label::after{
        content: "◀";
    }
    .menu_guest div ul>li input:checked~a>label::after{
        content: "▼";
    }
    .menu_guest div ul>li input:checked~a>label{
        background: #edecee;
    }
    .menu_guest>input:checked+div ul>li label{
        background: var(--mau-labelmo);
        position: absolute;
        justify-content: center;
        top: 0;
        right: 0;
        min-width: 20%;
        text-transform: none;
        font-size: .8rem;
        height: 100%;
        bottom: 0;
    }
    #check_menu_45r:checked+div>ul>li a>label{
        display: flex;
        align-items: center;
        height: 100%;
    }
    #check_menu_45r:not(:checked)~div>ul>li>ul{
        display: none;
    }
    #check_menu_45r:checked+div>ul>li.active::after{
        position: absolute;
        pointer-events: none;
        color: #b1d8ff;
        font-size: small;
        font-style: italic;
        content: "đang xem";
        top: 0;
        right: 4px;
    }
    #check_menu_45r:checked+div>ul li:has(.active)::after{
        position: absolute;
        pointer-events: none;
        color: #b1d8ff;
        font-size: small;
        font-style: italic;
        content: "đang xem";
        top: 0;
        right: 4px;
    }
    #check_menu_45r:checked+div{
        position: fixed;
        z-index: 11;
        display: flex;
        flex-direction: column;
        background: var(--mau-back-ct);
        height: 100vh;
        overflow: hidden;
        top: 0; right: 0; bottom: 0; left: 0;
    }
    #check_menu_45r:checked~div>div{
        display: flex;
    }
    #check_menu_45r:checked+div>ul{
        flex: auto;
        overflow-y: scroll;
        flex-direction: column;
    }
    #check_menu_45r:checked+div>ul>li{
        background: #e2e2e2;
        display: flex;
        border-bottom: 1px solid #637499;
        flex-direction: column;
        width: 100%;
        height: fit-content;
    }
    #check_menu_45r:checked+div>ul>li>a{
        padding: 10px 20px;
        height: fit-content;
    }
    #check_menu_45r:checked+div>ul>li:has(.active){
        background: #f7f7f7;
    }
    .menu_guest>div>ul>li>input:checked~ul>li>a{
        padding-top: 15px;
        padding-bottom: 15px;
        padding-left: 60px;
    }
    .tab_main {
        padding-right: 10px;
        padding-left: 25px;
    }
    .menu_guest>div>ul>li>ul>li>input:checked ~ul>li>a{
        padding-left: 100px;
    }
    .menu_guest ul li input:checked~ul{
        display: flex;
        width: 100%;
    }
    .cont_tm{
        min-width: 100px;
    }
    .cont_tm>input:not(:checked)+div{
        pointer-events: none;
    }
    .cont_tm>input:checked+div>div:nth-of-type(1)>span{
        flex: auto;
        text-align: center;
        text-transform: uppercase;
    }
    .cont_tm>input:checked+div>div:nth-of-type(1)>label{
        display: block;
        padding: var(--pad-5-10-15);
        background: var(--mau-dong-1);
    }
    .cont_tm>input:checked+div>div:nth-of-type(1){
        display: flex;
        background: var(--mau-nen2);
        align-items: center;
        color: #fff;
        justify-content: space-between;
        width: 100%;
        border-bottom: 1px solid #293a4b;
    }
    .cont_tm>input:checked+div{
        position: fixed !important;
        clip-path: none;
        min-width: 50vw;
        padding: 0;
        top: 0; right: 0; bottom: 0; left: 0;
        margin-left: auto;
        height: 100dvh;
        display: flex;
        flex-direction: column;
        overflow-y: scroll;
        z-index: 10;
    }
    .cont_tm>input:checked~label{
        position: fixed;
        top: 0; right: 0; bottom: 0; left: 0;
        background: #0000008e;
    }

    .cont_tm>input:checked+div>a.active{
        background: var(--mau-select-menu-1);
    }
    .cont_tm>label{
        display: block;
        width: 100%;
        height: 100%;
        position: absolute;
        top: 0;
        left: 0;
        z-index: 9;
    }
    .cont_tm::before{
        left: -5px;
    }
    .logo>a{
        padding-left: calc(var(--pad-logo-ngang) - 15px);
    }
    

}
