/* Recrute+ | Sino de avisos no cabeçalho da Início (opção B aprovada em 15/11/2026).
   Abas: Avisos (pendências, com "atrasado" = 3 dias ou mais) e Atividade (movimentações recentes). Só aparece na Início
   (body[data-secao="home"], posto por switchSection). Usa tokens do painel, então o tema claro herda as cores. */
.hbell { display: none; position: relative; }
body[data-secao="home"] .hbell { display: block; margin-left: auto; }
body[data-secao="home"] .hbell ~ #btnTheme { margin-left: 0 !important; }
.hbell-btn { position: relative; background: transparent; border: 0; border-radius: 10px; width: 36px; height: 36px; padding: 0; display: flex; align-items: center; justify-content: center; color: inherit; cursor: pointer; transition: background .15s ease, color .15s ease; }
.hbell-btn:hover, .hbell-btn[aria-expanded="true"] { background: var(--row-hover); }
.hbell-btn:active { background: var(--bg-elevated); }
.hbell-btn:focus-visible { outline: 2px solid rgba(120, 148, 248, .68); outline-offset: 1px; }
.hbell-badge { position: absolute; top: -5px; right: -5px; min-width: 14px; height: 14px; padding: 0 3px; border-radius: 9px; background: rgb(var(--state-warning-rgb)); color: #1a1305; font-size: 10px; font-weight: 700; line-height: 14px; text-align: center; border: 2px solid var(--bg-main, #090c14); box-sizing: content-box; }
.hbell-badge.is-late { background: rgb(var(--state-danger-rgb)); color: #fff; }
.hbell-badge[hidden] { display: none; }

.hbell-pop { position: fixed; z-index: 9000; isolation: isolate; top: 60px; right: 16px; width: 400px; max-width: calc(100vw - 24px); border: 1px solid rgba(174, 190, 220, .16); border-radius: 14px; background: var(--bg-surface, #101727); box-shadow: 0 22px 50px rgba(0, 0, 0, .5); overflow: hidden; color: var(--text-primary); text-align: left; }
.hbell-pop[hidden] { display: none; }
.hbell-head { display: flex; align-items: center; gap: 10px; padding: 14px 16px 6px; }
.hbell-head b { font-size: 15px; font-weight: 700; }
.hbell-count { display: inline-flex; align-items: center; height: 22px; padding: 0 9px; border-radius: 999px; font-size: 12px; font-weight: 600; font-family: ui-monospace, 'Cascadia Mono', Consolas, monospace; background: rgba(var(--state-warning-rgb), .12); color: rgb(var(--state-warning-rgb)); }
.hbell-tabs { display: flex; gap: 4px; padding: 6px 12px 8px; }
.hbell-tab { padding: 6px 11px; border: 0; border-radius: 8px; background: transparent; color: var(--text-muted); font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; transition: background .15s ease, color .15s ease; }
.hbell-tab:hover { color: var(--text-primary); background: var(--row-hover); }
.hbell-tab.is-on { background: var(--bg-elevated); color: var(--text-primary); }
.hbell-body { max-height: min(440px, calc(100dvh - 220px)); overflow: auto; overscroll-behavior: contain; }
.hbell-body[hidden] { display: none; }
.hbell-gt { padding: 10px 16px 4px; color: var(--text-muted); font-size: 11.5px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; }
.hbell-it { display: grid; grid-template-columns: 10px minmax(0, 1fr) auto; gap: 12px; align-items: start; width: 100%; margin: 0; padding: 11px 16px; border: 0; border-top: 1px solid var(--divider); border-radius: 0; background: transparent; color: inherit; font: inherit; text-align: left; cursor: pointer; transition: background .15s ease; }
.hbell-it:hover { background: var(--row-hover); }
.hbell-it:active { background: var(--bg-elevated); }
.hbell-it:focus-visible { outline: 2px solid rgba(120, 148, 248, .68); outline-offset: -2px; }
.hbell-dot { width: 8px; height: 8px; margin-top: 6px; border-radius: 50%; background: rgb(var(--state-warning-rgb)); flex: none; }
.hbell-dot.is-late { background: rgb(var(--state-danger-rgb)); }
.hbell-dot.is-info { background: rgb(var(--state-info-rgb)); }
.hbell-tx b { display: block; font-size: 13.5px; font-weight: 600; line-height: 1.3; }
.hbell-tx span { display: block; margin-top: 1px; color: var(--text-muted); font-size: 12.5px; line-height: 1.35; }
.hbell-ag { color: rgb(var(--state-warning-rgb)); font-size: 12.5px; font-weight: 600; white-space: nowrap; font-family: ui-monospace, 'Cascadia Mono', Consolas, monospace; }
.hbell-ag.is-late { color: rgb(var(--state-danger-rgb)); }
.hbell-ag.is-muted { color: var(--text-muted); }
.hbell-vazio { display: flex; align-items: center; gap: 10px; padding: 22px 18px; color: var(--text-muted); font-size: 13px; border-top: 1px solid var(--divider); }
.hbell-vazio svg { width: 18px; height: 18px; flex: none; fill: none; stroke: rgb(var(--state-success-rgb)); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.hbell-mv { display: grid; grid-template-columns: 8px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 10px 16px; border-top: 1px solid var(--divider); font-size: 13px; }
.hbell-mv .hbell-dot { margin-top: 0; width: 7px; height: 7px; background: rgb(var(--state-info-rgb)); }
.hbell-mv .hbell-dot.is-late { background: rgb(var(--state-danger-rgb)); }
.hbell-tm { color: var(--text-muted); font-size: 12.5px; white-space: nowrap; }
.hbell-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 16px; border-top: 1px solid var(--divider); color: var(--text-muted); font-size: 12.5px; }
.hbell-all { height: 30px; padding: 0 12px; border: 1px solid rgba(174, 190, 220, .18); border-radius: 8px; background: transparent; color: var(--text-primary); font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; white-space: nowrap; }
.hbell-all:hover { background: var(--row-hover); }
@media (max-width: 560px) { .hbell-pop { position: fixed; top: 64px; right: 12px; left: 12px; width: auto; } .hbell-foot span { display: none; } }

/* O bloco "Ausências sem retorno + Movimentações recentes" saiu da Início: a lista foi trocada pelo sino. O elemento fica no HTML
   (escondido) porque homeRenderAtencao() ainda o preenche e dispara o alerta de atendimento humano. */
/* lista de atividade recente volta a aparecer (preenche o espaco abaixo das Seletivas) */

/* ajuste 15/11: sem titulo duplicado, contador dentro da aba, rodape em uma linha */
.hbell-head { display: none; }
.hbell-tabs { padding: 12px 12px 6px; }
.hbell-tab { display: inline-flex; align-items: center; gap: 8px; }
.hbell-tab .hbell-count { height: 18px; padding: 0 7px; font-size: 11px; }
.hbell-foot span { flex: 1 1 auto; min-width: 0; font-size: 12px; line-height: 1.35; }
.hbell-btn svg { width: 20px; height: 20px; }

/* abertura: o painel cresce a partir do sino e os itens entram em sequencia */
@media (prefers-reduced-motion: no-preference) {
  @keyframes hbell-in { from { opacity: 0; transform: translateY(-8px) scale(.94); } to { opacity: 1; transform: none; } }
  @keyframes hbell-item { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
  @keyframes hbell-ring { 0%, 100% { rotate: 0deg; } 20% { rotate: 14deg; } 45% { rotate: -11deg; } 70% { rotate: 6deg; } }
  .hbell-pop:not([hidden]) { transform-origin: calc(100% - 22px) 0; animation: hbell-in .3s cubic-bezier(.16, 1, .3, 1) backwards; }
  .hbell-pop:not([hidden]) .hbell-body:not([hidden]) > * { animation: hbell-item .36s cubic-bezier(.16, 1, .3, 1) backwards; animation-delay: .1s; }
  .hbell-pop:not([hidden]) .hbell-body:not([hidden]) > :nth-child(2) { animation-delay: .14s; }
  .hbell-pop:not([hidden]) .hbell-body:not([hidden]) > :nth-child(3) { animation-delay: .18s; }
  .hbell-pop:not([hidden]) .hbell-body:not([hidden]) > :nth-child(4) { animation-delay: .22s; }
  .hbell-pop:not([hidden]) .hbell-body:not([hidden]) > :nth-child(5) { animation-delay: .26s; }
  .hbell-pop:not([hidden]) .hbell-body:not([hidden]) > :nth-child(n+6) { animation-delay: .3s; }
  .hbell-pop:not([hidden]) .hbell-foot { animation: hbell-item .36s cubic-bezier(.16, 1, .3, 1) .3s backwards; }
  .hbell-btn[aria-expanded="true"] svg { animation: hbell-ring .6s ease-out; transform-origin: 50% 12%; }
}
