/* Environment banners and fixed mobile navigation share the same measured offset. */
html.cfepa-environment-layout body {
  box-sizing: border-box;
  height: 100dvh;
  min-height: 0 !important;
  overflow: hidden;
  padding-top: var(--cfepa-environment-bar-height, 0px) !important;
}
html.cfepa-environment-layout #root {
  padding-top: 0 !important;
  height: calc(100dvh - var(--cfepa-environment-bar-height, 0px));
  min-height: 0 !important;
}
html.cfepa-environment-layout #root > .h-screen {
  height: calc(100dvh - var(--cfepa-environment-bar-height, 0px)) !important;
  min-height: 0 !important;
}
#cfepa-training-banner {
  box-sizing: border-box;
  height: auto !important;
  min-height: 32px;
  padding: calc(4px + env(safe-area-inset-top)) 10px 4px;
  line-height: 1.3 !important;
}
#cfepa-training-banner[hidden] { display: none !important; }
@media (max-width: 1023px) {
  html.cfepa-environment-layout .mobile-app-header {
    top: var(--cfepa-environment-bar-height, 0px) !important;
  }
  html.cfepa-environment-layout .mobile-app-main {
    padding-top: var(--cfepa-environment-mobile-header-height, 64px) !important;
  }
  html.cfepa-environment-layout #root > .h-screen > aside {
    top: var(--cfepa-environment-bar-height, 0px);
    bottom: 0;
  }
}
@media (max-width: 700px) {
  #cfepa-recette-banner {
    min-height: 40px;
    flex-wrap: nowrap;
    gap: 8px;
    padding: calc(6px + env(safe-area-inset-top)) 10px 6px;
  }
  #cfepa-recette-banner .recette-banner-label { flex: 1; width: auto; }
  #cfepa-recette-banner .recette-banner-actions { width: auto; gap: 5px; }
  #cfepa-recette-banner button { padding: 5px 7px; white-space: nowrap; }
  #cfepa-training-banner { font-size: 10px !important; }
}
@media print {
  html.cfepa-environment-layout body,
  html.cfepa-environment-layout #root,
  html.cfepa-environment-layout #root > .h-screen { height: auto !important; overflow: visible; padding-top: 0 !important; }
  #cfepa-training-banner { display: none !important; }
}
