/* ============================================================================
   ESTEIO CONECTA - CURRÍCULO ATS + HUB DE PERFIL DO CANDIDATO
   Arquivo unificado com:
     1) Hub de Perfil (abas, barra de navegação inferior)
     2) Currículo ATS (cards de template)
     3) Ajustes globais de modais Bootstrap
     4) Tabelas responsivas (recrutadores, vagas, resumo, relatório)
     5) Feedback inline do wizard de vagas
     6) Destaque de rascunho (cards + tabela)
     7) Navegação inferior do wizard (Anterior / Próximo)
     8) Botão Publicar esmaecido até prontidão
     9) Feedback dos checkboxes de habilidades
    10) Estado vazio da lista de escolaridade
   ============================================================================ */


/* ============================================================================
   PARTE 1 — HUB DE PERFIL DO CANDIDATO
   ============================================================================ */

/* ----------------------------------------------------------------------------
   1.1) MENU DE ABAS DO HUB — GRID RESPONSIVO
   ---------------------------------------------------------------------------- */

.hub-tabs-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.5rem;
    width: 100%;
}

@media (min-width: 380px) {
    .hub-tabs-grid { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 768px) {
    .hub-tabs-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 1200px) {
    .hub-tabs-grid { grid-template-columns: repeat(7, 1fr); }
}

/* --- Botão de cada aba --- */
.hub-tab-btn {
    color: #495057;
    background-color: #ffffff;
    border: 1px solid #dee2e6;
    transition: all 0.2s ease-in-out;
    cursor: pointer;
    user-select: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    text-align: center;
    white-space: normal;
    line-height: 1.25;
    font-size: 0.85rem;
    font-weight: 600;
    min-height: 56px;
    padding: 0.6rem 0.75rem !important;
    border-radius: 999px;
}

.hub-tab-btn:hover {
    background-color: #f8f9fa;
    border-color: #ced4da;
    transform: translateY(-1px);
}

.hub-tab-btn.active {
    background-color: #0d6efd !important;
    color: #ffffff !important;
    border-color: #0d6efd !important;
    box-shadow: 0 4px 12px rgba(13, 110, 253, 0.25);
}

.hub-tab-btn.active i { color: #ffffff !important; }
.hub-tab-btn:not(.active) i { color: #0d6efd; }

@media (max-width: 767px) {
    .hub-tab-btn {
        flex-direction: column;
        gap: 0.2rem !important;
        font-size: 0.78rem;
        min-height: 64px;
    }
    .hub-tab-btn i { font-size: 1.15rem; }
}

@media (min-width: 992px) {
    .border-start-lg { border-left: 1px solid #e9ecef !important; }
}

/* ============================================================================
   COMPLEMENTO — Wizard de Vaga (8 abas) usando o grid do Hub
   ============================================================================ */

.hub-tab-btn .badge { white-space: nowrap; font-weight: 700; line-height: 1; }

@media (max-width: 767px) {
    .hub-tab-btn .badge { margin-left: 0 !important; margin-top: 0.15rem; }
}

@media (min-width: 768px) and (max-width: 1199.98px) {
    #nav-vaga-wizard-abas.hub-tabs-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1200px) {
    #nav-vaga-wizard-abas.hub-tabs-grid { grid-template-columns: repeat(4, 1fr); }
}

/* ----------------------------------------------------------------------------
   1.2) BARRA DE NAVEGAÇÃO INFERIOR (Anterior / Próximo / Salvar)
   ---------------------------------------------------------------------------- */

.hub-nav-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
    margin-top: 1.5rem;
    padding: 1rem;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    box-shadow: 0 4px 14px rgba(13, 110, 253, 0.08), 0 2px 6px rgba(0, 0, 0, 0.04);
}

.hub-nav-footer .btn {
    border-radius: 999px;
    font-weight: 600;
    padding: 0.6rem 1.25rem;
    transition: all 0.22s ease;
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
    max-width: 48%;
    overflow: hidden;
    text-overflow: ellipsis;
}

.hub-nav-footer .btn span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.hub-nav-footer .btn-outline-secondary {
    color: #64748b;
    border: 1.5px solid #e2e8f0;
    background: #ffffff;
}

.hub-nav-footer .btn-outline-secondary:hover:not(:disabled) {
    color: #0d6efd;
    border-color: #0d6efd;
    background: #e7f1ff;
    transform: translateY(-1px);
}

.hub-nav-footer .btn-outline-secondary:disabled { opacity: 0.45; cursor: not-allowed; }

.hub-nav-footer .btn-primary {
    background: linear-gradient(135deg, #0d6efd 0%, #0a58ca 100%);
    border: none;
    box-shadow: 0 4px 14px rgba(13, 110, 253, 0.35);
}

.hub-nav-footer .btn-primary:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(13, 110, 253, 0.45);
    background: linear-gradient(135deg, #0a58ca 0%, #084298 100%);
}

.hub-nav-footer .btn-salvar-final {
    background: linear-gradient(135deg, #198754 0%, #0f5132 100%) !important;
    box-shadow: 0 4px 14px rgba(25, 135, 84, 0.4) !important;
}

.hub-nav-footer .btn-salvar-final:hover:not(:disabled) {
    background: linear-gradient(135deg, #157347 0%, #0a3622 100%) !important;
    box-shadow: 0 6px 18px rgba(25, 135, 84, 0.55) !important;
}

@media (max-width: 480px) {
    .hub-nav-footer { flex-direction: column; padding: 0.85rem; }
    .hub-nav-footer .btn { width: 100%; max-width: 100%; justify-content: center; }
}


/* ============================================================================
   PARTE 2 — CURRÍCULO ATS
   ============================================================================ */

.curriculo-tpl-card {
    background: #ffffff;
    border: 2px solid #e2e8f0;
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
    user-select: none;
}

.curriculo-tpl-card:hover:not(.hub-selected) { border-color: #93c5fd; transform: translateY(-2px); }
.curriculo-tpl-card:focus-visible { outline: 3px solid rgba(13, 110, 253, 0.4); outline-offset: 3px; }

.curriculo-tpl-faixa {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    padding: 0.55rem 1rem;
    background: linear-gradient(135deg, #198754 0%, #0f5132 100%);
    color: #ffffff;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    text-align: center;
    position: relative;
    z-index: 5;
    box-shadow: 0 4px 12px rgba(25, 135, 84, 0.35);
}

.curriculo-tpl-faixa i { font-size: 1rem; }
.curriculo-tpl-card.hub-selected .curriculo-tpl-faixa { display: flex; }

.curriculo-tpl-card.hub-selected {
    border: 4px solid #198754 !important;
    transform: translateY(-6px) scale(1.02);
    box-shadow:
        0 24px 48px rgba(25, 135, 84, 0.35),
        0 0 0 6px rgba(25, 135, 84, 0.12),
        0 0 40px rgba(25, 135, 84, 0.25) !important;
    z-index: 2;
    background: #f6fffa;
}

.curriculo-tpl-card.hub-selected .curriculo-tpl-preview { background: linear-gradient(135deg, #d1f4e0 0%, #a8e6c0 100%); }
.curriculo-tpl-card.hub-selected .curriculo-tpl-info { background: #f6fffa; }

.curriculo-tpl-preview {
    position: relative;
    background: linear-gradient(135deg, #f4f6f9 0%, #e7f1ff 100%);
    padding: 1.25rem 1.25rem 0;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    min-height: 240px;
    overflow: hidden;
    transition: background 0.3s ease;
}

.curriculo-tpl-img {
    max-width: 100%;
    max-height: 260px;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
    border-radius: 6px 6px 0 0;
    background: #ffffff;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.curriculo-tpl-card.hub-selected .curriculo-tpl-img {
    transform: scale(1.03);
    box-shadow: 0 0 0 3px rgba(25, 135, 84, 0.25);
}

.curriculo-tpl-check {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.3);
    background: linear-gradient(135deg, #198754 0%, #0f5132 100%);
    color: #ffffff;
    width: 88px;
    height: 88px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3.5rem;
    font-weight: 700;
    box-shadow:
        0 12px 32px rgba(25, 135, 84, 0.65),
        0 0 0 8px rgba(255, 255, 255, 0.9),
        0 0 0 12px rgba(25, 135, 84, 0.25);
    z-index: 4;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.curriculo-tpl-card.hub-selected .curriculo-tpl-check {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
    animation: checkBounceIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes checkBounceIn {
    0%   { transform: translate(-50%, -50%) scale(0.3) rotate(-45deg); opacity: 0; }
    60%  { transform: translate(-50%, -50%) scale(1.15) rotate(10deg); opacity: 1; }
    100% { transform: translate(-50%, -50%) scale(1) rotate(0); opacity: 1; }
}

.curriculo-tpl-info {
    padding: 1rem 1.1rem 1.1rem;
    background: #ffffff;
    border-top: 1px solid #f1f5f9;
    display: flex;
    flex-direction: column;
    flex: 1;
    transition: background 0.3s ease;
}

.curriculo-tpl-badge {
    display: none;
    font-size: 0.7rem;
    font-weight: 700;
    color: #0d6efd;
    background: #e7f1ff;
    border: 1px solid rgba(13, 110, 253, 0.3);
    border-radius: 999px;
    padding: 0.25rem 0.6rem;
    white-space: nowrap;
    letter-spacing: 0.3px;
}

.curriculo-tpl-card.hub-selected .curriculo-tpl-badge {
    display: inline-flex !important;
    align-items: center !important;
    background: linear-gradient(135deg, #198754 0%, #0f5132 100%) !important;
    color: #ffffff !important;
    border: none !important;
    padding: 0.3rem 0.7rem !important;
    font-weight: 800 !important;
    box-shadow: 0 3px 10px rgba(25, 135, 84, 0.4);
}

.curriculo-tpl-chip { font-size: 0.7rem; font-weight: 600; padding: 0.25rem 0.6rem; border-radius: 999px; line-height: 1; }
.curriculo-tpl-chip-outline { background: #f8fafc; color: #475569; border: 1px solid #e2e8f0; }

@media (max-width: 576px) {
    .curriculo-tpl-preview { padding: 1rem 1rem 0; min-height: 220px; }
    .curriculo-tpl-img { max-height: 220px; }
    .curriculo-tpl-info { padding: 0.9rem 1rem 1rem; }
    .curriculo-tpl-card.hub-selected { transform: translateY(-4px) scale(1.01); }
    .curriculo-tpl-check { width: 68px; height: 68px; font-size: 2.6rem; }
    .curriculo-tpl-faixa { font-size: 0.7rem; padding: 0.45rem 0.75rem; }
}


/* ============================================================================
   PARTE 3 — AJUSTES GLOBAIS DE MODAIS BOOTSTRAP
   ============================================================================ */

.modal-backdrop { z-index: 10500 !important; }
.modal { z-index: 10510 !important; }


/* ============================================================================
   PARTE 4 — AJUSTES FORÇADOS (Barra de títulos de modais)
   ============================================================================ */

.bg-dark, .modal-header {
    --bs-bg-opacity: 1 !important;
    background-color: rgba(var(--bs-primary-rgb), var(--bs-bg-opacity)) !important;
}

.p-3.bg-primary.bg-opacity-10.text-primary.rounded-4,
.modal-title.fw-bold.text-dark.mb-0 {
    color: rgba(var(--bs-white-rgb), var(--bs-text-opacity)) !important;
}

#detalhes-candidato-vaga-info.text-secondary.small.mb-0 {
    --bs-text-opacity: 1;
    color: rgba(255, 255, 255, .5) !important;
}

.d-flex.align-items-center.me-2 .bg-primary-subtle {
    background-color: rgb(255, 215, 0) !important;
}

.badge { white-space: wrap !important; }


/* ============================================================================
   TABELA DE RECRUTADORES — RESPONSIVA SEM SCROLL HORIZONTAL
   ============================================================================ */

@media (max-width: 767.98px) {

    .tabela-recrutadores-responsive { display: block; width: 100%; border-collapse: separate; }
    .tabela-recrutadores-responsive thead { display: none; }
    .tabela-recrutadores-responsive tbody { display: block; width: 100%; }

    .tabela-recrutadores-responsive tbody tr {
        display: block;
        background: #ffffff;
        border: 1px solid #e2e8f0;
        border-radius: 14px;
        padding: 0.85rem 1rem;
        margin-bottom: 0.75rem;
        box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
    }

    .tabela-recrutadores-responsive tbody tr:hover { background: #f8fafc; border-color: #cbd5e1; }

    .tabela-recrutadores-responsive tbody td {
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 0.75rem;
        padding: 0.35rem 0;
        border: none !important;
        font-size: 0.85rem;
        text-align: right;
    }

    .tabela-recrutadores-responsive tbody td + td { border-top: 1px dashed #f1f5f9 !important; }

    .tabela-recrutadores-responsive tbody td::before {
        content: attr(data-label);
        font-weight: 700;
        font-size: 0.72rem;
        text-transform: uppercase;
        letter-spacing: 0.4px;
        color: #64748b;
        text-align: left;
        flex: 0 0 42%;
        white-space: normal;
    }

    .tabela-recrutadores-responsive tbody td > * {
        flex: 1 1 auto;
        min-width: 0;
        text-align: right;
    }

    .tabela-recrutadores-responsive tbody td:first-child {
        display: block;
        text-align: left;
        padding-bottom: 0.6rem;
        margin-bottom: 0.4rem;
        border-bottom: 1px solid #e2e8f0 !important;
        border-top: none !important;
        font-size: 0.95rem;
        font-weight: 700;
        color: #0f172a;
    }

    .tabela-recrutadores-responsive tbody td:first-child::before { display: none; }

    .tabela-recrutadores-responsive tbody td[colspan] {
        display: block;
        text-align: center;
        border: none !important;
        padding: 1.5rem 0.5rem;
        font-size: 0.85rem;
    }
    .tabela-recrutadores-responsive tbody td[colspan]::before { display: none; }

    .tabela-recrutadores-responsive.table-hover > tbody > tr:hover > * {
        background-color: transparent !important;
        --bs-table-accent-bg: transparent !important;
        --bs-table-hover-bg: transparent !important;
        --bs-table-bg-state: transparent !important;
    }
    .tabela-recrutadores-responsive.table-hover > tbody > tr:hover { background: #f8fafc; border-color: #cbd5e1; }

    .tabela-recrutadores-responsive tbody td > .badge,
    .tabela-recrutadores-responsive tbody td > .badge * {
        flex: 0 0 auto !important;
        width: auto !important;
        max-width: max-content;
        display: inline-flex;
        align-items: center;
    }

    .tabela-recrutadores-responsive tbody td { align-items: center; }

    .tabela-recrutadores-responsive tbody td > .d-flex {
        flex: 1 1 auto;
        justify-content: flex-end;
        text-align: right;
    }

    .tabela-recrutadores-responsive tbody td:first-child > .d-flex {
        justify-content: flex-start;
        text-align: left;
    }
}


/* ============================================================================
   TABELA DE ÚLTIMAS VAGAS (RESUMO DA EMPRESA) — RESPONSIVA SEM SCROLL
   ============================================================================ */

@media (max-width: 767.98px) {

    .tabela-vagas-resumo-responsive { display: block; width: 100%; border-collapse: separate; }
    .tabela-vagas-resumo-responsive thead { display: none; }
    .tabela-vagas-resumo-responsive tbody { display: block; width: 100%; }

    .tabela-vagas-resumo-responsive tbody tr {
        display: block;
        background: #ffffff;
        border: 1px solid #e2e8f0;
        border-radius: 14px;
        padding: 0.85rem 1rem;
        margin-bottom: 0.75rem;
        box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
    }

    .tabela-vagas-resumo-responsive tbody tr:hover { background: #f8fafc; border-color: #cbd5e1; }

    .tabela-vagas-resumo-responsive tbody td {
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 0.75rem;
        padding: 0.35rem 0;
        border: none !important;
        font-size: 0.85rem;
        text-align: right;
    }

    .tabela-vagas-resumo-responsive tbody td + td { border-top: 1px dashed #f1f5f9 !important; }

    .tabela-vagas-resumo-responsive tbody td::before {
        content: attr(data-label);
        font-weight: 700;
        font-size: 0.72rem;
        text-transform: uppercase;
        letter-spacing: 0.4px;
        color: #64748b;
        text-align: left;
        flex: 0 0 42%;
        white-space: normal;
    }

    .tabela-vagas-resumo-responsive tbody td > * {
        flex: 1 1 auto;
        min-width: 0;
        text-align: right;
    }

    .tabela-vagas-resumo-responsive tbody td:first-child {
        display: block;
        text-align: left;
        padding-bottom: 0.6rem;
        margin-bottom: 0.4rem;
        border-bottom: 1px solid #e2e8f0 !important;
        border-top: none !important;
        font-size: 0.95rem;
        font-weight: 700;
        color: #0f172a;
    }

    .tabela-vagas-resumo-responsive tbody td:first-child::before { display: none; }

    .tabela-vagas-resumo-responsive tbody td[colspan] {
        display: block;
        text-align: center;
        border: none !important;
        padding: 1.5rem 0.5rem;
        font-size: 0.85rem;
    }
    .tabela-vagas-resumo-responsive tbody td[colspan]::before { display: none; }

    .tabela-vagas-resumo-responsive.table-hover > tbody > tr:hover > * {
        background-color: transparent !important;
        --bs-table-accent-bg: transparent !important;
        --bs-table-hover-bg: transparent !important;
        --bs-table-bg-state: transparent !important;
    }

    .tabela-vagas-resumo-responsive tbody td > .badge,
    .tabela-vagas-resumo-responsive tbody td > .badge * {
        flex: 0 0 auto !important;
        width: auto !important;
        max-width: max-content;
        display: inline-flex;
        align-items: center;
    }

    .tabela-vagas-resumo-responsive tbody td > .btn { flex: 0 0 auto; margin-left: auto; }
}


/* ============================================================================
   TABELAS DO RELATÓRIO (MATCHINGS & LACUNAS) — RESPONSIVAS SEM SCROLL
   ============================================================================ */

@media (max-width: 767.98px) {

    .tabela-relatorio-responsive { display: block; width: 100%; border-collapse: separate; }
    .tabela-relatorio-responsive thead { display: none; }
    .tabela-relatorio-responsive tbody { display: block; width: 100%; }

    .tabela-relatorio-responsive tbody tr {
        display: block;
        background: #ffffff;
        border: 1px solid #e2e8f0;
        border-radius: 14px;
        padding: 0.85rem 1rem;
        margin-bottom: 0.75rem;
        box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
    }

    .tabela-relatorio-responsive tbody tr:hover { background: #f8fafc; border-color: #cbd5e1; }

    .tabela-relatorio-responsive tbody td {
        display: flex;
        justify-content: space-between;
        align-items: flex-start;
        gap: 0.75rem;
        padding: 0.45rem 0;
        border: none !important;
        font-size: 0.85rem;
        text-align: right;
        line-height: 1.4;
    }

    .tabela-relatorio-responsive tbody td + td { border-top: 1px dashed #f1f5f9 !important; }

    .tabela-relatorio-responsive tbody td::before {
        content: attr(data-label);
        font-weight: 700;
        font-size: 0.72rem;
        text-transform: uppercase;
        letter-spacing: 0.4px;
        color: #64748b;
        text-align: left;
        flex: 0 0 40%;
        white-space: normal;
        padding-top: 0.1rem;
    }

    .tabela-relatorio-responsive tbody td > * {
        flex: 1 1 auto;
        min-width: 0;
        text-align: right;
    }

    .tabela-relatorio-responsive tbody td:first-child {
        display: block;
        text-align: left;
        padding-bottom: 0.6rem;
        margin-bottom: 0.4rem;
        border-bottom: 1px solid #e2e8f0 !important;
        border-top: none !important;
        font-size: 0.95rem;
        font-weight: 700;
        color: #0f172a;
    }

    .tabela-relatorio-responsive tbody td:first-child::before { display: none; }

    .tabela-relatorio-responsive tbody td[colspan] {
        display: block;
        text-align: center;
        border: none !important;
        padding: 1.5rem 0.5rem;
        font-size: 0.85rem;
    }
    .tabela-relatorio-responsive tbody td[colspan]::before { display: none; }

    .tabela-relatorio-responsive.table-hover > tbody > tr:hover > * {
        background-color: transparent !important;
        --bs-table-accent-bg: transparent !important;
        --bs-table-hover-bg: transparent !important;
        --bs-table-bg-state: transparent !important;
    }

    .tabela-relatorio-responsive tbody td > .badge,
    .tabela-relatorio-responsive tbody td > .badge * {
        flex: 0 0 auto !important;
        width: auto !important;
        max-width: max-content;
        display: inline-flex;
        align-items: center;
    }

    .tabela-relatorio-responsive tbody td > .btn { flex: 0 0 auto; margin-left: auto; }

    .tabela-relatorio-responsive tbody td > span,
    .tabela-relatorio-responsive tbody td > div {
        flex: 1 1 auto;
        min-width: 0;
        text-align: right;
    }

    .tabela-relatorio-responsive tbody td:first-child > .d-flex {
        justify-content: flex-start;
        text-align: left;
    }
}


/* ============================================================================
   TABELA DE VAGAS (VISÃO LISTA/TABELA) — RESPONSIVA SEM SCROLL
   ============================================================================ */

@media (max-width: 767.98px) {

    .tabela-vagas-lista-responsive { display: block; width: 100%; border-collapse: separate; }
    .tabela-vagas-lista-responsive thead { display: none; }
    .tabela-vagas-lista-responsive tbody { display: block; width: 100%; }

    .tabela-vagas-lista-responsive tbody tr {
        display: block;
        background: #ffffff;
        border: 1px solid #e2e8f0;
        border-radius: 14px;
        padding: 0.85rem 1rem;
        margin-bottom: 0.75rem;
        box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
    }

    .tabela-vagas-lista-responsive tbody tr:hover { background: #f8fafc; border-color: #cbd5e1; }

    .tabela-vagas-lista-responsive tbody td {
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 0.75rem;
        padding: 0.35rem 0;
        border: none !important;
        font-size: 0.85rem;
        text-align: right;
    }

    .tabela-vagas-lista-responsive tbody td + td { border-top: 1px dashed #f1f5f9 !important; }

    .tabela-vagas-lista-responsive tbody td::before {
        content: attr(data-label);
        font-weight: 700;
        font-size: 0.72rem;
        text-transform: uppercase;
        letter-spacing: 0.4px;
        color: #64748b;
        text-align: left;
        flex: 0 0 42%;
        white-space: normal;
    }

    .tabela-vagas-lista-responsive tbody td > * {
        flex: 1 1 auto;
        min-width: 0;
        text-align: right;
    }

    .tabela-vagas-lista-responsive tbody td:first-child {
        display: block;
        text-align: left;
        padding-bottom: 0.6rem;
        margin-bottom: 0.4rem;
        border-bottom: 1px solid #e2e8f0 !important;
        border-top: none !important;
        font-size: 0.95rem;
        font-weight: 700;
        color: #0f172a;
    }

    .tabela-vagas-lista-responsive tbody td:first-child::before { display: none; }

    .tabela-vagas-lista-responsive tbody td[colspan] {
        display: block;
        text-align: center;
        border: none !important;
        padding: 1.5rem 0.5rem;
        font-size: 0.85rem;
    }
    .tabela-vagas-lista-responsive tbody td[colspan]::before { display: none; }

    .tabela-vagas-lista-responsive.table-hover > tbody > tr:hover > * {
        background-color: transparent !important;
        --bs-table-accent-bg: transparent !important;
        --bs-table-hover-bg: transparent !important;
        --bs-table-bg-state: transparent !important;
    }

    .tabela-vagas-lista-responsive tbody td > .badge,
    .tabela-vagas-lista-responsive tbody td > .badge * {
        flex: 0 0 auto !important;
        width: auto !important;
        max-width: max-content;
        display: inline-flex;
        align-items: center;
    }

    .tabela-vagas-lista-responsive tbody td > .btn { flex: 0 0 auto; margin-left: auto; }
}


/* ============================================================================
   FEEDBACK INLINE — WIZARD DE VAGAS (SÓBRIO)
   ============================================================================ */

#form-dashboard-criar-vaga .feedback-msg {
    display: block;
    margin-top: 0.3rem;
    padding: 0;
    font-size: 0.78rem;
    font-weight: 500;
    line-height: 1.35;
    color: #b02a37;
    background: transparent;
    border: 0;
    box-shadow: none;
}

#form-dashboard-criar-vaga .feedback-msg.hidden { display: none !important; }
#form-dashboard-criar-vaga .feedback-msg.text-success { color: #198754; }
#form-dashboard-criar-vaga .feedback-msg::before { content: none !important; }

#form-dashboard-criar-vaga .form-control.is-invalid,
#form-dashboard-criar-vaga .form-select.is-invalid {
    border-color: #dc3545 !important;
    box-shadow: none !important;
    background-image: none;
}

#form-dashboard-criar-vaga .form-control.is-valid,
#form-dashboard-criar-vaga .form-select.is-valid {
    border-color: #198754 !important;
    box-shadow: none !important;
    background-image: none;
}


/* ============================================================================
   DESTAQUE DE RASCUNHO — CARDS E TABELA
   ============================================================================ */

.card.vaga-rascunho {
    border: 2px dashed #ffc107 !important;
    background: linear-gradient(180deg, #fffdf5 0%, #ffffff 60%) !important;
    position: relative;
    overflow: hidden;
}

.card.vaga-rascunho::before {
    content: "RASCUNHO — CONTINUE E PUBLIQUE";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    display: block;
    padding: 0.35rem 0.75rem;
    background: linear-gradient(135deg, #ffc107 0%, #e0a800 100%);
    color: #1e293b;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.6px;
    text-align: center;
    text-transform: uppercase;
    z-index: 3;
    box-shadow: 0 2px 6px rgba(224, 168, 0, 0.35);
}

.card.vaga-rascunho .card-body { padding-top: 2.1rem !important; }

.card.vaga-rascunho:hover {
    border-color: #e0a800 !important;
    box-shadow:
        0 12px 28px rgba(224, 168, 0, 0.25),
        0 4px 10px rgba(0, 0, 0, 0.05) !important;
    transform: translateY(-3px);
}

.card.vaga-rascunho .card-title { color: #7a5a00 !important; }

.vaga-rascunho-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    background: linear-gradient(135deg, #ffc107 0%, #e0a800 100%);
    color: #1e293b;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.3px;
    padding: 0.28rem 0.6rem;
    border-radius: 999px;
    box-shadow: 0 2px 6px rgba(224, 168, 0, 0.35);
    text-transform: uppercase;
}

.btn-continuar-rascunho {
    background: linear-gradient(135deg, #ffc107 0%, #e0a800 100%) !important;
    border: none !important;
    color: #1e293b !important;
    font-weight: 800 !important;
    box-shadow: 0 4px 12px rgba(224, 168, 0, 0.35) !important;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-continuar-rascunho:hover,
.btn-continuar-rascunho:focus {
    background: linear-gradient(135deg, #ffca2c 0%, #d39e00 100%) !important;
    color: #1e293b !important;
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(224, 168, 0, 0.45) !important;
}

tr.vaga-rascunho > td {
    background: linear-gradient(90deg, #fffdf5 0%, #ffffff 70%) !important;
    border-top: 1px dashed #ffc107 !important;
    border-bottom: 1px dashed #ffc107 !important;
}

tr.vaga-rascunho > td:first-child {
    border-left: 4px solid #ffc107 !important;
    padding-left: 1rem !important;
}

tr.vaga-rascunho:hover > td {
    background: linear-gradient(90deg, #fff6d9 0%, #fffdf5 70%) !important;
}

@media (max-width: 767.98px) {
    .tabela-vagas-lista-responsive tbody tr.vaga-rascunho {
        border: 2px dashed #ffc107 !important;
        background: linear-gradient(180deg, #fffdf5 0%, #ffffff 60%) !important;
    }

    .tabela-vagas-lista-responsive tbody tr.vaga-rascunho > td {
        background: transparent !important;
        border: none !important;
    }

    .tabela-vagas-lista-responsive tbody tr.vaga-rascunho td:first-child {
        border-left: none !important;
    }
}


/* ============================================================================
   NAVEGAÇÃO INFERIOR DO WIZARD (Anterior / Próximo)
   ============================================================================ */

.wizard-nav-inferior {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-top: 1.5rem;
    padding: 0.75rem;
    background: #fbfcfe;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
}

.wizard-nav-btn {
    flex: 1 1 0;
    max-width: 46%;
    min-height: 56px;
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    padding: 0.55rem 0.9rem;
    border-radius: 14px;
    border: 1.5px solid #cfe2ff;
    background: linear-gradient(180deg, #ffffff 0%, #f3f8ff 100%);
    color: #1e293b;
    font-weight: 700;
    text-align: left;
    transition: all 0.2s ease;
    overflow: hidden;
    box-shadow:
        0 1px 2px rgba(13, 110, 253, 0.06),
        0 4px 10px rgba(13, 110, 253, 0.06);
    cursor: pointer;
}

.wizard-nav-btn:hover:not(:disabled) {
    border-color: #0d6efd;
    background: linear-gradient(180deg, #ffffff 0%, #e7f1ff 100%);
    color: #0d6efd;
    transform: translateY(-2px);
    box-shadow:
        0 4px 10px rgba(13, 110, 253, 0.15),
        0 8px 20px rgba(13, 110, 253, 0.12);
}

.wizard-nav-btn:active:not(:disabled) {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(13, 110, 253, 0.15);
}

.wizard-nav-btn:focus-visible {
    outline: 3px solid rgba(13, 110, 253, 0.35);
    outline-offset: 2px;
}

.wizard-nav-btn:disabled,
.wizard-nav-btn.is-hidden {
    opacity: 0.45;
    cursor: not-allowed;
    pointer-events: none;
    background: #f8fafc;
    border-color: #e2e8f0;
    box-shadow: none;
}

.wizard-nav-icone {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #0d6efd 0%, #0a58ca 100%);
    color: #ffffff;
    font-size: 1rem;
    box-shadow: 0 3px 8px rgba(13, 110, 253, 0.35);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.wizard-nav-btn:hover:not(:disabled) .wizard-nav-icone {
    transform: scale(1.08);
    box-shadow: 0 4px 12px rgba(13, 110, 253, 0.45);
}

.wizard-nav-btn-anterior { justify-content: flex-start; }
.wizard-nav-btn-proximo  { justify-content: flex-end; text-align: right; flex-direction: row-reverse; }

.wizard-nav-texto {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
    min-width: 0;
    flex: 1 1 auto;
}
.wizard-nav-btn-proximo .wizard-nav-texto { align-items: flex-end; }

.wizard-nav-label {
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    color: #0d6efd;
    line-height: 1;
}

.wizard-nav-nome {
    font-size: 0.85rem;
    font-weight: 700;
    color: #1e293b;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.2;
}

.wizard-nav-btn:hover:not(:disabled) .wizard-nav-nome { color: #0d6efd; }

.wizard-nav-indicador {
    flex: 0 0 auto;
    padding: 0.4rem 0.85rem;
    font-size: 0.82rem;
    font-weight: 700;
    color: #0d6efd;
    background: #e7f1ff;
    border-radius: 999px;
    letter-spacing: 0.3px;
    white-space: nowrap;
}

@media (max-width: 576px) {
    .wizard-nav-inferior { flex-wrap: wrap; }
    .wizard-nav-btn { max-width: 100%; flex: 1 1 45%; }
    .wizard-nav-indicador { order: -1; flex: 1 1 100%; text-align: center; }
    .wizard-nav-nome { font-size: 0.78rem; }
    .wizard-nav-icone { width: 32px; height: 32px; font-size: 0.9rem; }
}


/* ============================================================================
   BOTÃO PUBLICAR / ATUALIZAR — ESMAECIDO ATÉ PRONTIDÃO COMPLETA
   ============================================================================ */

.btn-publicar-vaga[disabled],
#btn-salvar-vaga[disabled] {
    opacity: 0.5 !important;
    filter: grayscale(35%);
    cursor: not-allowed !important;
    box-shadow: none !important;
    background: #b6c4dd !important;
    border-color: #b6c4dd !important;
    color: #ffffff !important;
    pointer-events: auto;
}

.btn-publicar-vaga[disabled]:hover,
#btn-salvar-vaga[disabled]:hover {
    transform: none !important;
    box-shadow: none !important;
}

.btn-publicar-vaga:not([disabled]),
#btn-salvar-vaga:not([disabled]) {
    background: linear-gradient(135deg, #0d6efd 0%, #0a58ca 100%);
    border: none;
    box-shadow: 0 4px 14px rgba(13, 110, 253, 0.35);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-publicar-vaga:not([disabled]):hover,
#btn-salvar-vaga:not([disabled]):hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(13, 110, 253, 0.45);
    background: linear-gradient(135deg, #0a58ca 0%, #084298 100%);
}


/* ============================================================================
   CHECKBOX DE HABILIDADES — LAYOUT SEGURO
   ----------------------------------------------------------------------------
   Corrige o problema do margin-left negativo que ocultava o checkbox.
   O layout usa flex com gap, sem deslocar o input para fora do container.
   ============================================================================ */

#vaga-lista-hard-skills .form-check,
#vaga-lista-soft-skills .form-check,
#vaga-habilidades-grid .form-check {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    padding: 0.55rem 0.75rem;
    margin: 0;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    background: #ffffff;
    transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
    cursor: pointer;
    width: 100%;
    overflow: hidden;
    box-sizing: border-box;
}

#vaga-lista-hard-skills .form-check:hover,
#vaga-lista-soft-skills .form-check:hover,
#vaga-habilidades-grid .form-check:hover {
    border-color: #93c5fd;
    background: #f8fbff;
    box-shadow: 0 2px 6px rgba(13, 110, 253, 0.08);
}

#vaga-lista-hard-skills .form-check-input,
#vaga-lista-soft-skills .form-check-input,
#vaga-habilidades-grid .form-check-input {
    margin: 0 !important;
    margin-left: 0 !important;
    flex-shrink: 0;
    width: 1.15rem;
    height: 1.15rem;
    margin-top: 0.15rem;
    cursor: pointer;
    border: 2px solid #cbd5e1;
    transition: all 0.15s ease;
}

#vaga-lista-hard-skills .form-check-input:checked,
#vaga-lista-soft-skills .form-check-input:checked,
#vaga-habilidades-grid .form-check-input:checked {
    background-color: #0d6efd;
    border-color: #0d6efd;
    box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.15);
}

#vaga-lista-hard-skills .form-check-label,
#vaga-lista-soft-skills .form-check-label,
#vaga-habilidades-grid .form-check-label {
    flex: 1 1 auto;
    min-width: 0;
    font-size: 0.85rem;
    font-weight: 500;
    color: #1e293b;
    line-height: 1;
    margin: 0;
    margin-left: 5px !important;
    cursor: pointer;
    overflow-wrap: break-word;
    word-break: break-word;
}

#vaga-lista-hard-skills .form-check:has(.form-check-input:checked),
#vaga-lista-soft-skills .form-check:has(.form-check-input:checked),
#vaga-habilidades-grid .form-check:has(.form-check-input:checked) {
    border-color: #0d6efd;
    background: #f0f7ff;
}

#vaga-lista-hard-skills .form-check.is-selected,
#vaga-lista-soft-skills .form-check.is-selected,
#vaga-habilidades-grid .form-check.is-selected {
    border-color: #0d6efd;
    background: #f0f7ff;
}

#vaga-hab-contador {
    transition: background-color 0.2s ease, color 0.2s ease;
}
#vaga-hab-contador.bg-success {
    background-color: #198754 !important;
    color: #ffffff !important;
}


/* ============================================================================
   LISTA DE ESCOLARIDADE — ESTADO VAZIO / PREENCHIDO
   ============================================================================ */

#vaga-tabela-formacoes-lista .formacao-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.6rem 0.85rem;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    font-size: 0.85rem;
}

#vaga-tabela-formacoes-lista .formacao-item .btn-remover {
    flex-shrink: 0;
    padding: 0.15rem 0.35rem;
    font-size: 0.72rem;
    line-height: 1;
}

#vaga-tabela-formacoes-lista .text-muted {
    font-style: italic;
}

/* ============================================================================
   CHECKBOX DE HABILIDADES — LAYOUT SEGURO + INDICADOR VERDE + ESMAECIDO
   ----------------------------------------------------------------------------
   - Cada .form-check é uma linha clicável
   - O quadradinho nativo é substituído por um círculo
     que fica verde quando marcado
   - Após 15/15, os não marcados ficam esmaecidos
   ============================================================================ */

#vaga-lista-hard-skills .form-check,
#vaga-lista-soft-skills .form-check,
#vaga-habilidades-grid .form-check {
    display: flex;
    align-items: center;             /* alinhamento vertical correto */
    gap: 0.6rem;
    padding: 0.55rem 0.75rem;
    margin: 0;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    background: #ffffff;
    transition: border-color 0.2s ease, background 0.2s ease,
                box-shadow 0.2s ease, opacity 0.2s ease;
    cursor: pointer;
    width: 100%;
    overflow: hidden;
    box-sizing: border-box;
    user-select: none;
    min-height: 44px;
}

#vaga-lista-hard-skills .form-check:hover,
#vaga-lista-soft-skills .form-check:hover,
#vaga-habilidades-grid .form-check:hover {
    border-color: #93c5fd;
    background: #f8fbff;
    box-shadow: 0 2px 6px rgba(13, 110, 253, 0.08);
}

/* -------------------------------------------
   Quadradinho customizado (círculo)
   ------------------------------------------- */
#vaga-lista-hard-skills .form-check-input,
#vaga-lista-soft-skills .form-check-input,
#vaga-habilidades-grid .form-check-input {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    width: 1.25rem;
    height: 1.25rem;
    margin: 0 !important;
    margin-left: 0 !important;
    flex-shrink: 0;
    border: 2px solid #cbd5e1;
    border-radius: 50%;
    background-color: #ffffff;
    position: relative;
    cursor: pointer;
    transition: all 0.15s ease;
    align-self: center;
    box-shadow: none;
    outline: none;
}

#vaga-lista-hard-skills .form-check-input:hover,
#vaga-lista-soft-skills .form-check-input:hover,
#vaga-habilidades-grid .form-check-input:hover {
    border-color: #93c5fd;
}

/* Check marcado: fundo verde + "check" branco desenhado */
#vaga-lista-hard-skills .form-check-input:checked,
#vaga-lista-soft-skills .form-check-input:checked,
#vaga-habilidades-grid .form-check-input:checked {
    background-color: #198754 !important;
    border-color: #198754 !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%23fff' stroke-linecap='round' stroke-linejoin='round' stroke-width='2.5' d='M3.5 8.5l3 3 6-6'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: center !important;
    background-size: 0.9rem !important;
    box-shadow: 0 0 0 3px rgba(25, 135, 84, 0.15);
}

#vaga-lista-hard-skills .form-check-input:focus,
#vaga-lista-soft-skills .form-check-input:focus,
#vaga-habilidades-grid .form-check-input:focus {
    box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.2) !important;
    outline: none;
}

/* -------------------------------------------
   Label
   ------------------------------------------- */
#vaga-lista-hard-skills .form-check-label,
#vaga-lista-soft-skills .form-check-label,
#vaga-habilidades-grid .form-check-label {
    flex: 1 1 auto;
    min-width: 0;
    font-size: 0.85rem;
    font-weight: 500;
    color: #1e293b;
    line-height: 1.35;
    margin: 0;
    cursor: pointer;
    overflow-wrap: break-word;
    word-break: break-word;
    align-self: center;
}

/* -------------------------------------------
   Destaque do item selecionado
   ------------------------------------------- */
#vaga-lista-hard-skills .form-check:has(.form-check-input:checked),
#vaga-lista-soft-skills .form-check:has(.form-check-input:checked),
#vaga-habilidades-grid .form-check:has(.form-check-input:checked) {
    border-color: #198754;
    background: #f2fbf6;
    box-shadow: 0 2px 6px rgba(25, 135, 84, 0.12);
}

#vaga-lista-hard-skills .form-check.is-selected,
#vaga-lista-soft-skills .form-check.is-selected,
#vaga-habilidades-grid .form-check.is-selected {
    border-color: #198754;
    background: #f2fbf6;
    box-shadow: 0 2px 6px rgba(25, 135, 84, 0.12);
}

/* -------------------------------------------
   Esmaecido — aplicado após 15/15 nos itens não marcados
   ------------------------------------------- */
#vaga-habilidades-grid .form-check.esmaecido {
    opacity: 0.35;
    filter: grayscale(80%);
    cursor: not-allowed;
    pointer-events: none;
}

/* -------------------------------------------
   Contador X/15
   ------------------------------------------- */
#vaga-hab-contador {
    transition: background-color 0.2s ease, color 0.2s ease;
}
#vaga-hab-contador.bg-success {
    background-color: #198754 !important;
    color: #ffffff !important;
}