/* Small help link and popup for field help */
.pathwidth-help {
  display: inline-block;
  flex: 0 0 1.25rem;
  width: 1.25rem;
  text-align: right;
  margin-left: 0.5rem;
  margin-right: 0.35rem;
  align-self: center;
  text-decoration: none;
  cursor: pointer;
}
.pathwidth-help:hover { opacity: 0.85; }

.help-popup {
  display: none;
  position: fixed;
  z-index: 2000;
  background: #fff;
  border: 0.0625rem solid var(--rms-border);
  border-radius: var(--rms-radius);
  box-shadow: 0 0.5rem 1.25rem rgba(0,0,0,0.15);
  width: 22rem;
  max-width: 90vw;
}
.help-popup .help-popup-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
  padding: 0.5rem 0.75rem;
  border-bottom: 1px solid var(--rms-border);
}
.help-popup .help-popup-close {
  background: none;
  border: none;
  font-size: 1rem;
  cursor: pointer;
  padding: 0;
}
.help-popup .help-popup-body {
  padding: 0.5rem 0.75rem;
  font-size: 0.9375rem;
}
.help-popup .help-popup-body p { margin: 0; }

#pathwidthInfoPopup {
  width: 24rem; /* ~384px: a bit wider */
}
#pathwidthInfoPopup .pwi-body { padding: 0.5rem 0.75rem; }
#pathwidthInfoPopup table { width: 100%; border-collapse: collapse; font-size: 0.875rem; }
#pathwidthInfoPopup th, #pathwidthInfoPopup td { padding: 0.35rem 0.4rem; border-bottom: 1px solid transparent; vertical-align: top; }
#pathwidthInfoPopup tr.pwi-sep th, #pathwidthInfoPopup tr.pwi-sep td { border-bottom: 1px solid #e5e7eb; }
#pathwidthInfoPopup tr:last-child th, #pathwidthInfoPopup tr:last-child td { border-bottom: none; }
#pathwidthInfoPopup .pwi-visual { white-space: nowrap; }
#pathwidthInfoPopup .pwi-min,
#pathwidthInfoPopup .pwi-max { white-space: nowrap; text-align: center; font-size: 1.05rem; }
