/* ========== Tags ========== */

:root{
    --cor-scrollbar: #f8bf03;
    --cor-scrollbar-hover: #bd6a00;
    --cor-trilha-scrollbar: #333333;
}

*{
    scrollbar-width: thin;
    scrollbar-color: var(--cor-scrollbar) var(--cor-trilha-scrollbar);
}
*::-webkit-scrollbar{
    width: 3px;
    height: 3px;
}
*::-webkit-scrollbar-track{
    background-color: var(--cor-trilha-scrollbar);
}
*::-webkit-scrollbar-thumb{
    border-radius: 999px;
    background-color: var(--cor-scrollbar);
}
*::-webkit-scrollbar-thumb:hover{
    background-color: var(--cor-scrollbar-hover);
}
*::-webkit-scrollbar-corner{
    background-color: var(--cor-trilha-scrollbar);
}

body{
    margin: 0px;
    padding: 0px;
    border: 0px;
    font-family: 'Montserrat', sans-serif;
}
body{
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: baseline;
}
main{
    width: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: row;
}
/* Textos */
h1, h2, h3, p{
    margin: 0px;
}
a{
    text-decoration: none;
}

button{
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 5px;

    cursor: pointer;
    outline: none;
    border: none;
    font-weight: bold;
}
/* Inputs*/
label{
    font-weight: bold;
}
input{
    outline: none;
    border: 1px solid #f8bf03;
    border-radius: 5px;
    background-color: #F8F2DE;
    font-size: 11pt;
    padding-block: 5px;
}
input:disabled{
    color: black;
    background-color: #F8F2DE;
}

/* Input de arquivo reutilizável em todos os módulos. */
input[type="file"]{
    width: 100%;
    max-width: 100%;
    min-height: 40px;
    box-sizing: border-box;
    padding: 4px;
    overflow: hidden;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    background: #fff;
    color: #475569;
    font-family: inherit;
    font-size: 0.82rem;
    line-height: 1.35;
    cursor: pointer;
}

input[type="file"]::file-selector-button{
    min-height: 30px;
    margin: 0 10px 0 0;
    padding: 6px 13px;
    border: 1px solid #d9a700;
    border-radius: 5px;
    background: #f8bf03;
    color: #111827;
    font-family: inherit;
    font-size: 0.78rem;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

input[type="file"]::-webkit-file-upload-button{
    min-height: 30px;
    margin: 0 10px 0 0;
    padding: 6px 13px;
    border: 1px solid #d9a700;
    border-radius: 5px;
    background: #f8bf03;
    color: #111827;
    font-family: inherit;
    font-size: 0.78rem;
    font-weight: 700;
    cursor: pointer;
}

input[type="file"]:hover::file-selector-button{
    border-color: #c99700;
    background: #ffd447;
}

input[type="file"]:hover::-webkit-file-upload-button{
    border-color: #c99700;
    background: #ffd447;
}

input[type="file"]:focus-visible{
    border-color: #f8bf03;
    box-shadow: 0 0 0 3px rgba(248, 191, 3, 0.16);
}

input[type="file"]:disabled{
    background: #f1f5f9;
    color: #64748b;
    cursor: not-allowed;
    opacity: 0.8;
}

input[type="file"]:disabled::file-selector-button,
input[type="file"]:disabled::-webkit-file-upload-button{
    border-color: #cbd5e1;
    background: #e2e8f0;
    color: #64748b;
    cursor: not-allowed;
}

/* Busca global */
.area_input-pesquisa{
    flex: 1;
    min-width: 0;
    display: flex;
    flex-flow: row nowrap;
    align-items: center;
    justify-content: flex-start;
    gap: 5px;
    margin-right: 0;
}
input[type="search"]{
    flex: 1;
    min-width: 0;
    width: auto;
    box-sizing: border-box;
}
select{
    border-radius: 5px;
    outline: none;
    padding-block: 5px;
    font-weight: bold;
    background-color: #fff5d5;
    border: 1px solid #f8bf03;
}
select:disabled{
    color: black;
    background-color: #fff5d5;
     border: 1px solid #f8bf03;

}
.select2-container--default, .select2-selection--single{
    background-color: #FFF7DE;
    border: 1px solid #f8bf03;
    border-radius: 5px;
    outline: 0px;
}
.select2-container--default .select2-selection--single{
    background-color: transparent;
    outline: 0px;
}
.select2-container--default.select2-container--disabled .select2-selection--single{
    background-color: #f8f2de;
    outline: 0px;
}
.select2-selection__rendered{
    color: black;
    font-size: 11pt;
    border-radius: 5px;
    font-weight: bold;
    background-color: transparent;
}
.select2-selection__arrow{
    background-color: transparent;
}

.select2-selection--single{
    background-color: transparent;
    outline: 0px;
}

/* Select2 pesquisável reutilizável em formulários de qualquer módulo. */
.select2-pesquisavel + .select2-container--default,
.select2-pesquisavel + .select2-container--default .select2-selection--single {
    width: 100% !important;
    min-height: 39px;
    box-sizing: border-box;
    border-color: #cbd5e1;
    border-radius: 6px;
    background: #fff;
}

.select2-pesquisavel + .select2-container--default .select2-selection--single .select2-selection__rendered {
    padding: 0 34px 0 10px;
    line-height: 37px;
    background: #fff;
    color: #111827;
    font-size: 0.88rem;
    font-weight: 400;
}

.select2-pesquisavel + .select2-container--default .select2-selection--single .select2-selection__placeholder {
    color: #6b7280;
    font-weight: 400;
}

.select2-pesquisavel + .select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 37px;
}

.select2-pesquisavel + .select2-container--default.select2-container--focus .select2-selection--single,
.select2-pesquisavel + .select2-container--default.select2-container--open .select2-selection--single {
    border-color: #f8bf03;
    box-shadow: 0 0 0 3px rgba(248, 191, 3, 0.16);
}

.select2-container--default .select2-search--dropdown .select2-search__field {
    border: 1px solid #f8bf03;
    border-radius: 5px;
    outline: none;
}

.select2-container--default .select2-results__option--highlighted.select2-results__option--selectable {
    background: #f8bf03;
    color: #111827;
}

textarea{
    outline: none;
    border: none;
    border-radius: 5px;
    resize: none;
    font-size: 12pt;
    padding-block: 5px;
    border: 1px solid #f8bf03;
    background-color: #fff7de;
}
textarea:disabled{
    color: black;
}
/* Tabelas */
table{
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}
thead{
    border-bottom: 2px solid white;
}
th{
    color: white;
    padding-block: 5px;
    background-color: #BF6A00;
    border: 1px solid rgb(255, 255, 255);
}
td{
    padding-block: 5px;
}
tbody tr:nth-child(odd) {
    background-color: rgb(255, 249, 215);
}

tbody tr:nth-child(even) {
    background-color: #fff2c7;
}
tbody tr:hover {
    border: 1px solid #f8bf03;
    filter: brightness(0.95);
}


/* ========================= Classes ========================= */
/* Pop-Up */
.sombra_popup{
    width: 100%;
    height: 100%;
    position: fixed;
    top:0px;
    left: 0;
    background-color: hsl(0, 0%, 0%, 75%);
    z-index: 1000;

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}
.popup{
    width: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: #f8bf03;
    border-radius: 5px;
    border: 2px solid black;
    box-shadow: 0px 5px 15px black;
    padding-inline: 10px;
}
.cabecalho-popup{
    position:relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 20px;
    margin-bottom: 30px;
}
.btn-fechar{
    color: white;
    font-weight: bold;
    background-color: black;
    position:absolute;
    right: 2px;
    top: 2px;
}
.btn-fechar:hover{
    color: black;
    background-color: #FFCD2A;
    outline: 2px solid black;
}
.corpo-popup{
    width: 90%;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
}
.rodape-popup{
    width: 100%;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    margin-block: 20px;
}

/* Títulos */
.area-title{
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin-top: 10px;
}
.title{
    font-size: 20pt;
    font-weight: 1000;
}
.linha-title{
    width: 30vw;
    border: 2px solid #FFCD2A;
    margin-block: 0px;
}
.subtitle{
    font-size: 18pt;
    font-weight: bold;
}
.linha-title2{
    width: 50%;
    border: 2px solid #ffffff;
    margin-block: 0px;
}

/* Botões */
.btn-padrao{
    font-weight: bold;
    background-color: #f8bf03;
    outline: 1px solid white;
    border-radius: 5px;
    border: none;
    padding-inline: 5px;
    padding-block: 7px;
    
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap:5px;
}
.btn-padrao:hover{
    background-color: #ffd30f;
}
.btn-padrao2{
    color: #BF6A00;
    font-weight: bold;
    background-color: #ffffff;
    border-radius: 5px;
    border: 0px;
    padding-inline: 5px;
    padding-block: 5px;

    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 5px;
}
.btn-padrao2:hover{
    color: white;
    background-color: rgb(63, 63, 63);
}
.btn-redondo{
    height: 30px;
    width: 30px;
    flex: 0 0 30px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    background-color: #f8bf03;
    outline: none;
    border: none;
    padding: 5px;
}
.btn-redondo img{
    width: 100%;
    height: 100%;
    object-fit: contain;
}
.btn-redondo2{
    height: 30px;
    width: 30px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    background-color: white;
    outline: none;
    border: none;
}
.btn-redondo2:hover{
    background-color: #F8BF03;
    outline: 1px solid white;
}
.btn-salvar{
    border-radius: 5px;
    padding-block: 5px;
    padding-inline: 10px;
    color: white;
    background-color: rgba(0, 182, 0, 0.856);
}
.btn-salvar:hover{
    background-color: rgb(0, 145, 0);
}
.btn-salvar:disabled{
    cursor:progress;
    background-color: rgb(0, 66, 0);
}
.btn-cancelar{
    color: white;
    background-color: rgb(255, 0, 0);
    border-radius: 5px;
    padding-block: 5px;
    padding-inline: 10px;
}
.btn-cancelar:hover{
    background-color: rgb(207, 0, 0);
}
.btn-editar{
    color: black;
    background-color: yellow;
    border-radius: 5px;
    padding-block: 5px;
    padding-inline: 10px;
}
 .btn-editar:hover{
    background-color: rgb(255, 230, 0);
 }
.btn-enviar{
    color: white;
    background-color: rgb(0, 132, 255);
    border-radius: 5px;
    padding-block: 5px;
    padding-inline: 10px;
}
.btn-enviar:hover{
    background-color: rgb(0, 94, 182);
}
.btn-voltar{
    color: black;
    background-color: white;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    padding-block: 5px;
    padding-inline: 10px;
}
.btn-voltar:hover{
    background-color: #f8fafc;
}

/* Tabelas */
.coluna1_padrao{
    padding-left: 5px;
}
.coluna_padrao{
    text-align: center;
}
.coluna_acao{
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
}

/* Outros */
.required{
    color: red;
}
.icone{
    height: 18px;
}

.coluna_padrao[data-status="Ativo"] {
    color: #13dd10;
    font-weight: bold;
}

.coluna_padrao[data-status="Inativo"] {
    color: #ff0000;
    font-weight: bold;
}
.area_hist{
    width: 100%;
}
.span_historico{
    width: 100%;
    text-align: left;
    font-size: 10pt;
    font-weight: bold;
}


/* Animações */
.btn-loading {
    pointer-events: none;
    opacity: 0.7;
}

.btn-loading .spinner {
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-top: 2px solid #fff;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin-right: 8px;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.btn-limpar-input-arquivo {
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    align-self: center;
    padding: 0;
    border: 1px solid #ef4444;
    border-radius: 50%;
    background: #fff;
    color: #dc2626;
    font: 700 1.15rem/1 Arial, sans-serif;
    cursor: pointer;
    transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}

.btn-limpar-input-arquivo:hover,
.btn-limpar-input-arquivo:focus-visible {
    border-color: #dc2626;
    background: #fee2e2;
    color: #b91c1c;
    outline: none;
}
.popup-confirmacao-wrapper {
    z-index: 1200;
}

.popup-confirmacao-universal {
    width: min(92%, 430px);
    box-sizing: border-box;
    align-items: center;
    padding: 24px;
    border-radius: 12px;
    background: #fff;
    text-align: center;
}

.icone-confirmacao-exclusao {
    width: 46px;
    height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
    border: 2px solid #dc2626;
    border-radius: 50%;
    color: #dc2626;
    font-size: 1.35rem;
    font-weight: 800;
}

.popup-confirmacao-universal h3 {
    margin: 0 0 9px;
    color: #1f2937;
    font-size: 1.08rem;
}

.popup-confirmacao-universal p {
    margin: 0 0 20px;
    color: #64748b;
    font-size: .85rem;
    line-height: 1.5;
}

.popup-confirmacao-universal form {
    width: 100%;
}

.acoes-confirmacao-exclusao {
    display: flex;
    justify-content: flex-end;
    gap: 9px;
}

.acoes-confirmacao-exclusao button {
    min-height: 38px;
    padding: 7px 16px;
    cursor: pointer;
}

.btn-confirmar-exclusao {
    border: 1px solid #b91c1c;
    border-radius: 6px;
    background: #dc2626;
    color: #fff;
    font-weight: 800;
}

.btn-confirmar-exclusao:hover {
    background: #b91c1c;
}

@media (max-width: 480px) {
    .acoes-confirmacao-exclusao {
        flex-direction: column-reverse;
    }
}
