/* PMD Sidebar Closed Raise v52
   Tiny closed-sidebar-only adjustment.
   Moves the whole closed sidebar stack upward: logo, menu icons, and edge button.
   Does NOT touch open sidebar, dashboards, logo switcher, routes, or data. */

html body.page.pmd-admin-theme-v1.pmd-sidebar-icons-only #navSidebar.nav-sidebar {
  padding-top: 0 !important;
}

/* Move closed logo much higher, removing the empty top gap */
html body.page.pmd-admin-theme-v1.pmd-sidebar-icons-only .pmd-platform-logo-slot-v38 {
  min-height: 58px !important;
  height: 58px !important;
  padding: 0 4px 0 !important;
  margin: -42px auto 8px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

html body.page.pmd-admin-theme-v1.pmd-sidebar-icons-only .pmd-platform-logo-link-v38 {
  min-height: 56px !important;
  height: 56px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

html body.page.pmd-admin-theme-v1.pmd-sidebar-icons-only img.pmd-platform-logo-img-v38 {
  max-width: 58px !important;
  max-height: 56px !important;
  object-fit: contain !important;
}

/* Wide logo candidates need a little more width but still remain inside the closed rail */
html.pmd-logo-candidate-5-v38 body.page.pmd-admin-theme-v1.pmd-sidebar-icons-only img.pmd-platform-logo-img-v38,
html.pmd-logo-candidate-6-v38 body.page.pmd-admin-theme-v1.pmd-sidebar-icons-only img.pmd-platform-logo-img-v38 {
  max-width: 70px !important;
  max-height: 52px !important;
}

/* Pull icons up with the logo so the whole rail feels balanced */
html body.page.pmd-admin-theme-v1.pmd-sidebar-icons-only #side-nav-menu {
  padding-top: 0 !important;
  margin-top: -2px !important;
  max-height: calc(100vh - 126px) !important;
}

html body.page.pmd-admin-theme-v1.pmd-sidebar-icons-only #side-nav-menu > .nav-item {
  margin-bottom: 7px !important;
}

/* Move edge arrow upward too, aligned with the raised closed rail */
html body.page.pmd-admin-theme-v1.pmd-sidebar-icons-only .pmd-sidebar-icons-toggle {
  top: 104px !important;
}
