/* Central de Notificações (o sino) — estilos ÚNICOS das 6 telas da Carteira.
   2026-10-28: antes, este bloco era copiado dentro de cada .html (6 cópias,
   que já tinham começado a divergir em comentários e formatação); como o
   Wilson abriu uma frente de melhorias de UX do sino, centralizei aqui pra
   cada ajuste visual ser feito UMA vez. Par deste arquivo: notificacoes.js.
   O HTML da gaveta (botão, backdrop, <aside>) continua em cada tela.

   Cartão de mensagem (UX 2026-10-28): UMA mensagem = UM indicador.
   Faixa de topo em azul translúcido (data/hora + marca), título do
   indicador em destaque, "o que ocorreu" em âmbar, e as consequências
   por família num painel azul-escuro mais claro com barra lateral azul. */

.notif-badge-ponto {
  position: absolute; top: -2px; right: -2px; width: 8px; height: 8px;
  border-radius: 50%; background: #ff5c5c; border: 1.5px solid #151b2c;
}
.notif-backdrop {
  position: fixed; inset: 0; background: rgba(5,7,15,0.55); z-index: 40;
  opacity: 0; pointer-events: none; transition: opacity 0.2s ease;
}
.notif-backdrop.aberto { opacity: 1; pointer-events: auto; }
.notif-drawer {
  position: fixed; top: 0; right: 0; height: 100%; width: min(480px, 92vw);
  background: #151b2c; border-left: 1px solid #2a3350; box-shadow: -16px 0 40px rgba(0,0,0,0.45);
  z-index: 41; display: flex; flex-direction: column;
  transform: translateX(100%); transition: transform 0.24s ease;
}
.notif-drawer.aberto { transform: translateX(0); }
.notif-drawer-cabecalho {
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px 26px; border-bottom: 1px solid #2a3350; flex-shrink: 0;
}
.notif-drawer-cabecalho h2 { margin: 0; font-size: 17px; color: #e6e9ef; }
.notif-drawer-fechar {
  width: auto; margin-top: 0; background: transparent; border: 1px solid #2a3350; border-radius: 6px;
  color: #8b93a8; cursor: pointer; font-size: 13px; padding: 6px 10px;
  line-height: 1; font-family: inherit; flex-shrink: 0;
}
.notif-drawer-fechar:hover { background: #1a2133; color: #e6e9ef; }
.notif-drawer-corpo { flex: 1; overflow-y: auto; padding: 22px 26px; }
.notif-drawer-vazio { color: #8b93a8; font-size: 14px; text-align: center; padding: 48px 0; }

.notif-card {
  border: 1px solid #2a3350; border-radius: 12px; margin-bottom: 14px;
  background: #0f1420; overflow: hidden;
}
.notif-card:last-child { margin-bottom: 0; }
.notif-card-topo {
  display: flex; align-items: center; gap: 8px; padding: 9px 16px;
  background: rgba(79,124,255,0.16); border-bottom: 1px solid rgba(79,124,255,0.28);
  font-size: 12px; font-weight: 600; color: #9fb0ff;
}
.notif-card-data { font-variant-numeric: tabular-nums; }
.notif-card-sep { opacity: 0.55; }
.notif-card-marca { letter-spacing: 0.04em; }
.notif-card-corpo { padding: 14px 16px 16px; }
.notif-card-indicador { font-size: 15px; font-weight: 700; color: #e6e9ef; line-height: 1.35; }
.notif-card-ocorrencia { margin-top: 4px; font-size: 13.5px; color: #f2c46d; line-height: 1.4; }
.notif-card-familias {
  margin-top: 12px; padding: 10px 12px 8px; border-radius: 8px;
  background: #19233f; border-left: 3px solid #4f7cff;
}
.notif-card-quando { font-size: 12.5px; font-weight: 700; color: #9fb0ff; margin-bottom: 6px; }
.notif-card-familia { font-size: 13px; line-height: 1.55; padding: 3px 0; color: #c7cbd6; }
.notif-card-familia b { color: #e6e9ef; }
.notif-card-sem-leitura { margin-top: 10px; font-size: 12.5px; color: #6b7288; line-height: 1.45; }
