/* ==========================================================================
   SISTEMA DE DESIGN - IDP ENGINE & OCR PORTAL (LIGHT GLASSMORPHISM & SAGE GREEN)
   ========================================================================== */

:root {
    /* Cores de Fundo e Containers (Tema Claro) */
    --bg-main: #f8fafc; /* Slate 50 */
    --bg-darker: #f1f5f9; /* Slate 100 */
    --glass-bg: rgba(255, 255, 255, 0.8);
    --glass-border: rgba(15, 23, 42, 0.08);
    --glass-border-focus: rgba(16, 185, 129, 0.4);
    --glass-glow: 0 10px 30px rgba(15, 23, 42, 0.06);
    
    /* Cores de Destaque (Sage Green & Teal) */
    --primary: #10b981; /* Emerald Green */
    --primary-glow: rgba(16, 185, 129, 0.12);
    --primary-hover: #059669;
    
    --secondary: #0d9488; /* Teal */
    --secondary-hover: #0f766e;
    
    --accent: #3b82f6; /* Blue */
    --success: #10b981; /* Green */
    --success-glow: rgba(16, 185, 129, 0.1);
    --warning: #d97706; /* Amber */
    --danger: #ef4444; /* Rose */
    
    /* Cores de Texto */
    --text-primary: #0f172a; /* Slate 900 */
    --text-muted: #64748b; /* Slate 500 */
    --text-light: #ffffff;
    
    /* Fontes e Bordas */
    --font-heading: 'Outfit', 'Montserrat', 'Plus Jakarta Sans', sans-serif;
    --font-body: 'Plus Jakarta Sans', 'Outfit', sans-serif;
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 24px;
    
    /* Transições */
    --transition-fast: 0.2s ease;
    --transition-smooth: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ==========================================================================
   RESET & CONFIGURAÇÕES GERAIS
   ========================================================================== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    outline: none;
}

body {
    background-color: var(--bg-main);
    color: var(--text-primary);
    font-family: var(--font-body);
    min-height: 100vh;
    overflow-x: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

button, input, select, textarea, optgroup, label {
    font-family: var(--font-body);
}

h1, h2, h3, h4, h5, h6,
button,
.btn,
[class*="btn-"],
.font-heading,
.modal-header h2,
.kpi-val,
.kpi-label,
.vaga-counter-pill,
.ats-badge-pill,
.vaga-block-info h4,
.rh-welcome-user {
    font-family: var(--font-heading);
}

/* Preserva FontAwesome icons para não sobrescrever a fonte dos ícones ::before / ::after */
.fa, .fas, .far, .fal, .fab, .fa-solid, .fa-regular, .fa-brands, [class^="fa-"], [class*=" fa-"],
.fa::before, .fa-solid::before, .fa-regular::before, .fa-brands::before,
[class^="fa-"]::before, [class*=" fa-"]::before,
.fa::after, .fa-solid::after, .fa-regular::after, .fa-brands::after,
[class^="fa-"]::after, [class*=" fa-"]::after {
    font-family: "Font Awesome 6 Free", "Font Awesome 6 Brands", "FontAwesome" !important;
}

/* Utilitários de Texto */
.text-2xl {
    font-size: 1.5rem;
    line-height: 2rem;
    display: inline-block;
    vertical-align: middle;
}

/* Scrollbar Personalizada */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: var(--bg-darker);
}
::-webkit-scrollbar-thumb {
    background: rgba(15, 23, 42, 0.1);
    border-radius: var(--radius-sm);
}
::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

/* ==========================================================================
   ELEMENTOS DE BACKDROP DINÂMICOS (TEMA CLARO)
   ========================================================================== */
.bg-gradient-shapes {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    background: radial-gradient(circle at 50% 50%, #f1f5f9 0%, var(--bg-main) 100%);
    /* Isolate this fixed layer to avoid triggering repaints on scroll */
    transform: translate3d(0, 0, 0);
    -webkit-transform: translate3d(0, 0, 0);
    will-change: transform;
}

.shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.18;
    animation: floatShape 20s infinite alternate ease-in-out;
}

.shape-1 {
    top: -10%;
    left: -10%;
    width: 40vw;
    height: 40vw;
    background: var(--primary);
}

.shape-2 {
    bottom: -20%;
    right: -10%;
    width: 45vw;
    height: 45vw;
    background: var(--secondary);
    animation-delay: -5s;
    animation-duration: 25s;
}

.shape-3 {
    top: 30%;
    left: 50%;
    width: 30vw;
    height: 30vw;
    background: #a7f3d0;
    animation-delay: -10s;
    animation-duration: 15s;
}

@keyframes floatShape {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(60px, 40px) scale(1.08); }
}

/* ==========================================================================
   GLASSMORPHISM BASE
   ========================================================================== */
.glass {
    background: var(--glass-bg);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-glow);
    /* GPU layer promotion – prevents scroll flicker from backdrop-filter repaint */
    transform: translate3d(0, 0, 0);
    -webkit-transform: translate3d(0, 0, 0);
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    will-change: transform;
}

/* ==========================================================================
   MODAIS / POPUPS (ESTRUTURA DE CADASTRO EM POP-UP)
   ========================================================================== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.45);
    backdrop-filter: blur(10px);
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    transition: none;
}

.modal-overlay.hidden {
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    display: none !important;
    z-index: -9999 !important;
}

.modal-content {
    width: 100%;
    max-width: 460px;
    padding: 36px;
    border-radius: var(--radius-lg);
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.6);
    background: rgba(255, 255, 255, 0.9);
    animation: zoomIn 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Modal de Cadastro Expandido */
.candidate-modal-content {
    max-width: 680px;
    text-align: left;
}

@keyframes zoomIn {
    0% { transform: scale(0.92); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

.logo-icon {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 18px;
    color: var(--text-light);
    font-size: 28px;
    margin-bottom: 20px;
    box-shadow: 0 8px 20px rgba(16, 185, 129, 0.2);
}

.logo-icon.font-green {
    background: linear-gradient(135deg, #34d399, var(--primary));
}

/* Logo no Modal Inicial */
.modal-logo-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 16px auto;
}

.modal-logo-img {
    height: 70px;
    width: auto;
    max-width: 240px;
    object-fit: contain;
    filter: drop-shadow(0 4px 14px rgba(16, 185, 129, 0.15));
    transition: transform 0.3s ease;
}

.modal-logo-img:hover {
    transform: scale(1.03);
}

/* Logo Tipográfico Padrão do Programa - Alligator Docs */
.brand-logo-docs {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-family: var(--font-heading);
    user-select: none;
    margin: 8px auto 20px auto;
}

.brand-logo-docs .brand-title {
    font-size: 46px;
    font-weight: 800;
    color: #0f2923;
    letter-spacing: 6px;
    line-height: 1.05;
    text-transform: uppercase;
    margin-right: -6px; /* Compensar o letter-spacing no alinhamento */
}

.brand-logo-docs .brand-subtitle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin-top: 8px;
    width: 100%;
}

.brand-logo-docs .sub-line {
    height: 2.5px;
    width: 72px;
    background-color: #0f2923;
    opacity: 0.9;
    display: inline-block;
    border-radius: 2px;
}

.brand-logo-docs .sub-text {
    font-size: 22px;
    font-weight: 700;
    color: #0f2923;
    letter-spacing: 9px;
    text-transform: uppercase;
    margin-right: -9px; /* Compensar o letter-spacing no alinhamento */
}

/* Header de Marca na Tela Inicial (Canto Superior Esquerdo) */
.initial-brand-header {
    position: fixed;
    top: 24px;
    left: 28px;
    z-index: 90;
    display: flex;
    align-items: center;
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: var(--radius-md);
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.06);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.initial-brand-header .initial-logo-img {
    height: 42px;
    width: auto;
    object-fit: contain;
}

/* Ocultar a marca inicial quando a app interna for exibida */
body:has(#app-container:not(.hidden)) .initial-brand-header,
#cpf-modal.hidden ~ .initial-brand-header,
.app-container:not(.hidden) ~ .initial-brand-header {
    opacity: 0;
    pointer-events: none;
    transform: translateY(-10px);
}

.modal-header {
    margin-bottom: 24px;
}

.modal-header h2 {
    font-family: var(--font-heading);
    font-size: 26px;
    font-weight: 700;
    letter-spacing: -0.5px;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.modal-header p {
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.5;
}

/* ESTRUTURA GRID PARA CADASTRAMENTO NO MODAL */
.form-group-modal {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-grid-modal {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

@media (max-width: 580px) {
    .form-grid-modal {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   INPUTS & FORMULÁRIO (TEMA CLARO)
   ========================================================================== */
.form-group {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.input-wrapper {
    position: relative;
    width: 100%;
}

.field-icon {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 18px;
    transition: var(--transition-fast);
}

.input-wrapper input {
    width: 100%;
    padding: 14px 20px 14px 50px;
    background: #ffffff;
    border: 1px solid rgba(15, 23, 42, 0.12);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 16px;
    font-weight: 500;
    transition: var(--transition-smooth);
}

.input-wrapper input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px var(--primary-glow);
}

.input-wrapper input:focus + .field-icon {
    color: var(--primary);
}

.error-message {
    color: var(--danger);
    font-size: 13px;
    display: none;
    text-align: left;
    align-items: center;
    gap: 6px;
    margin-top: -6px;
    animation: shake 0.3s ease;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

.modal-footer {
    margin-top: 24px;
    color: var(--text-muted);
    font-size: 13px;
}

.modal-footer i {
    color: var(--primary);
    margin-right: 4px;
}

/* ==========================================================================
   BOTÕES (TEMA VERDE)
   ========================================================================== */
.btn-primary {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    padding: 14px 24px;
    background: linear-gradient(135deg, var(--primary), #059669);
    color: var(--text-light);
    border: none;
    border-radius: var(--radius-md);
    font-family: var(--font-heading);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-smooth);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.2);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(16, 185, 129, 0.35);
}

.btn-primary-green {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    padding: 16px 28px;
    width: 100%;
    background: linear-gradient(135deg, var(--primary), var(--primary-hover));
    color: var(--text-light);
    border: none;
    border-radius: var(--radius-md);
    font-family: var(--font-heading);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-smooth);
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.25);
    margin-top: 10px;
}

.btn-primary-green:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.45);
}

.btn-secondary {
    padding: 12px 16px;
    background: #ffffff;
    border: 1px solid rgba(15, 23, 42, 0.12);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    cursor: pointer;
    transition: var(--transition-fast);
}

.btn-secondary:hover {
    background: var(--bg-main);
    border-color: var(--primary);
    color: var(--primary);
}

/* ==========================================================================
   GRUPO DE CAMPO E BOTÃO DE BUSCA DE VAGA (WEB & MOBILE)
   ========================================================================== */
.job-input-group {
    display: flex;
    gap: 8px;
    align-items: center;
    width: 100%;
}

.job-input-group input {
    flex: 1;
    min-width: 0;
}

#search-job-btn, #mobile-search-job-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 16px;
    height: 42px;
    min-width: 44px;
    background: #f8fafc;
    border: 1px solid rgba(15, 23, 42, 0.15);
    border-radius: var(--radius-sm, 8px);
    color: var(--primary);
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

#search-job-btn:hover, #mobile-search-job-btn:hover {
    background: var(--primary);
    color: #ffffff;
    border-color: var(--primary);
}

#search-job-btn i, #mobile-search-job-btn i {
    font-size: 16px;
    color: inherit;
}

.btn-success {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    padding: 14px 28px;
    width: 100%;
    background: linear-gradient(135deg, var(--primary), #047857);
    color: var(--text-light);
    border: none;
    border-radius: var(--radius-md);
    font-family: var(--font-heading);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-smooth);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.2);
}

.btn-success:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(16, 185, 129, 0.35);
}

/* Botão de saída / ação destrutiva leve — padrão do sistema */
.btn-danger-outline {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    padding: 12px 16px;
    background: rgba(239, 68, 68, 0.04);
    border: 1px solid rgba(239, 68, 68, 0.25);
    border-radius: var(--radius-md);
    color: #dc2626;
    font-family: var(--font-heading);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-fast);
}

.btn-danger-outline:hover {
    background: rgba(239, 68, 68, 0.09);
    border-color: #ef4444;
    color: #b91c1c;
}

/* ==========================================================================
   2. INTERFACE CONTAINER E ESTRUTURA GRID
   ========================================================================== */
.app-container {
    width: 94%;
    max-width: 1360px;
    margin: 30px auto;
    display: flex;
    flex-direction: column;
    gap: 24px;
    animation: fadeInUp 0.5s ease;
}

.app-container.hidden {
    display: none;
}

@keyframes fadeInUp {
    0% { opacity: 0; transform: translateY(15px); }
    100% { opacity: 1; transform: translateY(0); }
}

/* HEADER DO PORTAL (TEMA CLARO) */
.app-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 28px;
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(15, 23, 42, 0.05);
}

.header-logo {
    display: flex;
    align-items: center;
    gap: 14px;
}

.app-header-logo-img {
    height: 44px;
    width: auto;
    max-width: 260px;
    object-fit: contain;
    filter: drop-shadow(0 2px 6px rgba(0,0,0,0.05));
    transition: transform 0.2s ease;
}

.app-header-logo-img:hover {
    transform: scale(1.02);
}

.header-title-divider {
    width: 1px;
    height: 32px;
    background: rgba(15, 23, 42, 0.12);
    margin: 0 4px;
}

.font-green-icon {
    font-size: 24px;
    color: var(--primary);
}

.header-logo h1 {
    font-family: var(--font-heading);
    font-size: 19px;
    font-weight: 700;
    letter-spacing: -0.5px;
    color: var(--text-primary);
}

.badge {
    display: inline-block;
    padding: 2px 7px;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.25);
    border-radius: 20px;
    color: var(--primary-hover);
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
}

.header-user {
    display: flex;
    align-items: center;
    gap: 14px;
    background: #ffffff;
    padding: 6px 14px;
    border-radius: 40px;
    border: 1px solid rgba(15, 23, 42, 0.06);
}

.header-user i {
    color: var(--primary);
    font-size: 18px;
}

.header-user span {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-muted);
}

#logout-btn {
    background: none;
    border: none;
    color: var(--danger);
    cursor: pointer;
    font-size: 15px;
    padding: 4px;
    border-radius: 50%;
    transition: var(--transition-fast);
}

#logout-btn:hover {
    background: rgba(239, 68, 68, 0.1);
    transform: scale(1.08);
}

/* GRID PRINCIPAL */
.app-grid {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 24px;
}

@media (max-width: 950px) {
    .app-grid {
        grid-template-columns: 1fr;
    }
}

.grid-card {
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.85);
    padding: 28px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    border: 1px solid rgba(15, 23, 42, 0.05);
}

.card-title {
    display: flex;
    align-items: center;
    gap: 10px;
    border-bottom: 1px solid rgba(15, 23, 42, 0.06);
    padding-bottom: 12px;
}

.card-title h2 {
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
}

.section-desc {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.5;
}

/* ==========================================================================
   FORM CONTROLS & DYNAMIC COMPONENT STYLING
   ========================================================================== */
.form-row {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-row label {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-muted);
}

.upload-label {
    margin-bottom: 4px;
}

/* CUSTOM SELECT (LIGHT THEME) */
.select-wrapper {
    position: relative;
    width: 100%;
}

.select-wrapper select {
    width: 100%;
    padding: 11px 16px;
    background: #ffffff;
    border: 1px solid rgba(15, 23, 42, 0.12);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 500;
    appearance: none;
    cursor: pointer;
    transition: var(--transition-fast);
}

.select-wrapper select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-glow);
}

.select-arrow {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    color: var(--text-muted);
    font-size: 11px;
    transition: var(--transition-fast);
}

.select-wrapper select:focus + .select-arrow {
    transform: translateY(-50%) rotate(180deg);
    color: var(--primary);
}

/* NOTIFICAÇÕES & CAMPOS CONDICIONAIS */
.info-notice {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(16, 185, 129, 0.05);
    border: 1px solid rgba(16, 185, 129, 0.15);
    border-radius: var(--radius-sm);
    padding: 8px 12px;
    color: var(--primary-hover);
    font-size: 12px;
    line-height: 1.4;
    animation: fadeIn 0.3s ease;
}

.conditional {
    animation: slideDown 0.3s ease;
}

.conditional.hidden {
    display: none !important;
}

@keyframes slideDown {
    0% { opacity: 0; transform: translateY(-8px); max-height: 0; }
    100% { opacity: 1; transform: translateY(0); max-height: 220px; }
}

@keyframes fadeIn {
    0% { opacity: 0; }
    100% { opacity: 1; }
}

/* UPLOAD DOCUMENTO ESTRANGEIRO */
.foreigner-upload-box {
    position: relative;
    border: 2px dashed rgba(15, 23, 42, 0.12);
    border-radius: var(--radius-md);
    padding: 14px;
    text-align: center;
    cursor: pointer;
    background: #ffffff;
    transition: var(--transition-fast);
}

.foreigner-upload-box:hover {
    border-color: var(--primary);
    background: var(--primary-glow);
}

.foreigner-upload-box input[type="file"] {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.upload-icon-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--text-muted);
}

.upload-icon-wrapper i {
    font-size: 16px;
    color: var(--primary);
}

.doc-uploaded-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(16, 185, 129, 0.08);
    border: 1px solid rgba(16, 185, 129, 0.2);
    padding: 6px 10px;
    border-radius: var(--radius-sm);
    color: var(--primary-hover);
    font-size: 12px;
}

/* JOB BOARD COMPONENT */
.job-input-group {
    display: flex;
    gap: 8px;
}

.job-input-group button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    padding: 0;
    flex-shrink: 0;
}

.job-input-group input {
    flex: 1;
    padding: 10px 14px;
    background: #ffffff;
    border: 1px solid rgba(15, 23, 42, 0.12);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 14px;
}

.job-input-group input:focus {
    border-color: var(--primary);
}

.job-card {
    background: #ffffff;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: var(--radius-md);
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    animation: fadeIn 0.3s ease;
}

.job-card.hidden {
    display: none;
}

.job-card h4 {
    font-family: var(--font-heading);
    font-size: 15px;
    font-weight: 700;
    color: var(--primary-hover);
}

.job-card p {
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.4;
}

.job-meta {
    display: flex;
    gap: 12px;
    font-size: 10px;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
}

.job-meta i {
    color: var(--primary);
    margin-right: 2px;
}

/* ATS INTEGRATION STYLES */
.ats-banner {
    margin-top: 14px;
    padding: 10px 14px;
    background: rgba(255, 255, 255, 0.4);
    border: 1px solid rgba(15, 23, 42, 0.06);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    gap: 10px;
    text-align: left;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    width: 100%;
    animation: slideDown 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.ats-banner.hidden {
    display: none;
}

.ats-banner-content {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
}

.ats-banner-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.ats-banner-label {
    font-size: 9px;
    color: var(--text-muted);
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.8px;
}

#ats-banner-title {
    font-size: 13px;
    color: var(--text-primary);
    font-weight: 600;
}

.ats-badge-pill {
    display: inline-flex;
    align-items: center;
    padding: 4px 8px;
    font-size: 9px;
    font-weight: 800;
    text-transform: uppercase;
    border-radius: 50px;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.ats-badge-pill.gupy {
    background: rgba(0, 191, 165, 0.12);
    color: #00bfa5;
    border: 1px solid rgba(0, 191, 165, 0.25);
}

.ats-badge-pill.lg {
    background: rgba(249, 115, 22, 0.12);
    color: #ea580c;
    border: 1px solid rgba(249, 115, 22, 0.25);
}

.ats-badge-pill.interno {
    background: rgba(59, 130, 246, 0.12);
    color: #2563eb;
    border: 1px solid rgba(59, 130, 246, 0.25);
}

.ats-badge-pill.pandape {
    background: rgba(108, 92, 231, 0.12);
    color: #6c5ce7;
    border: 1px solid rgba(108, 92, 231, 0.25);
}

.ats-badge-pill.kenoby {
    background: rgba(0, 206, 201, 0.12);
    color: #00cec9;
    border: 1px solid rgba(0, 206, 201, 0.25);
}

.ats-badge-pill.vagas {
    background: rgba(243, 156, 18, 0.12);
    color: #d35400;
    border: 1px solid rgba(243, 156, 18, 0.25);
}

.ats-badge-pill.solides {
    background: rgba(232, 67, 147, 0.12);
    color: #e84393;
    border: 1px solid rgba(232, 67, 147, 0.25);
}

.ats-badge-pill.sap {
    background: rgba(10, 110, 209, 0.12);
    color: #0a6ed1;
    border: 1px solid rgba(10, 110, 209, 0.25);
}

.ats-badge-pill.workday {
    background: rgba(227, 139, 2, 0.12);
    color: #e38b02;
    border: 1px solid rgba(227, 139, 2, 0.25);
}

.ats-badge-pill.greenhouse {
    background: rgba(0, 128, 96, 0.12);
    color: #008060;
    border: 1px solid rgba(0, 128, 96, 0.25);
}

.ats-badge-pill.lever {
    background: rgba(17, 17, 17, 0.08);
    color: #111111;
    border: 1px solid rgba(17, 17, 17, 0.2);
}

.ats-job-display {
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: var(--radius-md);
    padding: 12px 14px;
    display: flex;
    align-items: center;
    width: 100%;
    animation: fadeIn 0.3s ease;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.ats-job-display.hidden {
    display: none;
}

.ats-job-display-content {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
}

#ats-job-display-title {
    font-size: 14px;
    color: var(--text-primary);
    font-weight: 600;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* ==========================================================================
   DRAG & DROP CNH ZONE (TEMA VERDE CLARO)
   ========================================================================== */
.dropzone {
    border: 2px dashed rgba(15, 23, 42, 0.15);
    border-radius: var(--radius-lg);
    padding: 44px 20px;
    text-align: center;
    position: relative;
    cursor: pointer;
    background: #ffffff;
    transition: var(--transition-smooth);
    overflow: hidden;
}

.dropzone.dragover {
    border-color: var(--primary);
    background: var(--primary-glow);
    transform: scale(1.01);
}

.dropzone-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.drop-icon {
    font-size: 40px;
    color: var(--primary);
    transition: var(--transition-fast);
}

.dropzone:hover .drop-icon {
    transform: scale(1.08);
}

.dropzone h3 {
    font-family: var(--font-heading);
    font-size: 15px;
    font-weight: 700;
}

.dropzone p {
    font-size: 12px;
    color: var(--text-muted);
}

.scanner-anim {
    display: none;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(16, 185, 129, 0.04), rgba(16, 185, 129, 0.08));
    pointer-events: none;
}

.dropzone.processing .scanner-anim {
    display: block;
    animation: scanPulse 2.5s infinite ease-in-out;
}

@keyframes scanPulse {
    0%, 100% { transform: translateY(-100%); }
    50% { transform: translateY(100%); }
}

/* ==========================================================================
   PAINEL DE RESUMO E TABS LATERAIS
   ========================================================================== */
.summary-tabs {
    display: flex;
    gap: 8px;
    background: var(--bg-darker);
    padding: 4px;
    border-radius: var(--radius-md);
    border: 1px solid rgba(15, 23, 42, 0.05);
}

.tab-btn {
    flex: 1;
    padding: 8px 12px;
    border: none;
    border-radius: var(--radius-sm);
    background: none;
    color: var(--text-muted);
    font-family: var(--font-heading);
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    transition: var(--transition-fast);
}

.tab-btn:hover:not([disabled]) {
    color: var(--text-primary);
}

.tab-btn.active {
    background: #ffffff;
    color: var(--primary-hover);
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
}

.tab-btn[disabled] {
    opacity: 0.5;
    cursor: not-allowed;
}

.tab-content {
    animation: fadeIn 0.4s ease;
}

.tab-content.hidden {
    display: none !important;
}

/* ALERTA INFORMATIVO */
.info-alert {
    display: flex;
    gap: 10px;
    background: rgba(59, 130, 246, 0.05);
    border: 1px solid rgba(59, 130, 246, 0.15);
    padding: 12px;
    border-radius: var(--radius-md);
    font-size: 12px;
    line-height: 1.5;
    color: #1e3a8a;
    margin-top: 10px;
}

.info-alert i {
    font-size: 15px;
    color: var(--accent);
}

/* CARTÃO DE PERFIL DO CANDIDATO */
.profile-card {
    background: #ffffff;
    border: 1px solid rgba(15, 23, 42, 0.06);
    border-radius: var(--radius-md);
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.02);
}

.profile-header {
    display: flex;
    align-items: center;
    gap: 14px;
    border-bottom: 1px solid rgba(15, 23, 42, 0.06);
    padding-bottom: 14px;
}

.profile-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(16, 185, 129, 0.1);
    color: var(--primary);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 20px;
}

.profile-header h3 {
    font-family: var(--font-heading);
    font-size: 15px;
    font-weight: 700;
}

.badge-vaga {
    display: inline-block;
    padding: 2px 6px;
    background: var(--bg-darker);
    border-radius: 4px;
    font-size: 10px;
    color: var(--text-muted);
    font-weight: 700;
    margin-top: 4px;
}

.profile-details {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    border-bottom: 1px dashed rgba(15, 23, 42, 0.04);
    padding-bottom: 6px;
}

.detail-label {
    color: var(--text-muted);
    font-weight: 500;
}

.detail-val {
    font-weight: 700;
    color: var(--text-primary);
}

/* ==========================================================================
   OCR PREVIEW E FORMULÁRIO DE EXTRAÇÃO
   ========================================================================== */
.ocr-loading-state {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 40px 20px;
    gap: 16px;
    position: relative;
    overflow: hidden;
}

.loader-icon {
    font-size: 40px;
    color: var(--primary);
    animation: rotateLogo 2.5s infinite linear;
}

.scan-bar-animation {
    position: absolute;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary), var(--primary), transparent);
    box-shadow: 0 0 8px var(--primary);
    animation: scanBarMove 2s infinite ease-in-out;
}

@keyframes scanBarMove {
    0% { top: 10%; }
    50% { top: 90%; }
    100% { top: 10%; }
}

.ocr-loading-state h3 {
    font-family: var(--font-heading);
    font-size: 16px;
    font-weight: 700;
}

.ocr-loading-state p {
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.4;
}

/* RESULTADOS E SPLIT VIEW (TEMA CLARO) */
.ocr-result-state {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.warning-banner {
    background: rgba(217, 119, 6, 0.06);
    border: 1px solid rgba(217, 119, 6, 0.15);
    padding: 10px 14px;
    border-radius: var(--radius-md);
    font-size: 11px;
    line-height: 1.4;
    color: #78350f;
}

.split-view {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

.preview-box {
    background: var(--bg-darker);
    border: 1px solid rgba(15, 23, 42, 0.06);
    border-radius: var(--radius-md);
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    padding: 8px;
    max-height: 180px;
}

.preview-box img {
    max-width: 100%;
    max-height: 160px;
    border-radius: var(--radius-sm);
    object-fit: contain;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.extracted-fields-container {
    max-height: 320px;
    overflow-y: auto;
    padding-right: 4px;
    border: 1px solid rgba(15, 23, 42, 0.05);
    border-radius: var(--radius-md);
    padding: 12px;
    background: #ffffff;
}

.fields-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.field-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.field-item.full-width {
    grid-column: span 2;
}

.field-item label {
    font-size: 10px;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
}

.field-input {
    width: 100%;
    padding: 8px 12px;
    background: var(--bg-main);
    border: 1px solid rgba(15, 23, 42, 0.1);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 600;
    transition: var(--transition-fast);
}

.field-input:focus {
    border-color: var(--primary);
    background: #ffffff;
}

.ocr-actions {
    margin-top: 10px;
}

/* SUCESSO E SYNC ERP (TEMA CLARO) */
.ocr-success-state {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    gap: 16px;
    padding: 20px 10px;
}

.success-icon-wrapper {
    font-size: 52px;
    color: var(--success);
    filter: drop-shadow(0 4px 10px rgba(16, 185, 129, 0.2));
}

.ocr-success-state h2 {
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 700;
}

.ocr-success-state p {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.4;
}

.sync-report {
    width: 100%;
    border-radius: var(--radius-md);
    padding: 16px;
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 10px;
    background: rgba(16, 185, 129, 0.04);
    border: 1px solid rgba(16, 185, 129, 0.12);
}

.report-row {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    border-bottom: 1px solid rgba(15, 23, 42, 0.04);
    padding-bottom: 6px;
}

.report-label {
    color: var(--text-muted);
}

.report-value {
    font-weight: 700;
}

.report-value.highlight {
    color: var(--secondary-hover);
}

.text-green {
    color: var(--success);
    font-weight: 700;
}

.report-log-box {
    background: #ffffff;
    border-radius: var(--radius-sm);
    padding: 10px;
    border: 1px solid rgba(15, 23, 42, 0.05);
}

.report-log-box strong {
    display: block;
    font-size: 10px;
    color: var(--text-muted);
    text-transform: uppercase;
    margin-bottom: 4px;
}

.report-log-box p {
    font-family: 'Courier New', Courier, monospace;
    font-size: 11px;
    color: #065f46;
    line-height: 1.3;
}

/* ==========================================================================
   ANIMAÇÕES DIVERSAS
   ========================================================================== */
.animate-bounce {
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

@keyframes rotateLogo {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.hidden {
    display: none !important;
}

/* CHECKLIST DE DOCUMENTOS */
.document-checklist {
    background: var(--bg-darker);
    padding: 8px;
    border-radius: var(--radius-md);
    border: 1px solid rgba(15, 23, 42, 0.05);
}

.checklist-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    background: #ffffff;
    border: 1px solid rgba(15, 23, 42, 0.04);
    transition: var(--transition-fast);
    cursor: pointer;
    flex-shrink: 0;
}

.checklist-item:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.03);
}

.checklist-item.active {
    border-color: var(--primary);
    background: rgba(16, 185, 129, 0.02);
    box-shadow: 0 0 0 1px var(--primary);
}

.checklist-item-info {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 12px;
    font-weight: 600;
}

.checklist-item-info i {
    font-size: 14px;
    color: var(--text-muted);
}

.checklist-item.active .checklist-item-info i {
    color: var(--primary);
}

.checklist-status-badge {
    font-size: 10px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 12px;
    text-transform: uppercase;
}

.checklist-status-badge.pendente {
    background: rgba(239, 68, 68, 0.1);
    color: #dc2626;
}

.checklist-status-badge.enviado {
    background: rgba(16, 185, 129, 0.1);
    color: var(--primary-hover);
}

.checklist-status-badge.dispensado {
    background: var(--bg-darker);
    color: var(--text-muted);
}

/* ==========================================================================
   ADAPTABILIDADE MOBILE / COMPLEMENTO RESPONSIVO
   ========================================================================== */
#mobile-container {
    display: none; /* Oculto por padrão no Desktop */
    flex-direction: column;
    width: 100%;
    min-height: 100vh;
    min-height: 100dvh; /* L1 FIX: Adaptação dinâmica para Safari/Chrome iOS */
    padding: 16px;
    gap: 16px;
    z-index: 10;
    max-width: 540px; /* Limita largura em telas médias para estética premium */
    margin: 0 auto;
}

@media (max-width: 767px) {
    /* Ocultar modais e contêineres desktop */
    #cpf-modal,
    #candidate-modal,
    #migratory-modal,
    #app-container,
    .bg-gradient-shapes {
        display: none !important;
    }
    
    /* Mostrar contêiner mobile */
    #mobile-container {
        display: flex !important;
    }
    
    body {
        align-items: flex-start; /* Permite rolar tela no mobile */
        padding: 0;
        background-color: #f8fafc;
    }

    .mobile-ficha-sheet .ficha-doc-data {
        grid-template-columns: 1fr;
        gap: 8px;
    }
    
    .mobile-ficha-sheet .ficha-data-value {
        white-space: normal;
        overflow: visible;
        text-overflow: clip;
        word-break: break-word;
    }
}

/* Telas do Mobile */
.mobile-screen {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100%;
    animation: fadeInUp 0.4s ease;
}

.mobile-screen.hidden {
    display: none !important;
}

/* Cabeçalho do Mobile */
.mobile-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid var(--glass-border);
}

.mobile-logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.mobile-header-logo-img {
    height: 32px;
    width: auto;
    object-fit: contain;
}

.mobile-cpf-logo-img {
    height: 54px;
    width: auto;
    object-fit: contain;
    margin: 0 auto 12px auto;
    display: block;
    filter: drop-shadow(0 3px 8px rgba(16, 185, 129, 0.12));
}

.mobile-logo i {
    font-size: 20px;
    color: var(--primary);
}

.mobile-logo h1 {
    font-family: var(--font-heading);
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
}

/* Cards e Layout do Mobile */
.mobile-card {
    background: #ffffff;
    border-radius: var(--radius-md);
    border: 1px solid var(--glass-border);
    padding: 20px;
    box-shadow: var(--glass-glow);
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.mobile-card-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-heading);
    font-size: 15px;
    font-weight: 700;
    color: var(--text-primary);
    border-bottom: 1px solid rgba(15, 23, 42, 0.05);
    padding-bottom: 8px;
}

/* Seletor de Arquivo e Foto (Upload) */
.mobile-upload-options {
    display: flex;
    gap: 12px;
    width: 100%;
    margin-top: 8px;
}

.btn-upload-option {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 16px;
    border-radius: var(--radius-md);
    border: 1.5px dashed var(--primary);
    background: var(--primary-glow);
    color: var(--primary-hover);
    cursor: pointer;
    font-family: var(--font-heading);
    font-size: 13px;
    font-weight: 700;
    transition: var(--transition-fast);
}

.btn-upload-option:hover {
    background: rgba(16, 185, 129, 0.18);
    transform: translateY(-1px);
}

.btn-upload-option i {
    font-size: 22px;
}

/* Botões adicionais de anexo */
.btn-upload-option.attachment {
    border-color: var(--secondary);
    background: rgba(13, 148, 136, 0.06);
    color: var(--secondary-hover);
}

.btn-upload-option.attachment:hover {
    background: rgba(13, 148, 136, 0.12);
}

/* Mobile Checklist items */
.mobile-checklist-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    background: #ffffff;
    border: 1px solid rgba(15, 23, 42, 0.06);
    cursor: pointer;
    transition: var(--transition-fast);
    flex-shrink: 0;
}

.mobile-checklist-item.active {
    border-color: var(--primary);
    background: rgba(16, 185, 129, 0.02);
    box-shadow: 0 0 0 1px var(--primary);
}

.mobile-checklist-item.dispensado {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Resumo simplificado de OCR */
.mobile-ocr-review {
    display: flex;
    flex-direction: column;
    gap: 12px;
    background: var(--bg-darker);
    padding: 12px;
    border-radius: var(--radius-md);
}

.mobile-ocr-review-title {
    font-size: 11px;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
}

.mobile-ocr-field-preview {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    border-bottom: 1px dashed rgba(15, 23, 42, 0.06);
    padding-bottom: 6px;
}

.mobile-ocr-field-preview span:first-child {
    color: var(--text-muted);
}

.mobile-ocr-field-preview span:last-child {
    font-weight: 700;
    color: var(--text-primary);
}

/* =========================================================
   PARTE 1 — OVERLAY "ANALISANDO COM IA"
   ========================================================= */

.mobile-analyzing-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(16, 185, 129, 0.07);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    animation: fadeIn 0.2s ease;
}

.mobile-analyzing-overlay.hidden {
    display: none !important;
}

.analyzing-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    background: #ffffff;
    border-radius: 20px;
    padding: 36px 28px;
    box-shadow: 0 20px 60px rgba(16, 185, 129, 0.18), 0 2px 24px rgba(0,0,0,0.06);
    border: 1px solid rgba(16, 185, 129, 0.22);
    max-width: 300px;
    width: 88%;
    text-align: center;
}

.analyzing-icon-wrapper {
    position: relative;
    width: 76px;
    height: 76px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.analyzing-brain {
    font-size: 38px;
    color: var(--primary);
    animation: logo-spin 2.5s linear infinite;
    position: relative;
    z-index: 1;
}

.analyzing-pulse {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: rgba(16, 185, 129, 0.15);
    animation: analyzing-pulse-anim 1.6s ease-in-out infinite;
}

@keyframes analyzing-pulse-anim {
    0%, 100% { transform: scale(0.9); opacity: 0.7; }
    50%       { transform: scale(1.5); opacity: 0; }
}

.analyzing-content h3 {
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 800;
    color: var(--text-primary);
    margin: 0;
}

.analyzing-content p {
    font-size: 13px;
    color: var(--text-muted);
    margin: 0;
    line-height: 1.6;
}

.analyzing-progress-bar {
    width: 100%;
    height: 4px;
    background: rgba(16, 185, 129, 0.12);
    border-radius: 9999px;
    overflow: hidden;
}

.analyzing-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    border-radius: 9999px;
    animation: analyzing-progress 1.8s ease-in-out infinite;
    width: 50%;
    transition: width 0.3s ease;
}

/* P2: Modo de progresso real — desativa animação infinita e usa width dinâmico */
.analyzing-progress-fill.deterministic {
    animation: none;
    width: 0%;
}

@keyframes analyzing-progress {
    0%   { transform: translateX(-120%); }
    100% { transform: translateX(260%); }
}

.analyzing-hint {
    font-size: 11px;
    color: var(--primary);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    display: flex;
    align-items: center;
    gap: 5px;
}

/* =========================================================
   PARTE 2 — PROGRESS HEADER E BADGE
   ========================================================= */

.mobile-progress-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(15, 23, 42, 0.05);
    padding-bottom: 10px;
}

.mobile-progress-badge {
    display: flex;
    align-items: center;
    gap: 7px;
    font-family: var(--font-heading);
    font-size: 13px;
    font-weight: 700;
    color: var(--text-primary);
}

.mobile-progress-badge i {
    color: var(--primary);
    font-size: 14px;
}

.mobile-progress-badge.all-done i {
    color: var(--primary);
}

.mobile-ver-todos-btn {
    background: rgba(79, 70, 229, 0.08);
    border: 1px solid rgba(79, 70, 229, 0.2);
    border-radius: 8px;
    color: var(--accent);
    font-family: var(--font-heading);
    font-size: 11px;
    font-weight: 700;
    padding: 5px 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: var(--transition-fast);
    white-space: nowrap;
}

.mobile-ver-todos-btn:hover {
    background: rgba(79, 70, 229, 0.14);
}

/* =========================================================
   PARTE 3 — BOTTOM SHEET "FICHA COMPLETA"
   ========================================================= */

.mobile-ficha-overlay {
    position: fixed;
    inset: 0;
    z-index: 9998;
    background: rgba(15, 23, 42, 0.45);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    display: flex;
    align-items: flex-end;
    animation: fadeIn 0.2s ease;
}

.mobile-ficha-overlay.hidden {
    display: none !important;
}

.mobile-ficha-sheet {
    width: 100%;
    max-height: 82vh;
    max-height: 82dvh;
    background: #ffffff;
    border-radius: 20px 20px 0 0;
    display: flex;
    flex-direction: column;
    box-shadow: 0 -8px 40px rgba(15, 23, 42, 0.18);
    animation: slideUp 0.32s cubic-bezier(0.34, 1.20, 0.64, 1);
    overflow: hidden;
}

@keyframes slideUp {
    from { transform: translateY(100%); }
    to   { transform: translateY(0); }
}

.ficha-handle {
    width: 40px;
    height: 4px;
    background: rgba(15, 23, 42, 0.14);
    border-radius: 9999px;
    margin: 10px auto 4px;
    flex-shrink: 0;
}

.ficha-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 20px 12px;
    border-bottom: 1px solid rgba(15, 23, 42, 0.06);
    flex-shrink: 0;
}

.ficha-header-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-heading);
    font-size: 16px;
    font-weight: 800;
    color: var(--text-primary);
}

.ficha-close-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    background: rgba(15, 23, 42, 0.06);
    color: var(--text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    transition: var(--transition-fast);
}

.ficha-close-btn:hover {
    background: rgba(15, 23, 42, 0.12);
    color: var(--text-primary);
}

.ficha-progress-summary {
    display: flex;
    gap: 8px;
    padding: 12px 20px;
    background: transparent;
    border-bottom: 1px solid rgba(15, 23, 42, 0.05);
    flex-shrink: 0;
    flex-wrap: wrap;
}

.ficha-pill {
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-size: 12px;
    font-weight: 700;
    padding: 6px 14px;
    border-radius: 9999px;
    border: none;
}

.ficha-pill.enviado {
    background: #e6f4ea;
    color: #137333;
}

.ficha-pill.pendente {
    background: #fce8e6;
    color: #c5221f;
}

.ficha-pill.dispensado {
    background: #f1f3f4;
    color: #5f6368;
}

.ficha-content {
    overflow-y: auto;
    padding: 16px 20px 28px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex: 1;
    -webkit-overflow-scrolling: touch;
}

/* Card individual da Ficha Completa (Design de Referência) */
.ficha-doc-row {
    background: #ffffff;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid rgba(15, 23, 42, 0.08);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02);
    padding: 16px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.ficha-doc-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 0 10px 0;
    background: transparent;
}

.ficha-doc-info {
    display: flex;
    align-items: center;
    gap: 8px;
}

.ficha-doc-label {
    font-family: var(--font-heading);
    font-size: 15px;
    font-weight: 700;
    color: #0f172a;
}

.ficha-doc-status-badge {
    font-size: 11px;
    font-weight: 700;
    padding: 3px 12px;
    border-radius: 20px;
    text-transform: capitalize;
}

.ficha-doc-status-badge.enviado,
.ficha-doc-status-badge.identificado {
    background: #e6f4ea;
    color: #137333;
}

.ficha-doc-status-badge.pendente {
    background: #fce8e6;
    color: #c5221f;
}

.ficha-doc-status-badge.dispensado {
    background: #f1f3f4;
    color: #5f6368;
}

/* Bloco de dados extraídos */
.ficha-doc-data {
    padding: 8px 0 4px 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
    background: transparent;
    border: none;
}

.ficha-source-banner {
    background: #e6f7ed;
    border: 1px solid #a8e6cf;
    border-radius: 10px;
    padding: 8px 12px;
    font-size: 12px;
    font-weight: 700;
    color: #137333;
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 6px;
}

.ficha-data-field {
    display: flex;
    flex-direction: column;
    gap: 2px;
    text-align: left;
}

.ficha-data-label {
    font-size: 10px;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.ficha-data-value {
    font-family: var(--font-heading);
    font-size: 13px;
    font-weight: 700;
    color: #0f172a;
    white-space: normal;
    word-break: break-word;
    line-height: 1.35;
}

/* Botão CTA/Ação dentro do Card da Ficha */
.ficha-doc-cta {
    background: none;
    border: none;
    font-family: var(--font-heading);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    padding: 10px 0 0 0;
    margin-top: 10px;
    display: flex;
    align-items: center;
    gap: 6px;
    width: 100%;
    border-top: 1px dashed rgba(15, 23, 42, 0.1);
    transition: var(--transition-fast);
    text-align: left;
}

.ficha-doc-cta.pendente {
    color: #2563eb;
}

.ficha-doc-cta.enviado,
.ficha-doc-cta.identificado {
    color: #10b981;
}

.ficha-doc-cta:hover {
    opacity: 0.85;
}

/* ==========================================================================
   NOVAS REGRAS - INLINE MOBILE UPLOAD ACCORDION
   ========================================================================== */
.mobile-inline-upload-container {
    animation: slideDown 0.25s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    transform-origin: top;
    overflow: visible !important;
    max-height: none !important;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: scaleY(0.9);
        max-height: 0;
    }
    to {
        opacity: 1;
        transform: scaleY(1);
        max-height: 2000px;
    }
}

/* Ajustes de responsividade das caixas de texto */
.fields-grid select.field-input,
.form-grid-modal select.field-input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background-color: var(--surface);
    color: var(--text-primary);
    font-size: 13px;
    font-weight: 500;
    transition: var(--transition-fast);
}

.fields-grid select.field-input:focus,
.form-grid-modal select.field-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-glow);
    outline: none;
}

/* ==========================================================================
   OTIMIZAÇÕES DE PERFORMANCE, TRANSIÇÃO E FLUIDEZ DO SCROLL
   ========================================================================== */

/* Previne arrasto fantasma e seleção acidental de texto durante rolagem com mouse/toque pressionado */
.checklist-item,
.grid-card,
.mobile-card,
.ficha-doc-row,
.ficha-desktop-item-card,
.btn-upload-option,
.btn-primary,
.btn-secondary,
.btn-success,
.btn-primary-green,
.badge,
.tab-btn,
.logo-icon,
h1, h2, h3, h4, h5, h6,
label {
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

/* Previne que imagens entrem em modo drag e travem o scroll nativo do navegador */
img {
    -webkit-user-drag: none;
    user-select: none;
    -webkit-user-select: none;
}

/* Força aceleração de hardware (GPU) nas abas e transições mobile para rolagem suave */
.mobile-view-toggle,
.mobile-progress-header,
.mobile-upload-options,
.modal-overlay,
.modal-content,
.app-container {
    transform: translate3d(0, 0, 0);
    -webkit-transform: translate3d(0, 0, 0);
    will-change: transform;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

/* ==========================================================================
   FIX: Formulário de Digitação Manual — Conta Corrente (Mobile + Desktop)
   Garante visibilidade completa de todos os campos em qualquer resolução.
   ========================================================================== */

/* --- MOBILE: Container do formulário inline de digitação bancária --- */
.mobile-cc-manual-fields-container {
    max-height: none !important;
    overflow: visible !important;
    overflow-y: visible !important;
    padding-bottom: 12px;
    scroll-margin-top: 72px;
    background: #ffffff;
    border-radius: 10px;
    box-sizing: border-box;
}

/* Container de upload inline: compensa header ao fazer scroll automático */
.mobile-inline-upload-container {
    scroll-margin-top: 72px;
    max-height: none !important;
    overflow: visible !important;
    overflow-y: visible !important;
}

/* --- DESKTOP: Painel lateral do formulário manual de conta corrente --- */
#desktop-cc-manual-form-container {
    max-height: none !important;
    overflow: visible !important;
    overflow-y: visible !important;
    padding-bottom: 12px;
    scroll-margin-top: 72px;
}

/* Regra utilitária para exibição em 2 colunas (ex: Agência e Conta lado a lado) */
.cc-fields-row {
    display: flex;
    gap: 8px;
    align-items: flex-start;
    width: 100%;
}

.cc-fields-row > div {
    margin: 0;
}

/* ==========================================================================
   ESTILOS PAINEL DE RH & BOTÃO DE ACESSO CORPORATIVO
   ========================================================================== */
.btn-rh-green-visible {
    width: 100%;
    background: linear-gradient(135deg, #059669 0%, #10b981 100%);
    border: none;
    color: #ffffff !important;
    padding: 12px 20px;
    border-radius: 12px;
    font-family: var(--font-heading);
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    box-shadow: 0 4px 14px rgba(5, 150, 105, 0.35);
    transition: all 0.25s ease-in-out;
}

.btn-rh-green-visible:hover {
    background: linear-gradient(135deg, #047857 0%, #059669 100%);
    box-shadow: 0 6px 18px rgba(5, 150, 105, 0.45);
    transform: translateY(-2px);
}

.btn-rh-trigger {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1), rgba(5, 150, 105, 0.15));
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: #059669;
    padding: 9px 18px;
    border-radius: 20px;
    font-family: var(--font-heading);
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-rh-trigger:hover {
    background: #059669;
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(5, 150, 105, 0.25);
    transform: translateY(-1px);
}

.modal-rh-dashboard {
    max-width: 1440px !important;
    width: 96% !important;
    max-height: 92vh !important;
    border-radius: 20px !important;
    padding: 32px 36px !important;
    overflow-y: auto !important;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25) !important;
}

.rh-kpi-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
    margin: 20px 0 28px 0;
}

@media (max-width: 1100px) {
    .rh-kpi-grid {
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    }
}

.rh-kpi-card {
    background: #ffffff;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 16px;
    padding: 18px 22px;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.03);
    display: flex;
    flex-direction: column;
    gap: 6px;
    transition: all 0.2s ease;
}

.rh-kpi-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.06);
}

.rh-kpi-card .kpi-label {
    font-size: 11px;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.6px;
}

.rh-kpi-card .kpi-val {
    font-size: 28px;
    font-weight: 800;
    font-family: var(--font-heading);
    color: var(--text-primary);
}

.rh-kpi-card.green .kpi-val { color: #059669; }
.rh-kpi-card.yellow .kpi-val { color: #d97706; }
.rh-kpi-card.blue .kpi-val { color: #2563eb; }
.rh-kpi-card.purple .kpi-val { color: #7c3aed; }

.vaga-block-row {
    background: #ffffff;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 14px;
    padding: 18px 24px;
    margin-bottom: 14px;
    display: grid;
    grid-template-columns: 1fr auto auto;
    grid-template-areas: "info link counters";
    align-items: center;
    gap: 20px;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.02);
    cursor: pointer;
}

.vaga-block-row:hover {
    border-color: rgba(5, 150, 105, 0.3);
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.05);
}

.vaga-block-row .vaga-block-info   { grid-area: info; }
.vaga-block-row .btn-vaga-link-copy { grid-area: link; justify-self: end; }
.vaga-block-row .vaga-block-counters { grid-area: counters; }

@media (max-width: 900px) {
    .vaga-block-row {
        grid-template-columns: 1fr auto;
        grid-template-areas:
            "info link"
            "counters counters";
    }
}

.vaga-block-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.vaga-block-info h4 {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
}

.vaga-block-info span {
    font-size: 13px;
    color: var(--text-muted);
}

.vaga-block-counters {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.vaga-counter-pill {
    padding: 6px 14px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
}

.vaga-counter-pill.approved { background: rgba(16, 185, 129, 0.12); color: #059669; }
.vaga-counter-pill.pending { background: rgba(245, 158, 11, 0.12); color: #d97706; }
.vaga-counter-pill.rh-eval { background: rgba(37, 99, 235, 0.12); color: #2563eb; }
.vaga-counter-pill.erp-appr { background: rgba(124, 58, 237, 0.12); color: #7c3aed; }

/* Botão Clipe de Papel - Link Personalizado da Vaga */
.btn-vaga-link-copy {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px 14px;
    border-radius: 10px;
    border: 1.5px solid rgba(16, 185, 129, 0.30);
    background: rgba(16, 185, 129, 0.07);
    color: var(--primary);
    font-family: var(--font-body);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    flex-shrink: 0;
    letter-spacing: 0.2px;
}

.btn-vaga-link-copy i {
    font-size: 14px;
    transition: transform 0.2s ease;
}

.btn-vaga-link-copy:hover {
    background: rgba(16, 185, 129, 0.16);
    border-color: var(--primary);
    color: var(--primary-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.20);
}

.btn-vaga-link-copy:hover i {
    transform: rotate(-15deg);
}

.btn-vaga-link-copy:active {
    transform: translateY(0);
    box-shadow: none;
}

.btn-vaga-link-copy.copied {
    background: rgba(16, 185, 129, 0.18);
    border-color: var(--primary);
    color: #059669;
    animation: copyFlash 0.3s ease;
}

@keyframes copyFlash {
    0%   { transform: scale(1.05); }
    50%  { transform: scale(0.98); }
    100% { transform: scale(1); }
}

.toast-rh-success {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background: #059669;
    color: #ffffff;
    padding: 14px 20px;
    border-radius: 10px;
    font-weight: 700;
    box-shadow: 0 10px 25px rgba(5, 150, 105, 0.3);
    z-index: 1000100 !important;
    animation: fadeInUp 0.3s ease-out;
}

/* Notificações e Toasts Globais devem sempre ficar no topo de qualquer modal */
#mobile-toast,
.toast-notification,
#mobile-confirm-modal {
    z-index: 1000100 !important;
}

/* Alerta de erro no modal de criação de vaga */
#nova-vaga-error:not(.hidden) {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #991b1b;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 12px;
    display: flex !important;
    align-items: center;
    gap: 8px;
}

/* ==========================================================================
   M5.C — DRAWER LATERAL DE CANDIDATOS E CARDS DE DIVERGÊNCIA RH
   ========================================================================== */

.drawer-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.5);
    backdrop-filter: blur(4px);
    z-index: 99998 !important;
    transition: opacity 0.3s ease;
}

.drawer-overlay.hidden {
    display: none !important;
    pointer-events: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    z-index: -9999 !important;
}

.vaga-drawer {
    position: fixed;
    top: 0;
    right: 0;
    width: 560px;
    max-width: 100vw;
    height: 100vh;
    background: #0f172a;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.4);
    z-index: 99999 !important;
    display: flex;
    flex-direction: column;
    transform: translateX(0);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.vaga-drawer.hidden {
    transform: translateX(100%);
    display: none !important;
    pointer-events: none !important;
    z-index: -9999 !important;
}

.drawer-header {
    padding: 20px;
    background: #1e293b;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.btn-close-drawer {
    background: transparent;
    border: none;
    color: #94a3b8;
    font-size: 18px;
    cursor: pointer;
    padding: 6px;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.btn-close-drawer:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.1);
}

.drawer-search-bar {
    padding: 14px 20px;
    background: #0f172a;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
}

.drawer-search-bar input {
    width: 100%;
    padding: 10px 14px 10px 38px;
    background: #1e293b;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: #ffffff;
    font-size: 13px;
}

.drawer-search-bar .search-icon {
    position: absolute;
    left: 32px;
    top: 50%;
    transform: translateY(-50%);
    color: #64748b;
    font-size: 14px;
}

.drawer-candidatos-container {
    flex: 1;
    overflow-y: auto;
    padding: 16px 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.candidato-row {
    background: #1e293b;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: 14px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    transition: all 0.2s ease;
}

.candidato-row:hover {
    border-color: rgba(16, 185, 129, 0.4);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

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

.candidato-nome {
    font-size: 14px;
    font-weight: 700;
    color: #ffffff;
}

.candidato-cpf {
    font-size: 12px;
    color: #94a3b8;
}

.candidato-status-pill {
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
}

.candidato-status-pill.validado { background: rgba(16, 185, 129, 0.15); color: #34d399; }
.candidato-status-pill.em_revisao { background: rgba(245, 158, 11, 0.15); color: #fbbf24; }
.candidato-status-pill.nao_iniciado { background: rgba(148, 163, 184, 0.15); color: #94a3b8; }
.candidato-status-pill.rejeitado { background: rgba(239, 68, 68, 0.15); color: #f87171; }

.drawer-pagination {
    padding: 14px 20px;
    background: #1e293b;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* CARDS DE DIVERGÊNCIAS NO MODAL RH */
.divergencia-card {
    background: rgba(245, 158, 11, 0.06);
    border: 1px solid rgba(245, 158, 11, 0.25);
    border-radius: 10px;
    padding: 14px;
    margin-bottom: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.divergencia-header {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    font-weight: 700;
    color: #d97706;
}

.divergencia-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    font-size: 12px;
}

.divergencia-val-box {
    background: #ffffff;
    border: 1px solid rgba(15, 23, 42, 0.1);
    border-radius: 6px;
    padding: 8px 10px;
}

.divergencia-val-box label {
    display: block;
    font-size: 10px;
    color: var(--text-muted);
    font-weight: 700;
    text-transform: uppercase;
}

.audit-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 12px;
    background: rgba(16, 185, 129, 0.15);
    color: #059669;
    font-size: 11px;
    font-weight: 700;
}

/* ==========================================================================
   DASHBOARD ENTERPRISE RH — LAYOUT FULLPAGE E MENU LATERAL (SAAS GREEN THEME)
   ========================================================================== */

#rh-dashboard-modal.rh-dashboard-fullscreen-container {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    background: #f8fafc !important;
    z-index: 99990 !important;
    display: flex !important;
    flex-direction: column !important;
    overflow: hidden !important;
    pointer-events: auto !important;
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
}

#rh-dashboard-modal.hidden {
    display: none !important;
}

#rh-login-modal {
    z-index: 100005;
}
#rh-login-modal.hidden {
    display: none !important;
}

#candidate-guidance-modal.hidden {
    display: none !important;
}

/* Modais internos do RH ficam acima do container do Dashboard */
#rh-nova-vaga-modal,
#rh-informar-candidatos-modal,
#rh-novo-health-plan-modal,
#rh-validacao-modal,
#rh-2fa-setup-modal {
    z-index: 100000 !important;
}

/* TOPBAR SUPERIOR GLOBAL */
.rh-topbar {
    position: relative !important;
    height: 64px;
    min-height: 64px;
    background: #ffffff;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 24px;
    z-index: 1050 !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
}

.rh-topbar-left {
    display: flex;
    align-items: center;
    gap: 18px;
}

.rh-sidebar-toggle-btn {
    background: transparent;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #475569;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.rh-sidebar-toggle-btn:hover {
    background: #f8fafc;
    color: #0f172a;
    border-color: #cbd5e1;
}

.rh-topbar-breadcrumb {
    display: flex;
    align-items: center;
}

.rh-breadcrumb-desc {
    font-family: var(--font-heading);
    font-size: 14px;
    color: #64748b;
    font-weight: 500;
}

.rh-breadcrumb-desc .brand-name-topbar,
.rh-breadcrumb-desc strong {
    font-family: var(--font-heading);
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.3px;
}

.rh-topbar-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.rh-icon-btn {
    width: 38px;
    height: 38px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #64748b;
    cursor: pointer;
    position: relative;
    transition: all 0.2s ease;
}

.rh-icon-btn:hover {
    background: #f8fafc;
    color: #0f172a;
}

.rh-icon-btn .notification-dot {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 8px;
    height: 8px;
    background: #ef4444;
    border-radius: 50%;
}

.rh-user-pill {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 4px 12px 4px 6px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
}

.user-avatar-initials {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(5, 150, 105, 0.12);
    color: #059669;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 800;
}

.rh-user-pill .user-details {
    display: flex;
    flex-direction: column;
}

.rh-user-pill .user-name {
    font-size: 12px;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.1;
}

.user-email {
    font-size: 10px;
    color: #64748b;
}

.user-dropdown-arrow {
    font-size: 11px;
    color: #64748b;
    margin-left: 2px;
}

.btn-logout-pill {
    background: transparent;
    border: none;
    color: #94a3b8;
    cursor: pointer;
    padding: 6px;
    font-size: 14px;
    border-radius: 50%;
    transition: color 0.2s ease;
}

.btn-logout-pill:hover {
    color: #ef4444;
}

/* ESTRUTURA DO CORPO (SIDEBAR + MAIN CANVAS) */
.rh-app-body {
    flex: 1;
    display: flex;
    height: calc(100vh - 64px);
    overflow: hidden;
}

/* SIDEBAR RETRÁTIL LATERAL */
.rh-sidebar {
    width: 250px;
    min-width: 250px;
    background: #ffffff;
    border-right: 1px solid #e2e8f0;
    display: flex;
    flex-direction: column;
    padding: 18px 14px;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 15;
}

/* MODO ENCOLHIDO DA SIDEBAR (COLLAPSED) */
.rh-sidebar.collapsed {
    width: 68px !important;
    min-width: 68px !important;
    padding: 18px 10px !important;
}

.rh-sidebar.collapsed .rh-brand-logo-img,
.rh-sidebar.collapsed .brand-logo-img,
.rh-sidebar.collapsed .brand-digai,
.rh-sidebar.collapsed .brand-tag-alligator,
.rh-sidebar.collapsed .rh-nav-section-label,
.rh-sidebar.collapsed .ws-box-info,
.rh-sidebar.collapsed .ws-box-arrow,
.rh-sidebar.collapsed .nav-text,
.rh-sidebar.collapsed .lang-text {
    display: none !important;
}

.rh-sidebar.collapsed .rh-workspace-card-box {
    justify-content: center;
    padding: 8px;
}

.rh-sidebar.collapsed .rh-nav-item {
    justify-content: center;
    padding: 12px;
}

/* MARCA DA PLATAFORMA NA SIDEBAR (LOGO DO JACARÉ) */
.rh-sidebar-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 8px 10px 18px 10px;
    text-align: center;
}

.rh-brand-logo-img {
    max-height: 44px;
    max-width: 180px;
    object-fit: contain;
    display: block;
    margin: 0 auto;
}

.rh-nav-section-label {
    font-size: 11px;
    font-weight: 700;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 8px 6px 4px 6px;
}

/* CARD DE SELEÇÃO DE WORKSPACE */
.rh-workspace-card-box {
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 10px 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 4px 0 16px 0;
    background: #ffffff;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02);
}

.rh-workspace-card-box:hover {
    border-color: #cbd5e1;
    background: #f8fafc;
}

.ws-box-img-icon {
    width: 32px;
    height: 32px;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #059669;
    font-size: 14px;
    background: rgba(5, 150, 105, 0.08);
}

.ws-box-info {
    display: flex;
    flex-direction: column;
}

.ws-box-title {
    font-size: 13px;
    font-weight: 700;
    color: #0f172a;
}

.ws-box-arrow {
    margin-left: auto;
    font-size: 11px;
    color: #64748b;
}

/* NAVEGAÇÃO DA SIDEBAR */
.rh-nav-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
}

.rh-nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    border-radius: 8px;
    color: #475569;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
}

.rh-nav-item i {
    font-size: 15px;
    width: 18px;
    text-align: center;
    color: #64748b;
}

.rh-nav-item:hover {
    background: #f1f5f9;
    color: #0f172a;
}

.rh-nav-item.active-pill {
    background: #059669 !important;
    color: #ffffff !important;
    border-radius: 8px;
    font-weight: 700;
    padding: 10px 14px;
    box-shadow: 0 2px 6px rgba(5, 150, 105, 0.25);
}

.rh-nav-item.active-pill i {
    color: #ffffff !important;
}

.rh-sidebar-footer {
    padding-top: 14px;
    border-top: 1px solid #e2e8f0;
}

.lang-selector {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: #64748b;
    padding: 6px 8px;
    cursor: pointer;
}

/* ÁREA CANVAS PRINCIPAL DO DASHBOARD */
.rh-main-canvas {
    flex: 1;
    height: calc(100vh - 64px);
    overflow-y: auto;
    padding: 24px 32px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    background: #f8fafc;
}

.rh-main-canvas.hidden,
main.rh-main-canvas.hidden {
    display: none !important;
}

.rh-canvas-top-bar {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 2px 0 6px 0;
}

.rh-canvas-title {
    font-size: 24px;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 4px 0;
}

.rh-canvas-subtitle {
    font-size: 13px;
    color: #64748b;
    margin: 0;
    max-width: 700px;
    line-height: 1.4;
}

.rh-canvas-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.btn-rh-outline {
    border: 1px solid #059669;
    color: #059669;
    background: #ffffff;
    padding: 8px 16px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 13px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s ease;
    line-height: 1.2;
}

.btn-rh-outline:hover {
    background: #f0fdf4;
    border-color: #047857;
    color: #047857;
}

.btn-rh-primary,
.btn-rh-primary-blue,
.btn-rh-primary-green,
.btn-rh-success {
    background: #059669;
    color: #ffffff;
    border: 1px solid #059669;
    padding: 8px 16px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 13px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 2px 6px rgba(5, 150, 105, 0.2);
    transition: all 0.2s ease;
    line-height: 1.2;
}

.btn-rh-primary:hover,
.btn-rh-primary-blue:hover,
.btn-rh-primary-green:hover,
.btn-rh-success:hover {
    background: #047857;
    border-color: #047857;
    box-shadow: 0 4px 10px rgba(4, 120, 87, 0.3);
    transform: translateY(-1px);
}

/* CAMPOS DE DATA E CALENDÁRIO PT-BR (dd/mm/yyyy) */
.input-date-filter {
    padding: 6px 12px;
    font-size: 12px;
    font-family: inherit;
    font-weight: 600;
    color: #1e293b;
    background-color: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    outline: none;
    transition: all 0.2s ease;
    cursor: pointer;
}

.input-date-filter:focus,
.input-date-filter:hover {
    border-color: #059669;
    box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.12);
}

.input-date-filter::-webkit-calendar-picker-indicator {
    cursor: pointer;
    filter: invert(36%) sepia(85%) saturate(740%) hue-rotate(120deg) brightness(92%) contrast(96%);
    transition: transform 0.15s ease;
}

.input-date-filter::-webkit-calendar-picker-indicator:hover {
    transform: scale(1.15);
}


/* PLACAR DE KPIS NO TOPO DO CANVAS */
.rh-kpi-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 14px;
    margin: 4px 0 12px 0;
}

@media (max-width: 1100px) {
    .rh-kpi-grid {
        grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    }
}

.rh-kpi-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 14px 16px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
    display: flex;
    flex-direction: column;
    gap: 6px;
    transition: all 0.2s ease;
}

.rh-kpi-card:hover {
    border-color: #cbd5e1;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
}

.rh-kpi-card .kpi-header {
    display: flex;
    align-items: center;
    gap: 8px;
}

.rh-kpi-card .kpi-icon {
    font-size: 14px;
}

.rh-kpi-card .kpi-label {
    font-size: 11px;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.rh-kpi-card .kpi-val {
    font-size: 24px;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.1;
}

.rh-kpi-card.green .kpi-icon { color: #059669; }
.rh-kpi-card.green .kpi-val { color: #059669; }
.rh-kpi-card.yellow .kpi-icon { color: #d97706; }
.rh-kpi-card.purple .kpi-icon { color: #7c3aed; }
.rh-kpi-card.blue .kpi-icon { color: #2563eb; }

/* CONTAINER E TABELA SAAS */
.rh-table-card-container {
    background: #ffffff;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
    overflow: hidden;
}

.rh-table-card-container.rh-toolbar-card-container,
.rh-table-card-container.rh-filter-bar-container,
.rh-toolbar-card-container {
    overflow: visible !important;
    position: relative;
    z-index: 30;
}

.rh-table-scroll-wrapper {
    overflow-x: auto;
}

.rh-saas-table {
    width: 100%;
    min-width: 980px;
    table-layout: fixed;
    border-collapse: collapse;
    font-size: 12px;
}

.rh-saas-table th {
    background: #f8fafc;
    color: #1e293b;
    font-weight: 700;
    font-size: 11px;
    padding: 10px 6px;
    border-bottom: 1px solid #e2e8f0;
    text-align: left;
    white-space: nowrap;
    vertical-align: middle;
}

.rh-saas-table th.text-center,
.rh-saas-table td.text-center {
    text-align: center !important;
}

.rh-saas-table td {
    padding: 8px 6px;
    border-bottom: 1px solid #f1f5f9;
    color: #334155;
    white-space: nowrap;
    vertical-align: middle;
}

.rh-saas-table tr:hover td {
    background: #fafafa;
}

.th-sort-wrapper {
    display: flex;
    align-items: center;
    gap: 4px;
}

.sort-icon {
    color: #94a3b8;
    font-size: 10px;
}

.col-workspace-name {
    font-weight: 600;
    color: #0f172a;
}

/* Larguras explícitas e alinhamentos sincronizados por coluna (9 colunas no Dashboard de Vagas) */
#rh-vagas-container .rh-saas-table th:nth-child(1), #rh-vagas-container .rh-saas-table td:nth-child(1) { width: 21%; text-align: left !important; }
#rh-vagas-container .rh-saas-table th:nth-child(2), #rh-vagas-container .rh-saas-table td:nth-child(2) { width: 8%; text-align: center !important; }
#rh-vagas-container .rh-saas-table th:nth-child(3), #rh-vagas-container .rh-saas-table td:nth-child(3) { width: 10%; text-align: center !important; }
#rh-vagas-container .rh-saas-table th:nth-child(4), #rh-vagas-container .rh-saas-table td:nth-child(4) { width: 12%; text-align: center !important; }
#rh-vagas-container .rh-saas-table th:nth-child(5), #rh-vagas-container .rh-saas-table td:nth-child(5) { width: 7%; text-align: center !important; }
#rh-vagas-container .rh-saas-table th:nth-child(6), #rh-vagas-container .rh-saas-table td:nth-child(6) { width: 15%; text-align: center !important; }
#rh-vagas-container .rh-saas-table th:nth-child(7), #rh-vagas-container .rh-saas-table td:nth-child(7) { width: 12%; text-align: center !important; }
#rh-vagas-container .rh-saas-table th:nth-child(8), #rh-vagas-container .rh-saas-table td:nth-child(8) { width: 5%; text-align: center !important; }
#rh-vagas-container .rh-saas-table th:nth-child(9), #rh-vagas-container .rh-saas-table td:nth-child(9) { width: 10%; text-align: center !important; }

/* Regras gerais de fallback para .rh-saas-table no Dashboard */
.rh-saas-table th:nth-child(1), .rh-saas-table td:nth-child(1) { width: 21%; text-align: left !important; }
.rh-saas-table th:nth-child(2), .rh-saas-table td:nth-child(2) { width: 8%; text-align: center !important; }
.rh-saas-table th:nth-child(3), .rh-saas-table td:nth-child(3) { width: 10%; text-align: center !important; }
.rh-saas-table th:nth-child(4), .rh-saas-table td:nth-child(4) { width: 12%; text-align: center !important; }
.rh-saas-table th:nth-child(5), .rh-saas-table td:nth-child(5) { width: 7%; text-align: center !important; }
.rh-saas-table th:nth-child(6), .rh-saas-table td:nth-child(6) { width: 15%; text-align: center !important; }
.rh-saas-table th:nth-child(7), .rh-saas-table td:nth-child(7) { width: 12%; text-align: center !important; }
.rh-saas-table th:nth-child(8), .rh-saas-table td:nth-child(8) { width: 5%; text-align: center !important; }
.rh-saas-table th:nth-child(9), .rh-saas-table td:nth-child(9) { width: 10%; text-align: center !important; }


.ws-name-text {
    color: #0f172a;
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.btn-table-action-icon {
    background: transparent;
    border: none;
    font-size: 15px;
    cursor: pointer;
    color: #64748b;
    padding: 6px;
    border-radius: 4px;
    transition: color 0.15s ease;
}

.btn-table-action-icon.btn-copy-vaga-link {
    color: var(--primary);
    background: rgba(16, 185, 129, 0.08);
    border: 1px solid rgba(16, 185, 129, 0.22);
    border-radius: var(--radius-sm, 6px);
    width: 30px;
    height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-table-action-icon.btn-copy-vaga-link:hover {
    background: var(--primary);
    color: #ffffff !important;
    border-color: var(--primary);
    transform: translateY(-1px);
    box-shadow: 0 3px 8px rgba(16, 185, 129, 0.3);
}

.btn-table-action-icon.btn-copy-vaga-link:hover i {
    color: #ffffff !important;
}

.btn-table-action-icon.btn-copy-vaga-link.copied {
    background: #059669 !important;
    color: #ffffff !important;
    border-color: #059669 !important;
    transform: scale(1.05);
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.25);
}

.btn-table-action-icon.btn-copy-vaga-link.copied i {
    color: #ffffff !important;
}

.btn-table-action-icon.edit:hover {
    color: #059669;
}

.btn-table-action-icon.delete {
    color: #ef4444;
}

.btn-table-action-icon.delete:hover {
    color: #dc2626;
}

.btn-table-action-icon.download:hover {
    color: #0f172a;
}

/* PAGINAÇÃO DE RODAPÉ */
.rh-pagination-bar {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 14px 16px;
    background: #ffffff;
    border-top: 1px solid #f1f5f9;
}

.rh-pagination-controls {
    display: flex;
    align-items: center;
    gap: 8px;
}

.page-num-btn {
    width: 32px;
    height: 32px;
    border-radius: 4px;
    border: 1px solid transparent;
    background: transparent;
    font-weight: 700;
    font-size: 13px;
    color: #475569;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.page-num-btn.active {
    background: #059669;
    color: #ffffff;
    border-radius: 4px;
}

.page-nav-arrow {
    width: 32px;
    height: 32px;
    background: transparent;
    border: none;
    color: #64748b;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.page-nav-arrow.disabled {
    color: #cbd5e1;
    cursor: not-allowed;
}

/* ==========================================================================
   BADGES DE DOCUMENTOS E NAVEGAÇÃO MULTI-TELA RH (NÍVEL 2 E NÍVEL 3)
   ========================================================================== */

.doc-badges-grid {
    display: grid;
    grid-template-columns: auto auto;
    gap: 5px 8px;
    align-items: center;
    justify-content: center;
    width: fit-content;
    max-width: 100%;
    margin: 0 auto;
}

.doc-badges-flex {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: center;
    align-items: center;
}

/* ========================================================================== */
/* ESCALA SEMÂNTICA FIXA DE CORES & VALIDAÇÃO DE DOCUMENTOS (M00-B)           */
/* ========================================================================== */

.badge-doc-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.2;
    white-space: nowrap;
    width: auto;
    box-sizing: border-box;
    transition: all 0.2s ease;
}

/* 🟢 Aprovado / OK - Verde */
.badge-doc-pill.ok,
.badge-doc-pill.ok-green {
    background: #f0fdf4;
    color: #15803d;
    border: 1px solid #bbf7d0;
}

/* 🟣 Avaliação Humana Necessária / Validação Manual RH - Roxo */
.badge-doc-pill.warning-purple,
.badge-doc-pill.manual-purple {
    background: #f5f3ff;
    color: #6d28d9;
    border: 1px solid #ddd6fe;
}

/* 🟡 Pendência do Candidato / Envio Pendente - Amarelo / Âmbar */
.badge-doc-pill.pending,
.badge-doc-pill.pending-yellow {
    background: #fefce8;
    color: #b45309;
    border: 1px solid #fde68a;
}

/* 🔵 Anexado pelo RH / Informativo - Azul */
.badge-doc-pill.rh-blue {
    background: #eff6ff;
    color: #1d4ed8;
    border: 1px solid #bfdbfe;
}

/* 🔴 Rejeitado / Inválido - Vermelho */
.badge-doc-pill.error-red {
    background: #fef2f2;
    color: #b91c1c;
    border: 1px solid #fecaca;
}

/* CARD DE EXTRAÇÃO OCR HUMANIZADA */
.ocr-humanized-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 12px 14px;
    margin-top: 6px;
}

.ocr-field-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 8px;
    margin-top: 8px;
}

.ocr-field-chip {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 6px 10px;
    font-size: 11px;
    color: #334155;
}

.ocr-field-chip strong {
    display: block;
    color: #0f172a;
    font-size: 12px;
    font-weight: 700;
    margin-top: 2px;
}

/* BOX DE SINALIZAÇÃO DE INCONSISTÊNCIA */
.inconsistency-alert-box {
    border-radius: 10px;
    padding: 10px 14px;
    margin-top: 8px;
    font-size: 12px;
    line-height: 1.5;
}

.inconsistency-alert-box.purple {
    background: #faf5ff;
    border: 1px solid #d8b4fe;
    color: #581c87;
}

.inconsistency-alert-box.yellow {
    background: #fffbeb;
    border: 1px solid #fde68a;
    color: #92400e;
}

.inconsistency-diff-table {
    width: 100%;
    margin-top: 6px;
    border-collapse: collapse;
    font-size: 11px;
}

.inconsistency-diff-table td {
    padding: 4px 8px;
    border: 1px solid rgba(0,0,0,0.06);
}

.inconsistency-diff-table td.header {
    background: rgba(0,0,0,0.04);
    font-weight: 700;
    width: 140px;
}

/* BADGE DE VERSÃO DO APLICATIVO */
.app-version-badge {
    background: rgba(16, 185, 129, 0.12);
    color: #059669;
    border: 1px solid rgba(16, 185, 129, 0.3);
    font-size: 11px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    line-height: 1.2;
    vertical-align: middle;
    margin-left: 6px;
    letter-spacing: 0.5px;
}

/* BOTÕES DE AÇÃO DO PAINEL RH */
.btn-rh-warning {
    background: #d97706;
    color: #ffffff;
    border: none;
    padding: 9px 18px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 13px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 2px 6px rgba(217, 119, 6, 0.25);
    transition: all 0.2s ease;
}

.btn-rh-warning:hover {
    background: #b45309;
}

.btn-rh-purple {
    background: #8b5cf6;
    color: #ffffff;
    border: none;
    padding: 9px 18px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 13px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 2px 6px rgba(139, 92, 246, 0.25);
    transition: all 0.2s ease;
}

.btn-rh-purple:hover {
    background: #7c3aed;
}

.btn-rh-success:disabled,
.btn-rh-warning:disabled,
.btn-rh-purple:disabled {
    opacity: 0.55;
    cursor: not-allowed;
    box-shadow: none;
}

/* PROGRESS BAR DE VALIDAÇÃO */
.progress-bar-container {
    width: 100%;
    max-width: 120px;
    height: 8px;
    background: #e2e8f0;
    border-radius: 4px;
    overflow: hidden;
    display: inline-block;
    vertical-align: middle;
}

.progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #10b981, #059669);
    transition: width 0.3s ease;
}

.progress-text-label {
    font-size: 11px;
    font-weight: 700;
    color: #475569;
    margin-left: 6px;
}

/* PÁGINA EXCLUSIVA INDIVIDUAL DE AUDITORIA (NÍVEL 3) */
.rh-candidate-audit-header {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 20px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
}

.audit-candidate-info {
    display: flex;
    align-items: center;
    gap: 16px;
}

.audit-avatar-icon {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: rgba(16, 185, 129, 0.12);
    color: #059669;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.audit-doc-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 16px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.audit-doc-card:hover {
    border-color: #cbd5e1;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.04);
}

.audit-doc-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid #f1f5f9;
}

.audit-doc-title {
    font-size: 15px;
    font-weight: 700;
    color: #0f172a;
    display: flex;
    align-items: center;
    gap: 8px;
}

.audit-doc-body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

@media (max-width: 850px) {
    .audit-doc-body {
        grid-template-columns: 1fr;
    }
}

.audit-field-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.audit-field-label {
    font-size: 11px;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
}

.audit-justification-input {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-size: 13px;
    color: #0f172a;
    background: #ffffff;
    resize: vertical;
    min-height: 40px;
    transition: border-color 0.2s ease;
}

.audit-justification-input:focus {
    border-color: var(--primary);
    outline: none;
    box-shadow: 0 0 0 3px var(--primary-glow);
}

/* ==========================================================================
   PRIORIDADES E DESTAQUES DO NÍVEL 3 DE AUDITORIA (DESIGN SYSTEM ALLIGATOR)
   ========================================================================== */
.audit-doc-card.priority-warning {
    border: 1px solid rgba(139, 92, 246, 0.4);
    border-left: 5px solid #8b5cf6;
    background: #ffffff;
    box-shadow: 0 4px 14px rgba(139, 92, 246, 0.05);
}

.audit-doc-card.priority-pending {
    border: 1px solid rgba(217, 119, 6, 0.35);
    border-left: 5px solid var(--warning);
    background: #ffffff;
    box-shadow: 0 4px 14px rgba(217, 119, 6, 0.04);
}

.audit-doc-card.priority-ok {
    border: 1px solid rgba(16, 185, 129, 0.25);
    border-left: 5px solid var(--primary);
    background: #ffffff;
}

.audit-priority-tag {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: var(--radius-sm);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-family: var(--font-heading);
}

.audit-priority-tag.warning {
    background: #ede9fe;
    color: #6d28d9;
    border: 1px solid #ddd6fe;
}

.audit-priority-tag.pending {
    background: #fef3c7;
    color: #b45309;
    border: 1px solid #fde68a;
}

.audit-priority-tag.ok {
    background: #d1fae5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

/* CONTAINER DE PREVIEW DA IMAGEM / FOTO PARA CONFIRMAÇÃO HUMANA */
.audit-doc-preview-wrapper {
    margin-top: 10px;
    background: var(--bg-main);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-sm);
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.audit-doc-preview-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 11px;
    font-weight: 700;
    color: var(--text-muted);
    font-family: var(--font-heading);
}

.audit-doc-image-box {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #0f172a;
    border-radius: var(--radius-sm);
    overflow: hidden;
    max-height: 200px;
    border: 1px solid rgba(15, 23, 42, 0.12);
}

.audit-doc-image-box img {
    max-height: 200px;
    width: auto;
    max-width: 100%;
    object-fit: contain;
    cursor: zoom-in;
    transition: transform var(--transition-fast);
}

.audit-doc-image-box img:hover {
    transform: scale(1.02);
}

.audit-doc-image-overlay-actions {
    position: absolute;
    bottom: 8px;
    right: 8px;
    display: flex;
    gap: 6px;
}

.audit-doc-image-btn {
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(4px);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-sm);
    padding: 5px 10px;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    text-decoration: none;
    font-family: var(--font-heading);
    transition: all var(--transition-fast);
}

.audit-doc-image-btn:hover {
    background: rgba(15, 23, 42, 0.95);
    color: var(--primary);
    border-color: var(--primary);
}

/* BOTÕES DE AÇÃO RÁPIDA HUMANA NO CARD */
.audit-card-action-bar {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px dashed #e2e8f0;
}

.btn-audit-action-approve {
    background: var(--primary);
    color: #ffffff;
    border: none;
    border-radius: var(--radius-sm);
    padding: 7px 16px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: var(--font-heading);
    transition: background var(--transition-fast), transform var(--transition-fast);
}

.btn-audit-action-approve:hover {
    background: var(--primary-hover);
    transform: translateY(-1px);
}

.btn-audit-action-reject {
    background: #fee2e2;
    color: var(--danger);
    border: 1px solid #fca5a5;
    border-radius: var(--radius-sm);
    padding: 7px 16px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: var(--font-heading);
    transition: background var(--transition-fast);
}

.btn-audit-action-reject:hover {
    background: #fecaca;
    color: #b91c1c;
}

/* HISTÓRICO DE AUDITORIA E LOG DE ALTERAÇÕES */
.audit-history-box {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 16px;
    margin-top: 10px;
}

.audit-history-item {
    font-size: 12px;
    color: #475569;
    padding: 8px 0;
    border-bottom: 1px dashed #e2e8f0;
    display: flex;
    justify-content: space-between;
}

.audit-history-item:last-child {
    border-bottom: none;
}

/* BARRA DE AÇÕES FLUTUANTE INFERIOR */
.audit-actions-sticky-bar {
    position: sticky;
    bottom: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 14px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 16px;
    box-shadow: 0 -4px 16px rgba(15, 23, 42, 0.05);
    z-index: 20;
}

/* BOTÕES DE COBRANÇA MULTICANAL (E-MAIL / WHATSAPP) NO RH */
.btn-rh-email {
    background: #3b82f6;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    padding: 7px 14px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
    box-shadow: 0 2px 6px rgba(59, 130, 246, 0.25);
}

.btn-rh-email:hover {
    background: #2563eb;
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(59, 130, 246, 0.35);
}

.btn-rh-whatsapp {
    background: #25d366;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    padding: 7px 14px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
    box-shadow: 0 2px 6px rgba(37, 211, 102, 0.25);
}

.btn-rh-whatsapp:hover {
    background: #128c7e;
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(37, 211, 102, 0.35);
}

/* BOTÃO E BADGES DE ANEXO DE DOCUMENTO PELO RH (CLIPES) */
.btn-rh-paperclip {
    background: rgba(124, 58, 237, 0.08);
    color: #7c3aed;
    border: 1px dashed #7c3aed;
    border-radius: 6px;
    padding: 5px 10px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
}

.btn-rh-paperclip:hover {
    background: #7c3aed;
    color: #ffffff;
    border-style: solid;
}

.badge-rh-attached {
    background: #f3e8ff;
    color: #6b21a8;
    border: 1px solid #d8b4fe;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

/* ==========================================================================
   PAINEL DROPDOWN DE NOTIFICAÇÕES RH (TOPBAR)
   ========================================================================== */

.rh-icon-btn-wrapper {
    position: relative;
}

.notification-badge-count {
    position: absolute;
    top: -4px;
    right: -4px;
    background: #ef4444;
    color: #ffffff;
    font-size: 10px;
    font-weight: 800;
    padding: 2px 6px;
    border-radius: 10px;
    line-height: 1;
    box-shadow: 0 2px 4px rgba(239, 68, 68, 0.4);
}

.notifications-dropdown-panel {
    position: absolute;
    top: 48px;
    right: 0;
    width: 360px;
    max-width: calc(100vw - 32px);
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.18);
    z-index: 1100 !important;
    overflow: hidden;
    animation: fadeInNotifSlideDown 0.2s ease-out;
}

@keyframes fadeInNotifSlideDown {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.notif-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
}

.notif-header-title {
    font-family: var(--font-heading);
    font-size: 13px;
    font-weight: 700;
    color: #0f172a;
    display: flex;
    align-items: center;
    gap: 8px;
}

.notif-badge-count {
    background: #ef4444;
    color: #ffffff;
    font-size: 10px;
    font-weight: 800;
    padding: 2px 7px;
    border-radius: 10px;
    line-height: 1;
}

.btn-mark-read {
    background: transparent;
    border: none;
    color: #059669;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
    transition: opacity 0.2s;
}

.btn-mark-read:hover {
    text-decoration: underline;
    opacity: 0.8;
}

.notif-list-body {
    max-height: 380px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.notif-item-card {
    display: flex;
    gap: 12px;
    padding: 12px 16px;
    border-bottom: 1px solid #f1f5f9;
    cursor: pointer;
    transition: background 0.15s ease;
    text-align: left;
}

.notif-item-card:hover {
    background: #f8fafc;
}

.notif-item-card.unread {
    background: rgba(16, 185, 129, 0.04);
}

.notif-icon-box {
    width: 36px;
    height: 36px;
    min-width: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
}

.notif-icon-box.signed {
    background: rgba(16, 185, 129, 0.12);
    color: #059669;
}

.notif-icon-box.upload {
    background: rgba(139, 92, 246, 0.12);
    color: #7c3aed;
}

.notif-icon-box.validated {
    background: rgba(59, 130, 246, 0.12);
    color: #2563eb;
}

.notif-content-box {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.notif-top-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.notif-badge-pill {
    font-size: 10px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 6px;
}

.badge-notif-signed {
    background: rgba(16, 185, 129, 0.14);
    color: #047857;
}

.badge-notif-upload {
    background: rgba(139, 92, 246, 0.14);
    color: #6d28d9;
}

.badge-notif-ok {
    background: rgba(59, 130, 246, 0.14);
    color: #1d4ed8;
}

.notif-time {
    font-size: 10px;
    color: #94a3b8;
}

.notif-title-text {
    font-size: 12px;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.3;
}

.notif-desc-text {
    font-size: 11px;
    color: #64748b;
    line-height: 1.3;
}

.notif-footer {
    padding: 10px;
    text-align: center;
    background: #f8fafc;
    border-top: 1px solid #e2e8f0;
}

.btn-notif-refresh {
    font-size: 11px;
    font-weight: 700;
    color: #475569;
    background: transparent;
    border: none;
    cursor: pointer;
}

.btn-notif-refresh:hover {
    color: #059669;
}

/* BADGES DE STATUS DA VAGA (PUBLICADA, PAUSADA, ENCERRADA, ARQUIVADA) */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 7px;
    border-radius: 20px;
    font-size: 10px;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
}

.status-badge.publicada {
    background: #d1fae5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.status-badge.pausada {
    background: #fef3c7;
    color: #92400e;
    border: 1px solid #fde68a;
}

.status-badge.encerrada {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fca5a5;
}

.status-badge.arquivada {
    background: #f1f5f9;
    color: #475569;
    border: 1px solid #cbd5e1;
}

/* BADGES DE INSCRIÇÕES DA VAGA */
.badge-inscricoes {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 7px;
    border-radius: 8px;
    font-size: 10px;
    font-weight: 700;
    white-space: nowrap;
}

.badge-inscricoes.on {
    background: #eff6ff;
    color: #1d4ed8;
    border: 1px solid #bfdbfe;
}

.badge-inscricoes.off {
    background: #f8fafc;
    color: #64748b;
    border: 1px solid #e2e8f0;
}


/* TOGGLE SWITCH SLIDER */
.switch-toggle-lock input {
    opacity: 0;
    width: 0;
    height: 0;
}

.switch-toggle-lock .slider {
    position: absolute;
    cursor: pointer;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: #cbd5e1;
    transition: .3s;
}

.switch-toggle-lock .slider:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .3s;
}

.switch-toggle-lock input:checked + .slider {
    background-color: #10b981;
}

.switch-toggle-lock input:checked + .slider:before {
    transform: translateX(22px);
}

.switch-toggle-lock .slider.round {
    border-radius: 22px;
}

.switch-toggle-lock .slider.round:before {
    border-radius: 50%;
}

/* ==========================================================================
   SELEÇÃO DE PADRÃO DE LAYOUT DO CANDIDATO (MODO CLARO & TONS VERDES)
   ========================================================================== */
.vaga-layout-selection-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.vaga-layout-option-card {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    border: 1.5px solid rgba(15, 23, 42, 0.12);
    border-radius: 10px;
    cursor: pointer;
    background: #ffffff;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
    position: relative;
    user-select: none;
}

.vaga-layout-option-card:hover {
    border-color: rgba(16, 185, 129, 0.5);
    background: #f8fafc;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.08);
    transform: translateY(-1px);
}

.vaga-layout-option-card:has(input[type="radio"]:checked),
.vaga-layout-option-card.active {
    border-color: #10b981 !important;
    background: linear-gradient(135deg, #f0fdf4 0%, #ecfdf5 100%) !important;
    box-shadow: 0 0 0 1px #10b981, 0 4px 14px rgba(16, 185, 129, 0.16) !important;
}

.vaga-layout-option-card input[type="radio"] {
    accent-color: #10b981;
    width: 17px;
    height: 17px;
    cursor: pointer;
    margin: 0;
    flex-shrink: 0;
}

.vaga-layout-option-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    text-align: left;
}

.vaga-layout-option-title {
    font-size: 12px;
    font-weight: 700;
    color: #0f172a;
    display: flex;
    align-items: center;
    gap: 6px;
    line-height: 1.3;
}

.vaga-layout-option-title i {
    color: #10b981;
    font-size: 13px;
}

.vaga-layout-option-desc {
    font-size: 11px;
    color: #64748b;
    line-height: 1.2;
    transition: color 0.2s ease;
}

.vaga-layout-option-card:has(input[type="radio"]:checked) .vaga-layout-option-desc,
.vaga-layout-option-card.active .vaga-layout-option-desc {
    color: #047857;
    font-weight: 600;
}

/* ==========================================================================
   ESTILOS DEDICADOS: BARRA DE FILTROS DO RH & INTERFACES DE ACESSO
   ========================================================================== */
.rh-filter-bar-container {
    padding: 14px 18px;
    margin-bottom: 16px;
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
}

.rh-filter-bar-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.rh-filter-inputs-group {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.rh-filter-input-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

.rh-filter-label {
    font-size: 12px;
    font-weight: 700;
    color: #475569;
}

.rh-filter-btn-clear {
    padding: 6px 12px;
    font-size: 12px;
}

.rh-filter-checkbox-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 600;
    color: #475569;
    cursor: pointer;
    margin-left: 6px;
}

.rh-filter-btn-new-job {
    padding: 8px 16px;
    font-size: 13px;
}

.rh-access-section-divider {
    margin-top: 16px;
    border-top: 1px solid rgba(15, 23, 42, 0.08);
    padding-top: 14px;
    text-align: center;
}

.rh-login-step-wrapper {
    margin-bottom: 12px;
}

.rh-login-modal-footer {
    margin-top: 15px;
}

.btn-voltar-candidato-full {
    width: 100%;
    font-size: 12px;
}

.btn-rh-login-submit {
    width: 100%;
}

/* ==========================================================================
   ESTILOS: GESTOR DE TEMPLATES DE NOTIFICAÇÃO (M01) & SPLIT-BUTTON (M02)
   ========================================================================== */

.template-tab-btn {
    padding: 10px 18px;
    font-size: 13px;
    font-weight: 600;
    color: #475569;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.template-tab-btn:hover {
    background: #f1f5f9;
    color: #0f172a;
}

.template-tab-btn.active {
    background: #10b981;
    color: #ffffff;
    border-color: #059669;
    box-shadow: 0 4px 6px -1px rgba(16, 185, 129, 0.25);
}

.tag-chip {
    display: inline-block;
    background: #eff6ff;
    color: #1d4ed8;
    border: 1px solid #bfdbfe;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 11px;
    font-family: monospace;
    font-weight: 700;
    cursor: pointer;
    user-select: none;
    transition: all 0.15s ease;
}

.tag-chip:hover {
    background: #dbeafe;
    border-color: #93c5fd;
    transform: translateY(-1px);
}

.preview-mode-btn {
    padding: 6px 12px;
    font-size: 12px;
    font-weight: 600;
    color: #64748b;
    background: transparent;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.preview-mode-btn.active {
    background: #ffffff;
    color: #0f172a;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    font-weight: 700;
}

.dropdown-split-btn-group {
    position: relative;
    display: inline-flex;
    z-index: 50;
}

.notifications-channel-dropdown {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    z-index: 99999 !important;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    box-shadow: 0 12px 30px -4px rgba(0, 0, 0, 0.22), 0 6px 12px -4px rgba(0, 0, 0, 0.12);
    min-width: 270px;
    overflow: hidden;
}

.notifications-channel-dropdown a:hover {
    background-color: #f8fafc;
}

/* ========================================================================== */
/* GESTÃO CONTRATUAL — MODELOS E LAYOUTS DE CONTRATO (M01-B)                 */
/* ========================================================================== */

.contract-nav-tabs {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    flex-shrink: 0 !important;
    min-height: 48px !important;
    height: auto !important;
    gap: 12px !important;
    margin-top: 4px !important;
    margin-bottom: 16px !important;
    overflow-x: auto !important;
    overflow-y: visible !important;
    padding: 2px 2px 6px 2px !important;
    position: relative !important;
    z-index: 10 !important;
}

.contract-nav-tab-btn {
    display: inline-flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    flex-shrink: 0 !important;
    min-height: 42px !important;
    height: 42px !important;
    padding: 0 20px !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    line-height: 1.4 !important;
    color: #475569 !important;
    background: #ffffff !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: 10px !important;
    cursor: pointer !important;
    white-space: nowrap !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    box-sizing: border-box !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06) !important;
    transition: all 0.2s ease !important;
}

.contract-nav-tab-btn:hover {
    background: #f8fafc !important;
    color: #0f172a !important;
    border-color: #94a3b8 !important;
}

.contract-nav-tab-btn.active {
    background: #059669 !important;
    color: #ffffff !important;
    border-color: #047857 !important;
    box-shadow: 0 4px 6px -1px rgba(5, 150, 105, 0.3) !important;
}

.contract-tpl-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 16px;
    margin-bottom: 20px;
}

.contract-tpl-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 18px 20px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.2s ease;
    position: relative;
}

.contract-tpl-card:hover {
    border-color: #cbd5e1;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
    transform: translateY(-2px);
}

.contract-tpl-card.is-default {
    border-color: #10b981;
    background: linear-gradient(180deg, #ffffff 0%, #f0fdf4 100%);
    box-shadow: 0 0 0 1px #10b981, 0 4px 12px rgba(16, 185, 129, 0.12);
}

.clause-editor-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 14px 16px;
    margin-bottom: 12px;
    position: relative;
    transition: border-color 0.2s ease;
}

.clause-editor-card:hover {
    border-color: #cbd5e1;
}

.clause-remove-btn {
    position: absolute;
    top: 10px;
    right: 12px;
    background: transparent;
    border: none;
    color: #ef4444;
    cursor: pointer;
    font-size: 14px;
    padding: 4px 6px;
    border-radius: 4px;
    transition: background 0.15s ease;
}

.clause-remove-btn:hover {
    background: #fee2e2;
}

.contract-preview-paper {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 28px 24px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    max-height: 540px;
    overflow-y: auto;
    font-family: 'Segoe UI', Arial, sans-serif;
    color: #1e293b;
    line-height: 1.6;
}

.contract-preview-paper h3 {
    text-align: center;
    font-size: 15px;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 4px 0;
}

.contract-preview-paper p.doc-subtitle {
    text-align: center;
    font-size: 11px;
    color: #64748b;
    font-weight: 600;
    margin: 0 0 12px 0;
}

.contract-preview-paper hr {
    border: none;
    border-top: 1px solid #cbd5e1;
    margin: 12px 0 16px 0;
}

.contract-preview-paper .clause-title-preview {
    font-size: 12px;
    font-weight: 700;
    color: #0f172a;
    margin: 14px 0 4px 0;
}

.contract-preview-paper .clause-text-preview {
    font-size: 11px;
    color: #334155;
    text-align: justify;
    margin: 0 0 8px 0;
}

