/* Keep the checklist navigator attached to the document viewport.
   overflow-x:hidden on body creates an otherwise non-scrolling sticky ancestor. */
body:has(.view.active[data-view-panel="needs"]) {
  overflow-x: clip !important;
  overflow-y: visible !important;
}
body:has(.view.active[data-view-panel="needs"]) .topbar {
  position: relative !important;
}
#needsForm > .kc-progress {
  position: sticky !important;
  top: 0 !important;
  z-index: 44 !important;
  margin: 0 0 14px !important;
  padding: 6px 4px !important;
  background: #fff !important;
  border-bottom: 2px solid #ed790e;
  box-shadow: 0 5px 14px #00000014;
}
#needsForm > .kc-progress ol {
  display: flex;
  flex-wrap: nowrap !important;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  margin: 0;
  padding: 0 0 4px;
  scrollbar-width: thin;
}
#needsForm > .kc-progress li { flex: 0 0 auto; }
#needsForm > .kc-progress button { min-height: 44px; white-space: nowrap; }
#needsForm > section { scroll-margin-top: 90px !important; }
@media print { #needsForm > .kc-progress { display: none !important; } }
