/* BJAS internal shell footer final authority. It never overlays module content. */

body:is(
    .internal-portal-shell,
    .internal-module-shell,
    .internal-clean-page-shell,
    .wms-module-shell,
    .wms-stock-reference-shell,
    .hris-module-shell,
    .report-module-shell
):not(.pos-shell) :is(.internal-base-footer, .internal-module-footer) {
    position: static !important;
    inset: auto !important;
    z-index: auto !important;
    flex: 0 0 auto !important;
    align-self: stretch !important;
    width: 100% !important;
    max-width: 100% !important;
    min-height: var(--shell-footer-height, 36px) !important;
    margin: auto 0 0 !important;
    padding: 8px 14px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    border-top: 1px solid var(--shell-border, #dbe3ef) !important;
    border-right: 0 !important;
    border-bottom: 0 !important;
    border-left: 0 !important;
    border-radius: 0 !important;
    background: rgba(255, 255, 255, 0.92) !important;
    color: var(--shell-muted, #64748b) !important;
    box-shadow: none !important;
    font-size: 12px !important;
    line-height: 1.3 !important;
    pointer-events: auto !important;
}

body.pos-shell :is(.internal-base-footer, .internal-module-footer),
.pos-page ~ :is(.internal-base-footer, .internal-module-footer),
.pos-page-wide ~ :is(.internal-base-footer, .internal-module-footer) {
    display: none !important;
}
