/* --- Reset e Globais --- */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { height: 100%; }
body {
    font-family: 'Montserrat', sans-serif;
    background-color: #121212;
    color: #f0f0f0;
    line-height: 1.6;
    display: flex;
    flex-direction: column;
}
main { flex: 1 0 auto; animation: fadeIn 0.5s ease-in-out; }
footer { flex-shrink: 0; }

@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

/* --- Barra de Progresso --- */
.progress-container { width: 100%; height: 5px; background-color: #222; position: fixed; top: 0; left: 0; z-index: 1000; }
#progressBar { height: 5px; background: linear-gradient(90deg, #002387, #2563eb); width: 0%; border-radius: 0 2px 2px 0; }

/* --- Cabeçalho e Navegação --- */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
    background-color: rgba(18, 18, 18, 0.8);
    border-bottom: 1px solid #333;
    position: fixed;     /* <- ALTERADO */
    top: 5px;            /* Mantém abaixo da barra de progresso */
    width: 100%;         /* <- IMPORTANTE */
    z-index: 999;
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}
.logo-img {
    height: 60px;
    width: auto;
    vertical-align: middle;
}
nav ul { list-style: none; display: flex; }
nav ul li { margin-left: 25px; }
nav ul li a { 
    text-decoration: none; color: #f0f0f0; font-weight: bold; 
    padding: 8px 15px; border-radius: 6px; 
    transition: all 0.2s ease-in-out; cursor: pointer; 
}
nav ul li a:hover { 
    background-color: #002387;
    color: #ffffff;
    transform: translateY(-2px);
}

/* --- Abas Desativadas (EM BREVE) --- */
nav ul li a.nav-disabled {
    opacity: 0.45;
    cursor: not-allowed;
    position: relative;
}

nav ul li a.nav-disabled:hover {
    background-color: transparent;
    color: #a0a0a0;
    transform: none;
}

nav ul li a.nav-disabled::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: -36px;
    left: 50%;
    transform: translateX(-50%) translateY(5px);
    background: #e74c3c;
    color: #fff;
    padding: 3px 9px;
    font-size: 0.7rem;
    font-family: 'Oswald', sans-serif;
    letter-spacing: 1px;
    font-weight: bold;
    border-radius: 4px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
    pointer-events: none;
    box-shadow: 0 4px 12px rgba(0,0,0,0.6);
    z-index: 1000;
}

nav ul li a.nav-disabled::before {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 50%;
    transform: translateX(-50%) translateY(5px);
    border-width: 6px;
    border-style: solid;
    border-color: transparent transparent #e74c3c transparent;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
    pointer-events: none;
    z-index: 1000;
}

nav ul li a.nav-disabled:hover::after,
nav ul li a.nav-disabled:hover::before {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

/* --- Cabeçalho das Páginas Internas --- */
.page-header {
    height: 30vh;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
}
.page-header-overlay {
    position: absolute; top: 0; left: 0; right: 0; bottom: 0;
    background-color: rgba(0,0,0,0.6);
}
.page-header h2 {
    font-family: 'Oswald', sans-serif; font-size: 3rem; color: #fff;
    text-shadow: 0 0 10px rgba(0, 35, 135, 0.5);
    position: relative; z-index: 2;
}

/* --- Conteúdo Principal --- */
.content-section { padding: 4rem 5%; }
.content-section p { margin-bottom: 1rem; color: #ccc; }

/* --- Estilos para o Conteúdo do Manual e Recrutamento --- */
.manual-content h2, .manual-content h3, .manual-content h4, .manual-content h5 {
    font-family: 'Oswald', sans-serif;
}
.manual-content h2 { font-size: 2.2rem; text-align: center; margin-bottom: 1.5rem; margin-top: 3rem; }
.manual-content h3 { font-size: 1.8rem; text-align: center; margin-bottom: 1.5rem; margin-top: 3rem; }
.manual-content h4 {
    font-size: 1.4rem; color: #60a5fa; text-align: left;
    margin-top: 2.5rem; margin-bottom: 1rem;
    border-bottom: 1px solid #444; padding-bottom: 0.5rem;
}
.manual-content h5 {
    font-size: 1.1rem; text-align: left;
    margin-top: 2rem; margin-bottom: 1rem; font-weight: bold;
}

.manual-content p, .manual-content .intro-text { text-align: center; margin-bottom: 1rem; }
.manual-content .text-left { text-align: left; }
.manual-content .quote { text-align: center; font-style: italic; color: #60a5fa; margin: 2rem 0; }
.manual-content ul {
    list-style: none; padding-left: 0; margin-bottom: 1.5rem;
}
.manual-content ul li {
    padding-left: 1.5rem; position: relative; margin-bottom: 0.75rem;
}
.manual-content ul li::before {
    content: '•'; color: #60a5fa; font-weight: bold;
    display: inline-block; position: absolute; left: 0;
}

.manual-content table { width: 100%; border-collapse: collapse; margin-top: 1.5rem; margin-bottom: 1.5rem; background-color: #1a1a1a; }
.manual-content th, .manual-content td { border: 1px solid #444; padding: 12px; text-align: left; }
.manual-content th { background-color: #002387; color: #ffffff; font-family: 'Oswald', sans-serif; }

/* --- Estilos do Checklist de Recrutamento --- */
.checklist-item {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}
.checklist-item input[type="checkbox"] { display: none; }
.checklist-item label {
    cursor: pointer; position: relative;
    padding-left: 35px; transition: all 0.2s ease;
}
.checklist-item label::before {
    content: ''; position: absolute; left: 0; top: 50%;
    transform: translateY(-50%); width: 20px; height: 20px;
    border: 2px solid #002387; background-color: #222;
    border-radius: 4px; transition: all 0.2s ease;
}
.checklist-item label::after {
    content: '✓'; position: absolute; left: 5px; top: 50%;
    transform: translateY(-50%) scale(0); font-size: 18px;
    color: #ffffff; font-weight: bold; transition: transform 0.2s ease;
}
.checklist-item input[type="checkbox"]:checked + label { color: #888; text-decoration: line-through; }
.checklist-item input[type="checkbox"]:checked + label::before { background-color: #002387; border-color: #002387; }
.checklist-item input[type="checkbox"]:checked + label::after { transform: translateY(-50%) scale(1); }
.rules-box {
    background-color: rgba(0, 35, 135, 0.05);
    border-left: 3px solid #002387;
    padding: 1rem 1.5rem; margin: 2rem 0; border-radius: 4px;
}
.warning-message {
    color: #ff3333;
    font-weight: bold;
    text-align: left;
    padding-left: 35px;
    margin-top: 1.5rem;
    display: none;
}
.warning-message.show {
    display: block;
}

/* --- Seção Hero (Página Inicial) --- */
.hero { 
    height: 100%;
    display: flex; flex-direction: column; justify-content: center; align-items: center; 
    text-align: center; padding: 0 2rem; 
    position: relative;
    overflow: hidden;
    background-color: #121212;
}
.hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: 
        radial-gradient(ellipse at 70% 80%, rgba(0, 35, 135, 0.25), transparent 50%),
        radial-gradient(ellipse at 30% 20%, rgba(0, 35, 135, 0.18), transparent 50%);
    background-size: 300% 300%;
    filter: blur(80px);
    z-index: 0;
    animation: moveBackground 20s ease-in-out infinite;
}

/* Luzes de Giroflex Policial (Azul & Branco - Modo Giroflex Tático Suave) */
.hero::after {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    pointer-events: none;
    z-index: 0;
    filter: blur(70px);
    mix-blend-mode: screen;
    animation: policeGiroflexFastSoft 2.4s infinite ease-in-out;
}

.hero h2, .hero p {
    position: relative;
    z-index: 1;
}

.hero h2 { 
    font-family: 'Oswald', sans-serif; font-size: 4.5rem; color: #fff; 
    margin-bottom: 1.5rem; 
    text-shadow: 0 0 15px rgba(0, 35, 135, 0.5), 0 0 5px rgba(0, 35, 135, 0.3);
    animation: titleLightReflectFastSoft 2.4s infinite ease-in-out;
}
.hero p { font-size: 1.3rem; max-width: 600px; color: #f0f0f0; }

@keyframes moveBackground {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Pisca dinâmico estilo giroflex (2.4s), mas com difusão macia e sem cortes agressivos */
@keyframes policeGiroflexFastSoft {
    /* 0% - 18%: Flash Azul Esquerda (Pulso Duplo) */
    0%, 8% {
        opacity: 0.65;
        background: 
            radial-gradient(circle at 20% 32%, rgba(0, 119, 255, 0.75) 0%, rgba(0, 35, 135, 0.35) 40%, transparent 65%),
            radial-gradient(circle at 80% 68%, rgba(0, 35, 135, 0.12) 0%, transparent 50%);
    }
    4%, 12% {
        opacity: 0.18;
        background: radial-gradient(circle at 20% 32%, rgba(0, 119, 255, 0.25) 0%, transparent 50%);
    }

    /* 20% - 30%: Flash Branco Central (Strobe frontal suave) */
    20%, 26% {
        opacity: 0.65;
        background: 
            radial-gradient(circle at 50% 25%, rgba(255, 255, 255, 0.75) 0%, rgba(190, 220, 255, 0.35) 30%, transparent 60%),
            radial-gradient(circle at 20% 30%, rgba(0, 60, 200, 0.2) 0%, transparent 50%);
    }
    23%, 29% {
        opacity: 0.15;
    }

    /* 34% - 52%: Flash Azul Direita (Pulso Duplo) */
    34%, 42% {
        opacity: 0.65;
        background: 
            radial-gradient(circle at 80% 35%, rgba(0, 119, 255, 0.75) 0%, rgba(0, 35, 135, 0.35) 40%, transparent 65%),
            radial-gradient(circle at 20% 65%, rgba(0, 35, 135, 0.12) 0%, transparent 50%);
    }
    38%, 46% {
        opacity: 0.18;
        background: radial-gradient(circle at 80% 35%, rgba(0, 119, 255, 0.25) 0%, transparent 50%);
    }

    /* 54% - 66%: Flash Branco Duplo */
    54%, 62% {
        opacity: 0.62;
        background: 
            radial-gradient(circle at 45% 30%, rgba(255, 255, 255, 0.7) 0%, rgba(180, 215, 255, 0.3) 25%, transparent 55%),
            radial-gradient(circle at 55% 30%, rgba(255, 255, 255, 0.7) 0%, rgba(180, 215, 255, 0.3) 25%, transparent 55%);
    }
    58%, 66% {
        opacity: 0.15;
    }

    /* 70% - 90%: Giroflex Cruzado Alternado (Azul & Branco) */
    70%, 80% {
        opacity: 0.62;
        background: 
            radial-gradient(circle at 18% 35%, rgba(0, 119, 255, 0.7) 0%, transparent 55%),
            radial-gradient(circle at 82% 35%, rgba(255, 255, 255, 0.65) 0%, transparent 50%);
    }
    75%, 85% {
        opacity: 0.62;
        background: 
            radial-gradient(circle at 18% 35%, rgba(255, 255, 255, 0.65) 0%, transparent 50%),
            radial-gradient(circle at 82% 35%, rgba(0, 119, 255, 0.7) 0%, transparent 55%);
    }

    /* 92% - 100%: Transição e Retorno */
    92% {
        opacity: 0.25;
        background: radial-gradient(circle at 50% 50%, rgba(0, 35, 135, 0.3) 0%, transparent 60%);
    }
    100% {
        opacity: 0.18;
    }
}

@keyframes titleLightReflectFastSoft {
    0%, 8%, 34%, 42%, 70%, 80% {
        text-shadow: 0 0 22px rgba(0, 119, 255, 0.7), 0 0 40px rgba(0, 35, 135, 0.5);
    }
    20%, 26%, 54%, 62%, 75%, 85% {
        text-shadow: 0 0 25px rgba(255, 255, 255, 0.75), 0 0 40px rgba(96, 165, 250, 0.5);
    }
    4%, 12%, 23%, 38%, 46%, 66%, 92%, 100% {
        text-shadow: 0 0 15px rgba(0, 35, 135, 0.5), 0 0 5px rgba(0, 35, 135, 0.3);
    }
}

/* Suporte à Acessibilidade: Desativa movimentos para quem prefere movimento reduzido */
@media (prefers-reduced-motion: reduce) {
    .hero::after {
        animation: none;
        opacity: 0.2;
    }
    .hero h2 {
        animation: none;
    }
}

/* --- Estilos para a Lista de Cursos --- */
.course-grid {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-top: 2rem;
}

.course-card {
    background-color: #1a1a1a;
    border-radius: 8px;
    border: 1px solid #333;
    transition: all 0.3s ease-in-out;
    cursor: pointer;
    position: relative;
    padding: 2rem;
    text-align: center; /* <<< ALTERAÇÃO AQUI */
}

.course-card:hover {
    border-color: #002387;
    box-shadow: 0 5px 20px rgba(0, 35, 135, 0.1);
}

.course-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.course-card-header > div {
    flex-grow: 1; /* Faz a div do texto ocupar o espaço disponível */
}

.course-card h3 {
    font-family: 'Oswald', sans-serif;
    color: #60a5fa;
    font-size: 1.5rem;
    margin: 0;
}

.course-card p {
    color: #ccc;
    font-size: 0.95rem;
    margin-top: 0.5rem;
}

.toggle-icon {
    font-size: 2.5rem;
    color: #60a5fa;
    transition: transform 0.3s ease-in-out;
    user-select: none;
}

.course-detail {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out;
    text-align: left;
    border-top: 1px solid transparent;
    margin-top: 0;
    padding-top: 0;
}

.course-card.active .course-detail {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top-color: #444;
    transition: max-height 0.4s ease-in;
}

.course-card.active .toggle-icon {
    transform: rotate(45deg);
}

.course-detail ul {
    list-style: none;
    padding-left: 0;
}

.course-detail ul li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.5rem;
}

.course-detail ul li::before {
    content: '»';
    color: #60a5fa;
    position: absolute;
    left: 0;
    font-weight: bold;
}

/* --- Estilos para Imagens dos Cursos --- */
.course-image {
    max-width: 100%;
    height: auto;
    border-radius: 6px;
    margin-top: 1rem;
    margin-bottom: 1rem;
    border: 1px solid #444;
}

footer { text-align: center; padding: 2rem; background-color: #0a0a0a; border-top: 1px solid #333; }

#scrollTopBtn {
    display: none; position: fixed; bottom: 20px; right: 30px; z-index: 100;
    border: none; outline: none; background-color: #002387; color: #ffffff;
    cursor: pointer; padding: 10px; border-radius: 50%; font-size: 18px;
    width: 50px; height: 50px; line-height: 28px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3); transition: opacity 0.3s, transform 0.3s;
    opacity: 0; transform: translateY(10px);
}
#scrollTopBtn.show { display: block; opacity: 1; transform: translateY(0); }
#scrollTopBtn:hover { background-color: #0036a8; }

/* --- Estilos para o Formulário de Recrutamento --- */
.recruitment-form-section {
    margin-bottom: 3rem; /* Adiciona um espaço antes dos checklists */
}

.recruta-info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-top: 1rem;
}

.recruta-info input[type="text"] {
    width: 100%;
    padding: 10px 15px;
    background-color: #222;
    border: 1px solid #444;
    border-radius: 6px;
    color: #f0f0f0;
    font-size: 1rem;
    font-family: 'Montserrat', sans-serif;
}

.blacklist-checker {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
    align-items: center;
}

.blacklist-checker input[type="text"] {
    flex-grow: 1;
    padding: 10px 15px;
    background-color: #222;
    border: 1px solid #444;
    border-radius: 6px;
    color: #f0f0f0;
    font-size: 1rem;
    font-family: 'Montserrat', sans-serif;
}

.blacklist-checker button {
    padding: 10px 20px;
    font-family: 'Oswald', sans-serif;
    font-weight: bold;
    background-color: #002387;
    color: #ffffff;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.blacklist-checker button:hover {
    background-color: #0036a8;
}

.blacklist-status {
    font-weight: bold;
    font-size: 1.1rem;
    height: 25px; 
    margin-top: 0.5rem;
    text-align: left !important; /* Força o alinhamento */
}

.status-ok {
    color: #28a745;
}

.status-bl {
    color: #dc3545;
}

.generate-btn {
    display: block;
    width: 100%;
    padding: 15px 30px;
    margin-top: 3rem;
    font-family: 'Oswald', sans-serif;
    font-size: 1.2rem;
    font-weight: bold;
    text-align: center;
    background: #28a745;
    color: #fff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
}

.generate-btn:hover {
    background: #218838;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.2);
}

/* --- Estilos da Calculadora Penal --- */
.calculator-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem 1.5rem;
    background-color: #1a1a1a;
    padding: 2rem;
    border-radius: 8px;
    border: 1px solid #333;
}

.calc-header, .calc-results-header {
    grid-column: 1 / -1; /* Span full width */
    font-family: 'Oswald', sans-serif;
    color: #60a5fa;
    font-size: 1.5rem;
    border-bottom: 1px solid #444;
    padding-bottom: 0.5rem;
    margin-bottom: 0; /* Ajustado */
}

.calc-full-width {
    grid-column: 1 / -1;
}

.calc-label {
    font-weight: bold;
    color: #f0f0f0;
    margin-bottom: 0.5rem;
    display: block;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.calc-select {
    width: 100%;
    padding: 10px 15px;
    background-color: #222;
    border: 1px solid #444;
    border-radius: 6px;
    color: #f0f0f0;
    font-size: 1rem;
    font-family: 'Montserrat', sans-serif;
}

.calc-result-box {
    background-color: #222;
    padding: 1rem;
    border-radius: 6px;
    border: 1px solid #333;
}

.calc-result-box p {
    margin: 0;
    font-size: 1.1rem;
}

.calc-result-box .result-value {
    font-family: 'Oswald', sans-serif;
    font-size: 1.5rem;
    color: #60a5fa;
    margin-top: 0.25rem;
    display: block;
}

.calc-slider-group {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.calc-slider-group input[type="range"] {
    flex-grow: 1;
    cursor: pointer;
}

.calc-slider-group span {
    font-family: 'Oswald', sans-serif;
    font-size: 1.2rem;
    color: #60a5fa;
    width: 60px; /* Fixed width */
    text-align: right;
}

.calc-final-result {
    border-top: 2px solid #002387;
    padding-top: 1rem;
    margin-top: 1rem;
}

.calc-final-result .result-value {
    font-size: 2rem;
    color: #28a745; /* Green for final values */
}

/* --- Estilos ATUALIZADOS da Calculadora Penal --- */
.calculator-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem 1.5rem;
    background-color: #1a1a1a;
    padding: 2rem;
    border-radius: 8px;
    border: 1px solid #333;
}

.calc-header, .calc-results-header {
    grid-column: 1 / -1; /* Span full width */
    font-family: 'Oswald', sans-serif;
    color: #60a5fa;
    font-size: 1.5rem;
    border-bottom: 1px solid #444;
    padding-bottom: 0.5rem;
    margin-bottom: 0; 
}

.calc-full-width {
    grid-column: 1 / -1;
}

.calc-label {
    font-weight: bold;
    color: #f0f0f0;
    margin-bottom: 0.5rem;
    display: block;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* --- NOVO: Grupo do Select + Botão --- */
.calc-select-group {
    display: flex;
    gap: 1rem;
}

.calc-select {
    width: 100%;
    padding: 10px 15px;
    background-color: #222;
    border: 1px solid #444;
    border-radius: 6px;
    color: #f0f0f0;
    font-size: 1rem;
    font-family: 'Montserrat', sans-serif;
    flex-grow: 1; /* Ocupa o espaço */
}

.calc-add-btn {
    padding: 10px 20px;
    font-family: 'Oswald', sans-serif;
    font-weight: bold;
    background-color: #002387;
    color: #ffffff;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.2s ease;
    white-space: nowrap; /* Não quebra o texto */
}
.calc-add-btn:hover {
    background-color: #0036a8;
}

/* --- NOVO: Lista de Artigos Adicionados --- */
#lista-artigos {
    background-color: #222;
    border-radius: 6px;
    padding: 1rem;
    border: 1px solid #333;
    min-height: 50px;
    max-height: 300px;
    overflow-y: auto;
}

.artigo-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0.5rem;
    border-bottom: 1px solid #444;
}
.artigo-item:last-child {
    border-bottom: none;
}

.artigo-item span {
    color: #f0f0f0;
}

.remove-artigo-btn {
    background: none;
    border: none;
    color: #dc3545; /* Vermelho */
    font-size: 1.2rem;
    font-weight: bold;
    cursor: pointer;
    padding: 5px;
}
.remove-artigo-btn:hover {
    color: #ff6b7b;
}


/* --- Resultado --- */
.calc-result-box {
    background-color: #222;
    padding: 1rem;
    border-radius: 6px;
    border: 1px solid #333;
}

.calc-result-box p {
    margin: 0;
    font-size: 1.1rem;
}

.calc-result-box .result-value {
    font-family: 'Oswald', sans-serif;
    font-size: 1.5rem;
    color: #60a5fa;
    margin-top: 0.25rem;
    display: block;
}

.calc-slider-group {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.calc-slider-group input[type="range"] {
    flex-grow: 1;
    cursor: pointer;
}

.calc-slider-group span {
    font-family: 'Oswald', sans-serif;
    font-size: 1.2rem;
    color: #60a5fa;
    width: 60px; 
    text-align: right;
}

.calc-final-result {
    border-top: 2px solid #002387;
    padding-top: 1rem;
    margin-top: 1rem;
}

.calc-final-result .result-value {
    font-size: 2rem;
    color: #28a745; 
}

/* ==========================================================================
   DASHBOARD & SISTEMA DE AÇÕES TÁTICAS (FIVE-M)
   ========================================================================== */

/* Header Highlight & Profile Widget */
.nav-highlight {
    background: linear-gradient(135deg, rgba(0, 35, 135, 0.2), rgba(0, 35, 135, 0.05));
    border: 1px solid rgba(0, 35, 135, 0.6);
    color: #60a5fa !important;
}
.nav-highlight:hover {
    background: #002387 !important;
    color: #ffffff !important;
    box-shadow: 0 0 12px rgba(0, 35, 135, 0.5);
}

.user-header-widget {
    display: flex;
    align-items: center;
}

.btn-profile-trigger {
    background: #1e1e1e;
    border: 1px solid #333;
    color: #e0e0e0;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
}

.btn-profile-trigger:hover {
    border-color: #002387;
    color: #60a5fa;
    background: #252525;
}

.user-badge-icon {
    font-size: 1.1rem;
}

/* Dashboard Container & Grid Layout */
.dashboard-container {
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 3rem 5% 5rem 5%;
}

.dashboard-header-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(18, 22, 33, 0.78);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(0, 35, 135, 0.3);
    border-left: 4px solid #002387;
    padding: 1.5rem;
    border-radius: 12px;
    margin-bottom: 2rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5), 0 0 15px rgba(0, 35, 135, 0.1);
}

.dashboard-header-bar h2 {
    font-family: 'Oswald', sans-serif;
    font-size: 1.8rem;
    letter-spacing: 1px;
    color: #fff;
    margin-bottom: 0.3rem;
}

.dashboard-header-bar p {
    color: #8a99ad;
    font-size: 0.9rem;
    margin: 0;
}

.action-btn-primary {
    background: linear-gradient(135deg, #002387, #0036a8);
    color: #ffffff;
    border: none;
    padding: 10px 20px;
    font-family: 'Oswald', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
    box-shadow: 0 2px 10px rgba(0, 35, 135, 0.3);
}

.action-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 35, 135, 0.5);
    background: linear-gradient(135deg, #0030a0, #1d4ed8);
}

/* Dashboard Tabs Navigation */
.dashboard-tabs {
    display: flex;
    gap: 10px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 2rem;
    overflow-x: auto;
    padding-bottom: 2px;
}

.dash-tab-btn {
    background: transparent;
    border: none;
    color: #8a99ad;
    padding: 12px 20px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    transition: all 0.2s ease;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 8px;
}

.dash-tab-btn:hover {
    color: #f0f0f0;
    background: rgba(255,255,255,0.03);
}

.dash-tab-btn.active {
    color: #60a5fa;
    border-bottom-color: #002387;
    background: rgba(0, 35, 135, 0.08);
    border-radius: 8px 8px 0 0;
}

.tab-badge {
    background: #e74c3c;
    color: #fff;
    font-size: 0.75rem;
    padding: 2px 7px;
    border-radius: 10px;
    font-weight: 700;
}

/* Action Cards & Grid com tema Glassmorphic */
.actions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 1.5rem;
}

.action-card {
    background: rgba(18, 22, 33, 0.72);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 8px 25px rgba(0,0,0,0.4);
}

.action-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.6), 0 0 20px rgba(0, 35, 135, 0.15);
    border-color: rgba(0, 35, 135, 0.4);
}

.action-card-header {
    padding: 1.25rem;
    background: rgba(26, 32, 48, 0.65);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.action-card-header h3 {
    font-family: 'Oswald', sans-serif;
    font-size: 1.3rem;
    color: #fff;
    margin-bottom: 0.3rem;
}

.action-location {
    font-size: 0.85rem;
    color: #8a99ad;
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Badges e Status */
.battalion-badge {
    padding: 4px 10px;
    border-radius: 4px;
    font-family: 'Oswald', sans-serif;
    font-size: 0.8rem;
    font-weight: bold;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.battalion-bope { background: rgba(231, 76, 60, 0.2); color: #ff5252; border: 1px solid #ff5252; }
.battalion-soe { background: rgba(155, 89, 182, 0.2); color: #b373f1; border: 1px solid #b373f1; }
.battalion-core { background: rgba(52, 152, 219, 0.2); color: #40a9ff; border: 1px solid #40a9ff; }
.battalion-coex { background: rgba(46, 204, 113, 0.2); color: #34d399; border: 1px solid #34d399; }
.battalion-pelopes { background: rgba(46, 204, 113, 0.2); color: #34d399; border: 1px solid #34d399; }
.battalion-choque { background: rgba(241, 196, 15, 0.2); color: #f1c40f; border: 1px solid #f1c40f; }
.battalion-pendente { background: rgba(149, 165, 166, 0.2); color: #95a5a6; border: 1px solid #95a5a6; }

.status-tag {
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.status-pendente { background: rgba(241, 196, 15, 0.15); color: #f39c12; border: 1px solid #f39c12; }
.status-agendada { background: rgba(52, 152, 219, 0.15); color: #3498db; border: 1px solid #3498db; }
.status-em_andamento { background: rgba(46, 204, 113, 0.2); color: #2ecc71; border: 1px solid #2ecc71; animation: pulse 2s infinite; }
.status-vitoria { background: rgba(46, 204, 113, 0.25); color: #2ecc71; border: 1px solid #2ecc71; }
.status-derrota { background: rgba(231, 76, 60, 0.25); color: #e74c3c; border: 1px solid #e74c3c; }

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.5; }
    100% { opacity: 1; }
}

.action-card-body {
    padding: 1.25rem;
    flex-grow: 1;
}

.info-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.8rem;
    font-size: 0.88rem;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.08);
    padding-bottom: 0.4rem;
}

.info-label { color: #8a99ad; }
.info-val { color: #e0e0e0; font-weight: 600; }

.action-desc {
    background: rgba(13, 16, 24, 0.7);
    padding: 0.75rem;
    border-radius: 6px;
    color: #b0b8c4;
    font-size: 0.85rem;
    margin-top: 0.8rem;
    border-left: 2px solid #002387;
}

.participants-box {
    margin-top: 1rem;
}

.participants-header {
    font-size: 0.8rem;
    text-transform: uppercase;
    color: #8a99ad;
    font-weight: 700;
    margin-bottom: 0.5rem;
    display: flex;
    justify-content: space-between;
}

.participants-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    max-height: 100px;
    overflow-y: auto;
}

.participant-chip {
    background: rgba(37, 43, 59, 0.7);
    color: #d1d5db;
    font-size: 0.78rem;
    padding: 3px 8px;
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.action-card-footer {
    padding: 1rem 1.25rem;
    background: rgba(15, 18, 26, 0.65);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

/* Modais de Ações e Perfil com Glassmorphism */
.dash-modal {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(10, 12, 18, 0.82);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    animation: fadeIn 0.2s ease-out;
}

.dash-modal-content {
    background: rgba(18, 22, 33, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(0, 35, 135, 0.3);
    border-radius: 14px;
    width: 100%;
    max-width: 580px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7), 0 0 25px rgba(0, 35, 135, 0.15);
    box-shadow: 0 10px 40px rgba(0,0,0,0.7);
    overflow: hidden;
}

.dash-modal-header {
    background: #1f2533;
    padding: 1.2rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #2d3548;
}

.dash-modal-header h3 {
    font-family: 'Oswald', sans-serif;
    color: #60a5fa;
    font-size: 1.4rem;
    margin: 0;
}

.btn-close-modal {
    background: transparent;
    border: none;
    color: #8a99ad;
    font-size: 1.5rem;
    cursor: pointer;
}
.btn-close-modal:hover { color: #fff; }

.dash-modal-body {
    padding: 1.5rem;
    max-height: 75vh;
    overflow-y: auto;
}

.form-group {
    margin-bottom: 1.2rem;
}

.form-group label {
    display: block;
    font-size: 0.88rem;
    font-weight: bold;
    color: #c5cedc;
    margin-bottom: 0.4rem;
}

.form-input, .form-select, .form-textarea {
    width: 100%;
    background: #11141c;
    border: 1px solid #2c3345;
    border-radius: 6px;
    padding: 10px 12px;
    color: #fff;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.92rem;
    transition: border-color 0.2s ease;
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
    border-color: #002387;
    outline: none;
}

/* Ícones de Calendário e Horário Brancos (SVG + Filter Invert) */
input[type="date"],
input[type="time"],
input[type="datetime-local"],
.form-input[type="date"],
.form-input[type="time"] {
    color-scheme: dark !important;
    color: #ffffff !important;
}

input[type="date"]::-webkit-calendar-picker-indicator,
.form-input[type="date"]::-webkit-calendar-picker-indicator {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' fill='%23ffffff' viewBox='0 0 16 16'%3E%3Cpath d='M3.5 0a.5.5 0 0 1 .5.5V1h8V.5a.5.5 0 0 1 1 0V1h1a2 2 0 0 1 2 2v11a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2V3a2 2 0 0 1 2-2h1V.5a.5.5 0 0 1 .5-.5zM1 4v10a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1V4H1z'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: center !important;
    background-size: 18px 18px !important;
    filter: brightness(0) invert(1) !important;
    opacity: 1 !important;
    cursor: pointer !important;
    width: 20px !important;
    height: 20px !important;
}

input[type="time"]::-webkit-calendar-picker-indicator,
.form-input[type="time"]::-webkit-calendar-picker-indicator {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' fill='%23ffffff' viewBox='0 0 16 16'%3E%3Cpath d='M8 3.5a.5.5 0 0 0-1 0V9a.5.5 0 0 0 .252.434l3.5 2a.5.5 0 0 0 .496-.868L8 8.71V3.5z'/%3E%3Cpath d='M8 16A8 8 0 1 0 8 0a8 8 0 0 0 0 16zm7-8A7 7 0 1 1 1 8a7 7 0 0 1 14 0z'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: center !important;
    background-size: 18px 18px !important;
    filter: brightness(0) invert(1) !important;
    opacity: 1 !important;
    cursor: pointer !important;
    width: 20px !important;
    height: 20px !important;
}

.permissions-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    background: #11141c;
    padding: 1rem;
    border-radius: 6px;
    border: 1px solid #2c3345;
}

.perm-checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: #d1d5db;
    cursor: pointer;
}

.dash-modal-footer {
    padding: 1rem 1.5rem;
    background: #141822;
    border-top: 1px solid #2d3548;
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

.btn-secondary {
    background: #2b3245;
    color: #d1d5db;
    border: none;
    padding: 9px 18px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
}
.btn-secondary:hover { background: #374156; color: #fff; }

.btn-success {
    background: #27ae60;
    color: #fff;
    border: none;
    padding: 9px 18px;
    border-radius: 6px;
    font-weight: bold;
    cursor: pointer;
}
.btn-success:hover { background: #2ecc71; }

.btn-danger {
    background: #c0392b;
    color: #fff;
    border: none;
    padding: 9px 18px;
    border-radius: 6px;
    font-weight: bold;
    cursor: pointer;
}
.btn-danger:hover { background: #e74c3c; }

/* Empty state */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    background: #181c26;
    border: 1px dashed #2d3548;
    border-radius: 10px;
    color: #8a99ad;
}

.empty-state-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

/* Outcome Selector Box in Finish Modal */
.outcome-selector {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin: 1.5rem 0;
}

.outcome-card {
    background: #11141c;
    border: 2px solid #2c3345;
    padding: 1.5rem;
    border-radius: 8px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.outcome-card:hover {
    transform: translateY(-2px);
}

.outcome-card.selected-win {
    border-color: #2ecc71;
    background: rgba(46, 204, 113, 0.1);
}

.outcome-card.selected-loss {
    border-color: #e74c3c;
    background: rgba(231, 76, 60, 0.1);
}

.outcome-card span {
    font-size: 2rem;
    display: block;
    margin-bottom: 0.5rem;
}

.outcome-card strong {
    font-family: 'Oswald', sans-serif;
    font-size: 1.2rem;
}

/* ==========================================================================
   SISTEMA DE CADASTRO, LOGIN E GERENCIAMENTO MASTERADMIN
   ========================================================================== */

.security-warning-box {
    background: rgba(241, 196, 15, 0.12);
    border: 1px solid rgba(241, 196, 15, 0.5);
    border-left: 4px solid #f1c40f;
    border-radius: 6px;
    padding: 1rem;
    margin-bottom: 1.5rem;
    color: #f39c12;
    font-size: 0.85rem;
    line-height: 1.5;
}

.security-warning-box strong {
    color: #fff;
    font-size: 0.9rem;
    display: block;
    margin-bottom: 0.3rem;
}

.auth-btn-group {
    display: flex;
    gap: 8px;
}

.btn-auth {
    background: #1e2433;
    border: 1px solid #2d3548;
    color: #e0e0e0;
    padding: 6px 14px;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-auth:hover {
    border-color: #002387;
    color: #60a5fa;
    background: #252d40;
}

.btn-auth-primary {
    background: linear-gradient(135deg, #002387, #0036a8);
    color: #ffffff;
    font-weight: bold;
    border: none;
}
.btn-auth-primary:hover {
    background: linear-gradient(135deg, #0030a0, #1d4ed8);
    color: #000;
}

/* Tabela e Cards de Gerenciamento de Usuários */
.user-manage-card {
    background: rgba(18, 22, 33, 0.75);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 1.25rem;
    margin-bottom: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.user-info-meta {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.user-info-meta h4 {
    color: #fff;
    font-size: 1.1rem;
    font-family: 'Oswald', sans-serif;
}

.user-info-meta span {
    font-size: 0.85rem;
    color: #8a99ad;
}

.perm-pill {
    background: #252b3b;
    border: 1px solid #374151;
    color: #d1d5db;
    font-size: 0.75rem;
    padding: 2px 7px;
    border-radius: 4px;
    margin-right: 4px;
    text-transform: uppercase;
}

.badge-pending {
    background: rgba(241, 196, 15, 0.2);
    color: #f39c12;
    border: 1px solid #f39c12;
    padding: 3px 8px;
    border-radius: 10px;
    font-size: 0.75rem;
    font-weight: bold;
}

.badge-approved {
    background: rgba(46, 204, 113, 0.2);
    color: #2ecc71;
    border: 1px solid #2ecc71;
    padding: 3px 8px;
    border-radius: 10px;
    font-size: 0.75rem;
    font-weight: bold;
}

/* ==========================================================================
   SISTEMA DE NOTIFICAÇÕES TOAST & MODAL DE CONFIRMAÇÃO PERSONALIZADO
   ========================================================================== */

#toast-container {
    position: fixed;
    top: 95px;
    right: 25px;
    z-index: 100000;
    display: flex;
    flex-direction: column;
    gap: 12px;
    pointer-events: none;
}

.toast-notification {
    pointer-events: auto;
    position: relative;
    overflow: hidden;
    min-width: 310px;
    max-width: 440px;
    background: rgba(13, 17, 23, 0.78);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(0, 35, 135, 0.3);
    border-radius: 12px;
    padding: 14px 18px 16px 18px;
    color: #fff;
    font-family: 'Inter', sans-serif;
    font-size: 0.92rem;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.5), 0 0 20px rgba(0, 35, 135, 0.1);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    animation: toastSlideIn 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
    transition: all 0.3s ease;
}

.toast-content {
    display: flex;
    align-items: center;
    gap: 12px;
    line-height: 1.4;
}

.toast-icon {
    font-size: 1.3rem;
    flex-shrink: 0;
}

.toast-text {
    font-weight: 500;
    color: #f1f5f9;
}

.toast-close-btn {
    background: none;
    border: none;
    color: #8a99ad;
    cursor: pointer;
    font-size: 1.2rem;
    line-height: 1;
    transition: color 0.2s ease;
    padding: 2px 4px;
}

.toast-close-btn:hover {
    color: #fff;
}

/* Barra de progresso regressiva animada integrada aos cantos arredondados */
.toast-progress-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    width: 100%;
    background: #002387;
    border-bottom-left-radius: 12px;
    border-bottom-right-radius: 12px;
    animation: toastProgressLinear linear forwards;
}

.toast-notification.toast-success {
    border-color: rgba(46, 204, 113, 0.4);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.5), 0 0 20px rgba(46, 204, 113, 0.15);
}

.toast-notification.toast-success .toast-progress-bar {
    background: #2ecc71;
}

.toast-notification.toast-error {
    border-color: rgba(231, 76, 60, 0.4);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.5), 0 0 20px rgba(231, 76, 60, 0.15);
}

.toast-notification.toast-error .toast-progress-bar {
    background: #e74c3c;
}

.toast-notification.toast-warning {
    border-color: rgba(241, 196, 15, 0.4);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.5), 0 0 20px rgba(241, 196, 15, 0.15);
}

.toast-notification.toast-warning .toast-progress-bar {
    background: #f1c40f;
}

.toast-notification.toast-info {
    border-color: rgba(52, 152, 219, 0.4);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.5), 0 0 20px rgba(52, 152, 219, 0.15);
}

.toast-notification.toast-info .toast-progress-bar {
    background: #3498db;
}

@keyframes toastProgressLinear {
    from {
        width: 100%;
    }
    to {
        width: 0%;
    }
}

.toast-notification.toast-hiding {
    animation: toastFadeOut 0.3s ease forwards;
}

@keyframes toastSlideIn {
    from {
        opacity: 0;
        transform: translateX(100px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
}

@keyframes toastFadeOut {
    from {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
    to {
        opacity: 0;
        transform: translateX(80px) scale(0.9);
    }
}

/* Modal de Confirmação Customizado */
.custom-confirm-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(10, 12, 18, 0.85);
    backdrop-filter: blur(8px);
    z-index: 100005;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.2s ease;
}

.custom-confirm-card {
    background: linear-gradient(145deg, #181d2a, #111520);
    border: 1px solid rgba(0, 35, 135, 0.4);
    border-radius: 12px;
    padding: 2rem;
    max-width: 440px;
    width: 90%;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8), 0 0 25px rgba(0, 35, 135, 0.15);
    text-align: center;
    animation: popIn 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.custom-confirm-card h4 {
    font-family: 'Oswald', sans-serif;
    font-size: 1.4rem;
    color: #60a5fa;
    margin-bottom: 0.8rem;
    letter-spacing: 0.5px;
}

.custom-confirm-card p {
    color: #cbd5e1;
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

.custom-confirm-actions {
    display: flex;
    justify-content: center;
    gap: 12px;
}

/* ==========================================================================
   ESTILOS PREMIUM DA DASHBOARD: SUITE DE RECRUTAMENTO & BLACKLIST
   ========================================================================== */

.dashboard-container {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    padding: 2.5rem 5% 5rem 5%;
    box-sizing: border-box;
}

.blacklist-management-suite,
.dashboard-recruitment-suite {
    width: 100%;
    box-sizing: border-box;
}

.rec-section-card {
    background: rgba(18, 22, 33, 0.78);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(0, 35, 135, 0.35);
    border-radius: 12px;
    padding: 1.8rem;
    margin-bottom: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 15px rgba(0, 35, 135, 0.08);
    box-sizing: border-box;
}

.rec-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.8rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.rec-section-header h3 {
    font-family: 'Oswald', sans-serif;
    color: #60a5fa;
    font-size: 1.35rem;
    margin: 0;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.rec-section-badge {
    display: inline-block;
    padding: 4px 12px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.8px;
    border-radius: 4px;
    border: 1px solid;
    text-transform: uppercase;
}

.rec-form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.4rem;
    margin-bottom: 1.2rem;
}

.kpi-card {
    background: rgba(15, 23, 42, 0.85);
    border: 1px solid rgba(0, 35, 135, 0.4);
    border-radius: 10px;
    padding: 1rem 1.6rem;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.kpi-card .val {
    font-family: 'Oswald', sans-serif;
    font-size: 2.2rem;
    font-weight: bold;
    color: #60a5fa;
    line-height: 1.1;
}

.kpi-card .lbl {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #94a3b8;
    margin-top: 4px;
}

.bl-manage-table {
    width: 100%;
    border-collapse: collapse;
    background: #0d111a;
    border-radius: 8px;
    overflow: hidden;
    font-size: 0.95rem;
}

.bl-manage-table th, .bl-manage-table td {
    padding: 14px 16px;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    vertical-align: middle;
}

.bl-manage-table th {
    background: #002387;
    color: #ffffff;
    font-family: 'Oswald', sans-serif;
    font-size: 0.95rem;
    letter-spacing: 0.8px;
    text-transform: uppercase;
}

.bl-manage-table tbody tr {
    transition: background 0.15s ease;
}

.bl-manage-table tbody tr:hover {
    background: rgba(0, 35, 135, 0.12);
}

.badge-bl-id {
    display: inline-block;
    background: rgba(239, 68, 68, 0.15);
    color: #f87171;
    border: 1px solid rgba(239, 68, 68, 0.4);
    padding: 3px 8px;
    border-radius: 4px;
    font-weight: 700;
    font-family: monospace;
    font-size: 0.95rem;
}

.btn-danger-sm {
    background: rgba(220, 38, 38, 0.2);
    color: #f87171;
    border: 1px solid rgba(220, 38, 38, 0.45);
    padding: 6px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.btn-danger-sm:hover {
    background: #dc2626;
    color: #ffffff;
    border-color: #dc2626;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.4);
}

/* Checklist e Cards de Recrutamento dentro da Dashboard */
.criteria-counter-banner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(0, 35, 135, 0.15);
    border: 1px solid rgba(0, 35, 135, 0.4);
    border-radius: 8px;
    padding: 12px 18px;
    margin-bottom: 1.5rem;
}

.criteria-counter-val {
    font-family: 'Oswald', sans-serif;
    font-size: 1.25rem;
    font-weight: bold;
    color: #ffffff;
}

.badge-aprovado {
    background: rgba(46, 204, 113, 0.2);
    color: #2ecc71;
    border: 1px solid #2ecc71;
    padding: 4px 10px;
    border-radius: 6px;
    font-weight: bold;
    font-size: 0.85rem;
}

.badge-reprovado {
    background: rgba(231, 76, 60, 0.2);
    color: #e74c3c;
    border: 1px solid #e74c3c;
    padding: 4px 10px;
    border-radius: 6px;
    font-weight: bold;
    font-size: 0.85rem;
}

/* ==========================================================================
   ESTILOS DO MÓDULO DE CURSOS & FORMAÇÃO MILITAR
   ========================================================================== */

/* Badges de Curso */
.badge-curso-basico {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.2), rgba(5, 150, 105, 0.25));
    color: #34d399;
    border: 1px solid #10b981;
    padding: 4px 10px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 0.82rem;
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.2);
    letter-spacing: 0.4px;
}

.badge-curso-pendente {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.15), rgba(185, 28, 28, 0.2));
    color: #f87171;
    border: 1px solid #ef4444;
    padding: 4px 10px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 0.82rem;
    box-shadow: 0 0 10px rgba(239, 68, 68, 0.15);
    letter-spacing: 0.4px;
}

.badge-curso-chip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: rgba(30, 41, 59, 0.7);
    color: #93c5fd;
    border: 1px solid rgba(59, 130, 246, 0.35);
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 0.78rem;
    font-weight: 600;
    margin: 2px;
}

.badge-curso-chip.basico {
    background: rgba(16, 185, 129, 0.15);
    color: #6ee7b7;
    border-color: #10b981;
    font-weight: 700;
}

/* Grid e Cards de Oficiais & Cursos */
.officers-course-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.officer-course-card {
    background: rgba(18, 22, 33, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 1.4rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
    position: relative;
    overflow: hidden;
}

.officer-course-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: #475569;
    transition: background 0.3s ease;
}

.officer-course-card.has-basico::before {
    background: #10b981;
    box-shadow: 0 0 12px #10b981;
}

.officer-course-card.needs-basico::before {
    background: #ef4444;
    box-shadow: 0 0 12px #ef4444;
}

.officer-course-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.6);
    border-color: rgba(96, 165, 250, 0.3);
}

.officer-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.9rem;
    gap: 10px;
}

.officer-name-title {
    font-family: 'Oswald', sans-serif;
    color: #ffffff;
    font-size: 1.25rem;
    margin-bottom: 2px;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.officer-rank-subtitle {
    color: #94a3b8;
    font-size: 0.86rem;
    font-weight: 500;
}

.officer-courses-summary {
    margin: 1rem 0;
    padding: 0.8rem;
    background: rgba(15, 23, 42, 0.6);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.04);
}

.officer-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1rem;
    padding-top: 0.8rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    gap: 8px;
    flex-wrap: wrap;
}

/* Filtros e Barra de Ações */
.courses-filter-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    background: rgba(18, 22, 33, 0.6);
    padding: 1rem 1.2rem;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    margin-bottom: 1.5rem;
}

.filter-btn-chips {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.filter-chip {
    background: rgba(30, 41, 59, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #94a3b8;
    padding: 7px 14px;
    border-radius: 6px;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.84rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.filter-chip:hover {
    background: rgba(51, 65, 85, 0.8);
    color: #ffffff;
}

.filter-chip.active {
    background: #002387;
    border-color: #3b82f6;
    color: #ffffff;
    box-shadow: 0 0 10px rgba(0, 35, 135, 0.5);
}

.filter-chip.active-green {
    background: #065f46;
    border-color: #10b981;
    color: #ffffff;
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.4);
}

.filter-chip.active-red {
    background: #991b1b;
    border-color: #ef4444;
    color: #ffffff;
    box-shadow: 0 0 10px rgba(239, 68, 68, 0.4);
}

/* ==========================================================================
   ESTILOS DA CENTRAL DE RELATÓRIOS
   ========================================================================== */

.report-type-nav {
    display: flex;
    gap: 10px;
    margin-bottom: 1.8rem;
    flex-wrap: wrap;
}

.report-type-btn {
    background: rgba(18, 22, 33, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #cbd5e1;
    padding: 12px 20px;
    border-radius: 8px;
    font-family: 'Oswald', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    letter-spacing: 0.5px;
    transition: all 0.2s ease;
}

.report-type-btn:hover {
    background: rgba(30, 41, 59, 0.9);
    border-color: #60a5fa;
    color: #ffffff;
}

.report-type-btn.active {
    background: linear-gradient(135deg, #002387, #1d4ed8);
    border-color: #60a5fa;
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(0, 35, 135, 0.4);
}

/* ==========================================================================
   CENTRAL DE RELATÓRIOS OFICIAIS - DESIGN MILITAR DE ALTA PRECISÃO
   ========================================================================== */

.report-suite-container {
    width: 100%;
    margin: 0 auto;
}

/* Barra Superior de Exportação e Troca de Aba (Somente Tela) */
.report-suite-top-bar {
    background: linear-gradient(135deg, #131826, #0c0f17);
    border: 1px solid rgba(0, 35, 135, 0.45);
    border-radius: 12px;
    padding: 1.3rem 1.6rem;
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.35);
}

.report-type-nav {
    display: flex;
    gap: 10px;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.btn-report-export {
    background: rgba(15, 23, 42, 0.85);
    color: #e2e8f0;
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 9px 18px;
    border-radius: 6px;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
}

.btn-report-export:hover {
    background: #002387;
    border-color: #60a5fa;
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(0, 35, 135, 0.4);
}

/* FOLHA DO DOCUMENTO OFICIAL MILITAR (Estilo Prontidão / Laudo Timbrado) */
.official-military-doc-sheet {
    background: #0b0f19;
    border: 1px solid rgba(241, 196, 15, 0.25);
    border-top: 4px solid #f1c40f;
    border-radius: 12px;
    padding: 2.2rem 2.4rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
    position: relative;
    width: 100%;
    box-sizing: border-box;
}

/* CABEÇALHO / TIMBRE MILITAR OFICIAL */
.official-military-doc-header {
    border-bottom: 2px double rgba(241, 196, 15, 0.35);
    padding-bottom: 1.5rem;
    margin-bottom: 1.8rem;
}

.doc-header-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.doc-seal-container {
    width: 75px;
    height: 75px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.doc-military-seal {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 2px 8px rgba(0, 35, 135, 0.5));
}

.doc-seal-fallback {
    font-size: 1.8rem;
    color: #f1c40f;
}

.doc-header-titles {
    flex: 1;
    min-width: 280px;
    text-align: center;
}

.doc-state-title {
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 2px;
    color: #94a3b8;
    text-transform: uppercase;
}

.doc-pm-title {
    font-family: 'Oswald', sans-serif;
    font-size: 1.85rem;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: 1.2px;
    margin: 4px 0 2px 0;
    text-transform: uppercase;
}

.doc-dept-title {
    font-family: 'Oswald', sans-serif;
    font-size: 1.05rem;
    color: #60a5fa;
    letter-spacing: 0.8px;
    font-weight: 600;
    text-transform: uppercase;
    margin: 0 0 8px 0;
}

.doc-protocol-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 0.78rem;
    color: #cbd5e1;
    flex-wrap: wrap;
    justify-content: center;
}

.doc-protocol-tag strong {
    color: #f1c40f;
}

.doc-divider {
    color: #64748b;
}

.doc-stamp-badge {
    flex-shrink: 0;
}

.stamp-inner {
    border: 2px dashed #f59e0b;
    border-radius: 8px;
    padding: 6px 14px;
    text-align: center;
    background: rgba(245, 158, 11, 0.08);
    transform: rotate(-3deg);
    display: flex;
    flex-direction: column;
}

.stamp-stars {
    color: #f59e0b;
    font-size: 0.75rem;
    letter-spacing: 2px;
}

.stamp-text {
    font-family: 'Oswald', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    color: #fbbf24;
    letter-spacing: 1px;
    line-height: 1.2;
}

.stamp-sub {
    font-size: 0.65rem;
    color: #fde68a;
    font-weight: 600;
    text-transform: uppercase;
}

.doc-header-meta {
    margin-top: 1.2rem;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 6px;
    padding: 10px 16px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 10px;
    font-size: 0.82rem;
    color: #cbd5e1;
}

.doc-header-meta strong {
    color: #ffffff;
}

/* KPIS TÁTICOS MILITARES */
.report-kpi-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-bottom: 1.8rem;
}

@media (max-width: 900px) {
    .report-kpi-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.report-kpi-card {
    background: #0f1422;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    padding: 1rem 1.2rem;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 12px rgba(0,0,0,0.25);
    position: relative;
    overflow: hidden;
}

.report-kpi-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
}

.report-kpi-card.blue::before { background: #3b82f6; }
.report-kpi-card.green::before { background: #10b981; }
.report-kpi-card.red::before { background: #ef4444; }
.report-kpi-card.gold::before { background: #f59e0b; }

.report-kpi-val {
    font-family: 'Oswald', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.1;
    margin-bottom: 2px;
}

.report-kpi-lbl {
    color: #94a3b8;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.report-kpi-sub {
    font-size: 0.72rem;
    color: #64748b;
    margin-top: 3px;
}

/* CAIXAS DE TABELA MILITARES - ZERO SCROLLBAR HORIZONTAL */
.report-table-box {
    background: #0c101a;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 1.8rem;
    box-shadow: 0 4px 16px rgba(0,0,0,0.35);
    width: 100%;
    box-sizing: border-box;
}

.report-table-box.report-box-green { border-left: 4px solid #10b981; }
.report-table-box.report-box-red { border-left: 4px solid #ef4444; }
.report-table-box.report-box-blue { border-left: 4px solid #3b82f6; }

.report-table-header {
    background: linear-gradient(90deg, #131a2c, #0d121f);
    padding: 0.8rem 1.2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    flex-wrap: wrap;
    gap: 8px;
}

.table-header-left {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.table-mil-badge {
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 3px 8px;
    border-radius: 4px;
}

.table-mil-badge.green { background: rgba(16, 185, 129, 0.2); color: #34d399; border: 1px solid #10b981; }
.table-mil-badge.red { background: rgba(239, 68, 68, 0.2); color: #f87171; border: 1px solid #ef4444; }
.table-mil-badge.blue { background: rgba(59, 130, 246, 0.2); color: #60a5fa; border: 1px solid #3b82f6; }

.report-table-header h3 {
    font-family: 'Oswald', sans-serif;
    color: #ffffff;
    font-size: 1.15rem;
    margin: 0;
    letter-spacing: 0.5px;
}

.report-table-content {
    width: 100%;
    overflow: visible; /* Elimina scrollbar horizontal */
    box-sizing: border-box;
}

/* TABELA DE DADOS - DIMENSIONAMENTO PROPORCIONAL E ENCAIXE EXATO */
.report-data-table {
    width: 100% !important;
    max-width: 100% !important;
    table-layout: fixed !important;
    border-collapse: collapse !important;
    font-size: 0.86rem;
    text-align: left;
    box-sizing: border-box;
}

.report-data-table th {
    background: #0f1523;
    color: #94a3b8;
    padding: 10px 10px;
    font-weight: 700;
    font-size: 0.76rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 2px solid #1e293b;
    vertical-align: middle;
    word-wrap: break-word;
    box-sizing: border-box;
}

.report-data-table td {
    padding: 9px 10px;
    color: #e2e8f0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    vertical-align: middle;
    word-break: break-word;
    overflow-wrap: break-word;
    box-sizing: border-box;
}

.report-data-table tr:nth-child(even) td {
    background: rgba(255, 255, 255, 0.012);
}

.report-data-table tr:hover td {
    background: rgba(0, 35, 135, 0.15) !important;
}

/* INSÍGNIAS E BADGES MILITARES */
.badge-mil-id {
    background: rgba(30, 41, 59, 0.9);
    color: #60a5fa;
    border: 1px solid rgba(96, 165, 250, 0.3);
    padding: 2px 7px;
    border-radius: 4px;
    font-family: monospace;
    font-size: 0.82rem;
    font-weight: 700;
}

.badge-mil-id.red {
    color: #f87171;
    border-color: rgba(248, 113, 113, 0.3);
}

.officer-row-name {
    color: #ffffff;
    font-weight: 600;
}

.officer-row-rank {
    color: #94a3b8;
    font-size: 0.82rem;
}

.badge-militar-apto {
    background: rgba(16, 185, 129, 0.15);
    color: #34d399;
    border: 1px solid #10b981;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 0.74rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-block;
    white-space: nowrap;
}

.badge-militar-pendente {
    background: rgba(239, 68, 68, 0.15);
    color: #f87171;
    border: 1px solid #ef4444;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 0.74rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-block;
    white-space: nowrap;
}

.badge-militar-rec-apto {
    background: rgba(16, 185, 129, 0.2);
    color: #34d399;
    border: 1px solid #10b981;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 700;
}

.badge-militar-rec-rep {
    background: rgba(239, 68, 68, 0.2);
    color: #f87171;
    border: 1px solid #ef4444;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 700;
}

.badge-priority-urgent {
    color: #ef4444;
    font-weight: 800;
    font-size: 0.75rem;
    letter-spacing: 0.5px;
    background: rgba(239, 68, 68, 0.12);
    border: 1px solid rgba(239, 68, 68, 0.3);
    padding: 2px 6px;
    border-radius: 4px;
}

/* ASSINATURAS MILITARES */
.official-military-signatures {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 1px dashed rgba(255, 255, 255, 0.15);
    box-sizing: border-box;
}

.signature-box {
    text-align: center;
}

.sig-line {
    border-top: 1px solid #94a3b8;
    width: 80%;
    margin: 0 auto 8px auto;
}

.sig-name {
    font-family: 'Oswald', sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: 0.5px;
}

.sig-role {
    font-size: 0.8rem;
    color: #94a3b8;
}

.sig-mat {
    font-size: 0.72rem;
    color: #64748b;
    font-style: italic;
    margin-top: 2px;
}

.official-military-footer-seal {
    text-align: center;
    margin-top: 1.8rem;
    font-size: 0.72rem;
    color: #64748b;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 0.8rem;
}

/* ==========================================================================
   REGRAS RIGOROSAS DE IMPRESSÃO / SALVAMENTO EM PDF (A4 PORTRAIT)
   ========================================================================== */
@page {
    size: A4 portrait;
    margin: 8mm 10mm 10mm 10mm;
}

@media print {
    * {
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
    }

    body, html {
        background: #ffffff !important;
        color: #000000 !important;
        font-size: 9pt !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    /* Oculta o banner, o logo e o chrome do site. Só a folha do laudo permanece. */
    header, footer, nav, .progress-container, #scrollTopBtn,
    .page-header, .page-header-overlay, .logo-img, .dashboard-header-bar,
    .dashboard-tabs, .btn-report-export, .filter-btn-chips,
    .action-btn-primary, .btn-secondary, button, .no-print,
    .dash-modal, .user-header-widget, #toast-container,
    .site-title, .user-badge, .dash-header-bar, .report-suite-top-bar, .report-type-nav {
        display: none !important;
    }

    .dashboard-container, main, #content-container {
        max-width: 100% !important;
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    .report-suite-container {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    .official-military-doc-sheet {
        background: #ffffff !important;
        color: #000000 !important;
        border: 2px solid #000000 !important;
        border-radius: 0 !important;
        padding: 8mm !important;
        box-shadow: none !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    .official-military-doc-header {
        border-bottom: 2px double #000000 !important;
        padding-bottom: 8px !important;
        margin-bottom: 12px !important;
    }

    .doc-state-title {
        color: #333333 !important;
        font-size: 7.5pt !important;
    }

    .doc-pm-title {
        color: #000000 !important;
        font-size: 16pt !important;
    }

    .doc-dept-title {
        color: #1e3a8a !important;
        font-size: 9.5pt !important;
    }

    .doc-protocol-tag {
        background: #f1f5f9 !important;
        border: 1px solid #000000 !important;
        color: #000000 !important;
        font-size: 7pt !important;
        padding: 2px 8px !important;
    }

    .doc-protocol-tag strong {
        color: #000000 !important;
    }

    .stamp-inner {
        border: 1.5px dashed #000000 !important;
        background: #f8fafc !important;
        padding: 4px 8px !important;
    }

    .stamp-stars { color: #000000 !important; font-size: 6pt !important; }
    .stamp-text { color: #000000 !important; font-size: 8pt !important; }
    .stamp-sub { color: #333333 !important; font-size: 6pt !important; }

    .doc-header-meta {
        background: #f8fafc !important;
        border: 1px solid #000000 !important;
        color: #000000 !important;
        font-size: 7.5pt !important;
        padding: 6px 10px !important;
        margin-top: 8px !important;
    }

    .doc-header-meta strong {
        color: #000000 !important;
    }

    /* KPIs Compactos na Impressão */
    .report-kpi-grid {
        display: grid !important;
        grid-template-columns: repeat(4, 1fr) !important;
        gap: 6px !important;
        margin-bottom: 12px !important;
    }

    .report-kpi-card {
        background: #ffffff !important;
        border: 1.5px solid #000000 !important;
        padding: 6px 8px !important;
        box-shadow: none !important;
    }

    .report-kpi-card::before {
        display: none !important;
    }

    .report-kpi-val {
        color: #000000 !important;
        font-size: 13pt !important;
    }

    .report-kpi-lbl {
        color: #333333 !important;
        font-size: 6.5pt !important;
    }

    .report-kpi-sub {
        color: #555555 !important;
        font-size: 6pt !important;
    }

    /* Tabelas em Formato Papel A4 */
    .report-table-box {
        background: #ffffff !important;
        border: 1.5px solid #000000 !important;
        border-radius: 0 !important;
        box-shadow: none !important;
        margin-bottom: 12px !important;
        page-break-inside: avoid !important;
        overflow: visible !important;
    }

    .report-table-header {
        background: #e2e8f0 !important;
        border-bottom: 1.5px solid #000000 !important;
        padding: 5px 8px !important;
    }

    .report-table-header h3 {
        color: #000000 !important;
        font-size: 9.5pt !important;
    }

    .table-mil-badge {
        border: 1px solid #000000 !important;
        background: #ffffff !important;
        color: #000000 !important;
        font-size: 6.5pt !important;
    }

    .badge-curso-basico, .badge-curso-pendente {
        display: none !important;
    }

    .report-table-content {
        overflow: visible !important;
        width: 100% !important;
    }

    .report-data-table {
        width: 100% !important;
        table-layout: fixed !important;
        border-collapse: collapse !important;
    }

    .report-data-table th {
        background: #f1f5f9 !important;
        color: #000000 !important;
        border: 1px solid #000000 !important;
        font-size: 7.5pt !important;
        padding: 4px 6px !important;
    }

    .report-data-table td {
        color: #000000 !important;
        border: 1px solid #64748b !important;
        font-size: 7.5pt !important;
        padding: 4px 6px !important;
        background: #ffffff !important;
    }

    .report-data-table tr:hover td {
        background: #ffffff !important;
    }

    .badge-mil-id {
        background: transparent !important;
        color: #000000 !important;
        border: none !important;
        padding: 0 !important;
        font-size: 7.5pt !important;
        font-weight: 700 !important;
    }

    .officer-row-name {
        color: #000000 !important;
    }

    .officer-row-rank {
        color: #333333 !important;
    }

    .badge-militar-apto {
        background: #dcfce7 !important;
        color: #166534 !important;
        border: 1px solid #166534 !important;
        font-size: 6.5pt !important;
        padding: 2px 4px !important;
    }

    .badge-militar-pendente {
        background: #fee2e2 !important;
        color: #991b1b !important;
        border: 1px solid #991b1b !important;
        font-size: 6.5pt !important;
        padding: 2px 4px !important;
    }

    .badge-militar-rec-apto {
        background: #dcfce7 !important;
        color: #166534 !important;
        border: 1px solid #166534 !important;
        font-size: 6.5pt !important;
    }

    .badge-militar-rec-rep {
        background: #fee2e2 !important;
        color: #991b1b !important;
        border: 1px solid #991b1b !important;
        font-size: 6.5pt !important;
    }

    .badge-priority-urgent {
        background: transparent !important;
        color: #991b1b !important;
        border: 1px solid #991b1b !important;
        font-size: 6.5pt !important;
    }

    /* Assinaturas no Rodapé do PDF */
    .official-military-signatures {
        margin-top: 12mm !important;
        padding-top: 4mm !important;
        border-top: 1px dashed #000000 !important;
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 15mm !important;
        page-break-inside: avoid !important;
    }

    .sig-line {
        border-top: 1px solid #000000 !important;
    }

    .sig-name {
        color: #000000 !important;
        font-size: 8.5pt !important;
    }

    .sig-role {
        color: #333333 !important;
        font-size: 7pt !important;
    }

    .sig-mat {
        color: #555555 !important;
        font-size: 6.5pt !important;
    }

    .official-military-footer-seal {
        color: #000000 !important;
        border-top: 1px solid #000000 !important;
        font-size: 6.5pt !important;
        margin-top: 6mm !important;
        padding-top: 2mm !important;
    }

    /* Laudo consolidado: o tema escuro deixa o texto cinza/branco no papel */
    .official-military-doc-sheet,
    .official-military-doc-sheet * {
        color: #111111 !important;
        background-color: #ffffff !important;
        background-image: none !important;
        text-shadow: none !important;
    }
}
