﻿
/* Somente celular */
@media(max-width: 768px) {
    .paginaForm {
        order: 1 !important;
    }

    .painelMinimizavel {
        order: 2 !important;
    }

    .MESATRABALHO.painelColapsado, .iframe-is-mobile .painelMinimizavel.painelColapsado[data-tipoPainel="ETAPA"] {
        display: none !important;
    }

}


@media (min-width: 768px) and (max-width: 1200px) {
    .paginaForm {
        order: 2 !important;
    }

    .painelMinimizavel {
        order: 1 !important;
    }

}

@media (max-width: 1200px) {
    html {
        font-size: 16px;
    }

    .sidebar.expanded {
        width: 100% !important;
    }

    #selecaoPerfil {
        width: 100vw !important;
    }

    #header-evento, #header-etapa {
        padding-top: .1rem !important;
        padding-bottom: .5rem !important;
    }

    #footer-nav, #header-nav {
        display: flex !important;
    }

    .altura-tela, .scroll-interno {
        max-height: calc(100vh - 60px) !important;
        height: calc(100vh - 60px) !important;
    }

    .altura-tela-evento, .scroll-interno {
        max-height: calc(100vh - 60px) !important;
        height: calc(100vh - 60px) !important;
    }

    .foco-sem-header {
        position: relative;
        top: 0px !important;
        padding-bottom: 60px !important;
    }

    .escondido {
        display: none !important;
    }

    .com-espaco-sidebar {
        position: relative;
        left: 0 !important;
    }

    /* Remove paddings para reajustar a tela */
    .container-body, .container-abasAbertas, .row, .MESATRABALHO, .ETAPA {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    .row, body.is-mobile .MESATRABALHO, body.is-mobile .ETAPA, #container-menu-icones .sidebar-item {
        margin: 0 !important;
    }

    #container-menu-icones .sidebar-item {
        padding: 0;
    }

    .MESATRABALHO.painelColapsado {
        display: none !important;
    }

    body.is-mobile .container-body, body.is-mobile .container-abasAbertas, #paginaInicial {
        /*padding-top: 90px !important;*/
        padding-bottom: 70px !important;
    }

    body.is-mobile .container-body {
        min-width: 100%;
        overflow-x: hidden;
    }

    body.is-mobile .container-abasAbertas {
        min-width: 100%;
    }

    .ETAPA iframe {
        width: 100vw !important;
    }

    #layoutIndex {
        padding: 0 !important;
        margin: 0 !important;
        width: 100vw;
        overflow-x: hidden;
    }

    .container-body {
        width: 100vw;
        padding: 0;
        position: relative;
        top: 0px !important;
        bottom: 70px !important;
    }

    body.is-mobile .sidebar {
        display: none;
    }

    body.is-mobile #etapa-container {
        padding-top: 10px;
        width: 100vw;
        height: calc(100vh - 60px);
    }

    body.is-mobile #etapa-container-wrapper {
        margin-left: 0px !important;
    }

    body.is-mobile .MESATRABALHO {
        order: 3;
    }

    body.is-mobile .ETAPA {
        order: 2;
    }

    body.is-mobile .MESATRABALHO:not(.painelColapsado) {
        width: 100vw;
        height: 100%;
    }

    body.is-mobile .ETAPA:not(.painelColapsado) {
        width: 100vw;
        height: 100%;
        padding: 0;
    }

    #area-default, #cards-container, #painel-conteudo {
        order: 3 !important;
    }
    
    body.is-mobile .container-body {
        padding-right: 0;
        padding-left: 0;
        width: 100vw;
    }

        body.is-mobile .container-body.row {
            margin-right: 0 !important;
            margin-left: 0 !important;
            display: flex;
            width: 100vw;
        }

    body.is-mobile .noticiaPaginaInicial, .noticiaPaginaInicial .card-body {
        padding-right: 0 !important;
        padding-left: 0 !important;
    }

        body.is-mobile .noticiaPaginaInicial .conteudo-noticia, body.is-mobile .noticiaPaginaInicial .header-noticia {
            padding-right: 1rem !important;
            padding-left: 1rem !important;
        }


    .noticiaPaginaInicial:first-child {
        margin-top: 0;
    }

    #layoutContainer{
        flex-direction: column;
    }

    #header-nav {
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        background: white;
        align-items: center;
        justify-content: space-around;
        z-index: 1050;
    }

    #header-nav-wrapper {
        position: relative !important;
    }

    #footer-nav-wrapper {
        display: flex;
        position: absolute;
        top: auto !important;
        bottom: 0;
        left: 0;
        height: 60px !important;
    }

    #container-menu-icones {
        display: flex;
        flex-direction: row !important;
        justify-content: space-between;
        position: absolute;
        top: auto !important;
        bottom: 0;
        left: 0;
        width: 100% !important;
        height: 60px !important;
        background: white;
        border-top: 1px solid #dee2e6;
        box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.08);
        align-items: center;
        justify-content: space-around;
        z-index: 9;
    }


    .divider {
        width: 15%;
        height: 5px;
        background-color: #606060;
        margin: 20px 0;
        border-radius: 4.5px;
    }


    .footer-nav-btn {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 2px;
        background: none;
        border: none;
        cursor: pointer;
        padding: 6px 8px;
        border-radius: 8px;
        position: relative;
        color: #555;
        font-size: 0.65rem;
        transition: background 0.15s;
    }

        .footer-nav-btn img {
            width: 22px;
            height: 22px;
        }

        .footer-nav-btn:hover {
            background: #f0f0f0;
        }

        .footer-nav-btn i {
            font-size: 1.3rem;
        }

        .footer-nav-btn .sair {
            font-size: 1.3rem;
        }

        .footer-nav-btn .badge-footer {
            position: absolute;
            top: 2px;
            right: 4px;
            background: #dc3545;
            color: white;
            font-size: 0.6rem;
            border-radius: 50%;
            width: 16px;
            height: 16px;
            display: flex;
            align-items: center;
            justify-content: center;
        }

    .configuracoes, .painelNotificacao {
        width: 100% !important;
    }
}
