<style>
  #progressbar li {
    list-style-type: none;
    font-size: 12px;
    width: 20%;
    float: left;
    position: relative;
  }

  #progressbar {
    margin-left: 0px !important;
  }

  .card-totais {
    margin-top: 2%;
  }

  #txtDados {
    padding-top: .7%;
    padding-left: .85%;
  }

  .input-group-append>a>i {
    margin-left: 0 !important;
    padding-left: 5px;
    padding-right: 5px;
  }

  .grupo_botao>button>i {
    margin-left: 0 !important;
    padding-left: 5px;
    padding-right: 5px;
  }

  .bg-light {
    background-color: #f8f9fa08 !important;
  }

  .focus:read-only:focus {
    border-color: #aa1212 !important;
  }

  .labelCheck {
    font-size: 110%;
    padding: 0.2%;
    margin-left: 1%;
  }

  .configCheck {
    -ms-transform: scale(1.5);
    -moz-transform: scale(1.5);
    -webkit-transform: scale(1.5);
    -o-transform: scale(1.5);
    transform: scale(1.5);
    padding: 10px;
  }

  .radiosStyle {
    font-size: 120%;
    margin-top: 1%;
    margin-bottom: 1%;
  }

  .checkboxMoeda {
    border: solid #e0e4e6;
    border-radius: 4px;
    border-width: 2px;
    padding: .8%;
  }

  .bordaTab {
    border: solid #e0e4e6;
    border-radius: 4px;
    border-width: 2px;
    margin-top: 9.6%;
  }

  .configTabPreco {
    -ms-transform: scale(1.5);
    -moz-transform: scale(1.5);
    -webkit-transform: scale(1.5);
    -o-transform: scale(1.5);
    transform: scale(1.5);
  }

  .bordaRadio {
    border: 2px solid #e0e4e6;
    border-radius: 4px;
    height: 38px;
    padding-right: 50px;
  }

  #checkPrecoManual {
    margin-left: 10px;
  }
</style>

<div class="modal fade" id="modalEditarPedido" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true" data-backdrop="static" data-keyboard="true">
  <div class="modal-dialog modal-xl">
    <div class="modal-content">
      <div class="modal-header">
        <h4 class="modal-title">Editar dados do Pedido</h4>
        <button type="button" class="close" data-dismiss="modal" aria-label="Close" id="btnFecharCRMBonus">
          <span aria-hidden="true">&times;</span>
        </button>
      </div>
      <div class="modal-body">

        <input class="d-none" type="text" value="" id="txtFINANCEIRO">
        <input class="d-none" type="text" value="" id="txtBLOQUEIO">
        <input class="d-none" type="text" value="" id="txtCOND_PAGTO">
        <input class="d-none" type="text" value="" id="txtQUALIDADE">
        <input class="d-none" type="text" value="" id="txtTIPO">
        <input class="d-none" type="text" value="" id="txtTIPO_VENDA">
        <input class="d-none" type="text" value="" id="txtTELA">

        <section class="content">
          <div class="content-header">
            <div class="container-fluid">
              <div class="row mb-2">
                <div class="container-fluid" id="grad1">
                  <div class="row justify-content-center mt-0">
                    <div class="col-12 text-center">
                      <div class=" mb-0">
                        <div class=" text-center flex" style="border: none!important;box-shadow:none!important;">
                          <h2 class="m-0">Pedido
                            <button title="Tutorial" type="button" class="btn btn-info btn-sm ml-2" style="color: white;" id="tutorial">
                              <i class="fas fa-question-circle"></i>
                            </button>
                          </h2>
                        </div>
                        <div class="row">
                          <div class="col-md-12 mx-0">
                            <form id="msform">
                              <ul id="progressbar">
                                <li class="active" id="account"><strong>Geral</strong></li>
                                <li id="payment"><strong>Comercial</strong></li>
                                <li id="payment"><strong>Informações</strong></li>
                                <li id="payment"><strong>Itens</strong></li>
                                <li id="confirm"><strong>Pagamento</strong></li>
                              </ul>
                              <p>Preencha os dados e clique em avançar até a conclusão do pedido</p>
                              <fieldset>
                                <div class="form-card" id="tourGeral">
                                  <h2 class="fs-title">Dados Gerais</h2>
                                  <div class="row">

                                    <div class="col-lg-3  col-12 form-group">
                                      <label data-error="wrong" data-success="right" for="txtNumero">Número *</label>
                                      <div class="input-group">
                                        <input type="text" class="input-default focus form-control" id="txtNumero" name="txtNumero" placeholder="Número">
                                      </div>
                                    </div>

                                    <div class="col-lg-3  col-12 form-group">
                                      <label data-error="wrong" data-success="right" for="dtDigita">Digita</label>
                                      <div class="input-group">
                                        <input type="date" readonly disabled class="input-default focus form-control" id="dtDigita" name="dtDigita">
                                      </div>
                                    </div>

                                    <div class="col-lg-3  col-12 form-group">
                                      <label data-error="wrong" data-success="right" for="txtPedCliente">Ped. Cliente</label>
                                      <div class="input-group">
                                        <input type="text" class="input-default focus form-control" id="txtPedCliente" name="txtPedCliente" placeholder="Ped. Cliente">
                                      </div>
                                    </div>

                                    <div class="col-lg-3  col-12 form-group">
                                      <label>Empresa</label>
                                      <div class="input-group">
                                        <select class="form-control select2 select2-danger focus" id="selectEmpresa" name="selectEmpresa" data-dropdown-css-class="select2-danger">
                                        </select>
                                      </div>
                                    </div>

                                    <div class="col-lg-6  col-6 form-group">
                                      <label data-error="wrong" data-success="right" for="txtCliente">Cliente *</label>
                                      <div class="input-group">
                                        <input type="text" class="input-default focus form-control" id="txtCliente" name="txtCliente" class="form-control" placeholder="Cliente">
                                        <input type="text" id="txtCNPJ" class="d-none">
                                        <div class="input-group-append">
                                          <button class="btn bg-danger" id="btn-cliente" name="btn-cliente" data-button="absolute" type="button"><i class="m-0 p-0 fas fa-search"></i></button>
                                          <button class="btn bg-danger" id="btn-limpa-cliente" type="button"><i class="m-0 p-0 fas fa-trash"></i></button>
                                        </div>
                                      </div>
                                    </div>

                                    <div class="col-lg-6 col-12 m-6 form-group">
                                      <label data-error="wrong" data-success="right" for="txtTransportador">Transportador</label>
                                      <select style="width:100%;" class="form-control select2 select2-danger focus" data-dropdown-css-class="select2-danger" id="rgTransportador" class="custom-select focus">
                                        <option value="">Selecione um transportador</option>
                                        <option value="0">0 - Contratação do Frete por conta do
                                          Remetente
                                          (CIF)</option>
                                        <option value="1">1 - Contratação do Frete por conta do
                                          Destinatário
                                          (FOB)</option>
                                        <option value="2">2 - Contratação do Frete por conta de
                                          Terceiros
                                        </option>
                                        <option value="3">3 - Transporte Próprio por conta do Remetente
                                        </option>
                                        <option value="4">4 - Transporte Próprio por conta do
                                          Destinatário
                                        </option>
                                        <option selected value="9">9 - Sem Ocorrência de Transporte</option>
                                      </select>
                                    </div>

                                    <div class="col-lg-6 col-6 form-group">
                                      <label data-error="wrong" data-success="right" for="txtRepresentante">Representante *</label>
                                      <div class="input-group">
                                        <input type="text" class="input-default focus form-control" id="txtRepresentante" name="txtRepresentante" placeholder="Representante">
                                        <div class="input-group-append">
                                          <button class="btn bg-danger" id="btn-representante" name="btn-representante" data-button="absolute" type="button">
                                            <i class="m-0 p-0 fas fa-search"></i>
                                          </button>
                                          <button class="btn bg-danger" id="btn-limpa-representante" type="button">
                                            <i class="m-0 p-0 fas fa-trash"></i>
                                          </button>
                                        </div>
                                      </div>
                                    </div>


                                    <div class="col-lg-3  col-12 form-group">
                                      <label data-error="wrong" data-success="right" for="txtComFat">Com. Fat.</label>
                                      <div class="input-group">
                                        <input type="text" class="input-default focus form-control maskDecimais" id="txtComFat" name="txtComFat" placeholder="Com. Fat.">
                                      </div>
                                    </div>

                                    <div class="col-lg-3  col-12 form-group">
                                      <label data-error="wrong" data-success="right" for="txtComRec">Com. Rec.</label>
                                      <div class="input-group">
                                        <input type="text" class="input-default focus form-control maskDecimais" id="txtComRec" name="txtComRec" placeholder="Com. Rec.">
                                      </div>
                                    </div>

                                    <div class="col-lg-6  col-6 form-group">
                                      <label data-error="wrong" data-success="right" for="txtTransportadora">Transportadora</label>
                                      <div class="input-group">
                                        <input type="text" class="input-default focus form-control" id="txtTransportadora" name="txtTransportadora" class="form-control" placeholder="Transportadora">
                                        <div class="input-group-append">
                                          <button class="btn bg-danger" id="btn-transportadora" name="btn-transportadora" data-button="absolute" type="button">
                                            <i class="m-0 p-0 fas fa-search"></i>
                                          </button>
                                          <button class="btn bg-danger" id="btn-limpa-transportadora" type="button">
                                            <i class="m-0 p-0 fas fa-trash"></i>
                                          </button>
                                        </div>
                                      </div>
                                    </div>

                                    <div class="col-lg-3  col-3 form-group">
                                      <label data-error="wrong" data-success="right" for="txtRedesp">Pagamento do Redesp</label>
                                      <div class="input-group bordaRadio p-0">
                                        <label class="container ml-2 mr-0 pl-0" for="radioCIF">CIF</label>
                                        <input type="radio" checked="checked" id="radioCIF" name="radiopagto">
                                        <label class="container ml-2 mr-0 pl-0" for="radioFOB">FOB</label>
                                        <input type="radio" id="radioFOB" name="radiopagto">
                                      </div>
                                    </div>

                                    <div class="col-lg-3" style="padding-top: 38px; padding-left: 30px;">
                                      <input type="checkbox" id="checkBonificacao"> <label for="checkBonificacao">Bonificação</label>        
                                    </div>

                                    <div class="col-lg-6  col-6 form-group">
                                      <label data-error="wrong" data-success="right" for="txtRedesp">Redesp</label>
                                      <div class="input-group">
                                        <input type="text" class="input-default focus form-control" id="txtRedesp" name="txtRedesp" class="form-control" placeholder="Redesp">
                                        <div class="input-group-append">
                                          <button class="btn bg-danger" id="btn-Redesp" name="btn-Redesp" data-button="absolute" type="button">
                                            <i class="m-0 p-0 fas fa-search"></i>
                                          </button>
                                          <button class="btn bg-danger" id="btn-limpa-Redesp" type="button">
                                            <i class="m-0 p-0 fas fa-trash"></i>
                                          </button>
                                        </div>
                                      </div>
                                    </div>

                                    <div class="col-lg-6  col-6 form-group">
                                      <label data-error="wrong" data-success="right" for="txtCfop">CFOP</label>
                                      <div class="input-group">
                                        <input type="text" class="input-default focus form-control" id="txtCfop" name="txtCfop" placeholder="CFOP">
                                        <div class="input-group-append">
                                          <button class="btn bg-danger" id="btn-Cfop" name="btn-Cfop" data-button="absolute" type="button">
                                            <i class="m-0 p-0 fas fa-search"></i>
                                          </button>
                                          <button class="btn bg-danger" id="btn-limpa-Cfop" type="button">
                                            <i class="m-0 p-0 fas fa-trash"></i>
                                          </button>
                                        </div>
                                      </div>
                                    </div>

                                    <div class="col-lg-6  col-6 form-group">
                                      <label data-error="wrong" data-success="right" for="txtResponsavel">Responsável</label>
                                      <div class="input-group">
                                        <input type="text" class="input-default focus form-control" id="txtResponsavel" name="txtResponsavel" placeholder="Responsável">
                                        <div class="input-group-append">
                                          <button class="btn bg-danger" id="btn-Responsavel" name="btn-Responsavel" data-button="absolute" type="button">
                                            <i class="m-0 p-0 fas fa-search"></i>
                                          </button>
                                          <button class="btn bg-danger" id="btn-limpa-Responsavel" type="button">
                                            <i class="m-0 p-0 fas fa-trash"></i>
                                          </button>
                                        </div>
                                      </div>
                                    </div>

                                    <div class="col-lg-6  col-6 form-group">
                                      <label data-error="wrong" data-success="right" for="txtPrazoEnt">Prazo Entrega</label>
                                      <div class="input-group">
                                        <input type="text" class="input-default focus form-control" id="txtPrazoEnt" name="txtPrazoEnt" placeholder="Prazo Entrega">
                                        <div class="input-group-append">
                                          <button class="btn bg-danger" id="btn-PrazoEnt" name="btn-PrazoEnt" data-button="absolute" type="button">
                                            <i class="m-0 p-0 fas fa-search"></i>
                                          </button>
                                          <button class="btn bg-danger" id="btn-limpa-PrazoEnt" type="button">
                                            <i class="m-0 p-0 fas fa-trash"></i>
                                          </button>
                                        </div>
                                      </div>
                                    </div>

                                    <div class="col-lg-6  col-6 form-group">
                                      <label data-error="wrong" data-success="right" for="txtColecao">Coleção</label>
                                      <div class="input-group">
                                        <input type="text" class="input-default focus form-control" id="txtColecao" name="txtColecao" placeholder="Coleção">
                                        <div class="input-group-append">
                                          <button class="btn bg-danger" id="btn-Colecao" name="btn-Colecao" data-button="absolute" type="button">
                                            <i class="m-0 p-0 fas fa-search"></i>
                                          </button>
                                          <button class="btn bg-danger" id="btn-limpa-Colecao" type="button">
                                            <i class="m-0 p-0 fas fa-trash"></i>
                                          </button>
                                        </div>
                                      </div>
                                    </div>

                                    <div class="col-lg-6  col-6 form-group">
                                      <label data-error="wrong" data-success="right" for="txtPrazoProd">Prazo Produção</label>
                                      <div class="input-group">
                                        <input type="text" class="input-default focus form-control" id="txtPrazoProd" name="txtPrazoProd" placeholder="Prazo Produção">
                                        <div class="input-group-append">
                                          <button class="btn bg-danger" id="btn-PrazoProd" name="btn-PrazoProd" data-button="absolute" type="button">
                                            <i class="m-0 p-0 fas fa-search"></i>
                                          </button>
                                          <button class="btn bg-danger" id="btn-limpa-PrazoProd" type="button">
                                            <i class="m-0 p-0 fas fa-trash"></i>
                                          </button>
                                        </div>
                                      </div>
                                    </div>

                                  </div>
                                </div>
                                <input type="button" id="avancar1" name="next" class="next action-button" value="Avançar" />
                                <input type="button" id="voltarAcesso" class="action-button-previous" value="Voltar" />

                              </fieldset>
                              <fieldset>
                                <div class="form-card" id="tourComercial">
                                  <h2 class="fs-title">Comercial</h2>
                                  <div class="row">
                                    <div class="form-group col-lg-3  col-3 ">
                                      <label data-error="wrong" data-success="right" for="dtEmissao">Emissão</label>
                                      <div class="input-group">
                                        <input type="date" max="2500-12-31" class="input-default focus form-control" id="dtEmissao" name="dtEmissao">
                                      </div>
                                    </div>

                                    <div class="col-lg-3  col-3 form-group">
                                      <label data-error="wrong" data-success="right" for="dtFatura">Fatura</label>
                                      <div class="input-group">
                                        <input type="date" max="2500-12-31" class="input-default focus form-control" id="dtFatura" name="dtFatura">
                                      </div>
                                    </div>

                                    <div class="col-lg-3  col-3 form-group">
                                      <label data-error="wrong" data-success="right" for="dtEntrega">Entrega</label>
                                      <div class="input-group">
                                        <input type="date" max="2500-12-31" class="input-default focus form-control" id="dtEntrega" name="dtEntrega">
                                      </div>
                                    </div>

                                    <div class="col-lg-3  col-3 form-group">
                                      <label data-error="wrong" data-success="right" for="dtSaida">Saída</label>
                                      <div class="input-group">
                                        <input type="date" max="2500-12-31" class="input-default focus form-control" id="dtSaida" name="dtSaida">
                                      </div>
                                    </div>

                                    <div class="col-lg-9  col-9 form-group">
                                      <label data-error="wrong" data-success="right" for="txtTabelaPreco">Tabela de Preço *</label>
                                      <input type="checkbox" id="checkPrecoManual"> <label for="checkPrecoManual">Preço Manual</label> 
                                      <div class="input-group">
                                        <input type="text" class="input-default focus form-control" id="txtTabelaPreco" name="txtTabelaPreco" placeholder="Tabela de Preço">
                                        <div class="input-group-append">
                                          <button class="btn bg-danger" id="btn-TabelaPreco" name="btn-TabelaPreco" data-button="absolute" type="button">
                                            <i class="m-0 p-0 fas fa-search"></i>
                                          </button>
                                          <button class="btn bg-danger" id="btn-limpa-TabelaPreco" type="button">
                                            <i class="m-0 p-0 fas fa-trash"></i>
                                          </button>
                                        </div>
                                      </div>
                                    </div>

                                    <div class="col-lg-3 form-group">
                                      <label>Prazo</label>
                                      <select class="form-control focus select2 select2-danger" id="rgPrazo" name="rgPrazo" data-dropdown-css-class="select2-danger" style="width: 100%;">
                                        <option selected="selected" value="00">00</option>
                                        <option value="07">07</option>
                                        <option value="14">14</option>
                                        <option value="21">21</option>
                                        <option value="28">28</option>
                                        <option value="35">35</option>
                                        <option value="42">42</option>
                                        <option value="49">49</option>
                                        <option value="56">56</option>
                                        <option value="63">63</option>
                                        <option value="70">70</option>
                                        <option value="77">77</option>
                                        <option value="84">84</option>
                                        <option value="91">91</option>
                                      </select>
                                    </div>

                                    <div class="col-lg-6 form-group">
                                      <label for="txtClasseGer">Classe Gerencial</label>
                                      <div class="input-group">
                                        <input type="text" class="input-default focus form-control" id="txtClasseGer" name="txtClasseGer" placeholder="Classe Gerencial">
                                        <div class="input-group-append">
                                          <button class="btn bg-danger" id="btn-ClasseGer" name="btn-ClasseGer" data-button="absolute" type="button">
                                            <i class="m-0 p-0 fas fa-search"></i>
                                          </button>
                                          <button class="btn bg-danger" id="btn-limpa-ClasseGer" type="button">
                                            <i class="m-0 p-0 fas fa-trash"></i>
                                          </button>
                                        </div>
                                      </div>
                                    </div>

                                    <div class="col-lg-6 form-group">
                                      <label for="txtHistorico">Histórico</label>
                                      <div class="input-group">
                                        <input type="text" class="input-default focus form-control" id="txtHistorico" name="txtHistorico" placeholder="Histórico">
                                        <div class="input-group-append">
                                          <button class="btn bg-danger" id="btn-Historico" name="btn-Historico" data-button="absolute" type="button">
                                            <i class="m-0 p-0 fas fa-search"></i>
                                          </button>
                                          <button class="btn bg-danger" id="btn-limpa-Historico" type="button">
                                            <i class="m-0 p-0 fas fa-trash"></i>
                                          </button>
                                        </div>
                                      </div>
                                    </div>
                                  </div>

                                </div>
                                <input type="button" id="avancarComercial" name="next" class="next action-button" value="Avançar" />
                                <input type="button" name="previous" id="VoltarGeral" class="previous action-button-previous" value="Voltar" />
                              </fieldset>
                              <fieldset id="financeiroFs">
                                <div class="form-card">
                                  <h2 class="fs-title">Informações</h2>

                                  <div class="row">

                                    <div class="col-lg-6  col-6 form-group">
                                      <label data-error="wrong" data-success="right" for="txtDeposito">Depósito *</label>
                                      <div class="input-group">
                                        <input type="text" class="input-default focus form-control" id="txtDeposito" name="txtDeposito" placeholder="Depósito">
                                        <div class="input-group-append">
                                          <button class="btn bg-danger" id="btn-Deposito" name="btn-Deposito" data-button="absolute" type="button">
                                            <i class="m-0 p-0 fas fa-search"></i>
                                          </button>
                                          <button class="btn bg-danger" id="btn-limpa-Deposito" type="button">
                                            <i class="m-0 p-0 fas fa-trash"></i>
                                          </button>
                                        </div>
                                      </div>
                                    </div>

                                    <div class="col-lg-6  col-6 form-group">
                                      <label data-error="wrong" data-success="right" for="txtComprador">Comprador</label>
                                      <div class="input-group">
                                        <input type="text" class="input-default focus form-control" id="txtComprador" name="txtComprador" placeholder="Comprador">
                                        <div class="input-group-append">
                                          <button class="btn bg-danger" id="btn-Comprador" name="btn-Comprador" data-button="absolute" type="button">
                                            <i class="m-0 p-0 fas fa-search"></i>
                                          </button>
                                          <button class="btn bg-danger" id="btn-limpa-Comprador" type="button">
                                            <i class="m-0 p-0 fas fa-trash"></i>
                                          </button>
                                        </div>
                                      </div>
                                    </div>

                                    <div class="col-lg-6  col-6 form-group">
                                      <label for="txtGrupoPed">Grupo Ped</label>
                                      <div class="input-group">
                                        <input type="text" class="input-default focus form-control" id="txtGrupoPed" name="txtGrupoPed" placeholder="Grupo Ped">
                                        <div class="input-group-append">
                                          <button class="btn bg-danger" id="btn-GrupoPed" name="btn-GrupoPed" data-button="absolute" type="button">
                                            <i class="m-0 p-0 fas fa-search"></i>
                                          </button>
                                          <button class="btn bg-danger" id="btn-limpa-GrupoPed" type="button">
                                            <i class="m-0 p-0 fas fa-trash"></i>
                                          </button>
                                        </div>
                                      </div>
                                    </div>

                                    <div class="col-lg-6  col-6 form-group">
                                      <label for="txtStatus">Status *</label>
                                      <div class="input-group">
                                        <input type="text" class="input-default focus form-control" id="txtStatus" name="txtStatus" placeholder="Status">
                                        <div class="input-group-append">
                                          <button class="btn bg-danger" id="btn-Status" name="btn-Status" data-button="absolute" type="button">
                                            <i class="m-0 p-0 fas fa-search"></i>
                                          </button>
                                          <button class="btn bg-danger" id="btn-limpa-Status" type="button">
                                            <i class="m-0 p-0 fas fa-trash"></i>
                                          </button>
                                        </div>
                                      </div>
                                    </div>

                                    <div class="col-lg-6  col-6 form-group">
                                      <label for="txtEspecie">Espécie</label>
                                      <div class="input-group">
                                        <input type="text" class="input-default focus form-control" id="txtEspecie" name="txtEspecie" placeholder="Espécie">
                                        <div class="input-group-append">
                                          <button class="btn bg-danger" id="btn-Especie" name="btn-Especie" data-button="absolute" type="button">
                                            <i class="m-0 p-0 fas fa-search"></i>
                                          </button>
                                          <button class="btn bg-danger" id="btn-limpa-Especie" type="button">
                                            <i class="m-0 p-0 fas fa-trash"></i>
                                          </button>
                                        </div>
                                      </div>
                                    </div>

                                    <div class="col-lg-6  col-6 form-group">
                                      <label for="txtOperacao">Operação</label>
                                      <div class="input-group">
                                        <input type="text" class="input-default focus form-control" id="txtOperacao" name="txtOperacao" placeholder="Operação">
                                        <div class="input-group-append">
                                          <button class="btn bg-danger" id="btn-Operacao" name="btn-Operacao" data-button="absolute" type="button">
                                            <i class="m-0 p-0 fas fa-search"></i>
                                          </button>
                                          <button class="btn bg-danger" id="btn-limpa-Operacao" type="button">
                                            <i class="m-0 p-0 fas fa-trash"></i>
                                          </button>
                                        </div>
                                      </div>
                                    </div>

                                    <div class="col-lg-4  col-4 form-group">
                                      <label for="txtTpVenda">Tipo Venda</label>
                                      <div class="input-group">
                                        <input type="text" class="input-default focus form-control" id="txtTpVenda" name="txtTpVenda" placeholder="Tipo Venda">
                                        <div class="input-group-append">
                                          <button class="btn bg-danger" id="btn-TpVenda" name="btn-TpVenda" data-button="absolute" type="button">
                                            <i class="m-0 p-0 fas fa-search"></i>
                                          </button>
                                          <button class="btn bg-danger" id="btn-limpa-TpVenda" type="button">
                                            <i class="m-0 p-0 fas fa-trash"></i>
                                          </button>
                                        </div>
                                      </div>
                                    </div>

                                    <div class="col-lg-2  col-2 form-group">
                                      <label data-error="wrong" data-success="right" for="txtDescontoEmprenho">Desconto R$</label>
                                      <div class="input-group">
                                        <input type="text" class="input-default focus form-control maskDecimais" id="txtDescontoEmprenho" name="txtDescontoEmprenho" placeholder="0">
                                      </div>
                                    </div>

                                    <div class="col-lg-2  col-2 form-group">
                                      <label data-error="wrong" data-success="right" for="txtDepto">Depto:</label>
                                      <div class="input-group">
                                        <input type="text" class="input-default focus form-control" id="txtDepto" name="txtDepto" placeholder="Depto">
                                      </div>
                                    </div>

                                    <div class="col-lg-2  col-2 form-group">
                                      <label data-error="wrong" data-success="right" for="txtPrzAdicional">Prazo Adicional:</label>
                                      <div class="input-group">
                                        <input type="text" class="input-default focus form-control" id="txtPrzAdicional" name="txtPrzAdicional" placeholder="Prazo Adicional">
                                      </div>
                                    </div>

                                    <div class="col-lg-2  col-2 form-group">
                                      <label data-error="wrong" data-success="right" for="txtOrcamento">Orçamento:</label>
                                      <div class="input-group">
                                        <input type="text" class="input-default focus form-control" id="txtOrcamento" name="txtOrcamento" placeholder="Orçamento">
                                      </div>
                                    </div>

                                    <div class="col-12">
                                      <div class="form-group" id="ObservacaoInfoTour">
                                        <label data-error="wrong" data-success="right" for="txtObservacao">Observação</label>
                                        <div class="input-group">
                                          <textarea style="resize: none" id="txtObservacao" maxlength="787" placeholder="Observação" class="input-default focus form-control" rows="5"></textarea>
                                        </div>
                                      </div>
                                    </div>

                                  </div>
                                </div>
                                <input type="button" id="avancarItens" name="next" class="next action-button" value="Avançar" />
                                <input type="button" name="previous" id="voltarComercial" class="previous action-button-previous" value="Voltar" />
                              </fieldset>
                              <fieldset>
                                <div class="form-card">
                                  <h2 class="fs-title">Itens</h2>
                                  <div class="row justify-content-end">

                                    <div class="col-sm-2" style="margin-right: 14px;">
                                      <button type="button" id="btnAdicionar" class="btn btn-success btn-sisp">Adicionar</button>
                                    </div>

                                    <div class="col-12" style="margin-top: 10px;">
                                      <table id="tabelaItens" class="table table-responsive-sm table-select table-hover" width="100%">
                                        <thead>
                                          <tr>
                                            <th class="th-sm">Código</th>
                                            <th class="th-sm">Descrição</th>
                                            <th class="th-sm">Cor</th>
                                            <th class="th-sm">Tam</th>
                                            <th class="th-sm">Qtde</th>
                                            <th class="th-sm">Preço</th>
                                            <th class="th-sm">Tipo</th>
                                            <th class="th-sm">Foto</th>
                                            <th class="th-sm">×</th>
                                          </tr>
                                        </thead>
                                        <tbody>
                                        </tbody>
                                      </table>
                                    </div>
                                  </div>

                                </div>
                                <input type="button" id="avancarPagamento" name="next" class="next action-button" value="Avançar" />
                                <input type="button" name="previous" id="ultimoVoltar" class="previous action-button-previous" value="Voltar" />
                              </fieldset>
                              <fieldset>
                                <div class="form-card" id="tourFinanceiro">
                                  <h2 class="fs-title">Pagamento</h2>

                                  <div class="row card-totais">
                                    <div class="col-lg-3  col-3 form-group">
                                      <label data-error="wrong" data-success="right" for="txtValorLiq">Valor Líquido:</label>
                                      <div class="input-group">
                                        <input type="text" class="input-default focus form-control maskDecimais" id="txtValorLiq" name="txtValorLiq" disabled>
                                      </div>
                                    </div>
                                    <div class="col-lg-3  col-3 form-group">
                                      <label data-error="wrong" data-success="right" for="txtTaxa">Taxa:</label>
                                      <div class="input-group">
                                        <input type="text" class="input-default focus form-control maskDecimais" id="txtTaxa" name="txtTaxa" placeholder="Taxa">
                                      </div>
                                    </div>
                                    <div class="col-lg-3 form-group">
                                      <label data-error="wrong" data-success="right" for="txtFrete">Frete:</label>
                                      <div class="input-group">
                                        <input type="text" class="input-default focus form-control maskDecimais" id="txtFrete" name="txtFrete" placeholder="Frete">
                                      </div>
                                    </div>
                                    <div class="col-lg-3 form-group">
                                      <label data-error="wrong" data-success="right" for="txtBonif">Bonif:</label>
                                      <div class="input-group">
                                        <input type="text" class="input-default focus form-control maskDecimais" id="txtBonif" name="txtBonif" placeholder="Bonif">
                                      </div>
                                    </div>

                                    <div class="col-lg-12  col-12 form-group" style="margin-bottom: 0px;">
                                      <label data-error="wrong" data-success="right">Desconto:</label>
                                    </div>
                                    <div class="col-lg-2  col-2 form-group">
                                      <div class="input-group">
                                        <input type="text" value="0.00" class="input-default focus form-control maskDecimais" id="txtDesconto1" name="txtDesconto1" placeholder="1">
                                      </div>
                                    </div>
                                    <div class="col-lg-2  col-2 form-group">
                                      <div class="input-group">
                                        <input type="text" value="0.00" class="input-default focus form-control maskDecimais" id="txtDesconto2" name="txtDesconto2" placeholder="2">
                                      </div>
                                    </div>
                                    <div class="col-lg-2  col-2 form-group">
                                      <div class="input-group">
                                        <input type="text" value="0.00" class="input-default focus form-control maskDecimais" id="txtDesconto3" name="txtDesconto3" placeholder="3">
                                      </div>
                                    </div>
                                    <div class="col-lg-2  col-2 form-group">
                                      <div class="input-group">
                                        <input type="text" value="0.00" class="input-default focus form-control maskDecimais" id="txtDesconto4" name="txtDesconto4" placeholder="4">
                                      </div>
                                    </div>
                                    <div class="col-lg-2  col-2 form-group">
                                      <div class="input-group">
                                        <input type="text" value="0.00" class="input-default focus form-control maskDecimais" id="txtDesconto5" name="txtDesconto5" placeholder="5">
                                      </div>
                                    </div>
                                    <div class="col-lg-2  col-2 form-group">
                                      <div class="input-group">
                                        <input type="text" value="0.00" class="input-default focus form-control maskDecimais" id="txtDesconto6" name="txtDesconto6" placeholder="6">
                                      </div>
                                    </div>
                                    <div class="col-lg-12  col-12 form-group" style="margin-bottom: 0px;">
                                      <label data-error="wrong" data-success="right">Condição de pagamento: *</label>
                                    </div>
                                    <div class="col-lg-1  col-1 form-group">
                                      <div class="input-group">
                                        <input type="text" value="0" class="input-default focus form-control" id="txtCondPagto1" name="txtCondPagto1" placeholder="1">
                                      </div>
                                    </div>
                                    <div class="col-lg-1  col-1 form-group">
                                      <div class="input-group">
                                        <input type="text" class="input-default focus form-control" id="txtCondPagto2" name="txtCondPagto2" placeholder="2">
                                      </div>
                                    </div>
                                    <div class="col-lg-1  col-1 form-group">
                                      <div class="input-group">
                                        <input type="text" class="input-default focus form-control" id="txtCondPagto3" name="txtCondPagto3" placeholder="3">
                                      </div>
                                    </div>
                                    <div class="col-lg-1  col-1 form-group">
                                      <div class="input-group">
                                        <input type="text" class="input-default focus form-control" id="txtCondPagto4" name="txtCondPagto4" placeholder="4">
                                      </div>
                                    </div>
                                    <div class="col-lg-1  col-1 form-group">
                                      <div class="input-group">
                                        <input type="text" class="input-default focus form-control" id="txtCondPagto5" name="txtCondPagto5" placeholder="5">
                                      </div>
                                    </div>
                                    <div class="col-lg-1  col-1 form-group">
                                      <div class="input-group">
                                        <input type="text" class="input-default focus form-control" id="txtCondPagto6" name="txtCondPagto6" placeholder="6">
                                      </div>
                                    </div>
                                    <div class="col-lg-1  col-1 form-group">
                                      <div class="input-group">
                                        <input type="text" class="input-default focus form-control" id="txtCondPagto7" name="txtCondPagto7" placeholder="7">
                                      </div>
                                    </div>
                                    <div class="col-lg-1  col-1 form-group">
                                      <div class="input-group">
                                        <input type="text" class="input-default focus form-control" id="txtCondPagto8" name="txtCondPagto8" placeholder="8">
                                      </div>
                                    </div>
                                    <div class="col-lg-1  col-1 form-group">
                                      <div class="input-group">
                                        <input type="text" class="input-default focus form-control" id="txtCondPagto9" name="txtCondPagto9" placeholder="9">
                                      </div>
                                    </div>
                                    <div class="col-lg-1  col-1 form-group">
                                      <div class="input-group">
                                        <input type="text" class="input-default focus form-control" id="txtCondPagto10" name="txtCondPagto10" placeholder="10">
                                      </div>
                                    </div>
                                    <div class="col-lg-1  col-1 form-group">
                                      <div class="input-group">
                                        <input type="text" class="input-default focus form-control" id="txtCondPagto11" name="txtCondPagto11" placeholder="11">
                                      </div>
                                    </div>
                                    <div class="col-lg-1  col-1 form-group">
                                      <div class="input-group">
                                        <input type="text" class="input-default focus form-control" id="txtCondPagto12" name="txtCondPagto12" placeholder="12">
                                      </div>
                                    </div>
                                    <input type="text" id="txtBanco" class="d-none">
                                    <input type="text" id="txtSit_Dup" class="d-none">
                                    <input type="text" id="txtConta" class="d-none">
                                    <div class="col-lg-3  col-3 form-group">
                                      <label data-error="wrong" data-success="right" for="txtMoeda">Moeda: *</label>
                                      <div class="input-group">
                                        <input type="text" class="input-default focus form-control" id="txtMoeda" name="txtMoeda" placeholder="Moeda">
                                        <div class="input-group-append">
                                          <button class="btn bg-danger" id="btn-Moeda" name="btn-Moeda" data-button="absolute" type="button">
                                            <i class="m-0 p-0 fas fa-search"></i>
                                          </button>
                                          <button class="btn bg-danger" id="btn-limpa-Moeda" type="button">
                                            <i class="m-0 p-0 fas fa-trash"></i>
                                          </button>
                                        </div>
                                      </div>
                                    </div>
                                    <div class="col-lg-3  col-3 form-group">
                                      <label data-error="wrong" data-success="right" for="txtCondicao">Condição:</label>
                                      <div class="input-group">
                                        <input type="text" class="input-default focus form-control" id="txtCondicao" name="txtCondicao" placeholder="Condicao" disabled>
                                        <div class="input-group-append">
                                          <button class="btn bg-danger" id="btn-Condicao" name="btn-Condicao" data-button="absolute" type="button" disabled>
                                            <i class="m-0 p-0 fas fa-search"></i>
                                          </button>
                                          <button class="btn bg-danger" id="btn-limpa-Condicao" type="button" disabled>
                                            <i class="m-0 p-0 fas fa-trash"></i>
                                          </button>
                                        </div>
                                      </div>
                                    </div>
                                    <div class="col-lg-2  col-2 form-group">
                                      <label data-error="wrong" data-success="right" for="txtNrParcelas">Nr. Parcelas:</label>
                                      <div class="input-group">
                                        <input type="number" class="input-default focus form-control" id="txtNrParcelas" name="txtNrParcelas" value="0" disabled>
                                      </div>
                                    </div>
                                    <div class="col-lg-2  col-2 form-group">
                                      <label data-error="wrong" data-success="right" for="txtIntervaloDias">Intervalo de Dias</label>
                                      <div class="input-group">
                                        <input type="number" class="input-default focus form-control" id="txtIntervaloDias" name="txtIntervaloDias" value="1" disabled>
                                      </div>
                                    </div>
                                    <div class="col-lg-2  col-2 form-group">
                                      <label data-error="wrong" data-success="right" for="dtPrimeiroVencto">1º Vencimento:</label>
                                      <div class="input-group">
                                        <input type="date" max="2500-12-31" class="input-default focus form-control" id="dtPrimeiroVencto" name="dtPrimeiroVencto" disabled>
                                      </div>
                                    </div>
                                  </div>
                                  <div class="form_group">
                                    <div class="div">
                                      <input type="button" class="btn float-right btn-danger btn-sisp" id="btnAtualizar" name="make_payment" value="Atualizar" style="margin: 1px" />
                                      <input type="button" class="btn float-right  btn-primary btn-sisp" id="btnLimpar" name="make_payment" value="Limpar" style="margin: 1px" />
                                    </div>
                                  </div>
                                  <div class="col-sm-12 table-responsive card-body">
                                    <table id="tabelaCondicao" class="table table-responsive-sm table-select table-hover" width="100%">
                                      <thead>
                                        <tr>
                                          <th class="th-sm">Dias</th>
                                          <th class="th-sm">Vencimento</th>
                                          <th class="th-sm">Moeda</th>
                                          <th class="th-sm">Condição</th>
                                          <th class="th-sm">Valor</th>
                                        </tr>
                                      </thead>
                                      <tbody>
                                      </tbody>
                                    </table>
                                  </div>
                                </div>
                                <input type="button" id="gravar" name="make_payment" class="action-button" value="Gravar" />
                                <input type="button" id="voltarItens" name="previous" class="previous action-button-previous" value="Voltar" />

                              </fieldset>
                            </form>
                          </div>
                        </div>
                      </div>
                    </div>
                  </div>
                </div>
              </div>
            </div>
          </div>
        </section>
      </div>
    </div>
  </div>
</div>
<script src="pages/pedidosb2b/modal/modal_pedido.js?versao=3.263.17.1"></script>