/* ==========================================================================
   1. ESTILO GERAL E BODY
   ========================================================================== */
body {
    background-color: #706c6c;
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* ==========================================================================
   2. HEADER (FIXO NO TOPO)
   ========================================================================== */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: #1e1e1e;
    padding: 15px;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    z-index: 2000; /* Garante que fique acima de tudo */
}

header h1 {
    margin: 0;
    color: white;
    font-size: 32px;
    font-weight: bold;
    letter-spacing: 2px;
}

header h3 {
    font-size: 14px;
    margin: 5px 0 0 0;
    color: bisque;
}

/* ==========================================================================
   3. MENU DE NAVEGAÇÃO E SUBMENU
   ========================================================================== */
.opcoes {
    background-color: #333;
    margin-top: 110px; /* Espaço para o header fixo */
    position: relative;
    z-index: 1500;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.opcoes ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex; /* Itens um ao lado do outro */
    flex-wrap: wrap;
}

.opcoes ul li {
    position: relative;
}

.opcoes ul li a,
.opcoes ul li span {
    color: rgb(231, 225, 225);
    text-decoration: none;
    font-weight: bold;
    display: block;
    padding: 15px 20px;
    font-size: 16px;
    transition: background 0.3s;
}

.opcoes ul li:hover {
    background-color: #575151;
}

/* Submenu suspenso */
.opcoes .submenu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 280px;
    background-color: #1e1e1e;
    padding: 0;
    box-shadow: 0 8px 16px rgba(0,0,0,0.5);
    z-index: 3000;
}

.opcoes li:hover .submenu {
    display: block; /* Mostra no hover */
}

.opcoes .submenu li {
    display: block;
    width: 100%;
}

.opcoes .submenu a {
    padding: 12px 20px;
    font-size: 14px;
    font-weight: normal;
    border-bottom: 1px solid #2a2a2a;
    white-space: nowrap;
}

.opcoes .submenu a:hover {
    color: #db9806;
    background-color: #333333;
}

/* ==========================================================================
   4. CONTAINERS (RELATÓRIOS E FORMULÁRIOS)
   ========================================================================== */

/* Container Flexível para Relatórios (Garante que o rodapé desça) */
.container, .container-data {
    position: relative;
    margin: 30px auto; 
    width: 95%;           /* Ocupa a largura da tela */
    max-width: 1100px;    /* Não deixa esticar demais em monitores ultra-wide */
    background-color: #1e1e1e;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
    color: white;
    min-height: 300px;
}

/* Caso queira a tela de login/empresa pequena, use esta classe no HTML */
.container-altura-form-empresa {
    max-width: 400px;
}

.container h3, .container-data h3 {
    text-align: center;
    margin-bottom: 25px;
    color: #f3ecec;
    font-size: 28px;
}

/* ==========================================================================
   5. TABELAS DE DADOS (RELATÓRIOS)
   ========================================================================== */
.table-dados {
    width: 100%;
    border-collapse: collapse;
    background-color: #ffffff; /* Fundo branco para facilitar leitura */
    color: #222;
    margin-top: 20px;
    border-radius: 8px;
    overflow: hidden;
}

.table-dados th {
    background-color: #2c2c2c;
    color: #fff;
    padding: 12px;
    border: 1px solid #444;
}

.table-dados td {
    padding: 10px;
    border: 1px solid #ddd;
    font-weight: 500;
}

/* Efeito zebra para leitura */
.table-dados tr:nth-child(even) {
    background-color: #f9f9f9;
}

/* ==========================================================================
   6. FORMULÁRIOS E BOTÕES
   ========================================================================== */
.input-group {
    display: flex;
    align-items: center;
    background-color: #2a2a2a;
    padding: 10px;
    margin-bottom: 20px;
    border-radius: 8px;
}

.input-group input {
    background: none;
    border: none;
    outline: none;
    color: #fff;
    flex: 1;
    font-size: 16px;
    padding-left: 10px;
}

button, .form-botao {
    background-color: #007bff;
    color: white;
    padding: 12px;
    border: none;
    border-radius: 8px;
    width: 100%;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
}

button:hover, .form-botao:hover {
    background-color: #0056b3;
    transform: translateY(-2px);
}

/* Mensagens */
.mensagem-sucesso {
    background-color: #2d4f2d;
    color: #d4ffd4;
    padding: 20px;
    margin: 20px auto;
    border-radius: 8px;
    text-align: center;
}

/* Responsividade Mobile */
@media (max-width: 768px) {
    .opcoes ul {
        flex-direction: column;
    }
    .opcoes .submenu {
        position: static;
        width: 100%;
        box-shadow: none;
    }
}