.org-chart {
  height: 400px;
}
.org-chart .direct-report:after {
  height: 130px;
}
.org-chart .deputy .departments {
  top: 148px;
}
.org-chart .deputy .departments:after {
  width: 25% !important;
}
.org-chart .departments .department {
  width: 24% !important;
}
.org-chart .departments {
  top: 306px;
}
.org-chart .departments .dep-b span.node,
.org-chart .departments .dep-a span.node,
.org-chart .departments .dep-c span.node,
.org-chart .departments .dep-d span.node {
  width: 130px;
  padding: 5px;
  margin: 0 30px !important;
}
.cf.org-chart .deputy.direct-report.left .departments .department.dep-b span.node {
  left: 236%;
  width: 150%;
}
.org-chart .deputy .department .node {
  width: 65%;
}
.org-chart .department:before {
  left: 60%;
}
.org-chart .deputy ul {
  top: 148px;
  right: 60px;
}
.org-chart ul.direct-report.left,
.org-chart ul.direct-report.right {
  top: 175px;
}
.org-chart .director .deputy.direct-report.left li {
  width: 356px;
  padding-right: 270px;
}
.cf.org-chart .deputy.direct-report.left .departments {
  top: 123px;
}
.cf.org-chart ul.deputy.direct-report.left .departments:after {
  content: "";
  display: block;
  position: absolute;
  width: 81.1%;
  height: 50px;
  border-top: 1px solid #1a5293;
  border-left: 1px solid #1a5293;
  border-right: none;
  margin: 0 auto;
  top: -100px;
  left: 62.1%;
}
.org-chart .departments li.department.dep-a,
.org-chart .departments li.department.dep-b {
  padding-right: 15px !important;
}
.org-chart ul.direct-report.left li.department.dep-a:first-child span.node {
  left: 143%;
  width: 150%;
}
.org-chart .deputy.direct-report.left > li:first-child {
  float: left;
  left: 17.5%;
  border-bottom: none;
  border-right: none;
}
.cf.org-chart .director ul.direct-report.left li:first-child span.node {
  left: 133%;
  width: 55%;
  top: 0;
  right: 0;
}
.cf.org-chart .director ul.deputy.direct-report.left li:first-child span.node {
  right: 25px;
  left: 137%;
  width: 185%;
  top: 43px;
}
.cf.org-chart .director ul.deputy.direct-report.left li.department.dep-a span.node {
  left: 142%;
  width: 150%;
}
.org-chart .direct-report > li:first-child .node {
  width: 100%;
  left: 50%;
}
.org-chart .center.direct-report > li:first-child {
  top: -9px;
  width: 25%;
  height: 65px;
  margin: 0 200px 92px auto;
  padding-top: 30px;
  border-bottom: 1px solid #1a5293;
  left: 41px;
}
.org-chart .direct-report.right > li:first-child {
  float: right;
  right: 7%;
  border-left: none;
}
.org-chart .direct-report.right > li:first-child .node {
  left: 55%;
  width: 54%;
}
.org-chart .deputy.direct-report::after {
  border-left: none;
}
.org-chart .departments .department.dep-a::before {
  border: 1px solid #1a5293;
  top: 12px;
  left: 260px;
  height: 68px;
  border-right: none;
}
.org-chart .cf.departments .department.dep-a::before {
  border: none;
}
.org-chart .deputy.direct-report.left .departments .department.dep-b::before {
  border: 1px solid #1a5293;
  left: 495px;
  top: 20px;
  height: 60px;
  border-right: none;
}
.org-chart .direct-report.left > li:first-child {
  border-right: none;
}
.org-chart .deputy.direct-report.left > li:first-child {
  float: left;
  left: 17.5%;
  border-bottom: none;
  border-right: none;
}
.org-chart .direct-report > li:first-child .node {
  width: 100%;
  left: 50%;
}
.org-chart .center.direct-report > li:first-child {
  top: -9px;
  width: 25%;
  height: 65px;
  margin: 0 200px 92px auto;
  padding-top: 30px;
  border-bottom: 1px solid #1a5293;
  left: 41px;
}
.org-chart .direct-report.right > li:first-child {
  float: right;
  right: 7%;
  border-left: none;
}
.org-chart .direct-report.right > li:first-child .node {
  left: 55%;
  width: 54%;
}
.org-chart .direct-report.left > li:first-child {
  border-right: none;
}

ul.deputy.direct-report.left {
  top: 37px;
  left: -150px;
}
ul.cf.departments.deputy {
  top: 102px;
  left: -130px;
  width: 77.8%;
}

@media screen and (max-width: 767px) {

  .org-chart .director > li > a > .node {
    width: 100%;
  }

  .org-chart ul.deputy.direct-report.left {
    width: 100%;
    left: 0;
    top: 35px;
  }

  .org-chart ul.direct-report.left {
    top: 400px;
  }

  .org-chart .deputy.direct-report.left > li:first-child {
    left: 0;
    margin: 0;
    padding: 0;
    width: 100%;
  }

  .cf.org-chart .director ul.deputy.direct-report.left li:first-child span.node {
    width: 100%;
    left: 0;
    top: 80px;
    background: #edf8fe;
  }

  .cf.org-chart .director ul.deputy.direct-report.left li.department.dep-a span.node {
    top: 50px;
  }

  .org-chart .center.direct-report > li:first-child .node {
    top: 60px;
  }

  .cf.org-chart .deputy.direct-report.left .departments .department.dep-b span.node {
    top: 15px;
  }

  .cf.org-chart .director ul.direct-report.left li:first-child span.node {
    left: -172px;
    width: 94%;
    top: 60px;
  }

  .org-chart .center.direct-report > li:first-child {
    margin: 0;
    width: 100%;
    left: 0;
    top: 215px;
  }

  .org-chart .direct-report > li:first-child {
    width: 100%;
    left: 5%;
  }

  .org-chart .direct-report > li:first-child .node {
    width: 100%;
    left: 0;
  }

  .org-chart .direct-report.right > li:first-child .node {
    left: 1.5%;
    width: 94%;
    top: 385px;
  }

  .cf.org-chart .director ul.deputy.direct-report.left li.department.dep-a span.node,
  .cf.org-chart .deputy.direct-report.left .departments .department.dep-b span.node {
    left: 24%;
    width: 94%;
  }

  .cf.org-chart .director ul.deputy.direct-report.left li.department.dep-a span.node,
  .cf.org-chart .deputy.direct-report.left .departments .department.dep-b span.node,
  .cf.org-chart .director ul.direct-report.left li:first-child span.node,
  .org-chart .direct-report.right > li:first-child .node {
    background: #f6f7f7;
  }

  .org-chart .departments li.department.dep-a,
  .org-chart .departments li.department.dep-b,
  .org-chart .departments li.department.dep-c,
  .org-chart .departments li.department.dep-d {
    width: 100% !important;
    padding-right: 0 !important;
  }

  .org-chart .cf.departments {
    top: 670px;
  }

  .cf.org-chart .cf.departments .department {
    margin-bottom: 30px;
  }

  .org-chart .departments .department span.node {
    width: 100%;
    margin: 0 !important;
  }

  .org-chart .center.direct-report:after {
    top: 0;
  }
  .org-chart .department:before {
    left: 1%;
    height: 60px;
  }
  .org-chart .departments .department.dep-a::before {
    border: 1px solid #1a5293;
    top: 12px;
    left: 70%;
    height: 133px;
    border-right: none;
  }
  .org-chart .deputy.direct-report.left .departments.department.dep-b::before {
    border: 1px solid #1a5293;
    left: 64px;
    top: 18px;
    height: 460px;
    border-right: none;
  }
  .org-chart .departments:after {
    border-top: none;
    height: 225px;
  }
  .org-chart .cf.departments:after {
    border-left: none;
  }
  .org-chart .direct-report:after {
    height: 0;
    left: 0;
  }
  .org-chart .direct-report.right:after {
    height: 515px;
  }
  .cf.org-chart ul.deputy.direct-report.left .departments:after {
    border-top: none;
    top: -70px;
    height: 30px;
    left: 62.1%;
  }
  .org-chart .direct-report > li:first-child {
    border-bottom: none;
  }
  .org-chart .center.direct-report > li:first-child {
    border-bottom: none;
  }
  .cf.org-chart ul.direct-report.left {
    border-left: 1px solid #333;
    left: 50%;
    height: 170px;
  }
  .cf.org-chart ul.deputy.direct-report.left {
    left: 0;
    border-left: none;
  }
  .cf.org-chart ul.center.direct-report.right {
    left: 0;
    border-left: none;
  }
  .cf.org-chart ul.center.direct-report.left {
    left: 0;
    border-left: none;
  }

}
