/* N-Tools admin sidebar scrolling. Kept separate so feature patches do not
   have to rewrite the dashboard's inline styles. */
#sidebar {
    display: flex !important;
    flex-direction: column;
    overflow: hidden;
}

#sidebar > div:first-child {
    flex: 0 0 auto;
}

#sidebar > nav {
    flex: 1 1 auto;
    min-height: 0;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: rgba(148, 163, 184, 0.55) transparent;
}

#sidebar > nav::-webkit-scrollbar {
    width: 6px;
}

#sidebar > nav::-webkit-scrollbar-track {
    background: transparent;
}

#sidebar > nav::-webkit-scrollbar-thumb {
    background: rgba(148, 163, 184, 0.45);
    border-radius: 999px;
}

#sidebar > nav::-webkit-scrollbar-thumb:hover {
    background: rgba(148, 163, 184, 0.7);
}
