i.dialog-helper {
  cursor: pointer;
}

.dialog-helper-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.6);
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: start;
  padding-top: 10vh;
  animation: fadeIn 0.3s ease;
}

.dialog-helper-overlay.fade-out {
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.dialog-helper-frame {
  background: #f8fafb;
  width: 600px;
  max-height: 80vh;
  overflow-y: auto;
  border-radius: 6px;
  box-shadow: 0 0 20px rgba(0,0,0,0.5);
  animation: fadeIn 0.3s ease;
}

.dialog-helper-header {
  background-color: #0c74c4;
  color: white;
  padding: 10px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-radius: 6px 6px 0 0;
}

.dialog-helper-header h1 {
  font-size: 24px;
  font-weight: bold;
  margin: 0;
  text-align: center;
  width: auto;
  flex: 1;
}

.dialog-helper-close {
  background: transparent;
  border: none;
  color: white;
  font-size: 18px;
  cursor: pointer;
  flex: 0;
}

.dialog-helper-body {
  background-color: #f8fafb;
  max-height: 65vh;     /* conteúdo cresce até isso */
  overflow-y: auto;     /* só aparece scroll se necessário */
  padding: 16px;
  box-sizing: border-box;
}


.dialog-helper-body .content-group {
  background-color: #fff;
  border-radius: 0px;
  border-width: 1px;
  border-style: solid;
  border-color: #dfdfdf;
  margin: 5px 0;
  padding: 2px 4px;
}

.dialog-helper-body h1,
.dialog-helper-body h2,
.dialog-helper-body h3,
.dialog-helper-body h4 {
  margin: 14px 0 6px;
}

.dialog-helper-body p {
  margin: 2px 0 0;
}

.dialog-helper-body img {
  width: calc(100% - 8px);
  margin: 4px;
  border-width: 1px;
  border-style: solid;
  border-color: #dfdfdf;
}

.dialog-helper-body iframe {
  width: 530px;
  height: 298px;
  margin: 4px;
  border-width: 1px;
  border-style: solid;
  border-color: #dfdfdf;
}

img.fulls {
  cursor: zoom-in;
}

