.main-footer.app-brand-footer {
  position: relative;
  z-index: 2;
  display: grid;
  flex: 0 0 auto;
  box-sizing: border-box;
  width: 100%;
  margin-left: 0;
  overflow-wrap: anywhere;
  grid-template-columns: minmax(0, 1fr) minmax(0, 42%);
  align-items: center;
  gap: 12px 24px;
  padding: 14px 20px;
  color: #6c757d;
  background: #fff;
  border-top: 1px solid #dee2e6;
}

.login-page .main-footer.app-brand-footer { margin-left: 0; background: #fff; }
body.login-page { overflow-x: hidden; }
.wrapper .main-footer.app-brand-footer { position: relative !important; inset: auto !important; width: auto; margin-left: 250px; }
.layout-footer-fixed .wrapper .content-wrapper { margin-bottom: 0 !important; padding-bottom: 0 !important; }
.sidebar-collapse .wrapper .main-footer.app-brand-footer { margin-left: 4.6rem; }
.layout-top-nav .wrapper .main-footer.app-brand-footer { margin-left: 0; }

.app-brand-footer-copyright { min-width: 0; font-weight: 600; overflow-wrap: anywhere; }
.app-brand-footer-powered { display: flex; align-items: center; justify-content: flex-end; gap: 6px 9px; min-width: 0; max-width: 100%; flex-wrap: wrap; overflow-wrap: anywhere; }
.app-brand-footer-powered > * { min-width: 0; max-width: 100%; }
.app-brand-footer-powered > span { white-space: normal; }
.app-brand-footer-powered img { display: block; width: auto; max-width: min(100%, 150px); height: auto; object-fit: contain; filter: grayscale(1); opacity: .78; transition: filter .18s ease, opacity .18s ease; }
.app-brand-footer-powered:hover img { filter: grayscale(0); opacity: 1; }
.app-brand-footer-powered strong { color: #59636c; font-weight: 600; }
.app-brand-footer-version { color: #7b838a; font-size: 12px; font-weight: 400; white-space: nowrap; }
.footer-brand-preview { display: flex; align-items: center; justify-content: space-between; gap: 12px 24px; min-height: 76px; padding: 16px 20px; border: 1px solid #dee2e6; background: #fff; color: #6c757d; }
.footer-brand-preview-powered { display: flex; align-items: center; justify-content: flex-end; gap: 9px; }
.footer-brand-preview-powered img { width: auto; height: auto; object-fit: contain; filter: grayscale(1); opacity: .78; transition: filter .18s ease, opacity .18s ease; }
.footer-brand-preview-powered:hover img { filter: grayscale(0); opacity: 1; }
.footer-brand-preview-powered strong { color: #59636c; }
.footer-brand-version { color: #7b838a; font-size: 12px; font-weight: 400; white-space: nowrap; }

@media (max-width: 575.98px) {
  .main-footer.app-brand-footer { grid-template-columns: minmax(0, 1fr); align-items: flex-start; padding: 12px 15px; }
  .app-brand-footer-powered { flex-wrap: wrap; justify-content: flex-start; }
  .footer-brand-preview { align-items: flex-start; flex-direction: column; }
  .footer-brand-preview-powered { flex-wrap: wrap; justify-content: flex-start; }
}

@media (max-width: 991.98px) {
  .wrapper .main-footer.app-brand-footer,
  .sidebar-collapse .wrapper .main-footer.app-brand-footer { margin-left: 0; }
}
