/**********************
Content
# Nodes
# Line
# Breadcrumb selected orgchart
***********************/
#orgChart {
    width: auto;
    height: auto;
}

#orgChartContainer {
    width: 100%;
    height: 100%;
    overflow: auto;
    background: #eeeeee;
}
/**********************
* Nodes
***********************/

div.orgChart div.node {
    cursor: default;
    border: 1px solid #e7e7e7;
    display: inline-block;
    padding: 5px;
    width: 160px;
    height: 155px;
}

div.orgChart p:hover {
    /*    background: #fcfaca;*/
    /*    cursor: text;*/
    cursor: pointer;
}

input.org-input {
    height: 25px;
}

div.orgChart input#desc {
    margin-top: 5px;
    margin-bottom: 10px;
}

div.orgChart div.node {
    border-radius: 10px;
}

div.orgChart h2 {
    font-weight: bold;
    min-height: 18px;
}

div.orgChart p {
    margin-top: 0px;
    margin-bottom: 0px;
    font-size: 12px;
    font-weight: 600;
    min-height: 16px;
    font-style: italic;
}

div.orgChart h5 {
    margin-top: 0px;
    margin-bottom: 0px;
    display: inline-block;
    font-size: 16px;
    font-weight: normal;
}

div.orgChart h6 {
    margin-top: 0px;
    margin-bottom: 0px;
    display: inline-block;
    font-size: 16px;
    font-weight: normal;
}


/*node color*/

/*div.orgChart div.node#active {
    background: linear-gradient(to bottom, #ffffff 0%, #ffffff 100%);
}*/

div.orgChart div.node#active {
    background: linear-gradient(to bottom, transparent 0%, transparent 100%);
    box-shadow: none;
}

div.orgChart div.node#leave {
    background: linear-gradient(to bottom, #BDBDBD 0%, #BDBDBD 100%);
}

div.orgChart div.node#inactive {
    /*background: linear-gradient(to bottom, #B0BEC5 0%, #B0BEC5 100%);
    color: #ffffff;*/
    background: linear-gradient(to bottom, transparent 0%, transparent 100%);
    box-shadow: none;
    opacity: 0.5;
}

div.orgChart div.node.selected#active, 
div.orgChart div.node.selected#leave,
div.orgChart div.node.selected#inactive, 
div.orgChart div.node.selected {
    /*border: 1px solid #de0909;*/
    background: linear-gradient(to bottom, #B0BEC5 0%, #B0BEC5 100%);
    color: #ffffff;
}


/*node border color*/


/**********************
* Line
***********************/

div.orgChart tr.lines td.left {
    border-right: 2px solid #9c9c9c;
}

div.orgChart tr.lines td.top {
    border-top: 2px solid #9c9c9c;
}


/**********************
* breadcrumb selected orgchart
***********************/

.breadcrumb-org {
    text-align: center;
    /*centering*/
    display: inline-block;
    box-shadow: 0 0 15px 1px rgba(0, 0, 0, 0.35);
    overflow: hidden;
    border-radius: 5px;
    /*Lets add the numbers for each link using CSS counters. flag is the name of the counter. to be defined using counter-reset in the parent element of the links*/
    counter-reset: flag;
    cursor: pointer;
}

.breadcrumb-org a {
    text-decoration: none;
    outline: none;
    display: block;
    float: left;
    font-size: 12px;
    line-height: 36px;
    color: white;
    /*need more margin on the left of links to accomodate the numbers*/
    padding: 0 10px 0 60px;
    background: #666;
    background: linear-gradient(#666, #333);
    position: relative;
}

.breadcrumb-org.twoline a {
    line-height: 18px;
}

/*since the first link does not have a triangle before it we can reduce the left padding to make it look consistent with other links*/

.breadcrumb-org a:first-child {
    padding-left: 46px;
    border-radius: 0px 0 0 0px;
    /*to match with the parent's radius*/
}

.breadcrumb-org a:first-child:before {
    left: 14px;
}

.breadcrumb-org a:last-child {
    border-radius: 0 0px 0px 0;
    /*this was to prevent glitches on hover*/
    padding-right: 20px;
}


/*hover/active styles*/

.breadcrumb-org a.active,
.breadcrumb-org a:hover {
    background: #333;
    background: linear-gradient(#333, #000);
}

.breadcrumb-org a.active:after,
.breadcrumb-org a:hover:after {
    background: #333;
    background: linear-gradient(135deg, #333, #000);
}


/*adding the arrows for the breadcrumb-orgs using rotated pseudo elements*/

.breadcrumb-org a:after {
    content: '';
    position: absolute;
    top: 0;
    right: -18px;
    /*half of square's length*/
    /*same dimension as the line-height of .breadcrumb-org a */
    width: 36px;
    height: 36px;
    /*as you see the rotated square takes a larger height. which makes it tough to position it properly. So we are going to scale it down so that the diagonals become equal to the line-height of the link. We scale it to 70.7% because if square's:
    length = 1; diagonal = (1^2 + 1^2)^0.5 = 1.414 (pythagoras theorem)
    if diagonal required = 1; length = 1/1.414 = 0.707*/
    transform: scale(0.707) rotate(45deg);
    /*we need to prevent the arrows from getting buried under the next link*/
    z-index: 1;
    /*background same as links but the gradient will be rotated to compensate with the transform applied*/
    background: #666;
    background: linear-gradient(135deg, #666, #333);
    /*stylish arrow design using box shadow*/
    box-shadow: 2px -2px 0 2px rgba(0, 0, 0, 0.4), 3px -3px 0 2px rgba(255, 255, 255, 0.1);
    /*
        5px - for rounded arrows and
        50px - to prevent hover glitches on the border created using shadows*/
    border-radius: 0 5px 0 50px;
}


/*we dont need an arrow after the last link*/

.breadcrumb-org a:last-child:after {
    content: none;
}


/*we will use the :before element to show numbers*/

.breadcrumb-org a:before {
    content: counter(flag);
    counter-increment: flag;
    /*some styles now*/
    border-radius: 100%;
    width: 20px;
    height: 20px;
    line-height: 20px;
    margin: 8px 0;
    position: absolute;
    top: 0;
    left: 30px;
    background: #444;
    background: linear-gradient(#444, #222);
    font-weight: bold;
}


.flat.flow a{
    height: 36px;
}
.flat.flow a, .flat.flow a:after, .flat.flow a:before {
    background: rgba(243,111,33,1);
    color: white;
}
.flat.flow a:before {
    box-shadow: 0 0 0 1px #fff;
}

.flat.rule a, .flat.rule a:after, .flat.rule a:before {
    background: rgba(66,165,206,1);
    color: white;
}
.flat.rule a:before {
    box-shadow: 0 0 0 1px #fff;
}



/*.flat.flow a:hover,*/
/*.flat.flow a.active,*/
/*.flat.flow a:hover:after,*/
/*.flat.flow a:hover:before,*/
/*.flat.flow a.active:after {*/
    /*background: rgba(243,111,33,0.9);*/
/*}*/
/*.flat.rule a:hover,*/
/*.flat.rule a.active,*/
/*.flat.rule a:hover:after,*/
/*.flat.rule a:hover:before,*/
/*.flat.rule a.active:after {*/
    /*background: rgba(66,165,206,1);*/
/*}*/

.breadcrumb-org {
    text-align: center;
    display: inline-block;
    box-shadow: 0 0 15px 1px transparent;
    overflow: hidden;
    border-radius: 0px;
    counter-reset: flag;
    cursor: pointer;
}

.breadcrumb-org a {
    margin-bottom: 3px;
    margin-top: 3px;
}

.breadcrumb-org a:after {
    content: '';
    position: absolute;
    top: 0;
    right: -18px;
    width: 36px;
    height: 36px;
    transform: scale(0.707) rotate(45deg);
    z-index: 2;
    background: #666;
    background: linear-gradient(135deg, #fff, #fff);
    box-shadow: 2px -2px 0 2px rgba(255, 255, 255, 1), 3px -3px 0 2px rgba(255, 255, 255, 1);
    border-radius: 0 5px 0 50px;
}

.dd-breadcrumb.flow, .dd-breadcrumb.flow:after, .dd-breadcrumb.hover{
    background: rgba(66,165,206,1) !important;
}


/*remove button*/

.remove-button {
    cursor: pointer;
    color: orangered;
}

.remove-button:hover {
    cursor: pointer;
    color: red;
}


/* change to jojonomic style*/

div.orgChart div.node {
    cursor: default;
    border: 1px solid transparent;
    display: inline-block;
    padding: 5px;
    width: 160px;
    height: 190px;
}

img.avatar-circle{
    border-radius: 50%;
    width: 75px;
    padding: 5px;
    border: 4px solid;
    margin-bottom: 5px;
}

.org-edit-button {
    background: none;
    width: 30px;
    height: 30px;
    bottom: 7px;
    right: 22px;
    margin: 5px;
    display: inline-block;
}

.org-del-button {
    background: none;
    width: 30px;
    height: 30px;
    bottom: 0px;
    right: 0px;
    margin: 5px;
    display: inline-block;
}

.org-add-button {
    background: none;
    height: 30px;
    width: 30px;
    bottom: 0px;
    left: 0px;
    margin: 5px;
    display: inline-block;
    padding-left: 0px;
}
.org-add-button, .org-del-button, .org-edit-button, .org-confirm-del-button {
    position: static;
    font-size: 12px;
}

.org-add-button button, .org-del-button button, .org-edit-button button{
    margin-left: 0px;
    border: 2px solid;
}