//@import "../../../abstracts/abstracts";

$scrollbar-background-color: $classlist-tree-grid-scrollbar-background-color;
$scrollbar-navigation-button-color: $classlist-tree-grid-scrollbar-navigation-button-color;
$scrollbar-track-background-color: $classlist-tree-grid-scrollbar-track-background-color;
$scrollbar-thumb-background-color: $classlist-tree-grid-scrollbar-thumb-background-color;
$scrollbar-thumb-border: $classlist-tree-grid-scrollbar-thumb-border;

.dbqsb-scrollbar {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 22px;
    height: 100%;
    //background: $scrollbar-background-color;
    background: $color-layer-3;
    border-radius: 11px;
    margin: 0;
    padding: 5px 0;

    .dbqsb-scrollbar-navigation {
        display: flex;
        flex-direction: column;
        align-items: center;

        .dbqsb-scrollbar-navigation-button {
            cursor: pointer;

            svg {
                fill: $scrollbar-navigation-button-color;
            }
        }
    }

    .dbqsb-scrollbar-track {
        width: 8px;
        height: 100%;
        min-height: 20px;
        background: $scrollbar-track-background-color;
        position: relative;
        border-radius: 5px;
        cursor: pointer;

        .dbqsb-scrollbar-thumb {
            width: 14px;
            height: 20px;
            min-height: 8px;
            position: absolute;
            left: -3px;
            background: $scrollbar-thumb-background-color;
            cursor: pointer;
            border-radius: $border-radius-default;
            border: $scrollbar-thumb-border;

            .dbqsb-scrollbar-thumb-index {
                display: flex;
                align-items: center;
                justify-content: center;
                position: absolute;
                background: $scrollbar-thumb-background-color;
                min-width: 30px;
                height: 26px;
                top: -3px;
                right: 20px;
                border: $scrollbar-thumb-border;
                border-radius: 10px;
                padding: 1px 5px;
                font-size: 12px;
                font-weight: 600;
                white-space: nowrap;
                z-index: 1;
                //box-shadow: 0 3px 10px rgba(0 0 0 0.2);

                &.dbqsb-scrollbar-thumb-index-hidden {
                    display: none;
                }
            }
        }
    }
}