﻿:root {
    --vest-blue: #014573;
    --vest-blue-2: #03689f;
    --vest-orange: #E06633;
    --vest-white: #FFFFFF;
    --vest-bg: #f4f7fa;
    --vest-text: #183247;
    --vest-muted: #647789;
    --vest-border: #dbe5ec;
    --vest-shadow: 0 12px 35px rgba(1, 69, 115, .10);
    --vest-radius: 18px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--vest-bg); color: var(--vest-text); font-family: Inter, "Segoe UI", Arial, sans-serif; }
a { color: var(--vest-blue); }
.skip-link { position: fixed; left: 1rem; top: -100px; z-index: 20000; background: #fff; color: #000; padding: .8rem 1rem; border-radius: 8px; }
.skip-link:focus { top: 1rem; }
.vest-topbar { min-height: 76px; background: #fff; border-bottom: 1px solid var(--vest-border); display: flex; align-items: center; justify-content: space-between; padding: .75rem 1.25rem; position: sticky; top: 0; z-index: 1030; }
.vest-brand { display: flex; align-items: center; gap: 1rem; }
.vest-brand img { height: 48px; max-width: 190px; object-fit: contain; }
.vest-environment { border-radius: 999px; padding: .35rem .75rem; font-size: .75rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.admin-shell .vest-environment { background: rgba(1,69,115,.11); color: var(--vest-blue); }
.candidate-shell .vest-environment { background: rgba(224,102,51,.14); color: #a43a10; }
.vest-user { text-align: right; color: var(--vest-blue); font-size: .9rem; }
.vest-shell { display: grid; grid-template-columns: 270px minmax(0, 1fr); min-height: calc(100vh - 76px); }
.vest-sidebar { background: linear-gradient(180deg, var(--vest-blue), #002f4f); color: #fff; padding: 1.25rem .9rem; position: sticky; top: 76px; height: calc(100vh - 76px); overflow-y: auto; }
.vest-sidebar-title { padding: .4rem .75rem 1rem; font-size: .75rem; letter-spacing: .13em; text-transform: uppercase; opacity: .7; }
.vest-sidebar ul { width: 100%; list-style: none; margin: 0; padding: 0; }
.vest-sidebar li { margin: .2rem 0; }
.vest-sidebar a { display: block; color: rgba(255,255,255,.9) !important; padding: .72rem .8rem; border-radius: 10px; text-decoration: none; transition: .2s ease; }
.vest-sidebar a:hover, .vest-sidebar a:focus { background: rgba(255,255,255,.12); color: #fff !important; transform: translateX(2px); }
.vest-main { min-width: 0; padding: 1.5rem; }
.vest-content { max-width: 1600px; margin: 0 auto; }
.form-panel, .vest-card, .card { background: #fff; border: 1px solid var(--vest-border); border-radius: var(--vest-radius); box-shadow: var(--vest-shadow); }
.form-panel { padding: 1.35rem; }
.card { overflow: hidden; }
.card-header { background: #fff; border-bottom: 1px solid var(--vest-border); font-weight: 700; }
.btn { border-radius: 10px; font-weight: 650; padding: .55rem .95rem; }
.btn-blue, .btn-primary { background: var(--vest-blue) !important; border-color: var(--vest-blue) !important; color: #fff !important; }
.btn-orange { background: var(--vest-orange) !important; border-color: var(--vest-orange) !important; color: #fff !important; }
.form-control { min-height: 42px; border-radius: 10px; border-color: #cbd9e2; }
.form-control:focus { border-color: var(--vest-blue-2); box-shadow: 0 0 0 .2rem rgba(1,69,115,.13); }
label, .field-label { color: #334f63; font-weight: 650; }
.table { background: #fff; }
.table thead th, .GridHeader { background: var(--vest-blue); color: #fff; border-color: rgba(255,255,255,.2); }
.vest-footer { color: var(--vest-muted); text-align: center; padding: 1.5rem; font-size: .85rem; }
.vest-dashboard-header { background: linear-gradient(130deg, var(--vest-blue), var(--vest-blue-2)); color: #fff; border-radius: 22px; padding: 1.7rem; margin-bottom: 1.2rem; position: relative; overflow: hidden; }
.vest-dashboard-header:after { content: ""; width: 220px; height: 220px; border-radius: 50%; background: rgba(224,102,51,.2); position: absolute; right: -70px; top: -100px; }
.vest-kpi { padding: 1.15rem; height: 100%; }
.vest-kpi-icon { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 13px; background: rgba(1,69,115,.09); color: var(--vest-blue); font-size: 1.2rem; }
.vest-kpi-value { font-size: 1.7rem; font-weight: 850; color: var(--vest-blue); }
.vest-candidate-nav { display: flex; gap: .45rem; flex-wrap: wrap; align-items: center; }
.vest-candidate-nav a { border-radius: 999px; padding: .55rem .9rem; text-decoration: none; font-weight: 650; background: #edf4f8; }
.vest-candidate-nav a:hover { background: var(--vest-blue); color: #fff; }
.candidate-shell .vest-main { padding-top: 1rem; }
.candidate-shell .vest-content { max-width: 1180px; }
.vest-accessibility { position: fixed; right: 12px; top: 105px; z-index: 1200; display: flex; flex-direction: column; gap: 6px; }
.vest-accessibility button { width: 42px; height: 42px; border: 0; border-radius: 12px; background: var(--vest-blue); color: #fff; box-shadow: 0 6px 18px rgba(0,0,0,.18); }
.vest-accessibility button:hover, .vest-accessibility button:focus { background: var(--vest-orange); }
.vest-field-help { position: absolute; right: .35rem; top: .1rem; border: 0; background: transparent; color: var(--vest-blue); padding: .2rem; }
.candidate-shell .form-group { position: relative; }
.vest-dialog-content { display: block !important; text-align: left; max-height: 78vh; overflow: auto; }
.vest-dialog-content[style] { max-width: 100% !important; }
.vest-swal-popup { border-radius: 20px !important; }
.vest-readable-font { font-family: Arial, Verdana, sans-serif !important; letter-spacing: .025em; word-spacing: .08em; line-height: 1.65; }
.vest-high-contrast, .vest-high-contrast .vest-main { background: #000 !important; color: #fff !important; }
.vest-high-contrast .form-panel, .vest-high-contrast .card, .vest-high-contrast .vest-card, .vest-high-contrast .vest-topbar { background: #000 !important; color: #fff !important; border-color: #ffeb3b !important; }
.vest-high-contrast a, .vest-high-contrast label, .vest-high-contrast .text-blue { color: #ffeb3b !important; }
.vest-high-contrast .form-control { background: #111; color: #fff; border-color: #ffeb3b; }
.vest-post-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1rem; }
.vest-post { height: 100%; overflow: hidden; transition: transform .2s ease, box-shadow .2s ease; }
.vest-post:hover { transform: translateY(-4px); box-shadow: 0 18px 45px rgba(1,69,115,.16); }
.vest-post img { width: 100%; aspect-ratio: 16/8; object-fit: cover; }
.vest-post-body { padding: 1.1rem; }
.vest-post-meta { color: var(--vest-orange); font-size: .78rem; text-transform: uppercase; font-weight: 800; letter-spacing: .08em; }
.sidebar-toggle { display: none; border: 0; background: var(--vest-blue); color: #fff; border-radius: 10px; width: 42px; height: 42px; }

button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, [tabindex]:focus-visible {
    outline: 3px solid #ffbf47 !important;
    outline-offset: 3px;
}
.vest-help-host { position: relative; }
.vest-help-host > label, .vest-help-host > .field-label { padding-right: 2rem; }
.vest-field-help { z-index: 2; border-radius: 50%; }
.vest-field-help:hover, .vest-field-help:focus { background: rgba(1,69,115,.10); }
.vest-summary-card { background: #fff; border: 1px solid var(--vest-border); border-left: 5px solid var(--vest-orange); border-radius: var(--vest-radius); padding: 1.25rem; box-shadow: var(--vest-shadow); }
.vest-post-link { display: block; height: 100%; color: inherit; text-decoration: none !important; }
.vest-post-body h2 { color: var(--vest-blue); }
.vest-post-body p { line-height: 1.55; }
.vest-article { max-width: 980px; margin: 0 auto; }
.vest-article-cover { width: 100%; max-height: 480px; object-fit: cover; border-radius: 22px; box-shadow: var(--vest-shadow); }
.vest-article-content { font-size: 1.05rem; line-height: 1.75; }
.vest-article-content img { max-width: 100%; height: auto; border-radius: 12px; }
.vest-article-content iframe { max-width: 100%; }

@media (max-width: 991.98px) {
    .vest-shell { grid-template-columns: 1fr; }
    .vest-sidebar { position: fixed; z-index: 1400; left: -290px; top: 76px; width: 270px; transition: left .25s ease; }
    .sidebar-open .vest-sidebar { left: 0; }
    .sidebar-toggle { display: inline-grid; place-items: center; }
    .vest-user { display: none; }
    .vest-main { padding: 1rem; }
}
@media (max-width: 575.98px) {
    .vest-topbar { padding: .65rem .75rem; }
    .vest-brand img { height: 40px; }
    .vest-environment { display: none; }
    .vest-accessibility { right: 6px; top: auto; bottom: 8px; flex-direction: row; max-width: calc(100vw - 12px); overflow-x: auto; }
    .form-panel { padding: .9rem; border-radius: 14px; }
}


/* ========================================================================== 
   VestOnline 2026 - layout administrativo, menus, botoes e tabelas
   ========================================================================== */

.admin-shell .vest-shell {
    position: relative;
}

.admin-shell .vest-sidebar {
    z-index: 1500;
    align-self: start;
    overflow: visible;
    box-shadow: 12px 0 28px rgba(0, 47, 79, .10);
}


.vest-sidebar-backdrop {
    position: fixed;
    inset: 76px 0 0;
    z-index: 1390;
    display: none;
    padding: 0;
    background: rgba(0, 28, 48, .44);
    border: 0;
}

.vest-admin-page {
    overflow: visible;
    background: #fff;
    border: 1px solid var(--vest-border);
    border-radius: 22px;
    box-shadow: var(--vest-shadow);
}

.vest-admin-page-header {
    position: relative;
    display: flex;
    align-items: center;
    gap: 1rem;
    min-height: 126px;
    padding: 1.35rem 1.5rem;
    overflow: hidden;
    color: #fff;
    background: linear-gradient(130deg, var(--vest-blue), var(--vest-blue-2));
    border-radius: 21px 21px 0 0;
}

.vest-admin-page-header::after {
    content: "";
    position: absolute;
    right: -70px;
    top: -105px;
    width: 250px;
    height: 250px;
    background: rgba(224, 102, 51, .22);
    border-radius: 50%;
}

.vest-admin-page-header > * {
    position: relative;
    z-index: 1;
}

.vest-admin-page-icon {
    display: grid;
    flex: 0 0 58px;
    width: 58px;
    height: 58px;
    place-items: center;
    color: var(--vest-blue);
    background: #fff;
    border-radius: 17px;
    box-shadow: 0 12px 30px rgba(0, 33, 58, .18);
    font-size: 1.55rem;
}

.vest-admin-page-eyebrow {
    display: block;
    margin-bottom: .18rem;
    color: rgba(255, 255, 255, .76);
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.vest-admin-page-header h1 {
    margin: 0;
    color: #fff;
    font-size: clamp(1.5rem, 2vw, 2rem);
    font-weight: 780;
}

.vest-admin-page-header p {
    max-width: 760px;
    margin: .25rem 0 0;
    color: rgba(255, 255, 255, .87);
}

.vest-admin-page-body {
    padding: 1.35rem;
}

.vest-admin-page-body .vest-admin-container {
    width: 100%;
    max-width: none;
    padding-right: 0;
    padding-left: 0;
}

.vest-admin-page-body .form-panel,
.vest-admin-page-body .card,
.vest-admin-page-body .vest-card {
    border-color: #d7e4ec;
    box-shadow: 0 8px 24px rgba(1, 69, 115, .08);
}

.vest-admin-page-body .row {
    row-gap: .45rem;
}

.vest-admin-page-body .form-control,
.vest-admin-page-body select,
.vest-admin-page-body textarea {
    min-height: 42px;
    border: 1px solid #c7d7e2;
    border-radius: 10px;
    background-color: #fff;
}

.vest-admin-page-body textarea.form-control {
    min-height: 110px;
}

.vest-admin-page-body .form-control:hover {
    border-color: #8eb6ce;
}

.vest-admin-page-body .h1,
.vest-admin-page-body .h2,
.vest-admin-page-body .h3,
.vest-admin-page-body h1,
.vest-admin-page-body h2,
.vest-admin-page-body h3 {
    color: var(--vest-blue);
    font-weight: 760;
}

.vest-action-row {
    align-items: center;
    margin: .25rem 0 1rem;
    padding: .75rem;
    background: #f6f9fb;
    border: 1px solid #e0e9ef;
    border-radius: 12px;
}

.vest-fieldset {
    margin-bottom: 1rem;
    padding: 1rem;
    border: 1px solid var(--vest-border);
    border-radius: 14px;
}

.vest-fieldset legend {
    width: auto;
    padding: 0 .45rem;
    color: var(--vest-blue);
    font-size: 1rem;
    font-weight: 750;
}

.vest-input-button-wrap {
    position: relative;
    display: inline-flex;
    align-items: stretch;
    vertical-align: middle;
}

.vest-input-button-wrap .vest-auto-icon {
    position: absolute;
    z-index: 2;
    left: .82rem;
    top: 50%;
    pointer-events: none;
    transform: translateY(-50%);
}

.vest-input-icon-light .vest-auto-icon {
    color: #fff;
}

.vest-input-icon-dark .vest-auto-icon {
    color: var(--vest-blue);
}

.vest-input-button-wrap > input.btn {
    padding-left: 2.25rem !important;
}

.vest-input-button-block {
    display: flex;
    width: 100%;
}

.vest-input-button-block > input {
    width: 100%;
}

button .vest-auto-icon,
a .vest-auto-icon {
    margin-right: .42rem;
}

.btn,
.vest-input-button-wrap > input {
    min-height: 40px;
    transition: transform .16s ease, box-shadow .16s ease, background-color .16s ease, border-color .16s ease;
}

.btn:hover:not(:disabled),
.vest-input-button-wrap > input:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 8px 18px rgba(1, 69, 115, .16);
}

.btn:active:not(:disabled),
.vest-input-button-wrap > input:active:not(:disabled) {
    transform: translateY(0);
}

.vest-table-scroll {
    width: 100%;
    margin: .55rem 0 1rem;
    overflow: auto;
    background: #fff;
    border: 1px solid var(--vest-border);
    border-radius: 14px;
    scrollbar-width: thin;
    scrollbar-color: #6fa6c8 #edf5f9;
}

.vest-table-scroll::-webkit-scrollbar {
    width: 11px;
    height: 11px;
}

.vest-table-scroll::-webkit-scrollbar-track {
    background: #edf5f9;
    border-radius: 999px;
}

.vest-table-scroll::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #6fa6c8, var(--vest-blue));
    border: 2px solid #edf5f9;
    border-radius: 999px;
}

.vest-data-table {
    width: 100% !important;
    min-width: 720px;
    margin: 0 !important;
    border-collapse: separate !important;
    border-spacing: 0;
    background: #fff;
}

.vest-data-table th {
    padding: .78rem .7rem !important;
    color: #fff !important;
    background: var(--vest-blue) !important;
    border-color: rgba(255, 255, 255, .18) !important;
    font-size: .79rem;
    font-weight: 750;
    letter-spacing: .025em;
    vertical-align: middle !important;
}

.vest-data-table td {
    padding: .7rem !important;
    color: #324d61;
    background: #fff;
    border-color: #e0e8ee !important;
    vertical-align: middle !important;
    transition: background-color .14s ease, color .14s ease;
}

/* Cor institucional solicitada para o apontamento de registros. */
.vest-data-table tbody tr:hover > td,
.vest-data-table tbody tr:hover > th,
.table tbody tr:hover > td,
.gridview tbody tr:hover > td,
table.pvtTable tbody tr:hover > td,
table.pvtTable tbody tr:hover > th {
    color: #24364b !important;
    background-color: #FFD98A !important;
}

@media (max-width: 991.98px) {
    .admin-shell .vest-sidebar {
        z-index: 1400;
        overflow-y: auto;
        overflow-x: hidden;
    }

    .sidebar-open .vest-sidebar-backdrop {
        display: block;
    }


    .vest-admin-page-body {
        padding: 1rem;
    }
}

@media (max-width: 575.98px) {
    .vest-admin-page {
        border-radius: 16px;
    }

    .vest-admin-page-header {
        align-items: flex-start;
        min-height: 0;
        padding: 1.1rem;
        border-radius: 15px 15px 0 0;
    }

    .vest-admin-page-icon {
        flex-basis: 48px;
        width: 48px;
        height: 48px;
        border-radius: 14px;
        font-size: 1.25rem;
    }
}

/* ===== Padronização de modais e botões — revisão 2026.07 ===== */
.vest-dialog-panel {
    width: min(720px, 100%) !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: .35rem !important;
    color: var(--vest-text) !important;
    background: #fff !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
}
.vest-dialog-panel .container,
.vest-dialog-panel .container-fluid { max-width: 100%; padding: 0; }
.vest-modal-title,
.vest-dialog-heading {
    display: flex !important;
    align-items: center;
    gap: .72rem;
    margin: 0 0 .45rem !important;
    padding: 0 0 .75rem;
    color: var(--vest-blue) !important;
    font-size: 1.22rem !important;
    font-weight: 800 !important;
    line-height: 1.25;
    border-bottom: 1px solid var(--vest-border);
}
.vest-modal-title > i,
.vest-dialog-heading > i {
    flex: 0 0 40px;
    width: 40px;
    height: 40px;
    display: inline-grid;
    place-items: center;
    color: #fff;
    background: linear-gradient(135deg, var(--vest-blue), var(--vest-blue-2));
    border-radius: 12px;
    font-size: 1rem;
}
.vest-modal-title-danger { color: #a51f2d !important; }
.vest-modal-title-danger > i { background: linear-gradient(135deg, #b72334, #e04455); }
.vest-modal-subtitle { margin: 0 0 1rem; color: var(--vest-muted); line-height: 1.5; }
.vest-dialog-panel label,
.vest-dialog-panel > div:not(.vest-modal-title) { color: var(--vest-text); }
.vest-dialog-panel .form-control { margin-bottom: .65rem; }
.vest-dialog-panel .btn,
.vest-dialog-panel .vest-input-button-wrap { margin-top: .35rem; }
.vest-swal-popup { width: min(760px, 96vw) !important; padding: 1.15rem !important; }
.vest-swal-popup .swal2-close { color: #62788a !important; transition: color .15s ease, transform .15s ease; }
.vest-swal-popup .swal2-close:hover { color: #b42334 !important; transform: rotate(8deg); }
.vest-copy-topics-modal {
    width: min(720px, 100%) !important;
    max-width: 720px !important;
    max-height: min(78vh, 780px) !important;
}
.vest-copy-topics-modal.vest-dialog-content {
    display: flex !important;
    flex-direction: column;
    min-height: 0;
    overflow: hidden !important;
    padding: 0 !important;
}
.vest-copy-topics-header {
    flex: 0 0 auto;
    padding: 1.15rem 1.2rem .75rem;
    background: #fff;
}
.vest-copy-topics-header .vest-modal-title { margin-bottom: .4rem !important; }
.vest-copy-topics-header .vest-modal-subtitle { margin-bottom: 0; }
.vest-copy-topics-message {
    display: block;
    margin-top: .75rem;
    padding: .7rem .85rem;
    color: #7a4b00;
    background: #fff4d6;
    border: 1px solid #f2d38a;
    border-radius: 10px;
    font-size: .86rem;
    font-weight: 650;
}
.vest-copy-topics-message i { margin-right: .35rem; color: #b36b00; }
.vest-copy-topics-body {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: .35rem 1.2rem 1rem;
    scrollbar-width: thin;
    scrollbar-color: var(--vest-blue-2) #eaf1f5;
}
.vest-copy-topics-body::-webkit-scrollbar { width: 10px; }
.vest-copy-topics-body::-webkit-scrollbar-track { background: #eaf1f5; border-radius: 999px; }
.vest-copy-topics-body::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--vest-blue-2), var(--vest-blue));
    border: 2px solid #eaf1f5;
    border-radius: 999px;
}
.vest-copy-topics-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .8rem 1rem;
}
.vest-copy-topics-grid .vest-modal-field:last-child { grid-column: 1 / -1; }
.vest-modal-field { min-width: 0; }
.vest-modal-field label {
    display: block;
    margin-bottom: .35rem;
    color: var(--vest-text);
    font-size: .88rem;
    font-weight: 750;
}
.vest-modal-field .form-control { width: 100%; margin-bottom: 0 !important; }
.vest-topic-section { margin-top: 1rem; }
.vest-topic-section-title {
    display: flex;
    align-items: center;
    gap: .55rem;
    margin-bottom: .5rem;
    color: var(--vest-blue);
    font-weight: 800;
}
.vest-topic-section-title i { color: var(--vest-orange); }
.vest-topic-selector {
    max-height: 260px;
    overflow: auto;
    padding: .65rem;
    background: #f7fafc;
    border: 1px solid var(--vest-border);
    border-radius: 12px;
    scrollbar-width: thin;
    scrollbar-color: var(--vest-blue-2) #eaf1f5;
}
.vest-topic-selector::-webkit-scrollbar { width: 9px; height: 9px; }
.vest-topic-selector::-webkit-scrollbar-track { background: #eaf1f5; border-radius: 999px; }
.vest-topic-selector::-webkit-scrollbar-thumb { background: var(--vest-blue-2); border-radius: 999px; }
.vest-topic-checklist { width: 100%; margin: 0; border-collapse: separate; border-spacing: 0; }
.vest-topic-checklist td { padding: .42rem .48rem; border-radius: 8px; vertical-align: top; }
.vest-topic-checklist tr:hover td { background: #fff2cf; }
.vest-topic-checklist input[type="checkbox"] { margin: .18rem .45rem 0 0; vertical-align: top; }
.vest-topic-checklist label {
    display: inline;
    margin: 0;
    color: var(--vest-text);
    font-size: .84rem;
    font-weight: 600;
    line-height: 1.4;
    cursor: pointer;
}
.vest-empty-topics {
    display: block;
    padding: 1rem;
    color: var(--vest-muted);
    text-align: center;
}
.vest-copy-topics-actions {
    flex: 0 0 auto;
    display: flex;
    justify-content: flex-end;
    gap: .65rem;
    padding: .9rem 1.2rem 1.1rem;
    background: #fff;
    border-top: 1px solid var(--vest-border);
    box-shadow: 0 -8px 22px rgba(1, 69, 115, .06);
}
.vest-copy-topics-actions .btn { margin: 0 !important; }
@media (max-width: 680px) {
    .vest-copy-topics-modal { max-height: 82vh !important; }
    .vest-copy-topics-grid { grid-template-columns: 1fr; }
    .vest-copy-topics-grid .vest-modal-field:last-child { grid-column: auto; }
    .vest-copy-topics-actions { justify-content: stretch; }
    .vest-copy-topics-actions .btn { flex: 1 1 0; }
}
.vest-input-button-wrap .vest-auto-icon,
button .vest-auto-icon,
a .vest-auto-icon {
    display: inline-block !important;
    font-family: "Font Awesome 6 Free" !important;
    font-weight: 900 !important;
    font-style: normal !important;
    line-height: 1 !important;
}
.vest-input-button-wrap .vest-auto-icon { font-size: .95rem; }

/* As janelas declaradas como modal nunca participam do fluxo normal. */
.modalResponsiva:not(.vest-dialog-content),
.modal-responsivo-viewfiles:not(.vest-dialog-content),
.vest-dialog-panel:not(.vest-dialog-content) { display: none; }

/* ========================================================================== 
   Menu administrativo recolhível - desktop e persistência por navegador
   ========================================================================== */
@media (min-width: 992px) {
    .admin-shell .sidebar-toggle {
        display: inline-grid;
        place-items: center;
        flex: 0 0 42px;
        transition: transform .2s ease, background-color .2s ease;
    }

    .admin-shell .sidebar-toggle:hover,
    .admin-shell .sidebar-toggle:focus {
        color: #fff;
        background: #03689f;
        transform: translateY(-1px);
    }

    .admin-shell .vest-shell {
        grid-template-columns: 270px minmax(0, 1fr);
        transition: grid-template-columns .28s ease;
    }

    .admin-shell .vest-sidebar {
        width: 270px;
        opacity: 1;
        transform: translateX(0);
        transition: width .28s ease, padding .28s ease, opacity .2s ease, transform .28s ease, box-shadow .28s ease;
    }

    .admin-shell.sidebar-collapsed .vest-shell {
        grid-template-columns: 0 minmax(0, 1fr);
    }

    .admin-shell.sidebar-collapsed .vest-sidebar {
        width: 0;
        min-width: 0;
        padding-left: 0;
        padding-right: 0;
        opacity: 0;
        overflow: hidden;
        pointer-events: none;
        transform: translateX(-100%);
        box-shadow: none;
    }

    .admin-shell.sidebar-collapsed .vest-main {
        width: 100%;
    }
}


/* ===== Alertas de validação compactos — cadastros ===== */
.vest-swal-popup-small {
    overflow-x: hidden !important;
    padding: 1.1rem 1.2rem !important;
}
.vest-alert-dialog {
    width: 100% !important;
    max-width: 100% !important;
    overflow: hidden !important;
    padding: .15rem !important;
    text-align: left;
}
.vest-alert-dialog .vest-modal-title {
    margin-bottom: .85rem !important;
}
.vest-alert-message {
    min-width: 0;
    max-width: 100%;
    color: var(--vest-text);
    overflow-wrap: anywhere;
    word-break: normal;
}
.vest-alert-intro {
    margin: 0 0 .65rem;
    line-height: 1.5;
}
.vest-validation-list {
    display: grid;
    gap: .45rem;
    margin: 0;
    padding: 0;
    list-style: none;
}
.vest-validation-list li {
    position: relative;
    min-width: 0;
    padding: .62rem .75rem .62rem 2rem;
    color: #6d2630;
    background: #fff5f6;
    border: 1px solid #f2c5cb;
    border-radius: 10px;
    line-height: 1.4;
    overflow-wrap: anywhere;
}
.vest-validation-list li::before {
    content: "\f06a";
    position: absolute;
    left: .72rem;
    top: .72rem;
    color: #dc3545;
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
}
.vest-alert-actions {
    display: flex;
    justify-content: center;
    margin-top: 1rem;
    padding-top: .9rem;
    border-top: 1px solid var(--vest-border);
}
.vest-alert-actions .btn {
    min-width: 110px;
    margin: 0 !important;
}

/* ==========================================================
   V15.2 - Contraste de titulos em superficies escuras
   Evita que a regra geral da area administrativa deixe
   h1/h2/h3 azuis sobre containers azuis.
   ========================================================== */
.vest-admin-page-body .vest-dashboard-header,
.vest-admin-page-body .vest-admin-page-header,
.vest-admin-page-body .email-page-header,
.vest-admin-page-body .cad-cursos-section-title,
.vest-admin-page-body .vest-dark-surface,
.vest-admin-page-body .bg-primary,
.vest-admin-page-body .bg-secondary,
.vest-admin-page-body .bg-success,
.vest-admin-page-body .bg-danger,
.vest-admin-page-body .bg-dark,
.vest-admin-page-body .bg-blue,
.vest-admin-page-body .bg-orange {
    color: #fff !important;
}

.vest-admin-page-body .vest-dashboard-header h1,
.vest-admin-page-body .vest-dashboard-header h2,
.vest-admin-page-body .vest-dashboard-header h3,
.vest-admin-page-body .vest-dashboard-header h4,
.vest-admin-page-body .vest-dashboard-header h5,
.vest-admin-page-body .vest-dashboard-header h6,
.vest-admin-page-body .vest-dashboard-header .h1,
.vest-admin-page-body .vest-dashboard-header .h2,
.vest-admin-page-body .vest-dashboard-header .h3,
.vest-admin-page-body .vest-dashboard-header .h4,
.vest-admin-page-body .vest-dashboard-header .h5,
.vest-admin-page-body .vest-dashboard-header .h6,
.vest-admin-page-body .vest-admin-page-header h1,
.vest-admin-page-body .vest-admin-page-header h2,
.vest-admin-page-body .vest-admin-page-header h3,
.vest-admin-page-body .email-page-header h1,
.vest-admin-page-body .email-page-header h2,
.vest-admin-page-body .email-page-header h3,
.vest-admin-page-body .cad-cursos-section-title h1,
.vest-admin-page-body .cad-cursos-section-title h2,
.vest-admin-page-body .cad-cursos-section-title h3,
.vest-admin-page-body .cad-cursos-section-title .h1,
.vest-admin-page-body .cad-cursos-section-title .h2,
.vest-admin-page-body .cad-cursos-section-title .h3,
.vest-admin-page-body .vest-dark-surface h1,
.vest-admin-page-body .vest-dark-surface h2,
.vest-admin-page-body .vest-dark-surface h3,
.vest-admin-page-body .vest-dark-surface h4,
.vest-admin-page-body .vest-dark-surface h5,
.vest-admin-page-body .vest-dark-surface h6,
.vest-admin-page-body .bg-primary h1,
.vest-admin-page-body .bg-primary h2,
.vest-admin-page-body .bg-primary h3,
.vest-admin-page-body .bg-secondary h1,
.vest-admin-page-body .bg-secondary h2,
.vest-admin-page-body .bg-secondary h3,
.vest-admin-page-body .bg-success h1,
.vest-admin-page-body .bg-success h2,
.vest-admin-page-body .bg-success h3,
.vest-admin-page-body .bg-danger h1,
.vest-admin-page-body .bg-danger h2,
.vest-admin-page-body .bg-danger h3,
.vest-admin-page-body .bg-dark h1,
.vest-admin-page-body .bg-dark h2,
.vest-admin-page-body .bg-dark h3,
.vest-admin-page-body .bg-blue h1,
.vest-admin-page-body .bg-blue h2,
.vest-admin-page-body .bg-blue h3,
.vest-admin-page-body .bg-orange h1,
.vest-admin-page-body .bg-orange h2,
.vest-admin-page-body .bg-orange h3 {
    color: #fff !important;
}

.vest-admin-page-body .vest-dashboard-header p,
.vest-admin-page-body .vest-admin-page-header p,
.vest-admin-page-body .email-page-header p {
    color: rgba(255, 255, 255, .9) !important;
}

.vest-admin-page-body .vest-dashboard-header .text-muted,
.vest-admin-page-body .vest-admin-page-header .text-muted,
.vest-admin-page-body .email-page-header .text-muted {
    color: rgba(255, 255, 255, .78) !important;
}


/* ==========================================================================
   V18 - Artigo publico: guia de cursos Centec
   Mantem o layout mesmo se o editor remover a tag <style> do artigo.
   ========================================================================== */
.centec-course-guide {
    --cg-blue: #014573;
    --cg-blue-light: #0375ad;
    --cg-orange: #e06633;
    --cg-text: #183247;
    --cg-muted: #5f7383;
    --cg-border: #d9e5ec;
    --cg-bg: #f3f7fa;
    color: var(--cg-text);
    font-family: inherit;
  }

  .centec-course-guide * { box-sizing: border-box; }

  .cg-intro {
    position: relative;
    overflow: hidden;
    padding: 1.35rem;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #eef7fb, #ffffff);
    border: 1px solid var(--cg-border);
    border-left: 6px solid var(--cg-blue);
    border-radius: 18px;
  }

  .cg-intro::after {
    content: "";
    position: absolute;
    right: -55px;
    top: -55px;
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: rgba(224, 102, 51, .09);
  }

  .cg-intro h2 {
    position: relative;
    z-index: 1;
    margin: 0 0 .55rem;
    color: var(--cg-blue);
    font-size: clamp(1.35rem, 3vw, 1.8rem);
    font-weight: 800;
  }

  .cg-intro p {
    position: relative;
    z-index: 1;
    margin: 0;
    line-height: 1.65;
  }

  .cg-alert {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: .9rem;
    align-items: start;
    margin: 1rem 0;
    padding: 1rem;
    background: #fff8e8;
    border: 1px solid #efc97a;
    border-radius: 15px;
  }

  .cg-alert-icon {
    display: grid;
    width: 44px;
    height: 44px;
    place-items: center;
    color: #8a5a00;
    background: #fff;
    border-radius: 12px;
    font-size: 1.2rem;
  }

  .cg-alert strong { color: #754d00; }
  .cg-alert p { margin: 0; line-height: 1.55; }

  .cg-modalities {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .85rem;
    margin: 1rem 0 1.2rem;
  }

  .cg-modality {
    padding: 1rem;
    background: #fff;
    border: 1px solid var(--cg-border);
    border-radius: 15px;
  }

  .cg-modality h3 {
    margin: 0 0 .35rem;
    color: var(--cg-blue);
    font-size: 1.05rem;
    font-weight: 800;
  }

  .cg-modality p { margin: 0; color: var(--cg-muted); line-height: 1.5; }

  .cg-instruction {
    margin: 1rem 0 .7rem;
    color: var(--cg-muted);
    font-size: .96rem;
  }

  .cg-unit {
    margin: .85rem 0;
    background: #fff;
    border: 1px solid var(--cg-border);
    border-radius: 17px;
    box-shadow: 0 8px 22px rgba(1, 69, 115, .07);
  }

  .cg-unit > summary {
    display: flex;
    align-items: center;
    gap: .8rem;
    padding: 1rem 1.1rem;
    color: var(--cg-blue);
    cursor: pointer;
    list-style: none;
    font-size: 1.08rem;
    font-weight: 800;
  }

  .cg-unit > summary::-webkit-details-marker { display: none; }

  .cg-unit > summary::before {
    content: "+";
    display: grid;
    flex: 0 0 34px;
    width: 34px;
    height: 34px;
    place-items: center;
    color: #fff;
    background: var(--cg-blue);
    border-radius: 10px;
    font-size: 1.2rem;
    line-height: 1;
  }

  .cg-unit[open] > summary::before {
    content: "−";
    background: var(--cg-orange);
  }

  .cg-unit > summary:hover,
  .cg-unit > summary:focus-visible { background: #f5fafc; }

  .cg-unit-body {
    padding: 0 1.1rem 1.15rem;
    border-top: 1px solid #edf2f5;
  }

  .cg-unit-intro {
    margin: .95rem 0;
    color: var(--cg-muted);
    line-height: 1.55;
  }

  .cg-level-title {
    display: flex;
    align-items: center;
    gap: .5rem;
    margin: 1.05rem 0 .7rem;
    color: var(--cg-blue);
    font-size: 1rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .04em;
  }

  .cg-level-title span {
    display: inline-block;
    padding: .25rem .55rem;
    color: #fff;
    background: var(--cg-orange);
    border-radius: 999px;
    font-size: .72rem;
  }

  .cg-course-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .8rem;
  }

  .cg-course {
    min-width: 0;
    padding: 1rem;
    background: var(--cg-bg);
    border: 1px solid #dce8ee;
    border-radius: 14px;
  }

  .cg-course h4 {
    display: flex;
    align-items: flex-start;
    gap: .5rem;
    margin: 0 0 .45rem;
    color: var(--cg-blue);
    font-size: 1.02rem;
    font-weight: 800;
    line-height: 1.35;
  }

  .cg-course h4 i { margin-top: .15rem; color: var(--cg-orange); }
  .cg-course p { margin: 0 0 .5rem; line-height: 1.55; }
  .cg-course p:last-child { margin-bottom: 0; }
  .cg-work { color: var(--cg-muted); font-size: .93rem; }
  .cg-work strong { color: var(--cg-text); }

  .cg-cta {
    margin-top: 1.25rem;
    padding: 1.2rem;
    text-align: center;
    color: #fff;
    background: linear-gradient(135deg, var(--cg-blue), var(--cg-blue-light));
    border-radius: 17px;
  }

  .cg-cta h3 { margin: 0 0 .35rem; color: #fff; font-size: 1.2rem; font-weight: 800; }
  .cg-cta p { margin: 0 0 .85rem; line-height: 1.55; }

  .cg-cta a {
    display: inline-block;
    padding: .7rem 1rem;
    color: #fff !important;
    background: var(--cg-orange);
    border: 2px solid #fff;
    border-radius: 11px;
    font-weight: 800;
    text-decoration: none !important;
  }

  .cg-cta a:hover,
  .cg-cta a:focus { background: #bd4e21; }

  .vest-high-contrast .centec-course-guide,
  .vest-high-contrast .cg-intro,
  .vest-high-contrast .cg-modality,
  .vest-high-contrast .cg-unit,
  .vest-high-contrast .cg-course {
    color: #fff !important;
    background: #000 !important;
    border-color: #ffeb3b !important;
  }

  .vest-high-contrast .cg-intro h2,
  .vest-high-contrast .cg-modality h3,
  .vest-high-contrast .cg-unit > summary,
  .vest-high-contrast .cg-level-title,
  .vest-high-contrast .cg-course h4,
  .vest-high-contrast .cg-work,
  .vest-high-contrast .cg-work strong,
  .vest-high-contrast .cg-unit-intro,
  .vest-high-contrast .cg-instruction {
    color: #ffeb3b !important;
  }

  @media (max-width: 767.98px) {
    .cg-modalities,
    .cg-course-grid { grid-template-columns: 1fr; }
    .cg-intro, .cg-unit-body { padding-left: .9rem; padding-right: .9rem; }
    .cg-unit > summary { padding: .9rem; }
  }

/* ========================================================================== 
   V28 - Menu administrativo dinamico, acessivel e responsivo
   Substitui apenas a apresentacao do antigo asp:Menu. As permissoes continuam
   sendo carregadas pelas tabelas MENU e MENUPESSOAS.
   ========================================================================== */
.admin-shell .vest-sidebar {
    overflow-x: hidden;
    overflow-y: auto;
}

.admin-shell .menu-wrapper {
    width: 100%;
    min-width: 0;
}

.admin-shell .vest-dynamic-nav,
.admin-shell .vest-dynamic-menu,
.admin-shell .vest-submenu {
    width: 100%;
    margin: 0;
    padding: 0;
    list-style: none;
}

.admin-shell .vest-dynamic-menu,
.admin-shell .vest-dynamic-menu li,
.admin-shell .vest-dynamic-menu li > ul {
    position: static !important;
    inset: auto !important;
    min-width: 0 !important;
    max-width: none !important;
    max-height: none !important;
    overflow: visible !important;
    background: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
}

.admin-shell .vest-dynamic-menu li > ul[hidden] {
    display: none !important;
}

.admin-shell .vest-dynamic-menu li > ul:not([hidden]) {
    display: block !important;
}

.admin-shell .vest-menu-item {
    width: 100%;
    margin: .22rem 0;
}

.admin-shell .vest-menu-row {
    display: flex;
    align-items: stretch;
    width: 100%;
    min-width: 0;
    border-radius: 12px;
}

.admin-shell .vest-menu-link,
.admin-shell button.vest-menu-link,
.admin-shell .vest-submenu-toggle {
    appearance: none;
    -webkit-appearance: none;
    border: 0;
    font: inherit;
}

.admin-shell .vest-menu-link,
.admin-shell button.vest-menu-link {
    display: flex;
    align-items: center;
    gap: .72rem;
    width: 100%;
    min-width: 0;
    padding: .72rem .78rem;
    color: rgba(255, 255, 255, .92) !important;
    background: transparent;
    border-radius: 11px;
    text-align: left;
    text-decoration: none !important;
    cursor: pointer;
    transition: background-color .18s ease, color .18s ease, transform .18s ease;
}

.admin-shell .vest-menu-parent-link {
    flex: 1 1 auto;
    border-radius: 11px 0 0 11px;
}

.admin-shell .vest-menu-link:hover,
.admin-shell .vest-menu-link:focus-visible,
.admin-shell .vest-menu-group.has-active-child > .vest-menu-row > .vest-menu-link {
    color: #fff !important;
    background: rgba(255, 255, 255, .13);
    transform: translateX(2px);
}

.admin-shell .vest-menu-link.is-active {
    color: #fff !important;
    background: linear-gradient(135deg, rgba(224, 102, 51, .98), rgba(192, 72, 25, .98));
    box-shadow: 0 8px 20px rgba(0, 0, 0, .16);
}

.admin-shell .vest-menu-icon {
    display: inline-grid;
    flex: 0 0 26px;
    width: 26px;
    height: 26px;
    place-items: center;
    font-size: 1rem;
}

.admin-shell .vest-menu-label {
    min-width: 0;
    flex: 1 1 auto;
    overflow-wrap: anywhere;
    line-height: 1.3;
}

.admin-shell .vest-menu-chevron {
    flex: 0 0 auto;
    margin-left: auto;
    font-size: .75rem;
    transition: transform .2s ease;
}

.admin-shell .vest-menu-group.is-open > .vest-menu-row .vest-menu-chevron {
    transform: none;
}

.admin-shell .vest-submenu-toggle {
    display: inline-grid;
    flex: 0 0 42px;
    width: 42px;
    place-items: center;
    color: rgba(255, 255, 255, .88);
    background: transparent;
    border-radius: 0 11px 11px 0;
    cursor: pointer;
    transition: background-color .18s ease, transform .18s ease;
}

.admin-shell .vest-submenu-toggle:hover,
.admin-shell .vest-submenu-toggle:focus-visible,
.admin-shell .vest-menu-group.is-open > .vest-menu-row > .vest-submenu-toggle {
    color: #fff;
    background: rgba(255, 255, 255, .14);
}

.admin-shell .vest-submenu {
    margin: .25rem 0 .48rem .72rem !important;
    padding: .18rem 0 .18rem .72rem !important;
    border-left: 1px solid rgba(255, 255, 255, .2) !important;
}

.admin-shell .vest-submenu .vest-menu-link,
.admin-shell .vest-submenu button.vest-menu-link {
    padding-top: .62rem;
    padding-bottom: .62rem;
    font-size: .93rem;
}

.admin-shell .vest-submenu .vest-menu-icon {
    flex-basis: 22px;
    width: 22px;
    height: 22px;
    font-size: .88rem;
}

.admin-shell .vest-menu-empty {
    display: flex;
    align-items: flex-start;
    gap: .65rem;
    margin: .35rem 0;
    padding: .85rem;
    color: rgba(255, 255, 255, .8);
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 12px;
    font-size: .88rem;
    line-height: 1.45;
}


/* O conteudo principal nunca pode ultrapassar a largura da janela. */
.admin-shell .vest-main,
.admin-shell .vest-content,
.admin-shell .vest-admin-page,
.admin-shell .vest-admin-page-body,
.admin-shell .row,
.admin-shell [class*="col-"] {
    min-width: 0;
}

.admin-shell img,
.admin-shell svg,
.admin-shell canvas {
    max-width: 100%;
}

.admin-shell .table-responsive {
    border-radius: 12px;
}

@media (max-width: 991.98px) {
    .admin-shell .vest-sidebar {
        width: min(88vw, 310px);
        left: min(-90vw, -320px);
        padding-bottom: 2rem;
        overflow-x: hidden !important;
        overflow-y: auto !important;
    }

    .admin-shell.sidebar-open .vest-sidebar {
        left: 0;
    }

    .admin-shell .vest-submenu {
        margin-left: .48rem !important;
        padding-left: .55rem !important;
    }

    .admin-shell .vest-main {
        width: 100%;
        padding: 1rem;
    }

    .admin-shell .vest-dashboard-header {
        padding: 1.25rem;
    }
}

@media (max-width: 575.98px) {
    .admin-shell .vest-topbar {
        min-height: 68px;
    }

    .admin-shell .vest-shell {
        min-height: calc(100vh - 68px);
    }

    .admin-shell .vest-sidebar {
        top: 68px;
        height: calc(100vh - 68px);
    }

    .admin-shell .vest-sidebar-backdrop {
        inset: 68px 0 0;
    }

    .admin-shell .vest-brand {
        min-width: 0;
        gap: .65rem;
    }

    .admin-shell .vest-brand img {
        width: min(150px, 48vw);
        height: auto;
        max-height: 40px;
    }

    .admin-shell .vest-main {
        padding: .75rem;
    }

    .admin-shell .vest-content,
    .admin-shell .vest-admin-page-body {
        width: 100%;
    }

    .admin-shell .vest-dashboard-header h1 {
        font-size: 1.45rem;
    }

    .admin-shell .vest-dashboard-header .btn,
    .admin-shell .vest-card > .btn,
    .admin-shell .vest-action-row .btn,
    .admin-shell .vest-action-row input[type="submit"] {
        width: 100%;
    }

    .admin-shell .vest-menu-link,
    .admin-shell button.vest-menu-link {
        min-height: 46px;
    }
}

.vest-high-contrast .vest-menu-link,
.vest-high-contrast button.vest-menu-link,
.vest-high-contrast .vest-submenu-toggle {
    color: #ffeb3b !important;
}

.vest-high-contrast .vest-menu-link.is-active {
    color: #000 !important;
    background: #ffeb3b !important;
}

.admin-shell .vest-menu-disabled {
    cursor: default;
    opacity: .62;
}

.admin-shell .vest-menu-disabled:hover {
    background: transparent;
    transform: none;
}

/* ========================================================================== 
   V37 - Espaçamento da barra de acessibilidade na página inicial pública
   Mantém os ícones afastados do botão "Fazer Login" em telas não móveis.
   ========================================================================== */
@media (min-width: 576px) {
    .public-shell .vest-accessibility {
        top: 165px;
    }
}

/* ========================================================================== 
   V38 - Espaçamento da barra de acessibilidade no ambiente do candidato
   Mantém os ícones afastados do botão "Sair" em telas não móveis.
   ========================================================================== */
@media (min-width: 576px) {
    .candidate-shell .vest-accessibility {
        top: 200px;
    }
}
