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

    /* CABEÇALHO */

    .linha-do-cabecalho {
        padding: 0 15px;
        min-height: 47px;
    }

    .linha-do-cabecalho .menu {
        width: 100%;
        margin: 0 -10px 0 20px;
    }

    .menu ul {
        overflow: auto;
        min-height: 47px;
    }

    .trmc .menu ul {
        margin-bottom: -8px;
    }

    @-moz-document url-prefix() {
        .trmc .menu ul {
            margin-bottom: -17px;
        }
    }

    ul::-webkit-scrollbar {
        height: 7px;
    }
    
    ul::-webkit-scrollbar-thumb {
        background-color: var(--cinza12);
        border-radius: 40px;
    }
    
    ul::-webkit-scrollbar-thumb:hover {
        background-color: var(--cinza10);
    }
    
    ul::-webkit-scrollbar-thumb:active {
        background-color: var(--cinza8);
    }

    .menu ul li {
        flex-shrink: 0;
    }

    .menu ul li input[type=checkbox] {
        height: 11px;
        margin: 1px 4px;
    }

    /* FICHA */

    .contentor-da-ficha {
        max-width: 100%;
        padding: 15px;
        margin: auto;
        overflow: auto;
    }

    .cabecalho-da-ficha {
        position: initial;
    }

    .coluna-de-consultas-e-diagnosticos,
    .linha-de-faixas-etarias span:nth-child(1),
    .linha-de-sexo span:nth-child(1),
    .linha-de-assinatura {
        position: -webkit-sticky;
        position: sticky;
        left: -15px;
        background-color: var(--white);
    }

    .linha-de-referencia {
        display: block;
    }

    .aviso-de-uso-de-cookies {
        max-width: 100%;
        right: 0;
    }

    .linha-do-rodape {
        padding: 0 15px;
    }
}

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

    .menu li.imprimir,
    .li-atalhos-do-teclado,
    li.salvar-como-pdf,
    a.print-to-pdf {
        display: none !important;
    }
    
    /* CABEÇALHO */

    .linha-do-cabecalho {
        justify-content: center;
        align-items: center;
    }

    .linha-do-cabecalho .logo > span { 
        display: none;
    }
    
    .linha-do-cabecalho .menu {
        margin: 0;
        display: none;
    }

    .trmc .menu ul {
        margin-bottom: 0 !important;
    }
    
    /* MENU HAMBURGUER */

    .linha-do-cabecalho .hamburguer {
        width: 35px;
        padding: 8px;
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 8.8px;
        left: 7px;  
    }

    .linha-do-cabecalho .hamburguer:active {
        background-color: var(--cinza13);
    }

    .hamburguer div {
        width: 100%;
        height: 2px;
        margin: 1.5px 0;
        background-color: var(--cinza4);
        transition: all 250ms ease;
    }

    .hamburguer.on div:nth-child(1) {
        transform: rotate(-45deg) translate(-4px, 4px);
    }

    .hamburguer.on div:nth-child(2) {
        opacity: 0;
    }

    .hamburguer.on div:nth-child(3) {
        transform: rotate(45deg) translate(-3px, -3px);
    }

    /* ABERTURA DO MENU */

    .linha-do-cabecalho .menu {
        display: block;
        width: 0;
        overflow-x: hidden;
        overflow-y: auto;
        height: 100%;
        position: fixed;
        top: 48px;
        left: 0;
        z-index: 10;
        background: var(--white);
        transition: all 100ms linear;
    }

    .linha-do-cabecalho .menu.on {
        width: 86vw;
        padding-left: 6px;
    }

    .menu ul {
        flex-direction: column;
        align-items: flex-start;
    }

    .menu ul li {
        line-height: 4;
        width: 100%;
        border-bottom: 1px solid var(--cinza13);
    }

    .menu ul li > * {
        display: block;
        width: 100%;
        text-align: left;
        height: 48px;
        display: flex;
        align-items: center;
    }

    .menu ul li.destacar-as-celulas-automaticas input {
        margin-left: 9px;
    }

    /* RODAPÉ */

    #involucro footer {
        padding-bottom: 50px;
    }
    
    .linha-do-rodape {
        flex-direction: column;
    }

    .linha-do-rodape .hiperligacoes {
        width: 100%;
        padding-bottom: 10px;
        border-bottom: 1px dotted var(--cinza10);
    }

    .linha-do-rodape > p {
        margin-top: 20px;
    }

    a.voltar {
        margin: 20px 0 0 -5px;
    }

    /* COOKIES */

    .aviso-de-uso-de-cookies {
        bottom: 0 !important;
    }

    /* DESFOQUE PARCIAL DO FUNDO */
    .desfoque-do-fundo.parcial.on {
        top: 48px;
    }

    /* MANIPULAÇÃO DO MENU */

    /* Esvaziar ficha */

    .caixa-de-confirmacao {
        min-width: 300px;
        right: calc(50vw - 310.28px / 2);
        overflow: auto;
    }

    .caixa-de-confirmacao ul li {
        align-items: center;
    }

    .caixa-de-confirmacao ul li label {
        flex: 1;
        min-height: 25px;
        display: flex;
        align-items: center;
    }

    /* FEEDBACK PARA CÉLULAS VERMELHAS */
    
    .razao-pelas-celulas-com-fundo-vermelho {
        width: 100%;
        max-width: 100%;
        max-height: 86vh;
        overflow: auto;
        top: initial !important;
        bottom: 0;
        right: 0;  
    }

    .seccao-de-interatividade > button {
        right: 15px;
    }
}

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

    .linha-do-cabecalho .logo > strong:nth-child(1){ 
        display: none;
    }

    .linha-do-cabecalho .logo > strong:nth-child(2){ 
        display: initial;
    }
}

@media screen and (max-width: 345px) {
    
    .linha-do-cabecalho {
        justify-content: flex-end;
    }

    .linha-do-cabecalho .logo {
        font-size: 0.875rem !important;
    }

    .linha-do-cabecalho .menu.on {
        top: 44px;
    }

    .linha-de-referencia {
        font-size: 0.6875rem;
    }
    .referencia h3 b.referencia {
        display: none;
    }

    .referencia h3 b.ref {
        display: initial;
    }
}

@media screen and (max-height: 428px) {
    .caixa-de-confirmacao ul  {
        max-height: 80px;
        overflow: auto;
    }

    .caixa-de-confirmacao {
        top: calc(50vh - 343px / 2);
        right: calc(50vw - 326.33px / 2);
    }
}