.showItem{
    opacity: 1 !important;
    max-width: 100% !important;
    max-height: 100vh !important;
    transition: max-height 0.3s ease-in-out;
}

.mobile{
    display: none;
}

.rolagemMenu{
    position: relative;
    background-color: #fff !important;
    height: 60px !important;
}

#header.rolagemMenu #logo > span > a, #header.rolagemMenu #menu > ul > li > div > a, #header.rolagemMenu #menu > ul > li > div > button{
    color: #0077b6 !important;
}

#header.rolagemMenu > #containerGrupoMenu > #menu > ul > li > div > a, #header.rolagemMenu > #containerGrupoMenu > #menu > ul > li > div > button{
    padding: 20px 15px;
    transition: padding 0.3s ease-in-out;
}

#header.rolagemMenu > #containerGrupoMenu > #menu > ul > li > div > a:hover, #header.rolagemMenu > #containerGrupoMenu > #menu > ul > li > div > button:hover{
    background-color: rgb(0,119,182);
    color: #fff !important;
}

#infoUser.rolagemMenu{
    top: 10px;
    height: 48px !important;
    transition: top 0.3s ease-in-out;
}

#header{
    position: fixed;
    top: 0;
    left: 0;
    height: 100px;
    width: 100%;
    background: rgb(0,119,182);
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.3);
    z-index: 100;
    transition: 0.5s;
    color: #fff !important;
}

#containerGrupoMenu{
    width: 100%;
    display: flex;
    flex-direction: row;
    justify-content: end;
}

#logo{
    position: relative;
    align-content: center;
    text-align: center;
    align-items: start;
    margin-left: 25px;
    padding: 0 10px;
}

#logo span a{
    font-size: 2rem !important;
    color: #fff !important;
    font-weight: 600 !important;
}

#infoUser{
    position: relative;
    right: 30px;
    top: 30px;
    align-content: center;
    color: #fff !important;
    border-radius: 50px;
}

#imgPerfilUser{
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.3);
    width: 40px;
    height: 40px;
    background-repeat: no-repeat;
    border-radius: 50px;
}

#imgPerfilUser:hover{
    cursor: pointer;
}

#inforUserGroup{
    position: absolute;
    right: 0;
    top: 50px;
    background-color: rgb(0, 180, 216);
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.3);
    min-width: 270px;
    display: flex;
    flex-direction: column;

    opacity: 0;
    max-width: 0;
    max-height: 0;
    overflow: hidden;
}

#containerImgUser{
    position: absolute;
    right: 0;
    top: 0;
    width: 40px;
    height: 40px;
}

#inforUserGroup > hr{
    margin: 10px 0 !important;
}

#infoUserImg{
    border-radius: 50%;
    height: 50px;
    width: 50px;
    background-color: #fff;
    box-shadow: 1px 1px 9px gray;
}


#menuSecondary > a{
    font-weight: 600 !important;
    padding: 15px 10px;
    display: block;
}

#menuSecondary > a:hover{
    background-color: rgb(0,119,182);
    color: #fff !important;
    border-radius: 9px;
}

#infoUserImg img{
    width: 50px;
    height: 50px;
    border-radius: 50%;
}

#infoUserDados{
    display: flex;
    flex-direction: column;
    gap: 3px;
    margin-top: 10px;
}

#nomeAgente{
    font-size: 16px !important;
    font-weight: 700 !important;
}

#classeAgente{
    font-weight: 500 !important;
}

#btnSair{
    width: 100%;
    height: 40px;
    border: none;
    border-radius: 6px;
    background-color: #fff;
    box-shadow: rgb(0, 180, 216);
    font-weight: 600 !important;
}

#menu{
    margin-right: 18vh;
}

#menu > ul{
    display: flex;
    flex-direction: row;
    align-items: center;
    margin-bottom: 0;
    padding-left: 0;
}

#menu > ul > li {
    position: relative;
}

#menu > ul > li > div > a, #menu > ul > li > div > button{
    display: block;
    padding: 40px 15px;
    font-weight: 600 !important;
    white-space: nowrap;
    background-color: transparent;
    border: none;
    color: #fff;

}

#menu > ul > li > div > a > i.bi-chevron-down{
    margin-left: 10px;
}

#menu > ul > li > div > a:hover, #menu > ul > li > div > button:hover{
    background-color: #fff;
    color: rgb(0,119,182) !important;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.3);
}

.collapse-menu{
    position: absolute;
    top: 85px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding-left: 0 !important;
    width: 100%;

    border-radius: 12px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.3);

    background-color: rgb(0, 180, 216);

    opacity: 0;
    overflow: hidden;
    max-height: 0;
}

.collapse-menu > li {
    display: flex;
    text-align: center;
}

.collapse-menu > li > button, .collapse-menu > li > a{
    white-space: normal;
    padding: 15px 20px;
    font-weight: 600 !important;
}


.collapse-menu > li > button:hover, .collapse-menu > li > a:hover{
    background-color: rgb(0,119,182);
}

.liUltimo:hover{
    border-radius: 0 0 12px 12px;
}

.liPrimeiro:hover{
    border-radius: 12px 12px 0 0;
}

@media (max-width: 750px){

    .desktop{
        display: none;
    }

    .mobile{
        display: block;
    }

    #header{
        height: 97vh;
        width: 97%;

        margin: 0 auto;
        left: 0;
        right: 0;
        top: 2.5vh;
        min-width: 280px;
        flex-direction: column;
        justify-content: start;
        /* overflow-y: scroll; */
        border-radius: 12px;
        box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.3);


        /* transform: translateX(-120%); */
        transition: max-width 0.4s ease-in-out;

        opacity: 0;
        max-width: 0;
        max-height: 0;
        overflow: hidden;
    }

    #containerGrupoMenu{
        flex-direction: column;
        align-items: start;
        justify-content: start;
        width: 100%;
        gap: 5px;
        overflow-y: scroll;
    }

    #logo{
        position: relative;
        width: 100%;
        font-size: 2rem !important;
        padding: 0;
        text-align: center;

        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        margin-left: 0;
        box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.3);
        border-radius: 12px;

    }

    #logo > span{
        margin-left: 0;
        display: flex;
        flex-direction: column;
        justify-content: center;
        height: 80px;
    }

    #logo > span > a{
        display: block;
    }

    .closeBarraRight{
        position: absolute;
        top: 22px;
        right: 20px;
        z-index: 101;
        padding: 8px;
        background: none;
        border: none;
        cursor: pointer;
        background-color: #FFF;
        border: none;
        border-radius: 50%;
        color: #000;
        cursor: pointer;
        font-size: 20px !important;
        font-weight: 600 !important;
        box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.3);
    }

    #menu{
        width: 90%;
        margin: 0 auto;
    }

    #menu > ul{
        flex-direction: column;
        align-items: start;
        width: 100%;
        gap: 5px;
    }

    #menu > ul > li{
        width: 100%;
    }

    #menu > ul > li > div > a, #menu > ul > li > div > button{
        display: flex;
        flex-direction: row;
        justify-content: start;
        padding: 15px 0;
        font-weight: 600 !important;
        border-radius: 6px;
        padding-left: 15px;
        padding-right: 25px;
        width: 100%;

    }

    #menu > ul > li > div > a:hover, #menu > ul > li > div > button:hover{
        background-color: #fff;
        color: rgb(0,119,182) !important;
        box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.3);
    }

    .collapse-menu{
        position: relative;
        top: 0;
        width: 100%;
        border-radius: 0;
        background-color: rgb(0, 180, 216);
        color: #fff !important;
        box-shadow: inset 0px 4px 8px rgba(0, 0, 0, 0.3);
    }

    .collapse-menu > li{
        text-align: start;
        width: 100%;
    }
    
    .collapse-menu > li > button, .collapse-menu > li > button > a{
        display: block;
        padding: 10px auto;
        transition: background-color 0.2s ease;
    }

    .collapse-menu > li > button:hover{
        color: #fff !important;
        background-color: #0088cc;
    }

    .liUltimo:hover, .liPrimeiro:hover{
        border-radius: 0;
    }

    #infoUser{
        background-color: transparent;
        right: 0;
        top: 0;
        width: 90%;
        height: auto;
        margin: 0 auto;
        background-size: 50px 50px;
        box-shadow: none;
    }

    #inforUserGroup{
        position: relative;
        left: 0;
        top: 0px;
        background-color: rgb(0,119,182)!important;
        box-shadow: none;
        width: 100%;
        padding: 20px 0;
        gap: 10px;

        opacity: 1;
        max-width: 100%;
        max-height: 100vh;
        overflow: visible;

    }

    #menuSecondary > a:hover{
        background-color: rgb(0,180,216);
        color: #fff !important;
        border-radius: 9px;
    }

    #textInfoUser{
        display: flex;
        flex-direction: row;
        align-items: center;
        gap: 20px;
    }

    #infoUserDados{
        margin-top: 0;
    }

    #menu-btn{
        position: fixed;
        left: 8px;
        top: 8px;
        z-index: 90;
        height: 40px;
        width: 40px;
        border: none;
        background-color: transparent;
        border-radius: 6px;
        color:rgb(0,119,182);
        background-color: rgba(0,119,182, 0.2);
    }
    
    #menu-btn > i{
        font-size: 2rem !important;
    }

    #menu-btn:hover{
        cursor: pointer;
        color: #fff !important;
        background: rgb(0,119,182);
        transition: background 0.3s ease-in;
    }
}
