footer#ynmFooter {
    position: fixed !important;
    bottom: 0 !important;
    left: var(--sidebar-width) !important;
    width: calc(100% - var(--sidebar-width)) !important;
    background: #f8f9fa !important;
    border-top: 1px solid #e9ecef !important;
    display: flex !important;
    align-items: center !important;
    padding: 0 .75rem !important;
    transition: left var(--content-transition), width var(--content-transition) !important;
    z-index: 1020 !important;
}

.sb-sidenav-toggled footer#ynmFooter {
    left: var(--sidebar-collapsed-width) !important;
    width: calc(100% - var(--sidebar-collapsed-width)) !important;
}

/* Mobile */
/* ---------- Hide footer completely on mobile and remove bottom padding ---------- */
@media (max-width: 768px) {
  /* Hide both footers if you used different IDs */
  #ynmFooter,
  #pageFooter {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
  }

 .page-content {
    padding-bottom: 1rem !important; /* or 0 if you want no extra space at all */
  }

#mainContent {
    padding-bottom: 1rem !important;
    min-height: auto !important;
  }
}