/* DeepFupan v0.5.4 sidebar scroll fix
   Desktop only: keep sidebar fixed, but make it an independent scroll container.
   Do not affect mobile, where sidebar is intentionally hidden. */
@media (min-width:1101px){
  aside.sidebar,
  .sidebar{
    height:100vh !important;
    height:100dvh !important;
    max-height:100vh !important;
    max-height:100dvh !important;
    overflow-y:auto !important;
    overflow-x:hidden !important;
    overscroll-behavior:contain;
    scrollbar-gutter:stable;
    -webkit-overflow-scrolling:touch;
  }

  .sidebar .brand,
  .sidebar .side-nav,
  .sidebar .side-foot{
    flex-shrink:0;
  }

  .sidebar::-webkit-scrollbar{
    width:8px;
  }

  .sidebar::-webkit-scrollbar-track{
    background:rgba(15,23,42,.38);
    border-radius:999px;
  }

  .sidebar::-webkit-scrollbar-thumb{
    background:rgba(34,211,238,.45);
    border-radius:999px;
  }

  .sidebar::-webkit-scrollbar-thumb:hover{
    background:rgba(34,211,238,.72);
  }

  .sidebar{
    scrollbar-width:thin;
    scrollbar-color:rgba(34,211,238,.55) rgba(15,23,42,.38);
  }
}

@media (max-width:1100px){
  aside.sidebar,
  .sidebar{
    display:none !important;
    height:auto !important;
    max-height:none !important;
    overflow:visible !important;
  }
}

/* === Module I6D9K5C6 sidebar scrollbar consistency BEGIN ===
   Scope: logged-in business shell pages with aside.sidebar only.
   Purpose: make VIP and admin left-sidebar scrollbar behavior visually consistent.
*/
@media (min-width: 769px) {
  aside.sidebar {
    height: 100vh;
    max-height: 100vh;
    overflow-y: scroll !important;
    scrollbar-gutter: stable;
    overscroll-behavior: contain;
  }
}
/* === Module I6D9K5C6 sidebar scrollbar consistency END === */

/* === Module I6D9K5C6C native scrollbar style parity BEGIN ===
   Scope: desktop logged-in business shell pages with aside.sidebar only.
   Purpose: make normal VIP /theme sidebar native scrollbar visually match C5 pages.
   This adjusts native scrollbar width/track/thumb only; no fake rail and no spacer.
*/
@media (min-width: 1101px) {
  aside.sidebar,
  .sidebar {
    scrollbar-width: auto;
    scrollbar-color: rgba(34, 211, 238, .72) rgba(15, 23, 42, .50);
  }

  aside.sidebar::-webkit-scrollbar,
  .sidebar::-webkit-scrollbar {
    width: 12px;
  }

  aside.sidebar::-webkit-scrollbar-track,
  .sidebar::-webkit-scrollbar-track {
    background: rgba(15, 23, 42, .50);
    border-radius: 999px;
  }

  aside.sidebar::-webkit-scrollbar-thumb,
  .sidebar::-webkit-scrollbar-thumb {
    background: rgba(34, 211, 238, .68);
    border-radius: 999px;
    border: 2px solid rgba(15, 23, 42, .50);
    min-height: 56px;
  }

  aside.sidebar::-webkit-scrollbar-thumb:hover,
  .sidebar::-webkit-scrollbar-thumb:hover {
    background: rgba(34, 211, 238, .86);
  }
}
/* === Module I6D9K5C6C native scrollbar style parity END === */
