.wdk-sidebar-tree {
    background-color: var(--document-find-sidebar-tree-background-color);
    padding: 16px;
    border-radius: var(--radius);
    overflow: hidden;
}

.wdk-sidebar-tree .wdk-sidebar-tree-title {
    color: var(--document-find-sidebar-tree-title-color);
}

[id*=sidaberItem]:not(:checked)+[for*=sidaberItem]+.wdk-sidebar-tree-card-content,
.wdk-sidebar-tree #sidaberReset:checked~.wdk-group .wdk-sidebar-tree-reset-btn,
.wdk-sidebar-tree #sidaberReset:not(:checked)~[name="sidaberGroup"]:not(:checked)+.wdk-sidebar-tree-card,
.wdk-sidebar-tree-card.hidden {
    display: none;
}

.wdk-sidebar-tree-reset-btn {
    width: 32px;
    height: 32px;
    border-radius: 100%;
    color: var(--document-find-sidebar-tree-return-icon-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    cursor: pointer;
    background-color: transparent;
    transform: translateY(-2px);
}

.wdk-sidebar-tree-reset-btn:hover {
    background-color: rgba(0, 0, 0, .1);
}

.wdk-sidebar-tree-card-content {
    position: relative;
    background-color: var(--document-find-sidebar-tree-content-backgroound-color);
    margin: -16px -16px -16px -16px;
    padding-top: 32px;
    border-top: none;
}

.wdk-sidebar-tree-card-content:before {
    content: "";
    width: 100%;
    height: 16px;
    border-radius: 0 0 var(--radius) var(--radius);
    background-color: var(--document-find-sidebar-tree-background-color);
    position: absolute;
    top: -1px;
    left: 0;
}

/* Reset appearance */
.wdk-sidebar-tree-card,
.wdk-sidebar-tree-trigger {
    appearance: none;
    border: none;
    background-color: transparent;
    outline: none !important;
    box-shadow: none !important;
}

.wdk-sidebar-tree-card {
    background-color: var(--document-find-sidebar-tree-repository-background-color);
    padding: 12px;
    border-radius: var(--radius);
    transition: .5s;
    box-shadow: 0px 0px 0px rgba(0, 0, 0, .5);
    border: 1px solid transparent;
    width: 100%;
}

label.wdk-sidebar-tree-card:hover {
    cursor: pointer;
    background-color: var(--document-find-sidebar-tree-repository-background-color-hover);
}

.wdk-sidebar-tree-card:not(:last-child) {
    margin-bottom: 16px;
}

.wdk-sidebar-tree-card-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    width: 40px;
    height: 40px;
    color: var(--document-find-sidebar-tree-repository-icon-color);
    background-color: var(--document-find-sidebar-tree-repository-icon-background-color);
    border-radius: 100%;
    flex-shrink: 0;
}

.wdk-sidebar-tree .wdk-sidebar-tree-card-title {
    color: var(--document-find-sidebar-tree-repository-title-color);
}

.wdk-sidebar-tree .wdk-sidebar-tree-card-description {
    color: var(--document-find-sidebar-tree-repository-description-color);
}

.wdk-sidebar-tree-nav {
    list-style: none;
    padding: 0;
    margin: 0;
}

.wdk-sidebar-tree-nav .wdk-sidebar-tree-nav {
    margin-right: -16px;
}

.wdk-sidebar-tree-item {
    position: relative;
}

.wdk-sidebar-tree-link {
    display: block;
    font-size: 14px;
    font-weight: 500;
    padding: 6px 0px;
}

.wdk-sidebar-tree-link [class*=icon-] {
    margin-right: 6px;
}

.wdk-sidebar-tree-link:not(:last-child) {
    padding: 6px 32px 6px 6px;
    border-radius: 4px;
}

.wdk-sidebar-tree>.wdk-sidebar-tree-card-content>.accordion-collapse.collapse.show>.accordion-body>.wdk-sidebar-tree-nav>.wdk-sidebar-tree-item.parent>.wdk-sidebar-tree-link {
    background-color: var(--grey-01);
}

.wdk-sidebar-tree>.wdk-sidebar-tree-card-content .accordion-collapse.collapse.show>.accordion-body {
    padding: 0.25rem 1rem;
}

.wdk-sidebar-tree>.wdk-sidebar-tree-card-content .accordion-collapse.collapse.show>.accordion-body .wdk-hidden-content>.accordion-collapse.collapse.show:first-child .accordion-body {
    padding-top: 0.5rem;
}

.wdk-sidebar-tree-trigger {
    position: absolute;
    top: 2px;
    right: 0;
    width: 32px;
    height: 32px;
    border-radius: 100%;
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    cursor: pointer;
    background-color: transparent;
    transform: translateY(-2px);
    transition: var(--time-01);
}

.wdk-sidebar-tree-trigger:hover {
    background-color: rgba(0, 0, 0, .1);
}

.wdk-sidebar-tree-trigger[aria-expanded="true"] [class*=icon-] {
    transform: rotate(180deg);
}

li>.wdk-sidebar-tree-nav {
    padding: 0px 0px 16px 10px;
}

a.wdk-sidebar-tree-link {
    color: var(--document-find-sidebar-tree-content-item-text-color);
    background-color: var(--document-find-sidebar-tree-content-item-backgroound-color);
    border-radius: var(--radius);
}

.wdk-sidebar-tree-item.active>.wdk-sidebar-tree-link,
.wdk-sidebar-tree-item.active>.wdk-sidebar-tree-trigger,
.wdk-sidebar-tree-item>.wdk-sidebar-tree-link:hover {
    color: var(--document-find-sidebar-tree-content-item-text-color-hover-active);
}

[aria-expanded="false"]+.wdk-sidebar-tree-nav {
    display: none;
}

@media(min-width: 992px) {
    .document-list {
        max-height: calc(100vh - 100px);
        margin-bottom: -34px;
        overflow: auto;
        scrollbar-width: thin !important;
    }
    .wdk-sidebar-tree {
        max-height: calc(100vh - 120px);
        overflow: auto;
        scrollbar-width: thin !important;
    }
    .document-list::-webkit-scrollbar-track,
    .wdk-sidebar-tree::-webkit-scrollbar-track {
        background-color: var(--white-02) !important;
        -webkit-box-shadow: inset 0 0 6px var(--white-02) !important;
        box-shadow: inset 0 0 6px var(--white-02) !important;
    }
    .document-list::-webkit-scrollbar,
    .wdk-sidebar-tree::-webkit-scrollbar {
        background-color: var(--white-02) !important;
        width: 5px !important;
        height: 5px;
    }
    .document-list::-webkit-scrollbar-thumb,
    .wdk-sidebar-tree::-webkit-scrollbar-thumb  {
        background-color: var(--scroll-thumb-light-custom-color) !important;
        border-radius: 10px;
    }
}


/*  wdk-sidebar-tree
        wdk-sidebar-tree-reset-btn

        wdk-sidebar-tree-card
        wdk-sidebar-tree-card-content
            accordion-collapse
                accordion-body
                    wdk-sidebar-tree-nav
                        wdk-sidebar-tree-item
                            wdk-sidebar-tree-link
                            wdk-sidebar-tree-trigger
*/