.centrar {
  margin-top: 4%;
  line-height: auto;
  text-align: center;
}

.fondo {
  border-radius: 10px;
  line-height: 1;
  display: inline-block;
  vertical-align: middle;

}

.content {
  margin-bottom: 0;
  margin-top: 0;
  padding-top: 10px;
  padding-bottom: 10px;
  padding-left: 70px;
  padding-right: 70px;
  font-weight: 500;
  font-size: 32px;
  color: white;
  font-family: "Serenity Medium";
}

.input {
  width: 500px;
  color: rgb(0, 140, 255);
}

.container-col {
  display: flex;
  flex-direction: column;
  padding-top: 100px;
  padding-left: 30px;
  padding-right: 65px;
  width: 100%;
  box-sizing: border-box;
}





.button {
  margin-left: 5px;
  background-color: #ebac3f;
}



.action-edit {
  margin-left: 5px;
  background-color: #1d156e;
  color: white;
  height: 30px;
  width: 30px;
}

.action-delete {
  margin-left: 5px;
  background-color: #e43b3d;
  color: white;
  height: 30px;
  width: 30px;
}

.inline {
  display: flex;
  align-items: center;
  color: red;
  cursor: pointer;
}

.icon {
  transform: scale(0.8);
  vertical-align: middle;
}


.green {
  background-color: #2a6c42;
  border: none;
  color: white !important;
  cursor: pointer;
  border-radius: 6px;
  height: 35px;
}

.green:hover {
  background-color: #205232;
}

.buttons {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  margin-bottom: 15px;
  padding-left: 20px;
}

.badge-active {
  color: #026AA2;
  font-weight: 500;
  padding: 3px 7px;
  background-color: #E0F2FE;
  border-radius: 15px;
}

.badge-inactive {
  color: #AC2722;
  font-weight: 500;
  padding: 3px 7px;
  background-color: #FEE4E2;
  border-radius: 15px;
}
/* Media query para teléfonos (pantallas menores a 768px) */
@media (max-width: 768px) {
  .centrar {
    margin-top: 8%;
    text-align: center;
  }

  .fondo {
    width: 100%;
    padding: 10px;
    border-radius: 8px;
  }

  .content {
    font-size: 22px;
    padding: 10px 20px;
    text-align: center;
  }

  .input {
    width: 100%;
    font-size: 16px;
  }

  .container-col {
    padding-top: 50px;
    padding-left: 15px;
    padding-right: 15px;
  }

  .button,
  .green,
  .action-edit,
  .action-delete {
    width: 100%;
    margin: 5px 0;
  }

  .buttons {
    flex-direction: column;
    align-items: stretch;
    padding-left: 0;
    gap: 10px;
  }

  .inline {
    flex-direction: column;
    align-items: flex-start;
    font-size: 14px;
  }

  .badge-active,
  .badge-inactive {
    font-size: 12px;
    padding: 2px 5px;
  }
}


/* ---------------modal----------------- */

.close {
  padding-top: 20px;
  padding-right: 20px;
  display: flex;
  justify-content: end;

}

.cerrar-b {
  background-color: #fff;
  border: none;
}

.center {
  text-align: center;
  font-size: 32px;
  font-weight: 600;
}

.input {
  width: 100%;
  margin-right: 20px;
  margin-left: 20px;
}

.responsive {
  display: flex;
  flex-direction: row;
}

.is-invalid {
  color: red;

}

.is-invalid-icon {
  color: rgb(218, 113, 113);
}

.align {
  margin-top: 30px;
  display: flex;
  justify-content: center;
}

.yellow {
  background-color: #ebac3f;

  border: none;
  color: white;
  padding: 5px 5px;
  text-align: center;
  cursor: pointer;
  display: inline !important;
  font-size: 16px;
  border-radius: 10px;
  margin-right: 5px;
  height: 35px;
}

.yellow:hover {
  background-color: #c99235;

}

.orange {
  background-color: #f56227;

  border: none;
  color: white;
  text-align: center;
  cursor: pointer;
  display: inline !important;
  font-size: 16px;
  border-radius: 10px;
  margin-right: 5px;
  height: 35px;
}

.orange:hover {
  background-color: #cc501f;

}

.red {
  background-color: red;

  border: none;
  color: white;
  text-align: center;
  cursor: pointer;
  display: inline !important;
  font-size: 16px;

  border-radius: 6px;
  height: 35px;
}

.red:hover {
  background-color: rgb(204, 3, 3);
}

.form-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
}

.item {
  flex: 1 0 25%;
  box-sizing: border-box;
  padding: 10px;
}

.w-responsive {
  width: 160px;
}

.file-input {
  display: none;
}

.mat-column-titulo,
.mat-column-estado,
.mat-column-receptoresAudiencia,
.mat-column-importancia,
.mat-column-fechaPub,
.mat-column-fechaCad,
.mat-column-adjuntos,
.mat-column-acciones {
  text-align: center !important;
}

@media (max-width: 768px) {
  .close {
    padding-top: 10px;
    padding-right: 10px;
    justify-content: flex-end;
  }

  .center {
    font-size: 22px;
    text-align: center;
  }

  .input {
    width: 90%;
    margin: 10px auto;
  }

  .responsive {
    flex-direction: column;
    gap: 10px;
  }

  .align {
    flex-direction: column;
    margin-top: 20px;
  }

  .yellow,
  .orange,
  .red {
    width: 100%;
    font-size: 14px;
    height: 40px;
    margin-bottom: 10px;
  }

  .form-container {
    flex-direction: column;
    align-items: stretch;
  }

  .item {
    flex: 1 0 100%;
    padding: 5px 0;
  }

  .w-responsive {
    width: 100%;
  }

  .mat-column-titulo,
  .mat-column-estado,
  .mat-column-receptoresAudiencia,
  .mat-column-importancia,
  .mat-column-fechaPub,
  .mat-column-fechaCad,
  .mat-column-adjuntos,
  .mat-column-acciones {
    font-size: 12px;
    padding: 4px;
  }
}
@media (max-width: 768px) {
  .mat-table {
    display: block;
    overflow-x: auto;
    width: 100%;
  }



}
/* Mostrar solo el botón grande en pantallas mayores a 600px */
.btn-grande {
  display: inline-flex;
}

.btn-movil {
  display: none;
}

@media (max-width: 600px) {
  .btn-grande {
    display: none;
  }

  .btn-movil {
    display: inline-flex;
    padding: 4px 8px;
  }
}




@media screen and (max-width: 768px) {
  .centrar {
    text-align: center;
  }

  .fondo {
    padding: 10px;
  }

  .content {
    font-size: 18px !important;
  }

  .container-col {
    padding: 10px;
  }

  .container-search {
    flex-direction: column !important;
    align-items: stretch;
  }

  .container-search mat-form-field,
  .container-search .buttons {
    width: 100% !important;
    margin: 5px 0;
  }

  .buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: stretch;
  }

  .buttons .flex-row {
    flex-direction: column;
    align-items: stretch;
  }

  mat-form-field {
    width: 100% !important;
  }

  .table-container {
    overflow-x: auto;
  }

  table {
    min-width: 600px;
  }

  .mat-slide-toggle {
    transform: scale(0.9);
  }

  .action-edit {
    width: 40px;
    height: 40px;
  }

  .ml-10 {
    margin-left: 0 !important;
    margin-top: 10px;
  }

  .icon {
    font-size: 18px;
  }
}


/* -------------------- Modal stats -------------------- */

.modalTable {
  border-collapse: collapse;
  width: 100%;
}

.modalTh {
  color: #81a3d2;
  font-weight: 500;
}

.modalTr {
  border-bottom: 1px solid rgb(223, 223, 223);
  border-top: 1px solid rgb(223, 223, 223);
}


.modalTd {
  font-size: 14px;
  text-align: center;
  padding-left: 20px;
  padding-right: 20px;
  color: black;
}

@media only screen and (max-width: 600px) {
  .w-responsive {
    width: 100%;
  }

  .responsive {
    display: flex;
    flex-direction: column;
  }

  /* titulo */
  .centrar {
    width: 100%;
    margin-top: 5%;
    display: flex;
    justify-content: center;
  }


  .fondo {
    width: 85%;
  }

  .content {
    margin-bottom: 0;
    margin-top: 0;
    padding-top: 10px;
    padding-bottom: 10px;
    padding-left: 10px;
    padding-right: 10px;
    font-weight: 500;
    font-size: 24px;
    color: white;
    font-family: "Serenity Medium";
  }

  .container-col {
    display: flex;
    flex-direction: column;
    padding-top: 80px;
    margin-left: -15px;
    padding-right: 65px;
    width: 100%;
    box-sizing: border-box;
  }


  .container-search {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 120%;
  }

  .input {
    width: 100%;
  }

  .buttons {
    display: flex;
    justify-content: space-around;
    align-items: center;
    margin-bottom: 10px;
    flex-direction: column;
  }

  .green {
    background-color: #2a6c42;
    border: none;
    color: white;
    cursor: pointer;
    border-radius: 6px;
    height: 35px;
  }

  .green {
    background-color: #2a6c42;
  }

  .table-container {
    width: 130%;
  }

  .table-responsive {
    overflow-x: scroll;
    white-space: nowrap;
  }

  /* .table-containerM {
    width: 100%;
  }

  .table-responsive {
    overflow-x: scroll;
    white-space: nowrap;
  } */

}
