* {
  -webkit-box-sizing: border-box;
          box-sizing: border-box;
}

.content {
  position: relative;
}

.organograma {
  --default-border: 2px solid #999;
  --default-node-size: 12rem;
  --default-font-color: #696969;

  display: block;
  position: relative;
  /* DEPARTMENTS COLUMNs */
}

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

.organograma ul li {
  position: relative;
  width: var(--default-node-size);
  margin: 0px auto;
}

.organograma ul li .block-content {
  display: block;
  border: var(--default-border);
  text-align: center;
  font-size: 12px;
  font-weight: 900;
  color: var(--default-font-color);
  background-color: white;
  border-radius: 7px;
  padding: 1rem;
}

.organograma .board {
  width: 100%;
  padding-bottom: 20px;
  display: block;
  position: relative;
}

.organograma .board:before {
  content: "";
  display: block;
  position: absolute;
  height: 100%;
  border-left: var(--default-border);
  left: 50%;
}

.organograma ul.column {
  position: relative;
  width: 100%;
  margin: 0 auto;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: justify;
      -ms-flex-pack: justify;
          justify-content: space-between;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  clear: both;
  height: 5.6rem;
}

.organograma ul.column li {
  position: relative;
}

.organograma ul.column.no-edge li:before {
  display: none;
}

.organograma ul.column li:not(:first-child):before {
  content: "";
  position: absolute;
  top: 50%;
  border-top: var(--default-border);
  width: 100%;
  left: -100%;
  z-index: -1;
}

.organograma ul.column li.white-space:before {
  left: -50%;
}

.organograma .groups {
  position: relative;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  flex-wrap: wrap;
  -webkit-box-pack: justify;
      -ms-flex-pack: justify;
          justify-content: space-between;
  -webkit-box-align: start;
      -ms-flex-align: start;
          align-items: flex-start;
  clear: both;
}

.organograma .groups:not(.no-before) {
  padding-top: 22px;
}

.organograma .groups:not(.no-before):before {
  content: "";
  position: absolute;
  width: auto;
  top: 0;
  left: 10%;
  right: 10%;
  height: 22px;
  border-top: var(--default-border);
  border-left: var(--default-border);
  border-right: var(--default-border);
}

.organograma .groups.md-before:not(.no-before):before {
  left: 25%;
  right: 25%;
}

.organograma .groups.lg-before:not(.no-before):before {
  left: 15%;
  right: 15%;
}

.organograma .group {
  width: var(--default-node-size);
}

.organograma .group:not(.white-space):after {
  content: "";
  position: absolute;
  display: block;
  width: 10px;
  height: 22px;
  border-left: var(--default-border);
  left: 50%;
  top: -22px;
}

/* primeiro e último elemento do grupo */
.organograma .group:first-child:after,
.organograma .group:last-child:after,

/* a cada 5 elemento e seu precedente */
.organograma .board .group:nth-of-type(5n):after,
.organograma .board .group:nth-of-type(5n + 1):after {
  display: none;
}

.organograma .group ul {
  margin-bottom: 2rem;
}

.organograma .group li {
  padding: 5% 0 5% 15%;
  position: relative;
}

.organograma .group li:first-child {
  margin-top: 5%;
}

.organograma .group li:before {
  content: "";
  position: absolute;
  top: -10%;
  left: 7%;
  height: 110%;
  border-left: var(--default-border);
  z-index: -1;
}

.organograma .group li:after {
  content: "";
  position: absolute;
  top: 50%;
  left: 7%;
  width: 20%;
  z-index: -1;
  border-top: var(--default-border);
}

.organograma .group li:last-child:before {
  height: 60%;
}

.organograma .group ul li:last-child {
  border-bottom: none;
}

.organograma .group .departamento {
  position: relative;
}

.organograma .group .departamento .icon-box {
  position: absolute;
  top: .3rem;
  right: .1rem;
}