/* Main Layout Fix - Ensure sidebar doesn't overlap content */
.page-wrapper {
  display: flex;
  min-height: calc(100vh - 64px);
  margin-top: 64px;
  /* Space for fixed header */
}

.page-wrapper_sidebar {
  width: 256px;
  flex-shrink: 0;
  background: white;
  border-right: 1px solid #E5E7EB;
  height: calc(100vh - 64px);
  overflow-y: auto;
  position: sticky;
  top: 64px;
}

.page-wrapper_content {
  flex: 1;
  min-width: 0;
  overflow-x: hidden;
}

.page-wrapper_top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  background: white;
  border-bottom: 1px solid #E5E7EB;
  position: sticky;
  top: 0;
  z-index: 10;
}

.page-title {
  font-size: 24px;
  font-weight: 600;
  color: #111827;
  margin: 0;
}

/* Admin bar — push fixed header below the 32px WordPress toolbar */
.admin-bar .unitronics-header,
.admin-bar .mobile-header {
  top: 32px;
}

.admin-bar .page-wrapper_sidebar {
  top: 96px;
  /* 64px header + 32px admin bar */
  height: calc(100vh - 96px);
}

/* sidebar-container is the inner sticky element — must also shift */
.admin-bar .sidebar-container {
  top: 96px;
  height: calc(100vh - 96px);
}

@media screen and (max-width: 782px) {

  .admin-bar .unitronics-header,
  .admin-bar .mobile-header {
    top: 46px;
  }
}

/* Fix for nice-select dropdown infinite list */
.nice-select .list {
  max-height: 250px;
  overflow-y: auto !important;
}