/*
 * ============================================================================
 * TESOURARIAWEB - SISTEMA DE CONTROLE FINANCEIRO
 * Desenvolvido por: Pedro Paulo Olivieri
 * Ano: 2026
 * Arquivo: EstiloBase.css
 * ============================================================================
 */

* {
    box-sizing: border-box;
}

body {
    min-height: 100vh;
    margin: 0;
    display: grid;
    
    /* A MÁGICA ACONTECE AQUI: 
       'auto' = O cabeçalho usa exatos 100px (sem sobrar espaço embaixo)
       '1fr' = O corpo estica o máximo possível
       'auto' = O rodapé usa o tamanho dele no fundo
    */
    grid-template-rows: auto 1fr auto; 
    
    grid-template-columns: 1fr;
    grid-template-areas: 
        "cabecalho"
        "principal"
        "rodape";
    font-family: Arial, sans-serif;
}

.cabecalho {
    grid-area: cabecalho;
    background: linear-gradient(
        135deg,
       rgb(90, 90, 220) 0%,
        rgb(66, 66, 190) 40%,
        rgb(40, 40, 150) 100%
    );
    color: white;
    font-weight: bold;
    text-align: center;
    font-size: x-large;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100px; /* Se o 2fr do grid bugar o tamanho, remova essa linha depois */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.principal {
    grid-area: principal;
    background: linear-gradient(
        135deg,
        #ffffff 0%,
        #dbeafe 40%,
        #bfdbfe 100%
    );
}

/* =====================================
   RODAPÉ (AJUSTADO PARA A ASSINATURA)
====================================== */
.rodape {
    grid-area: rodape;
    background-color: #88212f;
    color: #f8d7da; /* Um tom de rosa/branco claro para dar leitura no fundo vinho */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    font-size: 13px;
    padding: 10px;
}

.rodape strong {
    color: #ffffff; /* Seu nome em branco puro para dar destaque */
    font-weight: bold;
}

/* =====================================
   RESTANTE DO SEU CSS INTACTO
====================================== */

.Fundo_Menu {
    background-color: #88212f;
    border-collapse: collapse;
}

.Fundo_Menu_Item {
    background-color: black;
    color: white;
    font-weight: bold;
    text-align: center;
    padding: 10px;
    position: relative;
}

.Fundo_Menu_Item a {
    text-decoration: none;
    color: white;
}

.Fundo_Menu_Item:hover {
    background-color: #88212f;
    border-color: black; 
    border-width: thin;
    border: 1pt;
    min-width: fit-content;
}  

.Subitem {
    display: none;
    position: absolute;
    background-color: black;
    min-width: 250px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 1;
    padding: 2px;
}

.Subitem a {
    color: white;
    padding: 2px 2px;
    text-decoration: none;
    display: block;
}

.Subitem a:hover {
    background-color: #88212f;
}

.Submenu {
    color: white;
    padding: 2px 2px;
    text-decoration: none;
    display: block;
}

.Submenu:hover {
    background-color: #88212f;
}

.Fundo_Menu_Item:hover .Subitem {
    display: block; 
}

.Subitem2 {
    display: none;
    position: absolute;
    background-color: rgb(48, 45, 45);
    min-width: 250px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 1;
    padding: 2px;
    left: 100px;
}

.Subitem2 a {
    color: white;
    padding: 2px 2px;
    text-decoration: none;
    display: block;
}

.Subitem2 a:hover {
    background-color: #88212f;
}

.Submenu:hover .Subitem2 {
    display: block; 
}

.conteudo {
    display: block;
    padding: 20px;
    width: 80%;
    margin: auto;
    font-size: x-large;
    font-weight: bold;
    align-items: stretch;
}

input, select {
    width: 100%; /* Melhor para responsividade */
    height: 40px;
    text-transform: uppercase;
    padding: 6px;
    box-sizing: border-box;
}

.caixa-destaque {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    margin-bottom: 8px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 6px rgba(0,0,0,.08);
}

.painel-adiantamentos {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    justify-content: center;
    align-items: start;
}

.card-relatorio {
    background: #fff;
    border-radius: 12px;
    padding: 15px;
    box-shadow: 0 2px 8px rgba(0,0,0,.08);
}

.card-relatorio h2 {
    margin: 0 0 12px;
    font-size: 1.1rem;
    border-bottom: 1px solid #eee;
    padding-bottom: 8px;
}

.item-compacto {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    padding: 6px 0;
    border-bottom: 1px solid #f1f5f9;
    font-size: .9rem;
}

.item-compacto:last-child {
    border-bottom: none;
}

.valor-saldo {
    font-weight: bold;
    color: #16a34a;
    white-space: nowrap;
}

.data-item {
    color: #64748b;
    font-size: .8rem;
    white-space: nowrap;
}

.lista-saldo, .lista-encerrados {
    max-height: 220px;
    overflow-y: auto;
}

.lista-encerrados::-webkit-scrollbar {
    width: 8px;
}

.lista-encerrados::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 10px;
}

@media(max-width:900px){
    .painel-adiantamentos {
        grid-template-columns: 1fr;
    }
}

.titulo-secundario {
    font-family: Arial, sans-serif;
    color: #333;
    margin-top: 20px;
    font-weight: bolder;
    font-size: larger;
}

.logo {
    height: 80px;
    margin-right: 15px;
}

.cabecalho a {
    all: unset;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.formulario {
    max-width: 600px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 180px 1fr;
    gap: 10px 15px;
    background: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 0 10px #ccc;
}

.formulario label {
    text-align: right;
    padding-top: 6px;
    font-weight: bold;
}

.formulario input,
.formulario select {
    padding: 6px;
    width: 100%;
    box-sizing: border-box;
}

.formulario input[type="submit"] {
    grid-column: 2 / 3;
    width: auto;
    background: #007BFF;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
}

.formulario input[type="submit"]:hover {
    background: #0056b3;
}

.titulo {
    font-size: 28px;
    color: #004085;
    text-align: center;
    margin-top: 30px;
    border-bottom: 2px solid #3498db;
    padding-bottom: 10px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

form.formulario {
    max-width: 650px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 180px 1fr;
    gap: 12px 15px;
    background: linear-gradient(135deg, #1e3a8a, #3b82f6);
    padding: 22px;
    border-radius: 12px;
    color: #fff;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

.info-usuario-topo {
    display: flex; 
    align-items: center; 
    gap: 15px; 
}