/* UX-P14.4: Keep resource category navigation at one readable screen position.
 * When switching from inventory (date controls/metrics) to people or locations,
 * the document shrinks. Reserve enough scrolling room so the browser doesn't
 * clamp scrollY and shift the category buttons out from under the user's pointer.
 */
#resourcesView{min-height:calc(100vh + 320px);min-height:calc(100svh + 320px)}
#resourcesView > .resource-tabs{
  position:sticky;
  top:0;
  z-index:6;
  background:#111315;
  margin-top:10px;
  padding-top:9px;
}
@media(max-width:740px){
  #resourcesView{min-height:calc(100vh + 280px);min-height:calc(100svh + 280px)}
  #resourcesView > .resource-tabs{padding-top:7px}
}

/* Resource-specific actions belong in their own panel; hiding an action must
 * not alter the height of the heading above the shared navigation. */
#resourcesView .resource-owned-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
@media(max-width:740px){#resourcesView .resource-owned-actions{width:100%}}
