* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Arial, sans-serif;
  margin: 20px;
  font-size: 13px;
}

header {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
}
header img {
  height: 50px;
  margin-right: 20px;
}
header h1 {
  margin: 0;
}
table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 20px;
}

.main-wrap {
  display: flex;
  flex-direction: column;
  
}

.refresh-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.list-filter {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding: 12px 0 18px;
}

.list-filter label {
  font-weight: bold;
}

.list-filter select {
  min-width: 260px;
  padding: 8px 10px;
}

.filter-download {
  display: flex;
  flex-direction: column;
  padding-top: 2rem;
  padding-bottom: 2rem;
  border-top: 1px solid #15a5bc;
  
}
.filters {
  display: flex;
  flex-direction: row;
  justify-content: flex-start;
  

}
h5 {
  font-size: 1.5rem;
}
h6 {
  font-size: 1.2rem;
  font-weight: normal;
}
.title-section {
  
  margin-bottom: 1.5rem;
}
table,
th,
td {
  border: 1px solid black;
}
th,
td {
  padding: 15px;
  text-align: left;
}
th {
  background-color: #f2f2f2;
}
input[type='text'] {
  margin-bottom: 20px;
  padding: 10px;
  width: 100%;
  box-sizing: border-box;
}
button {
  background-color: #15a5bc; /* Color del fondo */
  color: white; /* Color del texto */
  border: none;
  padding: 10px 20px;
  border-radius: 5px; /* Bordes redondeados */
  cursor: pointer;
  font-size: 13px;
  transition: background-color 0.3s, box-shadow 0.3s; /* Efectos suaves */
}

button:hover {
  background-color: #BCE4EB; /* Color en hover */
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* Sombra suave en hover */
  color: #15A5BC;
}

button:active {
  background-color: #BCE4EB; /* Color al presionar */
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); /* Menor sombra al presionar */
  color: #15A5BC;
}
.tableOverflow {
  overflow-x: auto;
}

.pagination {
  padding: 10px;
  padding-bottom: 20px;
}

.sortable {
  cursor: pointer;
}
.sortable i {
  vertical-align: middle;
  font-size: 14px;
  margin-left: 5px;
}

/* BOTONES E ICONOS */

.btn-pause {
  background-color: red;
  color: white;
  border: none;
  padding: 10px 20px;
  cursor: pointer;
}
.btn-resume {
  background-color: green;
  color: white;
  border: none;
  padding: 10px 20px;
  cursor: pointer;
}
.btn-csv {
  background-color: black;
  color: white;
  border: none;
  padding: 10px 20px;
  cursor: pointer;
}

.material-icons {
  font-size: 14px;
  cursor: pointer;
}


.btn-resume {
  background-color: green;
  color: white;
  border: none;
  padding: 10px 20px;
  cursor: pointer;
}

.pause-indicator {
  display: none;
  position: absolute;
  left: 50%;
  top: 90%;
  transform: translate(-50%, -50%);
  padding: 10px 20px;
  background-color: yellow;
  color: black;
  font-weight: bold;
  border: 2px solid black;
  border-radius: 5px;
  z-index: 1000;
}

/* CAMPOS DE FILTROS */

.filtered {
  padding-left: 15px;
  padding-top: 4px;
  padding-bottom: 4px;
}

.filtered_select option {
  font-size: 14px;
}
#imsiDropdown {
 font-size: 24px;
}

/* MAPA */
.map-page {
  height: 100vh; /* 100% de la altura de la ventana */
  display: flex;
  justify-content: flex-start;
  align-items: center;
  background-color: white;
  flex-direction: row;
}

.map-page #map {
  height: 80vh; /* 80% de la altura de la ventana */
  width: 100vw; /* 80% del ancho de la ventana */
  border: 1px solid #15a5bc;
  border-radius: 2px;
}

.btn-back {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 5;
  padding: 10px;
  background-color: #18B9CD;
  color: #414141;
  cursor: pointer;
}

/* PAGINA ERROR */
.error-page {
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  text-align: center;
  background-color: #F8F9FA;
  color:  #18B9CD;
}

.error-container{
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  text-align: center;
  background-color: #F8F9FA;
  color:  #18B9CD;
}
.error-container h1 {
  font-size: 3em;
  margin-bottom: 20px;
}
.error-container p {
  font-size: 1.5em;
  margin-bottom: 20px;
}
.error-container a {
  padding: 10px 20px;
  background-color: #f5c6cb;
  color: #721c24;
  text-decoration: none;
  border-radius: 5px;
  transition: background-color 0.3s;
}
.error-container a:hover {
  background-color: #f1b0b7;
}
/* MODAL */
.modal {
  display: none;
  position: fixed;
  z-index: 1;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0,0,0,0.4);
}

.modal-content {
  background-color: #fefefe;
  margin: 15% auto;
  padding: 20px;
  border: 1px solid #888;
  width: 80%;
}

.modal-footer {
  padding: 10px;
  text-align: right;
}

.modal-close {
  background-color: red;
  color: white;
  border: none;
  padding: 10px;
  cursor: pointer;
}

/* MODAL */
/******************
MODAL IDIOMAS
*******************/
/* Estilos para el modal */
.custom-modal {
  display: none;
  position: fixed;
  z-index: 1;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgb(0, 0, 0);
  background-color: rgba(0, 0, 0, 0.4);
}

.custom-modal-content {
  background-color: #fff;
  margin: 303px auto;
  padding: 20px;
  border: 1px solid #888;
  width: 395px;
  border-radius: 4px;
  text-align: center;
  height: 474px;
  text-align: justify;
  font-size: 19px;
  font-weight: 400;
  padding: 60px;
}

/* Estilos para el botón de cerrar */
.custom-close {
  color: #aaa;
  float: right;
  font-size: 28px;
  font-weight: bold;
}

.custom-close:hover,
.custom-close:focus {
  color: black;
  text-decoration: underline;
  cursor: pointer;
}

.flex-wrapper {
  display: flex; /* Activar flexbox */
  flex-direction: column; /* Alinear elementos verticalmente */
  align-items: stretch; /* Asegurar que los hijos ocupen todo el ancho disponible */
  overflow-x: auto; /* Permitir scroll horizontal si la tabla es más grande que el contenedor */
  max-width: 100%; /* Evitar que el contenedor sea más ancho que la ventana */
  box-sizing: border-box; /* Incluir el padding dentro del ancho/alto */
}

.tableOverflow {
  display: block;
  max-width: 100%; /* La tabla ocupa todo el ancho disponible */
  overflow-x: auto; /* Habilitar scroll horizontal para tablas muy anchas */

}

table {
  width: 100%; /* La tabla se adapta al ancho del contenedor */
  border-collapse: collapse; /* Evitar bordes duplicados */
}

th, td {
  padding: 8px;
  text-align: left;
  border: 1px solid #ddd; /* Bordes ligeros */
  white-space: nowrap; /* Evitar que el texto se divida en varias líneas */
}

th {
  background-color: #f4f4f4; /* Color de fondo para el encabezado */
}


@media screen and (max-width: 768px) {
  th, td {
      white-space: normal; /* Permite dividir texto en líneas */
      font-size: 12px; /* Reduce el tamaño del texto */
  }
}

/* Estilo para las filas con motion = 1 */
.motion-alert {
    background-color: #9ad0d8 !important;  /* Fondo rojo claro */
}
