/* janela de aviso e confirmação do Apurei */
.ap-dlg { width: min(440px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); margin: auto; padding: 24px; border: 0; border-radius: 16px; background: #fff; color: #212b30; font: 15px/1.5 Inter, system-ui, -apple-system, "Segoe UI", sans-serif; box-shadow: 0 18px 50px rgba(17, 24, 39, .28); overflow-wrap: anywhere; }
.ap-dlg[open] { animation: ap-in .18s ease-out; }
.ap-dlg::backdrop { background: rgba(17, 19, 24, .55); }
.ap-top { display: flex; gap: 14px; align-items: flex-start; }
.ap-ico { flex: none; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: #eaf1ff; color: #0b4fc9; }
.ap-ico svg { width: 22px; height: 22px; }
.ap-dlg h2 { margin: 0; padding-top: 7px; font: 700 19px/1.35 Quicksand, Inter, system-ui, sans-serif; letter-spacing: 0; color: inherit; }
.ap-dlg p { margin: 6px 0 0; color: #5f6b73; }
.ap-dlg input { width: 100%; min-height: 44px; margin-top: 12px; padding: 9px 11px; border: 1px solid #b4bdc5; border-radius: 9px; font: inherit; color: inherit; }
.ap-btns { display: flex; justify-content: flex-end; gap: 10px; margin-top: 22px; }
.ap-btns button { min-height: 44px; padding: 9px 18px; border: 1px solid #cfd5db; border-radius: 9px; background: #fff; color: #212b30; font: 600 14px Inter, system-ui, sans-serif; cursor: pointer; }
.ap-btns button:hover { background: #f1f4f8; }
.ap-btns .ap-ok { border-color: #0b4fc9; background: #0b4fc9; color: #fff; }
.ap-btns .ap-ok:hover { background: #093f9f; }
.ap-dlg.danger .ap-ico { background: #fde8e8; color: #c0262d; }
.ap-dlg.danger .ap-ok { border-color: #c0262d; background: #c0262d; }
.ap-dlg.danger .ap-ok:hover { background: #9e1c22; }
.ap-btns button:focus-visible { outline: 3px solid #0b4fc9; outline-offset: 2px; }
@keyframes ap-in { from { opacity: 0; transform: translateY(8px) scale(.98); } }
@media (max-width: 480px) { .ap-btns { flex-direction: column-reverse; } }
@media (prefers-reduced-motion: reduce) { .ap-dlg[open] { animation: none; } }
@media print { .ap-dlg { display: none; } }
