/* ==========FINANCEIRO===================== */

.pagina-financeiro {
    width: 100%;
}

/* ==========ABAS PRINCIPAIS=============== */
.financeiro-tabs {
    display: flex;
    align-items: center;
    gap: 5px;
    border-bottom: 1px solid #ddd;
    margin-bottom: 20px;
    overflow-x: auto;
}
.financeiro-tab {
    border: none;
    background: transparent;
    padding: 12px 16px;
    cursor: pointer;
    color: #666;
    font-size: 14px;
    white-space: nowrap;
    border-bottom: 3px solid transparent;
    transition: 0.2s;
}

.financeiro-tab:hover, .financeiro-subtab:hover {
    color: #222;
    background: #f5f5f5;
}

.financeiro-tab.ativo, .financeiro-subtab.ativo {
    color: #3b82f6;
    border-bottom-color: #3b82f6;
    font-weight: 600;
}

.financeiro-aba, .contas-pagar-subaba  {
    display: none;
}
.financeiro-aba.ativo, .contas-pagar-subaba.ativo  {
    display: block;
}

.financeiro-titulo-aba {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}
.financeiro-titulo-aba h3 {
    margin: 0;
    font-size: 20px;
}

/* ================CARDS==================== */

.financeiro-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
}

.financeiro-card {
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 10px;
    padding: 18px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.financeiro-card-icone {
    width: 45px;
    height: 45px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f1f1f1;
    font-size: 20px;
}

.financeiro-card span {
    display: block;
    color: #777;
    font-size: 13px;
    margin-bottom: 5px;
}

.financeiro-card strong {
    display: block;
    font-size: 18px;
}
.financeiro-periodo {
    display: flex;
    align-items: center;
    gap: 8px;
}

.financeiro-periodo button {
    width: 34px;
    height: 34px;
    border: 1px solid #ddd;
    background: #fff;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.financeiro-periodo button:hover {
    background: #f5f5f5;
}

.financeiro-periodo strong {
    min-width: 130px;
    text-align: center;
    font-size: 14px;
}

/* ========SUBABAS CONTAS A PAGAR========= */
.financeiro-subtabs {
    display: flex;
    gap: 5px;
    margin-bottom: 15px;
    border-bottom: 1px solid #ddd;
}
.financeiro-subtab {
    border: none;
    background: transparent;
    padding: 10px 14px;
    cursor: pointer;
    color: #666;
    border-bottom: 2px solid transparent;
}
.valorPagarParcelaForm{
    display:flex;
    justify-content:flex-end;
    align-items:center;
    gap:10px;
    margin-top:10px;
    padding-top:15px;
    border-top:1px solid #eee;
}
/* =============MOVIMENTAÇÕES FINANCEIRAS======================= */

.movimentacoes-periodo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;

}
.movimentacoes-periodo button{
    padding: 6px 8px;
}

.movimentacoes-periodo strong {
    min-width: 180px;
    text-align: center;
    font-size: 17px;
}



#movimentacoes .table-container,
#sessao-produtos .table-container{
    max-height: 700px;
    overflow-y: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}
#modalVisualizarContaPagar .table-container{
    max-height: 300px;
    overflow-y: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}
#movimentacoes .table-container::-webkit-scrollbar,
#sessao-produtos .table-container::-webkit-scrollbar{
    display: none;
}
#movimentacoes .table-container thead th,
#sessao-produtos .table-container thead th,
#modalVisualizarContaPagar .table-container thead th{
    position: sticky;
    top: 0;
    z-index: 1;
}


.movimentacao-entrada {
    font-weight: 600;
}

.movimentacao-saida {
    font-weight: 600;
}


.movimentacao-tipo {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
}


.movimentacao-valor {
    text-align: right;
    white-space: nowrap;
    font-weight: 600;
}
.movimentacoesContent{
    padding: 20px;
}
.movimentacoesContent_box{
    display:grid;  
    grid-template-columns:repeat(2, 1fr); 
    gap:15px; 
    margin-bottom:20px;
}
.movimentacoesContent_box span{
    color: #777;
}
.movimentacoesContent_box strong{
    display:block;
    margin-top:4px;
}
@media (max-width: 800px) {

    .movimentacoes-periodo {
        flex-wrap: wrap;
    }

    .movimentacoes-periodo strong {
        min-width: 150px;
    }

}
/* =============CADASTROS============== */
.financeiro-cadastros-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
}

.financeiro-cadastro-card {
    border: 1px solid #e5e5e5;
    border-left: 4px solid #2563eb;
    background: #fff;
    border-radius: 10px;
    padding: 14px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    text-align: left;
    cursor: pointer;
    transition: 0.2s;
    margin-bottom: 15PX;
}
.financeiro-cadastro-card:hover {
    background: #f7f7f7;
    transform: translateY(-1px);
}

.financeiro-cadastro-card > i {
    font-size: 29px;
    color: #2563eb;
}

.financeiro-cadastro-card strong {
    display: block;
    margin-bottom: 5px;
}

.financeiro-cadastro-card span {
    display: block;
    color: #777;
    font-size: 12px;
}


/* =============EM BREVE ESTILOS PROVISORIOA DAS SESSÕES QUE AINDA NÃO FORAM CONCLUIDDAS============== */
.financeiro-em-breve {
    min-height: 220px;
    border: 1px dashed #ddd;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #777;
}

.financeiro-em-breve i {
    font-size: 35px;
    margin-bottom: 10px;
}

.financeiro-em-breve h4 {
    margin: 0 0 5px;
    color: #444;
}

.financeiro-em-breve p {
    margin: 0;
    font-size: 13px;
}


/* =========================================================
   RESPONSIVO
========================================================= */
@media (max-width: 1000px) {

    .financeiro-cards {
        grid-template-columns: repeat(2, 1fr);
    }

    .financeiro-cadastros-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 650px) {

    .financeiro-cards {
        grid-template-columns: 1fr;
    }

    .financeiro-cadastros-grid {
        grid-template-columns: 1fr;
    }

    .financeiro-titulo-aba {
        align-items: flex-start;
        flex-direction: column;
    }
}


