/* Subjekt360 — progressive help
   Keep operational data visible; reveal secondary explanations only on demand. */

.s360-help-detail {
  display: none !important;
}

.s360-hover-detail {
  display: none !important;
}

/* The compact pass is intentionally strongest in the daily work views. */
#moduleDashboard .s17-today-row {
  padding-top: 8px !important;
  padding-bottom: 8px !important;
}

#moduleDashboard .s17-attention-card,
#modulePuna .s13-metric {
  min-height: 66px !important;
  padding-top: 10px !important;
  padding-bottom: 10px !important;
}

#modulePuna .s22-work-row,
#modulePagesa .s5-pay-row,
#moduleNjoftime .n7-item,
#moduleRaporte .r6-tr {
  min-height: 52px !important;
}

#modulePuna .s22-work-row,
#modulePagesa .s5-pay-row,
#moduleRaporte .r6-tr {
  padding-top: 8px !important;
  padding-bottom: 8px !important;
}

.s360-hover-target {
  cursor: help;
}

.s360-hover-target button,
.s360-hover-target a,
.s360-hover-target input,
.s360-hover-target select {
  cursor: pointer;
}

.s360-help-trigger {
  appearance: none;
  -webkit-appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 21px;
  height: 21px;
  min-width: 21px;
  margin-left: 6px;
  padding: 0;
  vertical-align: 2px;
  border: 1px solid #b9c8d2;
  border-radius: 999px;
  background: #f7fafc;
  color: #526b7a;
  font: 800 11px/1 Arial, sans-serif;
  letter-spacing: 0;
  cursor: help;
  box-shadow: none;
  transition: background-color .14s ease, border-color .14s ease, color .14s ease, box-shadow .14s ease;
}

.s360-help-trigger:hover,
.s360-help-trigger:focus-visible,
.s360-help-trigger[aria-expanded="true"] {
  border-color: #2f80bc;
  background: #eaf4fb;
  color: #155b88;
  outline: none;
  box-shadow: 0 0 0 3px rgba(47, 128, 188, .15);
}

.s360-help-trigger.s360-help-standalone {
  margin: 3px 0 3px 2px;
}

.s360-help-tooltip {
  position: fixed;
  z-index: 999999;
  width: max-content;
  max-width: min(320px, calc(100vw - 24px));
  padding: 9px 11px;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 8px;
  background: #17364b;
  color: #fff;
  font: 500 12px/1.48 Arial, sans-serif;
  letter-spacing: 0;
  text-align: left;
  box-shadow: 0 10px 28px rgba(16, 40, 57, .24);
  pointer-events: none;
  opacity: 0;
  transform: translateY(-3px);
  transition: opacity .12s ease, transform .12s ease;
}

.s360-help-tooltip.s360-help-tooltip-visible {
  opacity: 1;
  transform: translateY(0);
}

.s360-help-tooltip[hidden] {
  display: none !important;
}

@media (max-width: 760px) {
  .s360-help-trigger {
    width: 25px;
    height: 25px;
    min-width: 25px;
    font-size: 12px;
    cursor: pointer;
  }

  .s360-help-tooltip {
    max-width: calc(100vw - 20px);
    font-size: 12.5px;
  }

  /* Essential row context remains visible on touch screens where hover does not exist. */
  .s360-hover-target .s360-hover-detail {
    display: revert !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .s360-help-trigger,
  .s360-help-tooltip {
    transition: none;
  }
}
