/* Keep tab plot images fully visible and scaled, never overlapping */

.shiny-image-output img {
  max-width: 100%;
  max-height: 80vh;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}

.plot-tab-scroll {
  max-height: calc(100vh - 160px);
  overflow-y: auto;
}

.plot-tab-scroll .shiny-image-output {
  margin-bottom: 1rem;
}

.help-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  margin-left: 6px;
  border-radius: 50%;
  background: #0d6efd;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  vertical-align: middle;
}

.help-icon:hover,
.help-icon:focus {
  background: #0b5ed7;
  outline: none;
}
