/* Central de notificações (js/notificacoes.js) — painel e app de conferência.
   Usa as cores de cada app (--surface, --ink, --muted, --line, --pri/--brand) e cai em padrões se faltar alguma. */
.nt-fundo {
  --nt-sup: var(--surface, #fff); --nt-tinta: var(--ink, #10232a); --nt-cinza: var(--muted, #6b8287);
  --nt-linha: var(--line, #e3ebec); --nt-cor: var(--pri, var(--brand, #1c9ba9)); --nt-suave: var(--pri-soft, var(--accent-soft, #e3f4f6));
  --nt-ruim: var(--bad, #d6342a);
  position: fixed; inset: 0; z-index: 9000; background: rgba(4, 16, 19, .45);
  display: flex; justify-content: flex-end; animation: nt-fade .18s ease-out;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Inter", "Helvetica Neue", system-ui, "Segoe UI", Roboto, sans-serif;
  letter-spacing: -0.006em;
}
.nt-folha {
  width: min(420px, 100%); height: 100%; background: var(--nt-sup); color: var(--nt-tinta);
  display: flex; flex-direction: column; box-shadow: -12px 0 40px rgba(0, 0, 0, .25); animation: nt-lado .26s cubic-bezier(.2, .8, .2, 1);
}
@media (max-width: 640px) {
  .nt-fundo { align-items: flex-end; }
  .nt-folha { width: 100%; height: auto; max-height: 92dvh; border-radius: 18px 18px 0 0; animation: nt-sobe .3s cubic-bezier(.2, .8, .2, 1);
    padding-bottom: env(safe-area-inset-bottom); }
}
.nt-topo { display: flex; align-items: center; gap: 6px; padding: 16px 12px 10px 18px; padding-top: max(16px, env(safe-area-inset-top)); border-bottom: 1px solid var(--nt-linha); }
@media (max-width: 640px) { .nt-topo { padding-top: 16px; } }
.nt-topo h2 { flex: 1; margin: 0; font-size: 20px; font-weight: 700; letter-spacing: -.021em; }
.nt-icone { width: 40px; height: 40px; border: 0; border-radius: 10px; background: transparent; color: var(--nt-cinza); font-size: 18px; cursor: pointer; }
.nt-icone:hover { background: var(--nt-suave); color: var(--nt-tinta); }
.nt-corpo { overflow: auto; overscroll-behavior: contain; padding: 10px 12px 18px; flex: 1; }
.nt-barra { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 2px 4px 10px; flex-wrap: wrap; }
.nt-filtros { display: inline-flex; background: var(--nt-suave); border-radius: 10px; padding: 3px; }
.nt-filtros button { border: 0; background: transparent; color: var(--nt-cinza); font: inherit; font-size: 14px; font-weight: 600; padding: 6px 12px; border-radius: 8px; cursor: pointer; }
.nt-filtros button[aria-selected="true"] { background: var(--nt-sup); color: var(--nt-tinta); box-shadow: 0 1px 3px rgba(0, 0, 0, .12); }
.nt-filtros b { display: inline-grid; place-items: center; min-width: 18px; height: 18px; padding: 0 5px; margin-left: 4px; border-radius: 9px; background: var(--nt-ruim); color: #fff; font-size: 11px; }
.nt-link { border: 0; background: none; color: var(--nt-cor); font: inherit; font-size: 14px; font-weight: 600; padding: 6px 4px; cursor: pointer; }
.nt-botao { border: 0; border-radius: 10px; background: var(--nt-cor); color: #fff; font: inherit; font-size: 15px; font-weight: 600; padding: 10px 16px; min-height: 42px; cursor: pointer; }
.nt-lista { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.nt-item { position: relative; display: flex; gap: 12px; align-items: flex-start; padding: 12px 30px 12px 10px; border-radius: 12px; cursor: pointer; transition: background .12s; }
.nt-item:hover, .nt-item:focus-visible { background: var(--nt-suave); outline: none; }
.nt-ic { flex: none; width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; font-size: 18px; background: var(--nt-suave); }
.nt-p3 .nt-ic { background: color-mix(in srgb, var(--nt-ruim) 16%, transparent); }
.nt-txt { display: grid; gap: 2px; min-width: 0; }
.nt-txt b { font-size: 15px; font-weight: 600; line-height: 1.3; }
.nt-item:not(.nt-item--nova) .nt-txt b { font-weight: 500; color: var(--nt-cinza); }
.nt-txt span { font-size: 14px; line-height: 1.4; color: var(--nt-cinza); overflow-wrap: anywhere; }
.nt-txt small { font-size: 12px; color: var(--nt-cinza); opacity: .8; }
.nt-ponto { position: absolute; right: 12px; top: 18px; width: 9px; height: 9px; border-radius: 50%; background: var(--nt-cor); }
.nt-p3.nt-item--nova .nt-ponto { background: var(--nt-ruim); }
.nt-vazio { display: grid; justify-items: center; gap: 6px; text-align: center; padding: 48px 20px; color: var(--nt-cinza); }
.nt-vazio > span { font-size: 34px; opacity: .5; }
.nt-vazio b { color: var(--nt-tinta); font-size: 16px; }
.nt-vazio small { font-size: 14px; max-width: 280px; }
.nt-extra { width: 100%; display: flex; align-items: center; gap: 12px; text-align: left; border: 1px solid var(--nt-linha); background: var(--nt-sup); color: var(--nt-tinta);
  border-radius: 12px; padding: 10px 12px; margin-bottom: 10px; font: inherit; cursor: pointer; }
.nt-extra > span:nth-child(2) { flex: 1; display: grid; }
.nt-extra b { font-size: 15px; } .nt-extra small { font-size: 13px; color: var(--nt-cinza); }
.nt-dica { display: grid; gap: 6px; background: var(--nt-suave); border-radius: 14px; padding: 12px 14px; margin-bottom: 10px; font-size: 14px; line-height: 1.4; }
.nt-dica b { font-size: 15px; }
.nt-dica-acoes { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-top: 4px; }
.nt-dica .nt-link { justify-self: start; padding-left: 0; }
.nt-carregando { color: var(--nt-cinza); padding: 20px 8px; }
.nt-ajustes { display: grid; gap: 8px; padding: 0 4px; }
.nt-ajustes h3 { margin: 12px 0 2px; font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; color: var(--nt-cinza); }
.nt-voltar { justify-self: start; padding-left: 0; }
.nt-caixa { border: 1px solid var(--nt-linha); border-radius: 14px; padding: 10px 14px; display: grid; gap: 4px; font-size: 15px; line-height: 1.4; }
.nt-caixa .nt-botao { justify-self: start; }
.nt-ok { color: var(--ok, #16a36a); font-weight: 600; }
.nt-cinza { color: var(--nt-cinza); font-size: 14px; }
.nt-chave { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 44px; cursor: pointer; }
.nt-tipos .nt-chave + .nt-chave { border-top: 1px solid var(--nt-linha); }
.nt-chave input { position: absolute; opacity: 0; pointer-events: none; }
.nt-chave i { flex: none; position: relative; width: 51px; height: 31px; border-radius: 16px; background: var(--nt-linha); transition: background .2s; }
.nt-chave i::after { content: ""; position: absolute; top: 2px; left: 2px; width: 27px; height: 27px; border-radius: 50%; background: #fff; box-shadow: 0 2px 4px rgba(0, 0, 0, .2); transition: transform .2s; }
.nt-chave input:checked + i { background: #34c759; }
.nt-chave input:checked + i::after { transform: translateX(20px); }
.nt-chave input:focus-visible + i { outline: 2px solid var(--nt-cor); outline-offset: 2px; }
.nt-silencio { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 6px 0; }
.nt-silencio input { font: inherit; font-size: 16px; padding: 6px 8px; border: 1px solid var(--nt-linha); border-radius: 8px; background: var(--nt-sup); color: var(--nt-tinta); }
.nt-salvar { margin-top: 10px; }
@keyframes nt-fade { from { opacity: 0; } }
@keyframes nt-lado { from { transform: translateX(30px); opacity: 0; } }
@keyframes nt-sobe { from { transform: translateY(40px); opacity: 0; } }
