/* notificacoes.css :: sino de avisos (js/notificacoes.js) */

/* sino: na barra lateral fica no canto do bloco da logo; no celular, no fim da barra do topo */
.nt-brand { position: relative; }
.nt-sino { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; padding: 0;
  border: 2px solid transparent; border-radius: 50%; background: #EEF1F8; color: var(--navy-800); cursor: pointer;
  box-shadow: 0 2px 8px rgba(0,0,0,.35); transition: background .15s, border-color .15s, transform .15s; flex-shrink: 0; }
.nt-sino[hidden] { display: none; }
.nt-sino:hover { background: #fff; transform: translateY(-1px); }
.nt-sino.tem { border-color: var(--orange); }
.nt-sino .nt-bell { width: 27px; height: 27px; }
.nt-sino .av-ic3d.nt-bell { filter: drop-shadow(0 1px 1px rgba(12,21,37,.3)); }
.nt-sino-lat { position: absolute; top: 14px; right: 14px; }
.nt-sino-top { width: 36px; height: 36px; margin-left: auto; }
.nt-sino-top .nt-bell { width: 24px; height: 24px; }
.nt-cont { position: absolute; top: -4px; right: -5px; min-width: 19px; height: 19px; padding: 0 5px; border-radius: 10px; background: var(--orange);
  color: #fff; font-family: var(--font-ui); font-size: 10.5px; font-weight: 700; line-height: 19px; text-align: center;
  box-shadow: 0 0 0 2px var(--navy-950); font-variant-numeric: tabular-nums; }
.nt-cont[hidden] { display: none; }

/* painel */
.nt-painel { display: none; position: fixed; z-index: 400; top: 12px; left: calc(var(--sidebar-w) + 10px); width: 400px; max-width: calc(100vw - var(--sidebar-w) - 24px);
  max-height: min(78vh, 640px); flex-direction: column; background: var(--bg-surface); border: 1px solid var(--border); border-radius: 12px;
  box-shadow: 0 12px 40px rgba(12,21,37,.28); overflow: hidden; font-family: var(--font-ui); }
.nt-painel.on { display: flex; }
.nt-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px 10px 16px; background: var(--navy-800); color: #fff; }
.nt-head h2 { display: flex; align-items: center; gap: 8px; margin: 0; color: #fff; font-family: var(--font-ui); font-size: 12px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .12em; }
.nt-head h2 .av-ic { width: 26px; height: 26px; }
.nt-head h2 .av-ic3d { padding: 2px; border-radius: 50%; background: #EEF1F8; }
.nt-x { width: 34px; height: 34px; border: 0; border-radius: 50%; background: transparent; color: #fff; font-size: 24px; line-height: 1; cursor: pointer; }
.nt-x:hover { background: rgba(255,255,255,.12); }
.nt-barra { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; padding: 8px 16px; border-bottom: 1px solid var(--border);
  font-size: 12px; font-weight: 600; color: var(--muted); background: var(--bg-zebra); }
.nt-lk { background: none; border: 0; padding: 4px 0; color: var(--navy-700); font-family: var(--font-ui); font-size: 12px; font-weight: 700; text-decoration: underline; cursor: pointer; }
.nt-lk:hover { color: var(--orange); }
.nt-lista { list-style: none; margin: 0; padding: 0; overflow-y: auto; overscroll-behavior: contain; }
.nt-item { display: flex; align-items: flex-start; gap: 10px; width: 100%; padding: 12px 16px; border: 0; border-bottom: 1px solid var(--border); background: var(--bg-surface);
  text-align: left; cursor: pointer; font-family: var(--font-ui); color: var(--body); }
.nt-item:hover { background: var(--bg-zebra); }
.nt-item.nao-lida { background: #FFF8F2; }
.nt-item.nao-lida:hover { background: #FDEFE3; }
.nt-item-ic { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 50%; background: var(--navy-100);
  color: var(--navy-700); flex-shrink: 0; }
.nt-item.nao-lida .nt-item-ic { background: var(--orange-light); color: #B45309; }
.nt-item-ic .av-ic { width: 17px; height: 17px; }
.nt-item-txt { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
.nt-item-txt strong { font-size: 13px; color: var(--ink); line-height: 1.35; overflow-wrap: anywhere; }
.nt-item:not(.nao-lida) .nt-item-txt strong { font-weight: 600; }
.nt-item-txt span { font-size: 12.5px; line-height: 1.4; color: var(--body); overflow-wrap: anywhere; }
.nt-item-txt time { font-size: 11.5px; color: var(--muted); }
.nt-ponto { width: 9px; height: 9px; margin-top: 6px; border-radius: 50%; background: var(--orange); flex-shrink: 0; }
.nt-vazio { padding: 22px 18px; margin: 0; font-size: 13px; line-height: 1.5; color: var(--muted); }

@media (max-width: 1024px) {
  .nt-painel { left: calc(var(--sidebar-w) + 8px); }
}
@media (max-width: 768px) {
  .nt-painel { top: 58px; left: 8px; right: 8px; width: auto; max-width: none; max-height: calc(100dvh - 70px); }
}
@media print { .nt-sino, .nt-painel { display: none !important; } }
