/* Sticky action-bar footer. The negative margins MUST equal the module's effective
   .ant-card-body padding so the bar bleeds exactly to the card edges. reference-fe's App.css
   overrides .ant-card-body to padding:12px !important, so the footer uses -12px. If your card
   padding is 16px, use -16px instead. */
.app-form-footer {
  position: sticky;
  bottom: 0;
  z-index: 10;
  margin: 16px -12px -12px -12px;
  padding: 12px;
  /* Same surface as the card; keep OPAQUE so content scrolling under the sticky bar stays masked. */
  background: #ffffff;
  border-top: 1px solid #f0f0f0;
  border-radius: 0 0 8px 8px;
}

.app-form-footer__inner {
  display: flex;
  align-items: center;
  gap: 12px;
  row-gap: 8px;
  flex-wrap: wrap;
}

.app-form-footer__inner.is-end {
  justify-content: flex-start;
}

.app-form-footer__inner.is-between {
  justify-content: space-between;
}

.app-form-footer__extra,
.app-form-footer__actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

/* If the footer lives inside a Collapse/Tabs whose overflow:hidden traps position:sticky,
   add `app-sticky-footer-host` to that wrapper so the footer can escape to .layout-content. */
.app-sticky-footer-host,
.app-sticky-footer-host .ant-collapse-item,
.app-sticky-footer-host .ant-collapse-content,
.app-sticky-footer-host .ant-collapse-content-box,
.app-sticky-footer-host .ant-tabs,
.app-sticky-footer-host .ant-tabs-content-holder,
.app-sticky-footer-host .ant-tabs-content,
.app-sticky-footer-host .ant-tabs-tabpane {
  overflow: visible !important;
}
