/* Squarewave v27 — subtle, accessible, theme-matched scrollbars */
:root{--sw-scroll-track:transparent;--sw-scroll-thumb:#b5c8dc;--sw-scroll-hover:#7899bb;--sw-scroll-active:#416e9f}
/* Firefox */
html,body,.sidebar,.sidebar-nav,.main-content,.tablewrap,.dataTables_scrollBody,.dataTables_wrapper,.sw-tabbar-v23,.sw-v24-stage-tabs,textarea,select,.modal,.modal-body,[class*="overflow"],[class*="scroll"]{scrollbar-width:thin;scrollbar-color:var(--sw-scroll-thumb) var(--sw-scroll-track)}
/* Chromium / Safari */
::-webkit-scrollbar{width:7px;height:7px}
::-webkit-scrollbar-track{background:var(--sw-scroll-track);border-radius:12px}
::-webkit-scrollbar-thumb{background:var(--sw-scroll-thumb);border:1px solid transparent;background-clip:padding-box;border-radius:12px}
::-webkit-scrollbar-thumb:hover{background:var(--sw-scroll-hover)}
::-webkit-scrollbar-thumb:active{background:var(--sw-scroll-active)}
::-webkit-scrollbar-corner{background:transparent}
/* Sidebar gets an even quieter rail */
.sidebar::-webkit-scrollbar,.sidebar-nav::-webkit-scrollbar,aside::-webkit-scrollbar{width:5px}
.sidebar::-webkit-scrollbar-thumb,.sidebar-nav::-webkit-scrollbar-thumb,aside::-webkit-scrollbar-thumb{background:#a3bcd5;border-radius:12px}
/* Horizontal table/tab scrolling stays usable on touch devices */
.tablewrap,.dataTables_scrollBody,.sw-tabbar-v23,.sw-v24-stage-tabs{-webkit-overflow-scrolling:touch}
@media(hover:none){::-webkit-scrollbar{width:5px;height:5px}}
@media(forced-colors:active){*{scrollbar-color:auto!important}}
