/*--------------------------------------------------------------
# Tamaños UniModal
--------------------------------------------------------------*/
.modal-dialog.xll-large {
  width: 100% !important;
  max-width: unset;
}

.modal-dialog.xl-large {
  width: 95% !important;
  max-width: unset;
}

.modal-dialog.large {
  width: 85% !important;
  max-width: unset;
}

.modal-dialog.mid-large {
  width: 60% !important;
  max-width: unset;
}

/*--------------------------------------------------------------
# Preloader
--------------------------------------------------------------*/
#preloader {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 9999;
  overflow: hidden;
  background: #fff;
}

#preloader:before {
  content: "";
  position: fixed;
  top: calc(50% - 30px);
  left: calc(50% - 30px);
  border: 6px solid #FC7926;
  border-top-color: #d1e6f9;
  border-radius: 50%;
  width: 60px;
  height: 60px;
  -webkit-animation: animate-preloader 1s linear infinite;
  animation: animate-preloader 1s linear infinite;
}

#preloader2 {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 9999;
  overflow: hidden;
  background: #ffffff82;
}

#preloader2:before {
  content: "";
  position: fixed;
  top: calc(50% - 30px);
  left: calc(50% - 30px);
  border: 6px solid #FC7926;
  border-top-color: #d1e6f9;
  border-radius: 50%;
  width: 60px;
  height: 60px;
  -webkit-animation: animate-preloader 1s linear infinite;
  animation: animate-preloader 1s linear infinite;
}

@-webkit-keyframes animate-preloader {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

@keyframes animate-preloader {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

/*--------------------------------------------------------------
# toast Notificaciones
--------------------------------------------------------------*/
#alert_toast {
  position: fixed;
  bottom: 10px;
  right: 10px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.toast {
  pointer-events: none; /* No bloquea clics cuando está oculto */ /*! Corrección al bug 'Error de AmCore Unimodal #2' */
  width: 300px;
  height: auto;
  min-height: 50px;
  border-radius: 5px;
  margin: 0.5rem;
  color: #ffffff;
  font-weight: 900;
  font-size: 17px !important;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: row-reverse;
  z-index: 1050; /* Nivel estándar para notificaciones en Bootstrap */
}

.am-info {
  background-color: #2196f3 !important
}

a.am-info:focus,
a.am-info:hover,
button.am-info:focus,
button.am-info:hover {
  background-color: #2196f3 !important
}

.am-success {
  background-color: #4caf50 !important
}

a.am-success:focus,
a.am-success:hover,
button.am-success:focus,
button.am-success:hover {
  background-color: #4caf50 !important
}

.am-error {
  background-color: #ff5252 !important
}

a.am-error:focus,
a.am-error:hover,
button.am-error:focus,
button.am-error:hover {
  background-color: #ff5252 !important
}

.am-warning {
  background-color: #ffc107 !important
}

a.am-warning:focus,
a.am-warning:hover,
button.am-warning:focus,
button.am-warning:hover {
  background-color: #ffc107 !important
}


/* switch */
.am-switch {
  position: relative;
  display: inline-block;
  width: 60px;
  height: 34px;
}

.am-switch input {display:none;}

.am-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  -webkit-transition: .4s;
  transition: .4s;
}

.am-slider:before {
  position: absolute;
  content: "";
  height: 26px;
  width: 26px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  -webkit-transition: .4s;
  transition: .4s;
}

input:checked + .am-slider {
  background-color: #2196F3;
}

input:focus + .am-slider {
  box-shadow: 0 0 1px #2196F3;
}

input:checked + .am-slider:before {
  -webkit-transform: translateX(26px);
  -ms-transform: translateX(26px);
  transform: translateX(26px);
}

/* Rounded am-sliders */
.am-slider.round {
  border-radius: 34px;
}

.am-slider.round:before {
  border-radius: 50%;}
  
  /*red color
  -------------------------------
  */
  .am-slider-red {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #FE8176;
  -webkit-transition: .4s;
  transition: .4s;
}

.am-slider-red:before {
  position: absolute;
  content: "";
  height: 26px;
  width: 26px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  -webkit-transition: .4s;
  transition: .4s;
}

input:checked + .am-slider-red {
  background-color: #FE2712;
}

input:focus + .am-slider-red {
  box-shadow: 0 0 1px #FE2712;
}

input:checked + .am-slider-red:before {
  -webkit-transform: translateX(26px);
  -ms-transform: translateX(26px);
  transform: translateX(26px);
}

/* Rounded am-sliders */
.am-slider-red.round {
  border-radius: 34px;
}

.am-slider-red.round:before {
  border-radius: 50%;
}

/*yellow
--------------------------------
*/

.am-slider-yellow {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #FDE281;
  -webkit-transition: .4s;
  transition: .4s;
}

.am-slider-yellow:before {
  position: absolute;
  content: "";
  height: 26px;
  width: 26px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  -webkit-transition: .4s;
  transition: .4s;
}

input:checked + .am-slider-yellow {
  background-color: #FCCB1A;
}

input:focus + .am-slider-yellow {
  box-shadow: 0 0 1px #FCCB1A;
}

input:checked + .am-slider-yellow:before {
  -webkit-transform: translateX(26px);
  -ms-transform: translateX(26px);
  transform: translateX(26px);
}

/* Rounded am-sliders */
.am-slider-yellow.round {
  border-radius: 34px;
}

.am-slider-yellow.round:before {
  border-radius: 50%;
}

/*green
-----------------------------------
*/
.am-slider-green {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #9BD770;
  -webkit-transition: .4s;
  transition: .4s;
}

.am-slider-green:before {
  position: absolute;
  content: "";
  height: 26px;
  width: 26px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  -webkit-transition: .4s;
  transition: .4s;
}

input:checked + .am-slider-green {
  background-color: #66B032;
}

input:focus + .am-slider-green {
  box-shadow: 0 0 1px #66B032;
}

input:checked + .am-slider-green:before {
  -webkit-transform: translateX(26px);
  -ms-transform: translateX(26px);
  transform: translateX(26px);
}

/* Rounded am-sliders */
.am-slider-green.round {
  border-radius: 34px;
}

.am-slider-green.round:before {
  border-radius: 50%;
}

/*pink-purple
----------------------------------
*/
.am-slider-pink-purple {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #EC6988;
  -webkit-transition: .4s;
  transition: .4s;
}

.am-slider-pink-purple:before {
  position: absolute;
  content: "";
  height: 26px;
  width: 26px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  -webkit-transition: .4s;
  transition: .4s;
}

input:checked + .am-slider-pink-purple {
  background-color: #AE0D7A;
}

input:focus + .am-slider-pink-purple {
  box-shadow: 0 0 1px #AE0D7A;
}

input:checked + .am-slider-pink-purple:before {
  -webkit-transform: translateX(26px);
  -ms-transform: translateX(26px);
  transform: translateX(26px);
}

/* Rounded am-sliders */
.am-slider-pink-purple.round {
  border-radius: 34px;
}

.am-slider-pink-purple.round:before {
  border-radius: 50%;
}

/*orange
-------------------------
*/
.am-slider-orange {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #FEAB6D;
  -webkit-transition: .4s;
  transition: .4s;
}

.am-slider-orange:before {
  position: absolute;
  content: "";
  height: 26px;
  width: 26px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  -webkit-transition: .4s;
  transition: .4s;
}

input:checked + .am-slider-orange {
  background-color: #FC7307;
}

input:focus + .am-slider-orange {
  box-shadow: 0 0 1px #FC7307;
}

input:checked + .am-slider-orange:before {
  -webkit-transform: translateX(26px);
  -ms-transform: translateX(26px);
  transform: translateX(26px);
}

/* Rounded am-sliders */
.am-slider-orange.round {
  border-radius: 34px;
}

.am-slider-orange.round:before {
  border-radius: 50%;
}