.orgchart {
  display: inline-block;
  position: relative;
  top: 30px;
  min-height: 300px;
  min-width: 202px;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  -khtml-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  background-image: #fff;
  border: 1px dashed rgba(0,0,0,0);
  transition: border .3s;
  padding: 20px;
}

.orgchart>.spinner {
  font-size: 100px;
  margin-top: 30px;
  color: rgba(68, 157, 68, 0.8);
}

.orgchart table {
  border-collapse: separate;
}

.orgchart>table:first-child{
  margin: 20px auto;
}

.oc-panel {
  position: absolute;
  left: 30px;
  top: 60px;
  z-index: 100;
  padding: 5px;
}

.oc-btn {
  margin: 2px 10px;
  position: relative;
}

/* node styling */
.orgchart .node {
  display: inline-block;
  position: relative;
  margin: 0;
  padding: 5px;
  text-align: center;
  width: 130px;
}
.orgchart .node>.spinner {
  position: absolute;
  top: calc(50% - 15px);
  left: calc(50% - 15px);
  vertical-align: middle;
  font-size: 30px;
  color: rgba(68, 157, 68, 0.8);
}
.orgchart .node:hover {
  background-color: rgba(238, 217, 54, 0.5);
  transition: .5s;
  cursor: default;
  z-index: 20;
}
.orgchart .node.focused {
  background-color: rgba(238, 217, 54, 0.5);
}
.orgchart .node .title {
  position: relative;
  text-align: center;
  font-size: 14px;
  height: 30px;
  line-height: 30px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  background-color: rgba(34, 75, 177, 0.8);
  color: #fff;
  border-radius: 4px 4px 0 0;
}
.orgchart .node .title .symbol {
  float: left;
  margin-top: 4px;
  margin-left: 2px;
}
.orgchart .node .content {
  position: relative;
  width: 100%;
  font-size: 12px;
  line-height: 1.2;
  padding: 6px 0;
  border-radius: 0 0 4px 4px;
  text-align: center;
  background-color: #f2f8fe;
  color: #333;
  overflow: hidden;
}
.orgchart .node .edge {
  font-size: 15px;
  position: absolute;
  color: rgba(68, 157, 68, 0.5);
  cursor: default;
  transition: .2s;
  transform: translate(0,0);
  -webkit-transition: .2s;
  -webkit-transform: translate(0,0);
}
.orgchart .edge:hover {
  color: #449d44;
  cursor: pointer;
}
.orgchart .node .topEdge {
  width: 100%;
  top: -5px;
  left: 0px;
}
.orgchart .node .rightEdge {
  width: 15px;
  top: calc(50% - 8px);
  right: -4px;
}
.orgchart .node .bottomEdge {
  width: 100%;
  left: 0px;
  top: auto;
  bottom: -4px;
  text-align: center;
}
.orgchart .node .leftEdge {
  width: 15px;
  top: calc(50% - 8px);
  left: -4px;
}
.orgchart .node .edge.fa-chevron-up:hover {
  transform: translate(0, -4px);
  -webkit-transform: translate(0, -4px);
}
.orgchart .node .edge.fa-chevron-down:hover {
  transform: translate(0, 4px);
  -webkit-transform: translate(0, 4px);
}
.orgchart .node .edge.fa-chevron-right:hover {
  transform: translate(4px, 0);
  -webkit-transform: translate(4px, 0);
}
.orgchart .node .edge.fa-chevron-right:hover ~ .fa-chevron-left {
  transform: translate(-4px, 0);
  -webkit-transform: translate(-4px, 0);
}
.orgchart .node .edge.fa-chevron-left:hover {
  transform: translate(-4px, 0);
  -webkit-transform: translate(-4px, 0);
}
/* the following cod doesn't work */
.orgchart .node .edge.fa-chevron-left:hover ~ .fa-chevron-right {
  transform: translate(4px, 0);
  -webkit-transform: translate(4px, 0);
}
.rightEdgeTransitionToRight {
  transform: translate(4px, 0);
  -webkit-transform: translate(4px, 0);
}
.rightEdgeTransitionToLeft {
  transform: translate(-4px, 0);
  -webkit-transform: translate(-4px, 0);
}
.orgchart .node .avatar {
  width: 50px;
  height: 50px;
  float: left;
  margin: 5px;
  background: #eee;
}

.orgchart .down {
  background-color: rgba(34, 75, 177, 0.8);
  margin: 0px auto;
  height: 20px;
  width: 2px;
}

.orgchart td.top {
  border-top: 2px solid rgba(34, 75, 177, 0.8);
}

.orgchart td.left {
  border-left: 1px solid rgba(34, 75, 177, 0.8);
}

.orgchart td.right {
  border-right: 1px solid rgba(34, 75, 177, 0.8);
}

/* node cell */
.orgchart td {
  text-align: center;
  vertical-align: top;
  padding: 0;
}

.chart-map {
    display: none;
}
.chart-preview {
    visibility: hidden;
    position: absolute;
    left: 40%;
    top: -80px;
    padding: 10px 50px;
    background: rgba(0,0,0,0.6);
    transition: .3s;
    color: #fff;
}
.chart-preview:hover {
    color: #fff;
}
.chart-preview:before {
    position: absolute;
    left: 50%;
    top: -20px;
    content: '';
    border: 10px solid transparent;
    border-bottom: 10px solid rgba(0,0,0,0.6);
}
.preview-show {
    top: 50px;
    visibility: visible;
}
@media screen and (max-width: 1024px) {
  .orgchart .node{
    width: auto;
    
  }
  .orgchart .node .title{
    font-size: 3.2vw;
    padding: 1.3333vw 2.6666vw;
  }
  .orgchart .node .content{
    font-size: 2.4vw;       
    line-height: 2.056;
  }
}