/* ═══════════════════════════════════════════════
   🔔 Toast — Notificaciones esquina derecha
   ═══════════════════════════════════════════════ */

#toast-container {
    position: fixed;
    top: 70px;
    right: 20px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
    max-width: 380px;
}

.verlyaerp-toast {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 18px;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.12), 0 2px 8px rgba(0, 0, 0, 0.06);
    font-size: 14px;
    font-weight: 500;
    color: #333;
    pointer-events: all;
    opacity: 0;
    transform: translateX(100%);
    transition: opacity 0.3s ease, transform 0.3s ease;
    border-left: 4px solid #ccc;
    min-width: 280px;
}

.verlyaerp-toast.toast-enter {
    opacity: 1;
    transform: translateX(0);
}

.verlyaerp-toast.toast-exit {
    opacity: 0;
    transform: translateX(100%);
}

/* ── Variantes ── */

.toast-success {
    border-left-color: #27ae60;
}

.toast-success .toast-icon {
    background: #27ae60;
    color: #fff;
}

.toast-error {
    border-left-color: #e74c3c;
}

.toast-error .toast-icon {
    background: #e74c3c;
    color: #fff;
}

.toast-info {
    border-left-color: #3498db;
}

.toast-info .toast-icon {
    background: #3498db;
    color: #fff;
}

.toast-warning {
    border-left-color: #f39c12;
}

.toast-warning .toast-icon {
    background: #f39c12;
    color: #fff;
}

/* ── Icono ── */

.toast-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    font-size: 14px;
    font-weight: 700;
    flex-shrink: 0;
}

/* ── Mensaje ── */

.toast-message {
    flex: 1;
    line-height: 1.4;
}

/* ── Botón cerrar ── */

.toast-close {
    background: none !important;
    border: none !important;
    box-shadow: none !important;
    width: auto !important;
    height: auto !important;
    padding: 0 !important;
    margin: 0 !important;
    font-size: 18px;
    color: #aaa;
    cursor: pointer;
    line-height: 1;
    flex-shrink: 0;
    display: inline !important;
}

.toast-close:hover {
    color: #555;
}

/* ── Responsive ── */

@media (max-width: 480px) {
    #toast-container {
        right: 10px;
        left: 10px;
        max-width: none;
    }

    .verlyaerp-toast {
        min-width: auto;
    }
}