﻿.tree-drawer {
    position: absolute;
    height: 50px;
    width: 60px;
    background: var(--color-secondary);
    z-index: 999;
    line-height: 49px;
    text-align: center;
    margin-top: -61px;
    display: none;
    border-radius: 0 28px 28px 0;
}

.tree-drawer div {
        transition: all 0.3s;
        backface-visibility: hidden;
    }

.folder-tree-wrapper {
    background-color: #fff;
    width: 100%;
    min-height: auto;
    margin: 0 auto;
    border-radius: 3px;
    box-shadow: 0 0 0 0 rgba(0,0,0,.11);
}

.folder-tree {
    list-style: none;
    cursor: pointer;
    padding-left: 20px;
}

.tree-menu-category {
    color: black;
    font-size: 15px;
  /*  font-weight: 500;*/
}

.tree-category-expanded-link {
    font-size: 16px;
    font-weight: 500;
}

.tree-category-collapsed-link {
    font-size: 14px;
    font-weight: normal;
}

    .folder-tree li {
        font-size: 14px;
        transition: all .4s ease;
        position: relative;
    }

[aria-current]:not([aria-current="false"]) a {
    color: #fff !important;
    background: var(--color-primary) !important;
    border-radius: 5px !important;
    display: block !important;
}

/*[aria-current]:not([aria-current="false"]) i {
    color: #fff !important;
}
*/
.folder-tree li a:hover {
    color: var(--color-secondary-darker) !important;
}

.folder-tree li i {
    color: var(--color-secondary);
}

.folder-tree li ul {
    padding-left: 10px;
    padding-top: 8px;
}

.folder-tree ul {
    display: none;
    position: relative;
}

    .folder-tree ul:before {
        position: absolute;
        content: '';
        left: -10px;
        top: 0;
        width: 2px;
        height: 100%;
        background-color: transparent;
        border-left: dashed 1px #c2c2c2;
        border-bottom: dashed 1px #c2c2c2;
    }

.folder-tree li ul li {
    display: block;
    margin-bottom: 8px;
}

.folder-tree .arrow {
    position: absolute;
    top: 2px;
    left: -24px;
    width: 8px;
    height: 18px;
    transition: all .4s ease;
    transform: rotate(-90deg);
}

    .folder-tree .arrow i {
        color: #595959;
        transition: all .4s ease;
    }

    .folder-tree .arrow:hover i {
        color: #292929;
    }

.folder-tree li.expanded > ul {
    display: block;
}

.folder-tree li.expanded > .arrow {
    transform: rotate(0);
}
/*
    .treenpage img {
        max-width: 100%;
    }*/

/* Responsive video/iframe embeds in documentation */
article iframe,
article video,
article embed,
article object {
    max-width: 100%;
    height: auto;
}

article iframe[src*="youtube"],
article iframe[src*="vimeo"] {
    aspect-ratio: 16 / 9;
    width: 100%;
    height: auto;
}

article img {
    max-width: 100%;
    height: auto;
}

@media (max-width:812px) {
    .tree-drawer {
        display: block;
    }

    .folder-tree-wrapper {
        display: none;
    }

    /* Make sidebar column minimal on mobile, let tree menu overlay */
    .col-md-auto {
        width: 0 !important;
        padding: 0 !important;
        overflow: visible !important;
    }

    /* Make tree menu overlay on mobile when shown */
    .folder-tree-wrapper {
        position: absolute;
        left: 0;
        top: 50px;
        z-index: 998;
        width: 280px;
        max-height: 70vh;
        overflow-y: auto;
        box-shadow: 2px 2px 10px rgba(0,0,0,0.2);
        border-radius: 0 0 8px 0;
    }

    /* Symmetric small padding on mobile for doc content */
    section.row > .col {
        padding-left: 10px !important;
        padding-right: 10px !important;
    }

    /* Remove article margins on mobile - need high specificity to override Bootstrap mr-5 */
    section.row > .col > article.mr-5,
    section.row > .col > article {
        margin-left: 0 !important;
        margin-right: 0 !important;
        overflow-x: auto;
        word-wrap: break-word;
    }

    article iframe,
    article video,
    article img {
        max-width: 100% !important;
        width: auto !important;
        height: auto !important;
    }
}
