/* =====================================================================
   ProGo — Design System (Laravel) — v2 moderno
   Cor padrao da marca: rgb(41, 61, 101) / #293D65
   --brand / --brand-dark sao injetados no layout (respeitam o cliente).
   ===================================================================== */
@import url("https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap");

/* Compat: ícones legados escritos como `fa fa-xxx` (v4) renderizam sólidos no Font Awesome 6. */
.fa { font-family: "Font Awesome 6 Free"; font-weight: 900; }

:root {
    --brand: #293D65;
    --brand-dark: #1d2d4d;
    --brand-soft: rgba(41, 61, 101, 0.07);
    --brand-soft-2: rgba(41, 61, 101, 0.14);

    --bg: #eef1f7;
    --surface: #ffffff;
    --surface-2: #fafbfe;
    --border: #e7eaf1;
    --text: #182135;
    --text-muted: #717a90;
    --success: #12a06b;
    --warning: #e08a1e;
    --danger: #e5484d;

    --radius: 16px;
    --radius-sm: 11px;
    --shadow-sm: 0 1px 2px rgba(20, 30, 55, 0.05), 0 1px 3px rgba(20, 30, 55, 0.05);
    --shadow: 0 8px 28px rgba(20, 30, 55, 0.09);
    --shadow-lg: 0 24px 60px rgba(20, 30, 55, 0.18);
    --sidebar-w: 270px;
    --header-h: 70px;
}

* { box-sizing: border-box; }

html, body { margin: 0; padding: 0; min-height: 100%; }

body {
    font-family: "Plus Jakarta Sans", "Segoe UI", system-ui, sans-serif;
    background:
        radial-gradient(1200px 500px at 100% -10%, rgba(41, 61, 101, 0.06), transparent 60%),
        var(--bg);
    color: var(--text);
    -webkit-font-smoothing: antialiased;
    font-size: 14px;
    line-height: 1.5;
}

a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-weight: 800; letter-spacing: -0.02em; margin: 0; }
img { max-width: 100%; }

/* ---------------------------------------------------------------- Shell */
.app { min-height: 100vh; }

.sidebar {
    position: fixed;
    top: 0; left: 0; bottom: 0;
    width: var(--sidebar-w);
    background: var(--surface);
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    z-index: 60;
    transition: transform 0.28s cubic-bezier(.4,0,.2,1);
}

.sidebar__brand {
    min-height: var(--header-h);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border);
}

/* Logo (cliente ou padrao do produto) — centralizado no topo da sidebar */
.brand-logo { display: flex; align-items: center; justify-content: center; max-width: 100%; }
.brand-logo img {
    max-width: 220px;
    max-height: 54px;
    object-fit: contain;
    object-position: center;
    display: block;
    margin: 0 auto;
}

/* Fallback "P" caso nao haja logo (texto) */
.sidebar__logo {
    width: 40px; height: 40px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--brand), var(--brand-dark));
    color: #fff;
    display: grid; place-items: center;
    font-weight: 800; font-size: 19px;
    flex-shrink: 0;
    box-shadow: 0 6px 16px rgba(41, 61, 101, 0.28);
}
.sidebar__brand-name { font-weight: 800; font-size: 18px; color: var(--brand); line-height: 1.1; }
.sidebar__brand-name span { color: var(--text-muted); font-weight: 600; font-size: 10px; display: block; letter-spacing: 0.08em; margin-top: 2px; }

.sidebar__scroll { flex: 1; overflow-y: auto; padding: 14px 14px 24px; }
.sidebar__scroll::-webkit-scrollbar { width: 6px; }
.sidebar__scroll::-webkit-scrollbar-thumb { background: var(--brand-soft-2); border-radius: 6px; }

.side-user {
    display: flex; align-items: center; gap: 11px;
    padding: 12px; margin-bottom: 16px;
    border-radius: var(--radius-sm);
    background: linear-gradient(135deg, var(--brand-soft), var(--surface-2));
    border: 1px solid var(--border);
}
.side-user__avatar {
    position: relative; overflow: hidden;
    width: 44px; height: 44px; border-radius: 50%;
    background: linear-gradient(135deg, var(--brand), var(--brand-dark));
    color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 15px;
    flex-shrink: 0;
    box-shadow: 0 6px 14px rgba(41, 61, 101, 0.28);
}
.side-user__avatar img {
    position: absolute; inset: 0;
    width: 100%; height: 100%; object-fit: cover; border-radius: 50%;
}
/* Com foto, as iniciais ficam escondidas atrás da imagem (fallback se a img falhar). */
.side-user__avatar--foto .side-user__ini { visibility: hidden; }
.side-user__label { font-size: 10px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-muted); font-weight: 700; }
.side-user__name { font-weight: 800; color: var(--brand); font-size: 14px; }
.side-user__sub { font-size: 11px; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 158px; }

.nav-group__title {
    font-size: 10px; text-transform: uppercase; letter-spacing: 0.09em;
    color: var(--text-muted); font-weight: 800;
    padding: 18px 12px 7px;
}

.nav-item {
    display: flex; align-items: center; gap: 10px;
    padding: 6px 10px; margin: 1px 0;
    border-radius: var(--radius-sm);
    color: var(--text);
    font-weight: 600; font-size: 13px;
    border: 1px solid transparent;
    transition: all 0.18s ease;
    position: relative;
}
/* icone em "chip" arredondado */
.nav-item svg {
    width: 16px; height: 16px;
    box-sizing: content-box; padding: 6px;
    border-radius: 9px;
    background: var(--brand-soft);
    color: var(--brand); opacity: 1; flex-shrink: 0;
    transition: all 0.18s ease;
}
.nav-item:hover { background: var(--surface-2); border-color: var(--border); }
.nav-item:hover svg { background: var(--brand-soft-2); }
.nav-item.is-active {
    background: linear-gradient(135deg, var(--brand), var(--brand-dark));
    color: #fff;
    box-shadow: 0 10px 22px rgba(41, 61, 101, 0.30);
}
.nav-item.is-active svg { background: rgba(255, 255, 255, 0.18); color: #fff; }
/* barra indicadora lateral do item ativo */
.nav-item.is-active::before {
    content: ""; position: absolute; left: -14px; top: 50%; transform: translateY(-50%);
    width: 4px; height: 22px; border-radius: 0 4px 4px 0; background: var(--brand);
}

/* ---------------------------------------------------------------- Menu em cascata */
.nav-cascade { margin: 1px 0; }
.nav-parent {
    width: 100%; display: flex; align-items: center; gap: 10px;
    padding: 6px 10px; border: 1px solid transparent; border-radius: var(--radius-sm);
    background: transparent; color: var(--text); cursor: pointer;
    font-weight: 700; font-size: 12px; font-family: inherit; text-align: left;
    letter-spacing: 0.01em; transition: all 0.18s ease;
}
.nav-parent:hover { background: var(--surface-2); border-color: var(--border); }
.nav-parent__icon {
    width: 16px; height: 16px; box-sizing: content-box; padding: 6px;
    border-radius: 9px; background: var(--brand-soft); color: var(--brand); flex-shrink: 0;
    transition: all 0.18s ease;
}
.nav-parent:hover .nav-parent__icon { background: var(--brand-soft-2); }
.nav-parent__label { flex: 1; min-width: 0; }
.nav-parent__arrow { width: 15px; height: 15px; color: var(--text-muted); transition: transform 0.22s ease; }
.nav-cascade.is-open > .nav-parent { color: var(--brand); }
.nav-cascade.is-open > .nav-parent .nav-parent__icon { background: var(--brand); color: #fff; }
.nav-cascade.is-open > .nav-parent .nav-parent__arrow { transform: rotate(90deg); color: var(--brand); }

.nav-sub {
    overflow: hidden; max-height: 0;
    transition: max-height 0.26s ease;
    margin-left: 18px; padding-left: 14px; border-left: 2px solid var(--border);
}
.nav-cascade.is-open > .nav-sub { max-height: 360px; }
.nav-child {
    display: flex; align-items: center; gap: 9px;
    padding: 5px 10px; margin: 1px 0; border-radius: var(--radius-sm);
    color: var(--text-muted); font-weight: 600; font-size: 12.5px;
    transition: all 0.16s ease;
}
.nav-child svg { width: 15px; height: 15px; flex-shrink: 0; color: var(--text-muted); opacity: 0.9; }
.nav-child:hover { background: var(--surface-2); color: var(--brand); }
.nav-child:hover svg { color: var(--brand); }
.nav-child.is-active { background: var(--brand-soft); color: var(--brand); font-weight: 800; }
.nav-child.is-active svg { color: var(--brand); }
.nav-child.is-active::before {
    content: ""; position: absolute; left: -16px; width: 6px; height: 6px; border-radius: 50%;
    background: var(--brand);
}
.nav-child { position: relative; }

/* Rodape do sidebar */
.sidebar__foot {
    padding: 14px 20px; border-top: 1px solid var(--border);
    display: flex; flex-direction: column; line-height: 1.25;
}
.sidebar__foot span { font-size: 9px; text-transform: uppercase; letter-spacing: 0.12em; color: var(--text-muted); font-weight: 700; }
.sidebar__foot strong { font-size: 15px; color: var(--brand); font-weight: 800; }
.sidebar__foot small { font-size: 10px; color: var(--text-muted); letter-spacing: 0.04em; }

/* ---------------------------------------------------------------- Main */
.main { margin-left: var(--sidebar-w); min-height: 100vh; display: flex; flex-direction: column; }

.topbar {
    height: var(--header-h);
    position: sticky; top: 0; z-index: 50;
    background: linear-gradient(120deg, var(--header-bg, var(--brand)), var(--brand-dark));
    color: #fff;
    display: flex; align-items: center; justify-content: space-between;
    padding: 0 24px;
    box-shadow: 0 4px 18px rgba(20, 30, 55, 0.14);
}
.topbar__title { font-size: 17px; font-weight: 800; color: #fff; letter-spacing: -0.01em; }
.topbar__title small { display: block; font-size: 11px; font-weight: 500; opacity: 0.78; letter-spacing: 0; }
.topbar__right { display: flex; align-items: center; gap: 16px; }

/* Seletor de empresa (ADM) no topo */
.empresa-switch { display: flex; align-items: center; gap: 8px; }
.empresa-switch > svg { width: 17px; height: 17px; color: #fff; opacity: 0.85; flex-shrink: 0; }

/* select nativo (fallback caso o Select2/CDN nao carregue) */
.empresa-switch select {
    appearance: none; -webkit-appearance: none;
    background: rgba(255,255,255,0.14); border: 1px solid rgba(255,255,255,0.22);
    border-radius: 11px; color: #fff;
    font: inherit; font-weight: 700; font-size: 13px; cursor: pointer;
    max-width: 230px; padding: 7px 30px 7px 12px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='none' stroke='white' stroke-width='2' viewBox='0 0 24 24'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right 10px center;
}
.empresa-switch select:focus { outline: none; }
.empresa-switch option { color: #182135; }

/* Select2 estilizado para o topo escuro */
.empresa-switch .select2-container { line-height: normal; }
.empresa-switch .select2-container--default .select2-selection--single {
    background: rgba(255,255,255,0.14); border: 1px solid rgba(255,255,255,0.22);
    border-radius: 11px; height: 36px; display: flex; align-items: center;
}
.empresa-switch .select2-container--default .select2-selection--single .select2-selection__rendered {
    color: #fff; font-weight: 700; font-size: 13px; line-height: 34px; padding-left: 12px; padding-right: 26px;
}
.empresa-switch .select2-container--default .select2-selection--single .select2-selection__arrow { height: 34px; right: 6px; }
.empresa-switch .select2-container--default .select2-selection--single .select2-selection__arrow b { border-color: #fff transparent transparent; }
.empresa-switch .select2-container--open.select2-container--above .select2-selection--single,
.empresa-switch .select2-container--open.select2-container--below .select2-selection--single { background: rgba(255,255,255,0.22); }

/* Dropdown do Select2 (claro, legivel) */
.select2-dropdown { border-color: var(--border); border-radius: 12px; box-shadow: 0 16px 40px rgba(15,20,40,0.18); overflow: hidden; }
.select2-search--dropdown .select2-search__field { border-radius: 8px; border: 1px solid var(--border); padding: 7px 10px; }
.select2-container--default .select2-results__option--highlighted[aria-selected] { background: var(--brand); }
.select2-results__option { font-size: 13.5px; }

.topbar__client {
    font-size: 13px; font-weight: 700; opacity: 0.95;
    max-width: 220px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.topbar__sep { width: 1px; height: 28px; background: rgba(255,255,255,0.22); }
.topbar__icon-btn {
    width: 40px; height: 40px; border-radius: 11px;
    background: rgba(255,255,255,0.16); color: #fff;
    display: grid; place-items: center; border: none; cursor: pointer;
    transition: background 0.18s;
}
.topbar__icon-btn:hover { background: rgba(255,255,255,0.28); }

.menu-toggle { display: none; background: rgba(255,255,255,0.16); border: none; color: #fff; width: 42px; height: 42px; border-radius: 11px; cursor: pointer; }

.content { padding: 28px; flex: 1; max-width: 1320px; width: 100%; }
.content--embed { padding: 20px 22px; max-width: none; }
body.is-embed { background: var(--surface); }
/* Dentro do modal (iframe) o "Voltar" não faz sentido — fechar é pelo cabeçalho do modal. */
body.is-embed .page-head .btn--ghost { display: none; }
/* Dentro do modal o "Baixar PDF" fica no topo do modal — esconde o do relatório. */
body.is-embed .page-head .js-pdf-btn { display: none; }

/* Lista DISC — filtro, info de uso, ranking, paginação e grid de competências */
.disc-filtro {
    display: flex; flex-wrap: wrap; gap: 14px; align-items: flex-end;
    background: var(--surface); border: 1px solid var(--border); border-radius: 14px;
    padding: 16px 18px; margin-bottom: 16px; box-shadow: 0 2px 10px rgba(15,23,42,.04);
}
.disc-filtro__campo { display: flex; flex-direction: column; gap: 5px; flex: 1 1 150px; min-width: 130px; }
.disc-filtro__campo label { font-size: 12px; font-weight: 600; color: var(--text-muted); }
.disc-filtro__campo input, .disc-filtro__campo select {
    padding: 9px 11px; border: 1px solid var(--border); border-radius: 9px; font-size: 13.5px;
    background: var(--surface); color: var(--text); width: 100%;
}
.disc-filtro__campo input:focus, .disc-filtro__campo select:focus { outline: none; border-color: var(--brand); }
.disc-filtro__acao { display: flex; gap: 8px; align-items: center; flex: 0 0 auto; }

/* Seletor de idioma — topbar e login */
.lang-switch { display: inline-flex; border: 1px solid var(--border); border-radius: 9px; overflow: hidden; background: var(--surface); }
.lang-switch a { padding: 6px 12px; font-size: 12px; font-weight: 700; color: var(--text-muted); text-decoration: none; line-height: 1.2; white-space: nowrap; }
.lang-switch a:hover { background: var(--surface-2); color: var(--brand); }
.lang-switch a.is-active { background: var(--brand); color: #fff; }
.lang-switch--login { justify-content: center; width: max-content; margin: 0 auto 18px; }

.disc-uso { display: flex; justify-content: center; gap: 40px; flex-wrap: wrap; color: var(--text-muted); font-size: 14px; margin: 6px 0 12px; }
.disc-uso strong { color: var(--brand); }

.disc-rank { display: flex; justify-content: center; gap: 10px; margin-bottom: 12px; }
.btn--rank-comp { background: #e5484d; color: #fff; }
.btn--rank-comp:hover { background: #c93b40; color: #fff; }

/* Botão "Gerar" (laranja, igual ao legado) — relatório ainda não liberado para o cliente. */
.btn--gerar { background: #f8ac59; color: #fff; box-shadow: 0 4px 12px rgba(248,172,89,.35); }
.btn--gerar:hover { background: #f0993a; color: #fff; transform: translateY(-1px); }
.disc-gerar-form { display: inline; margin: 0; }
.disc-acoes {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    flex-wrap: nowrap;
}
.disc-acoes .btn--sm { white-space: nowrap; }
.btn--disc-pdf {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    min-width: 28px;
    padding: 0;
    border-radius: 8px;
    background: #e5484d;
    color: #fff;
    border: none;
    box-shadow: 0 2px 6px rgba(229, 72, 77, 0.35);
    line-height: 1;
}
.btn--disc-pdf:hover {
    background: #c93b40;
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(229, 72, 77, 0.4);
}
.btn--disc-pdf i {
    font-size: 13px;
}

/* Mensagens de retorno ao gerar relatório. */
.disc-flash { max-width: 720px; margin: 0 auto 14px; padding: 11px 16px; border-radius: 10px; font-size: 14px; font-weight: 600; text-align: center; }
.disc-flash--ok { background: #e6f7ec; color: #1b7a3d; border: 1px solid #b6e6c6; }
.disc-flash--err { background: #fdecec; color: #c0392b; border: 1px solid #f3c2c2; }

/* Paginação no topo, centralizada. */
.disc-pager { display: flex; justify-content: center; margin-bottom: 14px; }
.disc-pager .pagination { margin: 0; justify-content: center; }

/* Modal de confirmação (gerar relatório). */
.confirm { position: fixed; inset: 0; z-index: 1300; display: none; align-items: center; justify-content: center; padding: 20px; }
.confirm.is-open { display: flex; }
.confirm__backdrop { position: absolute; inset: 0; background: rgba(20,30,55,0.55); backdrop-filter: blur(3px); }
.confirm__box {
    position: relative; width: 100%; max-width: 440px; background: var(--surface); border-radius: 18px;
    padding: 30px 28px 24px; text-align: center; box-shadow: 0 24px 60px rgba(15,23,42,0.32);
    animation: confirmIn 0.18s ease-out;
}
@keyframes confirmIn { from { opacity: 0; transform: translateY(14px) scale(0.97); } to { opacity: 1; transform: none; } }
.confirm__icon {
    width: 58px; height: 58px; margin: 0 auto 14px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, #f8ac59, #f0993a); color: #fff; font-size: 24px;
    box-shadow: 0 8px 20px rgba(248,172,89,0.4);
}
.confirm__titulo { margin: 0 0 8px; font-size: 19px; font-weight: 800; color: var(--text); }
.confirm__msg { margin: 0 0 22px; font-size: 14.5px; line-height: 1.55; color: var(--text-muted); }
.confirm__msg strong { color: var(--brand); }
.confirm__acoes { display: flex; gap: 10px; justify-content: center; }
.confirm__acoes .btn { min-width: 120px; justify-content: center; }

/* Botão amarelo (ordenações de ranking: melhor nota/competência). */
.btn--warning { background: #f0ad4e; color: #fff; }
.btn--warning:hover { background: #e09a35; color: #fff; transform: translateY(-1px); }

/* Ranking por cargo. */
.disc-cargo-col { text-align: center; font-size: 11px; max-width: 120px; overflow-wrap: anywhere; }
.disc-melhor { outline: 2px solid var(--brand); outline-offset: -2px; font-weight: 800; }

/* Nota do cargo clicável (abre a correlação) */
.disc-cargo-nota { background: none; border: 0; padding: 0; font: inherit; font-weight: 800; cursor: pointer; text-decoration: underline; text-decoration-style: dotted; text-underline-offset: 2px; }
.disc-cargo-nota:hover { filter: brightness(.85); }

/* Detalhe da correlação com cargo (modal): 3 gráficos lado a lado */
.cargo-corr__graficos { display: flex; flex-wrap: wrap; gap: 18px; justify-content: center; }
.cargo-corr__g { text-align: center; }
.cargo-corr__cols { display: flex; justify-content: space-around; width: 105px; margin: 0 auto 4px; font-weight: 800; color: #2F328F; font-size: 13px; }
.cargo-corr__leg { margin-top: 8px; font-size: 12px; font-weight: 700; color: #2b3550; max-width: 120px; }

/* Modal "Configurar cargos". */
.cargo-modal__box { height: auto; max-height: 92vh; top: 4vh; width: min(880px, 96vw); }
.cargo-modal__body { padding: 18px 20px 24px; overflow-y: auto; }
.cargo-modal__body h4 { margin: 0 0 10px; font-size: 15px; color: var(--brand); }
.cargo-lista { margin-bottom: 26px; }
.cargo-hint { font-size: 13px; color: var(--text-muted); margin: 6px 0 12px; }
.cargo-hint strong { color: var(--brand); }
.cargo-badge { font-size: 12px; font-weight: 700; color: var(--text-muted); }
.cargo-form__lbl { display: block; font-size: 13px; font-weight: 600; margin-bottom: 5px; margin-top: 12px; }
.cargo-form__lbl:first-of-type { margin-top: 0; }
.cargo-form input[name="nome"] { width: 100%; max-width: 320px; padding: 9px 11px; border: 1px solid var(--border); border-radius: 9px; font-size: 14px; }
.grupo-pager { display: flex; align-items: center; justify-content: center; gap: 12px; margin-top: 12px; }
.grupo-pager__info { font-size: 13px; font-weight: 600; color: var(--text-muted); }
.grupo-pager .btn[disabled] { opacity: 0.45; pointer-events: none; }

/* Modal de grupos: alterna entre a lista e o formulário (sem amontoar tudo). */
.grupo-modal__body .grupo-view[hidden] { display: none; }
.grupo-view__head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.grupo-view__head h4 { margin: 0; }
.grupo-view__head .btn { margin-left: auto; }
#grupoViewForm .grupo-view__head .btn { margin-left: 0; }
#grupoViewForm .grupo-view__head h4 { margin-left: 4px; }
.grupo-tabela th, .grupo-tabela td { vertical-align: middle; }
.grupo-form__linha { margin-bottom: 16px; }
.grupo-form__linha input[type="text"] { width: 100%; max-width: 100%; padding: 10px 12px; border: 1px solid var(--border); border-radius: 9px; font-size: 14px; }
.grupo-form__count { font-weight: 600; color: var(--brand); font-size: 12px; }
.grupo-form__botoes { margin-top: 6px; }

/* Seletor de pessoas moderno (busca + lista de checkboxes) */
.people-picker { border: 1px solid var(--border); border-radius: 12px; overflow: hidden; background: #fff; }
.people-picker__bar { display: flex; align-items: center; gap: 10px; padding: 10px; border-bottom: 1px solid var(--border); background: var(--surface-2, #f7f8fa); flex-wrap: wrap; }
.people-picker__search { flex: 1 1 200px; display: flex; align-items: center; gap: 8px; padding: 0 12px; border: 1px solid var(--border); border-radius: 9px; background: #fff; }
.people-picker__search i { color: var(--text-muted); font-size: 13px; flex-shrink: 0; }
.people-picker__search input { flex: 1; min-width: 0; padding: 9px 0; border: 0; background: transparent; font-size: 14px; }
.people-picker__search input:focus { outline: none; }
.people-picker__search:focus-within { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(41,61,101,0.12); }
.people-picker__acoes { display: flex; gap: 6px; }
.people-picker__btn { border: 1px solid var(--border); background: #fff; color: var(--brand); font-weight: 600; font-size: 12px; padding: 7px 12px; border-radius: 8px; cursor: pointer; transition: background .15s, border-color .15s; }
.people-picker__btn:hover { background: var(--brand); color: #fff; border-color: var(--brand); }
.people-picker__list { max-height: 280px; overflow-y: auto; padding: 6px; display: flex; flex-direction: column; gap: 2px; }
.people-item { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 8px; cursor: pointer; font-size: 14px; transition: background .12s; }
.people-item:hover { background: rgba(41,61,101,0.06); }
.people-item input { position: absolute; opacity: 0; width: 0; height: 0; }
.people-item__check { display: inline-flex; align-items: center; justify-content: center; width: 20px; height: 20px; border: 2px solid var(--border); border-radius: 6px; color: #fff; font-size: 11px; flex-shrink: 0; transition: background .12s, border-color .12s; }
.people-item__check i { opacity: 0; transform: scale(.5); transition: opacity .12s, transform .12s; }
.people-item.is-sel { background: rgba(41,61,101,0.10); }
.people-item.is-sel .people-item__check { background: var(--brand); border-color: var(--brand); }
.people-item.is-sel .people-item__check i { opacity: 1; transform: scale(1); }
.people-item__nome { line-height: 1.2; }
.people-picker__vazio { padding: 18px; text-align: center; color: var(--text-muted); font-size: 13px; }
.cargo-form__check { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; margin: 14px 0; }
.cargo-form__check input { width: 16px; height: 16px; }
.cargo-form .select2-container { margin-bottom: 4px; }
.cargo-acoes-col { text-align: right; }
.cargo-acoes { text-align: right; white-space: nowrap; }
.cargo-acoes .btn { margin-left: 4px; }
.cargo-form__botoes { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.cargo-form__botoes .btn[hidden] { display: none; }
.cargo-sim { display: grid; grid-template-columns: 1fr 240px; gap: 18px; align-items: start; margin: 10px 0 16px; }
.cargo-disc { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.cargo-disc__col { border: 1px solid var(--border); border-radius: 10px; padding: 10px; background: var(--surface-2); }
.cargo-disc__letra { display: block; text-align: center; font-weight: 800; font-size: 17px; color: var(--brand); margin-bottom: 8px; }
.cargo-disc__opt { display: flex; align-items: center; gap: 6px; font-size: 12.5px; padding: 3px 0; cursor: pointer; }
.cargo-disc__opt.is-disabled { opacity: .4; cursor: not-allowed; }

/* Simulador DISC (gráfico ao vivo) */
.cargo-grafico { border: 1px solid var(--border); border-radius: 12px; padding: 12px; background: var(--surface-2); position: sticky; top: 0; }
.cargo-grafico__titulo { text-align: center; font-weight: 700; font-size: 13px; color: var(--brand); margin-bottom: 8px; }
.cargo-grafico__cols { display: flex; justify-content: space-around; font-weight: 800; color: #2F328F; font-size: 13px; margin-bottom: 4px; }
.cargo-grafico__img { min-height: 230px; display: flex; align-items: center; justify-content: center; transition: opacity .15s; }
.cargo-grafico__img.is-loading { opacity: .4; }
.cargo-grafico__img img { max-width: 100%; height: auto; }
@media (max-width: 720px) { .cargo-sim { grid-template-columns: 1fr; } }
@media (max-width: 640px) { .cargo-disc { grid-template-columns: repeat(2, 1fr); } }

.disc-paginfo { text-align: center; color: var(--text-muted); font-size: 13px; margin-bottom: 10px; }

.disc-grid th.sortable a { color: inherit; text-decoration: none; display: inline-flex; gap: 5px; align-items: center; }
.disc-grid th.sortable a:hover { text-decoration: underline; }
.disc-grid th.sortable .seta { font-size: 10px; opacity: .8; }
.disc-comp-col { text-align: center; padding: 4px !important; }
.disc-comp-col img { width: 26px; height: 26px; vertical-align: middle; }
.disc-comp-col span { font-size: 9px; }
.disc-comp-cell { text-align: center; font-weight: 700; font-size: 12px; }

/* Cabeçalho das competências: ícone relevante, colorido pelo fator DISC (igual ao VIP). */
.disc-comp-col { white-space: nowrap; }
.comp-chip {
    display: inline-flex; align-items: center; justify-content: center;
    width: 46px; height: 46px; border-radius: 12px;
    background: rgba(255,255,255,.96);
    box-shadow: 0 2px 6px rgba(15,20,40,.18);
}
.comp-chip i { font-size: 26px; line-height: 1; }

.comp-legenda, .insig-legenda {
    background: #f6f8fc; border: 1px solid #e4e9f2; border-radius: 12px;
    padding: 12px 16px; margin-bottom: 14px;
}
.comp-legenda__titulo { display: block; font-size: 12px; font-weight: 700; color: #44506b; text-transform: uppercase; letter-spacing: .04em; margin-bottom: 8px; }
.comp-legenda__lista { display: flex; flex-wrap: wrap; gap: 10px 18px; }
.comp-legenda__item { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: #2b3550; }
.comp-legenda__chip {
    display: inline-flex; align-items: center; justify-content: center;
    width: 26px; height: 26px; border-radius: 8px; color: #fff; font-size: 13px;
}
/* Ícone da competência nos cards do relatório VIP (substitui a letra DISC). */
.comp-ico-badge {
    display: inline-flex; align-items: center; justify-content: center;
    width: 30px; height: 30px; border-radius: 9px; color: #fff; font-size: 15px;
    margin-right: 8px; flex-shrink: 0;
    box-shadow: 0 2px 5px rgba(15,20,40,.18);
}

/* Insígnias de correlação (substituem a nota %) — clicáveis. */
.insig-badge {
    display: inline-flex; align-items: center; justify-content: center;
    width: 30px; height: 30px; border-radius: 50%; color: #fff; font-size: 14px;
    box-shadow: 0 2px 5px rgba(15,20,40,.18);
}
.insig-badge--lg { width: 54px; height: 54px; font-size: 26px; }
.insig-btn {
    border: 0; background: transparent; padding: 0; cursor: pointer; line-height: 0;
    transition: transform .12s ease;
}
.insig-btn:hover { transform: scale(1.18); }
.insig-legenda__lista { display: flex; flex-wrap: wrap; gap: 10px 20px; }
.insig-legenda__item { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: #2b3550; }
.insig-legenda__item .insig-badge { width: 26px; height: 26px; font-size: 12px; }

/* Legenda das insígnias compacta: tudo em uma linha. */
.insig-legenda--compacta .insig-legenda__lista { flex-wrap: nowrap; gap: 4px 10px; overflow-x: auto; }
.insig-legenda--compacta .insig-legenda__item { font-size: 10.5px; gap: 5px; white-space: nowrap; }
.insig-legenda--compacta .insig-legenda__item .insig-badge { width: 18px; height: 18px; font-size: 9px; flex: none; }
.disc-comp-cell { text-align: center; }
.disc-comp-cell .insig-badge { vertical-align: middle; }

/* Destaque da melhor competência da linha (ao ordenar por melhor competência). */
.disc-comp-best { background: rgba(245,158,11,.14); border-radius: 10px; }
.disc-comp-best .insig-btn { position: relative; }
.disc-comp-best .insig-badge { box-shadow: 0 0 0 3px rgba(245,158,11,.85); transform: scale(1.1); }
.disc-comp-best__star { position: absolute; top: -6px; right: -6px; font-size: 11px; color: #f59e0b; background: #fff; border-radius: 50%; padding: 2px; box-shadow: 0 1px 3px rgba(0,0,0,.25); }

/* Tela de correlação por competência (modal). */
.comp-corr { max-width: 720px; margin: 0 auto; }
.comp-corr__head { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.comp-corr__ico {
    display: inline-flex; align-items: center; justify-content: center;
    width: 56px; height: 56px; border-radius: 14px; color: #fff; font-size: 26px;
    box-shadow: 0 8px 18px rgba(15,20,40,.22);
}
.comp-corr__kicker { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--text-muted, #7a849c); }
.comp-corr__head h2 { font-size: 22px; color: var(--c, #293d65); margin: 2px 0 0; }
.comp-corr__score {
    display: flex; align-items: center; gap: 14px;
    background: #f6f8fc; border: 1px solid #e4e9f2; border-radius: 14px;
    padding: 14px 18px; margin-bottom: 16px;
}
.comp-corr__pct { font-size: 30px; font-weight: 800; color: #1f2a44; line-height: 1; }
.comp-corr__rot { font-size: 14px; color: #44506b; margin-top: 4px; }
.comp-corr__txt { font-size: 15px; line-height: 1.7; color: #2b3550; }
.comp-corr__nome { color: #d63b4b; }
.comp-corr__def { font-size: 14px; line-height: 1.7; color: #2b3550; }

/* Grid DISC sem scroll horizontal: o conteúdo quebra de linha em vez de gerar rolagem. */
.disc-table-wrap { overflow-x: hidden; }
.disc-table-wrap .disc-grid { width: 100%; }
.disc-table-wrap .disc-grid th,
.disc-table-wrap .disc-grid td { white-space: normal; overflow-wrap: anywhere; word-break: break-word; }
/* Colunas que não devem quebrar (ID, Data, Status, Ações) */
.disc-table-wrap .disc-grid th.col-nowrap,
.disc-table-wrap .disc-grid td.col-nowrap { white-space: nowrap; overflow-wrap: normal; word-break: normal; }

/* Modal de relatório (iframe LIGHT/PRO/VIP a partir do /disc) */
.rel-modal { position: fixed; inset: 0; z-index: 1200; display: none; }
.rel-modal.is-open { display: block; }
.rel-modal__backdrop { position: absolute; inset: 0; background: rgba(15, 23, 42, .55); backdrop-filter: blur(2px); }
.rel-modal__box {
    position: absolute; top: 2.5vh; left: 50%; transform: translateX(-50%);
    width: min(1180px, 97vw); height: 95vh; background: var(--surface);
    border-radius: 14px; box-shadow: 0 24px 70px rgba(0,0,0,.35);
    display: flex; flex-direction: column; overflow: hidden;
}
.rel-modal__head {
    display: flex; align-items: center; gap: 12px; padding: 12px 16px;
    background: linear-gradient(120deg, var(--header-bg, var(--brand)), var(--brand-dark)); color: #fff;
}
.rel-modal__head h3 { font-size: 15px; font-weight: 700; margin: 0; flex: 1; }
.rel-modal__pdf {
    display: inline-flex; align-items: center; gap: 8px; text-decoration: none;
    background: #16a34a; color: #fff; font-weight: 800; font-size: 13.5px;
    padding: 9px 18px; border-radius: 10px; box-shadow: 0 6px 18px rgba(22,163,74,.45);
    transition: transform .15s, box-shadow .15s, background .15s;
}
.rel-modal__pdf:hover { background: #15893f; transform: translateY(-1px); box-shadow: 0 9px 24px rgba(22,163,74,.55); color: #fff; }
.rel-modal__close { background: rgba(255,255,255,.16); border: 0; color: #fff; width: 30px; height: 30px; border-radius: 8px; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.rel-modal__close:hover { background: rgba(255,255,255,.3); }
.rel-modal__close svg { width: 16px; height: 16px; }
.rel-modal__frame { flex: 1; border: 0; width: 100%; background: var(--bg, #f4f6fb); }
.rel-modal__loading { position: absolute; inset: 52px 0 0 0; display: flex; align-items: center; justify-content: center; gap: 10px; color: var(--text-muted); font-size: 13px; pointer-events: none; }
.rel-modal__spin { width: 22px; height: 22px; border: 3px solid var(--border); border-top-color: var(--brand); border-radius: 50%; animation: relspin .8s linear infinite; }
@keyframes relspin { to { transform: rotate(360deg); } }

.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 24px; flex-wrap: wrap; }
.page-head h1 { font-size: 25px; color: var(--text); }
.page-head .accent { width: 50px; height: 4px; border-radius: 4px; background: linear-gradient(90deg, var(--brand), var(--brand-dark)); margin-top: 9px; }
.page-head p { color: var(--text-muted); margin: 5px 0 0; }

/* ---------------------------------------------------------------- Cards */
.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    transition: box-shadow 0.2s, transform 0.2s;
}
.card__body { padding: 22px; }
.card__head { padding: 18px 22px; border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.card__head h2 { font-size: 16px; }

/* Card recolhível (details/summary) */
.card--collapse > summary { list-style: none; cursor: pointer; user-select: none; justify-content: flex-start; }
.card--collapse > summary::-webkit-details-marker { display: none; }
.card--collapse > summary:hover { background: var(--brand-soft); }
.card--collapse:not([open]) > summary { border-bottom: none; }
.card--collapse .card__chevron { color: var(--text-muted); transition: transform 0.2s ease; margin-left: auto; }
.card--collapse[open] .card__chevron { transform: rotate(180deg); }
.card__plus {
    flex: none; width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center;
    background: linear-gradient(135deg, var(--brand), var(--brand-dark)); color: #fff; font-size: 15px;
    box-shadow: 0 4px 12px rgba(41, 61, 101, 0.3);
}
.card--collapse:not([open]) .card__plus { animation: plusPulse 1.8s ease-in-out infinite; }
.card--collapse[open] .card__plus { transform: rotate(45deg); transition: transform 0.2s ease; }
@keyframes plusPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(41, 61, 101, 0.40); }
    50% { box-shadow: 0 0 0 7px rgba(41, 61, 101, 0); }
}

.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-bottom: 26px; }
.stat {
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
    padding: 22px; box-shadow: var(--shadow-sm); position: relative; overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
}
.stat::before {
    content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px;
    background: linear-gradient(90deg, var(--brand), var(--brand-dark));
    opacity: 0.9;
}
.stat:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.stat__icon { width: 46px; height: 46px; border-radius: 13px; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; margin-bottom: 15px; }
.stat__icon svg { width: 23px; height: 23px; }
.stat__value { font-size: 32px; font-weight: 800; color: var(--text); line-height: 1; letter-spacing: -0.03em; }
.stat__label { color: var(--text-muted); font-size: 13px; margin-top: 7px; font-weight: 600; }

/* progress */
.progress { height: 10px; border-radius: 8px; background: var(--brand-soft); overflow: hidden; }
.progress__bar { height: 100%; border-radius: 8px; background: linear-gradient(90deg, var(--brand), var(--brand-dark)); transition: width 0.5s ease; }

/* ---------------------------------------------------------------- Buttons */
.btn {
    display: inline-flex; align-items: center; gap: 8px; justify-content: center;
    padding: 10px 18px; border-radius: var(--radius-sm);
    font-weight: 700; font-size: 13.5px; cursor: pointer;
    border: 1px solid transparent; transition: all 0.18s ease; line-height: 1;
}
.btn svg { width: 16px; height: 16px; }
.btn--primary { background: linear-gradient(135deg, var(--brand), var(--brand-dark)); color: #fff; box-shadow: 0 6px 16px rgba(41,61,101,0.32); }
.btn--primary:hover { transform: translateY(-1px); box-shadow: 0 9px 22px rgba(41,61,101,0.42); }
.btn--ghost { background: var(--surface); color: var(--brand); border-color: var(--border); }
.btn--ghost:hover { background: var(--surface-2); border-color: var(--brand-soft-2); }
.btn--danger { background: #fff; color: var(--danger); border-color: rgba(229,72,77,0.3); }
.btn--danger:hover { background: var(--danger); color: #fff; border-color: var(--danger); }
.btn--sm { padding: 7px 13px; font-size: 12.5px; }

/* ---------------------------------------------------------------- Tables */
.table-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--border); background: var(--surface); box-shadow: var(--shadow-sm); }
table.data { width: 100%; border-collapse: collapse; }
table.data thead th {
    background: linear-gradient(135deg, var(--brand), var(--brand-dark));
    color: #fff; text-align: left; font-size: 10px; text-transform: uppercase; letter-spacing: 0.04em;
    padding: 10px 14px; font-weight: 700; white-space: nowrap;
}
table.data tbody td { padding: 9px 14px; border-bottom: 1px solid var(--border); vertical-align: middle; font-size: 12.5px; }
table.data tbody tr:last-child td { border-bottom: none; }
table.data tbody tr { transition: background 0.15s; }
table.data tbody tr:hover td { background: var(--brand-soft); }
.cell-strong { font-weight: 700; color: var(--text); }
.col-center { text-align: center !important; }
.col-center .btn { float: none; }

/* Botão de ação sob um campo (ex.: cadastrar novo participante) */
.btn--xs { padding: 5px 10px; font-size: 11.5px; border-radius: 8px; }
.field-add-btn { margin-top: 8px; align-self: flex-start; }

/* Barra de envio de lembretes em fila */
.lembrete-bar { display: flex; align-items: flex-end; gap: 14px; margin-bottom: 16px; flex-wrap: wrap; }
.lembrete-bar__field { margin: 0; min-width: 260px; flex: 1 1 260px; max-width: 360px; }
.lembrete-bar .btn { white-space: nowrap; }
.lembrete-bar__check { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 600; color: var(--text); white-space: nowrap; padding-bottom: 8px; }
.lembrete-bar__check input { width: 16px; height: 16px; }

/* Barra de progresso da importação */
.import-progress { margin-top: 14px; }
.import-progress__bar { height: 10px; border-radius: 999px; background: var(--brand-soft); overflow: hidden; }
.import-progress__bar span { display: block; height: 100%; width: 0; background: var(--brand); transition: width .3s ease; }
.import-progress p { margin: 8px 0 0; font-size: 13px; }

/* Resultado / logs da importação */
.import-resumo { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 14px 0 8px; }
.import-logs { list-style: none; margin: 0; padding: 0; max-height: 200px; overflow-y: auto; border: 1px solid var(--border); border-radius: 10px; }
.import-logs .import-log { padding: 8px 12px; font-size: 13px; border-bottom: 1px solid var(--border); }
.import-logs .import-log:last-child { border-bottom: 0; }
.import-log--ok { color: var(--text); }
.import-log--ok i { color: #16a34a; margin-right: 6px; }
.import-log--erro { color: #b91c1c; background: rgba(239,68,68,0.06); }
.import-log--erro i { color: #dc2626; margin-right: 6px; }

/* Modal de formulário (cadastro rápido) */
.modal__box--form { width: min(460px, 94vw); }
.modal__form { padding: 22px; }
.modal__form .field { margin-bottom: 14px; }
.modal__form-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 18px; }
.np-erro { color: var(--danger, #dc2626); font-size: 13px; font-weight: 600; margin: 0 0 8px; }
.cell-muted { color: var(--text-muted); font-size: 12.5px; }

/* ---------------------------------------------------------------- Badges */
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 4px 11px; border-radius: 999px; font-size: 11.5px; font-weight: 700; }
.badge--success { background: rgba(18,160,107,0.12); color: var(--success); }
.badge--warning { background: rgba(224,138,30,0.14); color: var(--warning); }
.badge--muted { background: var(--brand-soft); color: var(--text-muted); }
.badge--brand { background: var(--brand-soft); color: var(--brand); }
.badge--danger { background: rgba(229,72,77,0.13); color: #d93640; }
.badge--info { background: rgba(59,130,246,0.13); color: #2563eb; }
.data-dentro { color: var(--success); font-weight: 700; }
.data-fora { color: #d93640; font-weight: 700; }

/* ---------------------------------------------------------------- Forms */
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: 12.5px; font-weight: 700; color: var(--text); }
.field > input[type=text], .field > input[type=email], .field > input[type=password],
.field > input[type=number], .field > input[type=date], .field > select, .field > textarea {
    width: 100%; padding: 11px 14px; border: 1px solid var(--border); border-radius: var(--radius-sm);
    font: inherit; color: var(--text); background: var(--surface-2); transition: border-color 0.18s, box-shadow 0.18s, background 0.18s;
}
.field > input:focus, .field > select:focus, .field > textarea:focus {
    outline: none; border-color: var(--brand); background: #fff; box-shadow: 0 0 0 4px var(--brand-soft);
}
.field .hint { font-size: 11.5px; color: var(--text-muted); }
.field .error { font-size: 12px; color: var(--danger); font-weight: 600; }

.switch { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; user-select: none; }
.switch input { display: none; }
.switch__track { width: 44px; height: 24px; border-radius: 999px; background: var(--border); position: relative; transition: background 0.18s; flex-shrink: 0; }
.switch__track::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: var(--shadow-sm); transition: transform 0.18s; }
.switch input:checked + .switch__track { background: var(--brand); }
.switch input:checked + .switch__track::after { transform: translateX(20px); }

.form-actions { display: flex; gap: 12px; justify-content: flex-end; margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--border); }

/* color swatch input */
.color-input { display: flex; align-items: center; gap: 12px; }
.color-input input[type=color] { width: 46px; height: 42px; padding: 2px; border: 1px solid var(--border); border-radius: 10px; background: #fff; cursor: pointer; }
.logo-preview { display: flex; align-items: center; justify-content: center; width: 100%; min-height: 88px; padding: 14px; border: 1px solid var(--border); border-radius: 12px; background: #293D65; transition: background 0.18s; }
.logo-preview img { max-height: 60px; max-width: 100%; object-fit: contain; border-radius: 8px; }
.file-input { margin-top: 10px; width: 100%; font: inherit; color: var(--text-muted); }
.file-input::file-selector-button { font: inherit; padding: 8px 14px; margin-right: 12px; border: 1px solid var(--border); border-radius: 999px; background: var(--surface); color: var(--text); cursor: pointer; transition: background 0.18s, border-color 0.18s; }
.file-input::file-selector-button:hover { border-color: var(--brand); background: var(--brand-soft); }
.prefix-input { display: flex; align-items: stretch; border: 1px solid var(--border); border-radius: 10px; overflow: hidden; background: var(--surface); }
.prefix-input:focus-within { border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-soft); }
.prefix-input__tag { display: flex; align-items: center; padding: 0 12px; background: var(--brand-soft); color: var(--text); font-weight: 600; border-right: 1px solid var(--border); }
.prefix-input input { flex: 1; border: 0; outline: none; padding: 11px 14px; font: inherit; background: transparent; }

/* Foto do usuário (upload + preview) */
.usuario-foto { display: flex; align-items: center; gap: 18px; margin-bottom: 18px; }
.usuario-foto__thumb { width: 84px; height: 84px; flex: 0 0 84px; border-radius: 50%; border: 1px solid var(--border); background: var(--brand-soft); display: flex; align-items: center; justify-content: center; overflow: hidden; color: var(--brand); font-size: 30px; }
.usuario-foto__thumb img { width: 100%; height: 100%; object-fit: cover; }
.usuario-foto__acao { flex: 1; min-width: 0; }
.usuario-foto__label { display: block; font-weight: 600; margin-bottom: 6px; }

/* Select2 alinhado ao visual dos inputs do formulário */
.field .select2-container { width: 100% !important; }
.select2-container--default .select2-selection--single { height: 44px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); display: flex; align-items: center; }
.select2-container--default .select2-selection--single .select2-selection__rendered { line-height: 42px; padding-left: 14px; color: var(--text); }
.select2-container--default .select2-selection--single .select2-selection__arrow { height: 42px; right: 8px; }
.select2-container--default.select2-container--focus .select2-selection--single,
.select2-container--default.select2-container--open .select2-selection--single { border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-soft); }
.select2-dropdown { border-color: var(--border); border-radius: 10px; overflow: hidden; }
.select2-container--default .select2-results__option--highlighted[aria-selected] { background: var(--brand); }
.select2-search--dropdown .select2-search__field { border: 1px solid var(--border); border-radius: 8px; padding: 8px; }

/* ---------------------------------------------------------------- Toolbar */
.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 18px; flex-wrap: wrap; }
.search { position: relative; flex: 1; max-width: 380px; }
.search input { width: 100%; padding: 11px 14px 11px 42px; border: 1px solid var(--border); border-radius: 999px; font: inherit; background: var(--surface); transition: box-shadow 0.18s, border-color 0.18s; }
.search input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-soft); }
.search svg { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); width: 17px; height: 17px; color: var(--text-muted); }

/* ---------------------------------------------------------------- Flash / alerts */
.alert { padding: 14px 18px; border-radius: var(--radius-sm); margin-bottom: 18px; font-weight: 600; display: flex; align-items: center; gap: 10px; }
.alert--success { background: rgba(18,160,107,0.12); color: var(--success); }
.alert--error { background: rgba(229,72,77,0.1); color: var(--danger); }
.alert--warning { background: rgba(220,150,20,0.12); color: #9a6a00; }

/* empty state */
.empty { text-align: center; padding: 54px 20px; color: var(--text-muted); }
.empty svg { width: 48px; height: 48px; opacity: 0.4; margin-bottom: 12px; }

/* tabs (tipos de processo) */
.tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; }
.tab { padding: 9px 16px; border-radius: 999px; background: var(--surface); border: 1px solid var(--border); font-weight: 700; font-size: 13px; color: var(--text-muted); transition: all 0.16s; }
.tab:hover { border-color: var(--brand-soft-2); color: var(--brand); }
.tab.is-active { background: linear-gradient(135deg, var(--brand), var(--brand-dark)); color: #fff; border-color: transparent; box-shadow: 0 6px 16px rgba(41,61,101,0.28); }

/* pagination */
.pagination { display: flex; gap: 6px; list-style: none; padding: 0; margin: 22px 0 0; flex-wrap: wrap; }
.pagination a, .pagination span { display: inline-flex; min-width: 38px; height: 38px; align-items: center; justify-content: center; padding: 0 10px; border-radius: 10px; border: 1px solid var(--border); background: var(--surface); color: var(--text); font-weight: 700; font-size: 13px; transition: all 0.15s; }
.pagination a:hover { border-color: var(--brand); color: var(--brand); }
.pagination .active span { background: var(--brand); color: #fff; border-color: var(--brand); }
.pagination [aria-disabled=true] span { opacity: 0.4; }

.overlay { display: none; position: fixed; inset: 0; background: rgba(20,30,55,0.5); z-index: 55; backdrop-filter: blur(2px); }

/* avaliacao 360 — cards (desktop usa tabela, mobile vira cards) */
.aval-cards { display: none; }
.aval-table__acoes { vertical-align: middle; }
.aval-table .aval-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 152px;
    max-width: 168px;
    min-height: 36px;
    padding: 8px 12px;
    font-size: 12px;
    line-height: 1.25;
    text-align: center;
    white-space: normal;
    box-shadow: none;
    transform: none;
}
.aval-table .aval-btn:hover { transform: none; box-shadow: none; filter: brightness(1.05); }
.aval-table .btn--primary.aval-btn { box-shadow: none; }
.aval-table .btn--primary.aval-btn:hover { box-shadow: none; }
.aval-table .btn--sky.aval-btn { box-shadow: none; }
.aval-table .btn--sky.aval-btn:hover { box-shadow: none; filter: brightness(1.05); }
.aval-card .aval-btn {
    min-width: 200px;
    min-height: 36px;
    white-space: normal;
    text-align: center;
    box-shadow: none;
}
.aval-card .aval-btn:hover { transform: none; box-shadow: none; }
.aval-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-sm); padding: 16px; margin-bottom: 14px; }
.aval-card__row { display: flex; justify-content: space-between; gap: 12px; padding: 5px 0; }
.aval-card__k { font-size: 10px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-muted); font-weight: 700; }
.aval-card__v { font-weight: 600; text-align: right; }
.aval-card .btn { width: 100%; margin-top: 12px; }
.aval-card__actions { text-align: center; margin-top: 12px; }
.aval-card__actions .btn { width: auto; margin-top: 0; }

/* questionario */
.q-item { padding: 18px 0; border-bottom: 1px solid var(--border); }
.q-item:last-child { border-bottom: none; }
.q-item h3 { font-size: 15px; }
.q-item p { color: var(--text-muted); margin: 4px 0 14px; }
.scale { display: flex; gap: 8px; flex-wrap: wrap; }
.scale label { cursor: pointer; }
.scale input { display: none; }
.scale span { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 13px; border: 1px solid var(--border); font-weight: 700; background: var(--surface); transition: all 0.15s; }
.scale label:hover span { border-color: var(--brand); }
.scale input:checked + span { background: linear-gradient(135deg, var(--brand), var(--brand-dark)); color: #fff; border-color: transparent; transform: scale(1.06); }

.q-opts { display: flex; flex-direction: column; gap: 8px; }
.q-opt { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); cursor: pointer; transition: border-color .15s, background .15s; }
.q-opt:hover { border-color: var(--brand); }
.q-opt input { accent-color: var(--brand); }
.q-opt:has(input:checked) { border-color: var(--brand); background: rgba(40,80,200,.06); }

/* ---------------------------------------------------------------- Login */
.login-page { min-height: 100vh; }

.login-bg {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    overflow: hidden;
    background:
        radial-gradient(900px 420px at 85% -5%, rgba(255,255,255,.12), transparent 55%),
        radial-gradient(700px 360px at 0% 100%, rgba(255,255,255,.08), transparent 50%),
        linear-gradient(145deg, var(--brand-dark) 0%, var(--brand) 48%, color-mix(in srgb, var(--brand) 70%, #1a2744) 100%);
}

.login-bg__orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    pointer-events: none;
    opacity: .45;
}
.login-bg__orb--1 {
    width: 320px;
    height: 320px;
    top: 8%;
    left: -80px;
    background: rgba(255,255,255,.18);
}
.login-bg__orb--2 {
    width: 280px;
    height: 280px;
    right: -60px;
    bottom: 10%;
    background: color-mix(in srgb, var(--brand) 40%, #5b8cff);
}

.login-lang {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 2;
    backdrop-filter: blur(8px);
    background: rgba(255,255,255,.12);
    border-color: rgba(255,255,255,.22);
}
.login-lang a { color: rgba(255,255,255,.85); }
.login-lang a:hover { background: rgba(255,255,255,.14); color: #fff; }
.login-lang a.is-active { background: #fff; color: var(--brand); }

.login-shell {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 480px;
}

.login-card {
    position: relative;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 24px;
    box-shadow: 0 24px 60px rgba(8, 14, 35, .22);
    padding: 20px 32px 28px;
}

.login-card__header {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 8px;
}

.login-lang-picker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 5px 6px 5px 10px;
    border-radius: 999px;
    background: var(--surface-2);
    border: 1px solid var(--border);
}
.login-lang-picker__icon {
    display: flex;
    color: var(--text-muted);
    line-height: 0;
}
.login-lang-picker__track {
    display: inline-flex;
    padding: 3px;
    border-radius: 999px;
    background: #e8ebf2;
    gap: 2px;
}
.login-lang-picker__btn {
    min-width: auto;
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0;
    color: var(--text-muted);
    text-decoration: none;
    text-align: center;
    white-space: nowrap;
    transition: color .15s, background .15s, box-shadow .15s;
}
.login-lang-picker__btn:hover {
    color: var(--brand);
}
.login-lang-picker__btn.is-active {
    background: #fff;
    color: var(--brand);
    box-shadow: 0 2px 8px rgba(20, 30, 55, .12);
}

.login-brand { text-align: center; margin-bottom: 28px; padding-top: 4px; }
.login-brand__logo { display: flex; justify-content: center; }
.login-brand__logo img {
    width: auto;
    max-width: min(100%, 320px);
    max-height: 120px;
    height: auto;
    object-fit: contain;
}
.login-brand__fallback {
    width: 72px;
    height: 72px;
    border-radius: 18px;
    background: linear-gradient(135deg, var(--brand), var(--brand-dark));
    color: #fff;
    display: grid;
    place-items: center;
    font-weight: 800;
    font-size: 34px;
    box-shadow: 0 10px 24px rgba(41,61,101,.28);
}

.login-form { display: flex; flex-direction: column; gap: 2px; }
.login-form .field { margin-bottom: 14px; }

.login-input {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 14px;
    border: 1.5px solid var(--border);
    border-radius: 14px;
    background: var(--surface-2);
    transition: border-color .15s, box-shadow .15s, background .15s;
}
.login-input svg {
    flex: 0 0 auto;
    width: 18px;
    height: 18px;
    color: var(--text-muted);
}
.login-input input {
    flex: 1;
    min-width: 0;
    border: none;
    background: transparent;
    padding: 13px 0;
    font: inherit;
    font-size: 14px;
    color: var(--text);
}
.login-input input:focus { outline: none; }
.login-input:focus-within {
    border-color: var(--brand);
    background: #fff;
    box-shadow: 0 0 0 4px var(--brand-soft);
}
.login-input:focus-within svg { color: var(--brand); }

.login-form__row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    margin: 4px 0 18px;
}
.login-remember span:last-child {
    font-size: 12.5px;
    color: var(--text-muted);
    font-weight: 600;
}
.login-forgot {
    font-size: 12.5px;
    font-weight: 700;
    color: var(--brand);
    text-decoration: none;
}
.login-forgot:hover { text-decoration: underline; }

.login-submit {
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 18px;
    border-radius: 14px;
    font-size: 15px;
    font-weight: 700;
    box-shadow: 0 10px 24px color-mix(in srgb, var(--brand) 35%, transparent);
    transition: transform .12s, box-shadow .15s;
}
.login-submit:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 28px color-mix(in srgb, var(--brand) 40%, transparent);
}

.login-copy {
    margin: 22px 0 0;
    text-align: center;
    font-size: 11.5px;
    color: var(--text-muted);
}

@media (max-width: 520px) {
    .login-card { padding: 16px 20px 22px; border-radius: 20px; }
    .login-brand__logo img { max-height: 96px; }
    .login-lang-picker__btn { padding: 6px 10px; font-size: 11px; }
    .login-form__row { flex-direction: column; align-items: flex-start; }
}

/* legado: lang-switch dentro do card */
.lang-switch--login { justify-content: center; width: max-content; margin: 0 auto 18px; }

/* ---------------------------------------------------------------- Error pages */
.error-shell { max-width: 520px; }

.error-card {
    text-align: center;
    padding: 28px 32px 32px;
}

.error-card__logo {
    margin-bottom: 24px;
}
.error-card__logo img {
    max-height: 72px;
    width: auto;
    object-fit: contain;
}
.error-card__logo-fallback {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--brand), var(--brand-dark));
    color: #fff;
    font-weight: 800;
    font-size: 24px;
}

.error-card__oops {
    margin: 0 0 8px;
    font-size: clamp(2.75rem, 10vw, 3rem);
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.03em;
    background: linear-gradient(135deg, var(--brand-dark), var(--brand));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.error-card__title {
    margin: 0 0 16px;
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--text);
    letter-spacing: -0.02em;
}

.error-card__messages {
    margin: 0 auto 26px;
    max-width: 42ch;
}
.error-card__messages p {
    margin: 0 0 12px;
    font-size: 14.5px;
    line-height: 1.6;
    color: var(--text-muted);
}
.error-card__messages p:last-child {
    margin-bottom: 0;
}

.error-card__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}
.error-card__actions .btn {
    min-width: 140px;
    padding: 12px 22px;
    border-radius: 999px;
}

@media (max-width: 520px) {
    .error-card { padding: 22px 20px 26px; }
    .error-card__actions .btn { flex: 1 1 100%; min-width: 0; }
}

/* ---------------------------------------------------------------- Responsivo */
@media (max-width: 1024px) {
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 820px) {
    .sidebar { transform: translateX(-100%); box-shadow: var(--shadow-lg); }
    .sidebar.is-open { transform: translateX(0); }
    .main { margin-left: 0; }
    .menu-toggle { display: grid; place-items: center; }
    .overlay.is-open { display: block; }
    .form-grid { grid-template-columns: 1fr; }

    .aval-table { display: none; }
    .aval-cards { display: block; }
}

@media (max-width: 520px) {
    .stats-grid { grid-template-columns: 1fr; }
    .content { padding: 18px 14px; }
    .topbar { padding: 0 14px; }
    .topbar__client, .topbar__sep { display: none; }
    .topbar .lang-switch a { padding: 6px 8px; font-size: 11px; }
    .topbar__logo { height: 38px; padding: 4px 9px; }
    .topbar__logo img { max-height: 28px; max-width: 110px; }
}

/* ================================================================ Painel Executivo */
.exec { display: flex; flex-direction: column; gap: 18px; }

.exec-hello { padding: 4px 2px 2px; }
.exec-hello__tag { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 700; color: var(--brand); background: var(--brand-soft); padding: 5px 11px; border-radius: 999px; text-transform: uppercase; letter-spacing: 0.06em; }
.exec-hello__tag svg { width: 13px; height: 13px; }
.exec-hello h1 { font-size: 28px; margin-top: 10px; font-weight: 800; }
.exec-hello h1 span { color: var(--brand); }

/* Empty state do painel */
.exec-empty { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 56px 28px; text-align: center; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; align-items: center; }
.exec-empty__icon { width: 84px; height: 84px; border-radius: 24px; display: grid; place-items: center; background: linear-gradient(140deg, var(--brand-soft), var(--brand-soft-2)); color: var(--brand); margin-bottom: 20px; }
.exec-empty__icon svg { width: 42px; height: 42px; }
.exec-empty h2 { font-size: 20px; font-weight: 800; }
.exec-empty p { color: var(--text-muted); font-size: 14px; max-width: 520px; margin: 10px 0 0; line-height: 1.6; }
.exec-empty__hint { margin-top: 18px; font-size: 12px; font-weight: 600; color: var(--brand); background: var(--brand-soft); padding: 8px 16px; border-radius: 999px; }

/* mensagem "sem dados" por bloco/KPI */
.no-data { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; padding: 22px 10px; color: var(--text-muted); text-align: center; }
.no-data svg { width: 26px; height: 26px; opacity: 0.5; flex-shrink: 0; }
.no-data span { font-size: 12.5px; font-weight: 600; }

.kpi--empty::before { background: var(--border); }
.kpi--empty .kpi__icon { background: var(--surface-2); color: var(--text-muted); }
.kpi--empty .no-data { padding: 8px 0 2px; }

.mini--empty .mini__icon { background: var(--surface-2); color: var(--text-muted); }
.mini .no-data { flex-direction: row; justify-content: flex-start; text-align: left; padding: 8px 0 0; gap: 7px; }

.total--empty .total__icon { background: var(--surface-2); color: var(--text-muted); }

.enps__empty .no-data { color: rgba(255,255,255,0.92); padding: 20px 0; }
.enps__empty .no-data svg { opacity: 0.85; }

.exec-section { font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text); margin-top: 8px; padding-bottom: 4px; border-bottom: 2px solid var(--border); }
.exec-section span { display: inline; text-transform: none; letter-spacing: 0; font-weight: 600; color: var(--text-muted); font-size: 12px; margin-left: 8px; }

.exec-row { display: grid; gap: 18px; }
.exec-row--2 { grid-template-columns: 1fr 1fr; }
.exec-row--3 { grid-template-columns: repeat(3, 1fr); }
.exec-row--hc { grid-template-columns: 1.7fr 1fr; }

/* chip + subtitle no cabecalho dos cards */
.exec .card__head { flex-wrap: wrap; }
.exec .card__head small { flex-basis: 100%; order: 5; color: var(--text-muted); font-size: 12px; font-weight: 600; }
.card__chip { margin-left: auto; background: var(--brand-soft); color: var(--brand); font-weight: 800; font-size: 12px; padding: 4px 10px; border-radius: 999px; white-space: nowrap; }

/* pills de variacao */
.pill { font-size: 11px; font-weight: 800; padding: 3px 8px; border-radius: 999px; white-space: nowrap; }
.pill--up { background: rgba(18, 160, 107, 0.12); color: var(--success); }
.pill--down { background: rgba(224, 72, 72, 0.12); color: #d6453c; }

/* KPIs principais */
.exec-kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.kpi { position: relative; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px 18px 16px; box-shadow: var(--shadow-sm); overflow: hidden; }
.kpi::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: var(--accent); }
.kpi__top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.kpi__icon { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; background: color-mix(in srgb, var(--accent) 14%, transparent); color: var(--accent); }
.kpi__icon svg { width: 19px; height: 19px; }
.kpi__value { font-size: 32px; font-weight: 800; line-height: 1; color: var(--text); }
.kpi__label { font-size: 13.5px; font-weight: 700; margin-top: 7px; }
.kpi__detail { font-size: 11.5px; color: var(--text-muted); margin-top: 2px; }

/* barras horizontais (mapa da empresa) */
.hbar { margin-bottom: 16px; }
.hbar:last-child { margin-bottom: 0; }
.hbar__head { display: flex; justify-content: space-between; font-size: 13px; font-weight: 600; margin-bottom: 6px; }
.hbar__head strong { font-weight: 800; }
.hbar__track { background: var(--surface-2); border: 1px solid var(--border); border-radius: 10px; overflow: hidden; height: 30px; }
.hbar__fill { height: 100%; display: flex; align-items: center; justify-content: flex-end; padding-right: 10px; color: #fff; font-weight: 800; font-size: 12px; border-radius: 10px; min-width: 42px; transition: width 0.6s ease; }

/* sentimentos (feedbacks) */
.sentimentos { display: flex; justify-content: space-around; gap: 12px; margin-bottom: 16px; }
.sentimento { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.sentimento__dot { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-weight: 800; font-size: 18px; box-shadow: var(--shadow-sm); }
.sentimento__label { font-size: 12px; font-weight: 700; color: var(--text-muted); }
.stacked { display: flex; height: 14px; border-radius: 8px; overflow: hidden; gap: 2px; }
.stacked__seg { transition: flex 0.5s ease; }

/* barras verticais (distribuicao desempenho) */
.vbars { display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; height: 200px; padding-top: 10px; }
.vbar { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; flex: 1; height: 100%; gap: 6px; }
.vbar__val { font-size: 12px; font-weight: 800; }
.vbar__col { width: 100%; max-width: 64px; border-radius: 8px 8px 0 0; transition: height 0.6s ease; }
.vbar__lbl { font-size: 11px; color: var(--text-muted); font-weight: 600; text-align: center; }

/* lideres */
.lider { margin-bottom: 18px; }
.lider:last-child { margin-bottom: 0; }
.lider__top { display: flex; align-items: center; gap: 8px; }
.lider__top strong { font-size: 26px; font-weight: 800; color: var(--brand); }
.lider p { font-size: 13px; color: var(--text-muted); margin: 4px 0 8px; }

/* legenda + headcount chart */
.legend { display: flex; gap: 16px; font-size: 12px; font-weight: 600; color: var(--text-muted); margin-bottom: 12px; }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 5px; vertical-align: middle; }
.hc-chart { display: flex; align-items: flex-end; justify-content: space-between; gap: 6px; height: 170px; }
.hc-col { display: flex; flex-direction: column; align-items: center; gap: 6px; flex: 1; height: 100%; }
.hc-bars { display: flex; align-items: flex-end; justify-content: center; gap: 3px; width: 100%; height: 100%; }
.hc-bar { width: 8px; border-radius: 4px 4px 0 0; min-height: 3px; transition: height 0.6s ease; }
.hc-lbl { font-size: 10px; color: var(--text-muted); font-weight: 600; }
.hc-foot { display: flex; gap: 10px; margin-top: 16px; flex-wrap: wrap; }
.hc-pill { flex: 1; min-width: 120px; border-radius: 12px; padding: 10px 14px; display: flex; flex-direction: column; }
.hc-pill span { font-size: 11px; font-weight: 700; opacity: 0.85; }
.hc-pill strong { font-size: 22px; font-weight: 800; }
.hc-pill--green { background: rgba(18, 184, 134, 0.12); color: #0f9d72; }
.hc-pill--red { background: rgba(255, 93, 115, 0.12); color: #e0435a; }
.hc-pill--blue { background: var(--brand-soft); color: var(--brand); }

/* eNPS (card gradiente) */
.enps { background: linear-gradient(150deg, #7c5cff, #b14bff 70%, #d44bd4); color: #fff; border: none; padding: 22px; }
.enps__top { display: flex; align-items: center; justify-content: space-between; }
.enps__heart svg { width: 26px; height: 26px; opacity: 0.95; }
.enps__chip { background: rgba(255,255,255,0.2); padding: 5px 11px; border-radius: 999px; font-size: 11px; font-weight: 700; }
.enps__value { font-size: 46px; font-weight: 800; line-height: 1; margin-top: 14px; }
.enps__sub { font-size: 12px; opacity: 0.9; margin: 4px 0 18px; }
.enps-row { display: grid; grid-template-columns: 80px 1fr 44px; align-items: center; gap: 10px; margin-bottom: 10px; font-size: 12px; font-weight: 600; }
.enps-row strong { text-align: right; font-weight: 800; }
.enps-track { background: rgba(255,255,255,0.22); height: 8px; border-radius: 6px; overflow: hidden; }
.enps-fill { height: 100%; background: #fff; border-radius: 6px; }

/* mini cards (turnover, absenteismo, diversidade) */
.mini { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow-sm); }
.mini__icon { width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; margin-bottom: 12px; background: color-mix(in srgb, var(--c) 14%, transparent); color: var(--c); }
.mini__icon svg { width: 20px; height: 20px; }
.mini__value { font-size: 28px; font-weight: 800; display: flex; align-items: center; gap: 8px; }
.mini__label { font-size: 13.5px; font-weight: 700; margin-top: 4px; }
.mini__detail { font-size: 11.5px; color: var(--text-muted); margin-top: 3px; }
.tag { font-size: 10px; font-weight: 800; padding: 2px 8px; border-radius: 999px; text-transform: uppercase; letter-spacing: 0.04em; }
.tag--warn { background: rgba(224, 138, 30, 0.15); color: var(--warning); }

/* Nine Box */
.ninebox { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.nb { position: relative; border-radius: 16px; padding: 16px; min-height: 92px; color: #fff; background: linear-gradient(140deg, var(--nb), color-mix(in srgb, var(--nb) 70%, #000 12%)); box-shadow: var(--shadow-sm); overflow: hidden; }
.nb__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.nb__title { font-size: 15px; font-weight: 800; }
.nb__qtd { background: rgba(255,255,255,0.25); border-radius: 9px; padding: 2px 10px; font-weight: 800; font-size: 14px; }
.nb__sub { font-size: 11.5px; opacity: 0.9; margin-top: 8px; line-height: 1.35; }

/* Totais */
.exec-totais { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.total { display: flex; align-items: center; gap: 14px; background: var(--surface); border: 1px solid var(--border); border-left: 4px solid var(--accent); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow-sm); }
.total__icon { width: 48px; height: 48px; border-radius: 13px; display: grid; place-items: center; background: color-mix(in srgb, var(--accent) 14%, transparent); color: var(--accent); flex-shrink: 0; }
.total__icon svg { width: 24px; height: 24px; }
.total__value { font-size: 28px; font-weight: 800; line-height: 1; }
.total__label { font-size: 13px; font-weight: 700; margin-top: 3px; }
.total__detail { font-size: 11px; color: var(--text-muted); }

/* Distribuicao DISC */
.disc { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.disc__item { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; }
.disc__circle { width: 50px; height: 50px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-weight: 800; font-size: 20px; box-shadow: var(--shadow-sm); margin-bottom: 4px; }
.disc__qtd { font-size: 26px; font-weight: 800; }
.disc__lbl { font-size: 12px; font-weight: 700; color: var(--text-muted); }
.disc__pct { font-size: 12px; font-weight: 800; color: var(--brand); }

@media (max-width: 1100px) {
    .exec-kpis { grid-template-columns: repeat(2, 1fr); }
    .exec-row--hc { grid-template-columns: 1fr; }
    .exec-totais { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 820px) {
    .exec-row--2, .exec-row--3 { grid-template-columns: 1fr; }
    .ninebox { grid-template-columns: 1fr 1fr; }
    .exec-hello h1 { font-size: 23px; }
}
@media (max-width: 560px) {
    .exec-kpis, .exec-totais, .disc { grid-template-columns: 1fr 1fr; }
    .ninebox { grid-template-columns: 1fr; }
    .vbars { height: 160px; }
}

/* ---------------------------------------------------------------- Botao Exibir (drill-down) */
.btn-exibir {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 5px 11px; border-radius: 999px; cursor: pointer;
    border: 1px solid var(--border); background: var(--surface);
    color: var(--brand); font-weight: 700; font-size: 11.5px; font-family: inherit;
    transition: all 0.16s ease; white-space: nowrap;
}
.btn-exibir svg { width: 13px; height: 13px; }
.btn-exibir:hover { background: var(--brand); color: #fff; border-color: var(--brand); box-shadow: 0 6px 16px rgba(41,61,101,0.22); }
.kpi__top .btn-exibir, .total .btn-exibir { padding: 3px 9px; font-size: 10.5px; }
.card__head .btn-exibir { margin-left: auto; }
.exec-section .btn-exibir { margin-left: auto; }
.exec-section { display: flex; align-items: center; gap: 10px; }

/* ---------------------------------------------------------------- Modal drill-down */
.modal { position: fixed; inset: 0; z-index: 120; display: none; }
.modal.is-open { display: block; }
.modal__backdrop { position: absolute; inset: 0; background: rgba(15, 23, 42, 0.55); backdrop-filter: blur(2px); }
.modal__box {
    position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
    width: min(940px, 94vw); max-height: 86vh; display: flex; flex-direction: column;
    background: var(--surface); border-radius: 18px; overflow: hidden;
    box-shadow: 0 30px 80px rgba(15, 23, 42, 0.45); animation: modalIn 0.18s ease;
}
@keyframes modalIn { from { opacity: 0; transform: translate(-50%, -46%); } to { opacity: 1; transform: translate(-50%, -50%); } }
.modal__head {
    display: flex; align-items: center; gap: 12px; padding: 16px 20px;
    background: linear-gradient(135deg, var(--brand), var(--brand-dark)); color: #fff;
}
.modal__head h3 { font-size: 16px; font-weight: 800; margin: 0; flex: 1; }
.modal__count { font-size: 11.5px; font-weight: 700; background: rgba(255,255,255,0.18); padding: 4px 10px; border-radius: 999px; }
.modal__close {
    width: 32px; height: 32px; border-radius: 9px; border: none; cursor: pointer;
    background: rgba(255,255,255,0.16); color: #fff; display: grid; place-items: center;
    transition: background 0.16s ease;
}
.modal__close:hover { background: rgba(255,255,255,0.3); }
.modal__close svg { width: 16px; height: 16px; }
.modal__body { padding: 0; overflow: auto; }
.modal__loading, .modal__empty { padding: 48px 20px; text-align: center; color: var(--text-muted); font-weight: 600; }
.modal__spin {
    width: 30px; height: 30px; margin: 0 auto 14px; border-radius: 50%;
    border: 3px solid var(--border); border-top-color: var(--brand); animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.dtl-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.dtl-table thead th {
    position: sticky; top: 0; background: var(--surface-2); color: var(--text-muted);
    text-transform: uppercase; font-size: 10.5px; letter-spacing: 0.05em; font-weight: 800;
    text-align: left; padding: 11px 16px; border-bottom: 1px solid var(--border); white-space: nowrap;
}
.dtl-table tbody td { padding: 10px 16px; border-bottom: 1px solid var(--border); color: var(--text); }
.dtl-table tbody tr:hover { background: var(--surface-2); }
.dtl-table tbody tr:last-child td { border-bottom: none; }
.dtl-badge { display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: 11px; font-weight: 800; color: #fff; }

.dtl-pager {
    position: sticky; bottom: 0; display: flex; align-items: center; justify-content: space-between;
    gap: 12px; padding: 12px 16px; background: var(--surface); border-top: 1px solid var(--border);
}
.dtl-pager__info { font-size: 12px; font-weight: 700; color: var(--text-muted); }
.dtl-pager__btns { display: flex; align-items: center; gap: 10px; }
.dtl-pager__pos { font-size: 12px; font-weight: 800; color: var(--brand); min-width: 54px; text-align: center; }
.dtl-pager__btn {
    padding: 7px 14px; border-radius: 9px; border: 1px solid var(--border); background: var(--surface);
    color: var(--brand); font-weight: 700; font-size: 12.5px; font-family: inherit; cursor: pointer;
    transition: all 0.16s ease;
}
.dtl-pager__btn:hover:not(:disabled) { background: var(--brand); color: #fff; border-color: var(--brand); }
.dtl-pager__btn:disabled { opacity: 0.45; cursor: not-allowed; }

@media (max-width: 560px) {
    .dtl-table { font-size: 12px; }
    .dtl-table thead th, .dtl-table tbody td { padding: 8px 10px; }
    .dtl-pager { flex-direction: column; gap: 8px; align-items: stretch; }
    .dtl-pager__btns { justify-content: space-between; }
}

/* ---------------------------------------------------------------- Agente IA (ProGoIA) */
.ia-widget { margin-bottom: 22px; }
.ia-card {
    display: flex; align-items: flex-start; gap: 16px; padding: 20px 22px;
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
    box-shadow: var(--shadow-sm); position: relative; overflow: hidden;
}
.ia-card::before {
    content: ""; position: absolute; inset: 0 0 auto 0; height: 4px;
    background: linear-gradient(90deg, var(--brand), #2b8cff, #17b6b6);
}
.ia-avatar {
    flex-shrink: 0; width: 56px; height: 56px; border-radius: 16px;
    display: grid; place-items: center; background: #fff;
    border: 1px solid var(--border); box-shadow: var(--shadow-sm);
    background-image: radial-gradient(120% 120% at 0% 0%, var(--brand-soft) 0%, #fff 55%);
}
.ia-avatar img { width: 40px; height: 40px; object-fit: contain; }
.ia-card__body { flex: 1; min-width: 0; }
.ia-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.ia-head h3 { font-size: 19px; font-weight: 800; color: var(--text); margin: 0; }
.ia-head h3 span { color: var(--brand); }
.ia-online {
    display: inline-flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 800;
    color: #12b886; background: rgba(18,184,134,0.12); padding: 3px 10px; border-radius: 999px;
}
.ia-online i { width: 7px; height: 7px; border-radius: 50%; background: #12b886; }
.ia-sub { color: var(--text-muted); font-size: 13.5px; margin: 6px 0 14px; }

.ia-chat {
    display: flex; flex-direction: column; gap: 10px; max-height: 300px; overflow-y: auto;
    padding: 4px 4px 12px; margin-bottom: 12px;
}
.ia-msg { max-width: 86%; padding: 10px 14px; border-radius: 14px; font-size: 13.5px; line-height: 1.5; }
.ia-msg--user { align-self: flex-end; background: linear-gradient(135deg, var(--brand), var(--brand-dark)); color: #fff; border-bottom-right-radius: 4px; }
.ia-msg--bot { align-self: flex-start; background: var(--surface-2); color: var(--text); border: 1px solid var(--border); border-bottom-left-radius: 4px; }
.ia-msg--bot b { color: var(--brand); }
.ia-msg--bot ul { margin: 6px 0 0; padding-left: 18px; }
.ia-msg--bot li { margin: 2px 0; }
.ia-typing { display: inline-flex; gap: 4px; align-items: center; padding: 2px 0; }
.ia-typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--text-muted); opacity: 0.6; animation: iaDot 1.2s infinite; }
.ia-typing i:nth-child(2) { animation-delay: 0.2s; }
.ia-typing i:nth-child(3) { animation-delay: 0.4s; }
@keyframes iaDot { 0%, 60%, 100% { transform: translateY(0); opacity: 0.4; } 30% { transform: translateY(-4px); opacity: 1; } }

.ia-chips { display: flex; gap: 10px; flex-wrap: wrap; }
.ia-chip {
    display: inline-flex; align-items: center; gap: 8px; cursor: pointer;
    padding: 9px 14px; border-radius: 12px; font-size: 13px; font-weight: 700; font-family: inherit;
    color: var(--brand); background: var(--surface); border: 1px solid var(--border);
    transition: all 0.16s ease;
}
.ia-chip svg { width: 16px; height: 16px; }
.ia-chip:hover { background: var(--brand-soft); border-color: var(--brand); transform: translateY(-1px); box-shadow: var(--shadow-sm); }

.ia-form { display: flex; gap: 12px; margin-top: 14px; }
.ia-field {
    flex: 1; padding: 14px 18px; border-radius: 14px; border: 1px solid var(--border);
    background: var(--surface); color: var(--text); font-size: 14px; font-family: inherit;
    box-shadow: var(--shadow-sm); transition: border-color 0.16s ease, box-shadow 0.16s ease;
}
.ia-field:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.ia-send {
    display: inline-flex; align-items: center; gap: 8px; cursor: pointer;
    padding: 0 22px; border-radius: 14px; border: none; font-weight: 800; font-size: 14px; font-family: inherit;
    color: #fff; background: linear-gradient(135deg, var(--brand), var(--brand-dark));
    box-shadow: 0 10px 22px rgba(41,61,101,0.28); transition: all 0.16s ease;
}
.ia-send svg { width: 17px; height: 17px; }
.ia-send:hover:not(:disabled) { transform: translateY(-1px); filter: brightness(1.06); }
.ia-send:disabled { opacity: 0.6; cursor: not-allowed; }

@media (max-width: 560px) {
    .ia-card { flex-direction: column; gap: 12px; padding: 16px; }
    .ia-send span { display: none; }
    .ia-send { padding: 0 18px; }
    .ia-form { gap: 8px; }
}

/* ---------------------------------------------------------------- Módulo DISC */
.disc-cards { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; margin-bottom: 22px; }
.disc-card {
    display: flex; align-items: center; gap: 12px; padding: 16px 18px;
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
    box-shadow: var(--shadow-sm); transition: all 0.16s ease; position: relative; overflow: hidden;
}
.disc-card::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--c); }
.disc-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: var(--c); }
.disc-card.is-active { border-color: var(--c); box-shadow: 0 0 0 2px color-mix(in srgb, var(--c) 35%, transparent); }
.disc-card__circle { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; color: #fff; font-weight: 800; font-size: 18px; flex-shrink: 0; }
.disc-card__qtd { font-size: 24px; font-weight: 800; color: var(--text); line-height: 1; }
.disc-card__lbl { font-size: 12px; color: var(--text-muted); font-weight: 600; margin-top: 3px; }

.disc-tag { display: inline-block; padding: 3px 10px; border-radius: 999px; color: #fff; font-weight: 800; font-size: 11.5px; white-space: nowrap; }

.disc-show { display: grid; grid-template-columns: 1fr 1.6fr; gap: 18px; align-items: start; }
.disc-show__hero { display: flex; align-items: center; gap: 18px; padding: 26px; }
.disc-show__big { width: 76px; height: 76px; border-radius: 20px; display: grid; place-items: center; color: #fff; font-weight: 800; font-size: 38px; flex-shrink: 0; }
.disc-show__kicker { font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-muted); font-weight: 800; }
.disc-show__hero h2 { font-size: 24px; color: var(--text); margin: 4px 0 8px; }

.disc-bar { display: grid; grid-template-columns: 34px 1fr 48px; grid-template-areas: "tag track val" "tag lbl lbl"; align-items: center; gap: 6px 12px; margin-bottom: 16px; }
.disc-bar__tag { grid-area: tag; width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; color: #fff; font-weight: 800; }
.disc-bar__track { grid-area: track; height: 12px; background: var(--surface-2); border-radius: 999px; overflow: hidden; }
.disc-bar__fill { height: 100%; border-radius: 999px; transition: width 0.4s ease; }
.disc-bar__val { grid-area: val; font-weight: 800; color: var(--text); text-align: right; }
.disc-bar__lbl { grid-area: lbl; font-size: 12px; color: var(--text-muted); font-weight: 600; }

/* Documento de relatório DISC (PRO / LIGHT / VIP) */
.rel-doc { background: #fff; border: 1px solid var(--border); border-radius: 14px; padding: 28px 32px; max-width: 1000px; margin: 0 auto; box-shadow: var(--shadow-sm); }
.rel-doc__head { display: flex; align-items: flex-start; justify-content: space-between; border-bottom: 2px solid #2F328F; padding-bottom: 12px; margin-bottom: 20px; }
.rel-doc__kind { color: #2F328F; font-weight: 800; font-size: 18px; }
.rel-doc__head h2 { margin: 2px 0 0; color: #333; font-size: 20px; }
.rel-doc__logo { height: 46px; }
.rel-graficos { display: grid; gap: 14px; justify-items: center; margin-bottom: 22px; }
.rel-graficos--1 { grid-template-columns: 1fr; }
.rel-graficos--4 { grid-template-columns: repeat(4, 1fr); }
.rel-graficos figure { margin: 0; text-align: center; }
.rel-graficos figure img { width: 105px; height: 205px; max-width: none; display: block; margin: 0 auto; }
.disc-grafico-fig img { width: 105px; height: 205px; max-width: none; display: block; margin: 0 auto; }
.disc-grafico-svg { display: block; margin: 0 auto; line-height: 0; }
.disc-grafico-svg svg { display: block; width: 100%; height: 100%; }
.rel-graf img { max-width: 100%; height: auto; }
.rel-graficos figcaption { color: #2F328F; font-size: 12px; margin-top: 6px; }
.rel-texto p { color: #555; font-size: 13px; line-height: 1.6; text-align: justify; margin: 0 0 12px; }
.rel-doc__foot { text-align: center; color: #2F328F; font-weight: 600; margin-top: 18px; }

/* Abas de navegação do VIP */
.rel-tabs { display: flex; flex-wrap: nowrap; gap: 3px; border-bottom: 2px solid var(--border); margin-bottom: 22px; }
.rel-tab { appearance: none; border: none; background: transparent; flex: 1 1 0; min-width: 0; padding: 6px 2px; font-size: 10px; font-weight: 700; letter-spacing: 0; white-space: nowrap; text-align: center; color: var(--text-muted); cursor: pointer; border-radius: 6px 6px 0 0; border-bottom: 3px solid transparent; margin-bottom: -2px; transition: color .15s, border-color .15s, background .15s; }
.rel-tab:hover { color: #2F328F; background: #f6f8fc; }
.rel-tab.is-active { color: #2F328F; border-bottom-color: #2F328F; }
.rel-page { display: none; animation: relFade .2s ease; }
.rel-page.is-active { display: block; }
@keyframes relFade { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }

/* VIP / Analítico */
.rel-ident { display: flex; flex-wrap: wrap; gap: 8px 24px; padding: 12px 16px; background: #f6f8fc; border: 1px solid var(--border); border-radius: 10px; margin-bottom: 18px; }
.rel-ident span { font-size: 12.5px; color: #555; }
.rel-ident strong { color: #2F328F; }
.rel-pred { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 22px; }
.rel-pred__item { border: 1px solid var(--border); border-radius: 10px; padding: 12px 14px; display: flex; flex-direction: column; gap: 4px; }
.rel-pred__item small { font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-muted); font-weight: 700; }
.rel-pred__item strong { color: #2F328F; font-size: 14px; }
.rel-pred__item--alto { border-left: 4px solid #12b886; }
.rel-pred__item--baixo { border-left: 4px solid #ff5d73; }
.rel-sec { color: #2F328F; font-size: 15px; font-weight: 800; margin: 26px 0 12px; padding-bottom: 6px; border-bottom: 1px solid var(--border); }
.rel-fatores { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.rel-fator { border: 1px solid var(--border); border-radius: 10px; padding: 10px 12px; display: flex; flex-direction: column; gap: 2px; }
.rel-fator strong { color: #2F328F; font-size: 13px; }
.rel-fator span { color: #666; font-size: 12px; }
.rel-lista { margin: 0; padding-left: 18px; columns: 2; column-gap: 28px; }
.rel-lista li { color: #555; font-size: 12.5px; line-height: 1.55; margin-bottom: 6px; break-inside: avoid; }
.rel-duas { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.rel-duas h4 { color: #2F328F; font-size: 13px; margin: 0 0 8px; }
.rel-duas .rel-lista { columns: 1; }
.rel-barras { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px 24px; }
.rel-barra__topo { display: flex; justify-content: space-between; align-items: baseline; font-size: 13px; color: #444; margin-bottom: 4px; }
.rel-barra__topo strong { color: #2F328F; }
.rel-barra__trilho { height: 8px; background: #eef1f7; border-radius: 6px; overflow: hidden; }
.rel-barra__fill { height: 100%; background: linear-gradient(90deg, #2F328F, #4f53c9); border-radius: 6px; }
.rel-barra__fill--alt { background: linear-gradient(90deg, #12b886, #38d9a9); }
.rel-barra__desc { color: #777; font-size: 11.5px; line-height: 1.45; margin: 5px 0 0; }
.rel-sub { color: #2F328F; font-size: 13px; font-weight: 800; margin: 18px 0 8px; }
.rel-destaque { text-align: center; color: #333; font-size: 14px; margin: 14px 0; }
.rel-destaque b { color: #2F328F; }
.rel-sumario { list-style: none; margin: 0; padding: 0; }
.rel-sumario li { display: flex; align-items: center; gap: 12px; padding: 12px 4px; border-bottom: 1px solid var(--border); font-size: 14px; color: #444; font-weight: 600; }
.rel-sumario li::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: #2F328F; flex: none; }
.rel-fatores4 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-top: 12px; }
.rel-fator4 { border: 1px solid var(--border); border-left: 4px solid #016bba; border-radius: 10px; padding: 12px 14px; display: flex; flex-direction: column; gap: 5px; }
.rel-fator4 strong { color: #016bba; font-size: 14px; }
.rel-fator4 span { color: #666; font-size: 12.5px; line-height: 1.5; }
.rel-pdi { display: grid; gap: 12px; }
.rel-pdi__item { border: 1px solid var(--border); border-radius: 10px; padding: 12px 14px; }
.rel-pdi__se { margin: 0 0 6px; font-size: 13px; color: #444; }
.rel-pdi__se span { color: var(--text-muted); font-weight: 700; }
.rel-pdi__se b { color: #2F328F; }
.rel-pdi__faz { margin: 0; font-size: 12.5px; color: #555; line-height: 1.55; }
.rel-pdi__faz span { color: var(--text-muted); font-weight: 700; }
.rel-legenda-cor { color: #2F328F; font-weight: 600; font-size: 12.5px; text-align: center; margin: 0 0 14px; }
.rel-legenda { width: 100%; border-collapse: collapse; margin: 16px 0 4px; border-radius: 10px; overflow: hidden; }
.rel-legenda td { text-align: center; padding: 8px 6px; font-size: 11.5px; line-height: 1.3; }
.pdf-loading { position: fixed; inset: 0; background: rgba(27,42,89,.55); display: none; align-items: center; justify-content: center; z-index: 9999; }
.pdf-loading.is-on { display: flex; }
.pdf-loading__box { background: #fff; border-radius: 14px; padding: 26px 34px; text-align: center; box-shadow: 0 20px 50px rgba(0,0,0,.3); }
.pdf-loading__spin { width: 42px; height: 42px; border: 4px solid #e2e7f0; border-top-color: #2F328F; border-radius: 50%; margin: 0 auto 14px; animation: pdfspin .8s linear infinite; }
@keyframes pdfspin { to { transform: rotate(360deg); } }
.pdf-loading__txt { color: #2F328F; font-weight: 700; }
.rel-capa { text-align: center; padding: 24px 0 10px; }
.rel-capa__titulo { font-size: 34px; color: #1b2a59; font-weight: 800; margin-bottom: 28px; }
.rel-capa__logo { max-width: 320px; width: 60%; height: auto; margin-bottom: 34px; }
.rel-capa__dados { margin: 0 auto; border-collapse: collapse; }
.rel-capa__dados td { padding: 8px 10px; font-size: 15px; vertical-align: top; }
.rel-capa__dados .rot { text-align: right; color: var(--text-muted); white-space: nowrap; }
.rel-capa__dados .val { text-align: left; color: #333; }
.rel-chart { position: relative; height: 380px; max-width: 560px; margin: 8px auto 0; }
.rel-chart--bar { height: 420px; max-width: 640px; }
.rel-chart__sep { text-align: center; color: var(--text-muted); font-weight: 700; font-size: 12.5px; margin: 20px 0 6px; padding-top: 16px; border-top: 1px solid var(--border); }
.rel-pct { display: inline-block; min-width: 46px; text-align: center; padding: 2px 8px; border-radius: 6px; font-weight: 800; font-size: 12px; border: 1px solid rgba(0,0,0,.12); }
.rel-quadrantes { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.rel-quad { border: 1px solid var(--border); border-radius: 12px; padding: 12px 14px; }
.rel-quad__cab { color: #2F328F; font-weight: 800; font-size: 13px; margin-bottom: 8px; padding-bottom: 6px; border-bottom: 1px solid var(--border); }
.rel-quad__item { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 5px 0; }
.rel-quad__nome { display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; color: #444; }
.rel-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.rel-card { border: 1px solid var(--border); border-radius: 10px; padding: 10px 12px; }
.rel-card__cab { display: flex; align-items: center; gap: 8px; }
.rel-card__ico img { width: 30px; height: 30px; }
.rel-card__nome { color: #2F328F; font-weight: 700; font-size: 13px; flex: 1; }
.rel-card__desc { color: #666; font-size: 11.5px; line-height: 1.45; margin: 6px 0 0; }
.rel-idt { width: 100%; max-width: 560px; margin: 0 auto; border-collapse: collapse; }
.rel-idt th { background: #0b52b4; color: #fff; padding: 8px; font-size: 13px; }
.rel-idt td { padding: 8px 12px; border: 1px solid #fff; font-size: 13px; font-weight: 600; }
.rel-idt td.pc { text-align: center; width: 90px; }
.rel-barra__nome { display: inline-flex; align-items: center; gap: 8px; }
.rel-barra__ico img { width: 26px; height: 26px; vertical-align: middle; }
.rel-sumario li img { width: 28px; height: 28px; object-fit: contain; flex: none; }
.rel-sumario li::before { display: none; }
.rel-snum { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; padding: 0; border-radius: 50%; background: linear-gradient(135deg, var(--brand), var(--brand-dark)); color: #fff; font-weight: 800; font-size: 13px; box-shadow: 0 3px 8px rgba(41,61,101,.32); }

/* Ícones modernos por fator DISC (badges) — substituem as engrenagens antigas. Tamanho fixo igual para todos. */
.fbadge { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; padding: 0; border-radius: 50%; color: #fff; font-weight: 800; font-size: 12px; box-shadow: 0 2px 6px rgba(15,23,42,.18); }
.fb-D { background: linear-gradient(135deg, #f0686c, #e5484d); }
.fb-I { background: linear-gradient(135deg, #f0b34a, #e0941a); }
.fb-S { background: linear-gradient(135deg, #34c768, #16a34a); }
.fb-C { background: linear-gradient(135deg, #4f86f2, #2563eb); }
.fb-x { background: linear-gradient(135deg, var(--brand), var(--brand-dark)); }
.rel-pdi-form { display: grid; gap: 18px; }
.rel-pdi-form__bloco { border: 1px solid var(--border); border-radius: 10px; padding: 14px 16px; }
.rel-pdi-form__cab { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; color: #333; font-size: 13px; }
.rel-pdi-form__plano { margin-top: 10px; color: #333; font-size: 13px; }
.rel-pdi-form__linhas { display: grid; gap: 22px; margin-top: 20px; }
.rel-pdi-form__linhas span { display: block; border-bottom: 1px solid #bbb; height: 1px; }
@media (max-width: 720px) {
    .rel-pred, .rel-fatores, .rel-fatores4, .rel-barras, .rel-duas, .rel-quadrantes, .rel-cards { grid-template-columns: 1fr; }
    .rel-lista { columns: 1; }
}
@media (max-width: 720px) { .rel-graficos--4 { grid-template-columns: repeat(2, 1fr); } }
@media print {
    .no-print, .sidebar, .topbar, .ia-widget, .rel-tabs { display: none !important; }
    .rel-doc { border: none; box-shadow: none; max-width: 100%; }
    .app-main, .content, body { background: #fff !important; margin: 0 !important; padding: 0 !important; }
    .rel-page { display: block !important; page-break-inside: avoid; }
    .rel-page + .rel-page { page-break-before: always; }
}

.disc-grafico { display: inline-block; }
.disc-grafico img { width: 105px; height: 205px; max-width: none; display: block; }
.disc-ordem { display: flex; align-items: center; gap: 6px; margin-top: 8px; }
.disc-ordem__sep { color: var(--text-muted); font-weight: 700; }

.disc-info { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px 24px; }
.disc-info > div { display: flex; flex-direction: column; gap: 2px; }
.disc-info span { font-size: 11px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-muted); font-weight: 700; }
.disc-info strong { color: var(--text); font-weight: 700; font-size: 14px; }

.cmp-form { display: flex; gap: 14px; align-items: flex-end; flex-wrap: wrap; }
.cmp-form__field { flex: 1; min-width: 220px; display: flex; flex-direction: column; gap: 6px; }
.cmp-form__field label { font-size: 12px; font-weight: 800; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.05em; }
.cmp-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }

@media (max-width: 980px) { .disc-cards { grid-template-columns: repeat(2, 1fr); } .disc-show { grid-template-columns: 1fr; } .cmp-grid { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .disc-cards { grid-template-columns: 1fr; } .disc-info { grid-template-columns: 1fr; } }

/* ---------------------------------------------------------------- Solicitar por e-mail */
.solic-form { display: grid; grid-template-columns: 1.2fr 1.4fr 1fr auto; gap: 14px; align-items: end; }
.solic-form__field { display: flex; flex-direction: column; gap: 5px; }
.solic-form__field label { font-size: 12.5px; font-weight: 700; color: var(--text-muted); }
.solic-form__field .req { color: #d93640; }
.solic-form__field input, .solic-form__field select { padding: 10px 12px; border: 1px solid var(--border); border-radius: 9px; font-size: 14px; background: #fff; }
.solic-form__field input:focus, .solic-form__field select:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(41,61,101,0.12); }
.solic-form__acao { display: flex; align-items: flex-end; }
.solic-acoes { display: inline-flex; flex-direction: column; gap: 6px; align-items: stretch; min-width: 120px; }
.btn--xs { padding: 6px 10px; font-size: 11.5px; border-radius: 8px; gap: 6px; }
.solic-acoes form { display: block; }
.solic-acoes .btn { width: 100%; }
.js-copiar-link.is-ok { color: #12a06b; border-color: #12a06b; }
@media (max-width: 860px) { .solic-form { grid-template-columns: 1fr; } }

/* ---------------------------------------------------------------- Questionário DISC (preencher) */
.quiz-body { background: #eef1f6; min-height: 100vh; }
.quiz-top { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 16px 28px; background: var(--brand); }
.quiz-top__logo { height: 64px; width: auto; border-radius: 15px; background: #fff; padding: 6px 10px; }
.quiz-top__back { color: #fff; opacity: .92; font-size: 13.5px; font-weight: 600; text-decoration: none; }
.quiz-top__back:hover { opacity: 1; }
.quiz-wrap { max-width: 720px; margin: 0 auto; padding: 26px 16px 60px; }
.quiz-wrap--interno { max-width: 520px; padding: 0 0 16px; }
.quiz-body .quiz-wrap--interno { padding: 16px 16px 48px; }
.quiz-wrap--interno .quiz-card { padding: 18px 20px 16px; border-radius: 14px; box-shadow: 0 8px 24px rgba(20,30,60,.08); }
.quiz-wrap--interno .quiz-card__title { font-size: 20px; }
.quiz-wrap--interno .quiz-card__sub { font-size: 13px; margin-bottom: 14px; }
.quiz-wrap--interno .quiz-fields { gap: 10px; }
.quiz-wrap--interno .quiz-field input { padding: 8px 10px; font-size: 13px; }
.quiz-wrap--interno .quiz-instru { margin: 14px 0 4px; padding: 12px 14px; font-size: 12.5px; }
.quiz-wrap--interno .quiz-instru li { margin-bottom: 4px; }
.quiz-wrap--interno .quiz-actions { margin-top: 14px; }
.quiz-wrap--interno .btn--lg { padding: 10px 18px; font-size: 14px; }
.quiz-wrap--interno .quiz-card--q { padding: 14px 16px 16px; }
.quiz-wrap--interno .quiz-progress { margin-bottom: 10px; gap: 10px; }
.quiz-wrap--interno .quiz-progress__bar { height: 6px; }
.quiz-wrap--interno .quiz-progress__txt { font-size: 12px; }
.quiz-wrap--interno .quiz-q__head { gap: 10px; margin-bottom: 10px; }
.quiz-wrap--interno .quiz-q__n { width: 34px; height: 34px; font-size: 16px; border-radius: 9px; }
.quiz-wrap--interno .quiz-q__leg { font-size: 11px; gap: 2px; }
.quiz-wrap--interno .quiz-opts { gap: 6px; }
.quiz-wrap--interno .quiz-opt { padding: 5px 8px; gap: 8px; border-radius: 9px; }
.quiz-wrap--interno .quiz-opt__txt { font-size: 13px; line-height: 1.35; }
.quiz-wrap--interno .quiz-opt__btn { width: 30px; height: 30px; font-size: 12px; border-radius: 7px; }
.quiz-wrap--interno .quiz-final-aviso { margin: 12px 0 2px; padding: 8px 12px; font-size: 12px; }
/* Garante que o atributo [hidden] oculte mesmo elementos .btn/flex do questionário */
.quiz-wrap [hidden] { display: none !important; }
.quiz-wrap--center { display: flex; align-items: center; justify-content: center; min-height: calc(100vh - 72px); }
.quiz-card { background: #fff; border-radius: 18px; box-shadow: 0 14px 40px rgba(20,30,60,.10); padding: 28px 28px 24px; }
.quiz-card__title { font-size: 24px; color: var(--brand); margin: 0 0 4px; }
.quiz-card__sub { color: var(--text-muted); font-size: 14px; margin: 0 0 20px; }
.quiz-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.quiz-field { display: flex; flex-direction: column; gap: 5px; }
.quiz-field label { font-size: 12.5px; font-weight: 700; color: var(--text-muted); }
.quiz-field .req { color: #d93640; }
.quiz-field input { padding: 11px 12px; border: 1px solid var(--border); border-radius: 9px; font-size: 14px; }
.quiz-field input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(41,61,101,0.12); }
.quiz-instru { margin: 22px 0 6px; background: var(--brand-soft); border-radius: 12px; padding: 16px 18px; font-size: 13.5px; color: #3a4760; }
.quiz-instru ul { margin: 10px 0 0; padding-left: 18px; }
.quiz-instru li { margin-bottom: 7px; line-height: 1.45; }
.quiz-actions { display: flex; gap: 12px; justify-content: flex-end; margin-top: 22px; }
.quiz-actions--nav { justify-content: center; align-items: center; }
.quiz-final-aviso { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 18px 0 4px; padding: 12px 16px; background: rgba(18,160,107,0.10); color: #12a06b; border-radius: 10px; font-size: 13.5px; font-weight: 700; text-align: center; }
.btn--lg { padding: 13px 24px; font-size: 15px; }
.quiz-erro { color: #d93640; font-size: 13px; font-weight: 600; margin: 12px 0 0; text-align: center; }

.quiz-progress { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.quiz-progress__bar { flex: 1; height: 9px; background: #dde3ee; border-radius: 999px; overflow: hidden; }
.quiz-progress__bar span { display: block; height: 100%; width: 0; background: var(--brand); border-radius: 999px; transition: width .3s ease; }
.quiz-progress__txt { font-size: 13px; font-weight: 700; color: var(--brand); white-space: nowrap; }

.quiz-card--q { padding-top: 22px; }
.quiz-q__head { display: flex; align-items: center; gap: 16px; margin-bottom: 18px; }
.quiz-q__n { width: 50px; height: 50px; border-radius: 14px; background: var(--brand); color: #fff; display: grid; place-items: center; font-size: 24px; font-weight: 800; flex-shrink: 0; }
.quiz-q__leg { display: flex; flex-direction: column; gap: 4px; font-size: 12.5px; font-weight: 700; }
.quiz-q__legmais { color: #12a06b; }
.quiz-q__legmenos { color: #d93640; }
.quiz-opts { display: flex; flex-direction: column; gap: 10px; }
.quiz-opt { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid var(--border); border-radius: 12px; background: #fff; transition: border-color .15s, background .15s; }
.quiz-opt.is-mais { border-color: #12a06b; background: rgba(18,160,107,0.06); }
.quiz-opt.is-menos { border-color: #d93640; background: rgba(229,72,77,0.06); }
.quiz-opt__txt { flex: 1; font-size: 15px; color: #2a3550; }
.quiz-opt__btn { width: 40px; height: 40px; border-radius: 10px; border: 1.5px solid var(--border); background: #f6f8fc; color: #9aa3b5; font-size: 15px; cursor: pointer; flex-shrink: 0; transition: all .15s; }
.quiz-opt__btn.is-oculto { visibility: hidden; }
.quiz-opt__btn--mais:hover { border-color: #12a06b; color: #12a06b; }
.quiz-opt__btn--menos:hover { border-color: #d93640; color: #d93640; }
.quiz-opt.is-mais .quiz-opt__btn--mais { background: #12a06b; border-color: #12a06b; color: #fff; }
.quiz-opt.is-menos .quiz-opt__btn--menos { background: #d93640; border-color: #d93640; color: #fff; }

.quiz-result { background: #fff; border-radius: 18px; box-shadow: 0 14px 40px rgba(20,30,60,.10); padding: 40px 36px; text-align: center; max-width: 520px; }
.quiz-result__icon { width: 76px; height: 76px; border-radius: 50%; display: grid; place-items: center; font-size: 38px; margin: 0 auto 18px; }
.quiz-result__icon--ok { background: rgba(18,160,107,0.12); color: #12a06b; }
.quiz-result__icon--warn { background: rgba(224,138,30,0.14); color: #e08a1e; }
.quiz-result h1 { font-size: 23px; color: var(--brand); margin: 0 0 10px; }
.quiz-result p { color: var(--text-muted); font-size: 14.5px; line-height: 1.55; margin: 0; }

@media (max-width: 560px) {
    .quiz-fields { grid-template-columns: 1fr; }
    .quiz-opt__txt { font-size: 14px; }
    .quiz-q__n { width: 44px; height: 44px; font-size: 20px; }
}

/* ---------------------------------------------------------------- Créditos (comprar / liberar) */
.btn--block { width: 100%; justify-content: center; }

.creditos-saldo {
    display: flex; align-items: center; gap: 12px;
    background: #fff; border: 1px solid var(--border); border-radius: 14px;
    padding: 12px 18px; box-shadow: 0 6px 18px rgba(20,30,60,.05);
}
.creditos-saldo i { font-size: 26px; color: var(--brand); }
.creditos-saldo__num { display: block; font-size: 22px; font-weight: 800; color: var(--text); line-height: 1.1; }
.creditos-saldo__lbl { display: block; font-size: 12px; color: var(--text-muted); }

.pacotes-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; }
.pacote {
    background: #fff; border: 1px solid var(--border); border-radius: 16px;
    padding: 22px 20px; display: flex; flex-direction: column; gap: 14px;
    box-shadow: 0 8px 24px rgba(20,30,60,.06); transition: transform .15s, box-shadow .15s;
}
.pacote:hover { transform: translateY(-3px); box-shadow: 0 14px 34px rgba(20,30,60,.12); }
.pacote__head { display: flex; align-items: baseline; gap: 7px; }
.pacote__mais { font-size: 30px; font-weight: 800; color: var(--brand); }
.pacote__lbl { font-size: 14px; color: var(--text-muted); font-weight: 600; }
.pacote__preco { display: flex; flex-direction: column; gap: 2px; }
.pacote__de { font-size: 12.5px; color: var(--text-muted); text-decoration: line-through; }
.pacote__por { font-size: 24px; color: var(--success); }
.pacote__unit { font-size: 12px; color: var(--text-muted); }
.pacote__gera { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 5px; }
.pacote__gera li { font-size: 13px; color: var(--text-muted); }
.pacote__gera li b { color: var(--text); }
.pacote form { margin-top: auto; }

/* ================================================================ */
/* Construtor de questionário — visual moderno (temas / questões)   */
/* ================================================================ */

/* Variantes de botão usadas no construtor */
.btn--soft { background: var(--brand-soft); color: var(--brand); border-color: transparent; }
.btn--soft:hover { background: var(--brand-soft-2, var(--brand-soft)); filter: brightness(.98); }
.btn--icon { padding: 0; width: 32px; height: 32px; border-radius: 9px; }
.btn--icon.btn--sm { width: 30px; height: 30px; }
.btn--icon svg, .btn--icon i { margin: 0; }

.field-hint { font-size: 11px; font-weight: 600; color: var(--text-muted); background: var(--brand-soft); border-radius: 6px; padding: 2px 7px; margin-left: 6px; }

/* Resumo no cabeçalho */
.qb-stats { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-top: 12px; }
.qb-stat { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600; color: var(--text-muted); background: var(--surface); border: 1px solid var(--border); border-radius: 999px; padding: 5px 12px; }
.qb-stat i { color: var(--brand); }

/* Painel recolhível de configurações */
.qb-settings { border: 1px solid var(--border); border-radius: 16px; background: var(--surface); margin-bottom: 22px; overflow: hidden; box-shadow: var(--shadow-sm); }
.qb-settings > summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 12px; padding: 15px 18px; }
.qb-settings > summary::-webkit-details-marker { display: none; }
.qb-settings__title { font-weight: 800; color: var(--text); display: inline-flex; align-items: center; gap: 9px; }
.qb-settings__title i { color: var(--brand); }
.qb-settings__hint { color: var(--text-muted); font-size: 12.5px; }
.qb-settings__chev { margin-left: auto; color: var(--text-muted); transition: transform .2s ease; }
.qb-settings[open] .qb-settings__chev { transform: rotate(180deg); }
.qb-settings__body { padding: 4px 18px 18px; border-top: 1px solid var(--border); }
.qb-settings__body .qform-actions { margin-top: 16px; }

/* Lista do construtor */
.qb { display: flex; flex-direction: column; gap: 18px; }

/* Card de tema */
.tema-card { position: relative; border: 1px solid var(--border); border-radius: 18px; background: var(--surface); box-shadow: 0 8px 24px rgba(20,30,60,.05); border-left: 4px solid var(--brand); }
.tema-card--loose { border-left-color: var(--text-muted); }
.tema-card__head { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 15px 18px; background: linear-gradient(180deg, #f7f9ff, #fcfdff); border-bottom: 1px solid var(--border); border-radius: 14px 14px 0 0; flex-wrap: wrap; }
.tema-card__id { display: flex; align-items: center; gap: 13px; min-width: 0; }
.tema-card__icon { flex: 0 0 auto; width: 42px; height: 42px; border-radius: 13px; background: linear-gradient(135deg, var(--brand), var(--brand-dark)); color: #fff; display: grid; place-items: center; font-size: 16px; box-shadow: 0 6px 14px rgba(41,61,101,.28); }
.tema-card__icon--muted { background: var(--brand-soft); color: var(--text-muted); box-shadow: none; }
.tema-card__meta { min-width: 0; display: flex; flex-direction: column; gap: 5px; }
.tema-card__name { font-size: 16px; font-weight: 800; color: var(--text); letter-spacing: -0.01em; }
.tema-card__chips { display: flex; gap: 7px; flex-wrap: wrap; }
.tema-card__tools { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.tema-card__def { margin: 0; padding: 12px 18px; color: var(--text-muted); font-size: 13.5px; border-bottom: 1px solid var(--border); background: #fcfdff; }
.tema-card__questoes { padding: 12px 18px 16px; display: flex; flex-direction: column; }

.chip { display: inline-flex; align-items: center; gap: 5px; font-size: 11.5px; font-weight: 700; color: var(--brand); background: var(--brand-soft); border-radius: 999px; padding: 3px 10px; }
.chip i { font-size: 10px; opacity: .85; }

/* Card de questão */
.qcard { display: flex; gap: 13px; align-items: flex-start; padding: 13px 0; border-top: 1px dashed var(--border); }
.qcard:first-child { border-top: none; }
.qcard__num { flex: 0 0 auto; width: 28px; height: 28px; border-radius: 9px; background: var(--brand-soft); color: var(--brand); font-size: 13px; font-weight: 800; display: inline-flex; align-items: center; justify-content: center; margin-top: 2px; }
.qcard__body { flex: 1 1 auto; min-width: 0; }
.qcard__top { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.qcard__enunciado { font-weight: 600; color: var(--text); min-width: 0; }
.qcard__enunciado p { margin: 0; }
.qcard__tools { display: flex; align-items: center; gap: 7px; flex-shrink: 0; }

.qchip { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 5px; font-size: 11px; font-weight: 700; border-radius: 999px; padding: 3px 10px; white-space: nowrap; }
.qchip i { font-size: 10px; }
.qchip--alt { background: rgba(40,80,200,.09); color: var(--brand); }
.qchip--disc { background: rgba(224,138,30,0.14); color: var(--warning); }

.qcard__alts { list-style: none; margin: 9px 0 0; padding: 0; display: flex; flex-direction: column; gap: 5px; }
.qcard__alts li { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text-muted); background: #f8faff; border: 1px solid var(--border); border-radius: 9px; padding: 6px 11px; }
.qcard__alt-txt { flex: 1 1 auto; min-width: 0; }
.qcard__alt-peso { flex: 0 0 auto; min-width: 24px; text-align: center; font-size: 11px; font-weight: 800; color: var(--brand); background: var(--brand-soft); border-radius: 7px; padding: 2px 7px; }

/* Estados auxiliares */
.qb-empty { display: flex; align-items: center; gap: 8px; padding: 12px 0; font-size: 13px; color: var(--text-muted); }
.qb-empty i { opacity: .6; }
.qb-onboard { text-align: center; padding: 40px 24px; border: 2px dashed var(--border); border-radius: 18px; background: var(--surface); }
.qb-onboard__icon { width: 56px; height: 56px; border-radius: 16px; background: var(--brand-soft); color: var(--brand); display: inline-grid; place-items: center; font-size: 22px; margin-bottom: 14px; }
.qb-onboard h3 { margin: 0 0 6px; font-size: 17px; color: var(--text); }
.qb-onboard p { margin: 0; color: var(--text-muted); font-size: 13.5px; }

/* Ações de adicionar (sempre 100% de largura) */
.qb-add { display: flex; flex-direction: column; gap: 12px; }
.qb-add__item { width: 100%; }
.qb-add__item--inset { margin-top: 10px; }
.qb-add__btn { width: 100%; display: flex; align-items: center; justify-content: center; gap: 9px; cursor: pointer; list-style: none; padding: 14px; border: 2px dashed var(--border); border-radius: 14px; background: var(--surface); color: var(--text-muted); font-weight: 700; font-size: 13.5px; transition: all .18s ease; }
.qb-add__btn::-webkit-details-marker { display: none; }
.qb-add__btn:hover { border-color: var(--brand); color: var(--brand); background: var(--brand-soft); }
.qb-add__btn--primary { border-style: solid; border-color: transparent; background: linear-gradient(135deg, var(--brand), var(--brand-dark)); color: #fff; box-shadow: 0 6px 16px rgba(41,61,101,0.28); }
.qb-add__btn--primary:hover { color: #fff; background: linear-gradient(135deg, var(--brand), var(--brand-dark)); filter: brightness(1.04); }
.qb-add__item[open] .qb-add__btn { border-radius: 14px 14px 0 0; }
.qb-add__item > .inline-edit__body { margin-top: 0; border-radius: 0 0 14px 14px; box-shadow: none; }

/* Formulários inline (editar/adicionar) */
.inline-edit { position: relative; }
.inline-edit > summary { list-style: none; cursor: pointer; display: inline-flex; transition: filter .15s; }
.inline-edit > summary::-webkit-details-marker { display: none; }
.inline-edit > summary:hover { filter: brightness(.97); }
.inline-edit__body { margin-top: 8px; padding: 16px; border: 1px solid var(--border); border-radius: 14px; background: #fff; box-shadow: 0 8px 22px rgba(20,30,60,.07); }
.tema-card__tools .inline-edit__body,
.qcard__tools .inline-edit__body { position: absolute; right: 0; z-index: 20; width: min(560px, 88vw); box-shadow: 0 16px 40px rgba(20,30,60,.16); }
.qform-actions { margin-top: 14px; display: flex; justify-content: flex-end; }

/* Alternativas no formulário */
.alts-block { margin-top: 16px; padding-top: 14px; border-top: 1px dashed var(--border); }
.alts-head { display: flex; align-items: baseline; gap: 10px; margin-bottom: 10px; }
.alts-head strong { display: inline-flex; align-items: center; gap: 7px; color: var(--text); }
.alts-head strong i { color: var(--brand); }
.alt-row { display: flex; align-items: center; gap: 9px; margin-bottom: 8px; }
.alt-row__bullet { flex: 0 0 auto; width: 9px; height: 9px; border-radius: 50%; border: 2px solid var(--brand-soft-2, #c7d2ec); }
.alt-row input[type="text"] { flex: 1 1 auto; }
.alt-row .alt-peso { flex: 0 0 78px; width: 78px; text-align: center; }
.alt-row .btn { flex: 0 0 auto; }

/* Conteúdo HTML renderizado (instruções e enunciados) */
.rich-text { line-height: 1.6; color: var(--text); }
.rich-text :first-child { margin-top: 0; }
.rich-text :last-child { margin-bottom: 0; }
.rich-text p { margin: 0 0 8px; }
.rich-text ul, .rich-text ol { margin: 0 0 8px; padding-left: 22px; }
.rich-text a { color: var(--brand); text-decoration: underline; }
.rich-text strong, .rich-text b { font-weight: 700; }

.aval-instrucoes { border-left: 4px solid var(--brand); }

/* ------------------------------------------------------------------ */
/* Página de preenchimento 360 — layout moderno                       */
/* ------------------------------------------------------------------ */
.aval-fill { max-width: 860px; margin: 0 auto; padding-bottom: 96px; }

.aval-fill__hero {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius);
    padding: 14px 18px 16px;
    margin-bottom: 16px;
    color: #fff;
    background:
        linear-gradient(135deg, var(--brand) 0%, var(--brand-dark) 100%);
    box-shadow: var(--shadow-sm);
}
.aval-fill__hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(320px 120px at 100% 0%, rgba(255,255,255,.12), transparent 70%),
        radial-gradient(200px 100px at 0% 100%, rgba(255,255,255,.06), transparent 65%);
    pointer-events: none;
}
.aval-fill__hero-body { position: relative; z-index: 1; }
.aval-fill__eyebrow {
    display: inline-block;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .07em;
    text-transform: uppercase;
    opacity: .75;
}
.aval-fill__title {
    margin: 4px 0 10px;
    font-size: clamp(1.1rem, 2.5vw, 1.35rem);
    line-height: 1.2;
    color: #fff;
}
.aval-fill__chips { display: flex; flex-wrap: wrap; gap: 6px; }
.aval-fill__chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 600;
    background: rgba(255,255,255,.14);
    border: 1px solid rgba(255,255,255,.2);
    backdrop-filter: blur(4px);
}
.aval-fill__chip--accent { background: rgba(255,255,255,.22); }

.aval-fill__instructions {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    padding: 16px 18px;
    margin-bottom: 18px;
    border-radius: var(--radius);
    background: linear-gradient(180deg, #fff 0%, var(--surface-2) 100%);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
}
.aval-fill__instructions-icon {
    flex: 0 0 auto;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--brand);
    background: var(--brand-soft);
}
.aval-fill__instructions-body { flex: 1; min-width: 0; font-size: 14px; }

.aval-fill__progress {
    padding: 14px 16px;
    margin-bottom: 22px;
    border-radius: var(--radius);
    background: var(--surface);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
}
.aval-fill__progress-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    font-size: 13px;
    color: var(--text-muted);
}
.aval-fill__progress-head strong { color: var(--brand); font-size: 14px; }
.aval-fill__progress-track {
    height: 8px;
    border-radius: 999px;
    background: var(--brand-soft);
    overflow: hidden;
}
.aval-fill__progress-bar {
    height: 100%;
    width: 0;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--brand), color-mix(in srgb, var(--brand) 70%, #5b8cff));
    transition: width .35s cubic-bezier(.4,0,.2,1);
}

.aval-fill__section { margin-bottom: 22px; }
.aval-fill__section-head {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
    padding: 0 2px;
}
.aval-fill__section-icon {
    flex: 0 0 auto;
    width: 36px;
    height: 36px;
    border-radius: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--brand);
    background: var(--brand-soft);
}
.aval-fill__section-head h2 { flex: 1; font-size: 1.05rem; min-width: 0; }
.aval-fill__section-count {
    flex: 0 0 auto;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: var(--text-muted);
    padding: 5px 10px;
    border-radius: 999px;
    background: var(--surface);
    border: 1px solid var(--border);
}

.aval-fill__questions {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.aval-fill .q-item {
    padding: 0;
    border: none;
    border-radius: var(--radius);
    background: var(--surface);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: box-shadow .2s, border-color .2s;
}
.aval-fill .q-item:focus-within {
    border-color: color-mix(in srgb, var(--brand) 35%, var(--border));
    box-shadow: 0 8px 24px rgba(41, 61, 101, .08);
}
.aval-fill .q-item__head {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 18px 18px 0;
}
.aval-fill .q-item__title {
    flex: 1;
    min-width: 0;
    display: block;
    font-size: 15px;
    line-height: 1.55;
    font-weight: 600;
    overflow-wrap: break-word;
    word-break: break-word;
}
.aval-fill .q-item__num {
    flex: 0 0 auto;
    width: 32px;
    height: 32px;
    margin-top: 0;
    border-radius: 10px;
    font-size: 13px;
    background: linear-gradient(135deg, var(--brand), var(--brand-dark));
    box-shadow: 0 4px 12px rgba(41, 61, 101, .22);
}
.aval-fill .q-opts {
    display: grid;
    gap: 10px;
    padding: 16px 18px 18px;
}
.aval-fill .q-opt {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border-radius: 14px;
    border: 1.5px solid var(--border);
    background: var(--surface-2);
    cursor: pointer;
    transition: border-color .15s, background .15s, transform .12s, box-shadow .15s;
}
.aval-fill .q-opt:hover {
    border-color: color-mix(in srgb, var(--brand) 40%, var(--border));
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}
.aval-fill .q-opt input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}
.aval-fill .q-opt__marker {
    flex: 0 0 auto;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid #c5cad6;
    background: #fff;
    transition: border-color .15s, background .15s, box-shadow .15s;
}
.aval-fill .q-opt__text { flex: 1; font-size: 14px; font-weight: 500; line-height: 1.45; }
.aval-fill .q-opt:has(input:checked) {
    border-color: var(--brand);
    background: var(--brand-soft);
    box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--brand) 20%, transparent);
}
.aval-fill .q-opt:has(input:checked) .q-opt__marker {
    border-color: var(--brand);
    background: var(--brand);
    box-shadow: 0 0 0 3px var(--brand-soft-2);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 12px;
}
.aval-fill .q-item__field { padding: 14px 18px 18px; }
.aval-fill .q-item__field textarea {
    width: 100%;
    min-height: 112px;
    padding: 14px 16px;
    border: 1.5px solid var(--border);
    border-radius: 14px;
    background: var(--surface-2);
    font: inherit;
    line-height: 1.55;
    resize: vertical;
    transition: border-color .15s, box-shadow .15s, background .15s;
}
.aval-fill .q-item__field textarea:focus {
    outline: none;
    border-color: var(--brand);
    background: #fff;
    box-shadow: 0 0 0 4px var(--brand-soft);
}

.aval-fill__footer {
    position: fixed;
    left: var(--sidebar-w);
    right: 0;
    bottom: 0;
    z-index: 40;
    padding: 14px 24px calc(14px + env(safe-area-inset-bottom));
    background: rgba(255,255,255,.88);
    backdrop-filter: blur(12px);
    border-top: 1px solid var(--border);
    box-shadow: 0 -8px 30px rgba(20, 30, 55, .06);
}
.aval-fill__footer-inner {
    max-width: 860px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}
.aval-fill__footer-hint { margin: 0; font-size: 13px; color: var(--text-muted); }
.aval-fill__footer-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.aval-fill__submit {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding-left: 18px;
    padding-right: 20px;
    box-shadow: 0 8px 20px rgba(41, 61, 101, .22);
}

.aval-fill__hero--compact {
    padding: 12px 16px 14px;
    margin-bottom: 16px;
}
.aval-fill__hero--compact .aval-fill__title { margin-bottom: 0; font-size: 1.2rem; }
.aval-fill__hero--compact .aval-fill__eyebrow { margin-top: 0; }

.btn--sky {
    background: #0ea5e9;
    color: #fff;
    border: 1px solid #0ea5e9;
}
.btn--sky:hover { background: #0284c7; border-color: #0284c7; color: #fff; }

.aval-zara-table-wrap { overflow-x: auto; }
.aval-zara-table { min-width: 480px; }
.aval-zara-sugestoes { display: flex; flex-direction: column; gap: 10px; }
.aval-zara-sug {
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    background: var(--surface-2);
}
.aval-zara-sug summary {
    padding: 12px 14px;
    font-weight: 700;
    cursor: pointer;
    list-style: none;
}
.aval-zara-sug summary::-webkit-details-marker { display: none; }
.aval-zara-sug__body { padding: 0 14px 14px; font-size: 13px; }
.aval-zara-form textarea {
    width: 100%;
    min-height: 120px;
    padding: 14px 16px;
    border: 1.5px solid var(--border);
    border-radius: 14px;
    background: var(--surface-2);
    font: inherit;
    line-height: 1.55;
    resize: vertical;
}
.aval-zara-form textarea:focus {
    outline: none;
    border-color: var(--brand);
    background: #fff;
    box-shadow: 0 0 0 4px var(--brand-soft);
}
.aval-zara-top3 { margin-bottom: 10px; }
.aval-zara-top3.card .card__head { padding: 7px 10px; }
.aval-zara-top3.card .card__body { padding: 6px 8px; }
.aval-zara-top3__head { background: linear-gradient(135deg, var(--brand), var(--brand-dark)); }
.aval-zara-top3__head h2 { color: #fff; margin: 0; font-size: 11.5px; font-weight: 700; text-align: center; letter-spacing: .02em; }
.aval-zara-top3__body { display: flex; flex-direction: column; gap: 4px; }
.aval-zara-top3__item {
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
    background: var(--surface);
    box-shadow: none;
}
.aval-zara-top3__toggle {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 5px 8px;
    cursor: pointer;
    list-style: none;
    user-select: none;
    transition: background .18s ease;
    min-height: 32px;
}
.aval-zara-top3__toggle:hover { background: var(--surface-2); }
.aval-zara-top3__toggle::-webkit-details-marker { display: none; }
.aval-zara-top3__rank {
    flex: 0 0 auto;
    width: 18px;
    height: 18px;
    border-radius: 5px;
    background: var(--brand-soft);
    color: var(--brand);
    font-weight: 800;
    font-size: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.aval-zara-top3__nome {
    flex: 1;
    min-width: 0;
    margin: 0;
    font-size: 12px;
    line-height: 1.25;
    font-weight: 600;
    color: var(--brand);
}
.aval-zara-top3__expand {
    flex: 0 0 auto;
    width: 22px;
    height: 22px;
    border-radius: 6px;
    border: 1px solid color-mix(in srgb, var(--brand) 22%, var(--border));
    background: #fff;
    position: relative;
    transition: border-color .18s ease, background .18s ease;
}
.aval-zara-top3__expand::before,
.aval-zara-top3__expand::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    background: var(--brand);
    border-radius: 1px;
    transition: transform .22s ease, opacity .18s ease;
}
.aval-zara-top3__expand::before {
    width: 8px;
    height: 1.5px;
    transform: translate(-50%, -50%);
}
.aval-zara-top3__expand::after {
    width: 1.5px;
    height: 8px;
    transform: translate(-50%, -50%);
}
.aval-zara-top3__item[open] .aval-zara-top3__expand {
    background: var(--brand-soft);
    border-color: color-mix(in srgb, var(--brand) 35%, var(--border));
}
.aval-zara-top3__item[open] .aval-zara-top3__expand::after {
    opacity: 0;
    transform: translate(-50%, -50%) scaleY(0);
}
.aval-zara-top3__toggle:hover .aval-zara-top3__expand {
    border-color: color-mix(in srgb, var(--brand) 45%, var(--border));
    background: var(--brand-soft);
}
.aval-zara-top3__item[open] .aval-zara-top3__toggle { background: var(--surface-2); }
.aval-zara-top3__panel {
    padding: 6px 8px 8px 32px;
    border-top: 1px solid var(--border);
    background: var(--surface-2);
}
.aval-zara-top3__sec { margin: 6px 0 2px; font-size: 11px; }
.aval-zara-top3__sec:first-child { margin-top: 0; }
.aval-zara-top3__text { font-size: 11px; line-height: 1.4; color: var(--text); }
.aval-zara-top3__text p { margin: 0 0 4px; }
.aval-zara-top3__text p:last-child { margin-bottom: 0; }
.aval-card__actions--stack { display: flex; flex-direction: column; gap: 8px; align-items: center; }
.aval-card__actions--stack .btn { width: auto; min-width: 200px; }

@media (max-width: 960px) {
    .aval-fill__footer { left: 0; padding-inline: 16px; }
}

@media (max-width: 720px) {
    .aval-fill { padding-bottom: 120px; }
    .aval-fill__hero { padding: 12px 14px 14px; }
    .aval-fill__title { font-size: 1.1rem; }
    .aval-fill__section-head { flex-wrap: wrap; }
    .aval-fill__section-count { margin-left: 46px; }
    .aval-fill__footer-inner { flex-direction: column; align-items: stretch; }
    .aval-fill__footer-actions { width: 100%; }
    .aval-fill__footer-actions .btn { flex: 1; justify-content: center; }
    .aval-fill__submit { width: 100%; justify-content: center; }
}

/* Página de preenchimento: título da questão (legado / outras telas) */
.q-item__title { display: flex; align-items: flex-start; gap: 10px; font-size: 15px; }
.q-item__num { flex: 0 0 auto; width: 26px; height: 26px; border-radius: 8px; background: var(--brand); color: #fff; font-weight: 700; font-size: 13px; display: inline-flex; align-items: center; justify-content: center; margin-top: 1px; }
.q-item__title .rich-text { flex: 1; }

@media (max-width: 720px) {
    .tema-card__tools, .qcard__tools { gap: 6px; }
    .tema-card__tools .inline-edit__body,
    .qcard__tools .inline-edit__body { position: static; width: auto; }
    .qcard__top { flex-direction: column; }
}

/* Summernote: alinhar ao visual dos campos do formulário */
.note-editor.note-frame, .note-editor.note-airframe { border: 1px solid var(--border); border-radius: 12px; overflow: hidden; }
.note-editor.note-frame .note-toolbar { background: var(--surface); border-bottom: 1px solid var(--border); padding: 6px 8px; }
.note-editor.note-frame .note-editing-area .note-editable { background: #fff; }
.note-editor.note-frame.fullscreen { border-radius: 0; }

/* ================================================================ */
/* Construtor de questionário em página única (tema/questão/alt)    */
/* ================================================================ */
#qb-temas { counter-reset: tema; }
.tb-tema { border: 1px solid var(--border); border-left: 4px solid var(--brand); border-radius: 16px; background: var(--surface); box-shadow: 0 6px 18px rgba(20,30,60,.05); padding: 14px 16px; margin-bottom: 16px; counter-increment: tema; }
.tb-tema__head { display: flex; align-items: center; gap: 10px; }
.tb-tema__badge { flex: 0 0 auto; width: 34px; height: 34px; border-radius: 11px; background: linear-gradient(135deg, var(--brand), var(--brand-dark)); color: #fff; font-weight: 800; font-size: 14px; display: grid; place-items: center; box-shadow: 0 4px 10px rgba(41,61,101,.28); }
.tb-tema__badge::after { content: counter(tema); }
.tb-tema__nome { flex: 1 1 auto; min-width: 0; font-weight: 700; }
.tb-tema__peso { flex: 0 0 auto; display: flex; align-items: center; gap: 6px; }
.tb-tema__peso label { font-size: 12px; color: var(--text-muted); font-weight: 600; }
.tb-tema__peso input { width: 84px; }
.tb-tema__def { margin-top: 10px; width: 100%; resize: vertical; min-height: 42px; }

/* Inputs do construtor que ficam fora de .field herdam o mesmo padrão moderno */
.tb-tema__nome, .tb-tema__peso input, .tb-tema__def,
.alt-row input[type="text"], .alt-row .alt-peso {
    padding: 11px 14px; border: 1px solid var(--border); border-radius: var(--radius-sm);
    font: inherit; color: var(--text); background: var(--surface-2);
    transition: border-color .18s, box-shadow .18s, background .18s;
}
.tb-tema__nome:focus, .tb-tema__peso input:focus, .tb-tema__def:focus,
.alt-row input:focus, .alt-row .alt-peso:focus {
    outline: none; border-color: var(--brand); background: #fff; box-shadow: 0 0 0 4px var(--brand-soft);
}
.tb-tema__nome { font-size: 15px; }

.tb-questoes { counter-reset: q; margin-top: 8px; }
.tb-questao { counter-increment: q; display: flex; gap: 12px; align-items: flex-start; padding: 14px; margin-top: 10px; border: 1px solid var(--border); border-radius: 13px; background: #fcfdff; }
.tb-questao__num { flex: 0 0 auto; width: 26px; height: 26px; border-radius: 8px; background: var(--brand-soft); color: var(--brand); font-weight: 800; font-size: 13px; display: inline-flex; align-items: center; justify-content: center; margin-top: 2px; }
.tb-questao__num::before { content: counter(q); }
.tb-questao__body { flex: 1 1 auto; min-width: 0; }
.tb-q-meta { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 12px; }
.tb-alts { margin-top: 14px; padding-top: 12px; border-top: 1px dashed var(--border); }
.tb-addq { margin-top: 12px; }
.alts-head { display: flex; align-items: center; gap: 10px; justify-content: space-between; }
.alts-head strong { font-size: 13px; color: var(--text); display: inline-flex; align-items: center; gap: 6px; }
.escala-sel { flex: 0 0 auto; max-width: 240px; padding: 8px 11px; border: 1px solid var(--border); border-radius: 9px; font-size: 12.5px; background: var(--surface-2); color: var(--text); cursor: pointer; }
.escala-sel:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.alts-hint { font-size: 11.5px; margin: 6px 0 10px; }
.ui-modal-list { text-align: left; margin: 0; padding-left: 18px; }
.ui-modal-list li { margin: 5px 0; }

/* Barra de confirmação */
.qb-bar { position: sticky; bottom: 0; z-index: 30; display: flex; justify-content: flex-end; gap: 12px; align-items: center; margin-top: 18px; padding: 14px 16px; background: rgba(255,255,255,.92); backdrop-filter: blur(6px); border: 1px solid var(--border); border-radius: 14px; box-shadow: 0 -6px 20px rgba(20,30,60,.08); }
.btn--lg { padding: 13px 26px; font-size: 14.5px; }

/* Mini editor de texto rico (contenteditable) */
.rich-ed { border: 1px solid var(--border); border-radius: 12px; overflow: hidden; background: #fff; }
.rich-ed__tb { display: flex; gap: 2px; padding: 6px; background: var(--surface); border-bottom: 1px solid var(--border); }
.rich-ed__b { width: 30px; height: 30px; border-radius: 8px; border: 1px solid transparent; background: transparent; color: var(--text-muted); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; font-size: 13px; transition: all .15s; }
.rich-ed__b:hover { background: var(--brand-soft); color: var(--brand); }
.rich-ed__area { min-height: 90px; padding: 11px 13px; outline: none; line-height: 1.55; color: var(--text); }
.rich-ed__area:focus { box-shadow: inset 0 0 0 2px var(--brand-soft); }
.rich-ed__area:empty::before { content: attr(data-ph); color: var(--text-muted); pointer-events: none; }

/* Intranet — página de boas-vindas do colaborador */
.intranet-welcome {
    max-width: 820px;
    margin: 0 auto;
    border: 1px solid #639cfd;
    border-radius: 14px;
    padding: 28px 32px 32px;
    background: linear-gradient(180deg, #fbfcfe 0%, #fff 100%);
}
.intranet-welcome__head h1 { font-size: 1.35rem; color: var(--brand); margin: 0 0 8px; }
.intranet-welcome__sub { font-size: 1.1rem; font-weight: 700; color: var(--brand); margin: 0; }
.intranet-welcome__body { margin-top: 24px; line-height: 1.6; }
.intranet-welcome__list { margin: 16px 0 24px; padding-left: 22px; }
.intranet-welcome__list li { margin-bottom: 10px; }

@media (max-width: 640px) {
    .tb-q-meta { grid-template-columns: 1fr; }
    .tb-tema__head { flex-wrap: wrap; }
}
