.container {
  display: flexbox;
  flex-direction: column;
  width: 100%;
  padding: 20px;
  box-sizing: border-box;
  background-color: #e5e5e5;
  margin: 0 auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 20px;
}

#icogere {   
  width: 25%;
}

#icosalud {
  float: right;
}

#establecimiento {
  width: 100%;
}

.form-group {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  margin-bottom: 15px;
}

.form-group label {
  flex: 1;
  min-width: 150px;
}

.form-group input,
.form-group select {
  flex: 2;
  width: 100%;
  padding: 10px;
}

.id {
  padding: 6px 0px 6px 25px !important;
}

.fecho {
  width: 15%;
}

textarea {
  width: 100%;
}

/* Estilos para dispositivos móviles */
@media (max-width: 600px) {
  .container {
    padding: 10px;
  }

  table {
    border: 0;
  }

  table tr {
    display: block;
    margin-bottom: 10px;
  }

  table td,
  table th {
    display: block;
    text-align: left;
    width: 100%;
    box-sizing: border-box;
  }

  .form-group {
    flex-direction: column;
    align-items: flex-start;
  }

  .form-group label {
    margin-bottom: 5px;
    min-width: auto;
    width: 100%;
  }

  .form-group input,
  .form-group select {
    width: 100%;
  }

  button {
    width: 100%;
    margin-top: 10px;
  }

  #icosalud {
    float: none;
    width: 12%;
  }

  #icogere {
    width: 12%;
  }
}

/* Estilos para tablets y pantallas medianas */
@media (min-width: 601px) and (max-width: 1024px) {
  .container {
    padding: 15px;
  }

  table {
    width: 100%;
  }

  .form-group input,
  .form-group select {
    width: calc(100% - 20px);
  }

  .tablaHD,
  .tablafh {
    width: 100%;
  }

  #icosalud {
    float: none;
    width: 12%;
  }

  #icogere {
    width: 12%;
  }
}

/* Estilos para pantallas grandes */
@media (min-width: 1025px) {
  .container {
    width: 70%;
    margin: auto;
  }

  .tablaHD,
  .tablafh {
    float: left;
    width: 48%;
  }

  #icogere,
  #icosalud {
    float: none;
    width: 12%;
  }
}

.tablaHD {
  width: 25%;
  border-collapse: collapse;
  float: left;
}

.tablafh {
  width: 70%;
  border-collapse: collapse;
  float: right;
}

table,
th,
td {
  border: 1px solid #a6a6a6;
  padding: 10px;
}

@media (max-width: 600px) {
  table,
  tr,
  th,
  td {
    display: block;
    width: 100%;
  }

  th,
  td {
    padding: 10px;
    text-align: left;
  }

  #icosalud {
    float: none;
    width: 12%;
  }

  #icogere {
    width: 12%;
  }
}

button {
  padding: 15px 20px;
  font-size: 16px;
  width: auto;
  margin-top: 20px;
  display: block;
  background-color: #007bff;
  color: white;
  border: none;
  cursor: pointer;
}

button:hover {
  background-color: #041b33;
}

img {
  max-width: 100%;
  height: auto;
}

.titulo {
  background-color: #c7cedb;
  font-weight: bold;
  padding: 3px 6px 3px 5px !important;
  float: none !important;
  width: auto !important;
}
