/**
 * App-wide thin scrollbars — same visual language as .pos-nk-sidebar .nk-sidebar-scroll
 * (scrollbar-width: thin + border-strong thumb / surface track). Applies to page scroll,
 * tables, modals, textareas, Select2, DataTables scroll bodies, etc.
 */

/* Firefox */
* {
    scrollbar-width: thin;
    scrollbar-color: var(--border-strong, #cbd5e1) var(--bg-surface, #ffffff);
}

:root[data-theme='dark'] * {
    scrollbar-color: var(--border-strong, #334866) var(--bg-sidebar, #070d18);
}

/* Chromium / Safari / Edge — vertical + horizontal */
*::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

*::-webkit-scrollbar-track {
    background: var(--bg-surface, #ffffff);
}

*::-webkit-scrollbar-thumb {
    background: var(--border-strong, #cbd5e1);
    border-radius: 100px;
    border: 2px solid transparent;
    background-clip: padding-box;
}

*::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted, #94a3b8);
    background-clip: padding-box;
}

*::-webkit-scrollbar-corner {
    background: transparent;
}

:root[data-theme='dark'] *::-webkit-scrollbar-track {
    background: var(--bg-sidebar, #070d18);
}

:root[data-theme='dark'] *::-webkit-scrollbar-thumb {
    background: var(--border-strong, #334866);
}

:root[data-theme='dark'] *::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted, #64748b);
}
