/* scrollbars.css — ONE SCROLL BAR FOR THE WHOLE SYSTEM (the operator, 03/11/2026: "עיצוב הגלילה … בכל המערכת … בכל הדשבורדים כל
 * הפופ אפים הכל מהכל"). Every box that scrolls — a dashboard's list or table, a window, the menu, the admin, the sign-in — draws the
 * same bar: a slim glass capsule in the brand's navy with a thin bright rim, floating in its own lane, no track, no arrows. Under the
 * pointer it darkens and fills its lane; held, a step darker still.
 * How: Chrome draws ::-webkit-scrollbar only where scrollbar-width and scrollbar-color are both auto, so both go back to auto
 * everywhere. A box meant to show no bar at all (scrollbar-width:none) is listed in "NO BAR" below — tests/scrollbars.test.js finds
 * every such rule in the stylesheets and fails until its selector is listed. The lane's width never changes (only the capsule inside
 * it), so nothing moves. A phone (html.mb) keeps its own overlay bars; Firefox the standard thin bar in the same colours.
 * Linked by every page of the product (not the marketing landing). Only the brand's six shades. */

:root{--sb-cap:rgba(83,102,132,.42); --sb-cap-on:rgba(48,61,89,.66); --sb-cap-hold:rgba(30,38,59,.78); --sb-rim:rgba(220,227,239,.75);}
:root[data-qb-mode="dark"], :root[data-theme="dark"]{--sb-cap:rgba(152,169,196,.38); --sb-cap-on:rgba(152,169,196,.62); --sb-cap-hold:rgba(220,227,239,.72); --sb-rim:rgba(220,227,239,.28);}

@supports selector(::-webkit-scrollbar){
  html:not(.mb), html:not(.mb) *{scrollbar-width:auto !important; scrollbar-color:auto !important;}
  html:not(.mb)::-webkit-scrollbar, html:not(.mb) ::-webkit-scrollbar{width:12px; height:12px; background:transparent;}
  html:not(.mb)::-webkit-scrollbar-track, html:not(.mb) ::-webkit-scrollbar-track,
  html:not(.mb)::-webkit-scrollbar-corner, html:not(.mb) ::-webkit-scrollbar-corner{background:transparent;}
  html:not(.mb)::-webkit-scrollbar-button, html:not(.mb) ::-webkit-scrollbar-button{display:none; width:0; height:0;}
  html:not(.mb)::-webkit-scrollbar-thumb, html:not(.mb) ::-webkit-scrollbar-thumb{
    min-height:44px; min-width:44px; border:3px solid transparent; border-radius:999px; background-clip:padding-box;
    background-color:var(--sb-cap); box-shadow:inset 0 0 0 1px var(--sb-rim);
  }
  html:not(.mb)::-webkit-scrollbar-thumb:hover, html:not(.mb) ::-webkit-scrollbar-thumb:hover{border-width:2px; background-color:var(--sb-cap-on);}
  html:not(.mb)::-webkit-scrollbar-thumb:active, html:not(.mb) ::-webkit-scrollbar-thumb:active{border-width:2px; background-color:var(--sb-cap-hold);}

  /* NO BAR: the boxes that scroll without one (a strip of tabs, the menu, a row of signs) */
  html:not(.mb) :is(#navList, #globalTimeToggle, .qb-tabs, .ws-tabs, .ctx-sig .prz-sig, .rst-seg, .rst-seg2, #page-contest .ct-bl, #page-contest .ct-rows, #page-targets .tg-fl, #page-targets .tg-pl, #page-gfk .gk-rows, .cf-rows, #page-staff .sf-lgs, #page-reorder .ro-sups)::-webkit-scrollbar{display:none !important; width:0 !important; height:0 !important;}
}
@supports not selector(::-webkit-scrollbar){
  :where(html, html *){scrollbar-width:thin; scrollbar-color:var(--sb-cap) transparent;}
}
