/* AF CRM — menções: aviso fixo no canto inferior direito até marcar como lida (25/09/2026) */
.afm-avisos { pointer-events: auto; max-height: calc(100vh - 32px); overflow-y: auto; }
.afm-fixo { animation: afm-entra .25s ease-out; }
@keyframes afm-entra { from { transform: translateY(8px); opacity: 0; } to { transform: none; opacity: 1; } }
.afm-aviso-tx { cursor: pointer; }
.afm-aviso-tx.afm-aberto { display: block; -webkit-line-clamp: unset; overflow: visible; }
.afm-aviso-qd { margin-top: .35rem; font-size: .7rem; color: hsl(var(--muted-foreground)); }
.afm-aviso-acoes { display: flex; gap: .4rem; margin-top: .55rem; flex-wrap: wrap; }
.afm-aviso-acoes .afm-aviso-ir { margin-top: 0; }
.afm-aviso-ok {
  border: 1px solid #ea580c; border-radius: .5rem; background: #ea580c; color: #fff;
  padding: .25rem .6rem; font: inherit; font-size: .75rem; font-weight: 600; cursor: pointer;
}
.afm-aviso-ok:hover { background: #c2410c; border-color: #c2410c; }
.afm-pilha-cab {
  display: flex; align-items: center; justify-content: space-between; gap: .5rem;
  padding: .45rem .7rem; border-radius: .75rem; background: hsl(var(--card)); color: hsl(var(--card-foreground));
  border: 1px solid hsl(var(--border)); box-shadow: 0 8px 24px rgba(0, 0, 0, .14);
}
.afm-pilha-rot { font-size: .78rem; font-weight: 700; }
.afm-pilha-limpar, .afm-pilha-mais {
  border: 0; background: none; font: inherit; font-size: .75rem; font-weight: 600; cursor: pointer;
  color: #c2410c; padding: .15rem .3rem; border-radius: .35rem;
}
.afm-pilha-limpar:hover, .afm-pilha-mais:hover { background: hsl(var(--muted)); }
.afm-pilha-mais {
  align-self: flex-end; background: hsl(var(--card)); border: 1px solid hsl(var(--border));
  padding: .3rem .6rem; box-shadow: 0 6px 18px rgba(0, 0, 0, .12);
}
:is(.dark *) .afm-pilha-limpar, :is(.dark *) .afm-pilha-mais { color: #fdba74; }
@media print { .afm-avisos { display: none !important; } }
