<!DOCTYPE html>
<html>

<head>
  <meta charset="utf-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <title>Sisplan Web | Fluxo de Aprovação</title>
  <!-- Tell the browser to be responsive to screen width -->
  <meta name="viewport" content="width=device-width, initial-scale=1">
  <!-- Theme style -->
  <link rel="stylesheet" href="dist/css/adminlte.min.css?versao=3.2512.4.1">
  <!-- Font Awesome -->
  <link rel="stylesheet" href="plugins/fontawesome-free/css/all.min.css?versao=3.2512.4.1">
  <!--e1Google Font: Source Sans Pro -->
  <link href='https://fonts.googleapis.com/css?family=Roboto:400,300,500,600,700,400italic' rel='stylesheet' type='text/css'>
  <link rel="stylesheet" href="../plugins/fontawesome-free/css/all.min.css?versao=3.2512.4.1">
  <link rel="stylesheet" href="../dist/css/adminlte.min.css?versao=3.2512.4.1">
  <link rel="stylesheet" href="../dist/css/custom.css?versao=3.2512.4.1">
  <link rel="stylesheet" href="../dist/css/sisplan.css?versao=3.2512.4.1">
  <link rel="stylesheet" type="text/css" href="../plugins/datatables-keytable/css/keyTable.bootstrap4.min.css?versao=3.2512.4.1">
  <link rel="stylesheet" href="../plugins/toastr/toastr.min.css?versao=3.2512.4.1">
  <link rel="stylesheet" href="../plugins/fontawesome-free/css/all.min.css?versao=3.2512.4.1">
  <link rel="shortcut icon" href="../favicon.ico">
  <link rel="stylesheet" type="text/css" href="../dist/css/driver.min.css?versao=3.2512.4.1" />
  <link rel="stylesheet" href="../dist/css/jquery-ui.css?versao=3.2512.4.1">
  <link href="https://fonts.googleapis.com/css?family=Source+Sans+Pro:300,400,400i,700" rel="stylesheet">
  <link rel="stylesheet" href="../plugins/icheck-bootstrap/icheck-bootstrap.min.css?versao=3.2512.4.1">
  <link rel="stylesheet" href="../dist/css/cadastro.css?versao=3.2512.4.1">
  <link rel="stylesheet" href="https://cdn.datatables.net/select/1.6.0/css/select.dataTables.min.css">
  <link rel="stylesheet" href="../dist/css/PesquisaVariosSelect2.css?versao=3.2512.4.1">
  <link rel="stylesheet" href="../plugins/select2/css/select2.min.css?versao=3.2512.4.1">
  <link rel="stylesheet" href="../plugins/select2-bootstrap4-theme/select2-bootstrap4.min.css?versao=3.2512.4.1">
  <link rel="stylesheet" type="text/css" href="../dist/css/sisplan.newColorsButtons.css?versao=3.2512.4.1" />

  <style>
    .table.dataTable tbody td,
    .table.dataTable thead {
      white-space: nowrap;
      text-overflow: ellipsis;
      overflow: hidden;
    }

    .content-wrapper {
      margin-left: 0px !important;
    }

    .main-header,
    .main-sidebar {
      display: none;
    }

    .table.dataTable tr td,
    .table.dataTable tr td,
    .table.dataTable th {
      padding: 4px 12px;
    }

    .pagination {
      justify-content: end !important;
    }

    .dataTables_wrapper .row {
      margin-right: 0 !important;
      margin-left: 0 !important;
    }

    .placeholder-lowercase::placeholder {
      text-transform: none;
    }

    #progressbar {
      box-sizing: border-box;
    }

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

    .main-container {
      display: block;
      text-align: center;
      position: relative;
      margin-top: 20px;
      unicode-bidi: isolate;


      fieldset:not(:first-of-type) {
        display: none;
      }
    }

    .step-container {
      text-align: left;
      padding: 20px 10px 30px 10px;
      width: 100%;
      margin-bottom: 20px;
      position: relative;
      color: var(--font-color);
      z-index: 2;
      background: var(--card-color);
      border-radius: 8px;
    }

    .card {
      box-shadow: none !important;
      border-radius: 0 !important;
      margin-bottom: 0 !important;
    }

    .card-header {
      box-shadow: 0px 1px rgb(0 0 0 / 20%) !important;
    }

    .card-header {
      border-bottom: 1px dashed #ddd;
      box-shadow: none !important;
    }

    .fa-angle-right,
    .fa-angle-down {
      color: #343a40;
    }

    .dataTables_wrapper .col-sm-12 {
      padding-left: 0 !important;
      padding-right: 0 !important;
    }

    .border-field .textoBorda {
      font-size: 1.1em !important;
      text-align: left !important;
      width: auto;
      padding: 10px;
      border-bottom: none;
    }

    .border-field {
      border: 1px solid var(--font-color) !important;
      padding: 1rem !important;
      -webkit-box-shadow: 0px 0px 0px 0px #000;
      box-shadow: 0px 0px 0px 0px #000;
      border-radius: 3px !important;
    }

    .separator {
      border-left: 1px solid #dee2e6;
    }


    #progressbar {
      box-sizing: border-box;
    }

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

  .border-Field .textoBorda {
    font-size: 1.45em !important;
    text-align: left !important;
    width: auto;
    padding: 0 10px;
    border-bottom: none;
  }

  .border-Field {
    border: 1.0px solid var(--font-color) !important;
    padding: 0 1.0em 1.0em 1.0em !important;
    -webkit-box-shadow: 0px 0px 0px 0px #000;
    box-shadow: 0px 0px 0px 0px #000;
    padding-bottom: 0px !important;
    border-radius: 3px !important;
    margin-bottom: 1em !important;
  }
  </style>

</head>

<body class="hold-transition sidebar-mini layout-fixed">
  <main class="wrapper">
    <?php
    include_once('../../../menu.php');
    include_once('../../../modals/modal_cliente.php');
    ?>
    <div class="wrapper">


      <div id="myModal" class="modal" tabindex="-1" role="dialog">
        <div class="modal-dialog" role="document">
          <div class="modal-content">
            <div class="modal-header">
              <h5 id="myModalLabel" class="modal-title"></h5>
              <button type="button" class="close" data-dismiss="modal" aria-label="Close">
                <span aria-hidden="true">&times;</span>
              </button>
            </div>
            <div class="modal-body">
              <p id="myModalText"></p>
            </div>
            <div class="modal-footer">
              <button id="btnYes" type="button" class="btn btn-primary">Sim</button>
              <button id="btnNo" type="button" class="btn btn-secondary" data-dismiss="modal">Não</button>
            </div>
          </div>
        </div>
      </div>

      <div class="content-wrapper">
        <section class="content">
          <div class="content-header p-0">
            <div class="container-fluid">
              <div class="row mb-2">
                <div class="col-sm-6 flex">
                </div>
                <div class="col-sm-6">
                </div>
              </div>
            </div>
            <div class="row mt-0">
              <div class="col-12 p-0 mt-3 mb-2">
                <div class="card p-0 mb-0">
                  <div class="card-header d-flex p-0 ml-4 align-items-start" style="border: none!important;box-shadow:none!important; gap: 10px;">
                    <div class="flex flex-column">
                      <div class="flex my-2">
                        <h2 class="mb-0 text-center flex align-items-center">
                          <span class="ml-2">Orçamento Tingimento</span>
                          <button type="button" class="btn btn-info btn-sm ml-2" title="Tutorial" style="color: white;" id="tutorial">
                            <i class="fas fa-question-circle"></i>
                          </button>
                        </h2>
                      </div>
                    </div>
                  </div>
                </div>
                <div class="row mx-0 px-0">
                  <div class="col-12 mx-0 px-4">
                    <div id="msform">
                      <ul id="progressbar">
                        <li class="active" id="account"><strong>Geral</strong></li>
                        <li id="payment"><strong>Itens</strong></li>
                        <li id="confirm"><strong>Financeiro</strong></li>
                      </ul>
                      <p>Preencha os dados e clique em avançar até a conclusão do orçamento</p>
                      <fieldset id="fieldset1" class="fieldset">
                        <div class="step-container">
                          <div class="form-row col-12">
                            <form class="flex flex-wrap" id="form">
                              <div class="col-xl-1 col-6 form-group">
                                <label data-error="wrong" class="labelGeral" data-success="right" for="selectEmpresa">Empresa:</label>
                                <div class="input-group">
                                  <select class="input-default focus form-control" data-dropdown-css-class="select2-danger" id="selectEmpresa" aria-describedby="tipoError" class="custom-select focus">
                                    <option value="1">1</option>
                                    <option value="2">2</option>
                                  </select>
                                </div>
                              </div>
                              <div class="col-xl-3 col-6 form-group">
                                <label data-error="wrong" class="labelGeral" data-success="right" for="txtCliente">Cliente:</label>
                                <div class="input-group">
                                  <input type="text" class="input-default focus form-control" id="txtCliente" name="cliente" placeholder="Cliente">
                                  <div class="input-group-append">
                                    <button class="btn bg-danger" id="btnCliente" name="btnCliente" data-button="absolute" type="button"><i class="m-0 p-0 fas fa-search"></i></button>
                                    <button class="btn bg-danger" id="btnLimpaCliente" name="btnLimpaCliente" type="button"><i class="m-0 p-0 fas fa-trash"></i></button>
                                    <button class="btn bg-danger" id="btnAdicionarCliente" name="btnAdicionarCliente" type="button"><i class="m-0 p-0 fas fa-plus"></i></button>
                                  </div>
                                </div>
                              </div>
                              <div class="col-xl-2 col-6 form-group">
                                <label data-error="wrong" class="labelGeral" data-success="right" for="txtRepresentante">Representante:</label>
                                <input type="text" class="input-default focus form-control" id="txtRepresentante" name="representante" placeholder="Representante" disabled>
                              </div>
                              <div class="col-xl-3 col-6 form-group">
                                <label data-error="wrong" class="labelGeral" data-success="right" for="txtEmail">E-mail:</label>
                                <input type="text" class="input-default focus form-control" id="txtEmail" name="email" placeholder="E-mail">
                              </div>
                              <div class="col-xl-3 col-6 form-group">
                                <label data-error="wrong" class="labelGeral" data-success="right" for="txtTipo">Tipo:</label>
                                <div class="input-group">
                                  <input type="text" class="input-default focus form-control" id="txtTipo" name="tipo" placeholder="Tipo">
                                  <div class="input-group-append">
                                    <button class="btn bg-danger" id="btnTipo" name="btnTipo" data-button="absolute" type="button"><i class="m-0 p-0 fas fa-search"></i></button>
                                    <button class="btn bg-danger" id="btnLimpaTipo" name="btnLimpaTipo" type="button"><i class="m-0 p-0 fas fa-trash"></i></button>
                                  </div>
                                </div>
                              </div>
                              <div class="col-xl-3 col-6 form-group">
                                <label data-error="wrong" class="labelGeral" data-success="right" for="txtServicos">Serviços:</label>
                                <div class="input-group">
                                  <select class="js-example-programmatic js-states form-control" id="txtServicos" name="servicos" multiple="multiple" disabled>
                                  </select>
                                  <div class="input-group-append">
                                    <button class="btn bg-danger" id="btnServicos" name="btnServicos" data-button="absolute" type="button" disabled>
                                      <i class="m-0 p-0 fas fa-search"></i>
                                    </button>
                                    <button class="btn bg-danger" id="btnLimpaServicos" name="btnLimpaServicos" type="button" disabled>
                                      <i class="m-0 p-0 fas fa-trash"></i>
                                    </button>
                                  </div>
                                </div>
                              </div>
                              <div class="col-xl-3 col-6 form-group">
                                <label data-error="wrong" class="labelGeral" data-success="right" for="txtComposicao">Composição:</label>
                                <div class="input-group">
                                  <input type="text" class="input-default focus form-control" id="txtComposicao" name="composicao" placeholder="Composição">
                                  <div class="input-group-append">
                                    <button class="btn bg-danger" id="btnComposicao" name="btnComposicao" data-button="absolute" type="button"><i class="m-0 p-0 fas fa-search"></i></button>
                                    <button class="btn bg-danger" id="btnLimpaComposicao" name="btnLimpaComposicao" type="button"><i class="m-0 p-0 fas fa-trash"></i></button>
                                  </div>
                                </div>
                              </div>
                              <div class="col-xl-3 col-6 form-group">
                                <label data-error="wrong" class="labelGeral" data-success="right" for="txtSolicitante">Solicitante:</label>
                                <div class="input-group">
                                  <input type="text" class="input-default focus form-control" id="txtSolicitante" name="solicitante" placeholder="Solicitante" disabled>
                                  <div class="input-group-append">
                                    <button class="btn bg-danger" id="btnSolicitante" name="btnSolicitante" data-button="absolute" type="button" disabled><i class="m-0 p-0 fas fa-search"></i></button>
                                    <button class="btn bg-danger" id="btnLimpaSolicitante" name="btnLimpaSolicitante" type="button" disabled><i class="m-0 p-0 fas fa-trash"></i></button>
                                    <button class="btn bg-danger" id="btnAdicionarSolicitante" name="btnAdicionarSolicitante" type="button" disabled><i class="m-0 p-0 fas fa-plus"></i></button>
                                  </div>
                                </div>
                              </div>
                              <div class="col-xl-3 col-6 form-group">
                                <label data-error="wrong" class="labelGeral" data-success="right" for="txtDescricao">Descrição:</label>
                                <input type="text" class="input-default focus form-control" id="txtDescricao" name="descricao" placeholder="Descrição">
                              </div>
                              <div class="col-xl-1 col-6 form-group">
                                <label data-error="wrong" class="labelGeral" data-success="right" for="txtEmissao">Emissão:</label>
                                <input type="date" class="input-default focus form-control" value="<?php echo date('Y-m-d'); ?>" id="txtEmissao" name="emissao" disabled>
                              </div>
                              <div class="col-xl-1 col-6 form-group">
                                <label data-error="wrong" class="labelGeral" data-success="right" for="txtValidade">Validade:</label>
                                <input type="date" class="input-default focus form-control" value="<?php echo date('Y-m-d', strtotime('+30 days')); ?>" id="txtValidade" name="validade" disabled>
                              </div>
                              <div class="col-xl-2 col-6 form-group">
                                <label data-error="wrong" class="labelGeral" data-success="right" for="txtPrazoPagamento">Prazo de Pagamento:</label>
                                <input type="text" class="input-default focus form-control" id="txtPrazoPagamento" name="PrazoPagamento" placeholder="00" disabled>
                              </div>
                              <div class="col-xl-2 col-6 form-group">
                                <label data-error="wrong" class="labelGeral" data-success="right" for="selectSituacao">Situação:</label>
                                <div class="input-group">
                                  <select class="input-default focus form-control" data-dropdown-css-class="select2-danger" id="selectSituacao" aria-describedby="tipoError" class="custom-select focus">
                                    <option value="A">Aberto</option>
                                    <option value="F">Fechado</option>
                                    <option value="S">Solicitado Amostra</option>
                                  </select>
                                </div>
                              </div>
                              <div class="col-6 form-group">
                                <label data-error="wrong" class="labelGeral" data-success="right" for="txtObservacao">Observação:</label>
                                <input type="text" class="input-default focus form-control" id="txtObservacao" name="observacao" placeholder="Observação">
                              </div>
                            </form>
                          </div>
                          <div class="form-row col-12" style="gap: 8px; text-align: end;">
                            <div class="col-12">
                              <button type="button" class="btn btn-secondary btn-sisp" id="btnVoltar1" style="max-height: 38px">Voltar</button>
                              <button type="submit" form="form" class="btn btn-danger btn-sisp" id="btnAvancar" style="max-height: 38px">Avançar</button>
                            </div>
                          </div>
                        </div>
                      </fieldset>
                      <fieldset id="fieldset2" class="fieldset">
                        <div class="step-container">
                          <div class="form-row col-12">
                            <form class="flex flex-wrap w-100" id="form2">
                              <div class="col-12">
                                <button class="btn btn-danger btn-sisp" id="btnAdicionarPantone"></span> Adicionar item</button>
                              </div>
                              <div class="col-12 mt-2">
                                <h5>Pantones</h5>
                                <div class="table-responsive">
                                  <table id="tabelaPantones" class="table table-select table-hover" width="100%">
                                    <thead>
                                    </thead>
                                    <tbody>
                                    </tbody>
                                  </table>
                                </div>
                              </div>
                              <div class="col-12 mt-2">
                                <h5>Serviços</h5>
                                <div class="table-responsive">
                                  <table id="tabelaServicos" class="table table-select table-hover" width="100%">
                                    <thead>
                                    </thead>
                                    <tbody>
                                    </tbody>
                                  </table>
                                </div>
                              </div>
                            </form>
                          </div>
                          <div class="form-row col-12 mt-3" style="gap: 8px; text-align: end;">
                            <div class="col-12">
                              <button type="button" class="btn btn-secondary btn-sisp" id="btnVoltar2" style="max-height: 38px">Voltar</button>
                              <button type="submit" form="form2" class="btn btn-danger btn-sisp" id="btnAvancar2" style="max-height: 38px">Avançar</button>
                            </div>
                          </div>
                        </div>
                      </fieldset>
                      <fieldset id="fieldset3" class="fieldset">
                        <div class="step-container">
                          <div class="form-row col-12 mt-3" style="gap: 8px; text-align: end;">
                            <div class="col-12 mt-2">
                              <h5 class="flex justify-content-start">Financeiro</h5>
                              <div class="table-responsive">
                                <table id="tabelaFinanceiro" class="table table-select table-hover" width="100%">
                                  <thead>
                                  </thead>
                                  <tbody>
                                  </tbody>
                                </table>
                              </div>
                            </div>
                            <div class="col-12">
                              <button type="button" class="btn btn-secondary btn-sisp" id="btnVoltar3" style="max-height: 38px">Voltar</button>
                              <button type="submit" form="form3" class="btn btn-danger btn-sisp" id="btnSalvar" style="max-height: 38px">Gravar</button>
                            </div>
                          </div>
                        </div>
                      </fieldset>
                    </div>
                  </div>
                </div>
              </div>
            </div>
          </div>
        </section>
      </div>
    </div>
  </main>

  <div class="modal fade" data-backdrop="static" id="modalAdicionarPantone" tabindex="-1" role="dialog" aria-labelledby="modalAdicionarPantone" aria-hidden="true">
    <div class="modal-dialog modal-md">
      <div class="modal-content">
        <div class="modal-header">
          <h4 class="modal-title">Adicionar Pantone</h4>
          <button type="button" class="close" data-dismiss="modal" aria-label="Close">
            <span aria-hidden="true">&times;</span>
          </button>
        </div>
        <div class="modal-body pb-0">
          <form id="formAdicionar">
            <div class="form-row">
              <input id="txtIdPantoneAdicionar" class="d-none">
              <input id="txtCustoPantoneAdicionar" class="d-none">
              <div class="form-group col-12">
                <label data-error="wrong" class="labelGeral" data-success="right" for="txtPantoneAdicionar">Pantone:</label>
                <div class="input-group">
                  <input type="text" class="input-default focus form-control" id="txtPantoneAdicionar" name="pantone" placeholder="Pantone">
                  <div class="input-group-append">
                    <button class="btn bg-danger" id="btnPantoneAdicionar" name="btnPantoneAdicionar" data-button="absolute" type="button"><i class="m-0 p-0 fas fa-search"></i></button>
                    <button class="btn bg-danger" id="btnLimpaPantoneAdicionar" name="btnLimpaPantoneAdicionar" type="button"><i class="m-0 p-0 fas fa-trash"></i></button>
                  </div>
                </div>
              </div>
              <div class="form-group col-12">
                <label data-error="wrong" class="labelGeral" data-success="right" for="txtCodigoClienteAdicionar">Código Cliente:</label>
                <input type="text" class="input-default focus form-control" id="txtCodigoClienteAdicionar" name="codigoCliente" placeholder="Código">
              </div>
              <div class="col-6 form-group">
                <label data-error="wrong" class="labelGeral" data-success="right" for="selectTipoAdicionar">Tipo:</label>
                <div class="input-group">
                  <select class="input-default focus form-control" data-dropdown-css-class="select2-danger" id="selectTipoAdicionar" aria-describedby="tipoError" class="custom-select focus">
                    <option value="TPG">TPG</option>
                    <option value="TCX">TCX</option>
                  </select>
                </div>
              </div>
              <div class="col-6 form-group">
                <label data-error="wrong" class="labelGeral" data-success="right" for="selectAmostraAdicionar">Amostra:</label>
                <div class="input-group">
                  <select class="input-default focus form-control" data-dropdown-css-class="select2-danger" id="selectAmostraAdicionar" aria-describedby="tipoError" class="custom-select focus">
                    <option value="0">Não</option>
                    <option value="1">Sim</option>
                  </select>
                </div>
              </div>
            </div>
          </form>
        </div>
        <div class="modal-footer flex justify-content-start">
          <button type="submit" form="formAdicionar" class="btn btnVerde btn-sisp" id="btnConfirmarAdicionar"><span class="fas fa-check"></span>Confirmar</button>
          <button class="btn btn-danger btn-sisp ml-auto" class="close" data-dismiss="modal" aria-label="Close">Fechar</button>
        </div>
      </div>
    </div>
  </div>

  <div class="modal fade" data-backdrop="static" id="modalAdicionarSolicitante" tabindex="-1" role="dialog" aria-labelledby="modalAdicionarSolicitante" aria-hidden="true">
    <div class="modal-dialog modal-xl">
      <div class="modal-content">
        <div class="modal-header">
          <h4 class="modal-title">Adicionar Solicitante</h4>
          <button type="button" class="close" data-dismiss="modal" aria-label="Close">
            <span aria-hidden="true">&times;</span>
          </button>
        </div>
        <div class="modal-body pb-0">
          <form id="formAdicionarSolicitante">
            <div class="flex flex-wrap w-100">
              <div class="col-12 form-group" id="tiposSolicitante">
                <fieldset class="form border-Field mb-0 pb-0">
                  <legend class="textoBorda mb-0 pb-0 ml-2">Opções:</legend>
                  <div class="form-row ml-2 mb-2">
                    <div class="icheck-primary">
                      <input type="radio" class="form-check-input" checked name="tipocontato" id="cbPessoaFisicaSolicitante">
                      <label class="form-check-label pr-2" for="cbPessoaFisicaSolicitante">Cliente</label>
                    </div>
                    <div class="icheck-primary">
                      <input type="radio" class="form-check-input" name="tipocontato" id="cbPessoaJuridicaSolicitante">
                      <label class="form-check-label pr-5" for="cbPessoaJuridicaSolicitante">Fornecedor</label>
                    </div>
                    <div class="icheck-primary">
                      <input type="checkbox" class="form-check-input" checked name="cbMaladireta" id="cbMaladiretaSolicitante">
                      <label class="form-check-label pr-2" for="cbMaladiretaSolicitante">Mala Direta</label>
                    </div>
                    <div class="icheck-primary">
                      <input type="checkbox" class="form-check-input" name="cbWhatsApp" id="cbWhatsAppSolicitante">
                      <label class="form-check-label pr-2" for="cbWhatsAppSolicitante">Autoriza WhatsApp</label>
                    </div>
                    <div class="icheck-primary">
                      <input type="checkbox" class="form-check-input" name="cbEmail" id="cbEmailSolicitante">
                      <label class="form-check-label pr-2" for="cbEmailSolicitante">Autoriza E-mail</label>
                    </div>
                  </div>
                </fieldset>
              </div>
              <div class="col-xl-2 col-12 form-group">
                <label data-error="wrong" class="labelGeral" data-success="right" for="txtNumeroContatoSolicitante">Número:
                </label>
                <input type="text" class="input-default focus form-control" id="txtNumeroContatoSolicitante"
                  name="txtNumeroContato" class="form-control" disabled placeholder="Gerado Automaticamente"></input>
              </div>
              <div class="col-xl-6 col-12 form-group">
                <label data-error="wrong" class="labelGeral" data-success="right" for="txtNomeContatoSolicitante">Nome: * </label>
                <input type="text" class="input-default focus form-control" id="txtNomeContatoSolicitante" name="nome"
                  placeholder="Nome" class="form-control"></input>
              </div>
              <div class="col-xl-4 col-12 form-group">
                <label data-error="wrong" class="labelGeral" data-success="right" for="txtCPFCNPJContatoSolicitante">CPF/CPNJ:</label>
                <input type="text" class="input-default focus form-control mt-0" id="txtCPFCNPJContatoSolicitante"
                  name="txtCPFCNPJContato" placeholder="CPF/CNPJ" class="form-control"></input>
              </div>
              <div class="col-xl-3 col-12 form-group">
                <label data-error="wrong" class="labelGeral" data-success="right" for="txtCelularContatoSolicitante">Celular:
                </label>
                <div class="relative">
                  <div class="input-group">
                    <input type="text" class="input-default focus form-control" id="txtCelularContatoSolicitante"
                      name="txtCelularContato" placeholder="Celular" class="form-control" />
                    <div class="input-group-append" style="position: relative;">
                      <span class="fab fa-whatsapp text-white"
                        style="font-size: 27px; position: absolute; left: 11px; top: 48%; transform: translateY(-50%); z-index: 2; pointer-events: none;"></span>
                      <input type="button" class="btn" title="Formata o número do celular. Ex.: 5547988888888."
                        style="background-color:#25d366; height: 100%; padding-left: 30px; z-index: 1;"
                        id="btnFormataNumeroSolicitante">
                    </div>
                  </div>
                </div>
              </div>
              <div class="col-xl-3 col-12 form-group">
                <label data-error="wrong" class="labelGeral" data-success="right" for="txtTelefoneContato">Telefone:
                </label>
                <input type="text" class="input-default focus form-control" id="txtTelefoneContatoSolicitante"
                  name="txtTelefoneContato" placeholder="Telefone" class="form-control"></input>
              </div>
              <div class="col-xl-6 col-12 form-group">
                <label autocomplete="off" class="labelGeral" id="lblEmailContatoSolicitante">E-mail:</label>
                <input type="text" class="input-default focus form-control" id="txtEmailContatoSolicitante"
                  placeholder="exemplo@exemplo.com" maxlength="50" autocomplete="off"></input>
              </div>
              <div class="col-xl-8 col-12 form-group">
                <label data-error="wrong" class="labelGeral" data-success="right" for="txtObsContatoEntidadeSolicitante">Observação:
                </label>
                <input type="text" class="input-default focus form-control" id="txtObsContatoEntidadeSolicitante" name="txtObsContatoEntidade" class="form-control" placeholder="Observação"></input>
              </div>
              <div class="col-xl-4 col-12 form-group">
                <label data-error="wrong" class="labelGeral" data-success="right" for="selecTipoContatoEntidadeSolicitante">Tipo:
                </label>
                <select class="input-default focus custom-select" id="selectModificacao2Solicitante">
                  <option selected value="0">Agendamento</option>
                  <option value="1">Comercial</option>
                  <option value="2">Compras</option>
                  <option value="3">Estilista</option>
                  <option value="4">Financeiro</option>
                  <option value="5">Laboratório</option>
                  <option value="6">NFe</option>
                  <option value="7">Orçamento</option>
                  <option value="8">Ord.Produção</option>
                  <option value="9">Pagar</option>
                  <option value="10">Receber</option>
                  <option value="11">SAC</option>
                  <option value="12">Serviço</option>
                  <option value="13">Sócio/Gerente</option>
                  <option value="14">Vendas</option>
                  <option value="15">Qualidade</option>
                  <option value="16">Marketing</option>
                  <option value="17">Ref.Comerciais</option>
                  <option value="18">CTe</option>
                  <option value="19">Representante</option>
                  <option value="20">Facção</option>
                  <option value="21">RH</option>
                  <option value="22">Tecelagem</option>
                </select>
              </div>
              <div class="col-12 form-group">
                <label ata-error="wrong" class="labelGeral" data-success="right" for="txtDoContatoSolicitante">Texto do Contato:
                </label>
                <textarea class="form-control" id="txtDoContatoSolicitante" style="resize: none; height: 120px;" placeholder=""
                  row="20"></textarea>
              </div>
            </div>
          </form>
        </div>
        <div class="modal-footer flex justify-content-start mx-2">
          <button type="submit" form="formAdicionarSolicitante" class="btn btnVerde btn-sisp" id="btnConfirmarAdicionarSolicitante"><span class="fas fa-check"></span>Confirmar</button>
          <button class="btn btn-danger btn-sisp ml-auto" class="close" data-dismiss="modal" aria-label="Close">Fechar</button>
        </div>
      </div>
    </div>
  </div>

  <aside class="control-sidebar control-sidebar-dark">
  </aside>
  <script src="../plugins/jquery/jquery.min.js?versao=3.2512.4.1"></script>
  <script src="../plugins/jquery-ui/jquery-ui.min.js?versao=3.2512.4.1"></script>
  <script type="text/javascript" src="../dist/js/jquery.dataTables.js?versao=3.2512.4.1"></script>
  <script type="text/javascript" src="../dist/js/dataTables.bootstrap4.min.js?versao=3.2512.4.1"></script>
  <script src="../plugins/sweetalert2/sweetalert2.min.js?versao=3.2512.4.1"></script>
  <script src="../plugins/toastr/toastr.min.js?versao=3.2512.4.1"></script>
  <script>
    $.widget.bridge('uibutton', $.ui.button);
  </script>
  <script src="../plugins/bootstrap/js/bootstrap.bundle.min.js?versao=3.2512.4.1"></script>
  <script src="../dist/js/adminlte.min.js?versao=3.2512.4.1"></script>
  <script src="../dist/js/requisicoes.js?versao=3.2512.4.1"></script>
  <script src="../dist/js/sisplan.js?versao=3.2512.4.1"></script>
  <script src="../dist/js/loadingoverlay.min.js?versao=3.2512.4.1"></script>
  <script src="../plugins/jquery-validation/jquery.validate.min.js?versao=3.2512.4.1"></script>
  <script src="../dist/js/dataTables.keyTable.js?versao=3.2512.4.1"></script>
  <script src="../utils/funcoes.js?versao=3.2512.4.1"></script>
  <script src="../utils/cookies.js?versao=3.2512.4.1"></script>
  <script src="../dist/js/jquery.maskMoney.min.js?versao=3.2512.4.1"></script>
  <script src="../dist/js/jquery.mask.min.js?versao=3.2512.4.1"></script>
  <script src="../dist/js/driver.min.js?versao=3.2512.4.1"></script>
  <script src="../dist/js/valida_cpf_cnpj.js?versao=3.2512.4.1"></script>
  <script type="text/javascript" src="../config.js?versao=3.2512.4.1"></script>
  <script src="https://cdn.datatables.net/select/1.6.0/js/dataTables.select.min.js"></script>
  <script src="https://cdnjs.cloudflare.com/ajax/libs/jquery.mask/1.14.16/jquery.mask.min.js"></script>
  <script src="../plugins/select2/js/select2.full.min.js?versao=3.2512.4.1"></script>
  <script src="../pages/orcamento_tingimento/cadastro_orcamento_tingimento/modal_contato.js"></script>
  <script>
    $(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('ORCAMENTO_TINGIMENTO');
      if (!temAcesso.resultado) {
        toastrAcesso(temAcesso, BASE_URI);
        return;
      }

      sArquivo = `${BASE_URI}/pages/orcamento_tingimento/cadastro_orcamento_tingimento/orcamento_tingimento.js?versao=3.2512.4.1`;
      const nomeTela = ('<?php echo basename(__FILE__) ?>').replace('.php', '');

      await insereJavaScriptPagina(sArquivo);

      habilitaCamposObrigatoriosTela(nomeTela);
    });
  </script>

</body>

</html>