/**
 * Valent CRM — sayfa içi native scrollbar'lar sidebar SimpleBar görünümüne yaklaştırılır.
 * Sidebar (.sidenav-menu [data-simplebar]) tema varsayılanına dokunulmaz.
 */
:root {
    --valent-scrollbar-size: 5px;
    /* Tema SimpleBar thumb: #a2adb7, görünürken opacity 0.5 */
    --valent-scrollbar-thumb: rgba(162, 173, 183, 0.5);
    --valent-scrollbar-track: transparent;
    --valent-scrollbar-radius: 7px;
}

[data-bs-theme=dark] {
    --valent-scrollbar-thumb: rgba(162, 173, 183, 0.45);
    --valent-scrollbar-track: transparent;
}

/* Tüm sayfa — native scrollbar yukarı/aşağı (ve yatay) okları yok */
*::-webkit-scrollbar-button,
*::-webkit-scrollbar-button:single-button,
*::-webkit-scrollbar-button:double-button,
*::-webkit-scrollbar-button:vertical:start:decrement,
*::-webkit-scrollbar-button:vertical:end:increment,
*::-webkit-scrollbar-button:horizontal:start:decrement,
*::-webkit-scrollbar-button:horizontal:end:increment {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
    max-width: 0 !important;
    max-height: 0 !important;
    background: transparent !important;
    background-image: none !important;
    -webkit-appearance: none;
    appearance: none;
}

/* Bilinen kaydırılabilir alanlar (sayfa içi — sidebar SimpleBar hariç) */
html,
body,
.valent-scroll-surface,
.page-content,
.page-content *,
.app-topbar .dropdown-menu,
.app-topbar .dropdown-menu *,
.dropdown-menu,
.modal,
.modal *,
.offcanvas,
.offcanvas *,
.select2-results__options,
.choices__list--dropdown,
.dataTables_scrollBody,
.dt-scroll-body,
.table-responsive,
.valent-dt-scroll-wrap,
.valent-matrix-scroll,
.au-table-scroll,
.valent-sys-scroll-list,
.valent-email-scroll-table,
.bwg-panel-scroll,
.bwg-lead-scroll,
.bwg-send-log,
.chat-scroll,
.users-list,
.list-scroll,
.kanban-wrap,
.valent-kanban-cards,
.fc-scroller {
    scrollbar-width: thin;
    scrollbar-color: var(--valent-scrollbar-thumb) var(--valent-scrollbar-track);
}

/* WebKit — sidebar ile aynı ölçü ve radius */
html::-webkit-scrollbar,
body::-webkit-scrollbar,
.page-content ::-webkit-scrollbar,
.app-topbar .dropdown-menu ::-webkit-scrollbar,
.dropdown-menu ::-webkit-scrollbar,
.modal ::-webkit-scrollbar,
.offcanvas ::-webkit-scrollbar,
.select2-results__options::-webkit-scrollbar,
.choices__list--dropdown::-webkit-scrollbar,
.dataTables_scrollBody::-webkit-scrollbar,
.dt-scroll-body::-webkit-scrollbar,
.table-responsive::-webkit-scrollbar,
.valent-dt-scroll-wrap::-webkit-scrollbar,
.valent-matrix-scroll::-webkit-scrollbar,
.au-table-scroll::-webkit-scrollbar,
.valent-sys-scroll-list::-webkit-scrollbar,
.valent-email-scroll-table::-webkit-scrollbar,
.bwg-panel-scroll::-webkit-scrollbar,
.bwg-lead-scroll::-webkit-scrollbar,
.bwg-send-log::-webkit-scrollbar,
.chat-scroll::-webkit-scrollbar,
.users-list::-webkit-scrollbar,
.list-scroll::-webkit-scrollbar,
.kanban-wrap::-webkit-scrollbar,
.valent-kanban-cards::-webkit-scrollbar,
.fc-scroller::-webkit-scrollbar,
.custom-scroll::-webkit-scrollbar,
.valent-custom-scroll::-webkit-scrollbar {
    -webkit-appearance: none;
    width: var(--valent-scrollbar-size);
    height: var(--valent-scrollbar-size);
}

/* Yukarı/aşağı (ve yatay) oklar — sidebar SimpleBar'da yok */
.page-content ::-webkit-scrollbar-button,
.app-topbar .dropdown-menu ::-webkit-scrollbar-button,
.dropdown-menu ::-webkit-scrollbar-button,
.modal ::-webkit-scrollbar-button,
.offcanvas ::-webkit-scrollbar-button,
.select2-results__options::-webkit-scrollbar-button,
.choices__list--dropdown::-webkit-scrollbar-button,
.dataTables_scrollBody::-webkit-scrollbar-button,
.dt-scroll-body::-webkit-scrollbar-button,
.table-responsive::-webkit-scrollbar-button,
.valent-dt-scroll-wrap::-webkit-scrollbar-button,
.valent-matrix-scroll::-webkit-scrollbar-button,
.au-table-scroll::-webkit-scrollbar-button,
.valent-sys-scroll-list::-webkit-scrollbar-button,
.valent-email-scroll-table::-webkit-scrollbar-button,
.bwg-panel-scroll::-webkit-scrollbar-button,
.bwg-lead-scroll::-webkit-scrollbar-button,
.bwg-send-log::-webkit-scrollbar-button,
.chat-scroll::-webkit-scrollbar-button,
.users-list::-webkit-scrollbar-button,
.list-scroll::-webkit-scrollbar-button,
.kanban-wrap::-webkit-scrollbar-button,
.valent-kanban-cards::-webkit-scrollbar-button,
.fc-scroller::-webkit-scrollbar-button,
.custom-scroll::-webkit-scrollbar-button,
.valent-custom-scroll::-webkit-scrollbar-button,
.valent-view-menu::-webkit-scrollbar-button,
.valent-sys-log-console::-webkit-scrollbar-button {
    display: none;
    width: 0;
    height: 0;
    background: transparent;
}

.page-content ::-webkit-scrollbar-button:single-button,
.app-topbar .dropdown-menu ::-webkit-scrollbar-button:single-button,
.dropdown-menu ::-webkit-scrollbar-button:single-button,
.modal ::-webkit-scrollbar-button:single-button,
.offcanvas ::-webkit-scrollbar-button:single-button,
.select2-results__options::-webkit-scrollbar-button:single-button,
.choices__list--dropdown::-webkit-scrollbar-button:single-button,
.dataTables_scrollBody::-webkit-scrollbar-button:single-button,
.dt-scroll-body::-webkit-scrollbar-button:single-button,
.table-responsive::-webkit-scrollbar-button:single-button,
.valent-dt-scroll-wrap::-webkit-scrollbar-button:single-button,
.valent-matrix-scroll::-webkit-scrollbar-button:single-button,
.au-table-scroll::-webkit-scrollbar-button:single-button,
.valent-sys-scroll-list::-webkit-scrollbar-button:single-button,
.valent-email-scroll-table::-webkit-scrollbar-button:single-button,
.bwg-panel-scroll::-webkit-scrollbar-button:single-button,
.bwg-lead-scroll::-webkit-scrollbar-button:single-button,
.bwg-send-log::-webkit-scrollbar-button:single-button,
.chat-scroll::-webkit-scrollbar-button:single-button,
.users-list::-webkit-scrollbar-button:single-button,
.list-scroll::-webkit-scrollbar-button:single-button,
.kanban-wrap::-webkit-scrollbar-button:single-button,
.valent-kanban-cards::-webkit-scrollbar-button:single-button,
.fc-scroller::-webkit-scrollbar-button:single-button,
.custom-scroll::-webkit-scrollbar-button:single-button,
.valent-custom-scroll::-webkit-scrollbar-button:single-button,
.valent-view-menu::-webkit-scrollbar-button:single-button,
.valent-sys-log-console::-webkit-scrollbar-button:single-button,
.page-content ::-webkit-scrollbar-button:double-button,
.app-topbar .dropdown-menu ::-webkit-scrollbar-button:double-button,
.dropdown-menu ::-webkit-scrollbar-button:double-button,
.modal ::-webkit-scrollbar-button:double-button,
.offcanvas ::-webkit-scrollbar-button:double-button,
.select2-results__options::-webkit-scrollbar-button:double-button,
.choices__list--dropdown::-webkit-scrollbar-button:double-button,
.dataTables_scrollBody::-webkit-scrollbar-button:double-button,
.dt-scroll-body::-webkit-scrollbar-button:double-button,
.table-responsive::-webkit-scrollbar-button:double-button,
.valent-dt-scroll-wrap::-webkit-scrollbar-button:double-button,
.valent-matrix-scroll::-webkit-scrollbar-button:double-button,
.au-table-scroll::-webkit-scrollbar-button:double-button,
.valent-sys-scroll-list::-webkit-scrollbar-button:double-button,
.valent-email-scroll-table::-webkit-scrollbar-button:double-button,
.bwg-panel-scroll::-webkit-scrollbar-button:double-button,
.bwg-lead-scroll::-webkit-scrollbar-button:double-button,
.bwg-send-log::-webkit-scrollbar-button:double-button,
.chat-scroll::-webkit-scrollbar-button:double-button,
.users-list::-webkit-scrollbar-button:double-button,
.list-scroll::-webkit-scrollbar-button:double-button,
.kanban-wrap::-webkit-scrollbar-button:double-button,
.valent-kanban-cards::-webkit-scrollbar-button:double-button,
.fc-scroller::-webkit-scrollbar-button:double-button,
.custom-scroll::-webkit-scrollbar-button:double-button,
.valent-custom-scroll::-webkit-scrollbar-button:double-button,
.valent-view-menu::-webkit-scrollbar-button:double-button,
.valent-sys-log-console::-webkit-scrollbar-button:double-button {
    display: none;
    width: 0;
    height: 0;
    background: transparent;
}

html::-webkit-scrollbar:vertical,
body::-webkit-scrollbar:vertical,
.page-content ::-webkit-scrollbar:vertical,
.app-topbar .dropdown-menu ::-webkit-scrollbar:vertical,
.dropdown-menu ::-webkit-scrollbar:vertical,
.modal ::-webkit-scrollbar:vertical,
.offcanvas ::-webkit-scrollbar:vertical,
.select2-results__options::-webkit-scrollbar:vertical,
.choices__list--dropdown::-webkit-scrollbar:vertical,
.dataTables_scrollBody::-webkit-scrollbar:vertical,
.dt-scroll-body::-webkit-scrollbar:vertical,
.table-responsive::-webkit-scrollbar:vertical,
.valent-dt-scroll-wrap::-webkit-scrollbar:vertical,
.valent-matrix-scroll::-webkit-scrollbar:vertical,
.au-table-scroll::-webkit-scrollbar:vertical,
.valent-sys-scroll-list::-webkit-scrollbar:vertical,
.valent-email-scroll-table::-webkit-scrollbar:vertical,
.bwg-panel-scroll::-webkit-scrollbar:vertical,
.bwg-lead-scroll::-webkit-scrollbar:vertical,
.bwg-send-log::-webkit-scrollbar:vertical,
.chat-scroll::-webkit-scrollbar:vertical,
.users-list::-webkit-scrollbar:vertical,
.list-scroll::-webkit-scrollbar:vertical,
.kanban-wrap::-webkit-scrollbar:vertical,
.valent-kanban-cards::-webkit-scrollbar:vertical,
.fc-scroller::-webkit-scrollbar:vertical,
.custom-scroll::-webkit-scrollbar:vertical,
.valent-custom-scroll::-webkit-scrollbar:vertical {
    width: var(--valent-scrollbar-size);
}

html::-webkit-scrollbar:horizontal,
body::-webkit-scrollbar:horizontal,
.page-content ::-webkit-scrollbar:horizontal,
.app-topbar .dropdown-menu ::-webkit-scrollbar:horizontal,
.dropdown-menu ::-webkit-scrollbar:horizontal,
.modal ::-webkit-scrollbar:horizontal,
.offcanvas ::-webkit-scrollbar:horizontal,
.select2-results__options::-webkit-scrollbar:horizontal,
.choices__list--dropdown::-webkit-scrollbar:horizontal,
.dataTables_scrollBody::-webkit-scrollbar:horizontal,
.dt-scroll-body::-webkit-scrollbar:horizontal,
.table-responsive::-webkit-scrollbar:horizontal,
.valent-dt-scroll-wrap::-webkit-scrollbar:horizontal,
.valent-matrix-scroll::-webkit-scrollbar:horizontal,
.au-table-scroll::-webkit-scrollbar:horizontal,
.valent-sys-scroll-list::-webkit-scrollbar:horizontal,
.valent-email-scroll-table::-webkit-scrollbar:horizontal,
.bwg-panel-scroll::-webkit-scrollbar:horizontal,
.bwg-lead-scroll::-webkit-scrollbar:horizontal,
.bwg-send-log::-webkit-scrollbar:horizontal,
.chat-scroll::-webkit-scrollbar:horizontal,
.users-list::-webkit-scrollbar:horizontal,
.list-scroll::-webkit-scrollbar:horizontal,
.kanban-wrap::-webkit-scrollbar:horizontal,
.valent-kanban-cards::-webkit-scrollbar:horizontal,
.fc-scroller::-webkit-scrollbar:horizontal,
.custom-scroll::-webkit-scrollbar:horizontal,
.valent-custom-scroll::-webkit-scrollbar:horizontal {
    height: var(--valent-scrollbar-size);
}

html::-webkit-scrollbar-thumb,
body::-webkit-scrollbar-thumb,
.page-content ::-webkit-scrollbar-thumb,
.app-topbar .dropdown-menu ::-webkit-scrollbar-thumb,
.dropdown-menu ::-webkit-scrollbar-thumb,
.modal ::-webkit-scrollbar-thumb,
.offcanvas ::-webkit-scrollbar-thumb,
.select2-results__options::-webkit-scrollbar-thumb,
.choices__list--dropdown::-webkit-scrollbar-thumb,
.dataTables_scrollBody::-webkit-scrollbar-thumb,
.dt-scroll-body::-webkit-scrollbar-thumb,
.table-responsive::-webkit-scrollbar-thumb,
.valent-dt-scroll-wrap::-webkit-scrollbar-thumb,
.valent-matrix-scroll::-webkit-scrollbar-thumb,
.au-table-scroll::-webkit-scrollbar-thumb,
.valent-sys-scroll-list::-webkit-scrollbar-thumb,
.valent-email-scroll-table::-webkit-scrollbar-thumb,
.bwg-panel-scroll::-webkit-scrollbar-thumb,
.bwg-lead-scroll::-webkit-scrollbar-thumb,
.bwg-send-log::-webkit-scrollbar-thumb,
.chat-scroll::-webkit-scrollbar-thumb,
.users-list::-webkit-scrollbar-thumb,
.list-scroll::-webkit-scrollbar-thumb,
.kanban-wrap::-webkit-scrollbar-thumb,
.valent-kanban-cards::-webkit-scrollbar-thumb,
.fc-scroller::-webkit-scrollbar-thumb,
.custom-scroll::-webkit-scrollbar-thumb,
.valent-custom-scroll::-webkit-scrollbar-thumb {
    background-color: var(--valent-scrollbar-thumb);
    border-radius: var(--valent-scrollbar-radius);
    border: none;
}

html::-webkit-scrollbar-track,
body::-webkit-scrollbar-track,
.page-content ::-webkit-scrollbar-track,
.app-topbar .dropdown-menu ::-webkit-scrollbar-track,
.dropdown-menu ::-webkit-scrollbar-track,
.modal ::-webkit-scrollbar-track,
.offcanvas ::-webkit-scrollbar-track,
.select2-results__options::-webkit-scrollbar-track,
.choices__list--dropdown::-webkit-scrollbar-track,
.dataTables_scrollBody::-webkit-scrollbar-track,
.dt-scroll-body::-webkit-scrollbar-track,
.table-responsive::-webkit-scrollbar-track,
.valent-dt-scroll-wrap::-webkit-scrollbar-track,
.valent-matrix-scroll::-webkit-scrollbar-track,
.au-table-scroll::-webkit-scrollbar-track,
.valent-sys-scroll-list::-webkit-scrollbar-track,
.valent-email-scroll-table::-webkit-scrollbar-track,
.bwg-panel-scroll::-webkit-scrollbar-track,
.bwg-lead-scroll::-webkit-scrollbar-track,
.bwg-send-log::-webkit-scrollbar-track,
.chat-scroll::-webkit-scrollbar-track,
.users-list::-webkit-scrollbar-track,
.list-scroll::-webkit-scrollbar-track,
.kanban-wrap::-webkit-scrollbar-track,
.valent-kanban-cards::-webkit-scrollbar-track,
.fc-scroller::-webkit-scrollbar-track,
.custom-scroll::-webkit-scrollbar-track,
.valent-custom-scroll::-webkit-scrollbar-track {
    background-color: var(--valent-scrollbar-track);
    border-radius: var(--valent-scrollbar-radius);
}

html::-webkit-scrollbar-corner,
body::-webkit-scrollbar-corner,
.page-content ::-webkit-scrollbar-corner,
.app-topbar .dropdown-menu ::-webkit-scrollbar-corner,
.dropdown-menu ::-webkit-scrollbar-corner,
.modal ::-webkit-scrollbar-corner,
.offcanvas ::-webkit-scrollbar-corner,
.select2-results__options::-webkit-scrollbar-corner,
.choices__list--dropdown::-webkit-scrollbar-corner,
.dataTables_scrollBody::-webkit-scrollbar-corner,
.dt-scroll-body::-webkit-scrollbar-corner,
.table-responsive::-webkit-scrollbar-corner,
.valent-dt-scroll-wrap::-webkit-scrollbar-corner,
.valent-matrix-scroll::-webkit-scrollbar-corner,
.au-table-scroll::-webkit-scrollbar-corner,
.valent-sys-scroll-list::-webkit-scrollbar-corner,
.valent-email-scroll-table::-webkit-scrollbar-corner,
.bwg-panel-scroll::-webkit-scrollbar-corner,
.bwg-lead-scroll::-webkit-scrollbar-corner,
.bwg-send-log::-webkit-scrollbar-corner,
.chat-scroll::-webkit-scrollbar-corner,
.users-list::-webkit-scrollbar-corner,
.list-scroll::-webkit-scrollbar-corner,
.kanban-wrap::-webkit-scrollbar-corner,
.valent-kanban-cards::-webkit-scrollbar-corner,
.fc-scroller::-webkit-scrollbar-corner,
.custom-scroll::-webkit-scrollbar-corner,
.valent-custom-scroll::-webkit-scrollbar-corner {
    background-color: var(--valent-scrollbar-track);
}

/* Dropdown / görünüm menüsü — track arka planı menü rengi (sidebar dışı özel alan) */
.valent-view-menu,
.dropdown-menu.show {
    --valent-scrollbar-track: var(--valent-view-menu-bg, var(--bs-dropdown-bg, var(--ct-white, #fff)));
    scrollbar-color: var(--valent-scrollbar-thumb) var(--valent-scrollbar-track);
}

.valent-view-menu::-webkit-scrollbar-track,
.dropdown-menu.show::-webkit-scrollbar-track {
    background-color: var(--valent-scrollbar-track);
    -webkit-box-shadow: inset 0 0 0 100px var(--valent-scrollbar-track);
}

.valent-view-menu::-webkit-scrollbar-corner,
.dropdown-menu.show::-webkit-scrollbar-corner {
    background-color: var(--valent-scrollbar-track);
}

[data-bs-theme=dark] .valent-view-menu,
[data-bs-theme=dark] .dropdown-menu.show {
    --valent-scrollbar-track: var(--valent-view-menu-bg, var(--bs-dropdown-bg, var(--ct-gray-800, #343a40)));
}

/* Terminal log — koyu zemin, aynı ince çubuk */
.valent-sys-log-console {
    --valent-scrollbar-thumb: rgba(255, 255, 255, 0.22);
    --valent-scrollbar-track: transparent;
    scrollbar-color: var(--valent-scrollbar-thumb) var(--valent-scrollbar-track);
}

.valent-sys-log-console::-webkit-scrollbar-thumb {
    background-color: var(--valent-scrollbar-thumb);
    border-radius: var(--valent-scrollbar-radius);
}

/* Dikey scrollbar — sayfa içi, yalnızca ince thumb (ok yok) */
html,
body,
.page-content,
.page-content * {
    scrollbar-width: thin;
    scrollbar-color: var(--valent-scrollbar-thumb) var(--valent-scrollbar-track);
}

html::-webkit-scrollbar:vertical,
body::-webkit-scrollbar:vertical,
.page-content ::-webkit-scrollbar:vertical {
    width: var(--valent-scrollbar-size) !important;
    -webkit-appearance: none !important;
    appearance: none !important;
}

.page-content ::-webkit-scrollbar-button,
*::-webkit-scrollbar-button,
*::-webkit-scrollbar-button:vertical,
*::-webkit-scrollbar-button:horizontal,
*::-webkit-scrollbar-button:single-button,
*::-webkit-scrollbar-button:double-button,
*::-webkit-scrollbar-button:vertical:decrement,
*::-webkit-scrollbar-button:vertical:increment,
*::-webkit-scrollbar-button:vertical:start,
*::-webkit-scrollbar-button:vertical:end,
*::-webkit-scrollbar-button:vertical:start:decrement,
*::-webkit-scrollbar-button:vertical:end:increment,
*::-webkit-scrollbar-button:vertical:single-button:decrement,
*::-webkit-scrollbar-button:vertical:single-button:increment,
*::-webkit-scrollbar-button:vertical:double-button:decrement,
*::-webkit-scrollbar-button:vertical:double-button:increment,
*::-webkit-scrollbar-button:horizontal:start:decrement,
*::-webkit-scrollbar-button:horizontal:end:increment {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
    min-width: 0 !important;
    min-height: 0 !important;
    max-width: 0 !important;
    max-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    background-image: none !important;
    -webkit-appearance: none !important;
    appearance: none !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

/* SimpleBar (sidebar, offcanvas) — native scrollbar tamamen kapalı; yalnızca overlay thumb */
.sidenav-menu .simplebar-content-wrapper,
.offcanvas .simplebar-content-wrapper,
[data-simplebar] > .simplebar-wrapper .simplebar-content-wrapper,
.simplebar-content-wrapper,
.simplebar-hide-scrollbar {
    scrollbar-width: none !important;
    -ms-overflow-style: none !important;
}

.sidenav-menu .simplebar-content-wrapper::-webkit-scrollbar,
.offcanvas .simplebar-content-wrapper::-webkit-scrollbar,
[data-simplebar] > .simplebar-wrapper .simplebar-content-wrapper::-webkit-scrollbar,
.simplebar-content-wrapper::-webkit-scrollbar,
.simplebar-hide-scrollbar::-webkit-scrollbar {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
    background: transparent !important;
    -webkit-appearance: none !important;
}

.sidenav-menu .simplebar-content-wrapper::-webkit-scrollbar-button,
.offcanvas .simplebar-content-wrapper::-webkit-scrollbar-button,
.simplebar-content-wrapper::-webkit-scrollbar-button,
.simplebar-hide-scrollbar::-webkit-scrollbar-button {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
}
