/* ===================================================
   IA Widget
   =================================================== */
.btn-ia-flutuante {
    position: fixed !important;
    bottom: 20px !important;
    right: 20px !important;
    z-index: 9999 !important;
    width: 55px !important;
    height: 55px !important;
    border-radius: 50% !important;
    background-color: #007bff !important;
    border: none !important;
    box-shadow: 0px 5px 10px rgba(0, 0, 0, 0.7) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    padding: 0 !important;
    margin: 0 !important;
}

.btn-ia-flutuante:hover {
    background-color: #0056b3 !important;
}

.btn-ia-flutuante span {
    font-size: 24px;
    line-height: 1;
}

#prompt {
    width: 100% !important;
    resize: vertical !important;
    min-height: 80px;
}

/* ==========================================================================
   CONFIGURAÇÕES GERAIS E RESETS
   ========================================================================== */

html, body {
    margin: 0;
    padding: 0;
    overflow-x: hidden; /* Evita rolagem horizontal indesejada */
}

/* SweetAlert Global */
.swal2-popup {
    title: 'AVISO';
    titleText: 'AVISO';
    background: '#ffffff';
    allowOutsideClick: false;
    showConfirmButton: true;
    confirmButtonColor: '#2173ab';
    cancelButtonColor: '#a9a9a9';
    timer: 50000;
    timerProgressBar: true;
    font-size: 14px !important;
    font-family: Tahoma, 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;
    border: 0px;
    margin: 10px 5px 2px 5px;
    padding: 15px 5px;
    text-align: center;
    font-family: "Tahoma", sans-serif;
    font-weight: bold;
    font-size: 22px;
    color: rgb(150, 150, 150);
    background: rgb(255, 255, 255);
}

.div_titulo_formulario {
    position: relative;
    display: flex;
    align-items: center;
    border: 4px solid rgb(139, 177, 205);
    border-radius: 10px;
    margin: 2px -4px 5px 2px;
    min-height: 50px;
    padding: 8px 15px;
    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%);
    box-shadow: 0px 5px 10px rgba(0, 0, 0, 0.7);
}

.div_subtitulo_formulario {
    position: relative;
    display: flex;
    align-items: center;
    border: 3px solid rgb(139, 177, 205);
    border-radius: 10px;
    margin: 2px 1px 2px 2px;
    min-height: 40px;
    padding: 5px 14px;
    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%);
    box-shadow: 0px 5px 10px rgba(0, 0, 0, 0.7);    
}

.div_formulario {
    position: relative;
    display: block;
    width: 100%;
    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);
    box-shadow: 0px 5px 10px rgba(0, 0, 0, 0.7);
}

.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-image: linear-gradient(to bottom, rgb(240, 240, 240) 20%, rgb(210, 210, 210) 70%);
    color: rgb(200, 200, 200);
    border: 2px solid rgb(200, 200, 200);
    border-radius: 8px;
    margin: 10px 4px 2px 4px;
    padding: 15px 15px 5px 15px; /* Alterado o padding inferior para 5px */
    font-family: "Tahoma", sans-serif;
    font-size: 14px;
    width: 100%;
    box-shadow: 0px 5px 10px rgba(0, 0, 0, 0.7);
}

.quadro {
    display: flex;
    flex-wrap: wrap;
    background-color: rgb(235, 235, 235);
    color: rgb(150, 150, 150);
    border: 2px solid rgb(200, 200, 200);
    border-radius: 8px;
    margin: 10px 10px 10px 0px;
    padding: 10px 2px 10px 2px;
    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: 0px 5px 10px rgba(0, 0, 0, 0.7);
    z-index: 1000;
}

/* ==========================================================================
   MENUS E TABELAS
   ========================================================================== */


/* Estilização das abas (ativa vs inativa) */
    
.nav-tabs .nav-link {
    min-width: 200px;
    width: auto;
    background-color: rgb(200, 200, 200);
    color: rgb(100, 100, 100);
    border-radius: 13px 0px 0px 0px;
}
.nav-tabs .nav-link.active {
    min-width: 200px;
    width: auto;
    background-color: #fff;
    color: rgb(255, 255, 255);
    border-radius: 13px 0px 0px 0px;
}

.div_menu_estilo {
    position: relative;
    display: flex;
    align-items: center;
    margin: 1px 2px 2px 2px;
    padding: 4px 12px;
    border: 3px solid rgb(200, 200, 200);
    border-radius: 10px;
    min-height: 52px;
    background-image: linear-gradient(rgb(220, 210, 210), rgb(110, 110, 110) 70%);
    box-shadow: 0px 5px 10px rgba(0, 0, 0, 0.7);
    line-height:22px;
}

.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: 14px;
}

/* 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(215, 215, 215);
    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);
    font-family: "Tahoma", sans-serif;
    font-size: 14px;
    font-weight: normal;
    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: 14px;
    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(145, 145, 145);
    line-height:30px;
}

.linha_clara_tabela {
    padding: 6px;
    font-family: "Tahoma", sans-serif;
    font-size: 14px;
    color: rgb(50, 50, 50);
    background: rgb(255, 255, 255);
    line-height: 30px;    
}

.linha_escura_tabela {
    padding: 6px;
    font-family: "Tahoma", sans-serif;
    font-size: 14px;
    color: rgb(50, 50, 50);
    background: rgb(210, 235, 245, 0.5);
    line-height: 30px;    
}

.rodape_tabela {
    border: 1px solid rgb(160, 160, 160);
    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: 14px;
    font-weight: bold;
    color: rgb(128, 128, 128);
}

.rotulo_campoobrig {
    display: inline-block;
    font-family: "Tahoma", sans-serif;
    font-weight: bold;
    font-size: 14px;
    color: rgb(255, 0, 0);
}

.rotulo_aviso {
    font-family: "Tahoma", sans-serif;
    font-size: 14px;
    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 {
    font-family: "Tahoma", sans-serif;
    font-size: 14px;
    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;
}

/* Radio Button */
.radio {
    cursor: pointer;
    accent-color: #0064FF; /* Cor da bola e do destaque quando selecionado */
    height: 15px;
    width: 15px;
}

/* ==========================================================================
   BOTÕES CUSTOMIZADOS
   ========================================================================== */

.botao_comando, 
.botao_comandocinza, 
.botao_comandopequeno,
.botao_comandopequenocinza,
.botao_adicionarpequeno,
.botao_removerpequeno,
.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-size: 12px;
    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 10px;
    font-size: 12px;
    color: rgb(220, 220, 220);
    background-image: linear-gradient(rgb(180, 190, 220), rgb(27, 93, 138) 70%);
}

.botao_comandocinza {
    border-color: rgb(160, 160, 160);
    height: 38px;
    padding: 0 10px;
    font-size: 12px;
    color: rgb(220, 220, 220);
    background-image: linear-gradient(rgb(200, 200, 200), rgb(120, 120, 120) 70%);
}

.botao_comandopequeno {
    border-color: rgb(139, 177, 205);
    height: 35px; /* Igualado à altura dos inputs (campo_texto e campo_combo) */
    padding: 0 10px; /* Espaçamento interno ajustado */
    font-family: "Tahoma", sans-serif;
    font-size: 11px;
    color: rgb(220, 220, 220);
    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_comandopequenocinza {
    border-color: rgb(160, 160, 160);
    height: 35px; /* Igualado à altura dos inputs (campo_texto e campo_combo) */
    padding: 0 10px; /* Espaçamento interno ajustado */
    font-family: "Tahoma", sans-serif;
    font-size: 11px;
    color: rgb(220, 220, 220);
    background-image: linear-gradient(rgb(200, 200, 200), rgb(120, 120, 120) 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_adicionarpequeno {
    border-style: solid 2px;
    border-color: rgb(0, 130, 0);
    background-color: rgb(0, 160, 0);
    color: rgb(220, 220, 220);
    padding: 1px 3px 1px 3px;
    height: 35px;
    width: 150px;
    font-size: 14px;
    font-weight: bold;
}

.botao_removerpequeno {
    border-style: solid 2px;
    border-color: rgb(220, 50, 0);
    background-color: rgb(255, 0, 0);
    color: rgb(220, 220, 220);
    height: 35px;
    width: 35px;
    padding: 1px 3px 1px 3px;
    font-size: 14px;
    font-weight: bold;
}

.botao_comandonatabela {
    border-color: rgb(139, 177, 205);
    height: 28px;
    padding: 0 8px;
    font-size: 12px;
    color: rgb(220, 220, 220);
    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(220, 220, 220);
    background-image: linear-gradient(rgb(152, 186, 211), rgb(27, 93, 138) 70%);
}

.botao_comando:hover, 
.botao_comandocinza:hover, 
.botao_comandopequeno:hover,
.botao_adicionarpequeno:hover,
.botao_removerpequeno:hover,
.botao_comandonatabela:hover, 
.botao_lateralcampo:hover {
    color: rgb(255, 255, 255);
}

.botao_fechar {
    float: right;
    font-size: 12px;
    font-weight: bold;
    color: rgb(220, 220, 220);
    cursor: pointer;
}

.botao_fechar:hover {
    color: rgb(255, 255, 255);
}

/* ==========================================================================
   MEDIA QUERIES (DESKTOP E DISPOSITIVOS MAIORES)
   ========================================================================== */

@media (min-width: 768px) {
    .titulo_principal {
        font-size: 22px;
        text-align: left;
    }

    .rotulo_ropade_tela {
        text-align: left;
        text-indent: 10px;
        font-size:12px;
        font-weight: normal;
        color: rgb(100,100,100);
        
    }

    .botao_comandopequeno {
        width: auto;
    }
}