.cadastro-container {
    text-align: center;
    
}

.cadastro-container .acao-mostrar {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.collection-filho-container {
    text-align: center;   
    padding-top: 10px;
    padding-bottom: 20px;
}

.collection-filho-container > div {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.collection-filho-container > div select {
    width: 85%;
}

.collection-filho-container > div button {
    border: none;
    background: transparent;
}

.formulario {

    display: flex;
    justify-content: flex-start;
    flex-direction: column;
    gap: 10px;
    align-items: center;;
}

.formulario form {
    width: 100%;
    display: flex;
    justify-content: flex-start;
    flex-direction: column;
    gap: 10px;
}

.formulario form .linha {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
}



.formulario form .linha .coluna {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.formulario form .linha .coluna select,
.formulario form .linha .coluna input {
    border: 1px solid #ccc;
    padding: 10px;
    border-radius: 10px;
    outline: none;
}

.formulario form button {
    width: 100%;
    padding: 10px;
    border-radius: 10px;
    margin-top: 20px;
}


.formulario form .linha .acao-elemento {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    display: flex;
    justify-content: end;
    align-items: center;
}

.formulario form .linha .acao-elemento button {
    position: relative;
    margin-top: 0;
    right: 5px;
    height: 100%;
    width: auto;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: small;
    padding: 5px;
    border: 0;
    background: rgba(255, 255, 255, 0.7);
    box-shadow: var(--box-shadow);
    pointer-events: all;
}




/*  administrar.html */    

.administrar {
    position: relative;
    height: 100%;

    display: flex;
    flex-direction: column;
    justify-content: space-between;

    overflow: auto;
}


.rodape-padrao {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    padding: 20px 10px;
    background: var(--fg-branco2);
    border-radius: 10px;
    box-shadow: var(--box-shadow);
}

.rodape-padrao button {
    flex-basis: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px 5px;
    border-radius: 10px;
}

.administrar .container_retorno {
    position: absolute;
    top: var(--header-padrao);
    left: 0;
    width: 100%;
    height: calc(100% - var(--header-padrao));
    background: #fff;
    padding: 10px;
    display: none;    
    padding-bottom: 20px;
}

.administrar .container_retorno.ativo {
    display: block;
    /* opacity: 1; */
}

.administrar .container_retorno > div {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background: #fff;
    padding: 10px;
    display: none;

}

.administrar .container_retorno > div.ativo {
    display: block;
}

.administrar .container_retorno .cabecalho button {
    border: 0;
    background: transparent;
}

.pergunta-lista {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 10px;
}

.pergunta-lista .perguntas {
    display: flex;
    justify-content: flex-start;
    flex-direction: column;
    gap: 10px;
}

.pergunta-lista .perguntas .pergunta {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.pergunta-lista .perguntas .pergunta.texto {
    flex-direction: column;
}

.pergunta-lista .perguntas .pergunta.texto .descricao {
    display: block;
    width: 100%;
}

.pergunta-lista .perguntas .pergunta.texto .resposta {
    width: 100%;
}

.pergunta-btn-troca {
    display: flex;
    align-items: center;
    justify-content:  end;
}

.pergunta-btn-troca button {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    margin-top: 25px;
    background: none;
    border: none;
}

.btn-enviar-participacao {
    padding: 10px;
    border-radius: 5px;
    border: none;
}


/* ************** TELA REGISTRAR ******************* */

.formulario .titulo-btn {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
}

.formulario .titulo-btn a {
    display: flex;
    align-items: center;
}

.formulario .titulo-btn h1 {
    margin-bottom: 0;
}

.formulario .icone-titulo {
    font-size: 3rem;
}

.formulario .msg-atencao {
    color: var(--fg-msg-atencao);
}

.formulario .msg-retorno-html {
    color: var(--fg-msg-padrao);
    font-size: var(--fg-fonte-primaria);
    padding-top: 10px;
    padding-bottom: 10px;
}


/* ************ FICHA CADASTRO ********************** */

.ficha-cadastro {
    border: 1px solid #ccc;
}

.ficha-cadastro form {
    display: flex;
    flex-direction: column;
    /* padding: 10px; */
}

.ficha-cadastro .linha {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.ficha-cadastro .linha .coluna {
    display: flex;
    flex-direction: column;
}

.ficha-cadastro .linha .coluna > div > span.erro {
    color: red;
}

.ficha-cadastro .linha .coluna > div {
    display: flex;
    align-items: center;
    padding: 5px 0;
    gap: 5px;
}

.ficha-cadastro input, select,textarea {
    border: 1px solid #ccc;
    padding: 5px;
}

.ficha-cadastro .msg-erro {
    color: red;
}

.ficha-cadastro .obrigatorio {
    color: red;
}

.ficha-cadastro .rodape-form {
    font-size: small;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 5px 0;
    color: var(--fg-msg-atencao);
}

.ficha-cadastro .rodape-form > div {
    display: flex;
    align-items: center;
    gap: 5px;
}

.ficha_cabecalho {
    position: relative;
    padding-bottom: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.ficha_cabecalho button {
    position: relative;
    border: 0;
    background: transparent;
    top: -2px;

}

.ficha_cabecalho .btn-habilita-edicao {
    display: none;
}

.ficha_cabecalho .btn-habilita-edicao.ativo {
    display: block;
}


.navega {
    position: fixed;
    right: 10px;
    top: calc( var(--header-padrao) + 10px);
    justify-content: end;
    gap: 5px;
    padding: 5px;
    border: 1px solid #ccc;
    border-radius: 10px;

    background-color:  rgba(255, 229, 180, 0.9);
    
    display: none;
}

.navega.ativo {
    display: flex;
}

.navega button {
    background: transparent;
    width: 100px;
    display: flex;
    align-items: center;
    padding: 5px;
    border: none;
    color: #555555;
    font-weight: 400;

}

.navega button > div {
    display: flex;
    align-items: center;

}

.ficha-registros {
    position: relative;
    padding: 10px;
    border: 1px solid #ccc;
    height: 400px;
    overflow: auto;
}

.ficha-registros .registro {
    position: relative;
    padding: 5px 0;
    border-bottom: 1px solid #ccc;
    text-align: left;
}

.ficha-registros .navega-registro {
    position: relative;
    width: 100%;
    height: var(--header-padrao);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.ficha-registros .navega-registro > div {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 10px;
    
}

.ficha-registros .navega-registro > div button {
    border: 0;
    background: transparent;
}

.ficha-registros .registro.ativo {
    background: #ccc;
}


.ficha-registros .registro .spinner-container {
    position: absolute;
    top: 0;
    right: 0;
    width: 25px;
    display: none; /* TODO - tratar quando ativo */
}

.ficha-registros-filtros {
    position: absolute;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100%;
    background: #fff;
    transition: all 0.5s ease;
}

.ficha-registros-filtros .cabecalho-padrao {
    background: var(--bg-1-oficina);
    color: #fff;
    padding: 5px;
}

.ficha-registros-filtros .cabecalho-padrao button {
    color: #fff;
}

.ficha-registros-filtros.ativo {
    right: 0;
}

.ficha-registros-filtros .atributos {
    overflow: auto;
    padding: 5px;
}

.ficha-registros-filtros table {
    width: 100%;
    border-collapse: collapse;
}

.ficha-registros-filtros table th {
    text-align: left;
}

.ficha-registros-filtros table td,th {
    padding: 5px;
    border: 1px solid #ccc;
}

.ficha-registros-filtros table td input[type="text"] {
    width: 100%;
    background: none;
    outline: none;
}


.relatorio-container {
    width: 100%;
    height: 100%;
    background: #fff;
}

/* ******** LISTA CONTEUDO *********************** */
.lista-collection {
    width: 100%;
    height: 100%;
    background: #fff;
}

.lista-collection .cabecalho {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: var(--header-padrao);
}

.lista-collection .cabecalho > div {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 5px;
}

.lista-collection .cabecalho > div > button {
    background: transparent;
    border: none;
}

.lista-collection  .conteudo-dados {
    width: 100%;
    height: calc(100% - var(--header-padrao));
    overflow: auto;
}

.modal-ficha {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-modal);
    display: none;
    padding: 15px;
}

.modal-ficha > div {
    width: 100%;
    max-width: 100%;
    background: #fff;
    padding: 10px;
    border-radius: 10px;
    padding-bottom: var(--header-padrao);
    overflow: auto;
}

.modal-ficha.ativo {
    display: flex;
    justify-content: center;
    flex-direction: column;
}



/* *************** TELA PESQUISA CEP ******************** */

.tela-pesquisa-cep {
    width: 100%;
}

.tela-pesquisa-cep > .tela {
    width: 100%;
    display: flex;
    justify-content: flex-start;
    flex-direction: column;
    gap: 10px;
    padding: 10px;
    text-align: center;
}

.tela-pesquisa-cep > .tela > div {
    width: 100%;
    display: none;
    text-align: justify;
    font-size: var(--fg-fonte-secundaria);
}

.tela-pesquisa-cep > .tela > div.ativo {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;       
}

.tela-pesquisa-cep > .tela > div input {
    width: 80%;
    padding: 10px;
    border-radius: 10px;
}

.tela-pesquisa-cep > .tela > div > span {
    display: block;
    width: 20%;
}


.tela-pesquisa-cep > .tela > div > div {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}


.tela-pesquisa-cep > .tela > div > div button {
    width: 100%;
    display: none;
    border: none;
}

.tela-pesquisa-cep > .tela > div > div.ativo button {
    width: 50%;
}

.tela-pesquisa-cep > .tela > div > div button.ativo {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.tela-pesquisa-cep .msg-erro {
    color: red;
    font-weight: 600;
    display: block;
    text-align: center;
}

.tela-pesquisa-cep > .tela button#btn_pesquisa {
    padding: 10px;
    border-radius: 10px;
    background: var(--bg-1-oficina);
    color: #fff;
}

.tela-pesquisa-cep > .tela button#btn_confirma {
    padding: 10px;
    border-radius: 10px;
    background: var(--bg-2-oficina);
    color: #fff;
}







@media screen and (max-width: 768px) {

    .ficha-cadastro {
        border: 0;
    }

    main.ficha {
        width: 100%;
    }

    main.ficha .formulario {
        width: 100%;
        height: 100%;
    }

    main.ficha .formulario .collection {
        width: 100%;
        height: 100%;
        overflow: auto;
    }

    .ficha-cadastro .linha {
        justify-content: flex-start;
        flex-direction: column;
    }

    .ficha-cadastro .linha .coluna {
        width: 100% !important;
    }

    
}
