﻿
/*************************************************

    INCLUYE:

    - Árbol (tree)
    - Árbol con checks
    - Variación del árbol para modales


*************************************************/


.e_tree_container {
    /*background: rgb(255,255,255);
    background: -moz-linear-gradient(top, rgba(255,255,255,1) 0%, rgba(241,241,241,1) 100%);
    background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,rgba(255,255,255,1)), color-stop(100%,rgba(241,241,241,1)));
    background: -webkit-linear-gradient(top, rgba(255,255,255,1) 0%,rgba(241,241,241,1) 100%);
    background: -o-linear-gradient(top, rgba(255,255,255,1) 0%,rgba(241,241,241,1) 100%);
    background: -ms-linear-gradient(top, rgba(255,255,255,1) 0%,rgba(241,241,241,1) 100%);
    background: linear-gradient(to bottom, rgba(255,255,255,1) 0%,rgba(241,241,241,1) 100%);
    filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#ffffff', endColorstr='#f1f1f1',GradientType=0 );*/
    display: none;
    position: fixed;
    /*border-right: solid 1px #ddd;*/
    bottom: 0px;
    overflow: hidden;
    z-index: 1;
    background: #f3f3f3;
    /*box-shadow: inset 0px 4px rgba(0,0,0,.07);*/
}

 
    .e_tree_container > div > div, .e_tree_container > div{
        height: 100%;
    }

    .e_tree_container > div {
        position: relative;
    }

    .e_tree_container.e_tree_open {
        display: block !important;
        padding: 10px;
        top: 80px;
    }


@media (max-width:767px) {
    .e_tree_container.e_tree_open {
        right: 0;
        left: 0;
        width: 100%;
        top: 150px;
    }
}


/* VISTA XS < 768 */

@media (max-width:767px) {
    .e_tree_container.e_tree_open {
        right: 0;
        left: 0;
        width: 100%;
        top: 180px;
        width: 270px;
        box-shadow: 0px 0px 0px 4px rgba(0,0,0,.1);
        /*border-right: solid 1px #ddd;*/
    }
}

/* VISTA SM < 991 */

@media (min-width: 768px) and (max-width:991px) {
    .e_tree_container.e_tree_open {
        box-shadow: 0px 0px 0px 4px rgba(0,0,0,.1);
        /*border-right: solid 1px #ddd;*/
        width: 270px;
        /*top: 100px;*/
    }
}

/* VISTA MD < 1199 */

@media (min-width: 992px) and (max-width:1199px) {

    .e_tree_container.e_tree_open {
        /*box-shadow: 0px 0px 0px 3px rgba(0,0,0,.03);
        border-right-color: #ddd;*/
        width: 270px;
        /*top: 100px;*/
    }
}

/* VISTA LG 1 < 1400 */

@media (min-width: 992px) and (max-width: 1439px) {

    .e_tree_container.e_tree_open {
        width: 270px;
        /*top: 100px;*/
    }

    .e_WebContent .e_WebContentNoTree {
        margin-left: 270px;
        width:auto;
    }
}


/* VISTA LG 2 > 1440 */

@media (min-width: 1440px) {

    .e_tree_container.e_tree_open {
        width: 350px;
        /*top: 100px;*/
    }

    .e_WebContent .e_WebContentNoTree {
        margin-left: 350px;
        width: auto;
    }
}

/* VISTA LG 3 > 1600 */

@media (min-width:1600px) {
    .e_tree_container.e_tree_open {
        /*top: 110px;*/
    }
}


.e_tree {
    position: absolute;
    bottom: 0;
    top: 45px;
    overflow-y: scroll;
    border: none !important;
    font-size: 12px;
    font-weight: 400;
    background: transparent !important;
    left: 0;
    right: 0;
    height: auto !important;
}

/* Tree views para cuando hay un select además del buscar */

.e_tree_views .e_tree {
    top: 75px;
}

.e_tree_views.e_tree_extra .e_tree{
    top: 115px;
}


.e_tree_views .e_tree_results {
    top: 75px;
}

.e_tree_search select.form-control {
    padding: 0 5px 0 2px;
}

.e_tree_search {
    margin: 0 0 10px;
    position: relative;
}

    .e_tree_search .form-control {
        height: 27px;
        padding: 4px 5px 6px;
        font-size: 12px;
        max-width: 100%;
    }

    .e_tree_search > .e_tree_results {
        max-height: 245px;
        min-height: 25px;
        position: absolute;
        top: 22px;
        left: 0;
        right: 0;
        background-color: #fff;
        border: 1px solid #ccc;
        -webkit-box-shadow: 0 6px 12px rgba(0, 0, 0, .175);
        box-shadow: 0 6px 12px rgba(0, 0, 0, .175);
        z-index: 2;
        overflow-y: auto;
    }

.e_tree_results > div {
    padding: 3px 10px;
    font-size: 12px;
    font-weight: bold;
}

.e_tree_results > ul > li {
    padding: 3px 10px;
    font-size: 12px;
    font-weight: bold;
}

    .e_tree_results > ul > li:hover {
        background: #e1e1e1;
        cursor: default;
    }

    .e_tree_results > ul > li span {
        font-weight: normal;
    }

    .e_tree_results > ul > li.selected {
        background: #e1e1e1;
    }

/* UL Contenedor */

.e_tree ul.igdt_NodeGroup {
    list-style: none;
    padding-left: 14px !important;
    font-size: 12px;
    font-weight: 400;
}

.e_tree > ul.igdt_NodeGroup /* Hace referencia al primer nivel del árbol */ {
    margin: 0px 0 30px;
    padding-left: 10px !important;
    margin-right: 0;
    margin-left: 5px;
}

/* LI Contenedor */
.e_tree ul.igdt_NodeGroup > li.igdt_NodeHolder {
    margin: 3px 0;
    position: relative;
}

.e_tree .igdt_NodeHolder > img:first-child {
    position: absolute;
    left: -15px;
}

.e_tree .igdt_NodeHolder > img:nth-child(2) {
    /* left: -13px; */
    /* top: 1px; */
    /*float: left;
    margin-left: -8px;
    margin-right: -3px;*/
    position: absolute;
    left: -14px;
}


.e_tree ul.igdt_NodeGroup > li.igdt_NodeHolder img:hover {
    cursor: pointer;
}


/* Padre raíz */

.igdt_NodeRoot {
    font-weight: bold !important;
}

.e_tree .igdt_NodeRoot.igdt_NodeParent {
    text-transform: uppercase;
    font-size: 12px;
}

/* Nodo padre */
.e_tree .igdt_NodeParent {
    font-weight: bold;
}

/* Nodo */
.e_tree .igdt_Node {
    color: #333;
    padding: 1px 4px 1px;
    display: inline-block;
    margin-left: 3px;
}


    .e_tree .igdt_Node:not(.e_activeNode):hover {
        background: #e0e0e0;
    }

    .e_tree .igdt_Node:hover {
        text-decoration: none;
    }

/* Arbol con checks */

.e_tree.e_tree_with_check {
    padding: 0 30px;
}

    .e_tree.e_tree_with_check .igdt_NodeHolder > img:first-child {
        left: -32px;
    }

    .e_tree.e_tree_with_check .igdt_NodeHolder > img:nth-child(2) {
        margin: 2px 0 0;
    }

    .e_tree.e_tree_with_check .igdt_NodeHolder > img:nth-child(3) {
        display: none;
    }

.e_activeNode {
    background-color: #ccc;
    color: #333;
    font-weight: bold !important;
}


/* Variación para árboles en modales */

.modal-body .e_tree,
.modal-body .e_tree_search,
.modal-body .e_tree_results {
    position: static;
    max-height: 290px;
}

.modal-body .e_tree_search {
    padding: 0 !important;
    margin: 0 0 15px 0;
}

.modal-body .e_tree > ul.igdt_NodeGroup {
    padding-left: 0px !important;
    margin-top: 7px;
    margin-bottom: 5px;
}
