/* TooltipAjudaNext — RefModeloUniversal 2606 (vanilla APESP) */

.tt-wrap {
  position: relative;
  display: inline-flex;
  flex-shrink: 0;
  vertical-align: middle;
}

.tt-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 12px;
  height: 11px;
  padding: 0;
  border: none;
  background: transparent;
  cursor: help;
  color: var(--muted, #5c6478);
  border-radius: 3px;
  line-height: 1;
}

.tt-chip-info:hover,
.tt-chip-info:focus-visible {
  color: var(--blue, #2563eb);
  outline: 1px solid rgba(37, 99, 235, 0.35);
  outline-offset: 1px;
}

.tt-i {
  display: block;
  width: 12px;
  height: 12px;
  flex-shrink: 0;
}

.tt-align-left .tt-bubble-portal { transform-origin: top right; }
.tt-align-right .tt-bubble-portal { transform-origin: top left; }

.tt-bubble-portal {
  position: fixed;
  z-index: 130;
  max-width: min(260px, calc(100vw - 48px));
  padding: 0.42rem 0.55rem;
  background: #fff;
  border: 1px solid var(--border, #d8dee9);
  border-radius: 8px;
  box-shadow: 0 6px 20px rgba(15, 23, 42, 0.14);
  font-size: 0.72rem;
  font-weight: 400;
  line-height: 1.32;
  color: #1e293b;
  pointer-events: none;
  white-space: normal;
}

.tt-bubble-portal strong {
  font-weight: 700;
  color: var(--text, #1a1d26);
}

.tt-bubble-portal .tt-hint {
  display: block;
  margin-top: 0.4rem;
  color: var(--blue, #2563eb);
  font-weight: 500;
}

.tt-bubble-portal::after {
  content: "";
  position: absolute;
  width: 0;
  height: 0;
  border: 6px solid transparent;
  filter: drop-shadow(0 -1px 0 var(--border, #d8dee9));
}

.tt-bubble-portal--bottom::after {
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  border-bottom-color: #fff;
  filter: drop-shadow(0 -1px 0 var(--border, #d8dee9));
}

.tt-bubble-portal--bottom.tt-bubble-portal--left::after {
  left: 12px;
  transform: none;
}

.tt-bubble-portal--bottom.tt-bubble-portal--right::after {
  left: auto;
  right: 12px;
  transform: none;
}

.tt-help-modal {
  position: fixed;
  inset: 0;
  z-index: 9100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.tt-help-modal[hidden] {
  display: none !important;
}

.tt-help-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
}

.tt-help-modal__box {
  position: relative;
  z-index: 1;
  width: min(480px, 100%);
  max-height: min(70vh, 520px);
  overflow: auto;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 24px 48px rgba(15, 23, 42, 0.18);
  padding: 18px 20px 20px;
}

.tt-help-modal__close {
  position: absolute;
  top: 10px;
  right: 12px;
  border: none;
  background: none;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  color: var(--muted, #5c6478);
}

.tt-help-modal__box h3 {
  margin: 0 28px 12px 0;
  font-size: 16px;
}

.tt-help-modal__body {
  font-size: 13.5px;
  line-height: 1.55;
  color: #33404d;
}

.tt-help-modal__body p {
  margin: 0 0 10px;
}

.tt-help-modal__body ul {
  margin: 0 0 10px;
  padding-left: 20px;
}

.tt-help-modal__body li {
  margin: 4px 0;
}
