.main-automacao {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Filtros */
.automacao-filtro {
    display: flex;
    flex-direction: column;
}

.automacao-filtro form {
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    gap: 1rem;   
}

.automacao-filtro-entrada {
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    gap: 0.2rem;
}

/* _____________________________
Cabeçalho Formulário */

.linha {
    
    display: flex;
    flex-direction: column;
    gap: 1rem;
    
    width: 100%;
}

.div-container {
    display: flex;
    flex-direction: column;
}

/* _______________________________
    cid | ciap botão (modal) bpa/ind */
.container_cid_ciap {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.div-container-cid-ciap {
    width: 100%;
}

/*____________________________________
 Tabela*/
.automacao-tabela {
    display: flex;
    flex-direction: column;
}

/* modal */
.automacao-modal-content {
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    gap: 0.5rem;
}

.automacao-modal-title {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
}

.automacao-modal-content form {
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    gap: 0.8rem;
}

.modal-form {
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    gap: 0.2rem;
}

.modal-form__ {
    display: flex;
    align-items: center;
    flex-direction: column;
    flex-wrap: nowrap;
    gap: 0.5rem;
}

.modal-form-estabelecimento__ {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 0.5rem;
}

.modal-form-update {
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
}

.form-update-select {
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    gap: 0;
}

.simbolo {
    align-self: center;
}

/* Modal historico */
.historico-modal {
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    gap: 1rem;
}

.interno {
    display: flex;
    flex-direction: column;
    text-align: center;
    justify-content: center;
    flex-wrap: nowrap;
    justify-content: space-between;
}

.botoes_tabela-header {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

.depara-auto {
    margin: 0.3em 0;
}

@media screen and (min-width: 900px) {
/* ______________________________
    Cabeçalho formulário */

    .linha {
        flex-direction: row !important;
    }  

    .nome-orgao {
        flex: 1;
    }

    .botao-cadastrar {
        align-self: end;
    }

    /* _______________________________
    cid | ciap botão (modal) bpa/ind */

    .container_cid_ciap {
        flex-direction: row !important;
        gap: 0.5em;
    }

    .btn_inserir_cid_ciap {
        margin: 0 auto;
        align-self: end;
        padding-right: 0.5em;
    }

}