.organograma * {
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
  position: relative;
  font-family: Calibri, sans-serif !important;
}

.organograma .cf:before,
.organograma .cf:after {
  content: "";
  display: table;
  margin-top: 240px;
}

.organograma .cf:after {
  clear: both;
}

.organograma .cf {
  *zoom: 1;
}

.organograma {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 15px 10px 0;
}

.organograma ul {
  padding: 0;
  margin: 0;
  list-style: none;
}

.organograma ul a {
  display: block;
  background: #fff;
  border: 1px solid #e6e6e6;
  border-left: 4px solid;
  text-align: center;
  overflow: hidden;
  font-size: 16px;
  text-decoration: none;
  height: 80px;
  margin-bottom: -26px;
  -webkit-transition: all linear 0.1s;
  -moz-transition: all linear 0.1s;
  transition: all linear 0.1s;
  border-radius: 0 0 15px;
  padding: 10px 5px;
  box-shadow: 0 2px 2px rgba(0, 0, 0, 0.1);
  pointer-events: none;
}

.organograma .cf:before {
  margin-top: 0;
}

.organograma .administration > li > a {
  margin-bottom: 25px;
}

.organograma .director > li > a {
  width: 20%;
  margin: 0 auto 0 auto;
  z-index: 1;
}

.organograma .subdirector:after {
  content: "";
  display: block;
  width: 0;
  height: 230px;
  border-left: 4px solid #ccc;
  left: 49.75%;
  position: relative;
  top: -30px;
  margin-bottom: -30px;
}

.organograma .subdirector,
.organograma .departments {
  width: 100%;
}

.organograma .departments {
  width: 97%;
  display: flex;
  justify-content: space-around;
  gap: 32px;
  overflow-x: scroll;
}

.organograma .department:after {
  content: "";
  display: block;
  position: absolute;
  width: calc(100% + 60px);
  height: 4px;
  top: -20px;
  left: 0;
  background-color: #ccc;
}

.organograma .subdirector > li,
.organograma .departments > li:first-child {
  width: 200px;
  height: 64px;
  margin: 0 auto;
  padding-top: 20px;
  border-top: 4px solid #ccc;
  z-index: 1;
}

.organograma .departments > li:first-child {
  border: 0;
}

.organograma .subdirector > li:nth-child(odd) {
  float: left;
}

.organograma .subdirector > li:nth-child(even) {
  float: right;
}

.organograma .subdirector > li:nth-child(1) {
  left: 430px;
}

.organograma .subdirector > li:nth-child(2) {
  right: 430px;
}

.organograma .subdirector > li:nth-child(3) {
  left: 10px;
  width: 350px;
}

.organograma ul.subdirector > li:nth-child(3) a {
  right: 30%;
}

.organograma .subdirector > li:nth-child(4) {
  right: 10px;
  width: 350px;
}

.organograma ul.subdirector > li:nth-child(4) a {
  left: 70%;
}

.organograma ul.subdirector > li:nth-child(5) {
  left: 360px;
  top: 50px;
}

.organograma .departments > li:first-child {
  float: left;
  left: 31.2%;
  z-index: -1;
}

.organograma .subdirector > li a,
.organograma .departments > li:first-child a {
  width: 200px;
}

.organograma .subdirector > li:nth-child(odd) a {
  right: 50%;
}

.organograma .subdirector > li:nth-child(even) a {
  left: 50%;
}

.organograma .departments > li:first-child a {
  right: 25px;
}

.organograma .department:first-child,
.organograma .departments li:nth-child(2) {
  margin-left: 0;
  clear: left;
}

.organograma .departments > li:first-child {
  margin: 0;
  height: 0;
  padding-top: 0;
}

.organograma .department:before {
  content: "";
  display: block;
  position: absolute;
  width: 0;
  height: 22px;
  border-left: 4px solid #ccc;
  z-index: 1;
  top: -21px;
  left: 50%;
  margin-left: -4px;
}

.organograma .department.dep-1::after {
  background-color: #ccc;
  left: 50%;
}

.organograma .department:last-child:after {
  background-color: #ccc;
  left: calc(-50% - 60px);
}

.organograma .department {
  width: 18.59894921190893%;
  float: left;
  margin-left: 1%;
  margin-bottom: 60px;
  top: 20px;
}

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

.organograma .department > a {
  margin: 0 0 -26px -20px;
  z-index: 1;
  width: 200px;
}

.organograma a:hover,
.organograma a:hover span {
  color: #fff;
}

.organograma .director > li > a + .subdirector {
  -webkit-transition: all linear 0.1s;
  -moz-transition: all linear 0.1s;
  transition: all linear 0.1s;
  padding-top: 25px;
}

.organograma .department > ul {
  margin-top: 0;
  margin-bottom: 0;
}

.organograma .department li {
  padding-left: 25px;
  border-left: 4px solid #ccc;
  border-bottom: 4px solid #ccc;
  height: 95px;
}

.organograma .department li a {
  background: #fff;
  top: 48px;
  position: absolute;
  z-index: 1;
  width: 90%;
  right: -1px;
}

.organograma .amarelo {
  border-left-color: #fcaf17;
  color: #fcaf17;
}

.organograma .amarelo:hover {
  background-color: #fcaf17;
  border-color: #fcaf17;
}

.organograma .azul {
  border-left-color: #0095d9;
  color: #0095d9;
}

.organograma .azul:hover {
  background-color: #0095d9;
  border-color: #0095d9;
}

.organograma .cinza {
  border-left-color: #b7ba9f;
  color: #b7ba9f;
}

.organograma .cinza:hover {
  background-color: #b7ba9f;
  border-color: #b7ba9f;
}

.organograma .verde {
  border-left-color: #80c342;
  color: #80c342;
}

.organograma .verde:hover {
  background-color: #80c342;
  border-color: #80c342;
}

.organograma a span {
  display: table-cell;
  height: 20px;
  vertical-align: bottom;
  width: 100vw;
}

.organograma a .responsavel {
  color: #444;
  margin-top: 3px;
  font-weight: normal;
  display: block;
  width: 100%;
  font-size: 14px;
}

.organograma .subdirector:before > li,
.organograma .departments > li:first-child {
  content: "";
  display: block;
  position: absolute;
  width: 0;
  height: 22px;
  border-left: 4px solid #ccc;
  z-index: 1;
  top: -21px;
  left: 50%;
  margin-left: -4px;
}

.bordadireita {
  border-right: 4px solid #ccc;
}

.bordaesquerda {
  border-left: 4px solid #ccc;
}

@media all and (max-width: 1199px) {
  .organograma {
    padding: 20px;
  }

  .organograma .director > li > a {
    width: 100% !important;
  }

  .organograma ul a {
    font-size: 14px;
    padding-left: 10px;
    text-align: left;
  }

  .organograma .subdirector {
    position: relative !important;
  }

  .organograma .subdirector > li {
    width: 100% !important;
    margin: 0 0 25px;
    left: 0 !important;
    top: 0 !important;
    float: right !important;
    border-right: none !important;
    border-top: none !important;
    border-bottom: 4px solid #ccc !important;
  }

  .organograma ul.subdirector > li a {
    float: right;
    left: 0 !important;
    right: 0 !important;
    width: 90% !important;
    position: relative;
    z-index: 1;
  }

  .organograma .subdirector:after {
    position: relative;
    left: 0;
    height: 470px;
  }

  .organograma .departments {
    width: 100%;
    display: unset;
    overflow-x: unset;
  }

  .organograma .departments:after {
    content: "";
    display: block;
    position: absolute;
    height: 30px;
    border-bottom: 0;
    margin: 0 auto;
    top: -4px;
    border: 0;
    left: 0;
    width: 49.8%;
  }

  .organograma .department:after {
    display: none;
  }

  .organograma .department:last-child:before {
    border-left: 4px solid #ccc !important;
  }
  .organograma .department {
    float: none;
    width: 100%;
    margin-left: 0;
  }
  .organograma .department:before {
    content: "";
    display: block;
    position: absolute;
    width: 0;
    height: 60px;
    border-left: 4px solid #ccc;
    z-index: 0;
    top: -60px;
    left: 4px;
    margin-left: -4px;
  }
}
