.td-sidebar-nav {
    padding-right: 0.5rem;
    margin-right: -15px;
    margin-left: -15px;

    @include media-breakpoint-up(md) {
        @supports (position: sticky) {
            max-height: calc(100vh - 4rem);
            overflow-y: auto;
        }
    }


    @include media-breakpoint-up(md) {
        display: block !important;
    }


    &__section {
        li {
            list-style: none;
        }

        ul {
            padding: 0;
            margin: 0;
        }

        @include media-breakpoint-up(md) {
            & > ul {
                padding-left: .5rem;
            }
        }


        padding-left: 0;
    }

    &__section-title {
        display: block;
        font-weight: 550;

        .active {
            font-weight: 800;
            color: $gray-900;
        }

        a {
            color: $gray-700;
        }
    }

    .td-sidebar-link {
        display: block;
        padding-bottom: 0.375rem;

        &__page {
            color: $gray-600;
            font-weight: $font-weight-light;
        }
    }

    a {
        &:hover {
            color: $blue;
            text-decoration: none;
        }

        &.active {
            font-weight: 800;
            color: $gray-800;
            
        }
    }

    .dropdown {
        a {
            color: $gray-700;
        }

        .nav-link {
             padding: 0 0 1rem;
        }
    }
}

.td-sidebar {
    padding-top: 4rem;
    margin-bottom: var(--of--spacer--md);
    display:flex;
    justify-content: center;
    background: var(--of--color-white--200);
    span {
        margin-left: var(--of--spacer--md);
        font-family: var(--of--font-family);
    }
    @include media-breakpoint-up(md) {
        padding-top: var(--of--spacer--md);
        padding-bottom: 4rem;
        background-color: $td-sidebar-bg-color;
        margin-bottom: 0;
        padding-right: 1rem;
        border-right: 1px solid $td-sidebar-border-color;
    }

    &__toggle {
        line-height: 1;
        color: $gray-900;
        margin: 1rem;
    }

    &__search {
        padding: 1rem 15px;
        margin-right: -15px;
        margin-left: -15px;
    }

    &__inner {
        order: 0;

        @include media-breakpoint-up(md) {
            @supports (position: sticky) {
                position: sticky;
                top:71px;
                z-index: 10;
                height: calc(100vh - 6rem);
            }
        }


        @include media-breakpoint-up(xl) {
            flex: 0 1 320px;
        }


        .td-search-box {
            width: 100%;
        }

        &__heading {
            padding: var(--of--spacer--md);
            background: var(--of--color-brand--300);
            color: var(--of--color-white--100);
            margin-left: -15px;
            margin-right: -15px;
        }
    }
}