/* Login background (moved from old img/custom.css) */
.login-page {
  background: url("img/sfondo.jpg") center center / cover no-repeat fixed;
}

/* Dashboard sidebar logo sizing fix */
.sidebar .sidebar-logo .logo-header {
  min-height: 64px;
  height: 64px;
  padding: 8px 12px;
  overflow: hidden;
}

.sidebar .sidebar-logo .logo-header .logo {
  display: inline-flex;
  align-items: center;
  max-width: calc(100% - 56px);
  height: 100%;
}

.sidebar .sidebar-logo .logo-header .logo .sidebar-brand {
  display: block;
  width: auto;
  height: auto;
  max-height: 42px;
  max-width: 100%;
  object-fit: contain;
}

/* Kaiadmin clones sidebar logo into main header on mobile */
.main-header .logo-header {
  height: 60px;
  min-height: 60px;
  overflow: hidden;
}

.main-header .logo-header .logo {
  display: inline-flex;
  align-items: center;
  height: 100%;
  max-width: calc(100% - 56px);
}

.main-header .logo-header .logo .navbar-brand,
.main-header .logo-header .logo .sidebar-brand,
.main-header .logo-header .logo img {
  width: auto !important;
  height: auto !important;
  max-height: 34px !important;
  max-width: 140px !important;
  object-fit: contain;
}

.topbar-support-link {
  display: inline-flex !important;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: #5a647b !important;
  white-space: nowrap;
}

.topbar-support-link i {
  font-size: 13px;
}

@media (max-width: 991.98px) {
  .sidebar .sidebar-logo .logo-header {
    min-height: 52px;
    height: 52px;
    padding: 6px 10px;
  }

  .sidebar .sidebar-logo .logo-header .logo {
    max-width: calc(100% - 48px);
  }

  .sidebar .sidebar-logo .logo-header .logo .sidebar-brand {
    max-height: 30px;
  }

  .main-header .logo-header {
    min-height: 50px;
    height: 50px;
  }

  .main-header .logo-header .logo .navbar-brand,
  .main-header .logo-header .logo .sidebar-brand,
  .main-header .logo-header .logo img {
    max-height: 26px !important;
    max-width: 110px !important;
  }
}
