.obs_overlay {
  display: none;
  position: fixed;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0,0,0,0.45);
  z-index: 1008;
}

.obs_btn_abrir {
  padding: 8px 14px;
  border: 0;
  border-radius: 6px;
  background: #2f5f8f;
  color: white;
  cursor: pointer;
  font-size: 14px;
}

.obs_panel {
  display: none;
  position: fixed;

  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);

  width: 70vw;
  height: 80vh;

  max-width: 1000px;
  max-height: 90vh;

  background: #f2f2f2;
  border: 1px solid #bbb;
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.4);

  z-index: 1008;
  overflow: hidden;
  font-family: Arial, sans-serif;
  box-sizing: border-box;
}

.obs_btn_tramite {
  border: 0;
  border-radius: 6px;
  padding: 7px 10px;
  cursor: pointer;
  font-size: 12px;
  background: #2e7d32;
  color: white;
  white-space: nowrap;
}

.obs_btn_adjuntar_destacado {
  border: 0;
  border-radius: 6px;
  padding: 9px 14px;
  cursor: pointer;
  font-size: 14px;
  background: #1565c0;
  color: white;
}

.obs_header {
  height: 62px;
  min-height: 62px;
  background: #24527a;
  color: white;
  padding: 8px 12px;
  box-sizing: border-box;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.obs_header_izquierda {
  min-width: 0;
  overflow: hidden;
}

.obs_header_derecha {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.obs_header_acciones {
  display: flex;
  align-items: center;
}

.obs_btn_observar {
  border: 0;
  border-radius: 6px;
  padding: 7px 10px;
  cursor: pointer;
  font-size: 12px;
  background: #ef6c00;
  color: white;
  white-space: nowrap;
}

.obs_titulo {
  font-size: 16px;
  font-weight: bold;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.obs_subtitulo {
  font-size: 12px;
  opacity: 0.9;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.obs_cerrar {
  border: 0;
  background: transparent;
  color: white;
  font-size: 24px;
  cursor: pointer;
}

.obs_historial {
  height: calc(72vh - 62px);
  max-height: calc(72vh - 62px);
  overflow-y: auto;
  overflow-x: hidden;
  padding: 12px;
  box-sizing: border-box;
}

.obs_ciclo {
  clear: both;
  text-align: center;
  font-size: 12px;
  color: #777;
  margin: 16px 0 8px 0;
}

.obs_msg {
  clear: both;
  max-width: 78%;
  margin: 7px 0;
  padding: 9px 11px;
  border-radius: 10px;
  box-sizing: border-box;
  font-size: 14px;
  line-height: 1.35;
}

.obs_msg_visador {
  float: left;
  background: #ffffff;
  border: 1px solid #d0d0d0;
}

.obs_msg_profesional {
  float: right;
  background: #dcf8c6;
  border: 1px solid #b8e6a2;
}

.obs_msg_accion {
  float: right;
  background: #fff8dc;
  border: 1px solid #e0c878;
}

.obs_msg_titulo {
  font-size: 12px;
  font-weight: bold;
  margin-bottom: 5px;
  color: #333;
}
c
.obs_msg_texto {
  white-space: pre-wrap;
  word-wrap: break-word;
}

.obs_btn_adjuntar {
  border: 0;
  border-radius: 6px;
  padding: 5px 7px;
  cursor: pointer;
  background: #ffffff;
  border: 1px solid #bbb;
}

.obs_msg_obs_info {
  margin-top: 4px;
  font-size: 11px;
  color: #666;
  text-align: left;
  opacity: 0.85;
  white-space: pre-wrap;
}

.obs_msg_info {
  font-size: 12px;
  color: #555;
  margin-top: 6px;
  white-space: pre-wrap;
}

.obs_msg_fecha {
  margin-top: 6px;
  font-size: 11px;
  color: #666;
  text-align: right;
}

.obs_visto_info {
  margin-top: 8px;
  padding-top: 6px;
  border-top: 1px solid #ddd;
  font-size: 11px;
  color: #555;
}

.obs_btn_listo,
.obs_btn_visto {
  border: 0;
  border-radius: 6px;
  padding: 8px 12px;
  margin-top: 8px;
  cursor: pointer;
  font-size: 13px;
}

.obs_btn_listo {
  background: #2e7d32;
  color: white;
}

.obs_btn_visto {
  background: #1565c0;
  color: white;
}

.obs_clear {
  clear: both;
}

.obs_header_derecha {
  display: flex;
  align-items: center;
  gap: 8px;
}

.obs_btn_observar {
  border: 0;
  border-radius: 6px;
  padding: 7px 10px;
  cursor: pointer;
  font-size: 12px;
  background: #ef6c00;
  color: white;
  white-space: nowrap;
}