<?php include_once('../../../config.php') ?>

<!DOCTYPE html>
<html>

<head>
  <meta charset="utf-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <title>Sisplan Web | Pedido</title>
  <meta name="viewport" content="width=device-width, initial-scale=1">
  <link rel="stylesheet" href="../dist/css/adminlte.min.css?versao=3.2512.9.1">
  <link rel="stylesheet" href="../plugins/fontawesome-free/css/all.min.css?versao=3.2512.9.1">
  <link href='https://fonts.googleapis.com/css?family=Roboto:400,300,500,600,700,400italic' rel='stylesheet' type='text/css'>
  <link rel="stylesheet" type="text/css" href="../dist/css/dataTables.bootstrap4.min.css?versao=3.2512.9.1" />
  <link href='dist/css/bootstrap.min.css?versao=3.2512.9.1'>
  <link rel="stylesheet" href="../dist/css/custom.css?versao=3.2512.9.1">
  <link rel="stylesheet" href="../dist/css/sisplan.css?versao=3.2512.9.1">
  <link rel="stylesheet" type="text/css" href="../plugins/datatables-keytable/css/keyTable.bootstrap4.min.css?versao=3.2512.9.1">
  <link rel="stylesheet" type="text/css" href="../dist/css/responsive.bootstrap.min.css?versao=3.2512.9.1">
  <link rel="shortcut icon" href="../favicon.ico">
  <link rel="stylesheet" href="../plugins/toastr/toastr.min.css?versao=3.2512.9.1">
  <link rel="stylesheet" type="text/css" href="../dist/css/driver.min.css?versao=3.2512.9.1" />
  <link rel="stylesheet" href="../dist/css/jquery-ui.css?versao=3.2512.9.1">
  <link rel="stylesheet" href="../dist/css/cadastro.css?versao=3.2512.9.1">
  <link href="https://fonts.googleapis.com/css?family=Source+Sans+Pro:300,400,400i,700" rel="stylesheet">

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

    .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;
    }

    .custom-tooltip {
      color: black;
      display: none;
      font-weight: bold;
      font-size: 110%;
      position: absolute;
      background-color: #f9f9f9;
      padding: 10px;
      border: 0.5px solid #ccc;
      border-radius: 5px;
      box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
      /* max-width: 50%;
      overflow: hidden;
      white-space: nowrap; */
    }

    .custom-tooltip:before {
      color: black;
      content: '';
      position: absolute;
      top: 100%;
      left: 50%;
      margin-left: -10px;
      border-width: 10px;
      border-style: solid;
      border-color: #f9f9f9 transparent transparent transparent;
    }

    .dynamic-lote .group-default.form-group {
      display: flex;
      align-items: center;
    }

    .dynamic-lote .input-group-append {
      margin-left: 10px;
      cursor: pointer;
    }
  </style>

</head>

<body class="sidebar-mini layout-fixed">
  <div class="wrapper">


    <div class="content-wrapper">
      <section class="content">
        <div class="content-header">
          <div class="container-fluid">
            <div class="row mb-2">
              <div class="col-sm-6 flex">
              </div>
              <div class="col-sm-6">
                <!-- <ol class="breadcrumb float-sm-right">
                  
                  <li class="breadcrumb-item"><a href="../pedido">Acesso Pedido</a></li>
                  <li class="breadcrumb-item active">Pedido</li>
                </ol> -->
              </div><!-- /.col -->
              <div class="container-fluid" id="grad1">
                <div class="row justify-content-center mt-0">
                  <div class="col-10 text-center">
                    <div class="card mb-0">
                      <div class="card-header 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="personal"><strong>Comercial</strong></li>
                              <li id="infoicon"><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 Faturamento</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-info-cliente" name="btn-info-cliente" data-button="absolute" type="button"><i class="m-0 p-0 fas fa-user"></i></button>
                                        <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"><a id="lblRepresentantes" style="text-decoration: underline" class="hover-overlay" target="_blank">Representantes:</a>
                                    </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-2  col-12 form-group" id="divComFat">
                                    <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-2  col-12 form-group" id="divComRec">
                                    <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-2  col-12 form-group" id="divIndiceFat">
                                    <label data-error="wrong" data-success="right" for="txtIndiceFat">Índice Fat.</label>
                                    <div class="input-group">
                                      <input type="text" maxlength="6" class="input-default focus form-control maskDecimais" value="100.00" id="txtIndiceFat" name="txtIndiceFat" placeholder="Índice Fat.">
                                    </div>
                                  </div>

                                  <div class="col-lg-2  col-12 form-group d-none" id="divIndice">
                                    <label data-error="wrong" data-success="right" for="txtIndice">Índice</label>
                                    <div class="input-group">
                                      <input type="text" class="input-default focus form-control maskDecimais" id="txtIndice" name="txtIndice" placeholder="Índice">
                                    </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-2  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-2 icheck-primary" style="padding-top: 35px; padding-left: 5px;">
                                    <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" id="labelResponsavel" 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>

                              </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-3  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-3  col-3 form-group">
                                    <label for="txtQualidadeCapa">Qualidade</label>
                                    <div class="input-group">
                                      <input type="text" class="input-default focus form-control" id="txtQualidadeCapa" name="txtQualidadeCapa" placeholder="Qualidade">
                                      <div class="input-group-append">
                                        <button class="btn bg-danger" id="btn-QualidadeCapa" name="btn-QualidadeCapa" data-button="absolute" type="button">
                                          <i class="m-0 p-0 fas fa-search"></i>
                                        </button>
                                        <button class="btn bg-danger" id="btn-limpa-QualidadeCapa" 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 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-3  col-3 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-3  col-3 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-3  col-3 form-group">
                                    <label data-error="wrong" data-success="right" for="txtPercDesconto">Desconto %</label>
                                    <div class="input-group">
                                      <input type="text" class="input-default focus form-control maskDecimais" id="txtPercDesconto" name="txtPercDesconto" 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 class="col-12">
                                    <div class="form-group" id="Observacao2InfoTour">
                                      <label data-error="wrong" data-success="right" for="txtObservacao2">Observação Nota</label>
                                      <div class="input-group">
                                        <textarea style="resize: none" id="txtObservacao2" maxlength="787" placeholder="Observação nota" 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="form-row col-lg-12 col-12 justify-content-between">

                                  <div class="col-lg-4 col-6" id="divBarra">
                                    <label data-error="wrong" data-success="right" for="txtBarra">Barra:</label>
                                    <div class="input-group">
                                      <input type="text" class="input-default focus form-control validate" id="txtBarra" name="txtBarra" placeholder="Barra" title="Bipe uma barra para adicionar um item ao pedido.">
                                      <!-- <div class="input-group-append">
                                        <button class="btn bg-danger" id="btnMais" data-button="absolute" type="button" data-estorno="false">
                                          <i class="m-0 p-0 fas fa-plus"></i>
                                        </button>
                                      </div> -->
                                    </div>
                                  </div>

                                  <!-- <div class="col-lg-4 col-6 d-none" id="divBarraEstorno">
                                    <label data-error="wrong" data-success="right" for="txtBarraEstorno">Barra:</label>
                                    <div class="input-group">
                                      <input type="text" class="input-default focus form-control validate" id="txtBarraEstorno" name="txtBarraEstorno" placeholder="Barra" title="Bipe uma barra para estornar um item do pedido.">
                                      <div class="input-group-append">
                                        <button class="btn bg-danger" id="btnMenos" data-button="absolute" type="button" data-estorno="false">
                                          <i class="m-0 p-0 fas fa-minus"></i>
                                        </button>
                                      </div>
                                    </div>
                                  </div> -->

                                  <div class="col-lg-2 col-6 d-flex justify-content-end align-items-end">
                                    <button type="button" id="btnAdicionar" class="btn btn-success btn-sisp" style="max-height: 38px!important">Adicionar</button>
                                  </div>

                                  <div class="col-lg-12 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">Desc_Cor</th>
                                          <th class="th-sm">Tam</th>
                                          <th class="th-sm">Depósito</th>
                                          <th class="th-sm">Lote</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">OBS</th>
                                          <th class="th-sm">A</th>
                                          <th class="th-sm">A</th>
                                          <th class="th-sm">A</th>
                                          <th class="th-sm">A</th>
                                          <th class="th-sm">A</th>
                                          <th class="th-sm">A</th>
                                          <th class="th-sm">Foto Cor</th>
                                          <th class="th-sm">Qualidade</th>
                                        </tr>
                                      </thead>
                                      <tbody>
                                      </tbody>
                                    </table>
                                  </div>
                                </div>

                                <div class="form-row col-xl-12 col-12" id="valoresTotais">
                                  <div class="col-xl-2 col-4">
                                    <label data-error="wrong" data-success="right" for="txtValorTotalItem">Valor Item:</label>
                                    <div class="input-group">
                                      <input type="text" disabled class="input-default focus form-control col-9 text-right" id="txtValorTotalItem" name="txtValorTotalItem" class="form-control" placeholder="0">
                                    </div>
                                  </div>
                                  <div class="col-xl-2 col-4">
                                    <label data-error="wrong" data-success="right" for="txtValorTotal">Valor Líq. Total:</label>
                                    <div class="input-group">
                                      <input type="text" disabled class="input-default focus form-control col-9 text-right" id="txtValorTotal" name="txtValorTotal" class="form-control" placeholder="0">
                                    </div>
                                  </div>
                                  <div class="col-xl-2 col-4">
                                    <label data-error="wrong" data-success="right" for="txtValorTotal">Quantidade Total:</label>
                                    <div class="input-group">
                                      <input type="text" disabled class="input-default focus form-control col-9 text-right" id="txtQtdeTotal" name="txtQtdeTotal" class="form-control" placeholder="0">
                                    </div>
                                  </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-2  col-4 form-group">
                                    <label data-error="wrong" data-success="right" for="txtValorLiq">Valor Líq. Total:</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-2  col-3 form-group">
                                    <label data-error="wrong" data-success="right" for="txtDespesas">Despesas:</label>
                                    <div class="input-group">
                                      <input type="text" class="input-default focus form-control maskDecimais" id="txtDespesas" name="txtDespesas" placeholder="Despesas">
                                    </div>
                                  </div>
                                  <div class="col-lg-2  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-2 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-2 form-group">
                                    <label data-error="wrong" data-success="right" for="txtFreteTrans">Frete Transp.:</label>
                                    <div class="input-group">
                                      <input type="text" class="input-default focus form-control maskDecimais" id="txtFreteTrans" name="txtFreteTrans" placeholder="Frete transportadora">
                                    </div>
                                  </div>
                                  <div class="col-lg-2 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>
                                  <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 for="txtSitDup">Situação Dup.:</label>
                                    <div class="input-group">
                                      <input type="text" class="input-default focus form-control" id="txtSitDup" name="txtSitDup" placeholder="Situação Dup.">
                                      <div class="input-group-append">
                                        <button class="btn bg-danger" id="btn-SitDup" name="btn-SitDup" data-button="absolute" type="button">
                                          <i class="m-0 p-0 fas fa-search"></i>
                                        </button>
                                        <button class="btn bg-danger" id="btn-limpa-SitDup" 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 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 class="col-lg-3  col-3 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-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 class="col-lg-3  col-3 form-group">
                                    <label data-error="wrong" data-success="right" for="txtValorCondicao">Valor condição:</label>
                                    <div class="input-group">
                                      <input type="text" class="input-default focus form-control maskDecimais" id="txtValorCondicao" name="txtValorCondicao" placeholder="Valor condição">
                                    </div>
                                  </div>
                                </div>
                                <div class="form_group">
                                  <div class="row d-flex justify-content-end">
                                    <div class="col-lg-3  col-3 form-group" style="margin-top: 24px;">
                                      <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>
                                <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">Desc. 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 class="modal fade" id="modalItem" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
    <div class="modal-dialog modal-xl" style="min-width: 90%!important">
      <div class="modal-content">
        <div class="modal-header">
          <h4 id="modalItem-titulo" class="modal-title">Adicionar Item
            <label class="container" style="font-size: 70%;">
              <input type="radio" checked="checked" id="radioProduto" name="liberarBloq">
              <span class="checkmark"></span> Produto
            </label>
            <label class="container" style="font-size: 70%;">
              <input type="radio" id="radioMaterial" name="liberarBloq">
              <span class="checkmark"></span> Material
            </label>
          </h4>
          <button type="button" class="close" data-dismiss="modal" aria-label="Close">
            <span aria-hidden="true">&times;</span>
          </button>
        </div>
        <div class="modal-body" id="dadosItem">

          <div id="dadosProduto">
            <div class="row d-flex justify-content-start">
              <div class="col-lg-6 col-6 form-group">
                <label data-error="wrong" data-success="right" for="txtProduto">Produto:</label>
                <div class="input-group">
                  <input type="text" class="input-default focus form-control" id="txtProduto" name="txtProduto" class="form-control" placeholder="Produto">
                  <div class="input-group-append">
                    <button class="btn bg-danger" id="btn-Produto" name="btn-Produto" data-button="absolute" type="button"><i class="m-0 p-0 fas fa-search"></i></button>
                    <button class="btn bg-danger" id="btn-limpa-Produto" type="button"><i class="m-0 p-0 fas fa-trash"></i></button>
                  </div>
                </div>
              </div>
              <div class="col-lg-2 col-3 form-group">
                <label data-error="wrong" data-success="right" for="txtValor">Qtde Est:</label>
                <div class="input-group">
                  <input type="text" class="input-default focus form-control text-right" disabled id="txtQuantidadeEstoque" name="txtQuantidadeEstoque" title="Quantidade em estoque relacionada ao produto e depósito informados" class="form-control" placeholder="0">
                </div>
              </div>
              <div class="col-lg-2 col-3 form-group">
                <label data-error="wrong" data-success="right" for="txtDescontoProd">Desconto:</label>
                <div class="input-group">
                  <input type="text" class="input-default focus form-control maskDecimaisParametro text-right" id="txtDescontoProd" name="txtDescontoProd" title="Desconto" class="form-control" placeholder="0">
                </div>
              </div>
              <div class="col-lg-2 col-3 form-group">
                <label data-error="wrong" data-success="right" for="txtValor">Preço Item:</label>
                <div class="input-group">
                  <input type="text" class="input-default focus form-control maskDecimaisParametro text-right" id="txtValor" name="txtValor" class="form-control" placeholder="0.00">
                  <input type="text" class="input-default focus form-control maskDecimaisParametro text-right d-none" id="txtValorOrig" name="txtValorOrig" class="form-control" placeholder="0.00">
                </div>
              </div>
              <div class="col-lg-auto col-auto form-group d-flex align-items-end" id="divRegraPromocao">
                <div class="icheck-primary" style="margin-top: 0.5rem !important; margin-bottom: 0.5rem !important;">
                  <input type="checkbox" class="form-check-input" name="cbRegraPromocao" id="cbRegraPromocao">
                  <label class="form-check-label" for="cbRegraPromocao">Desconto Regra Promoção</label>
                </div>
              </div>
              <div class="col-sm-12 table-responsive card-body p-0">
                <table id="tabelaGradeProduto" class="table table-responsive-sm table-select table-hover" width="100%">
                  <thead>
                    <tr id="colunas">
                    </tr>
                  </thead>
                  <tbody>
                  </tbody>
                </table>
              </div>
            </div>
          </div>

          <div class="d-none" id="dadosMaterial">
            <div class="row d-flex justify-content-start">
              <div class="col-xl-1 col-lg-2 col-3 form-group">
                <label data-error="wrong" data-success="right" for="txtQtde">Quantidade:</label>
                <div class="input-group">
                  <input type="text" class="input-default focus form-control maskDecimais text-right" id="txtQtde" value="1" name="txtQtde" class="form-control" placeholder="Quantidade">
                </div>
              </div>
              <div class="col-xl-4 col-lg-5 col-9 form-group">
                <label data-error="wrong" data-success="right" for="txtMaterial">Material:</label>
                <div class="input-group">
                  <input type="text" class="input-default focus form-control" id="txtMaterial" name="txtMaterial" class="form-control" placeholder="Material">
                  <div class="input-group-append">
                    <button class="btn bg-danger" id="btn-Material" name="btn-Material" data-button="absolute" type="button"><i class="m-0 p-0 fas fa-search"></i></button>
                    <button class="btn bg-danger" id="btn-limpa-Material" type="button"><i class="m-0 p-0 fas fa-trash"></i></button>
                  </div>
                </div>
              </div>
              <div class="col-xl-3 col-lg-5 col-9 form-group">
                <label data-error="wrong" data-success="right" for="txtCor">Cor:</label>
                <div class="input-group">
                  <input type="text" class="input-default focus form-control" id="txtCor" name="txtCor" class="form-control" placeholder="Cor">
                  <div class="input-group-append">
                    <button class="btn bg-danger" id="btn-Cor" name="btn-Cor" data-button="absolute" type="button"><i class="m-0 p-0 fas fa-search"></i></button>
                    <button class="btn bg-danger" id="btn-limpa-Cor" type="button"><i class="m-0 p-0 fas fa-trash"></i></button>
                  </div>
                </div>
              </div>
              <div class="col-xl-1 col-lg-2 col-3 form-group">
                <label data-error="wrong" data-success="right" for="txtQuantidadeEstoqueMat">Qtde Est:</label>
                <div class="input-group">
                  <input type="text" disabled class="input-default focus form-control text-right" id="txtQuantidadeEstoqueMat" name="txtQuantidadeEstoqueMat" class="form-control" placeholder="0.00">
                </div>
              </div>
              <div class="col-xl-1 col-lg-2 col-3 form-group">
                <label data-error="wrong" data-success="right" for="txtDescMat">Desconto:</label>
                <div class="input-group">
                  <input type="text" class="input-default focus form-control maskDecimaisParametro text-right" id="txtDescMat" name="txtDescMat" class="form-control" placeholder="0.00">
                </div>
              </div>
              <div class="col-xl-1 col-lg-2 col-3 form-group">
                <label data-error="wrong" data-success="right" for="txtValorMat">Preço Item:</label>
                <div class="input-group">
                  <input type="text" class="input-default focus form-control maskDecimaisParametro text-right" id="txtValorMat" name="txtValorMat" class="form-control" placeholder="0.00">
                  <input type="text" class="input-default focus form-control maskDecimaisParametro text-right d-none" id="txtValorMatOrig" name="txtValorMatOrig" class="form-control" placeholder="0.00">
                </div>
              </div>
              <div class="col-xl-1 col-lg-2 col-3 form-group">
                <label data-error="wrong" data-success="right" for="txtQuantidadeDisponivelMat">Qtde Disp:</label>
                <div class="input-group">
                  <input type="text" disabled class="input-default focus form-control text-right" id="txtQuantidadeDisponivelMat" name="txtQuantidadeDisponivelMat" class="form-control" placeholder="0.00">
                </div>
              </div>
            </div>
          </div>

          <div class="row" id="dadosObsItem" style="margin-top: 0px;">
            <div class="col-lg-12  col-12 form-group">
              <label data-error="wrong" data-success="right" for="txtObsItem">Observação:</label>
              <div class="input-group">
                <input type="text" class="input-default focus form-control" id="txtObsItem" name="txtObsItem" class="form-control" placeholder="Observação">
              </div>
            </div>
          </div>

        </div>
        <div class="modal-footer">
          <div class="form-row col-xl-12 col-12 mr-0 pr-0 justify-content-end">
            <div class="col-xl-2 col-2 divValoresSelecionados">
              <label data-error="wrong" data-success="right" for="txtQtdeTotalSelecionado">Qtde total:</label>
              <div class="input-group">
                <input type="text" disabled class="input-default focus form-control text-right" id="txtQtdeTotalSelecionado" name="txtQtdeTotalSelecionado" class="form-control" placeholder="0">
              </div>
            </div>
            <div class="col-xl-2 col-2 divValoresSelecionados">
              <label data-error="wrong" data-success="right" for="txtValorSelecionado">Valor sel.:</label>
              <div class="input-group">
                <input type="text" disabled class="input-default focus form-control text-right" id="txtValorSelecionado" name="txtValorSelecionado" class="form-control" placeholder="0.00">
              </div>
            </div>
            <div class="col-xl-2 col-3 divValoresSelecionados">
              <label data-error="wrong" data-success="right" for="txtCorSelecionado">Cor:</label>
              <div class="input-group">
                <input type="text" disabled class="input-default focus form-control" id="txtCorSelecionado" name="txtCorSelecionado" class="form-control" placeholder="Cor">
              </div>
            </div>
            <div class="col-xl-2 col-3 divValoresSelecionados">
              <label data-error="wrong" data-success="right" for="txtTamSelecionado">Tamanho</label>
              <div class="input-group">
                <input type="text" disabled class="input-default focus form-control" id="txtTamSelecionado" name="txtTamSelecionado" class="form-control" placeholder="Tamanho">
              </div>
            </div>
            <div class="col-xl-2 col-2 divValoresSelecionados" id="divQtdeEstoque">
              <label data-error="wrong" data-success="right" for="txtQtdeSelecionado">Qtde est.:</label>
              <div class="input-group">
                <input type="text" disabled class="input-default focus form-control text-right" id="txtQtdeSelecionado" name="txtQtdeSelecionado" class="form-control" placeholder="0">
              </div>
            </div>
            <div class="col-xl-auto px-0 d-flex justify-content-end">
              <button id="btnConfirmarItem" style="margin-top: 27px" class="btn btn-danger">Confirmar</button>
            </div>
          </div>
        </div>
      </div>
    </div>
  </div>

  <div class="modal fade" id="modalItemLote" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
    <div class="modal-dialog modal-xl" style="max-width: 95%; height: 90vh">
      <div class="modal-content">
        <div class="modal-header">
          <h4 id="modalItemLote-titulo" class="modal-title">Adicionar Item</h4>
          <button type="button" class="close" data-dismiss="modal" aria-label="Close">
            <span aria-hidden="true">&times;</span>
          </button>
        </div>
        <div class="modal-body" id="dadosItem">

          <div id="dadosProduto">
            <div class="row d-flex justify-content-start">
              <div class="col-lg-4 col-4 form-group">
                <label data-error="wrong" data-success="right" for="txtProdutoLote">Produto:</label>
                <div class="input-group">
                  <input type="text" class="input-default focus form-control" id="txtProdutoLote" name="txtProdutoLote" class="form-control" placeholder="Produto">
                  <div class="input-group-append">
                    <button class="btn bg-danger" id="btn-ProdutoLote" name="btn-ProdutoLote" data-button="absolute" type="button"><i class="m-0 p-0 fas fa-search"></i></button>
                    <button class="btn bg-danger" id="btn-limpa-ProdutoLote" 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="txtDepositoLote">Depósito:</label>
                <div class="input-group">
                  <input type="text" class="input-default focus form-control" id="txtDepositoLote" name="txtDepositoLote" class="form-control" disabled placeholder="Depósito">
                  <div class="input-group-append d-none">
                    <button class="btn bg-danger" id="btn-DepositoLote" name="btn-DepositoLote" data-button="absolute" type="button"><i class="m-0 p-0 fas fa-search"></i></button>
                    <button class="btn bg-danger" id="btn-limpa-DepositoLote" type="button"><i class="m-0 p-0 fas fa-trash"></i></button>
                  </div>
                </div>
              </div>
              <div class="col-lg-1 col-1 form-group">
                <label data-error="wrong" data-success="right" for="rgQualidade">Qualidade</label>
                <div class="input-group">
                  <select style="width:100%;" class="form-control select2 select2-danger focus" data-dropdown-css-class="select2-danger" id="rgQualidade" class="custom-select focus">
                    <option value="1" selected>1</option>
                    <option value="2">2</option>
                  </select>
                </div>
              </div>
              <div class="col-lg-2 col-3 form-group">
                <label data-error="wrong" data-success="right" for="txtLoteConsulta">Lote:</label>
                <div class="input-group">
                  <input type="text" class="input-default focus form-control text-right" id="txtLoteConsulta" name="txtLoteConsulta" class="form-control" placeholder="Lote">
                </div>
              </div>
              <div class="col-lg-2 col-3 form-group">
                <label data-error="wrong" data-success="right" for="txtValorLote">Preço Item:</label>
                <div class="input-group">
                  <input type="text" class="input-default focus form-control maskDecimaisParametro text-right" id="txtValorLote" name="txtValorLote" class="form-control" placeholder="0.00">
                </div>
              </div>
              <div class="col-sm-12">
                <hr>
              </div>
              <div class="col-sm-12 table-responsive card-body p-0">
                <table id="tabelaItensLote" class="table table-sm table-select table-hover" width="100%">
                  <thead>
                    <tr>
                    </tr>
                  </thead>
                  <tbody>
                  </tbody>
                </table>
              </div>
            </div>
          </div>

        </div>
        <div class="modal-footer">
          <div class="form-row col-xl-12 col-12 mr-0 pr-0 justify-content-end">
            <div class="col-xl-auto px-0 d-flex justify-content-end">
              <button id="btnConfirmarItemLote" style="margin-top: 27px" class="btn btn-danger">Confirmar</button>
            </div>
          </div>
        </div>
      </div>
    </div>
  </div>

  <div class="modal fade" id="imagemodal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
    <div class="modal-dialog">
      <div class="modal-content">
        <div class="modal-body">
          <button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">&times;</span><span class="sr-only">Close</span></button>
          <img src="" class="imagepreview" style="width: 100%;">
        </div>
      </div>
    </div>
  </div>
  <div class="modal fade" id="modal-alterar-qtde" tabindex="-1" role="dialog" data-backdrop="static" aria-labelledby="myModalLabel" aria-hidden="true">
    <div class="modal-dialog modal-md">
      <div class="modal-content">
        <div class="modal-header">
          <h4 id="modalItem-titulo" class="modal-title">Alterar Dados do Item
          </h4>
          <button type="button" class="close" data-dismiss="modal" aria-label="Close">
            <span aria-hidden="true">&times;</span>
          </button>
        </div>
        <div class="modal-body" id="dadosItem">
          <div class="form-row">
            <div class="form-group col-md-4">
              <label class="labelGeral" for="txtAlterarQtde">Quantidade:</label>
              <input type="number" class="input-default focus form-control text-right" step="1" id="txtAlterarQtde" aria-describedby="codError" name="txtAlterarQtde" class="form-control" placeholder="0">
              <input type="number" class="input-default focus form-control text-right" step="1" id="txtQtdeOrig" aria-describedby="codError" name="txtQtdeOrig" class="form-control" hidden>
            </div>
            <div class="form-group col-md-4">
              <label class="labelGeral" for="txtAlterarDesconto">Desconto:</label>
              <input type="number" class="input-default focus form-control text-right" step="1" id="txtAlterarDesconto" aria-describedby="codError" name="txtAlterarDesconto" class="form-control" value="0" placeholder="0">
            </div>
            <div class="form-group col-md-4">
              <label class="labelGeral" for="txtAlterarPreco">Preço:</label>
              <input type="number" class="input-default focus form-control text-right" id="txtAlterarPreco" aria-describedby="codError" name="txtAlterarPreco" class="form-control" placeholder="0" disabled>
            </div>
            <div class="form-group col-md-6">
              <label class="labelGeral" for="txtPrecoOriginal">Preço Original:</label>
              <input type="number" class="input-default focus form-control text-right" id="txtPrecoOriginal" aria-describedby="codError" name="txtPrecoOriginal" class="form-control" disabled>
            </div>
            <div class="form-group col-md-6">
              <label class="labelGeral" for="txtAlterarValor">Valor:</label>
              <input type="text" class="input-default focus form-control text-right" id="txtAlterarValor" aria-describedby="codError" name="txtAlterarValor" class="form-control" placeholder="0" disabled>
              <input type="text" class="input-default focus form-control text-right" id="txtContemExpedicao" aria-describedby="codError" name="txtContemExpedicao" class="form-control" hidden>
            </div>
          </div>
          <input type="text" class="input-default focus form-control col-4 d-none" id="txtIdAlterarQtde" aria-describedby="codError" name="txtIdQtde" class="form-control" placeholder="0">
        </div>
        <div class="modal-footer justify-content-end">
          <button class="btn btn-primary btn-sisp" id="btnConfirmarQtde">Confirmar</button>
          <button class="btn bg-gradient-danger btn-sisp" id="btnCancelarQtde">Cancelar</button>
        </div>
      </div>
    </div>
  </div>
  <div class="modal fade" id="modalVinculaRepresentante" tabindex="-1" role="dialog" aria-labelledby="modalVinculaRepresentante" aria-hidden="true">
    <div class="modal-dialog modal-lg">
      <div class="modal-content">
        <div class="modal-header">
          <h4 id="modalCondicao-titulo" class="modal-title">Adicionar Representante</h4>
          <button type="button" class="close" data-dismiss="modal" aria-label="Close">
            <span aria-hidden="true">&times;</span>
          </button>
        </div>
        <div class="modal-body p-4">
          <div class="row">
            <div class="col-sm-12">
              <div class="row">
                <div class="col-sm-6">
                  <label style="margin-bottom: .1rem!important;" data-error="wrong" data-success="right" for="txtAddRepresentante">Representante:</label>
                  <div class="input-group">
                    <input type="text" class="input-default focus form-control" id="txtAddRepresentante" name="txtAddRepresentante" class="form-control" placeholder="Representante">
                    <div class="input-group-append">
                      <button class="btn bg-danger" id="btnAddRepresentante" name="btnAddRepresentante" data-button="absolute" type="button"><i class="m-0 p-0 fas fa-search"></i></button>
                      <button class="btn bg-danger" id="btnLimpaAddRepresentante" type="button"><i class="m-0 p-0 fas fa-trash"></i></button>
                    </div>
                  </div>
                </div>
                <div class="col-sm-3">
                  <label style="margin-bottom: .1rem!important;" data-error="wrong" data-success="right" for="txtAddComFat">Com. Fat.:</label>
                  <div class="input-group">
                    <input type="text" class="input-default focus form-control  maskDecimais" id="txtAddComFat" name="txtAddComFat" value="0,00" placeholder="ComFat">
                  </div>
                </div>
                <div class="col-sm-3">
                  <label style="margin-bottom: .1rem!important;" data-error="wrong" data-success="right" for="txtAddComRec">Com. Rec.:</label>
                  <div class="input-group">
                    <input type="text" class="input-default focus form-control  maskDecimais" id="txtAddComRec" name="txtAddComRec" value="0,00" placeholder="ComRec">
                  </div>
                </div>
                <div class="col-sm-4" style="margin-top:5px">
                  <button id="btnAdicionarRepresentante" type="button" class="btn btn-primary btn-block mt-2">
                    Adicionar Representante
                  </button>
                </div>
                <div class="col-sm-12 mt-3 pb-4 table-responsive card-body">
                  <table id="tabelaRepresentantes" class="table table-sm table-select table-hover" width="100%">
                    <thead>
                    </thead>
                    <tbody>
                    </tbody>
                  </table>
                </div>
              </div>
            </div>
          </div>
        </div>
      </div>
    </div>
  </div>

  <div class="modal fade" id="modal-info-cliente" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
          <div class="modal-dialog modal-lg">
            <div class="modal-content">
              <div class="modal-header">
                <h4 class="modal-title">Informações do Cliente - [<span id="txtCodigoTittle"></span>]</h4>
                <button type="button" class="close" data-dismiss="modal" aria-label="Close">
                  <span aria-hidden="true">&times;</span>
                </button>
              </div>
              <div class="modal-body">
                <div class="row">
                  <div class="col-12" id="collapseInfoAdicionais">
                    <div class="card card-body p-0">
                      <div class="d-flex">
                        <div class="col-4 pl-0">
                          <label data-error="wrong" data-success="right" for="txtDataCadastroInfo">Data de Cadastro</label>
                          <input type="date" readonly class="input-default focus form-control" id="txtDataCadastroInfo" name="txtDataCadastroInfo">
                        </div>
                        <div class="col-4 pl-0">
                          <label data-error="wrong" data-success="right" for="txtDataNascimentoInfo">Data de Nascimento</label>
                          <input type="date" readonly class="input-default focus form-control" id="txtDataNascimentoInfo" name="txtDataNascimentoInfo">
                        </div>
                      </div>
                      <div class="d-flex pt-2">
                        <div class="col-4 pl-0">
                          <label data-error="wrong" data-success="right" for="txtCpfInfoCliente">CPF/CNPJ</label>
                          <input type="text" readonly class="input-default focus form-control" id="txtCpfInfoCliente" name="txtCpfInfoCliente">
                        </div>
                        <div class="col-4 pl-0">
                          <label data-error="wrong" data-success="right" for="txtInscricaoInfoCliente">Inscrição</label>
                          <input type="text" readonly class="input-default focus form-control" id="txtInscricaoInfoCliente" name="txtInscricaoInfoCliente">
                        </div>
                        <div class="col-1 pl-0">
                          <label data-error="wrong" data-success="right" for="txtDddInfoCliente">DDD</label>
                          <input type="number" readonly class="input-default focus form-control" id="txtDddInfoCliente" name="txtDddInfoCliente">
                        </div>
                        <div class="col-3 pl-0">
                          <label data-error="wrong" data-success="right" for="txtTelefoneInfoCliente">Telefone</label>
                          <input type="text" readonly class="input-default focus form-control" id="txtTelefoneInfoCliente" name="txtTelefoneInfoCliente">
                        </div>
                      </div>
                      <div class="d-flex pt-2">
                        <div class="col-12 pl-0">
                          <label data-error="wrong" data-sucess="right" for="txtEmailInfoCliente">E-mail</label>
                          <input type="text" readonly class="input-default focus form-control" id="txtEmailInfoCliente" name="txtEmailInfoCliente">
                        </div>
                      </div>
                      <div class="d-flex pt-2">
                        <div class="col-2 pl-0">
                          <label data-error="wrong" data-sucess="right" for="txtClassificacaoInfoCliente">Classificação</label>
                          <input type="text" readonly class="input-default focus form-control" id="txtClassificacaoInfoCliente" name="txtClassificacaoInfoCliente">
                        </div>
                        <div class="col-4 pl-0">
                          <label data-error="wrong" data-sucess="right" for="txtGrupoInfoCliente">Grupo</label>
                          <input type="text" readonly class="input-default focus form-control" id="txtGrupoInfoCliente" name="txtGrupoInfoCliente">
                        </div>
                        <div class="col-4 pl-0">
                          <label data-error="wrong" data-sucess="right" for="txtPerfilInfoCliente">Perfil</label>
                          <input type="text" readonly class="input-default focus form-control" id="txtPerfilInfoCliente" name="txtPerfilInfoCliente">
                        </div>
                        <div class="col-2 pl-0">
                          <label data-error="wrong" data-sucess="right" for="txtPercDescontoInfoCliente">% Desconto</label>
                          <input type="text" readonly class="input-default focus form-control text-right" id="txtPercDescontoInfoCliente" name="txtPercDescontoInfoCliente">
                        </div>
                      </div>
                      <div class="d-flex pt-2">
                        <div class="col-3 pl-0">
                          <label data-error="wrong" data-success="right" for="txtPaisInfoCliente">País</label>
                          <input type="text" readonly class="input-default focus form-control" id="txtPaisInfoCliente" name="txtPaisInfoCliente">
                        </div>
                        <div class="col-2 pl-0">
                          <label data-error="wrong" data-success="right" for="txtCepInfoCliente">CEP</label>
                          <input type="number" readonly class="input-default focus form-control" id="txtCepInfoCliente" name="txtCepInfoCliente">
                        </div>
                        <div class="col-6 pl-0">
                          <label data-error="wrong" data-success="right" for="txtMunicipioInfoCliente">Cidade</label>
                          <input type="text" readonly class="input-default focus form-control" id="txtMunicipioInfoCliente" name="txtMunicipioInfoCliente">
                        </div>
                        <div class="col-1 pl-0">
                          <label data-error="wrong" data-success="right" for="txtEstadoInfoCliente">UF</label>
                          <input type="text" readonly class="input-default focus form-control" id="txtEstadoInfoCliente" name="txtEstadoInfoCliente">
                        </div>
                      </div>
                      <div class="d-flex pt-2">
                        <div class="col-3 pl-0">
                          <label data-error="wrong" data-success="right" for="txtBairroInfoCliente">Bairro</label>
                          <input type="text" readonly class="input-default focus form-control" id="txtBairroInfoCliente" name="txtBairroInfoCliente">
                        </div>
                        <div class="col-9 pl-0">
                          <label data-error="wrong" data-success="right" for="txtEnderecoInfoCliente">Rua</label>
                          <input type="text" readonly class="input-default focus form-control" id="txtEnderecoInfoCliente" name="txtEnderecoInfoCliente">
                        </div>
                      </div>
                      <div class="d-flex pt-2">
                        <div class="col-2 pl-0">
                          <label data-error="wrong" data-success="right" for="txtNumeroInfoCliente">Número</label>
                          <input type="number" readonly class="input-default focus form-control" id="txtNumeroInfoCliente" name="txtNumeroInfoCliente">
                        </div>
                        <div class="col-10 pl-0">
                          <label data-error="wrong" data-success="right" for="txtComplementoInfoCliente">Complemento</label>
                          <input type="text" readonly class="input-default focus form-control" id="txtComplementoInfoCliente" name="txtComplementoInfoCliente">
                        </div>
                      </div>
                      <div class="d-flex pt-2">
                        <div class="col-12 pl-0">
                          <label data-error="wrong" data-success="right" for="txtObsInfoCliente">Observação</label>
                          <textarea style="resize: none; border-color: #a9a9a9;" type="text" readonly class="focus form-control" id="txtObsInfoCliente" name="txtObsInfoCliente"></textarea>
                        </div>
                      </div>
                    </div>
                  </div>
                </div>
              </div>
              <div class="modal-footer">
                <button type="button" data-dismiss="modal" class="btn btn-danger btn-sisp"> Fechar </button>
              </div>
            </div>
          </div>
        </div>

  <?php
  include_once('../../../modais.php');
  include_once('../../../modals/modal_receberabertos.html');
  ?>

  <!-- Control Sidebar -->
  <aside class="control-sidebar control-sidebar-dark">
    <!-- Control sidebar content goes here -->
  </aside>
  <!-- /.control-sidebar -->
  </div>

  <!-- jQuery -->
  <script src="../plugins/jquery/jquery.min.js?versao=3.2512.9.1"></script>
  <!-- jQuery UI 1.11.4 -->
  <script src="../plugins/jquery-ui/jquery-ui.min.js?versao=3.2512.9.1"></script>
  <script type="text/javascript" src="../dist/js/jquery.dataTables.js?versao=3.2512.9.1"></script>
  <script type="text/javascript" src="../dist/js/dataTables.bootstrap4.min.js?versao=3.2512.9.1"></script>
  <!-- SweetAlert2 -->
  <script src="../plugins/sweetalert2/sweetalert2.min.js?versao=3.2512.9.1"></script>
  <script src="../plugins/toastr/toastr.min.js?versao=3.2512.9.1"></script>

  <!-- Resolve conflict in jQuery UI tooltip with Bootstrap tooltip -->
  <script>
    $.widget.bridge('uibutton', $.ui.button);
  </script>

  <script src="../plugins/bootstrap/js/bootstrap.bundle.min.js?versao=3.2512.9.1"></script>

  <script src="../dist/js/adminlte.min.js?versao=3.2512.9.1"></script>

  <script src="../dist/js/requisicoes.js?versao=3.2512.9.1"></script>
  <script src="../dist/js/cliente/entidade.js?versao=3.2512.9.1"></script>
  <script src="../dist/js/loadingoverlay.min.js?versao=3.2512.9.1"></script>
  <script src="../dist/js/valida_cpf_cnpj.js?versao=3.2512.9.1"></script>
  <script src="../plugins/jquery-validation/jquery.validate.min.js?versao=3.2512.9.1"></script>
  <script src="../dist/js/sisplan.js?versao=3.2512.9.1"></script>
  <script src="../dist/js/popper.min.js?versao=3.2512.9.1"></script>
  <script src="../dist/js/tippy-bundle.umd.js?versao=3.2512.9.1"></script>
  <script src="../utils/funcoes.js?versao=3.2512.9.1"></script>
  <script src="../modals/modal_receberabertos.js"></script>
  <script src="../dist/js/jquery.maskMoney.min.js?versao=3.2512.9.1"></script>
  <script src="../utils/cookies.js?versao=3.2512.9.1"></script>
  <script src="../dist/js/driver.min.js?versao=3.2512.9.1"></script>
  <script src="../dist/js/dataTables.keyTable2.js?versao=3.2512.9.1"></script>
  <script type="text/javascript" src="../config.js?versao=3.2512.9.1"></script>
  <!-- Production -->
  <script type="text/javascript">
    $(document).ready(async function() {

      if (getCookie('usuario') == "") {
        window.location.href = `${BASE_URI}/login`;
        return;
      }

      let usuario = getCookie('usuario');
      let empresa = getCookie('empresa');

      ipInterno = IP_INTERNO;
      ipExterno = IP_EXTERNO;
      basicAuth = BASIC_AUTH;

      const temAcesso = await temAcessoTela('PEDIDO');
      if (!temAcesso.resultado) {
        toastrAcesso(temAcesso, BASE_URI);
        return;
      }

      const permissaoUsuarioLogado = await permissaoAcessos("PEDIDO");

      if (permissaoUsuarioLogado.INCLUI == 'N') {
        await criaMensagemErro("Sem permissão para incluir!", () => {
          window.location.href = `${BASE_URI}/pedido`
        });
        return;
      }

      sArquivo = `${BASE_URI}/pages/pedido/pedido/pedido.js?versao=3.2512.9.1`;
      insereJavaScriptPagina(sArquivo);

      const nomeTela = ('<?php echo basename(__FILE__) ?>').replace('.php', '');
      habilitaCamposObrigatoriosTela(nomeTela);

    });
  </script>
</body>

</html>