/* Custom dropdowns fit their content first. JS limits them only to the available
   viewport/scroll-container space; native selects retain browser behavior. */
.bench-focus-filter-body,
.soro-global-search-popup,
.talent-review-secondary > div,
[data-soro-dropdown] {
  box-sizing: border-box;
  min-height: 0;
  max-height: calc(100vh - 32px);
  max-height: calc(100dvh - 32px);
  overflow-y: auto;
  overscroll-behavior: contain;
  scroll-padding-block: 16px;
  translate: var(--soro-dropdown-offset-x, 0px) var(--soro-dropdown-offset-y, 0px);
}

/* Keep the final action clear of the menu edge, including when it can scroll. */
.bench-focus-filter-body { padding-bottom: 18px; }
[data-soro-dropdown] { padding: 16px; }
