body {
  background-color: #d9d9d9;
  min-width: 800px;
}

.TopBanner {
  background-color: grey;
}

.datepicker-custom {
  font-size: 1rem;
  padding: 0.5rem;
  color: #495057;
  background-color: #ffffff;
  border: 1px solid #ced4da;
  border-radius: 0.25rem;
  width: 130px;
}

.ruta-input {
  width: 60px;
  /* Tamaño fijo del input */
  text-align: center;
  /* Centrar el texto dentro del input */
}

/* HTML: <div class="loader"></div> */
.loader {
  width: 20px;
  aspect-ratio: 1;
  color: #ffa500;
  position: relative;
  background:
    conic-gradient(from 134deg at top, currentColor 92deg, #0000 0) top,
    conic-gradient(from -46deg at bottom, currentColor 92deg, #0000 0) bottom;
  background-size: 100% 50%;
  background-repeat: no-repeat;
}

.loader:before {
  content: '';
  position: absolute;
  inset: 0;
  --g: currentColor 14.5px, #0000 0 calc(100% - 14.5px), currentColor 0;
  background:
    linear-gradient(45deg, var(--g)),
    linear-gradient(-45deg, var(--g));
  animation: l7 1.5s infinite cubic-bezier(0.3, 1, 0, 1);
}

@keyframes l7 {
  33% {
    inset: -10px;
    transform: rotate(0deg)
  }

  66% {
    inset: -10px;
    transform: rotate(90deg)
  }

  100% {
    inset: 0;
    transform: rotate(90deg)
  }
}


.loaderData {
  width: 48px;
  height: 48px;
  display: block;
  margin: 20px auto;
  position: relative;
  border: 3px solid #FFF;
  border-radius: 50%;
  box-sizing: border-box;
  animation: animloader 2s linear infinite;
  scale: 0.8;
}

.loaderData:after {
  content: '';
  box-sizing: border-box;
  width: 6px;
  height: 24px;
  background: #FFF;
  transform: rotate(-45deg);
  position: absolute;
  bottom: -20px;
  left: 46px;
}

@keyframes animloader {
  0% {
    transform: translate(-10px, -10px);
  }

  25% {
    transform: translate(-10px, 10px);
  }

  50% {
    transform: translate(10px, 10px);
  }

  75% {
    transform: translate(10px, -10px);
  }

  100% {
    transform: translate(-10px, -10px);
  }
}




/* HTML: <div class="loader"></div> */
.loader2 {
  width: 20px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: #f03355;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
  animation: l1 2s infinite cubic-bezier(0.3, 1, 0, 1);
}

@keyframes l1 {
  33% {
    border-radius: 0;
    background: #514b82;
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%)
  }

  66% {
    border-radius: 0;
    background: #ffa516;
    clip-path: polygon(50% 0, 50% 0, 100% 100%, 0 100%)
  }
}

/* Estilos personalizados para la tabla */
#productTable {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0 5px;
  /* Espaciado entre filas para efecto de "tubos" */
}

/* Estilo para cada fila */
.custom-row {
  background-color: #dcd7ca;
  overflow: hidden;
}

/* Estilos para cada celda con bordes redondeados en las primeras y últimas celdas */
.custom-cell {
  padding: 8px;
  border: none;
  text-align: center;
}

/* Redondeo específico para las celdas del borde izquierdo y derecho */
.custom-cell:first-child {
  border-top-left-radius: 25px;
  border-bottom-left-radius: 25px;
}

.custom-cell:last-child {
  border-top-right-radius: 25px;
  border-bottom-right-radius: 25px;
}

/* Estilo específico para input */
.custom-input {
  width: 60px;
}

/* Estilos personalizados para la tabla */
#productTableEdit {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0 5px;
  /* Espaciado entre filas para efecto de "tubos" */
}


/* Overlay que cubre toda la pantalla */
.blocking-loader-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  /* Fondo opaco */
  z-index: 9999;
  /* Asegura que esté encima de todo */
  display: flex;
  justify-content: center;
  align-items: center;
  pointer-events: all;
  /* Permite bloquear clics */
}


/* Bloquea la interacción con el contenido mientras el loader está activo */
body.blocking-loader-active {
  pointer-events: none;
  /* Desactiva todos los clics y eventos */
  user-select: none;
  /* Evita seleccionar texto */
  overflow: hidden;
  /* Previene scroll mientras el loader está activo */
}



/* Contenedor principal del loader */
.blocking-animation-loader {
  width: 90px;
  height: 14px;
  box-shadow: 0 3px 0 #fff;
  position: relative;
  clip-path: inset(-40px 0 -5px);
}

/* Elemento interno animado */
.blocking-animation-loader:before {
  content: "";
  position: absolute;
  inset: auto calc(50% - 17px) 0;
  height: 50px;
  --g: no-repeat linear-gradient(#ccc 0 0);
  background: var(--g), var(--g), var(--g), var(--g);
  background-size: 16px 14px;
  animation:
    l7-1 2s infinite linear,
    l7-2 2s infinite linear;
}

/* Animaciones */
@keyframes l7-1 {

  0%,
  100% {
    background-position: 0 -50px, 100% -50px
  }

  17.5% {
    background-position: 0 100%, 100% -50px, 0 -50px, 100% -50px
  }

  35% {
    background-position: 0 100%, 100% 100%, 0 -50px, 100% -50px
  }

  52.5% {
    background-position: 0 100%, 100% 100%, 0 calc(100% - 16px), 100% -50px
  }

  70%,
  98% {
    background-position: 0 100%, 100% 100%, 0 calc(100% - 16px), 100% calc(100% - 16px)
  }
}

@keyframes l7-2 {

  0%,
  70% {
    transform: translate(0)
  }

  100% {
    transform: translate(200%)
  }
}

.custom-pdf-btn {
  position: relative;
}

.custom-pdf-btn:hover::after {
  content: "Se creará un documento solo con los eventos en el Mapa";
  position: absolute;
  bottom: 120%;
  /* Ajusta la posición */
  left: 50%;
  transform: translateX(-50%);
  background-color: rgba(0, 0, 0, 0.8);
  color: #fff;
  padding: 5px 10px;
  border-radius: 5px;
  white-space: nowrap;
  z-index: 10;
  font-size: 0.8rem;
}

#NextPreviousMonthContainer {
  display: flex;
  /* Asegura que los botones estén en línea */
  justify-content: center;
  /* Centra los botones horizontalmente */
  gap: 60px;
  /* Espacio entre los botones */
  margin-bottom: 10px;
}

/* Ajustes para el dropdown */
.dropdown-menu {
  max-height: 300px; /* Altura máxima para scroll si hay muchas opciones */
  overflow-y: auto; /* Habilita scroll */
}

/* Ajuste adicional para el botón blanco */
.btn-light {
  border: 1px solid #ccc; /* Borde para destacar */
  color: #333;
}

