/* ===========================================================
   theme-overrides.css
   Pequenos ajustes globais que não cabem em arquivos de feature.
   Carregado por _layoutFormulario, _layoutDashboardHome e _layoutPlataforma.
   =========================================================== */

/* -----------------------------------------------------------
   Tom Select dropdown — z-index acima de modais BS5.
   O tom-select-init.js configura dropdownParent:'body' (para escapar
   do overflow:hidden de containers como .detail-tab-card). Com isso, o
   dropdown vira filho de <body> e perde o stacking context do modal,
   ficando ATRAS do modal. BS5 modal usa z-index 1055; subimos o
   .ts-dropdown para 1060 para garantir que apareça sobre qualquer modal.
   ----------------------------------------------------------- */
.ts-dropdown {
    z-index: 1060;
}


/* -----------------------------------------------------------
   Inputs dentro de modais: bg ligeiramente mais claro que o
   modal-content para o input "respirar" e não fundir com o
   plano de fundo da modal.
   ----------------------------------------------------------- */
.modal .form-control,
.modal .form-select,
.modal textarea.form-control,
.modal .ts-control {
    background-color: #fcfcfe;
}

/* Mantém o destaque ao focar (Bootstrap troca a borda mas mantém
   o background — preservamos o branco mais claro também no foco) */
.modal .form-control:focus,
.modal .form-select:focus,
.modal textarea.form-control:focus,
.modal .ts-wrapper.focus .ts-control {
    background-color: #fcfcfe;
}

/* Inputs desabilitados/readonly mantêm o tom Bootstrap padrão
   para sinalizar o estado, sem nosso override interferir */
.modal .form-control:disabled,
.modal .form-control[readonly]:not(.flatpickr-input),
.modal .form-select:disabled {
    background-color: var(--bs-secondary-bg, #e9ecef);
}


/* -----------------------------------------------------------
   Sidenav — estrutura de itens (refator visual: icone "em caixa"
   + label, estado ativo em pill, divider clean). Aplicado sobre
   o markup gerado por FormTemplateSideNavWithDropdowns e o partial
   NavigationNodeChildDropdownPartialFormTemplate.
   ----------------------------------------------------------- */

/* Garante que o sidenav nunca transborde horizontalmente.
   .scrollbar-inner herda o jquery.scrollbar e por padrao deixa
   overflow-x livre — quando um label do submenu eh maior que a
   coluna (250px), o texto vaza para o main-content em vez de
   truncar com ellipsis. */
.sidenav .scrollbar-inner,
.sidenav .navbar-inner,
.sidenav .navbar-collapse {
    overflow-x: hidden;
    min-width: 0;
}

/* Cadeia flex-column ate o .navbar-collapse — necessario para que
   o `margin-top: auto` no .sidenav-footer empurre o "Minha Conta"
   ate o fim da coluna. .scrollbar-inner e .navbar-inner por padrao
   nao sao flex containers, entao o flex:1 herdado do .navbar-collapse
   (dashboard.css) nao se propagava e o flex chain quebrava no meio. */
.sidenav .scrollbar-inner {
    display: flex;
    flex-direction: column;
    min-height: 100%;
}

.sidenav .navbar-inner {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 0;
}

.sidenav .sidenav-items {
    gap: 1px;
    padding: 0.35rem 0.75rem 0;
    min-width: 0;
    /* Cancela o margin-left/right: -1.5rem herdado de
       .navbar-vertical.navbar-expand-xs .navbar-nav (dashboard.css)
       que estava colando o pill e o icone na borda esquerda do sidenav. */
    margin-left: 0 !important;
    margin-right: 0 !important;
}

/* Rodape do sidenav — recebe "Minha Conta" (filtrado pelo template
   FormTemplateSideNavWithDropdowns). O .navbar-collapse pai eh
   flex-column flex:1 (dashboard.css), entao margin-top:auto empurra
   este <ul> para o final da coluna. Borda superior sutil para separar
   visualmente da lista principal. */
.sidenav .sidenav-footer {
    margin-top: auto !important;
    padding-top: 0.5rem;
    padding-bottom: 0.75rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

/* min-width:0 propagado por todos os ancestrais flex/grid do label
   — caso contrario o text-overflow:ellipsis nao tem efeito (o item
   "inflar" ate o tamanho intrinseco do texto). */
.sidenav .nav-item {
    min-width: 0;
    max-width: 100%;
}

.sidenav .sidenav-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.35rem 0.75rem;
    border-radius: 0.5rem;
    color: rgba(255, 255, 255, 0.78);
    transition: background-color .15s ease, color .15s ease;
}

.sidenav .sidenav-item:hover {
    background-color: rgba(255, 255, 255, 0.08);
    color: #fff;
}

.sidenav .sidenav-item.active,
.sidenav .sidenav-item.has-active-child {
    background-color: rgba(255, 255, 255, 0.10);
    color: #fff;
    font-weight: 600;
    border-radius: 0.5rem;
}

/* Sobrescreve o destaque verde herdado de dashboard.css (linhas 18920+:
   linear-gradient rgba(31,107,79,...) + box-shadow inset 3px verde).
   Eh aplicado com !important la, entao precisamos casar a especificidade
   e tambem usar !important aqui. Resultado: pill claro com cantos
   arredondados, sem a faixa verde lateral. */
.sidenav .navbar-nav .nav-item.active > .nav-link,
.sidenav .navbar-nav .nav-item > .nav-link.active,
.sidenav .navbar-nav .nav-item > .nav-link[aria-expanded="true"],
.sidenav .navbar-nav .nav-item > .nav-link.has-active-child,
.sidenav .navbar-nav .nav-item:has(.nav-sm .nav-link.active) > .nav-link,
.sidenav .navbar-nav .nav-item:has(.collapse .nav-link.active) > .nav-link {
    background: rgba(255, 255, 255, 0.10) !important;
    box-shadow: none !important;
    border-radius: 0.5rem !important;
    color: #fff !important;
}

.sidenav .navbar-nav .nav-item.active > .nav-link i,
.sidenav .navbar-nav .nav-item.active > .nav-link svg,
.sidenav .navbar-nav .nav-item > .nav-link.active i,
.sidenav .navbar-nav .nav-item > .nav-link.active svg,
.sidenav .navbar-nav .nav-item > .nav-link[aria-expanded="true"] i,
.sidenav .navbar-nav .nav-item > .nav-link[aria-expanded="true"] svg,
.sidenav .navbar-nav .nav-item > .nav-link.has-active-child i,
.sidenav .navbar-nav .nav-item > .nav-link.has-active-child svg,
.sidenav .navbar-nav .nav-item:has(.nav-sm .nav-link.active) > .nav-link i,
.sidenav .navbar-nav .nav-item:has(.collapse .nav-link.active) > .nav-link i {
    color: #fff !important;
    filter: none !important;
}

/* Sub-item ativo (nav-sm) — mesma cor clara, sem faixa verde. */
.sidenav .nav-sm .nav-item .nav-link.active {
    background: rgba(255, 255, 255, 0.10) !important;
    box-shadow: none !important;
    border-radius: 0.5rem !important;
    color: #fff !important;
}

.sidenav .nav-sm .nav-item .nav-link.active i,
.sidenav .nav-sm .nav-item .nav-link.active svg {
    color: #fff !important;
    filter: none !important;
}

.sidenav .sidenav-item-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    flex: 0 0 32px;
    border-radius: 0.5rem;
    background-color: rgba(255, 255, 255, 0.06);
    font-size: 1rem;
    line-height: 1;
}

.sidenav .sidenav-item-icon > i {
    margin: 0;
    min-width: 0;
    font-size: 1rem;
    line-height: 1;
}

/* Zera o margin-right: 0.625rem aplicado pelo dashboard.css em
   body.g-sidenav-show .sidenav .navbar-nav .nav-item .nav-link i/svg
   (especificidade 0,5,2). Aquela margem era do markup legado em que
   o <i> era filho direto do .nav-link — agora o icone esta dentro de
   .sidenav-item-icon (caixa 32x32 com justify-content:center) e o
   espacamento ate o label eh controlado pelo `gap` do flex do item.
   Manter aquela margem empurra o icone para a esquerda dentro da caixa
   (causando o desalinhamento visual). Casamos a mesma especificidade
   listando os 4 seletores originais. */
body.g-sidenav-show .sidenav .navbar-nav .nav-item .nav-link i,
body.g-sidenav-show .sidenav .navbar-nav .nav-item .nav-link svg,
body.g-sidenav-pinned .sidenav .navbar-nav .nav-item .nav-link i,
body.g-sidenav-pinned .sidenav .navbar-nav .nav-item .nav-link svg {
    margin-right: 0;
}

.sidenav .sidenav-item.active .sidenav-item-icon,
.sidenav .sidenav-item.has-active-child .sidenav-item-icon {
    background-color: transparent;
    color: #fff;
}

.sidenav .sidenav-item-label {
    flex: 1 1 auto;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 0.875rem;
}

.sidenav .sidenav-item .sidenav-chevron {
    margin-left: auto;
    font-size: 0.75rem;
    transition: transform .2s ease;
    color: rgba(255, 255, 255, 0.55);
}

.sidenav .sidenav-item[aria-expanded="true"] .sidenav-chevron {
    transform: rotate(90deg);
    color: #fff;
}

/* Esconde o chevron herdado do CSS legado (gerado por
   .nav-link[data-bs-toggle=collapse]:after) — agora usamos o
   <i class="sidenav-chevron"> explicito no markup. */
.sidenav .sidenav-item.sidenav-item-parent::after {
    content: none !important;
    display: none !important;
}

/* Submenu (collapse interno) — indent reduzido + borda lateral
   sutil para agrupar visualmente sem empurrar o texto para fora
   da coluna do sidenav (250px). overflow:hidden no container
   garante que o ellipsis dos labels longos opere. */
.sidenav .sidenav-submenu {
    padding: 2px 0 4px 0;
    margin-left: 0;
    border-left: 1px solid rgba(255, 255, 255, 0.08);
    overflow: hidden;
    min-width: 0;
}

.sidenav .sidenav-subitems {
    gap: 1px;
    padding-left: 0;
    min-width: 0;
}

.sidenav .sidenav-subitem {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.25rem 0.5rem;
    border-radius: 0.375rem;
    color: rgba(255, 255, 255, 0.65);
    font-size: 0.8125rem;
    min-width: 0;
}

.sidenav .sidenav-subitem:hover {
    background-color: rgba(255, 255, 255, 0.06);
    color: #fff;
}

.sidenav .sidenav-subitem.active,
.sidenav .sidenav-subitem.has-active-child {
    background-color: rgba(255, 255, 255, 0.12);
    color: #fff;
    font-weight: 600;
}

.sidenav .sidenav-item-icon-sm {
    width: 24px;
    height: 24px;
    flex: 0 0 24px;
    font-size: 0.8125rem;
    border-radius: 0.375rem;
    background-color: transparent;
}

.sidenav .sidenav-divider {
    height: 1px;
    margin: 0.5rem 0.75rem;
    background-color: rgba(255, 255, 255, 0.08);
}

/* Estado "mini" (sidenav nao pinado) — somente icones, igual coluna
   central da imagem de referencia. */
body:not(.g-sidenav-pinned):not(.g-sidenav-show) .sidenav .sidenav-item,
body:not(.g-sidenav-pinned):not(.g-sidenav-show) .sidenav .sidenav-subitem {
    justify-content: center;
    padding: 0.3rem 0.5rem;
}

/* Gap menor entre itens e padding do container no modo mini */
body:not(.g-sidenav-pinned):not(.g-sidenav-show) .sidenav .sidenav-items {
    gap: 1px;
    padding: 0!important;
}

body:not(.g-sidenav-pinned):not(.g-sidenav-show) .sidenav .sidenav-item-label,
body:not(.g-sidenav-pinned):not(.g-sidenav-show) .sidenav .sidenav-chevron {
    display: none;
}


/* -----------------------------------------------------------
   Prioridade "NENHUMA" da tarefa — cinza neutro real.
   Nao da pra usar .bg-secondary porque este projeto sobrescreveu
   --bs-secondary para #FF9901 (laranja, igual --bs-warning),
   conflitando visualmente com a prioridade MEDIA. Tambem nao ha
   classe .bg-gray-* como utility. Definindo classe propria com
   cinza medio #6c757d (cinza-padrao Bootstrap original) + texto
   branco para garantir contraste WCAG ~5.7:1.
   ----------------------------------------------------------- */
.bg-prioridade-neutra {
    background-color: #6c757d !important;
    color: #ffffff !important;
}

/* Atalhos publicos no topo dos formularios/dashboard. */
.links-publicos-topo {
    gap: 1.1rem;
    justify-content: flex-end;
}

.links-publicos-topo__link {
    align-items: center;
    background: rgba(243, 247, 250, 0.96);
    border: 1px solid rgba(235, 241, 247, 0.9);
    border-radius: 50%;
    color: #5f6368;
    display: inline-flex;
    flex: 0 0 44px;
    height: 44px;
    justify-content: center;
    text-decoration: none;
    transition: background-color 0.18s ease, color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
    width: 44px;
}

.links-publicos-topo__link i {
    font-size: 1.45rem;
    line-height: 1;
}

.links-publicos-topo__link:hover,
.links-publicos-topo__link:focus {
    background: #ffffff;
    color: #032443;
    box-shadow: 0 12px 26px rgba(10, 30, 49, 0.12);
    transform: translateY(-1px);
}

.links-publicos-topo__item {
    display: inline-flex;
}

.topbar-whatsapp-status__trigger {
    position: relative;
}

.topbar-whatsapp-status__trigger::after {
    display: none;
}

.topbar-whatsapp-status__badge {
    align-items: center;
    border: 2px solid #ffffff;
    border-radius: 999px;
    color: #ffffff;
    display: inline-flex;
    font-size: 0.68rem;
    font-weight: 700;
    height: 1.25rem;
    justify-content: center;
    line-height: 1;
    min-width: 1.25rem;
    padding: 0 0.28rem;
    position: absolute;
    right: -0.25rem;
    top: -0.25rem;
}

.topbar-whatsapp-status__badge--online { background: #2dce89; }
.topbar-whatsapp-status__badge--offline { background: #f5365c; }

.topbar-whatsapp-status__menu {
    border: 0;
    border-radius: 0.75rem;
    box-shadow: 0 22px 50px rgba(0, 31, 65, 0.18);
    min-width: 22rem;
    overflow: hidden;
    padding: 0;
}

.topbar-whatsapp-status__header {
    align-items: flex-start;
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    padding: 0.95rem 1rem 0.75rem;
}

.topbar-whatsapp-status__header strong {
    color: #172b4d;
    font-size: 0.92rem;
}

.topbar-whatsapp-status__header span,
.topbar-whatsapp-status__empty {
    color: #6c7892;
    font-size: 0.78rem;
}

.topbar-whatsapp-status__summary {
    border-top: 1px solid rgba(224, 231, 242, 0.95);
    display: grid;
    gap: 0.45rem;
    grid-template-columns: repeat(3, 1fr);
    padding: 0.7rem 1rem;
}

.topbar-whatsapp-status__summary span {
    color: #6c7892;
    font-size: 0.7rem;
    line-height: 1.2;
}

.topbar-whatsapp-status__summary strong {
    color: #172b4d;
    display: block;
    font-size: 0.95rem;
}

.topbar-whatsapp-status__empty {
    border-top: 1px solid rgba(224, 231, 242, 0.95);
    padding: 1rem;
}

.topbar-whatsapp-status__row {
    align-items: center;
    display: flex;
    gap: 1rem;
    justify-content: space-between;
    padding: 0.8rem 1rem;
}

.topbar-whatsapp-status__name {
    color: #172b4d;
    display: block;
    font-size: 0.82rem;
    font-weight: 700;
    line-height: 1.25;
}

.topbar-whatsapp-status__row small {
    color: #8a98b3;
    display: block;
    font-size: 0.7rem;
    margin-top: 0.1rem;
}

.topbar-whatsapp-status__state {
    border-radius: 999px;
    font-size: 0.68rem;
    font-weight: 700;
    padding: 0.25rem 0.55rem;
    white-space: nowrap;
}

.topbar-whatsapp-status__state--online {
    background: rgba(45, 206, 137, 0.12);
    color: #1f9d68;
}

.topbar-whatsapp-status__state--pending {
    background: rgba(251, 140, 0, 0.13);
    color: #b86100;
}

.topbar-whatsapp-status__state--offline {
    background: rgba(245, 54, 92, 0.12);
    color: #c7264b;
}

.topbar-whatsapp-status__footer {
    border-top: 1px solid rgba(224, 231, 242, 0.95);
    padding: 0.75rem 1rem;
}

.topbar-whatsapp-status__manage {
    align-items: center;
    background: #032443;
    border-radius: 999px;
    color: #ffffff;
    display: inline-flex;
    font-size: 0.78rem;
    font-weight: 700;
    gap: 0.45rem;
    justify-content: center;
    padding: 0.65rem 0.9rem;
    text-decoration: none;
    width: 100%;
}

.topbar-whatsapp-status__manage:hover,
.topbar-whatsapp-status__manage:focus {
    background: #0f5f9e;
    color: #ffffff;
}

.topbar-whatsapp-status__manage i {
    font-size: 1rem;
    line-height: 1;
}

/* ===== Sino de notificações — botão redondo no padrão dos links da topbar ===== */
.topbar-bell-btn {
    align-items: center;
    background: rgba(243, 247, 250, 0.96);
    border: 1px solid rgba(235, 241, 247, 0.9);
    border-radius: 50%;
    color: #5f6368;
    display: inline-flex;
    height: 44px;
    width: 44px;
    justify-content: center;
    padding: 0;
    margin: 0 0.25rem;
    text-decoration: none;
    transition: background-color 0.18s ease, color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.topbar-bell-btn i {
    font-size: 1.45rem;
    line-height: 1;
}

.topbar-bell-btn:hover,
.topbar-bell-btn:focus,
.topbar-bell-btn[aria-expanded="true"] {
    background: #ffffff;
    color: #032443;
    box-shadow: 0 12px 26px rgba(10, 30, 49, 0.12);
    transform: translateY(-1px);
}

/* ===== Dropdown do sino — itens compactos ===== */
.notif-dropdown .notif-item { padding: 0.7rem 1rem; }
.notif-dropdown .avatar {
    align-items: center;
    background: linear-gradient(135deg, #0f5f9e, #24b67a) !important;
    color: #ffffff !important;
    display: inline-flex;
    height: 2.25rem;
    justify-content: center;
    width: 2.25rem;
}
.notif-dropdown .avatar i {
    color: #ffffff !important;
    font-size: 1rem;
    line-height: 1;
}
.notif-dropdown .bg-gradient-success { background: linear-gradient(135deg, #24b67a, #2dce89) !important; }
.notif-dropdown .bg-gradient-warning { background: linear-gradient(135deg, #fb8c00, #fbb140) !important; }
.notif-dropdown .bg-gradient-danger { background: linear-gradient(135deg, #f5365c, #fb6340) !important; }
.notif-dropdown .bg-gradient-secondary,
.notif-dropdown .bg-gradient-light {
    background: linear-gradient(135deg, #0f5f9e, #53627c) !important;
}
.notif-dropdown .notif-titulo {
    font-size: 0.8125rem;
    line-height: 1.25;
    color: #32325d;
}
.notif-dropdown .notif-msg {
    font-size: 0.75rem;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.notif-dropdown .notif-tempo { font-size: 0.7rem; }
.notif-dropdown .notif-empresa {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    margin-top: 0.25rem;
    font-size: 0.68rem;
    font-weight: 600;
    color: #0f5f9e;
    letter-spacing: 0.01em;
}
.notif-dropdown .notif-empresa i { font-size: 0.75rem; }

/* Botão "OK / marcar como lida" — check estilizado */
.notif-ok-btn {
    align-items: center;
    background: #ffffff;
    border: 1px solid rgba(45, 206, 137, 0.35);
    border-radius: 50%;
    color: #2dce89;
    display: inline-flex;
    height: 26px;
    width: 26px;
    justify-content: center;
    padding: 0;
    line-height: 1;
    transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.notif-ok-btn i { font-size: 0.95rem; }
.notif-ok-btn:hover,
.notif-ok-btn:focus {
    background: #2dce89;
    border-color: #2dce89;
    color: #ffffff;
}

/* ===== Central de notificações — painel de filtros (pills) ===== */
.notif-filtros { display: flex; flex-direction: column; gap: 0.85rem; }

.notif-filtro-linha {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.notif-filtro-label {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #8898aa;
    min-width: 86px;
    flex: 0 0 86px;
}

.notif-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.5rem 0.9rem;
    border-radius: 12px;
    border: 1.5px solid rgba(45, 206, 137, 0.4);
    background: #ffffff;
    color: #2dce89;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.notif-pill i { font-size: 1.05rem; }

.notif-pill:hover,
.notif-pill:focus { background: #eefaf4; color: #24b67a; }

.notif-pill.is-active {
    background: #2dce89;
    border-color: #2dce89;
    color: #ffffff;
    box-shadow: 0 8px 18px rgba(45, 206, 137, 0.25);
}

.notif-pill__count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.4rem;
    padding: 0.05rem 0.4rem;
    border-radius: 8px;
    background: #eef1f4;
    color: #5f6368;
    font-size: 0.72rem;
    font-weight: 700;
}

.notif-pill.is-active .notif-pill__count { background: #ffffff; color: #2dce89; }

.notif-pill__count--danger { background: #f5365c !important; color: #ffffff !important; }

/* Botão "Marcar todas como lidas" */
.notif-marcar-todas-btn {
    display: inline-flex;
    align-items: center;
    padding: 0.55rem 1.1rem;
    border-radius: 12px;
    border: 1.5px solid rgba(45, 206, 137, 0.5);
    background: #ffffff;
    color: #2dce89;
    font-size: 0.85rem;
    font-weight: 600;
    transition: background-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.notif-marcar-todas-btn:hover,
.notif-marcar-todas-btn:focus {
    background: #2dce89;
    color: #ffffff;
    box-shadow: 0 10px 22px rgba(45, 206, 137, 0.28);
}

/* ===== Central de notificações — itens da lista ===== */
.notif-central-item { padding: 0.9rem 1.25rem; }
.notif-central-item--nova { background: rgba(94, 114, 228, 0.04); }
.notif-central-titulo { font-size: 0.9rem; line-height: 1.3; color: #32325d; }
.notif-central-msg {
    font-size: 0.8rem;
    line-height: 1.45;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.notif-central-tempo { font-size: 0.72rem; }

/* ===== Banner "Ative as notificações" (card flutuante, centralizado no rodapé) ===== */
/* Centralizado horizontalmente para não colidir com o FAB do chat de IA (canto direito)
   nem passar por baixo da sidebar (esquerda). */
.notif-ativar-banner {
    position: fixed;
    bottom: 1.25rem;
    left: 50%;
    right: auto;
    width: max-content;
    max-width: min(460px, calc(100vw - 1.5rem));
    z-index: 1040;
    background: linear-gradient(87deg, #5e72e4 0, #825ee4 100%);
    color: #ffffff;
    padding: 0.9rem 1.1rem;
    border-radius: 14px;
    display: flex;
    align-items: center;
    gap: 0.9rem;
    box-shadow: 0 16px 40px rgba(10, 30, 49, 0.28);
    transform: translateX(-50%) translateY(calc(100% + 1.5rem));
    transition: transform 0.32s ease, opacity 0.32s ease;
    opacity: 0;
}

.notif-ativar-banner--visivel { transform: translateX(-50%) translateY(0); opacity: 1; }

.notif-ativar-banner__icone {
    flex: 0 0 auto;
    display: inline-flex;
    font-size: 1.6rem;
    line-height: 1;
}

.notif-ativar-banner__texto {
    flex: 1;
    font-size: 0.9rem;
    line-height: 1.4;
}

.notif-ativar-banner__acoes {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-shrink: 0;
}

.notif-ativar-banner__btn {
    background: #ffffff;
    color: #5e72e4;
    border: none;
    border-radius: 0.5rem;
    padding: 0.5rem 1.25rem;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.2s ease;
}

.notif-ativar-banner__btn:hover { opacity: 0.9; }
.notif-ativar-banner__btn:disabled { opacity: 0.6; cursor: default; }

.notif-ativar-banner__fechar {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.85);
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    padding: 0 0.25rem;
}

.notif-ativar-banner__fechar:hover { color: #ffffff; }

@media (max-width: 575.98px) {
    .notif-ativar-banner { flex-wrap: wrap; }
    .notif-ativar-banner__texto { flex: 1 1 100%; order: 2; }
    .notif-ativar-banner__icone { order: 1; }
    .notif-ativar-banner__acoes { order: 3; margin-left: auto; }
}

/* ===== Novidades / Atualizações — cards full-width (meta | conteúdo) ===== */
.novidade-card {
    border: 1px solid rgba(33, 37, 41, 0.06);
    transition: box-shadow 0.18s ease, transform 0.18s ease;
}

.novidade-card:hover {
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.10);
    transform: translateY(-2px);
}

.novidade-corpo {
    display: flex;
    align-items: stretch;
    gap: 1.5rem;
}

.novidade-meta {
    flex: 0 0 150px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding-right: 1.5rem;
    border-right: 1px solid rgba(33, 37, 41, 0.08);
}

.novidade-icone {
    width: 50px;
    height: 50px;
    border-radius: 15px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #ffffff;
    background: linear-gradient(87deg, #5e72e4 0, #825ee4 100%);
    box-shadow: 0 8px 18px rgba(94, 114, 228, 0.3);
}

.novidade-meta .badge { font-size: 0.78rem; letter-spacing: 0.02em; }
.novidade-meta small { font-size: 0.72rem; line-height: 1.3; }

.novidade-texto { flex: 1 1 auto; min-width: 0; align-self: center; }
.novidade-texto h5 { color: #32325d; }
.novidade-texto p { line-height: 1.6; }

/* Destaque da versão mais recente + selo "Novo" */
.novidade-card--novo {
    border-color: rgba(45, 206, 137, 0.55);
    box-shadow: 0 12px 30px rgba(45, 206, 137, 0.14);
}

.novidade-selo-novo {
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 0.66rem;
    font-weight: 700;
}

@media (max-width: 575.98px) {
    .novidade-corpo { flex-direction: column; gap: 0; }
    .novidade-meta {
        flex: 0 0 auto;
        flex-direction: row;
        align-items: center;
        gap: 0.75rem;
        text-align: left;
        padding-right: 0;
        padding-bottom: 0.85rem;
        margin-bottom: 0.85rem;
        border-right: none;
        border-bottom: 1px solid rgba(33, 37, 41, 0.08);
    }
    .novidade-meta .badge, .novidade-meta small { margin-top: 0 !important; }
}

/* ===== Manual de Uso ===== */
.manual-card {
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    cursor: pointer;
}
.manual-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(94, 114, 228, 0.18);
}
.manual-toc {
    position: sticky;
    top: 90px;
}
.manual-toc .nav-link {
    padding: 0.3rem 0.5rem;
    border-left: 2px solid transparent;
    color: #67748e;
    font-size: 0.8125rem;
}
.manual-toc .nav-link:hover {
    color: #5e72e4;
    border-left-color: #5e72e4;
    background: rgba(94, 114, 228, 0.06);
}
.manual-secao {
    scroll-margin-top: 90px;
}
.manual-secao h5 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.manual-fluxo {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
}
.manual-fluxo .badge {
    font-size: 0.8125rem;
}
.manual-fluxo .ph {
    color: #adb5bd;
}

@media (max-width: 991.98px) {
    .manual-toc { position: static; margin-bottom: 1rem; }
}

.badge-secondary {
    color: #000000!important;
}

.badge-secondary[href]:hover, .badge-secondary[href]:focus {
    color: #000000!important;
}
