/* PMD Stable Logo + KPI Width Lock v65
   No hiding, no overlay, no SPA. */

/* Server-rendered logo slot and JS-managed logo slot: identical geometry */
body.page.pmd-admin-theme-v1 .pmd-platform-logo-slot-v38,
body.page.pmd-admin-theme-v1 .pmd-platform-logo-slot-server-v65 {
  flex: 0 0 auto !important;
  box-sizing: border-box !important;
  overflow: visible !important;
  contain: layout paint !important;
  transition: none !important;
  animation: none !important;
  opacity: 1 !important;
  visibility: visible !important;
}

body.page.pmd-admin-theme-v1:not(.pmd-sidebar-icons-only) .pmd-platform-logo-slot-v38,
body.page.pmd-admin-theme-v1:not(.pmd-sidebar-icons-only) .pmd-platform-logo-slot-server-v65 {
  width: 186px !important;
  min-height: 84px !important;
  height: 84px !important;
  margin: -42px auto -2px !important;
  padding: 0 8px !important;
}

body.page.pmd-admin-theme-v1.pmd-sidebar-icons-only .pmd-platform-logo-slot-v38,
body.page.pmd-admin-theme-v1.pmd-sidebar-icons-only .pmd-platform-logo-slot-server-v65 {
  width: 80px !important;
  min-height: 54px !important;
  height: 54px !important;
  margin: -64px auto 4px !important;
  padding: 0 4px !important;
}

body.page.pmd-admin-theme-v1 .pmd-platform-logo-link-v38,
body.page.pmd-admin-theme-v1 .pmd-platform-logo-link-v65 {
  width: 100% !important;
  height: 100% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  overflow: visible !important;
}

body.page.pmd-admin-theme-v1 img.pmd-platform-logo-img-v38,
body.page.pmd-admin-theme-v1 img.pmd-platform-logo-img-v65 {
  display: block !important;
  object-fit: contain !important;
  transform: none !important;
  transition: none !important;
  animation: none !important;
  opacity: 1 !important;
  visibility: visible !important;
}

body.page.pmd-admin-theme-v1:not(.pmd-sidebar-icons-only) img.pmd-platform-logo-img-v38,
body.page.pmd-admin-theme-v1:not(.pmd-sidebar-icons-only) img.pmd-platform-logo-img-v65 {
  max-width: 118px !important;
  max-height: 80px !important;
  width: auto !important;
  height: auto !important;
}

body.page.pmd-admin-theme-v1.pmd-sidebar-icons-only img.pmd-platform-logo-img-v38,
body.page.pmd-admin-theme-v1.pmd-sidebar-icons-only img.pmd-platform-logo-img-v65 {
  max-width: 70px !important;
  max-height: 50px !important;
  width: auto !important;
  height: auto !important;
}

body.page.pmd-admin-theme-v1 #side-nav-menu {
  display: flex !important;
  flex-direction: column !important;
}

body.page.pmd-admin-theme-v1 .pmd-logo-cycle-nav-item-v38 {
  order: 99 !important;
  width: 100% !important;
  margin: 18px auto 0 !important;
  padding: 0 !important;
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
}

/* KPI/number jump lock: inline text needs inline-block width, not just min-width */
body.page.pmd-admin-theme-v1 .pmd-dashboard-kpi-value,
body.page.pmd-admin-theme-v1 .pmd-dashboard-kpi-value.pmd-real-loaded,
body.page.pmd-admin-theme-v1 .pmd-dashboard-kpi-value.pmd-real-updated,
body.page.pmd-admin-theme-v1 [class*="kpi-value"],
body.page.pmd-admin-theme-v1 [class*="metric-value"] {
  display: inline-block !important;
  width: 150px !important;
  min-width: 150px !important;
  max-width: 150px !important;
  height: 38px !important;
  min-height: 38px !important;
  line-height: 38px !important;
  font-variant-numeric: tabular-nums !important;
  white-space: nowrap !important;
  overflow: visible !important;
  transition: none !important;
  animation: none !important;
  transform: none !important;
}

body.page.pmd-admin-theme-v1 .pmd-dashboard-kpi-sub,
body.page.pmd-admin-theme-v1 .pmd-dashboard-kpi-sub.pmd-real-loaded,
body.page.pmd-admin-theme-v1 .pmd-dashboard-kpi-sub.pmd-real-updated,
body.page.pmd-admin-theme-v1 [class*="kpi-sub"],
body.page.pmd-admin-theme-v1 [class*="metric-sub"] {
  display: block !important;
  width: 198px !important;
  min-width: 198px !important;
  max-width: 198px !important;
  min-height: 14px !important;
  line-height: 14px !important;
  white-space: nowrap !important;
  transition: none !important;
  animation: none !important;
  transform: none !important;
}

/* Force final dashboard vertical offset from first paint, without hiding anything */
body.page.pmd-admin-theme-v1 section.pmd-dashboard-modern.pmd-owner-match-v13 > .pmd-dashboard-kpi-bar,
body.page.pmd-admin-theme-v1 section.pmd-dashboard-modern.pmd-manager-ops-v29 > .pmd-dashboard-kpi-bar {
  margin-top: 12px !important;
  min-height: 132px !important;
  transition: none !important;
  animation: none !important;
  transform: none !important;
}

body.page.pmd-admin-theme-v1 section.pmd-dashboard-modern.pmd-owner-match-v13 .pmd-dashboard-card,
body.page.pmd-admin-theme-v1 section.pmd-dashboard-modern.pmd-manager-ops-v29 .pmd-dashboard-card {
  transition: none !important;
  animation: none !important;
  transform: none !important;
}

/* Hard safety: do not let old loader classes hide things */
body.page.pmd-admin-theme-v1 .sidebar,
body.page.pmd-admin-theme-v1 #navSidebar,
body.page.pmd-admin-theme-v1 #side-nav-menu,
body.page.pmd-admin-theme-v1 .navbar-top,
body.page.pmd-admin-theme-v1 .page-wrapper,
body.page.pmd-admin-theme-v1 .page-content,
body.page.pmd-admin-theme-v1 .pmd-dashboard-modern {
  visibility: visible !important;
  opacity: 1 !important;
  pointer-events: auto !important;
}
