/* Notificações: painel do sininho (notificacoes.js) + destaque de aviso urgente */
.nt-pop {
  position: fixed; z-index: 150; width: 380px; max-width: calc(100vw - 24px);
  background: var(--v2-card); color: var(--v2-ink); border: 1px solid var(--v2-line);
  border-radius: 20px; box-shadow: var(--v2-shadow-pop); overflow: hidden;
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
}
.nt-pop.nt-folha {
  left: 0; right: 0; bottom: 0; width: auto; max-width: none; border-radius: 22px 22px 0 0;
  padding-bottom: env(safe-area-inset-bottom);
}
.nt-hd { display: flex; align-items: center; gap: 8px; padding: 14px 14px 10px 18px; }
.nt-hd h6 { margin: 0; flex: 1; font-size: 15px; font-weight: 800; color: var(--v2-ink); }
.nt-abas { display: flex; gap: 2px; }
.nt-abas button {
  border: 0; background: none; font: inherit; font-size: 12px; font-weight: 700; color: var(--v2-ink-2);
  padding: 6px 10px; border-radius: 10px; cursor: pointer;
}
.nt-abas button.on { background: var(--v2-blue-50); color: var(--v2-blue-text); }
.nt-abas em { font-style: normal; }
.nt-lista { max-height: min(440px, 60vh); overflow-y: auto; border-top: 1px solid var(--v2-line); }
.nt-folha .nt-lista { max-height: 62vh; }
.nt-item {
  display: flex; align-items: flex-start; gap: 10px; width: 100%; padding: 11px 16px; border: 0;
  border-bottom: 1px solid var(--v2-line); background: none; color: var(--v2-ink); text-align: left; cursor: pointer; font: inherit;
}
.nt-item:last-child { border-bottom: 0; }
.nt-item:hover, .nt-item:focus-visible { background: var(--v2-hover); outline: none; }
.nt-ic { width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center; flex-shrink: 0; }
.nt-ic svg { width: 17px; height: 17px; }
.nt-ic.or { background: var(--v2-orange-50); color: var(--v2-orange-text); }
.nt-ic.bl { background: var(--v2-blue-50); color: var(--v2-blue-text); }
.nt-ic.pu { background: rgba(108, 92, 231, .12); color: #5847C9; }
.nt-ic.gr { background: rgba(31, 169, 113, .13); color: #157A52; }
.nt-ic.gy { background: var(--v2-soft); color: var(--v2-ink-2); }
html[data-theme="dark"] .nt-ic.pu { color: #A99DF5; }
html[data-theme="dark"] .nt-ic.gr { color: #5FD3A2; }
.nt-tx { flex: 1; min-width: 0; }
.nt-tx b { display: block; font-size: 13px; font-weight: 700; line-height: 1.35; }
.nt-tx small { display: block; margin-top: 2px; font-size: 12px; line-height: 1.4; color: var(--v2-ink-2); }
.nt-item:not(.nova) .nt-tx b { font-weight: 600; color: var(--v2-ink-2); }
.nt-lado { display: flex; flex-direction: column; align-items: flex-end; gap: 7px; flex-shrink: 0; }
.nt-lado time { font-size: 11px; color: var(--v2-gray); white-space: nowrap; }
.nt-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--v2-blue); }
.nt-vazio { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 30px 16px; text-align: center; }
.nt-vazio svg { width: 26px; height: 26px; color: var(--v2-green); margin-bottom: 4px; }
.nt-vazio b { font-size: 14px; }
.nt-vazio span { font-size: 12px; color: var(--v2-ink-2); }
.nt-ft { border-top: 1px solid var(--v2-line); padding: 8px 10px 10px; display: flex; flex-direction: column; gap: 6px; }
.nt-ft:empty { display: none; }
.nt-ft > button {
  align-self: flex-start; display: inline-flex; align-items: center; gap: 6px; border: 0; background: none; font: inherit;
  font-size: 12px; font-weight: 700; color: var(--v2-blue-text); padding: 6px 8px; border-radius: 10px; cursor: pointer;
}
.nt-ft > button:hover { background: var(--v2-hover); }
.nt-ft svg { width: 15px; height: 15px; flex-shrink: 0; }
.nt-push { display: flex; align-items: center; gap: 8px; padding: 6px 8px; font-size: 12px; line-height: 1.4; color: var(--v2-ink-2); }
.nt-push span { flex: 1; }
.nt-push.ok { color: var(--v2-green); font-weight: 600; }
.nt-push button {
  border: 0; border-radius: 10px; padding: 7px 12px; font: inherit; font-size: 12px; font-weight: 800; cursor: pointer;
  background: var(--v2-orange); color: var(--v2-orange-ink); flex-shrink: 0;
}
.nt-push button:disabled { opacity: .6; cursor: default; }

/* aviso urgente com a plataforma aberta (proposta aberta, OS) */
#nt-destaque {
  position: fixed; right: 20px; bottom: 20px; z-index: 139; width: 360px; max-width: calc(100vw - 32px);
  display: flex; align-items: center; gap: 10px; padding: 12px 10px 12px 14px;
  background: var(--v2-card); color: var(--v2-ink); border-radius: 18px;
  box-shadow: var(--v2-shadow-pop), inset 0 0 0 1px var(--v2-line-strong);
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  opacity: 0; transform: translateY(12px); pointer-events: none; transition: opacity .25s, transform .25s;
}
#nt-destaque.on { opacity: 1; transform: none; pointer-events: auto; }
#nt-destaque .nt-ver {
  border: 0; border-radius: 10px; padding: 8px 12px; font: inherit; font-size: 12px; font-weight: 800; cursor: pointer;
  background: var(--v2-blue); color: #fff; flex-shrink: 0;
}
#nt-destaque .nt-x { border: 0; background: none; padding: 4px; color: var(--v2-gray); display: grid; place-items: center; cursor: pointer; }
#nt-destaque .nt-x svg { width: 16px; height: 16px; }
@media (max-width: 760px) {
  #nt-destaque { left: 16px; right: 16px; width: auto; bottom: calc(84px + env(safe-area-inset-bottom)); }
}
@media (prefers-reduced-motion: reduce) {
  #nt-destaque { transition: none; }
}
