#tituloDaPagina
{
    text-align: center;
    background-color: aliceblue; 
    border-radius: 10px;
    color: #101b3f;
    font-size:xx-large;
    font-family:Arial, Helvetica, sans-serif 
}

body 
{
    background-color: rgb(74, 87, 122);
}

#tabelaEntradas
{
    margin: 0;
}

#theadEntrada
{
    background-color: aliceblue;
    font-size: x-large;
}

#botaoAdicionarEntrada
{
    margin-bottom: 10px;
    background-color: rgb(93, 145, 113);
    color: aliceblue;
    border-radius: 10px;
    padding: 10px;
    font-family: Arial, Helvetica, sans-serif;
    font-size: large;
}

#botaoAdicionarGastos
{
    margin-bottom: 10px;
    background-color: #b36060;
    color: aliceblue;
    border-radius: 10px;
    padding: 10px;
    font-family: Arial, Helvetica, sans-serif;
    font-size: large;
    
}


td
{
    background-color: white;
    border: 1px solid #ccc;
    padding: 8px 12px;
    font-family: Arial, Helvetica, sans-serif;
}

#tabelaEntradas thead th {
    background-color: #798fd8; /* azul claro */
    border: 1px solid #ccc;
    padding: 8px 12px;
    color: aliceblue;
    font-family: Arial, Helvetica, sans-serif;

}


#tabelaGastos thead th {
    background-color: #8f4d4d; /* vermelho claro */
    border: 1px solid #ccc;
    padding: 8px 12px;
    color: aliceblue;
    font-family: Arial, Helvetica, sans-serif;
}


.btn-excluir {
    background-color: #b34d4d;
    color: white;
    border: none;
    padding: 6px 10px;
    border-radius: 5px;
    cursor: pointer;
}

.btn-excluir:hover {
    background-color: #b91c1c;
}



#totalEntradas {
    margin-top: 10px;
    font-size: 1.2rem;
    font-weight: bold;
    text-align: center;
    background-color: aliceblue;
    border-radius: 10px;
    padding: 10px;
    font-family: Arial, Helvetica, sans-serif;
}



#totalGastos
{
    margin-top: 10px;
    font-size: 1.2rem;
    font-weight: bold;
    text-align: center;
    background-color: aliceblue;
    border-radius: 10px;
    padding: 10px;
    font-family: Arial, Helvetica, sans-serif;
}



.modal
{
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;

    justify-content: center;
    align-items: center;  
}

.modal.ativo
{
    display: flex;
}


.modal-conteudo
{
    background: white;
    padding: 20px;
    border-radius: 10px;
    width: 300px; 
}


.modal-conteudo form
{
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.modal-conteudo input
{
    width: 100%;
    padding: 6px;
}

.botoes
{
    display: flex;
    justify-content: space-between;
}

#tabelaGastos
{
    margin: 0;
}



#theadGastos
{
    background-color: aliceblue;
    font-size: x-large;
}

#tabelasContainer
{

    margin-top: 100px;              /* menor no mobile */
    display: flex;
    flex-direction: column;        /* 👈 empilha */
    gap: 30px;
    align-items: center;           /* 👈 centraliza */
    justify-content: center;

}

#tabelasContainer table
{
     width: 100%;
    
    border-collapse: collapse;
}

.colunaEntradas,
.colunaGastos {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}


.tabelaScroll {
    max-height: 300px;   /* limite antes de rolar */
    overflow-y: auto;
    width: 100%;
    max-width: 450px;
}

.tabelaScroll thead th {
    position: sticky;
    top: 0;
    z-index: 1;
}

@media (min-width: 900px) {
    #tabelasContainer {
        flex-direction: row;
        align-items: flex-start;
    }
}



#graficoContainer {
    width: 90%;
    max-width: 900px;        /* limite no desktop */
    margin: 40px auto;       /* centraliza horizontalmente */
    padding: 20px;

    background-color: aliceblue;
    border-radius: 12px;

    display: flex;
    justify-content: center;
    align-items: center;
}



#graficoEntradasGastos {
    width: 100% !important;
    height: auto !important;
}

#meusUltimosTresMeses
{
    text-align: center;
    background-color: aliceblue;
    border-radius: 20px;
}

#regra503020
{
    background-color: aliceblue;
    text-align: center;
    border-radius: 20px;
}

#regraContainer
{
    background-color: aliceblue;
    text-align: center;
    border-radius: 20px;
    margin-top: 20px;   
    
}

#resultadoRegra
{
    text-align: center;
    padding-bottom: 20px;
    padding-top: 10px;
   
}

#calcularRegra
{
    margin-top: 20px;
    margin-bottom: 20px;
    border-radius: 10px;
    padding: 5px;
    
}

#botaoImportar
{
    border-radius: 10px;
    padding: 10px;
}

#exportarExcel
{

    border-radius: 10px;
    padding: 10px;
    
}

#backupContainer
{
    text-align: center;
}

#digiteSalario
{
   margin-top: 150px;

}