* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: sans-serif; background: #f4f4f9; color: #333; }

/* Barra Topo */
.top-bar {
    background: #3e4095; color: white; padding: 15px;
    display: flex; justify-content: space-between; align-items: center;
}
.btn-logout { background: #d33; color: white; border:none; padding: 5px 15px; border-radius: 4px; cursor: pointer;}

/* Container */
.main-container {
    max-width: 600px; margin: 30px auto; background: white;
    padding: 20px; border-radius: 8px; box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}
.header-form { text-align: center; margin-bottom: 20px; }
.logo-small { max-width: 80px; }
h2 { color: #3e4095; }

/* Formulário */
.field { margin-bottom: 15px; }
.row { display: flex; gap: 10px; }
.half { width: 50%; }

label { display: block; margin-bottom: 5px; font-weight: bold; font-size: 14px; }
input, select, textarea {
    width: 100%; padding: 10px; border: 1px solid #ddd; border-radius: 4px;
}
textarea { height: 80px; resize: none; }

.btn-submit {
    width: 100%; padding: 15px; background: #00a556; color: white;
    border: none; border-radius: 6px; font-size: 16px; font-weight: bold; cursor: pointer;
}
.btn-submit:hover { background: #008f4a; }

/* Mobile */
@media(max-width: 500px) {
    .row { flex-direction: column; }
    .half { width: 100%; }
}
/* Efeito visual para o Modo de Edição */
.modo-edicao {
    border: 3px solid #ef6c00 !important; /* Borda Laranja Grossa */
    background-color: #fff3e0 !important; /* Fundo levemente alaranjado */
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 0 20px rgba(239, 108, 0, 0.4); /* Brilho laranja */
    transition: all 0.3s ease;
}

/* Muda a cor dos labels dentro da edição para chamar atenção */
.modo-edicao label {
    color: #e65100;
    font-weight: bold;
}
/* --- ADICIONE ISTO NO FINAL DO ARQUIVO --- */

/* Estilo geral da tabela para garantir que ela obedeça */
.planilha-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85em;
}

/* AQUI ESTÁ A MÁGICA DA DATA */
.col-dia {
    background-color: #e0e0e0;
    font-weight: bold;
    color: #333;
    text-align: center;
    padding: 5px;
    
    /* O SEGREDO PARA A DATA COMPLETA (01/01/2026): */
    width: 95px;         /* Espaço suficiente para os 10 caracteres */
    min-width: 95px;     /* Garante que não encolha no celular */
    white-space: nowrap; /* Proíbe a data de quebrar em duas linhas */
}