#organograma_prefeitura {
    margin-top: 30px;
}

@media only screen and (max-width: 767px) {
    #organograma_prefeitura {
        overflow-x: scroll;
        white-space: nowrap;
    }
}

#organograma_prefeitura .bloco {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: flex-end;
}

#organograma_prefeitura .bloco.bloco-secretaria {
    /*position: relative;*/
}

#organograma_prefeitura .bloco-margin {
    margin: 20px 0;
}

#organograma_prefeitura .bloco .divisor {
    width: 100%;
    display: flex;
    justify-content: space-between;
}

#organograma_prefeitura .bloco .bloco-divisor {
    width: 50%;
}

@media screen and (max-width: 767px) {
    #organograma_prefeitura .bloco .bloco-divisor {
        width: 59%;
    }
}

#organograma_prefeitura .bloco .bloco-divisor:first-child {
    border-right-width: 2px;
    border-right-style: solid;
    padding: 0 40px 40px 0;
    display: flex;
    justify-content: flex-end;
}

#organograma_prefeitura .sub-bloco {
    /*position: absolute;*/
    /*top: -27px;*/
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

#organograma_prefeitura .sub-bloco-wrap {
    display: flex;
    flex-flow: column;
    align-items: center;
}

#organograma_prefeitura .sub-bloco-wrap .sub-bloco + .sub-bloco {
    margin-top: 28px;
}

#organograma_prefeitura .sub-bloco-column {
    display: flex;
    flex-flow: column;
    justify-content: center;
    align-items: center;
}

#organograma_prefeitura .linha-vertical {
    height: 20px;
    border-width: 2px;
    border-left-style: solid;
    margin-left: auto;
    margin-right: auto;
}

#organograma_prefeitura .linha-vertical-pref:first-child {
    height: 24px;
    border-width: 2px;
    border-left-style: solid;
    margin-left: auto;
    margin-right: auto;
    transform: translateX(-1px);
}

@media only screen and (max-width: 767px) {
    #organograma_prefeitura .linha-vertical-pref:first-child {
        height: 14px;
    }
}

#organograma_prefeitura .linha-horizontal:not(:last-child) {
    margin-top: 26px;
    width: 15px;
    border-width: 2px;
    border-top-style: solid;
}

#organograma_prefeitura .linha-horizontal-pref {
    width: 96px;
    margin-top: 26px;
    border-width: 2px;
    border-top-style: solid;
    display: flex;
    justify-content: center;
    align-items: center;
}

#organograma_prefeitura .quadro-organograma {
    font-size: 0.688rem;
    padding: 3px 5px;
    font-weight: 700;
    width: 110px;
    min-width: 86px;
    min-height: 48px;
    border-width: 2px;
    border-style: solid;
    border-radius: .375rem;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

@media only screen and (max-width: 767px) {
    #organograma_prefeitura .quadro-organograma {
        font-size: 45%;
        min-width: 45px;
        min-height: 40px;
    }

    #organograma_prefeitura .bloco:first-child .quadro-organograma:first-child {
        margin-left: 6px;
    }

}
