/* Toasts (extracted from the prototype rf-datatable.css). Used with ui/js/toast.js */
/* COMPONENT: toasts — RFToast.show({ type, title, message, action, duration, sticky }) */
.rf-toasts { position: fixed; bottom: 86px; left: 50%; z-index: 2400; display: flex; flex-direction: column; gap: 8px; align-items: center; width: min(460px, calc(100vw - 32px)); transform: translateX(-50%); pointer-events: none; }
.rf-toast { display: flex; align-items: flex-start; gap: 10px; width: 100%; padding: 11px 8px 11px 14px; border-radius: calc(12px * var(--radius-k)); background: var(--n-900); color: #fff; font-size: 13px; line-height: 1.45; box-shadow: 0 12px 32px rgba(15, 18, 50, .28); opacity: 0; transform: translateY(10px); transition: opacity .18s ease, transform .18s ease; pointer-events: auto; }
.rf-toast.show { opacity: 1; transform: none; } .rf-toast.out { opacity: 0; transform: translateY(6px); }
.rf-toast-ico { flex: none; margin-top: 1px; font-size: 18px; } .rf-toast-body { display: grid; flex: 1; min-width: 0; padding: 1px 0; } .rf-toast-body b { font-size: 13px; font-weight: 650; } .rf-toast-body span { overflow-wrap: anywhere; }
.rf-toast-action { flex: none; align-self: center; height: 28px; padding: 0 10px; border: 0; border-radius: 8px; background: rgba(255, 255, 255, .14); color: inherit; font-size: 12.5px; font-weight: 650; cursor: pointer; } .rf-toast-action:hover { background: rgba(255, 255, 255, .24); }
.rf-toast-x { display: grid; place-items: center; flex: none; align-self: center; width: 28px; height: 28px; border: 0; border-radius: 8px; background: none; color: inherit; opacity: .7; font-size: 16px; cursor: pointer; } .rf-toast-x:hover { opacity: 1; background: rgba(255, 255, 255, .14); }
.rf-toast:not(.neutral) { background: #fff; color: var(--n-900); border: 1px solid var(--border); box-shadow: 0 12px 32px rgba(15, 18, 50, .16); } .rf-toast:not(.neutral) .rf-toast-action { background: var(--n-100); } .rf-toast:not(.neutral) .rf-toast-action:hover { background: var(--n-200); } .rf-toast:not(.neutral) .rf-toast-x:hover { background: var(--n-100); }
.rf-toast.success .rf-toast-ico { color: #15a06a; } .rf-toast.error .rf-toast-ico { color: #d33a35; } .rf-toast.warning .rf-toast-ico { color: #e0a21a; } .rf-toast.info .rf-toast-ico { color: #2f4ec4; }
.rf-toast.success { border-left: 3px solid #15a06a; } .rf-toast.error { border-left: 3px solid #d33a35; } .rf-toast.warning { border-left: 3px solid #e0a21a; } .rf-toast.info { border-left: 3px solid #2f4ec4; }
@media (max-width: 700px) { .rf-toasts { bottom: 18px; } }
