/*
 * Org Chart Styles
 */

/* Clearfix */
.cf:after {
  content: "";
  display: table;
  clear: both;
}

.org-chart * {
  position: relative;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 12px;
  line-height: 1.5em;
  box-sizing: border-box;
}

.org-chart {
  display: block;
  width: 640px;
  margin: 25px auto 20px auto;
}

.org-chart a:hover {
  text-decoration: none;
}

.org-chart ul,
.org-chart ul li {
  list-style: none !important;
  margin: 0;
  padding: 0;
}

.org-chart ul a,
.org-chart ul a .node,
.org-chart ul .node {
  display: block;
}

.org-chart ul .node {
  border: 1px solid;
  text-align: center;
  overflow: visible;
  text-decoration: none;
  font-weight: normal;
  color: #333333;
  height: 70px;
  margin-bottom: -26px;
  -webkit-transition: all linear 0.1s;
  -moz-transition: all linear 0.1s;
  transition: all linear 0.1s;
  line-height: 1.01em;
  padding: 5px;
  vertical-align: middle;
  z-index: 2;
}

.org-chart.bigHead .director > li > .node {
  height: 190px;
}

.org-chart ul span {
  vertical-align: middle;
}

.org-chart .director > li > .node,
.org-chart .director > li > a > .node {
  width: 50%;
  margin: 0 auto 0 auto;
}

.org-chart.no-directs .director:after,
.org-chart .direct-report:after {
  top: -20px;
  content: "";
  display: block;
  width: 0;
  height: 111px;
  border-left: 1px solid #1a5293;
  left: 49.75%;
  position: relative;
}



.org-chart.short-sections .direct-report:after {
  height: 115px;
}

.org-chart .section.hasSubs:after {
  top: 98px;
  content: "";
  display: block;
  width: 0;
  height: 38px;
  left: 62px;
  border-left: 1px solid #1a5293;
  position: relative;
}

.org-chart.no-directs .director:after {
  height: 50px;
  top: -3px;
  left: 48.5%;
}

.org-chart.no-directs.hasTwoDeptLevels .director:after {
  height: 216px;
}

.org-chart.no-directs.hasThreeDeptLevels .director:after {
  height: 366px;
}

.org-chart.hasTwoDeptLevels .direct-report:after {
  height: 280px;
}

.org-chart.hasThreeDeptLevels .direct-report:after {
  height: 430px;
}

.org-chart.stacked-directs .direct-report:after {
  height: 129px;
}


.org-chart.stacked-directs.hasTwoDeptLevels .direct-report:after {
  height: 331px;
}

.org-chart.stacked-directs.hasThreeDeptLevels .direct-report:after {
  height: 531px;
}

.org-chart .direct-report.center:after {
  top: -178px;
}

.org-chart .direct-report,
.org-chart .departments {
  position: absolute;
  width: 100%;
}

.org-chart .departments {
  top: 201px;
}

.org-chart .departments.deps-1 {
  top: 368px;
}

.org-chart .departments.deps-2 {
  top: 518px;
}

.org-chart.no-directs .departments {
  top: 138px;
}

.org-chart.no-directs .departments.deps-1 {
  top: 288px;
}

.org-chart.no-directs .departments.deps-2 {
  top: 438px;
}

.org-chart.stacked-directs .departments {
  top: 323px;
}


.org-chart.stacked-directs .departments.deps-1 {
  top: 453px;
}

.org-chart.stacked-directs .departments.deps-2 {
  top: 603px;
}

.org-chart.bigHead.stacked-directs .departments {
  top: 415px;
}

.org-chart.bigHead.stacked-directs .departments.deps-1 {
  top: 565px;
}

.org-chart.bigHead.stacked-directs .departments.deps-2 {
  top: 715px;
}

.org-chart .direct-report > li:first-child {
  top: -20px;
  width: 30%;
  height: 65px;
  margin: 0 auto 92px auto;
  padding-top: 30px;
  border-bottom: 1px solid #1a5293;
}

.org-chart .direct-report.left > li:first-child {
  float: left;
  left: 15%;
  border-right: 1px solid #1a5293;
}

.org-chart .direct-report.right > li:first-child {
  float: right;
  right: 15%;
  border-left: 1px solid #1a5293;
}

.org-chart .direct-report.center > li:first-child {
  top: 0;
  padding-top: 20px;
}

.org-chart .direct-report.twoOfTwo > li:first-child {
  top: -20px;
  height: 150px;
  padding-top: 115px;
}

.org-chart .direct-report.dotted > li:first-child {
  top: -20px;
  border-bottom: 1px dotted #1a5293;
}

.org-chart .direct-report.dotted.dashed > li:first-child {
  border-bottom: 1px dashed #1a5293;
}

.org-chart .direct-report.dotted.left > li:first-child {
  border-right: 1px dotted #1a5293;
}

.org-chart .direct-report.dotted.dashed.left > li:first-child {
  border-right: 1px dashed #1a5293;
}

.org-chart .direct-report.dotted.right > li:first-child {
  border-left: 1px dotted #1a5293;
}

.org-chart .direct-report.dotted.dashed.right > li:first-child {
  border-left: 1px dashed #1a5293;
}

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

.org-chart .direct-report.right > li:first-child .node {
  left: 25px;
}

.org-chart .direct-report.left > li:first-child .node {
  right: 25px;
}

.org-chart .departments:after {
  content: "";
  display: block;
  position: absolute;
  width: 81.1%;
  height: 22px;
  border-top: 1px solid #1a5293;
  border-right: 1px solid #1a5293;
  border-left: 1px solid #1a5293;
  margin: 0 auto;
  top: -22px;
  left: 9.1%;
}

.org-chart .department:before,
.org-chart .subsection:before {
  content: "";
  display: block;
  position: absolute;
  width: 0;
  height: 22px;
  border-left: 1px solid #1a5293;
  top: -22px;
  left: 50%;
  margin-left: -2px;
}

.org-chart .department:first-child:before,
.org-chart .department:last-child:before,
.org-chart .subsection:first-child:before,
.org-chart .subsection:last-child:before {
  border: none;
}

.org-chart .department {
  float: left;
  margin-bottom: 60px;
}

.org-chart .lt-ie8 .department {
  width: 18.25%;
}

.org-chart .department > .node,
.org-chart .department > a > .node {
  margin: 0 0 -26px -4px;
}

.org-chart .department > ul {
  margin-top: 20px;
  margin-bottom: 0;
}

.org-chart .section {
  margin-left: -4px;
  padding-top: 42px;
  padding-left: 15px;
  border-left: 1px solid #1a5293;
  border-bottom: 1px solid #1a5293;
  height: 90px;
}

.org-chart .section .usa-tooltip {
  display: none;
}

.org-chart .section > .node,
.org-chart .section > a > .node {
  position: relative;
  width: 95%;
  height: 70px;
  vertical-align: middle;
  right: -1px;
}

.org-chart .dep-a .lower-level-row {
  left: 0;
}

.org-chart .lower-level-row:after {
  content: "";
  display: block;
  position: absolute;
  width: 90%;
  height: 22px;
  border-top: 1px solid #1a5293;
  border-right: 1px solid #1a5293;
  border-left: 1px solid #1a5293;
  margin: 0 auto;
  top: -22px;
  left: 30px;
}

.org-chart .subsection {
  float: left;
  width: 50px;
}

.org-chart .subsection .node {
  position: relative;
  height: 100px;
}

.org-chart .section a .node {
  width: 100% !important;
}

.org-chart .section .node:hover {
  box-shadow: 8px 8px 9px -4px rgba(0, 0, 0, 0.1);
}

.org-chart .section > .node:hover {
  background-image: none !important;
}

.org-chart .section.round {
  height: 93px;
  width: 50%;
}

.org-chart .section.round > .node,
.org-chart .section.round > a > .node {
  float: right;
  height: 110px;
  width: 110px !important;
  -moz-border-radius: 60px;
  -webkit-border-radius: 60px;
  border-radius: 60px;
  top: 45px;
  left: 10px;
  padding: 0;
}

.org-chart .section.round.ellipse {
  top: -10px;
}

.org-chart .section.round.ellipse > .node {
  height: 55px;
  width: 140px !important;
  border-radius: 50%;
  top: 65px;
  padding: 20px 0 0 0;
}

.org-chart .section.round a .node {
  left: -5px;
}

.org-chart.short-sections .section {
  height: 70px;
}

.org-chart.short-sections .section .node {
  height: 55px;
}

.region-content .org-chart ul ul li:before {
  content: "";
}

/* Department/section colors - can be customized */
.org-chart .director .node {
  background: #edf8fe;
  border-color: #1a5293;
}

.org-chart .direct-report .node {
  background: #edf8fe;
}

.org-chart .department .node {
  background: #edf8fe;
}

.org-chart .section .node {
  background: #f6f7f7;
  border-color: #1a5293;
}

.org-chart .word-break:after {
  content: "-";
}

.oc-disclaimer {
  font-size: 12px;
  text-align: center;
  margin-bottom: 20px;
}


.org-chart.bigHead.stacked-directs .departments.deps-1 {
  top: 565px;
}

.org-chart .lower-level-row {
  position: absolute;
  top: 158px;
  left: -490px;
  width: 640px;
}

.org-chart .lower-level-row.oneSubSec {
  width: auto;
  top: 136px;
  left: 29px;
}

.org-chart .lower-level-row.oneSubSec::after {
  width: auto;
  top: 0;
  left: 0;
}

.org-chart .lower-level-row.oneSubSec li.subsection {
  width: auto;
}

.org-chart .section.hasSubs.hasSubSec:after {
  left: 84px;
}

/* this is necessary for vertical alignment */
.org-chart span.node,
.org-chart a span.node {
  display: table;
  width: 100%;
}

.org-chart span.node div.org-chart-span-txt {
  display: table-cell;
  vertical-align: middle;
}

.org-chart ul.director a span.node div.org-chart-span-txt {
  color: #0053cc;
  text-decoration: underline;
}

.org-chart .department.dep-d .sections .node {
  margin-left: 9px;
}

/* Organigrams Module */

.orgchart .nodecontent {
  width: 150px;
  min-height: 50px;
  background-color: #edf8fe;
  padding: 5px;
  margin: 20px;
  border-radius: 0;
  border: 1px solid #1a5293;
  color: #000000;
  text-align: center;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 12px;
  line-height: 18px;
  display: flex;
  justify-content: center;
  align-content: center;
  flex-direction: column;
}

.orgchart li::before,
.orgchart li::after,
.orgchart .nodecontent::after,
.orgchart .nodecontent::before,
.orgchart ul.vertical::before {
  border-color: #1a5293;
}

/*  Mobile Styles  */

@media screen and (max-width: 767px) {
  .org-chart {
    width: 90%;
  }

  .org-chart ul .node {
    font-size: 1em;
  }

  .org-chart.stacked-directs.hasTwoDeptLevels .departments {
    top: 352px;
  }

  .org-chart.stacked-directs.hasTwoDeptLevels .departments.deps-1 {
    top: 770px;
  }

  .org-chart.bigHead .director > li > .node {
    width: 90%;
  }

  .org-chart.no-directs .director:after {
    height: 50px !important;
  }

  .org-chart .direct-report:after {
    height: 130px !important;
  }

  .org-chart.stacked-directs .direct-report:after {
    height: 212px !important;
  }

  .org-chart.bigHead.stacked-directs .direct-report:after {
    height: 207px !important;
  }

  .org-chart .departments.deps-1 {
    top: 630px;
  }

  .org-chart .departments.deps-2 {
    top: 1045px;
  }

  .org-chart.no-directs .departments.deps-1 {
    top: 550px;
  }

  .org-chart.no-directs .departments.deps-2 {
    top: 965px;
  }

  .org-chart.stacked-directs .departments {
    top: 283px;
  }

  .org-chart.stacked-directs .departments.deps-1 {
    top: 715px;
  }

  .org-chart.stacked-directs .departments.deps-2 {
    top: 1130px;
  }

  .org-chart.bigHead.stacked-directs .departments.deps-1 {
    top: 820px;
  }

  .org-chart.bigHead.stacked-directs .departments.deps-2 {
    top: 1235px;
  }

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

  .org-chart .direct-report.left > li:first-child {
    left: 10%;
    /*margin-left: -1px;*/
    border-right: 0;
  }

  .org-chart .direct-report.right > li:first-child {
    right: 10%;
    margin-right: 2px;
    border-left: 0;
  }

  .org-chart .direct-report.left.dotted > li:first-child {
    left: 0;
  }

  .org-chart .direct-report.right.dotted > li:first-child {
    right: 0;
  }

  .org-chart .departments:after {
    border-right: none;
    left: -4px;
    width: 50.9%;
  }

  .org-chart .departments.deps-1:after,
  .org-chart .departments.deps-2:after {
    height: 40px;
    top: -40px;
    border-top: none;
  }

  .org-chart .department:last-child:before,
  .org-chart .department:first-child:after {
    border-left: 1px solid #1a5293;
  }

  .org-chart .department,
  .org-chart .subsection {
    float: none;
    width: 100%;
    margin-left: 0;
  }

  .org-chart .department:before,
  .org-chart .subsection:before,
  .org-chart .subsection:last-child:before {
    content: "";
    display: block;
    position: absolute;
    width: 0;
    height: 60px;
    border-left: 1px solid #1a5293;
    top: -60px;
    left: 0;
    margin-left: -4px;
  }

  .org-chart .subsection:before,
  .org-chart .subsection:last-child:before {
    left: 48.5%;
  }

  .org-chart .section {
    height: 80px;
  }

  .org-chart .section > .node,
  .org-chart .section > a > .node,
  .org-chart .subsection {
    width: 97.5% !important;
  }

  .org-chart .section.round,
  .org-chart .section.round.ellipse > .node {
    width: 17.5% !important;
  }

  .org-chart .section.round > .node,
  .org-chart .section.round > a > .node {
    top: 35px;
  }

  .org-chart .section .node {
    height: 60px;
  }

  .org-chart .section.hasSubs:after {
    top: 98px;
    height: 40px;
    left: 48%;
  }

  .org-chart .section.hasSubs:after {
    top: 98px;
    height: 40px;
    left: 48%;
  }

  .org-chart .lower-level-row {
    top: 138px;
    left: 15px;
    width: 100%;
  }

  .org-chart .lower-level-row:after {
    height: 0;
    border: 0;
  }

  .org-chart .subsection {
    height: 80px;
  }

  .org-chart .word-break:after {
    content: "";
  }

  .section.hasSubs.oneSub::after {
    height: 0;
  }

  .org-chart .department.dep-c.noSub {
    top: 70px;
  }

  .org-chart .department.dep-c.noSub::before {
    height: 130px;
    top: -130px;
  }

  .org-chart .direct-report.right > li:first-child .node {
    left: 50px;
  }

  .org-chart .direct-report.left > li:first-child .node {
    right: 50px;
  }
}

@media print {
  .org-chart {
    height: auto !important;
    width: 100% !important;
  }

  .org-chart a::after {
    content: '';
  }
  .org-chart *::before,
  .org-chart *::after {
    content: none !important;
    display: none !important;
  }

  .org-chart .appended-pdf-link {
    display: none;
  }

  .org-chart .section {
    border: none !important;
    padding: 1rem;
    margin: 0;
  }

  .org-chart .section.hasSubs {
    height: inherit;
    width: 100%;
  }

  .org-chart .director > li {
    display: flex;
    flex-wrap: wrap;
    max-width: 100% !important;
    width: 100%;
  }

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

  .org-chart .director > li > .node {
    flex: 1 0 100%;
    order: 1; 
  }

  .org-chart ul a, .org-chart ul a .node, .org-chart ul .node {
    height: 100%;
  }

  .org-chart .direct-report {
    flex: 0 0 100%;
    margin: 0 auto !important;
    position: static !important;
  }

  .org-chart .direct-report.center {
    justify-content: center;
    justify-items: center;
    flex-wrap: wrap;
    display: flex;
  }

  .org-chart .direct-report > li {
    height: inherit;
  }

  .org-chart .direct-report.center > li {
    flex: 0 0 100%;
    top: auto !important;
  }

  .org-chart .direct-report.center > li > .node {
    margin: 0 auto 1rem;
  }

  .org-chart .direct-report.left,
  .org-chart .direct-report.right {
    flex: 0 0 50%;
    float: none;
    width: 50%;
    height: auto !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  .org-chart .direct-report.left {
   order: 2; 
  }

  .org-chart .direct-report.right {
    order: 3;
  }

  .org-chart .direct-report.left.twoOfTwo {
    order: 4;
  }

  .org-chart .direct-report.right.twoOfTwo {
    order: 5;
  }

  .org-chart .direct-report.twoOfTwo > li {
    float: none !important;
    height: auto !important;
  }

  .org-chart .departments {
    flex: 0 0 100%;
    flex-wrap: wrap;
    display: flex;
    width: 100%;
    order: 6;
  }

  .org-chart .departments.deps-0,
  .org-chart .departments.deps-1 {
    flex: 0 0 50%;
    width: 50%;
  }

  .org-chart .departments.cf.deps-0 {
    order: 6;
  }

  .org-chart .departments.cf.deps-1 {
    order: 7;
  }
  
  .org-chart .departments .department {
    display: flex;
    flex: 0 0 50%;
    flex-wrap: wrap;
    float: none;
    height: inherit;
    margin: 0 0 1rem !important;
  }

  .org-chart .direct-report > li {
    border: none !important;
  }

  .org-chart-hhs .org-chart {
    height: auto !important;
  }

  .org-chart .department > a {
    flex: 1 0 100%;
    width: 100%;
  }

  .org-chart .department > .sections {
    flex: 1 0 100%;
    margin: 0 0 3rem;
    width: 100%;
  }

  .org-chart .department > .node,
  .org-chart .department > a > .node {
    margin: 0 auto;
  }

  .org-chart .department > .sections .node {
    width: 90% !important;
    margin: 0 auto !important;
  }

  .org-chart .departments,
  .org-chart .departments.cf {
    clear: both;
    position: static !important;
    float: none !important;
    height: 100% !important;
    padding: 1rem 2rem !important;
    top: auto;
    right: auto;
    left: auto;
  }

  .org-chart .direct-report.left > li:first-child,
  .org-chart .direct-report.right > li:first-child {
    clear: both;
    position: static !important;
    float: none !important;
    height: 100% !important;
    padding: 1rem 0.5rem !important;
    top: auto;
    right: auto;
    left: auto;
  }

  .org-chart .direct-report.left > li:first-child .node,
  .org-chart .direct-report.right > li:first-child .node {
    clear: both;
    position: static !important;
    float: none !important;
    height: 100% !important;
    margin: 0 auto 1rem;
    padding: 1rem 1rem !important;
    top: auto;
    right: auto;
    left: auto;
  }

  .org-chart .lower-level-row {
    clear: both;
    display: flex;
    flex-wrap: wrap;
    position: static !important;
    float: none !important;
    height: 100% !important;
    margin: 0 auto 1rem;
    padding: 1rem 1rem !important;
    top: auto;
    right: auto;
    left: auto;
    width: 100%;
  }

  .org-chart .lower-level-row .subsection {
    float: none;
    flex: 1 1 50%;
    width: 50% !important;
    margin: 0 !important;
    padding: 0.25rem;
  }

  .org-chart .lower-level-row .subsection .node {
    height: inherit;
  }

  .org-chart .direct-report::after,
  .org-chart .departments::after,
  .org-chart .departments.cf::after {
    content: '';
    clear: both;
    display: block;
  }

  .org-chart .director > li > .node > .org-chart-span-txt,
  .org-chart .director > li > a > .node > .org-chart-span-txt,
  .org-chart .director > li > .node > .org-chart-span-txt a {
    display: block;
    font-size: 1.5rem;
  }

  .org-chart .direct-report > li .org-chart-span-txt,
  .org-chart .direct-report > li .org-chart-span-txt a {
    display: block;
    font-size: 1.3rem;
  }

  .org-chart .department > .node .org-chart-span-txt,
  .org-chart .department > a > .node .org-chart-span-txt,
  .org-chart .department > .node .org-chart-span-txt a {
    display: block;
    font-size: 1.2rem;
  }

  .org-chart span.node, .org-chart a span.node {
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .org-chart ul .node {
    height: auto;
    width: 90% !important;
  }

  .org-chart .direct-report > li:first-child,
  .org-chart .direct-report > li,
  .org-chart-aspe .org-chart ul.center li:nth-child(2) .node {
    margin: 0 !important;
    width: 100% !important;
  }

  .org-chart .direct-report.right > li:first-child {
    margin-bottom: 2rem;
    right: 5%;
  }

  .org-chart .direct-report.left > li:first-child {
    margin-bottom: 2rem;
    left: 5%;
  }

  .org-chart ul {
    page-break-inside: auto;
    page-break-before: auto;
    page-break-after: auto;
  }

  .org-chart ul li {
    page-break-inside: auto;
    white-space: normal;
    word-wrap: break-word;
    overflow-wrap: break-word;
  }

  .org-chart ul.departments.cf {
    top: auto !important;
  }

  .org-chart .section,
  .org-chart .section > .node,
  .org-chart .section > a > .node {
    height: inherit;
  }

  .org-chart .section.round {
    height: inherit;
    margin: 0 auto;
  }

  .org-chart .section.round > .node,
  .org-chart .section.round > a > .node {
    clear: both;
    display: flex;
    flex-wrap: wrap;
    position: static !important;
    float: none !important;
    height: inherit;
    margin: 0 auto 1rem;
    padding: 1rem 1rem !important;
    top: auto;
    right: auto;
    left: auto;
    width: 100% !important;
  }

}
