/* WHMCS still marks the page loader with .hidden. Bootstrap 5 dropped that
   class, so the spinner sat in the page flow under the footer. */
#fullpage-overlay.hidden {
  display: none !important;
  visibility: hidden !important;
  height: 0 !important;
  overflow: hidden !important;
  pointer-events: none !important;
}

#fullpage-overlay:not(.hidden) {
  display: table !important;
  position: fixed;
  inset: 0;
  z-index: 4000;
  width: 100%;
  height: 100%;
  background: rgba(15, 23, 41, 0.72);
}

#fullpage-overlay .outer-wrapper {
  display: table-cell;
  vertical-align: middle;
  text-align: center;
}

/* Footer stays on the viewport. The page body scrolls above it. */
body.kd-client-area .kd-footer {
  position: fixed;
  bottom: 0;
  left: 260px;
  right: 0;
  z-index: 40;
  margin: 0;
  padding: 0.85rem 1.5rem calc(0.85rem + env(safe-area-inset-bottom));
  background: var(--kd-surface, #1c2634);
  border-top: 1px solid var(--kd-border, #3a4a5e);
}

body.kd-client-area.kd-sidebar-collapsed .kd-footer {
  left: 72px;
}

body.kd-client-area .kd-main {
  padding-bottom: 4.75rem;
}

@media (max-width: 991.98px) {
  body.kd-client-area .kd-footer {
    left: 0;
    right: 0;
  }

  body.kd-client-area .kd-main {
    padding-bottom: 7.5rem;
  }
}
