* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Nunito, -apple-system, BlinkMacSystemFont, Segoe UI, Roboto,
    Helvetica Neue, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji",
    Segoe UI Symbol, "Noto Color Emoji";
  font-size: 14px;
}

body {
  font-family: Arial, sans-serif;
  /* margin: 20px; */
  background-color: #ffffff;
}

#header {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0px 10px 0px;
  background-color: #376092;
  color: #fbfbfb;
}

#header > h1 {
  font-size: 2.5rem;
  font-weight: normal;
  margin-bottom: 10px;
}

#imgContainer {
  padding: 10px;
  display: flex;
  align-items: center;
  justify-content: space-around;
  width: 100%;
  background-color: #ffffff;
}

.header-logo {
  display: flex;
  align-items: center;
  width: 410px;
  height: 110px;
}

.header-logoS {
  display: flex;
  align-items: center;
  height: 110px;
}

#forms-container {
  padding: 5px 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #376092;
}

#table-container {
  padding: 0 30px;
  margin: 10px 0px 10px 0px;
}

table {
  border-collapse: collapse;
  width: 100%;
  table-layout: fixed;
  font-size: 16px;
  visibility: hidden;
}

th,
td {
  border: 1.5px solid #ccc;
  padding: 6px 8px;
  text-align: left;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

th {
  background-color: #376092 !important;
  color: #fbfbfb;
}

tbody tr:nth-child(odd) {
  background-color: #fafafa !important;
}

tbody tr:nth-child(even) {
  background-color: #daefff !important; /* celeste claro */
}

/* Ajuste ancho columnas */
th:nth-child(0),
td:nth-child(0) {
  width: 4%;
} /* ID */

th:nth-child(1),
td:nth-child(1) {
  width: 8%;
} /* Serial MA */

th:nth-child(2),
td:nth-child(2) {
  width: 10%;
} /* Serial IM */

th:nth-child(3),
td:nth-child(3) {
  width: 15%;
} /* Nombre */

th:nth-child(4),
td:nth-child(4) {
  width: 5%;
} /* Tipo */

th:nth-child(5),
td:nth-child(5) {
  width: 8%;
} /* Latitud */

th:nth-child(6),
td:nth-child(6) {
  width: 8%;
} /* Longitud */

th:nth-child(7),
td:nth-child(7) {
  width: 5%;
} /* Altitud */

th:nth-child(8),
td:nth-child(8) {
  width: 8%;
} /* Estado */

th:nth-child(9),
td:nth-child(9) {
  width: 10%;
} /* Municipio */

th:nth-child(10),
td:nth-child(10) {
  width: 5%;
} /* Organización */

/* th:nth-child(12),
td:nth-child(12) {
  width: 10%;
} Región Hidrográfica */

th:nth-child(11),
td:nth-child(11) {
  width: 8%;
} /* Instalado */

th:nth-child(12),
td:nth-child(12) {
  width: 8%;
} /* Eliminado */

th:nth-child(13),
td:nth-child(13) {
  width: 8%;
} /* Cuenca */

/* Estilos para cuando el usuario pasa el ratón por encima de una fila */
#estacionesTable tbody tr:hover {
  background-color: #78b1d7 !important; /* Cambia el color de fondo al pasar el ratón */
  cursor: pointer; /* Cambia el cursor a una mano para indicar que es interactivo */
}

/* Botones */
.btn {
  margin: 10px 10px 15px 0;
  padding: 8px 15px;
  background-color: #fbfbfb;
  color: #376092;
  font-weight: bold;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 1em;
  text-decoration: none;
}

.btn:hover {
  background-color: #d1d1d1;
}

.btn2 {
  margin: 10px 10px 15px 0;
  padding: 8px 15px;
  background-color: #376092;
  color: #fbfbfb;
  font-weight: bold;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 1em;
}

.btn2:hover {
  background-color: #254162;
}

.btn3 {
  margin: 10px 10px 15px 0;
  padding: 8px 15px;
  background-color: #376092;
  color: #fbfbfb;
  font-weight: bold;
  border: none;
  border-radius: 4px;
  font-size: 1em;
}

/* Estilo cuadro diálogo búsqueda por campos */
#searchFieldsDialog,
#searchNameSerialDialog {
  display: none;
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  background-color: #fbfbfb;
  border: 2px solid #376092;
  padding: 20px;
  box-shadow: 0 0 10px #aaa;
  z-index: 1000;
  width: 600px;
  font-size: 14px;
}

#searchFieldsDialog h2,
#searchNameSerialDialog h2 {
  margin-top: 0;
  margin-bottom: 15px;
}

.field-group {
  display: flex;
  justify-content: space-between;
  margin-bottom: 15px;
}

.field-group select {
  width: 32%;
  padding: 5px;
}

#searchFieldsDialog button,
#searchNameSerialDialog button {
  margin-right: 10px;
}

#overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.3);
  z-index: 900;
}
