/* =====================================================================================================================
   (s337) AVISOS CON EL DISEÑO DE LA APP. El dueño: "todos los avisos del sistema de confirmacion ... el diseño es antiguo,
   necesito un mejor diseño para todos y cada uno de los avisos". Son ~6,000 Swal.fire en el escolar y el punto de venta:
   en vez de tocarlos uno por uno, este archivo les cambia la cara a TODOS (mismo comportamiento, mismos textos y botones).
   Estilo del aviso "Solicitud enviada" (s334) que le gusto: esquinas redondas, icono suave en circulo, titulo fuerte,
   texto gris y botones grandes y redondeados.
   - Los iconos se dibujan con CSS (no dependen de Font Awesome: tambien funcionan en las pantallas de entrar).
   - El boton principal sale en rojo de la marca; si un aviso pide otro color (confirmButtonColor), se respeta.
   - El boton "Cancelar" sale gris claro, salvo que el aviso pida su propio color.
   - Los avisos chiquitos de arriba (toast) tambien se redondean, con su icono chico.
   Se carga DESPUES de sweetalert2.all.min.js (que mete su propio estilo al cargar), asi este gana.
   IDENTICO en prueba/utilitarios/sweetalert2/ y puntoventa/utilitarios/sweetalert2/.
   ===================================================================================================================== */

/* ---- la ventana ---- */
.swal2-container .swal2-popup:not(.swal2-toast) {
    border-radius: 22px;
    padding: 1.5em 1.25em 1.35em;
    box-shadow: 0 18px 48px rgba(20, 20, 19, .18);
    color: #2c2c2a;
}
.swal2-container .swal2-popup:not(.swal2-toast) .swal2-title {
    font-size: 1.3rem;
    font-weight: 800;
    color: #2c2c2a;
    line-height: 1.28;
    padding: .55em .9em 0;
}
.swal2-container .swal2-popup:not(.swal2-toast) .swal2-html-container {
    font-size: .98rem;
    color: #5f5e5a;
    line-height: 1.5;
    margin: .6em 1em .15em;
}
.swal2-container .swal2-popup:not(.swal2-toast) .swal2-html-container b,
.swal2-container .swal2-popup:not(.swal2-toast) .swal2-html-container strong { color: #2c2c2a; }
.swal2-container .swal2-popup .swal2-footer { border-top: 1px solid #f1efe8; color: #888780; font-size: .88rem; margin: 1.1em 1em 0; padding: .9em 0 0; }
.swal2-container .swal2-popup .swal2-close { color: #b4b2a9; border-radius: 50%; }
.swal2-container .swal2-popup .swal2-close:hover { color: #5f5e5a; }
.swal2-container .swal2-popup .swal2-close:focus { box-shadow: none; }

/* ---- el icono: circulo suave de color con su dibujo ---- */
.swal2-container .swal2-popup:not(.swal2-toast) .swal2-icon {
    width: 66px; height: 66px; margin: .35em auto .2em;
    border: 0 !important; border-radius: 50%;
    position: relative; overflow: visible;
}
.swal2-container .swal2-popup .swal2-icon > * { display: none !important; }
.swal2-container .swal2-popup .swal2-icon::before,
.swal2-container .swal2-popup .swal2-icon::after { content: ''; position: absolute; box-sizing: border-box; }
.swal2-container .swal2-popup:not(.swal2-toast) .swal2-icon.swal2-icon-show { animation: iee-aviso-pop .38s cubic-bezier(.2, .9, .3, 1.25) !important; }
@keyframes iee-aviso-pop { 0% { transform: scale(.5); opacity: 0; } 100% { transform: scale(1); opacity: 1; } }

/* palomita (exito) */
.swal2-container .swal2-popup .swal2-icon.swal2-success { background: #e1f5ee; }
.swal2-container .swal2-popup .swal2-icon.swal2-success::before {
    left: 50%; top: 46%; width: 15px; height: 27px;
    border: solid #1e7b3c; border-width: 0 4.5px 4.5px 0; border-radius: 1px;
    transform: translate(-50%, -50%) rotate(45deg);
}
/* tache (error) */
.swal2-container .swal2-popup .swal2-icon.swal2-error { background: #fcebeb; }
.swal2-container .swal2-popup .swal2-icon.swal2-error::before,
.swal2-container .swal2-popup .swal2-icon.swal2-error::after {
    left: 50%; top: 50%; width: 28px; height: 4.5px; border-radius: 3px; background: #c62828;
    transform: translate(-50%, -50%) rotate(45deg);
}
.swal2-container .swal2-popup .swal2-icon.swal2-error::after { transform: translate(-50%, -50%) rotate(-45deg); }
/* ! (advertencia), i (informacion), ? (pregunta) */
.swal2-container .swal2-popup .swal2-icon.swal2-warning,
.swal2-container .swal2-popup .swal2-icon.swal2-info,
.swal2-container .swal2-popup .swal2-icon.swal2-question { display: flex; align-items: center; justify-content: center; }
.swal2-container .swal2-popup .swal2-icon.swal2-warning::before,
.swal2-container .swal2-popup .swal2-icon.swal2-info::before,
.swal2-container .swal2-popup .swal2-icon.swal2-question::before {
    position: static; font-family: Arial, Helvetica, sans-serif; font-weight: 900; font-size: 34px; line-height: 1;
}
.swal2-container .swal2-popup .swal2-icon.swal2-warning  { background: #fdf1dc; }
.swal2-container .swal2-popup .swal2-icon.swal2-warning::before  { content: '!'; color: #b26a00; }
.swal2-container .swal2-popup .swal2-icon.swal2-info     { background: #e6f1fb; }
.swal2-container .swal2-popup .swal2-icon.swal2-info::before     { content: 'i'; color: #1565c0; font-family: Georgia, 'Times New Roman', serif; font-size: 36px; }
.swal2-container .swal2-popup .swal2-icon.swal2-question { background: #efeef6; }
.swal2-container .swal2-popup .swal2-icon.swal2-question::before { content: '?'; color: #4a4b63; }

/* ---- los botones: grandes, redondeados y del mismo ancho ---- */
.swal2-container .swal2-popup:not(.swal2-toast) .swal2-actions {
    width: 100%; margin: 1.3em 0 0; padding: 0 .6em; gap: 10px; box-sizing: border-box;
}
.swal2-container .swal2-popup:not(.swal2-toast) .swal2-actions .swal2-styled {
    flex: 1 1 0; min-width: 120px; max-width: 100%; margin: 0;
    min-height: 46px; padding: .65em 1.2em; border-radius: 14px;
    font-size: 1rem; font-weight: 800; letter-spacing: .01em;
}
.swal2-container .swal2-popup .swal2-styled.swal2-confirm { background-color: #e62324; }
.swal2-container .swal2-popup .swal2-styled.swal2-deny { background-color: #5f5e5a; }
.swal2-container .swal2-popup .swal2-styled.swal2-cancel:not([style*="background"]) { background-color: #f1efe8; color: #3a3a38; }
.swal2-container .swal2-popup .swal2-styled.swal2-cancel:not([style*="background"]):hover { background-image: none; background-color: #e7e4da; }
.swal2-container .swal2-popup .swal2-styled:focus { box-shadow: 0 0 0 3px rgba(230, 35, 36, .22); }
.swal2-container .swal2-popup .swal2-styled.swal2-cancel:focus { box-shadow: 0 0 0 3px rgba(95, 94, 90, .2); }
.swal2-container .swal2-popup .swal2-loader { border-color: #e62324 transparent #e62324 transparent; }

/* ---- lo que se escribe en el aviso ---- */
.swal2-container .swal2-popup .swal2-input,
.swal2-container .swal2-popup .swal2-textarea,
.swal2-container .swal2-popup .swal2-select,
.swal2-container .swal2-popup .swal2-file {
    border: 1px solid #e3e2dc; border-radius: 12px; box-shadow: none; color: #2c2c2a;
}
.swal2-container .swal2-popup .swal2-input:focus,
.swal2-container .swal2-popup .swal2-textarea:focus,
.swal2-container .swal2-popup .swal2-select:focus {
    border-color: #e62324; box-shadow: 0 0 0 3px rgba(230, 35, 36, .15); outline: none;
}
.swal2-container .swal2-popup .swal2-input-label { color: #5f5e5a; font-weight: 700; }
.swal2-container .swal2-popup .swal2-validation-message {
    background: #fcebeb; color: #a32d2d; border-radius: 12px; margin: .9em 1em 0; padding: .6em .9em; font-size: .92rem;
}
.swal2-container .swal2-popup .swal2-validation-message::before { background-color: #c62828; }
.swal2-container .swal2-popup .swal2-timer-progress-bar { background: rgba(230, 35, 36, .55); }

/* ---- los avisos chiquitos de arriba (toast) ---- */
.swal2-container .swal2-popup.swal2-toast {
    border-radius: 16px; padding: .7em 1em; box-shadow: 0 10px 30px rgba(20, 20, 19, .16); color: #2c2c2a;
}
.swal2-container .swal2-popup.swal2-toast .swal2-title { font-size: .98rem; font-weight: 800; color: #2c2c2a; }
.swal2-container .swal2-popup.swal2-toast .swal2-html-container { font-size: .9rem; color: #5f5e5a; }
.swal2-container .swal2-popup.swal2-toast .swal2-icon {
    width: 32px; height: 32px; min-width: 32px; margin: 0 .55em 0 0; border: 0 !important; border-radius: 50%;
    position: relative; overflow: visible;
}
.swal2-container .swal2-popup.swal2-toast .swal2-icon.swal2-success::before { width: 8px; height: 15px; border-width: 0 3px 3px 0; }
.swal2-container .swal2-popup.swal2-toast .swal2-icon.swal2-error::before,
.swal2-container .swal2-popup.swal2-toast .swal2-icon.swal2-error::after { width: 15px; height: 3px; }
.swal2-container .swal2-popup.swal2-toast .swal2-icon.swal2-warning::before,
.swal2-container .swal2-popup.swal2-toast .swal2-icon.swal2-question::before { font-size: 18px; }
.swal2-container .swal2-popup.swal2-toast .swal2-icon.swal2-info::before { font-size: 19px; }
.swal2-container .swal2-popup.swal2-toast .swal2-styled { border-radius: 10px; font-weight: 700; }

/* ---- celular: un poco mas compacto ---- */
@media (max-width: 575.98px) {
    .swal2-container .swal2-popup:not(.swal2-toast) { border-radius: 20px; padding: 1.25em 1em 1.1em; }
    .swal2-container .swal2-popup:not(.swal2-toast) .swal2-title { font-size: 1.18rem; padding: .5em .6em 0; }
    .swal2-container .swal2-popup:not(.swal2-toast) .swal2-html-container { margin: .55em .7em .1em; }
    .swal2-container .swal2-popup:not(.swal2-toast) .swal2-icon { width: 58px; height: 58px; }
    .swal2-container .swal2-popup:not(.swal2-toast) .swal2-actions { padding: 0 .3em; }
}
