/* Tooltip — Figma 5692:26551 (content only / title + content, Navy) */
.tooltip-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  margin: 0 0 0 4px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: transparent;
  vertical-align: middle;
  cursor: pointer;
}

.tooltip-trigger img {
  display: block;
  width: 16px;
  height: 16px;
}

.tooltip-trigger:focus-visible {
  outline: 2px solid var(--brand, #0072ce);
  outline-offset: 2px;
}

.tooltip {
  --tooltip-bg: #0c1114;
  --tooltip-arrow-x: 50%;
  --tooltip-arrow-y: 50%;
  position: fixed;
  z-index: 1000;
  box-sizing: border-box;
  width: 258px;
  padding: 16px;
  border: 1px solid #fff;
  border-radius: 12px;
  background: var(--tooltip-bg);
  color: #fff;
  filter: drop-shadow(0 1px 6px rgba(29, 42, 52, 0.06));
  pointer-events: none;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.tooltip[hidden] {
  display: none;
}

.tooltip--titled {
  pointer-events: auto;
}

.tooltip::after {
  content: "";
  position: absolute;
  width: 14px;
  height: 14px;
  background: var(--tooltip-bg);
  border: 1px solid #fff;
  border-top-color: transparent;
  border-left-color: transparent;
}

.tooltip[data-placement="top"]::after {
  bottom: -8px;
  left: var(--tooltip-arrow-x);
  transform: translateX(-50%) rotate(45deg);
}

.tooltip[data-placement="bottom"]::after {
  top: -8px;
  left: var(--tooltip-arrow-x);
  transform: translateX(-50%) rotate(-135deg);
}

.tooltip[data-placement="left"]::after {
  right: -8px;
  top: var(--tooltip-arrow-y);
  transform: translateY(-50%) rotate(-45deg);
}

.tooltip[data-placement="right"]::after {
  left: -8px;
  top: var(--tooltip-arrow-y);
  transform: translateY(-50%) rotate(135deg);
}

.tooltip__head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.tooltip__icon,
.tooltip__close img {
  width: 16px;
  height: 16px;
  filter: brightness(0) invert(1);
}

.tooltip__title {
  flex: 1;
  min-width: 0;
  margin: 0;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.5;
}

.tooltip__close {
  display: inline-flex;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
}

.tooltip__body {
  margin: 0;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
  white-space: pre-line;
}

.tooltip--rich {
  padding: 24px;
}

.tooltip--rich .tooltip__body {
  white-space: normal;
}

.tooltip-legend {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.tooltip-legend li {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
}

.tooltip-legend p {
  margin: 0;
}

.th-status .tooltip-trigger {
  margin-left: 0;
}
