/*
    --- Versionamento ---
    07/02/2019 - César - Usuários online centralizado no formato responsivo
    19/02/2020 - Andrey - Diminuí a fonte do usuários online
    14/09/2021 - César - Mudança do botão de subir ao topo
    19/05/2023 - César - Mudança na visualização do rodapé em telas grandes.
    27/08/2025 - César - Reestruturação do CSS para novo layout com flexbox e ícones. Sol. 22821
    --- Fim Versionamento ---
*/

#rodape {
    width: 100%;
}

#rodape a {
    color: inherit;
}

.rodape-container-central {
    padding: 20px;
    margin: 0 auto;
    max-width: 1120px;
}

/* Linha 1: Brasão */
.rodape-superior {
    text-align: center;
    padding-bottom: 20px;
    margin-bottom: 20px;
}
#rodape_banner > img {
    max-height: 120px;
    max-width: 100%;
    width: auto;
    height: auto;
    cursor: pointer;
}

/* Linha 2: Conteúdo em 3 Colunas */
.rodape-meio {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    width: 100%;
    padding-bottom: 20px;
}
.rodape-coluna {
    flex: 1;
    min-width: 200px;
}
.rodape-coluna h4 {
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 1.1em;
    font-weight: 600;
}
.info-item, .info-item-vertical {
    line-height: 1.5;
}
.info-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 12px;
}
.info-item-vertical span { display: block; }
.info-item svg {
    margin-right: 10px;
    margin-top: 4px;
    flex-shrink: 0;
}

/* Linha 3: Barra Inferior */
.rodape-inferior {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 15px;
    gap: 20px;
}
#rodape_usuarios_online, .versao-sistema {
    display: flex;
    align-items: center;
    gap: 8px;
}
.redes-sociais { line-height: 1.5; }
.redes-sociais a {
    margin: 0 5px;
    vertical-align: middle;
    transition: opacity 0.2s;
}
.redes-sociais a:hover { opacity: 0.7; }


/* Botão Voltar ao Topo */
button.voltar-ao-topo{
    margin: 0 !important;
    padding: 0 !important;
    background: #fff;
    height: 0px;
    width: 0px;
    overflow: hidden;
    border-radius: 5px;
    color: transparent;
    visibility: hidden;
    position: fixed;
    cursor: pointer;
    border: none;
    right: 50px;
    bottom: 75px;
    z-index: 99;
    transition: all .3s ease-in-out;
}
button.voltar-ao-topo.show {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 50px;
    width: 50px;
    visibility: visible;
    right: 25px;
    bottom: 50px;
    box-shadow: 0px 2px 4px 1px rgba(0, 0, 0, 0.25);
}

@media (max-width: 999px) {
    .rodape-meio, .rodape-inferior {
        flex-direction: column;
        align-items: center;
        gap: 20px;
        text-align: center;
    }
    .rodape-coluna { width: 100%; max-width: 400px; }
    .info-item { justify-content: center; text-align: center; } 
}

@media print {
    #rodape, button.voltar-ao-topo {
        display: none;
    }
}