/* V57 - mobile dialogs / owner footer behind the sidebar */
:root { --v57-footer-height:30px; }
html body #maviqenFooter51,
html body.repDashboardPage #maviqenFooter51,
html body.dashboardBody #maviqenFooter51,
html body.dashboardBody:has(#dashboardShell.sidebarCollapsed) #maviqenFooter51,
html body.repDashboardPage:has(#dashboardShell.sidebarCollapsed) #maviqenFooter51 {
  position:fixed!important;
  inset: auto 0 0 0!important;
  z-index:1!important;
  height:var(--v57-footer-height)!important;
  min-height:var(--v57-footer-height)!important;
  padding:3px 8px!important;
  box-sizing:border-box!important;
  isolation:isolate;
  pointer-events:none!important;
  background:#fff!important;
}
/* On mobile the sidebar visually covers the full display, including the bottom. */
body.repDashboardPage #dashboardShell>.dashboardSidebar,
body.dashboardBody #dashboardShell>.dashboardSidebar {
  height:100dvh!important;
  min-height:100dvh!important;
  z-index:1200!important;
}
@media(max-width:1100px){
  body.repDashboardPage #dashboardShell.sidebarOpen>.dashboardSidebar,
  body.dashboardBody #dashboardShell.sidebarOpen>.dashboardSidebar {position:fixed!important;top:0!important;bottom:0!important;height:100dvh!important;z-index:1200!important;}
  body.repDashboardPage #dashboardShell.sidebarOpen>.dashboardOverlay,
  body.dashboardBody #dashboardShell.sidebarOpen>.dashboardOverlay {z-index:1150!important;}
  html body.repDashboardPage:has(#dashboardShell.sidebarOpen) #maviqenFooter51,
  html body.dashboardBody:has(#dashboardShell.sidebarOpen) #maviqenFooter51 {display:none!important;}
}
/* The iframe is promoted over page chrome for details; hide the outer footer. */
html body.repDashboardPage.v52-order-modal-mode #maviqenFooter51,
html body.repDashboardPage.v57-has-dialog #maviqenFooter51 {display:none!important;}
body.repEmbeddedMode #maviqenFooter51 {display:none!important;}
/* Prevent fixed footer from blocking bottom actions when the page isn't embedded. */
html body:not(.repEmbeddedMode) {padding-bottom:calc(var(--v57-footer-height) + env(safe-area-inset-bottom,0px) + 16px)!important;}
/* Center the modal relative to the visible viewport and scroll just its contents. */
html body .catalog-modal:not([hidden]){
  position:fixed!important;inset:0!important;
  z-index:35000!important;display:flex!important;
  align-items:center!important;justify-content:center!important;
  box-sizing:border-box!important;
  padding:12px!important;
  max-height:100dvh!important;
  overflow:hidden!important;
}
html body .catalog-modal:not([hidden])>.catalog-modal-content{
  box-sizing:border-box!important;position:relative!important;
  min-width:0!important;width:min(880px,100%)!important;
  max-width:100%!important;
  max-height:calc(100dvh - 24px - env(safe-area-inset-bottom,0px))!important;
  overflow-y:auto!important;overflow-x:hidden!important;
  overscroll-behavior:contain!important;
  -webkit-overflow-scrolling:touch;
}
html body .catalog-modal:not([hidden]) .sticky-modal-head-v51,
html body .catalog-modal:not([hidden]) .order-modal-top {
  position:sticky!important;top:0!important;
  z-index:50!important;background:#fff!important;
}
html body .catalog-modal:not([hidden]) .catalog-modal-close{
  position:sticky!important;top:0!important;z-index:55!important;
}
@media(max-width:650px){
 html body .catalog-modal:not([hidden]){padding:7px!important;align-items:center!important}
 html body .catalog-modal:not([hidden])>.catalog-modal-content{
   width:100%!important;max-width:100%!important;
   max-height:calc(100dvh - 14px - env(safe-area-inset-bottom,0px))!important;
   padding:12px!important;border-radius:17px!important;
 }
 html body .catalog-modal:not([hidden]) .catalog-form-grid{grid-template-columns:1fr!important}
 html body .catalog-modal:not([hidden]) input,
 html body .catalog-modal:not([hidden]) select,
 html body .catalog-modal:not([hidden]) textarea{font-size:16px!important}
}
@media print{html body #maviqenFooter51{display:none!important}}
