/* One top-right notification stack for authenticated pages, login and standalone POS. */
#toast-container {
    position: fixed;
    inset: max(1rem, env(safe-area-inset-top)) max(1rem, env(safe-area-inset-right)) auto auto;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    overflow: visible;
    width: min(24rem, calc(100vw - 2rem));
    max-height: calc(100dvh - 2rem);
    display: flex;
    flex-direction: column;
    gap: .65rem;
    z-index: 10000;
    pointer-events: none;
    font-family: Inter, sans-serif;
}
.erp-toast {
    --toast-color: #2563eb;
    --toast-soft: #eff6ff;
    display: flex;
    align-items: flex-start;
    gap: .75rem;
    padding: .95rem 1rem;
    border: 1px solid #e2e8f0;
    border-left: 4px solid var(--toast-color);
    border-radius: .8rem;
    background: white;
    color: #24364c;
    box-shadow: 0 8px 28px #0f172a24;
    pointer-events: auto;
    font-size: .8125rem;
    line-height: 1.5;
}
.erp-toast[data-kind=success] { --toast-color: #047857; --toast-soft: #ecfdf5; }
.erp-toast[data-kind=error] { --toast-color: #be123c; --toast-soft: #fff1f2; }
.erp-toast[data-kind=warning] { --toast-color: #a16207; --toast-soft: #fefce8; }
.erp-toast-icon { display: grid; place-items: center; flex: 0 0 24px; height: 24px; border-radius: 50%; color: var(--toast-color); background: var(--toast-soft); font-size: 15px; font-weight: 750; }
.erp-toast-message { flex: 1; min-width: 0; white-space: pre-line; overflow-wrap: anywhere; }
.erp-toast-dismiss { display: grid; place-items: center; flex: 0 0 28px; min-height: 28px; margin: -2px -4px 0 0; border: 0; border-radius: 6px; background: transparent; color: #64748b; cursor: pointer; font-size: 20px; line-height: 1; }
.erp-toast-dismiss:hover { background: #f1f5f9; color: #0f172a; }
.erp-toast-dismiss:focus-visible { outline: 2px solid var(--toast-color); outline-offset: 2px; }
@media (max-width: 639px) {
    #toast-container { inset: max(.75rem, env(safe-area-inset-top)) .75rem auto auto; width: calc(100vw - 1.5rem); }
    .erp-toast { padding: .85rem; }
}
@media print { #toast-container { display: none !important; } }
