/* Home desktop — layout partial */

@media (min-width: 901px) {
  .mt-dashboard .topbar-left {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
  }

  .mt-dashboard .topbar .hamburger-btn,
  .mt-dashboard .topbar .topbar-mobile-logo {
    display: none !important;
  }

  .mt-dashboard .desk-home .mt-dash-grid {
    margin-bottom: 0;
  }

  .mt-dashboard .desk-home .mt-panel-sm {
    min-height: 228px;
  }
}

/* Sidebar brand */
.mt-dashboard #desktopSidebar .mt-brand-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 4px 8px 22px !important;
  border-bottom: none !important;
  margin-bottom: 0 !important;
}

.mt-dashboard #desktopSidebar .mt-brand-logo {
  height: 28px;
  width: auto;
  max-width: 138px;
  display: block;
  object-fit: contain;
}

.mt-dashboard .mt-brand-logo--mobile {
  height: 26px;
  max-width: 120px;
}

.mt-dashboard .mt-brand-logo--drawer {
  height: 28px;
  max-width: 130px;
}

.mt-dashboard #desktopSidebar .mt-brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  flex-shrink: 0;
  background: linear-gradient(150deg, var(--mt-purple), var(--mt-purple-deep));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  box-shadow: 0 4px 14px rgba(124, 92, 246, 0.35);
}

.mt-dashboard #desktopSidebar .mt-brand-text {
  font-weight: 700;
  font-size: 17px;
  letter-spacing: -0.01em;
  color: var(--mt-text-primary);
  white-space: nowrap;
  overflow: hidden;
  transition: opacity 0.2s, width 0.2s;
}

.mt-dashboard #desktopSidebar .mt-account {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 10px !important;
  margin-bottom: 18px !important;
  border-radius: var(--mt-radius-sm) !important;
  background: transparent !important;
  border: none !important;
  flex-wrap: wrap;
}

.mt-dashboard #desktopSidebar .mt-account-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  flex-shrink: 0;
  background: linear-gradient(150deg, #C9BBFF, var(--mt-purple-soft));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  overflow: hidden;
}

.mt-dashboard #desktopSidebar .mt-account-info {
  overflow: hidden;
  white-space: nowrap;
  flex: 1;
  min-width: 0;
}

.mt-dashboard #desktopSidebar .mt-account-name {
  font-weight: 600;
  font-size: 14px;
  color: var(--mt-text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mt-dashboard #desktopSidebar .mt-account-role {
  font-size: 12.5px;
  color: var(--mt-text-secondary);
  margin-top: 1px;
}

.mt-dashboard #desktopSidebar .mt-account-upgrade {
  display: none;
}

body.mt-dashboard.sidebar-collapsed #desktopSidebar .mt-brand-text,
body.mt-dashboard.sidebar-collapsed #desktopSidebar .mt-account-info {
  opacity: 0;
  width: 0;
  overflow: hidden;
}

body.mt-dashboard.sidebar-collapsed #desktopSidebar .mt-brand-row {
  justify-content: center;
  padding-bottom: 18px !important;
}

body.mt-dashboard.sidebar-collapsed #desktopSidebar .mt-brand-logo {
  max-width: 68px;
  height: 22px;
  margin: 0 auto;
}

body.mt-dashboard.sidebar-collapsed #desktopSidebar .mt-account {
  justify-content: center;
}
