/* =========================================================
   MENU.CSS
   MENU INTRANET
   ========================================================= */


/* =========================================================
   GOOGLE FONT
   ========================================================= */

@import url("https://fonts.googleapis.com/css2?family=Ubuntu+Mono:ital,wght@0,400;0,700;1,400;1,700&display=swap");


/* =========================================================
   GERAL
   ========================================================= */

* {
    font-family: "Ubuntu Mono", monospace;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}


html {
    overflow-x: hidden;
}


body {
    background-color: lavender;
    height: 92%;
    overflow-x: hidden;
}


/* =========================================================
   BOTÃO HAMBÚRGUER
   ========================================================= */

.abrir-menu {
    position: relative;
}


.abrir-menu .menu-btn {
    position: absolute;
    left: 20px;
    top: 10px;

    height: 30px;
    width: 50px;

    background: red;

    border-radius: 5px;

    cursor: pointer;

    color: lavender;

    display: flex;
    align-items: center;
    justify-content: center;

    transition: 0.5s ease;

    z-index: 999;
}


.abrir-menu .menu-btn i {
    font-size: 15px;
    position: absolute;
    font-weight: bold;
    transition: 1s ease;
}


/* =========================================================
   MENU LATERAL
   ========================================================= */

.abrir-menu .sidebar {
    position: fixed;

    top: 50px;
    left: -400px;

    height: 94%;
    width: 255px;

    background-color: lavender;

    overflow-y: auto;
    overflow-x: hidden;

    word-wrap: break-word;

    display: block;

    font-weight: bold;

    padding-left: 20px;

    list-style-type: none;

    transition: all 0.3s linear;
}


.abrir-menu #btn:checked ~ .sidebar {
    left: -10px;
}


.abrir-menu:hover .sidebar {
    left: -10px;
}


.sidebar #fmenu {
    width: 100%;
}


/* =========================================================
   LINKS
   ========================================================= */

.link_layerA:link,
.link_layerA:visited {
    text-decoration: none;
    font-weight: bold;
    color: blue;
    font-size: 12px;
}


.link_layerB:link,
.link_layerB:visited {
    text-decoration: none;
    color: red;
    font-size: 12px;
}


.link_layerC:link,
.link_layerC:visited {
    text-decoration: none;
    color: black;
    font-weight: bold;
    font-size: 12px;
}


.link_layerD:link,
.link_layerD:visited {
    text-decoration: none;
    color: #9c640c;
    font-size: 12px;
}


/* =========================================================
   LAYERS
   ========================================================= */

.layer1 {
    list-style: none;

    background-image:
        linear-gradient(
            #d8ded6,
            #d8ded6,
            #cac2f7
        );

    border-radius: 5px;

    padding: 0 2px 0 10px;

    box-shadow:
        2px 2px 2px 2px #cac2f7;

    width: 60%;
}


.layer2,
.layer3,
.layer4,
.layer5 {
    padding: 0 2px 0 10px;

    list-style: none;

    display: none;
}


/* =========================================================
   BOTÕES FIXOS
   ========================================================= */

.btn_fixo a {
    color: red;
    text-decoration: none;
}


.btn_fixo:hover a {
    color: blue;
    text-decoration: none;
}


.btn_fixo:visited a {
    color: red;
}


/* =========================================================
   IFRAMES
   ========================================================= */

#fheader {
    width: 100%;
    height: 50px;
    border: none;
}


#fmain {
    width: 100%;
    height: 880px;
    border: none;
}


#filial {
    text-align: inherit;
    font-size: 15px;
    font-weight: bold;
    border: 1px solid black;
}


#fmenu {
    width: 100%;
    height: 4100px;
    border: none;
}


/* =========================================================
   FORM
   ========================================================= */

form {
    padding: 10px 0 0 200px;
    font-weight: bold;
    background-color: lavender;
    width: 100%;
}


/* =========================================================
   SPAN LEGADO
   ========================================================= */

span {
    color: green;
    position: absolute;
    padding-left: 315px;
}


/* =========================================================
   IP
   ========================================================= */

#ip {
    color: red;

    font-size: 12px;

    font-weight: bold;

    padding: 5px 5px 5px 90px;

    background-image:
        linear-gradient(
            #d8ded6,
            #d8ded6,
            #cac2f7
        );

    box-shadow:
        2px 2px 2px 2px #cac2f7;

    width: 360px;

    border-radius: 5px;
}


/* =========================================================
   LOGIN
   ========================================================= */

.pmlogin {
    text-align: center;
    font-size: 15px;
    font-weight: bold;
}


.mlogin {
    color: blue;
    font-size: 15px;
    font-weight: bold;
}


.tmlogin label {
    color: red;
    font-size: 15px;
    font-weight: bold;
}


.tmlogin .buton {
    color: #ffffff;

    font-size: 10px;

    padding: 2px 20px;

    font-weight: bolder;

    background-color: red;

    border-radius: 5px;

    text-align: center;

    align-items: center;
}


/* =========================================================
   CHECKBOX
   ========================================================= */

input[type="checkbox"] {
    display: none;
}


input:checked ~ .layer2,
input:checked ~ .layer3,
input:checked ~ .layer4,
input:checked ~ .layer5 {
    display: block;
}


/* =========================================================
   PESQUISA
   ========================================================= */

.menu-pesquisa {
    width: 180px;

    margin: 5px 0 7px 8px;

    padding: 0;

    font-family: "Ubuntu Mono", monospace;

    font-size: 12px;

    font-weight: 400;

    overflow: visible;
}


/* =========================================================
   CAIXA DA PESQUISA
   ========================================================= */

.menu-pesquisa-box {
    display: flex;

    align-items: center;

    width: 180px;

    height: 30px;

    margin: 0;

    padding: 0;

    background-color: #ffffff;

    border: 2px solid #777777;

    border-radius: 5px;

    box-sizing: border-box;

    overflow: hidden;

    cursor: text;

    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}


/* =========================================================
   FOCO
   ========================================================= */

.menu-pesquisa-box:focus-within {
    border-color: #4b4be8;

    box-shadow:
        0 0 0 2px rgba(75, 75, 232, 0.15);
}


/* =========================================================
   LUPA
   ========================================================= */

.menu-pesquisa .menu-pesquisa-icon {
    position: static !important;

    display: flex;

    align-items: center;

    justify-content: center;

    width: 28px;

    min-width: 28px;

    height: 26px;

    margin: 0;

    padding: 0 !important;

    color: #555555;

    font-family: "Ubuntu Mono", monospace;

    font-size: 14px;

    line-height: 26px;

    cursor: text;
}


/* =========================================================
   INPUT
   ========================================================= */

#menuPesquisa {
    flex: 1;

    display: block !important;

    width: auto !important;

    min-width: 0 !important;

    height: 26px !important;

    margin: 0 !important;

    padding: 3px 4px !important;

    border: 0 !important;

    outline: none !important;

    background-color: #ffffff !important;

    font-family: "Ubuntu Mono", monospace !important;

    font-size: 12px !important;

    font-weight: 400 !important;

    line-height: 20px !important;

    color: #000000 !important;

    cursor: text;
}


#menuPesquisa::placeholder {
    color: #666666;

    opacity: 1;

    font-family: "Ubuntu Mono", monospace;

    font-size: 12px;
}


/* =========================================================
   BOTÃO X
   ========================================================= */

#limparPesquisa {
    display: none;

    width: 24px;

    min-width: 24px;

    height: 26px;

    margin: 0;

    padding: 0;

    border: 0;

    background-color: transparent;

    color: #666666;

    font-family: "Ubuntu Mono", monospace;

    font-size: 16px;

    line-height: 26px;

    text-align: center;

    cursor: pointer;
}


#limparPesquisa.ativo {
    display: block;
}


#limparPesquisa:hover {
    color: #000000;
    background-color: #eeeeee;
}


/* =========================================================
   CONTADOR
   ========================================================= */

#menuPesquisaInfo {
    display: none;

    width: 180px;

    min-height: 18px;

    margin: 0;

    padding: 2px 5px;

    background-color: #eeeeee;

    border-left: 1px solid #bbbbbb;

    border-right: 1px solid #bbbbbb;

    box-sizing: border-box;

    color: #555555;

    font-family: "Ubuntu Mono", monospace !important;

    font-size: 10px !important;

    font-weight: 400 !important;

    line-height: 13px !important;

    white-space: nowrap;

    overflow: hidden;

    text-overflow: ellipsis;
}


#menuPesquisaInfo.ativo {
    display: block;
}


/* =========================================================
   ÁREA DE RESULTADOS
   ========================================================= */

#menuResultados {
    display: none;

    width: 180px;

    /*
       Todos os resultados existem aqui.
       A altura visual permanece limitada.
    */
    max-height: 170px;

    margin: 0;

    padding: 0;

    background-color: lavender;

    border: 1px solid #bbbbbb;

    box-sizing: border-box;

    overflow-y: auto;

    overflow-x: hidden;
}


#menuResultados.ativo {
    display: block;
}


/* =========================================================
   LINHA
   ========================================================= */

.menu-resultado-linha {
    display: block;

    width: 100%;

    min-height: 23px;

    margin: 0;

    padding: 0 5px;

    box-sizing: border-box;

    background-image:
        linear-gradient(
            #d8ded6,
            #d8ded6,
            #cac2f7
        );

    border-bottom: 1px solid #cac2f7;

    overflow: hidden;
}


/* =========================================================
   LINK RESULTADO
   ========================================================= */

.menu-resultado-link,
.menu-resultado-link:link,
.menu-resultado-link:visited {
    display: block !important;

    width: 100% !important;

    height: 23px;

    margin: 0 !important;

    padding: 4px 0 !important;

    font-family: "Ubuntu Mono", monospace !important;

    font-size: 12px !important;

    line-height: 15px !important;

    text-decoration: none !important;

    white-space: nowrap !important;

    overflow: hidden !important;

    text-overflow: ellipsis !important;
}


.menu-resultado-linha:hover {
    background-image: none;

    background-color: #eeeeff;
}


/* =========================================================
   SCROLL RESULTADOS
   ========================================================= */

#menuResultados::-webkit-scrollbar {
    width: 7px;
}


#menuResultados::-webkit-scrollbar-track {
    background-color: #eeeeee;
}


#menuResultados::-webkit-scrollbar-thumb {
    background-color: #999999;

    border-radius: 4px;
}


#menuResultados::-webkit-scrollbar-thumb:hover {
    background-color: #777777;
}


/* =========================================================
   TABLET
   ========================================================= */

@media screen and (max-width: 900px) {

    #fheader {
        width: 100%;
        height: 85px;
        border: none;
    }


    .sidebar #fmenu {
        padding: 30px 0 0 0;
        border: none;
    }


    .abrir-menu .menu-btn {
        top: 50px;
    }


    .abrir-menu:hover {
        right: 70px;
    }


    body {
        display: inline;
        background-color: lavender;
    }


    form {
        display: inline;
        background-color: lavender;
    }


    td .mlogin {
        position: absolute;
        display: inline;
    }


    .mllogin {
        position: absolute;
        top: 5px;
    }


    .buton {
        right: 10px;
    }
}


/* =========================================================
   CELULAR / IFRAME ESTREITO
   ========================================================= */

@media screen and (max-width: 450px) {

    body {
        display: inline;

        background-color: lavender;

        font-family:
            "Ubuntu Mono",
            monospace;
    }


    form {
        display: inline;
        background-color: lavender;
    }


    .link_layerA,
    .link_layerB,
    .link_layerC,
    .link_layerD {
        font-size: 12px;
    }


    .menu-pesquisa {
        width: 180px;
    }


    .menu-pesquisa-box {
        width: 180px;
    }


    #menuPesquisa {
        font-size: 12px !important;
    }


    #menuPesquisaInfo {
        font-size: 10px !important;
    }


    #menuResultados {
        width: 180px;
    }


    .menu-resultado-link,
    .menu-resultado-link:link,
    .menu-resultado-link:visited {
        font-size: 12px !important;
    }
}