/* V56: mobile comfort, safe modal scrolling, sidebar/footer stacking */
:root{--credit-h:29px}
html,body{max-width:100%;}
body:not(.repEmbeddedMode){padding-bottom:calc(var(--credit-h) + 16px + env(safe-area-inset-bottom, 0px))!important}
body.repEmbeddedMode{padding-bottom:0!important}
html body #maviqenFooter51,
html body.dashboardBody #maviqenFooter51,
html body.repDashboardPage #maviqenFooter51,
html body.dashboardBody:has(#dashboardShell.sidebarCollapsed) #maviqenFooter51{
  position:fixed!important;inset: auto 0 0 0!important;right:0!important;left:0!important;
  height:var(--credit-h)!important;min-height:var(--credit-h)!important;
  padding:3px 8px!important;box-sizing:border-box!important;
  z-index:5!important;pointer-events:none!important;
  box-shadow:none!important;
}
body.dashboardBody #dashboardShell>.dashboardSidebar{z-index:120!important}
body.dashboardBody #dashboardShell>.dashboardOverlay{z-index:110}
body.dashboardBody .dashboardContentWrap,body.dashboardBody #dashboardShell .dashboardMain{padding-bottom:calc(var(--credit-h) + 18px)!important}
body.repDashboardPage .repEmbeddedSection:not([hidden]){margin-bottom:calc(var(--credit-h) + 8px)!important}
body.repEmbeddedMode #maviqenFooter51{display:none!important}
@media(max-width:1100px){body.dashboardBody #dashboardShell>.dashboardSidebar{z-index:225!important}body.dashboardBody #dashboardShell>.dashboardOverlay{z-index:205!important}}
/* Modal scroll belongs to the dialog, not the page behind it. */
.catalog-modal:not([hidden]){position:fixed!important;inset:0!important;z-index:30000!important;display:flex!important;align-items:center!important;justify-content:center!important;overflow:hidden!important;padding:12px!important;box-sizing:border-box!important}
.catalog-modal:not([hidden])>.catalog-modal-content{position:relative!important;min-width:0!important;max-width:min(880px,100%)!important;max-height:calc(100dvh - 24px - env(safe-area-inset-bottom, 0px))!important;overflow-x:hidden!important;overflow-y:auto!important;overscroll-behavior-y:contain!important;-webkit-overflow-scrolling:touch;scrollbar-gutter:stable;}
.catalog-modal:not([hidden]) .catalog-modal-close{position:sticky!important;top:0!important;z-index:40!important;float:inline-end;margin:0 0 7px 7px!important;inset-inline-start:auto!important;inset-inline-end:auto!important;flex-shrink:0!important}
.catalog-modal:not([hidden]) .catalog-image-preview{max-height:48dvh;overflow:hidden}
.catalog-modal:not([hidden]) #imageModalDesc{max-height:34dvh;overflow:auto;overscroll-behavior:contain}
body.catalog-lock{overflow:hidden!important}
@media(max-width:650px){
  :root{--credit-h:30px}
  .catalog-modal:not([hidden]){padding:7px!important;align-items:center!important}
  .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;border-radius:16px!important;padding:14px!important}
  .catalog-modal:not([hidden]) .catalog-form-grid{grid-template-columns:minmax(0,1fr)!important}
  .catalog-modal:not([hidden]) input,.catalog-modal:not([hidden]) select,.catalog-modal:not([hidden]) textarea{font-size:16px!important}
  .catalog-modal:not([hidden]) .catalog-image-preview{max-height:36dvh}
  .catalog-modal:not([hidden]) #imageModalDesc{max-height:24dvh}
}
@media print{html body #maviqenFooter51{display:none!important}body{padding-bottom:0!important}}
