/* ==========================================================================
   CONFIGURAÇÕES GERAIS E RESETS
   ========================================================================== */

/* SweetAlert Global */
.swal2-popup {
    font-size: 14px !important;
    font-family: Tahoma, Geneva, sans-serif;
}

li {
    list-style-type: none;
}

a {
    text-decoration: none;
    text-align: center;
    border: none;
    color: rgb(220, 220, 220);
    white-space: nowrap;
    transition: color 0.2s ease-in-out;
}

a:hover {
    color: rgb(255, 255, 255);
}

/* Imagens */
.imagem_fundo {
    display: block;
    width: 100%;
    height: auto;
}

.principal_imagem {
    position: relative;
    display: inline-block;
    padding: 2px;
    margin: 3px 0;
    vertical-align: middle;
    width: auto;
    height: auto;
}

/* ==========================================================================
   ESTRUTURAS DE TÍTULOS E CONTAINERES
   ========================================================================== */

.titulo_principal {
    position: relative;
    display: block;
    margin: 10px 5px 2px 5px;
    padding: 15px 5px;
    text-align: center;
    font-family: "Tahoma", sans-serif;
    font-weight: bold;
    font-size: 24px;
    color: rgb(150, 150, 150);
    background: rgb(255, 255, 255);
}

.div_titulo_formulario {
    position: relative;
    display: flex;
    align-items: center;
    border: 3px solid rgb(139, 177, 205);
    border-radius: 10px;
    margin: 2px 2px 5px 2px;
    min-height: 50px;
    padding: 8px 15px;
    font-family: "Arial Black", sans-serif;
    font-weight: bold;
    font-size: 18px;
    color: rgb(255, 255, 255);
    background-image: linear-gradient(rgb(152, 186, 211), rgb(27, 93, 138) 70%);
}

.div_subtitulo_formulario {
    position: relative;
    display: flex;
    align-items: center;
    border: 3px solid rgb(139, 177, 205);
    border-radius: 10px;
    margin: 1px 1px 2px 2px;
    min-height: 40px;
    padding: 5px 12px;
    font-family: "Arial Black", sans-serif;
    font-weight: bold;
    font-size: 14px;
    color: rgb(255, 255, 255);
    background-image: linear-gradient(rgb(152, 186, 211), rgb(27, 93, 138) 70%);
}

.div_formulario {
    position: relative;
    display: block;
    border: 2px solid rgb(200, 200, 200);
    border-radius: 5px;
    margin: 10px 3px 3px 3px;
    padding: 15px;
    text-align: left;
    background-color: rgb(255, 255, 255);
    width: 100%;
}

.div_formulario_invisivel {
    position: relative;
    border: none;
    margin: 0 3px 0 12px;
    padding: 10px;
    text-align: left;
    background-color: rgb(255, 255, 255);
}

.caixa_pesquisar {
    position: relative;
    background-color: rgb(235, 235, 235);
    color: rgb(150, 150, 150);
    border: 2px solid rgb(200, 200, 200);
    border-radius: 8px;
    margin: 6px 4px 2px 4px;
    padding: 15px;
    font-family: "Tahoma", sans-serif;
    font-size: 14px;
    width: 100%;
}

/* Login Responsivo */
.div_formulario_login {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border: 2px solid rgb(200, 200, 200);
    border-radius: 5px;
    width: 90%;
    max-width: 320px;
    padding: 20px;
    background-color: rgb(255, 255, 255);
    box-shadow: 6px 6px 12px rgba(0, 0, 0, 0.15);
    z-index: 1000;
}

/* ==========================================================================
   MENUS E TABELAS
   ========================================================================== */

.div_menu_estilo {
    position: relative;
    display: flex;
    align-items: center;
    margin: 1px 2px 2px 2px;
    padding: 8px 12px;
    border: 3px solid rgb(200, 200, 200);
    border-radius: 10px;
    min-height: 55px;
    background-image: linear-gradient(rgb(220, 210, 210), rgb(110, 110, 110) 70%);
}

.menu_tabela_principal {
    display: flex;
    align-items: center;
    margin: 10px 5px 2px 5px;
    padding: 4px;
    font-family: "Tahoma", sans-serif;
    font-weight: bold;
    font-size: 14px;
    white-space: nowrap;
}

.menu_tabela {
    display: block;
    margin: 2px;
    padding: 0;
    font-family: "Tahoma", sans-serif;
    font-weight: bold;
    font-size: 16px;
}

/* Contêineres de Tabela Scrolláveis */
.div_tabela {
    position: relative;
    display: block;
    margin: 5px;
    padding: 3px;
    overflow-x: auto;
    overflow-y: auto;
    border: 2px solid rgb(200, 200, 200);
    border-radius: 5px;
    max-height: 80vh;
    background-color: rgb(255, 255, 255);
}

.div_tabela_pequena {
    position: relative;
    display: block;
    margin: 5px auto;
    padding: 3px;
    overflow-x: auto;
    overflow-y: auto;
    border: 2px solid rgb(200, 200, 200);
    border-radius: 5px;
    height: 45vh;
    background-color: rgb(255, 255, 255);
}

/* Estilos de Células e Cabeçalhos */
td {
    border: 1px solid rgb(200, 200, 200);
    padding: 6px;
}

.titulo_tabela {
    position: sticky;
    top: 0;
    z-index: 2;
    border: 2px solid rgb(180, 180, 180);
    line-height: 30px;
    padding: 10px;
    font-family: "Arial Black", sans-serif;
    font-weight: bold;
    font-size: 18px;
    color: rgb(255, 255, 255);
    background-image: linear-gradient(rgb(152, 186, 211), rgb(27, 93, 138) 70%);
}

.subtitulo_tabela {
    border: 2px solid rgb(180, 180, 180);
    padding: 8px;
    font-family: "Tahoma", sans-serif;
    font-weight: bold;
    font-size: 14px;
    color: rgb(128, 128, 128);
    background-color: rgb(220, 220, 220);
}

.cabecalho_tabela {
    position: sticky;
    top: 50px;
    z-index: 2;
    padding: 6px;
    font-family: "Tahoma", sans-serif;
    font-size: 14px;
    font-weight: bold;
    white-space: nowrap;
    color: rgb(245, 245, 245);
    background: rgb(130, 130, 130);
}

.linha_clara_tabela {
    line-height: 25px;
    padding: 6px;
    font-family: "Tahoma", sans-serif;
    font-size: 14px;
    color: rgb(50, 50, 50);
    background: rgb(255, 255, 255);
}

.linha_escura_tabela {
    line-height: 25px;
    padding: 6px;
    font-family: "Tahoma", sans-serif;
    font-size: 14px;
    color: rgb(50, 50, 50);
    background: rgb(211, 231, 240);
}

.rodape_tabela {
    border: 1px solid rgb(180, 180, 180);
    line-height: 30px;
    padding: 6px;
    font-family: "Tahoma", sans-serif;
    font-size: 14px;
    font-weight: bold;
    color: rgb(100, 100, 100);
    background: rgb(220, 220, 220);
}

/* ==========================================================================
   CAMPOS DE FORMULÁRIO E RÓTULOS
   ========================================================================== */

.rotulo_campo {
    display: inline-block;
    margin: 2px 1px 2px 2px;
    font-family: "Tahoma", sans-serif;
    font-size: 15px;
    font-weight: bold;
    color: rgb(128, 128, 128);
}

.rotulo_campoobrig {
    display: inline-block;
    font-family: "Tahoma", sans-serif;
    font-weight: bold;
    font-size: 15px;
    color: rgb(255, 0, 0);
}

.rotulo_aviso {
    font-family: "Tahoma", sans-serif;
    font-size: 13px;
    color: rgb(255, 0, 0);
}

/* Inputs, Selects e Textareas */
.campo_texto, 
.campo_combo, 
.campo_valor {
    border: 1px solid rgb(150, 150, 150);
    border-radius: 6px;
    height: 38px;
    padding: 6px 10px;
    margin-bottom: 5px;
    font-family: "Tahoma", sans-serif;
    font-size: 14px;
    color: rgb(50, 50, 50);
    background-color: rgb(255, 255, 255);
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.campo_valor {
    font-weight: bold;
}

.campo_textarea {
    border: 1px solid rgb(150, 150, 150);
    border-radius: 6px;
    padding: 8px;
    font-family: "Tahoma", sans-serif;
    font-size: 14px;
    color: rgb(100, 100, 100);
    background: rgb(255, 255, 255);
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.campo_texto:focus, 
.campo_combo:focus, 
.campo_valor:focus, 
.campo_textarea:focus {
    color: #212529;
    background-color: #fff;
    border-color: #609ffe;
    outline: 0;
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.2);
}

/* Checkbox */
.checkbox {
    cursor: pointer;
    accent-color: #2173ab;
}

/* ==========================================================================
   BOTÕES CUSTOMIZADOS
   ========================================================================== */

.botao_comando, 
.botao_comandocinza, 
.botao_comandopequeno, 
.botao_comandonatabela, 
.botao_lateralcampo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-style: solid;
    border-width: 2px;
    border-radius: 8px;
    font-family: "Tahoma", sans-serif;
    font-weight: bold;
    cursor: pointer;
    text-align: center;
    transition: all 0.2s ease-in-out;
}

.botao_comando {
    border-color: rgb(139, 177, 205);
    height: 38px;
    padding: 0 15px;
    font-size: 14px;
    color: rgb(255, 255, 255);
    background-image: linear-gradient(rgb(152, 186, 211), rgb(27, 93, 138) 70%);
}

.botao_comandocinza {
    border-color: rgb(125, 125, 125);
    height: 38px;
    padding: 0 15px;
    font-size: 14px;
    color: rgb(240, 240, 240);
    background-image: linear-gradient(rgb(125, 125, 125), rgb(100, 100, 100) 70%);
}

.botao_comandopequeno {
    border-color: rgb(139, 177, 205);
    height: 38px; /* Igualado à altura dos inputs (campo_texto e campo_combo) */
    padding: 0 12px; /* Espaçamento interno ajustado */
    font-size: 12px;
    color: rgb(255, 255, 255);
    background-image: linear-gradient(rgb(152, 186, 211), rgb(27, 93, 138) 70%);
    vertical-align: bottom; /* Alinha a base do botão com a base dos inputs */
    margin-bottom: 5px; /* Compensa a margem inferior que os inputs possuem */
}

.botao_comandonatabela {
    border-color: rgb(139, 177, 205);
    height: 28px;
    padding: 0 8px;
    font-size: 12px;
    color: rgb(255, 255, 255);
    background-image: linear-gradient(rgb(152, 186, 211), rgb(27, 93, 138) 70%);
}

.botao_lateralcampo {
    border-color: rgb(139, 177, 205);
    height: 38px;
    width: 38px;
    font-size: 12px;
    color: rgb(255, 255, 255);
    background-image: linear-gradient(rgb(152, 186, 211), rgb(27, 93, 138) 70%);
}

.botao_comando:hover, 
.botao_comandocinza:hover, 
.botao_comandopequeno:hover, 
.botao_comandonatabela:hover, 
.botao_lateralcampo:hover {
    filter: brightness(1.15);
}

.botao_fechar {
    float: right;
    font-size: 20px;
    font-weight: bold;
    color: rgb(200, 200, 200);
    cursor: pointer;
}

.botao_fechar:hover {
    color: rgb(255, 0, 0);
}

/* ==========================================================================
   MEDIA QUERIES (DESKTOP E DISPOSITIVOS MAIORES)
   ========================================================================== */

@media (min-width: 768px) {
    .titulo_principal {
        font-size: 28px;
        text-align: left;
    }

    .rotulo_ropade_tela {
        text-align: left;
        text-indent: 10px;
    }

    .botao_comandopequeno {
        width: auto;
    }
}