/* Keep each module's title and actions below the main navigation. */
body:not(.auth-body) .module-nav {
  position: sticky;
  top: var(--app-topbar-height, 92px);
  z-index: 40;
}
body:not(.auth-body) .module-sticky-header {
  position: sticky;
  top: var(--module-sticky-top, 144px);
  z-index: 30;
  display: flow-root;
  background: #fafcff;
  box-shadow: 0 3px 5px -3px rgba(20, 45, 75, .3);
  max-height: max(90px, calc(100dvh - var(--module-sticky-top, 144px) - 120px));
  overflow: auto;
  overscroll-behavior: contain;
}
body:not(.auth-body) .supplier-desktop .module-sticky-header { background: #fff; }
body:not(.auth-body) :is(.stock-module, .mobility-module) .module-sticky-header > header {
  background: #0d47a1;
  color: #fff;
  font-size: 21px;
  font-weight: 800;
  padding: 11px 14px;
}
body:not(.auth-body) .admin-sticky-header.module-sticky-header { background: #edf4fb; }
body:not(.auth-body) .platform-clients .module-sticky-header { padding-bottom: 10px; }
body:not(.auth-body) .smart-module .module-sticky-header > h1 { font-size: 24px; margin: 0 0 14px; }
body:not(.auth-body) .analysis-page .module-sticky-header > h1 {
  margin: 0;
  background: #1554aa;
  color: #fff;
  padding: 13px 16px;
  font-size: 27px;
}
body:not(.auth-body) .content :is(input, select, textarea, [id]) {
  scroll-margin-top: calc(var(--module-sticky-top, 144px) + var(--module-header-height, 120px) + 12px);
}
@media print {
  body:not(.auth-body) .module-sticky-header { position: static; max-height: none; overflow: visible; box-shadow: none; }
}
