
.modal-nuevo-mensaje {
  width: 100%;
  max-width: 600px;
  height: auto;
  max-height: 90vh;
  margin: auto;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  border-bottom: 1px solid #A11A0D;
}
.modal-header h2 {
  font-size: 18px;
  color: #A11A0D;
  margin: 0;
}
.cerrar-modal {
  background: none;
  border: none;
  font-size: 24px;
  font-weight: bold;
  line-height: 1;
  padding: 0;
  color: #A11A0D;
}
.cerrar-modal:hover {
  color: #660a00;
}

.usuarios-lista {
  max-height: 400px;
  overflow-y: auto;
  border: 1px solid #ccc;
  padding: 8px;
  margin-bottom: 16px;
  background: #f9f9f9;
}
.usuario-grupo strong {
  display: block;
  font-weight: bold;
  margin-bottom: 4px;
  color: #333;
}
.usuario-grupo hr {
  margin: 4px 0 8px;
  border: none;
  border-top: 1px solid #ddd;
}

.usuario-item {
  margin-bottom: 4px;
}

.obligatorio {
  color: red;
}

.modal-nuevo-mensaje .dropdown-usuarios {
  position: relative;
  margin-bottom: 12px;
}

.modal-nuevo-mensaje #toggleUsuariosBtn {
  background: #f0f0f0;
  border: 1px solid #ccc;
  padding: 6px 10px;
  cursor: pointer;
  border-radius: 4px;
  width: 100%;
  text-align: left;
  color: #333;
}

.modal-nuevo-mensaje #toggleUsuariosBtn:hover {
  background: #e6e6e6;
}

.modal-nuevo-mensaje .usuarios-dropdown {
  position: absolute;
  top: 110%;
  left: 0;
  width: 100%;
  background: white;
  border: 1px solid #ccc;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  border-radius: 4px;
  z-index: 1000;
  max-height: 500px;
  overflow-y: auto;
}

.modal-nuevo-mensaje .oculto {
  display: none;
}

.modal-nuevo-mensaje #filtroUsuarios {
  width: 95%;
  margin: 8px;
  padding: 5px;
  border: 1px solid #ccc;
  border-radius: 4px;
}

.modal-nuevo-mensaje .usuarios-seleccionados {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
}

.modal-nuevo-mensaje .usuario-chip {
  background: #fbe5e3;
  color: #a11a0d;
  border: 1px solid #e0b4b2;
  border-radius: 16px;
  padding: 3px 10px;
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.modal-nuevo-mensaje .usuario-chip .remove {
  cursor: pointer;
  font-weight: bold;
}

.modal-nuevo-mensaje input[type="text"],
.modal-nuevo-mensaje textarea,
.modal-nuevo-mensaje select {
  width: 100%;
  padding: 6px;
  border: 1px solid #ccc;
  border-radius: 4px;
  box-sizing: border-box;
}

@media (max-width: 600px) {
  .modal-nuevo-mensaje {
    width: 95%;
    padding: 15px;
  }
}
