/**
 * @package    quantummanager
 * @author     Dmitry Tsymbal <cymbal@delo-design.ru>
 * @copyright  Copyright © 2019 Delo Design & NorrNext. All rights reserved.
 * @license    GNU General Public License version 3 or later; see license.txt
 * @link       https://www.norrnext.com
 */

.quantumtreecatalogs-module {
    position: relative;
    height: 100%;
    width: 100%;
}

.quantumtreecatalogs-module .tree-scroll {
    width: 100%;
    padding-top: 15px;
    position: absolute;
    top: 0;
    bottom: 0;
    overflow: auto;
    webkit-overflow-scrolling: touch;
    -webkit-transform: translateZ(0);
    -moz-transform: translateZ(0);
    -ms-transform: translateZ(0);
    -o-transform: translateZ(0);
    transform: translateZ(0);
}

.quantumtreecatalogs-module ul,
.quantumtreecatalogs-module .tree-ul {
    list-style-type: none;
}

.quantumtreecatalogs-module .tree-ul {
    margin: 0;
    padding: 0 15px;
}

.quantumtreecatalogs-module .root-scope > li > .tree-path {
    text-transform: uppercase;
    font-weight: 500;
}

.quantumtreecatalogs-module .tree-caret {
    cursor: pointer;
    user-select: none;
}

.quantumtreecatalogs-module .tree-nested {
    display: none;
    margin-left: 8px;
    padding-left: 0;
}

.quantumtreecatalogs-module .active {
    display: block;
}

.quantumtreecatalogs-module ul li {
    font-size: 13px;
    line-height: 17px;
    position: relative;
    white-space: nowrap;
}

.quantumtreecatalogs-module ul li span {
    position: relative;
    padding-left: 20px;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.quantumtreecatalogs-module ul li span.tree-caret {
    position: absolute;
    display: inline-block;
    top: 0px;
    left: 0;
    width: 13px;
    height: 13px;
    z-index: 1;
    cursor: pointer;
}

.quantumtreecatalogs-module ul li span.tree-caret:before {
    content: '';
    position: absolute;
    top: 5px;
    left: 2px;
    width: 8px;
    height: 8px;
    background-image: url("data:image/svg+xml,%3Csvg width='4' height='6' viewBox='0 0 4 6' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0.295013 5.295L2.58501 3L0.295013 0.705L1.00001 0L4.00001 3L1.00001 6L0.295013 5.295Z' fill='%23122E4A'/%3E%3C/svg%3E%0A");
    background-size: contain;
    background-repeat: no-repeat;
    transition: transform 0.2s;
}

.quantumtreecatalogs-module ul li span.tree-caret.tree-caret-down:before {
    transform: rotate(90deg);
}

.quantumtreecatalogs-module ul li span.tree-caret:after {
    transform: rotate(90deg);
    opacity: 1;
}

.quantumtreecatalogs-module ul li span.tree-path {
    position: relative;
    display: inline-block;
    padding-left: 38px;
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
    max-width: 90%;
    transition: all 0.2s;
    color: gray;
    font-size: 14px;
}

.quantumtreecatalogs-module ul li.active > span.tree-path {
    color: black;
}

.quantumtreecatalogs-module ul li span.tree-path:hover {
    cursor: pointer;
    text-decoration: underline;
    transition: all 0.2s;
}

.quantumtreecatalogs-module ul li span.tree-path:after {
    content: '';
    position: absolute;
    top: -1px;
    left: 18px;
    bottom: 0;
    width: 16px;
    background-repeat: no-repeat;
    background-position: 50% 50%;
    background-size: contain;
}

.quantumtreecatalogs-module ul li span.tree-path.empty:after {
}

.quantumtreecatalogs-module ul li span.tree-caret-down ~ .tree-path:after {
}

.quantumtreecatalogs-module ul li.active span.tree-path:after {
    opacity: 1;
}

.quantumtreecatalogs-module ul li.active > .tree-path {
    font-weight: bold;
}

.quantumtreecatalogs-module ul li .tree-edit,
.quantumtreecatalogs-module ul li .tree-delete {
    display: inline-block;
    width: 13px;
    height: 17px;
    padding: 0;
    margin-left: 5px;
}

.quantumtreecatalogs-module ul li .tree-edit span,
.quantumtreecatalogs-module ul li .tree-delete span {
    padding: 0;
    width: 12px;
    height: 12px;
    margin-bottom: 3px;
    transition: all 0.2s;
}

.quantumtreecatalogs-module ul li .tree-edit:hover,
.quantumtreecatalogs-module ul li .tree-delete:hover {
    cursor: pointer;
}

.quantumtreecatalogs-module ul li .tree-edit:hover span,
.quantumtreecatalogs-module ul li .tree-delete:hover span {
    transition: all 0.2s;
}

.quantummanager-fieldstandalone .quantumtreecatalogs-module {
    position: relative;
}

.quantummanager-fieldstandalone .quantumtreecatalogs-module .tree-scroll {
    display: none;
    position: absolute;
    top: 28px;
    left: 0;
    min-width: 160px;
    max-width: 250px;
    min-height: 160px;
    max-height: 260px;
    box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);
    padding: 12px 16px;
    z-index: 3;
}

.quantummanager-fieldstandalone .quantumtreecatalogs-module .tree-scroll.active {
    display: block;
}