/* mySIMAN Master C343 — show the canonical footer (Shadow DOM V1081)
   above Update Excel while preserving its published layout and handlers. */
html body.sync-modal-open > #simanCanonicalFooterV1081,
html body:has(> #syncExcelModal.sync-modal.show) > #simanCanonicalFooterV1081 {
  /* The modal's own layer is 2147483000. The footer must be above it. */
  z-index:2147483646!important;
  --sf-z:2147483646;
  position:fixed!important;
  /* Preserve the configured footer placement, geometry, colors and shapes. */
  pointer-events:none!important;
  visibility:visible!important;
  opacity:1!important;
}
/* The original modal remains below canonical Expand/WIB controls. */
html body > #syncExcelModal.sync-modal.show {
  z-index:2147483000!important;
}
/* Give the canonical footer a clear unobstructed bottom strip. */
html body > #syncExcelModal.sync-modal.show > .sync-panel {
  height:calc(100dvh - 88px)!important;
  max-height:calc(100dvh - 88px)!important;
}
@media(max-width:760px){
  html body > #syncExcelModal.sync-modal.show > .sync-panel {
    height:calc(100dvh - 74px - env(safe-area-inset-bottom,0px))!important;
    max-height:calc(100dvh - 74px - env(safe-area-inset-bottom,0px))!important;
  }
}
