/* Script: erp_toasts.css */
/* Descripción: Shared toast styles for flash notifications across templates. */
/* Autor: GPT-5.3-Codex */
/* Fecha: 2026-03-28 */
.js-auto-toast {
  position: fixed !important;
  right: 1rem !important;
  top: 1rem !important;
  z-index: 2100 !important;
  width: min(420px, calc(100vw - 2rem));
  margin: 0 !important;
  border-radius: 12px !important;
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.18);
  border: 1px solid rgba(0, 0, 0, 0.08);
  animation: erp-toast-in 180ms ease-out;
}

.js-auto-toast.erp-flash-inline {
  position: relative !important;
  right: auto !important;
  top: auto !important;
  width: 100%;
  margin-bottom: 0.85rem !important;
}

.js-auto-toast.erp-flash,
.js-auto-toast.flash {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.6rem;
  padding: 0.72rem 0.92rem;
  font-size: 0.79rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.js-auto-toast .erp-flash-close,
.js-auto-toast .flash-close {
  background: none;
  border: none;
  cursor: pointer;
  color: inherit;
  opacity: 0.7;
  font-size: 1rem;
  line-height: 1;
  padding: 0 0 0 0.55rem;
  flex-shrink: 0;
}

.js-auto-toast .erp-flash-close:hover,
.js-auto-toast .flash-close:hover {
  opacity: 1;
}

.js-auto-toast.erp-flash-success,
.js-auto-toast.flash.success {
  background: #e8faef;
  color: #14532d;
}

.js-auto-toast.erp-flash-danger,
.js-auto-toast.flash.error {
  background: #ffe7e7;
  color: #8f2323;
}

.js-auto-toast.erp-flash-warning {
  background: #fff5d6;
  color: #92400e;
}

.js-auto-toast.erp-flash-info,
.js-auto-toast.flash.info {
  background: #eaf2ff;
  color: #1e3a8a;
}

@keyframes erp-toast-in {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 640px) {
  .js-auto-toast {
    right: 0.75rem !important;
    left: 0.75rem;
    width: auto;
    max-width: calc(100vw - 1.5rem);
    padding: 0.62rem 0.85rem;
    font-size: 0.8125rem;
  }
}
