body:not(.modal-page) > header { position:sticky; top:0; z-index:1000; }
.page-controls-sticky { position:sticky; top:var(--app-header-height,42px); z-index:80; background:#f2f6f5; padding:8px 0; }
.page-controls-sticky > :last-child { margin-bottom:0; }
body:not(.modal-page) .patients-layout > .patient-topbar { position:sticky; top:var(--app-header-height,42px); z-index:90; }
body:not(.modal-page) .patient-detail.card { overflow:visible; }
body:not(.modal-page) .patient-detail.card .patient-folder-header { position:sticky; top:calc(var(--app-header-height,42px) + var(--patient-topbar-height,0px)); z-index:85; }
html { scroll-padding-top:calc(var(--app-header-height,42px) + var(--page-controls-height,0px) + var(--patient-topbar-height,0px) + 64px); }
body:not(.modal-page) .patient-detail .patient-tabs { top:calc(var(--app-header-height,42px) + var(--patient-topbar-height,0px) + var(--patient-folder-header-height,0px)); }
@media print {
  body > header, .page-controls-sticky, body:not(.modal-page) .patients-layout > .patient-topbar, body:not(.modal-page) .patient-detail.card .patient-folder-header { position:static; }
}
