/* EDO Business R158 — only the native React create/edit document page.
   Header and action footer stay visible; the form's middle becomes the sole scroll area.
   JS sets the page's available height using its actual top position in viewport. */
html body #root > .app-shell.edo-r46-creating > .app-main > .edo-r46-page {
  box-sizing: border-box !important;
  display: flex !important;
  flex-direction: column !important;
  flex: 0 0 auto !important;
  width: 100% !important;
  min-width: 0 !important;
  min-height: 0 !important;
  height: var(--edo-r158-available-height, calc(100dvh - 20px)) !important;
  max-height: var(--edo-r158-available-height, calc(100dvh - 20px)) !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
}
html body #root > .app-shell.edo-r46-creating > .app-main > .edo-r46-page > .new-doc-modal.edo-r46-card {
  display: flex !important;
  flex-direction: column !important;
  flex: 1 1 auto !important;
  height: 100% !important;
  max-height: 100% !important;
  min-height: 0 !important;
  width: 100% !important;
  min-width: 0 !important;
  margin: 0 !important;
  overflow: hidden !important;
}
html body #root > .app-shell.edo-r46-creating .edo-r46-page > .edo-r46-card > .modal-header {
  flex: 0 0 auto !important;
  min-height: 0 !important;
  position: relative;
  z-index: 1;
  background: inherit;
}
html body #root > .app-shell.edo-r46-creating .edo-r46-page .new-doc-horizontal-body {
  display: block !important;
  box-sizing: border-box !important;
  flex: 1 1 auto !important;
  min-height: 0 !important;
  max-height: none !important;
  min-width: 0 !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  scrollbar-width: thin;
  scrollbar-color: #c8d2e7 transparent;
  overscroll-behavior-y: contain;
  scroll-padding-block: 12px 24px;
  -webkit-overflow-scrolling: touch;
}
html body #root > .app-shell.edo-r46-creating .edo-r46-page .new-doc-horizontal-body::-webkit-scrollbar {
  width: 7px;
}
html body #root > .app-shell.edo-r46-creating .edo-r46-page .new-doc-horizontal-body::-webkit-scrollbar-thumb {
  border-radius: 12px;
  background: #c8d2e7;
}
html body #root > .app-shell.edo-r46-creating .edo-r46-page .new-doc-horizontal-body > .new-doc-form-panel {
  min-height: 0 !important;
  overflow: visible !important;
}
html body #root > .app-shell.edo-r46-creating .edo-r46-page > .edo-r46-card > .new-doc-horizontal-footer {
  box-sizing: border-box !important;
  display: flex !important;
  flex: 0 0 auto !important;
  position: relative !important;
  z-index: 2;
  margin: 0 !important;
  background: inherit !important;
  border-top: 1px solid #edf0f6 !important;
}
@media (max-width: 740px) {
  html body #root > .app-shell.edo-r46-creating .edo-r46-page .new-doc-horizontal-body {
    overscroll-behavior-y: contain;
  }
}
