.treeview{
    overflow: auto;
}
.treeview,
.treeview ul {
    padding: 0;
    margin: 0;
    list-style: none;
}

.treeview ul {
    margin-top: 4px;
}

.treeview .hitarea {
    background: url(../images/treeview-default.gif) -64px -31px no-repeat;
    height: 16px;
    width: 32px;
    margin-left: -32px;
    float: left;
    cursor: pointer;
    margin-top: 25px;
}


/* fix for IE6 */

* html .hitarea {
    display: inline;
    float: none;
}

.treeview li {
    margin: 0;
    padding: 5px 0pt 5px 32px;
    list-style: none;
}

.treeview a.selected {
    background-color: #eee;
}

#treecontrol {
    margin: 1em 0;
    display: none;
}

.treeview .hover {
    color: red;
    cursor: pointer;
}

.treeview li {
    background: url(../images/treeview-default-line.gif) 0 0 repeat-y;
}

.treeview li.collapsable,
.treeview li.expandable {
    background-position: 0 -190px;
}

.treeview .expandable-hitarea {
    background-position: -80px -7px;
}

.treeview li.last {
    background-position: 0 -1740px;
    background-repeat: no-repeat;
}

.treeview li.lastCollapsable,
.treeview li.lastExpandable {
    background-image: url(../images/treeview-default.gif);
}

.treeview li.lastCollapsable {
    background-position: 0 -111px
}

.treeview li.lastExpandable {
    background-position: -32px -67px
}

.treeview div.lastCollapsable-hitarea,
.treeview div.lastExpandable-hitarea {
    background-position: 0;
}

.treeview .placeholder {
    background: url(../images/ajax-loader.gif) 0 0 no-repeat;
    height: 16px;
    width: 16px;
    display: block;
}

.filetree li {
    padding: 3px 0 2px 16px;
}

.filetree span.folder,
.filetree span.file {
    padding: 1px 0 1px 16px;
    display: block;
}

.sidetree .sidetreecontrol a.btn {
    color: #ccc;
}

.treeview li.first-leaf {
    padding-top: 15px;
    background-position: 0 -1728px;
    background-repeat: no-repeat;
}

.treeview li.first-leaf .hitarea {
    height: 12px;
}

.treeview li.first-leaf > .hitarea {
    background-position: -64px -29px;
}
.treeview li.first-leaf.expandable > .hitarea {
    background-position: -80px -7px;
}

.name-and-desig {
    padding: 5px 0;
    margin-left: 10px;
}

.treename-widgt {
    display: inline-flex;
    align-items: center;
    font-weight: 600;
    min-width: 150px;
    position: relative;
    border: 1px solid #ccc;
}

.treename-widgt>img {
    width: 50px;
    max-height: 64px;
    display: inline-block;
    margin-right: 10px;
    border: 1px solid #dadada;
}

.treename-widgt .name-and-desig>span {
    display: block;
    padding-top: 2px;
    font-weight: 300;
}

.tree-wdgt-tooltip {
    padding: 9px 12px;
    font-weight: normal;
    margin-left: 10px;
    background: #efefef;
    color: #222;
    min-height: 64px;
}

.tree-wdgt-tooltip em.fa {
    width: 12px;
    position: absolute;
    left: 0;
    line-height: 20px
}

.tree-wdgt-tooltip .tootip-phmail {
    position: relative;
    padding-left: 20px;
    float: left;
    width: 100%;
    margin: 2px 0;
    word-break: break-all;
}

.second-tree{
    border: 2px solid #ddd;
    padding: 35px 15px 30px 15px;
    margin-top: 42px;
}
.second-tree .treeview li{
    position: relative;
}
.second-tree .treeview:first-child>li:before{
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: 20px;
    height: 30px;
    background: #fff;
}
.second-tree .treeview>li>.treename-widgt{
    padding-bottom:25px;
}
.second-tree .treeview>li.no-reporting>.treename-widgt{
    padding-bottom:0;
}
.reporting-to {
    width: 100%;
    position: absolute;
    left: 0;
    bottom: 0;
    padding: 5px 10px;
    background: #e2e2e2;
    font-weight: normal;
    font-size: 0.9em;
    border-top: 1px solid #ccc;
}


.contrast .second-tree .treeview li:first-child:before,
.contrast .second-tree .treeview, 
.contrast .reporting-to{
    background: #000 ;
}

.contrast .treename-widgt {
    background: #222;
    color: #fff;
}
.contrast .treename-widgt.accent-color:hover span {
    background-color: #333 !important;
    color: #fff !important;
}

.contrast .tree-wdgt-tooltip {
    background: #333;
    ;
}

.contrast .treeview .hitarea {
    filter: contrast(0) brightness(10);
}

@media (max-width: 991px) {
    .treename-widgt {
        display: inline-block;
    }
    .tree-wdgt-tooltip {
        margin-left: 0;
        display: inline-block;
        width: 100%;
    }
    .tree-wdgt-tooltip .tootip-phmail {
        word-break: break-word;
    }
    .name-and-desig {
        display: inline-block;
        padding: 5px;
        width: calc(100% - 55px);
    }
    .treename-widgt>img {
        margin-right: 0;
    }
    .tree-wdgt-tooltip .tootip-phmail {
        width: 100%;
    }
    .second-tree{
        border: none;
    }
    .second-tree .treeview li .treename-widgt {
        padding-bottom: 0;
    }
    .reporting-to{
        position: inherit;
    }
}