/* Avisos flotantes de vue-snotify (commons/snotify_alerts.js) en pantallas v1 y admin.
   Mismo look que el aviso v2 (toast.css): card blanca, ícono de color y barrita de tiempo,
   en lugar del bloque de color sólido del tema "material".
   Los colores van escritos aquí porque las pantallas v1 no cargan las variables de v2. */
.snotify {
  width: 360px;
  max-width: calc(100vw - 32px);
}
.snotify-rightTop {
  top: 16px;
  right: 16px;
}
.snotify .snotifyToast {
  --aviso-color: #16A34A;
  --aviso-bg: #F0FDF4;
  position: relative;
  margin: 0 0 10px;
  overflow: hidden;
  border: 1px solid #E4E2DC;
  border-radius: 12px;
  background: #FFFFFF;
  box-shadow: 0 12px 32px -12px rgba(0, 0, 0, .22), 0 2px 6px rgba(0, 0, 0, .05);
}
.snotify .snotify-error,
.snotify .snotify-async {
  --aviso-color: #DC2626;
  --aviso-bg: #FEF2F2;
}
.snotify .snotify-info,
.snotify .snotify-confirm,
.snotify .snotify-prompt {
  --aviso-color: #2563EB;
  --aviso-bg: #EFF6FF;
}
.snotify .snotify-warning {
  --aviso-color: #D97706;
  --aviso-bg: #FFFBEB;
}
.snotify .snotifyToast__inner {
  min-height: 0;
  padding: 14px 16px 16px 60px;
  color: #3D3D3D;
}
.snotify .snotifyToast__noIcon {
  padding-left: 16px;
}
.snotify .snotifyToast__title {
  margin: 0 0 2px;
  font-size: 14.5px;
  font-weight: 700;
  line-height: 1.35;
  color: #0A0A0A;
}
.snotify .snotifyToast__body {
  font-size: 13.5px;
  line-height: 1.4;
  color: #737373;
  overflow-wrap: anywhere;
}
/* Ícono: círculo de color con el dibujo encima (reemplaza el ícono grande blanco) */
.snotify .snotify-icon {
  left: 16px;
  right: auto;
  width: 32px;
  height: 32px;
  max-width: 32px;
  max-height: 32px;
  border-radius: 50%;
  background: var(--aviso-bg);
  animation: none;
}
.snotify .snotify-icon::after {
  content: '';
  position: absolute;
  inset: 7px;
  background: var(--aviso-color);
  -webkit-mask: var(--aviso-icon) center / contain no-repeat;
  mask: var(--aviso-icon) center / contain no-repeat;
}
.snotify .snotify-icon--success {
  --aviso-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E");
}
.snotify .snotify-icon--error,
.snotify .snotify-icon--async {
  --aviso-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='M12 6v8M12 18.5v.01'/%3E%3C/svg%3E");
}
.snotify .snotify-icon--info,
.snotify .snotify-icon--warning {
  --aviso-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='M12 10.5V18M12 6v.01'/%3E%3C/svg%3E");
}
.snotify .snotify-icon--confirm,
.snotify .snotify-icon--prompt {
  --aviso-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 9a3 3 0 1 1 4 2.8c-.6.3-1 .9-1 1.6V14M12 18.5v.01'/%3E%3C/svg%3E");
}
/* Barrita delgada abajo con el tiempo que le queda (se pausa al pasar el mouse) */
.snotify .snotifyToast__progressBar {
  position: absolute;
  left: 0;
  bottom: 0;
  height: 3px;
  background: transparent;
}
.snotify .snotifyToast__progressBar__percentage {
  height: 3px;
  background: var(--aviso-color);
  opacity: .5;
}
/* Botones de snotify.confirm: el tema "material" los pinta blancos porque su fondo es de color;
   sobre la card blanca no se veían */
.snotify .snotifyToast__buttons {
  border-top: 1px solid #E4E2DC;
}
.snotify .snotifyToast__buttons button {
  padding: 12px 8px;
  border-color: #E4E2DC;
  font-size: 14px;
  font-weight: 600;
  color: #3D3D3D;
  text-transform: none;
}
.snotify .snotifyToast__buttons .snotifyToast__buttons--bold {
  font-weight: 700;
  color: var(--aviso-color);
}
.snotify .snotifyToast__buttons button::after {
  background: rgba(0, 0, 0, .08);
}
.snotify .snotifyToast__buttons button:hover,
.snotify .snotifyToast__buttons button:focus {
  background: #F5F5F4;
}
.snotify .snotifyToast__buttons button:active {
  background: #E7E5E4;
}
/* En celular: a todo lo ancho */
@media (max-width: 780px) {
  .snotify {
    left: 16px;
    right: 16px;
    width: auto;
    max-width: none;
  }
}
