/* Manter os formulários completos dentro da janela, sem comprimir suas seções. */
.modal-overlay > .modal{
  max-height:calc(100vh - 48px)!important;
  max-height:calc(100dvh - 48px)!important;
  min-height:0!important;
  overflow-y:scroll!important;
  overflow-x:hidden!important;
  overscroll-behavior-y:contain;
  scrollbar-gutter:stable;
  scrollbar-width:auto;
  scrollbar-color:var(--erp-muted,#7895b8) var(--erp-surface-soft,#eaf0f7);
}
.modal-overlay > .modal > *{flex-shrink:0}
.modal-overlay > .modal::-webkit-scrollbar{width:12px;height:12px}
.modal-overlay > .modal::-webkit-scrollbar-track{background:var(--erp-surface-soft,#eaf0f7)}
.modal-overlay > .modal::-webkit-scrollbar-thumb{background:var(--erp-muted,#7895b8);border-radius:8px;border:2px solid var(--erp-surface-soft,#eaf0f7)}
@media(max-width:720px){
  .modal-overlay.os-overlay{padding:12px}
  .modal-overlay > .modal{
    max-height:calc(100vh - 24px)!important;
    max-height:calc(100dvh - 24px)!important;
  }
}
