/* ==========================================================================
   SISTEMA AFTJ - ESTILO COMPLETO E DEFINITIVO (JÚLIA 2026)
   ========================================================================== */

:root {
    /* Cores de Identidade */
    --dark-top: #1a252f;
    --sub-bg: #ffffff;
    --bg-body: #f4f7f6;
    --border-color: #e0e0e0;
    --text-main: #333;
    
    /* Paleta de Cores para Ícones e Destaques */
    --blue: #3498db;
    --green: #2ecc71;
    --orange: #f39c12;
    --purple: #9b59b6;
    --teal: #00a191;
    --pink: #e91e63;
    --yellow: #f1c40f;
    --danger: #e74c3c;
}

/* 1. RESET E GERAL */
* { 
    margin: 0; 
    padding: 0; 
    box-sizing: border-box; 
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; 
}

body { 
    background-color: var(--bg-body); 
    color: var(--text-main); 
    line-height: 1.6;
}

/* 2. BARRA DE TOPO (menu.php) */
.navbar-top {
    background-color: var(--dark-top);
    color: white;
    height: 55px;
    display: flex;
    align-items: center;
    padding: 0 25px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.top-container {
    display: flex;
    align-items: center;
    width: 100%;
    max-width: 1300px;
    margin: 0 auto;
}

.brand-name {
    font-weight: bold;
    font-size: 18px;
    color: var(--teal);
    margin-right: 40px;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.top-links {
    list-style: none;
    display: flex;
    gap: 30px;
}

.top-links li a {
    color: #ecf0f1;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.top-links li a:hover { 
    color: var(--teal); 
}

/* 3. SUBMENU (submenuloja.php / submenucasa.php) */
.sub-navbar {
    background-color: var(--sub-bg);
    border-bottom: 1px solid var(--border-color);
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.sub-container {
    max-width: 1300px;
    margin: 0 auto;
    display: flex;
    list-style: none;
}

.sub-container > li { 
    position: relative; 
}

.sub-container > li > a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 15px 20px;
    color: #555;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: 0.3s;
}

.sub-container > li > a:hover { 
    background: #f8f9fa; 
    color: #000; 
}

/* 4. LÓGICA DE MENU SUSPENSO (DROPDOWN) */
.dropdown-content {
    display: none;
    position: absolute;
    background-color: white;
    min-width: 220px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
    z-index: 1001;
    border-radius: 0 0 5px 5px;
    border: 1px solid #eee;
}

.dropdown-content a {
    color: #666;
    padding: 12px 16px;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    border-bottom: 1px solid #f9f9f9;
}

.dropdown-content a:hover { 
    background-color: #f1f1f1; 
    color: var(--teal);
}

.dropdown:hover .dropdown-content { 
    display: block; 
}

/* 5. CLASSES DE CORES PARA ÍCONES */
.icon-blue   { color: var(--blue); }
.icon-green  { color: var(--green); }
.icon-orange { color: var(--orange); }
.icon-purple { color: var(--purple); }
.icon-teal   { color: var(--teal); }
.icon-pink   { color: var(--pink); }
.icon-yellow { color: var(--yellow); }
.icon-red    { color: var(--danger); }

/* 6. CONTEÚDO PRINCIPAL (CARD) */
.main-content {
    max-width: 1300px;
    margin: 30px auto;
    padding: 0 20px;
}

.card {
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    border-top: 4px solid var(--teal);
}

h2 {
    margin-bottom: 25px;
    color: var(--dark-top);
    display: flex;
    align-items: center;
    gap: 12px;
}

/* 7. FORMULÁRIOS MODERNOS */
.form-padrao {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.campo-grupo {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}

.campo-linha {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.campo-grupo label {
    font-weight: 600;
    font-size: 13px;
    color: #555;
    text-transform: uppercase;
}

.campo-grupo input, 
.campo-grupo select {
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 15px;
    outline: none;
    transition: 0.3s;
}

.campo-grupo input:focus, 
.campo-grupo select:focus {
    border-color: var(--teal);
    box-shadow: 0 0 5px rgba(0, 161, 145, 0.2);
}

.btn-salvar {
    background-color: var(--green);
    color: white;
    padding: 15px;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
    margin-top: 10px;
}

.btn-salvar:hover {
    background-color: #27ae60;
    transform: translateY(-2px);
}

/* 🔒 BLOQUEADO: 8. TABELAS ESTILO EXCEL (Vendas Dia/Mês/Ano) */
.tabela-excel {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    background-color: white;
    margin-top: 15px;
    border: 1px solid #c0c0c0;
}

.tabela-excel th {
    background-color: #f2f2f2;
    color: #333;
    font-weight: bold;
    padding: 10px;
    border: 1px solid #c0c0c0;
    text-align: left;
    text-transform: uppercase;
}

.tabela-excel td {
    padding: 10px;
    border: 1px solid #e0e0e0;
    color: #444;
}

.tabela-excel tr:nth-child(even) {
    background-color: #f9f9f9;
}

.tabela-excel tr:hover {
    background-color: #ebf1f7;
}

/* Badges e Status */
.badge {
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: bold;
}
.badge-simples { background: #e3f2fd; color: #1976d2; border: 1px solid #bbdefb; }
.badge-multipla { background: #f3e5f5; color: #7b1fa2; border: 1px solid #e1bee7; }
/* 🔒 FIM DA SEÇÃO BLOQUEADA */

/* Mensagens de Alerta */
.alerta-sucesso {
    background: #d4edda;
    color: #155724;
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 20px;
    border: 1px solid #c3e6cb;
}

/* 9. RODAPÉ */
.footer-sistema {
    text-align: center;
    padding: 20px;
    color: #7f8c8d;
    font-size: 13px;
    margin-top: 50px;
}

/* 🔒 BLOQUEADO: ESTILO DOS BOTÕES DE AÇÃO (EXCEL VENDAS) */
.btn-acao {
    padding: 4px 8px;
    border-radius: 3px;
    text-decoration: none;
    font-size: 11px;
    font-weight: bold;
    color: white;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: 0.2s;
    border: none;
    cursor: pointer;
}

/* Cores específicas para os seus botões */
.btlojaalterarvendasdia, .btlojaalterarvendasmes, .btlojaalterarvendasano { 
    background-color: var(--blue); 
}
.btlojaexcluirvendasdia, .btlojaexcluirvendasmes, .btlojaexcluirvendasano { 
    background-color: var(--danger); 
}

.btn-acao:hover { opacity: 0.8; transform: scale(1.05); }
/* 🔒 FIM DA SEÇÃO BLOQUEADA */

/* Botões de Alterar Saída */
.btlojaalterarsaidadia, .btlojaalterarsaidames, .btlojaalterarsaidaano { 
    background-color: #34495e; /* Um tom de cinza azulado profissional */
}

/* Botões de Excluir Saída */
.btlojaexcluirsaidadia, .btlojaexcluirsaidames, .btlojaexcluirsaidaano { 
    background-color: var(--danger); 
}