/*
 * v648 — Dedicated left-sidebar navigation utility header.
 * Layout/presentation only. Pin behaviour and navigation logic are unchanged.
 */

#layout-sidenav .df-sidebar-utility {
  box-sizing: border-box;
  min-height: 48px;
  padding: 10px 12px 8px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.14);
}

#layout-sidenav .df-sidebar-utility-label {
  color: #718096;
  font-size: 11px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.02em;
  user-select: none;
}

#layout-sidenav .df-sidebar-utility .df-sidebar-pin {
  position: static !important;
  top: auto !important;
  right: auto !important;
  z-index: auto !important;
  flex: 0 0 28px;
}

#layout-sidenav > .sidenav-inner,
#layout-sidenav > .sidenav-inner.ps {
  padding-top: 10px !important;
}

/* Preserve the existing tree width/scroll behaviour while accounting for the utility row. */
#layout-sidenav .sidenav-inner {
  max-height: calc(100vh - 160px) !important;
}

@media (max-width: 767.98px) {
  #layout-sidenav .df-sidebar-utility {
    min-height: 44px;
    padding-top: 8px;
    padding-bottom: 7px;
  }
}
