﻿/* JobzAI Admin navigation 4.0.2. Preserve the existing mobile drawer controls. */
aside.sidebar#navigation {
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  height: 100vh;
  height: 100dvh;
  max-height: 100vh;
  max-height: 100dvh;
  min-height: 0;
  overflow: hidden;
  padding-block-end: max(12px, env(safe-area-inset-bottom));
}
aside.sidebar#navigation > .brand,
aside.sidebar#navigation > .nav-label,
aside.sidebar#navigation > .sidebar-note { flex: 0 0 auto; }
aside.sidebar#navigation > nav {
  display: block;
  flex: 1 1 0%;
  min-height: 0;
  min-width: 0;
  height: auto;
  max-height: none;
  overflow-y: auto !important;
  overflow-x: hidden;
  overscroll-behavior-y: contain;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: #91b5a8 transparent;
  scrollbar-gutter: stable;
  padding-block: 4px 16px;
  padding-inline: 2px 6px;
}
aside.sidebar#navigation > nav::-webkit-scrollbar { width: 6px; }
aside.sidebar#navigation > nav::-webkit-scrollbar-thumb {
  background: #91b5a8;
  border-radius: 6px;
}
aside.sidebar#navigation .nav-item {
  box-sizing: border-box;
  min-height: 44px;
  height: auto;
  margin-block: 3px;
  padding-block: 12px;
  padding-inline: 14px;
  line-height: 1.6;
  white-space: normal;
  overflow-wrap: anywhere;
  text-align: start;
}
aside.sidebar#navigation .nav-item > span { flex-shrink: 0; }
aside.sidebar#navigation .nav-item:focus-visible {
  outline: 2px solid #b9e5c9;
  outline-offset: -3px;
}
aside.sidebar#navigation > .sidebar-note {
  margin-block-start: 8px;
  padding-block: 10px 0;
}
@media (max-height: 600px) {
  aside.sidebar#navigation > .brand { margin-block: 0 8px; }
  aside.sidebar#navigation > .brand img { max-height: 48px; object-fit: contain; }
  aside.sidebar#navigation > .nav-label { margin-block: 6px; }
  aside.sidebar#navigation > .sidebar-note { display: none; }
}
