﻿/* melikas treeview  */
.trees {
    margin-right: 10px;
}

    .trees li {
        border-right: dotted 1px #bcbec0;
        padding: 1px 30px 1px 25px;
        position: relative;
        list-style: none;
    }

        .trees li > label {
            position: relative;
            right: 15px;
            direction: rtl;
            margin: 5px 0px;
            font-size: 13px;
            font-weight: 600;
            top: -5px;
        }

        .trees li:before {
            content: "";
            width: 13px;
            height: 1px;
            border-bottom: dotted 1px #bcbec0;
            position: absolute;
            top: 10px;
            right: 0;
        }

        .trees li:last-child:after {
            content: "";
            position: absolute;
            width: 2px;
            height: 13px;
            background: #fff;
            right: -1px;
            bottom: 0px;
        }

        .trees li input {
            margin-right: 5px;
            margin-left: 5px;
        }

        .trees li.has-child > ul {
            display: none;
        }

.treeview-inpt {
    width: 17px !important;
    height: 17px !important;
}

.trees li.has-child > input + .tree-control {
    position: absolute;
    right: 7px;
    top: 1px;
    width: 20px;
    height: 20px;
    line-height: 8px;
    z-index: 2;
    display: inline-block;
    color: #fff;
    border-radius: 3px;
    background: linear-gradient(145deg, #e6e6e6 0%, #bcbcbc 80%);
}

    .trees li.has-child > input + .tree-control:after {
        content: "+";
        font-size: 21px;
        color: #183955;
        position: absolute;
        right: 4px;
        top: 5px;
        font-weight: 00;
    }

input.treeview-inpt[type="checkbox"] {
    filter: hue-rotate(30deg);
}

.blue-icon {
    color: #845fdb;
    font-size: 18px;
    margin-right: -18px;
}

.colored-icon {
    color: #a08cff;
    margin-right: -22px;
    font-size: 18px;
}

.trees li.has-child > input:checked + .tree-control:after {
    content: "-";
    font-size: 26px;
    color: #183955;
    position: absolute;
    right: 6px;
    top: 4px;
    font-weight: 600;
}

.trees li.has-child > input:checked ~ ul {
    display: block;
}

.trees ul li.has-child:last-child {
    border-left: none;
}

.trees ul li.has-child:nth-last-child(2):after {
    content: "";
    width: 1px;
    height: 5px;
    border-right: dotted 1px #bcbec0;
    position: absolute;
    bottom: -5px;
    right: -1px;
}

.tree-alt li {
    padding: 4px 0;
}

.treeview-inpt {
    opacity: 1 !important;
    width: 15px !important;
    height: 15px !important;
    position: relative !important;
    right: -14px !important;
}

.trees li.has-child > input {
    opacity: 0 !important;
    position: absolute !important;
    right: 1px !important;
    z-index: 9999 !important;
    width: 22px !important;
    height: 20px !important;
    top: 0px !important;
}

.treeview-title {
    font-size: 16px;
    font-weight: 600;
    background: #7460ee29;
    padding: 4px 10px;
    border-radius: 5px;
    color: #000;
}

.no-child .tree-control {
    display: none !important;
}
 
 
