﻿/*!
 * jQuery ComboTree Plugin 
 * Author:  Erhan FIRAT
 * Mail:    erhanfirat@gmail.com
 * Licensed under the MIT license
 * Version: 1.2.1
 */


:root {
    --ct-bg: #fff;
    --ct-btn-hover: #e8e8e8;
    --ct-btn-active: #ddd;
    --ct-btn-color: #555;
    --ct-border-color: #e1e1e1;
    --ct-border-radius: 5px;
    --ct-tree-hover: #efefef;
    --ct-selection: #418EFF;
    --ct-padding: 8px;
}


.comboTreeWrapper {
    position: relative;
    text-align: right !important;
    float: right;
}

.comboTreeInputWrapper {
    position: relative;
}

.comboTreeArrowBtn {
    width: 24px;
    position: absolute;
    left: 0px;
    bottom: 0px;
    top: 0px;
    box-sizing: border-box;
    border: 1px solid var(--ct-border-color);
    cursor: pointer;
    -webkit-user-select: none; /* Safari */
    -moz-user-select: none; /* Firefox */
    -ms-user-select: none; /* IE10+/Edge */
    user-select: none; /* Standard */
}

.comboTreeInputBox:focus + .comboTreeArrowBtn {
    color: var(--ct-btn-color);
    border-top: 1px solid var(--ct-border-color);
    border-right: 1px solid var(--ct-border-color);
    border-bottom: 1px solid var(--ct-border-color);
}

.comboTreeArrowBtnImg {
    font-size: 0rem;
}

.comboTreeDropDownContainer {
    display: none;
    background: var(--ct-bg);
    border: 1px solid var(--ct-border-color);
    position: absolute;
    width: 100%;
    box-sizing: border-box;
    z-index: 999;
    max-height: 250px;
    overflow-y: auto;
    overflow-x: hidden;
}

    .comboTreeDropDownContainer ul {
        padding: 0px;
        margin: 0;
    }

    .comboTreeDropDownContainer li {
        list-style-type: none;
        padding-right: 15px;
    }

        .comboTreeDropDownContainer li .selectable {
            cursor: pointer;
            color: black;
            font: 12px tahoma !important;
        }

        .comboTreeDropDownContainer li .not-selectable {
            cursor: not-allowed;
        }


        .comboTreeDropDownContainer li:hover {
            background-color: var(--ct-tree-hover);
        }

            .comboTreeDropDownContainer li:hover ul {
                background-color: var(--ct-bg)
            }

        .comboTreeDropDownContainer li span.comboTreeItemTitle.comboTreeItemHover {
            background-color: var(--ct-selection);
            color: var(--ct-bg);
            border-radius: 2px;
        }

span.comboTreeItemTitle {
    display: block;
    padding: 3px var(--ct-padding);
}

.comboTreeDropDownContainer label {
    cursor: pointer;
    width: 100%;
    display: block;
}

.comboTreeDropDownContainer .comboTreeItemTitle input {
    position: relative;
    top: 2px;
    margin: 0px 0px 0px 5px;
}

.comboTreeParentPlus {
    position: relative;
    right: -6px;
    top: 8px;
    width: 4px;
    float: right;
    cursor: pointer;
}


.comboTreeInputBox {
    padding: var(--ct-padding);
    border: 1px solid var(--ct-border-color);
    width: 100%;
    box-sizing: border-box;
    padding-right: 24px;
    height: 27px;
    box-shadow: -1px 1px 0px #b0c9e8;
}

    .comboTreeInputBox:focus {
        border: 2px solid var(--ct-border-color);
        outline-width: 0;
    }


.multiplesFilter {
    width: 100%;
    padding: 5px;
    box-sizing: border-box;
    border-top: none;
    border-left: none;
    border-right: none;
    border-bottom: 1px solid var(--ct-border-color);
}

.mdi-chevron-down::before {
    content: "\F0140";
}

.mdi:before, .mdi-set {
    display: inline-block;
    border-color: green transparent transparent transparent;
    border-style: solid;
    border-width: 12px 8px 0 9px;
    height: 0;
    left: 50%;
    margin-left: -8px;
    margin-top: -3px;
    position: absolute;
    top: 50%;
    width: 0;
}

.mdi-chevron-down-circle-outline::before {
    content: "\F0B27";
    width: 0;
    height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 8px solid green;
    font-size: 0rem;
}

.mdi-chevron-right-circle-outline::before {
    content: "\F0B2B";
    width: 0;
    height: 0;
    border-top: 4px solid transparent;
    border-right: 8px solid green;
    border-bottom: 4px solid transparent;
    font-size: 0rem;
}
