/*
 * DestecToast (tema 0.2.62): contenedor y toasts de notificación (functions-notificaciones.php,
 * assets/js/destec-toasts.js). Va sobre el Toast de Bootstrap 5.3.
 */

/* Contenedor único: arriba a la derecha, bajo la franja de entorno Local (0px en producción) y
   por encima de los modales (z-index de Bootstrap para toasts: 1090) */
.destec-toasts {
    top: var(--destec-franja-alto, 0px) !important;
    z-index: 1090;
    max-width: 100%;
}

/* Cada toast: ancho fijo en escritorio, completo en celulares */
.destec-toast {
    width: 350px;
    max-width: calc(100vw - 2rem);
    border-left: 4px solid var(--bs-secondary) !important;
    /* (0.2.72) Fondo blanco sólido (Bootstrap lo trae semitransparente) y menos espacio entre toasts apilados */
    --bs-toast-bg: #fff;
    --bs-toast-header-bg: #fff;
    --bs-toast-spacing: .5rem;
}

.destec-toast-exito {
    border-left-color: var(--bs-success) !important;
}

.destec-toast-error {
    border-left-color: var(--bs-danger) !important;
}

.destec-toast-aviso {
    border-left-color: #FFA700 !important;
}

.destec-toast-aviso .text-warning {
    color: #FFA700 !important;
}

/* Mensajes largos (nombres de productos, rutas) no rompen el ancho */
.destec-toast .toast-header strong,
.destec-toast .toast-body {
    overflow-wrap: anywhere;
}
