<!DOCTYPE html>
<html>

<head>
  <meta charset="utf-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <title>Sisplan Web | Serviço</title>
  <!-- Tell the browser to be responsive to screen width -->
  <meta name="viewport" content="width=device-width, initial-scale=1">
  <!-- Font Awesome -->
  <link rel="stylesheet" href="../plugins/fontawesome-free/css/all.min.css?versao=3.2512.9.1">

  <!-- Theme style -->
  <link rel="stylesheet" href="../dist/css/adminlte.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">
  <!-- Toastr -->
  <link rel="stylesheet" href="../plugins/toastr/toastr.min.css?versao=3.2512.9.1">
  <link rel="stylesheet" href="../plugins/fontawesome-free/css/all.min.css?versao=3.2512.9.1">
  <link rel="shortcut icon" href="../favicon.ico">
  <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="../plugins/icheck-bootstrap/icheck-bootstrap.min.css?versao=3.2512.9.1">
  <link rel="stylesheet" href="../plugins/select2/css/select2.min.css?versao=3.2512.9.1">
  <link rel="stylesheet" href="../plugins/select2-bootstrap4-theme/select2-bootstrap4.min.css?versao=3.2512.9.1">

  <!-- Google Font: Source Sans Pro -->
  <link href="https://fonts.googleapis.com/css?family=Source+Sans+Pro:300,400,400i,700" rel="stylesheet">

  <style>
    .form-control:disabled,
    .form-control[readonly] {
      background-color: #f7f7f7;
      opacity: 1;
    }

    #msform {
      text-align: start;
      position: relative;
    }

    .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.card-header {
      border-bottom: 1px dashed #ddd;
      box-shadow: none !important;
    }

    .card-body {
      padding-left: 1.25rem !important;
      padding-top: 0px;
      padding-bottom: 0px;
      padding-right: 1.25rem !important;
    }

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

    .header-content-page .title-page,
    .title-content-page .title,
    .title-page {
      font-size: 20px;
      line-height: normal;
      font-weight: 500;
      color: var(--font-color);
      margin: 0;
      font-family: Roboto, Arial, sans-serif;
    }

    #btnRepresentante {
      background-color: #3ca2d3 !important;
    }

    #btnTransportadora {
      background-color: #5F9EA0 !important;
    }

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

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

    .modalFooterFixo {
      position: fixed;
      bottom: 0;
      left: 0;
      right: 0;
      background-color: #171f21;
      z-index: 999999;
      padding-top: 0;
      padding-bottom: 0;
      margin-top: 20%;
    }

    .content-header {
      margin-bottom: 1% !important;
    }

    .icheck-primary {
      padding-bottom: 0 !important;
    }
  </style>


</head>

<body class="hold-transition sidebar-mini layout-fixed">
  <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">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">Modal body text goes here.</p>
          </div>
          <div class="modal-footer">
            <button id="btnYes" type="button" class="btn btn-primary btn-sisp">Sim</button>
            <button id="btnNo" type="button" class="btn btn-secondary btn-sisp" data-dismiss="modal">Não</button>
          </div>
        </div>
      </div>
    </div>

    <div class="modal fade" id="modalRateio" tabindex="-1" role="dialog" aria-labelledby="modalRateio" aria-hidden="true">
      <div class="modal-dialog modal-xl">
        <div class="modal-content">
          <div class="modal-header">
            <h4 id="modalCondicao-titulo" class="modal-title">Rateio</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-sm-12">
                <div class="row">
                  <div class="col-sm-8">
                    <label style="margin-bottom: .1rem!important;" data-error="wrong" data-success="right" for="CondPagto">Condição de pagamento</label>
                    <div class="input-group">

                      <input type="text" class="input-default focus form-control" id="txtCondPagto" name="txtCondPagto" class="form-control" placeholder="Condição de Pagamento">

                      <div class="input-group-append">
                        <button class="btn bg-danger" id="btn-CondPagto" 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-CondPagto" type="button"><i class="m-0 p-0 fas fa-trash"></i></button>
                      </div>
                    </div>
                  </div>

                  <div class="col-sm-4">
                    <label style="margin-bottom: .1rem!important;" data-error="wrong" data-success="right" for="txtTaxaAdm">Taxa Adm.</label>
                    <div class="input-group">
                      <input type="text" class="input-default focus form-control" id="txtTaxaAdm" name="txtTaxaAdm" class="form-control" value="0.00" placeholder="% Taxa">
                    </div>
                  </div>

                  <div class="col-sm-12" style="margin-top:5px">
                    <button id="btnAdicionar" type="button" class="btn btn-primary btn-block">
                      Adicionar
                    </button>
                  </div>
                </div>
              </div>
            </div>
          </div>
        </div>
      </div>
    </div>
  </div>
  <div class="content-wrapper">
    <div class="content-header">
      <div class="container-fluid">
        <div class="row mb-2">
          <div class="col-sm-6 col-12">
          </div>
          <div class="col-sm-6 col-12">
            <!-- <ol class="breadcrumb float-sm-right">
              
              <li class="breadcrumb-item"><a href="../cadservico">Serviço</a></li>
              <li class="breadcrumb-item active">Cadastro</li>
            </ol> -->
          </div>
        </div>
      </div>
    </div>

    <section class="content">
      <div class="container-fluid">
        <div class="row">
          <div class="col-12">
            <div class="card">
              <div class="card-header text-center bg-dark flex" style="border: none!important;box-shadow:none!important;">
                <h2 class="m-0">Cadastro de Serviço</h2>
                <button title="Tutorial" class="mt-2 btn btn-info btn-sm ml-2" id="tutorial">
                  <i class="fas fa-question-circle"></i>
                </button>
              </div>
              <fieldset>
                <div class="card-body">
                  <form style="text-align:left!important;" id="msform" name="msform">
                    <div class="card card-header" role="tab" id="geral">
                      <a style="width:100%;" data-toggle="collapse" data-parent="#multiCollapseExample1" href="#multiCollapseExample1" aria-expanded="true" aria-controls="collapseOne1">
                        <div class="row">
                          <div style="max-width:20px;margin-top:auto; margin-bottom: auto" class="col-1">
                            <i class="fas fa-angle-down"></i>
                          </div>
                          <div class="col-11">
                            <h4 class="title-page">
                              Geral
                            </h4>
                          </div>
                        </div>
                      </a>
                    </div>
                    <div class="collapse show" id="multiCollapseExample1">
                      <div class="card card-body">
                        <div class=" tab-pane fade show active" role="tabpanel" aria-labelledby="geral-tab">
                          <div class="form-row pt-2 pl-1">

                            <div class="col-md-auto col-12 form" id="tipos">
                              <fieldset class="form border-Field mb-0 pb-0">
                                <legend class="textoBorda mb-0 pb-0">Tipo Manutenção</legend>
                                <div class="form-row">
                                  <div class="form-group form-check icheck-primary" style="border-right: 1px solid white">
                                    <input type="checkbox" class="" id="cbAtivo">
                                    <label class="form-check-label pr-1" for="cbAtivo">Ativo</label>
                                  </div>
                                  <div class="ml-3 icheck-primary">
                                    <input type="radio" class="" value="N" name="tipoManutencao" id="rgNenhum">
                                    <label class="form-check-label pr-1" for="rgNenhum">Nenhum</label>
                                  </div>
                                  <div class="icheck-primary">
                                    <input type="radio" class="" value="M" name="tipoManutencao" id="rgMaquina">
                                    <label class="form-check-label pr-1" for="rgMaquina">Máquina</label>
                                  </div>
                                  <div class="icheck-primary">
                                    <input type="radio" class="" value="F" name="tipoManutencao" id="rgFrota">
                                    <label class="form-check-label pr-1" for="rgFrota">Frota</label>
                                  </div>
                                </div>
                              </fieldset>
                            </div>

                            <div class="col-md-auto col-12 form" id="tipos">
                              <fieldset class="form border-Field mb-0 pb-0">
                                <legend class="textoBorda mb-0 pb-0">Tributação</legend>
                                <div class="form-row">
                                  <div class="form-group ml-2 icheck-primary">
                                    <input type="radio" class="" name="Tributacao" value="N" id="rgNormal">
                                    <label class="form-check-label pr-1" for="rgNormal">Normal</label>
                                  </div>
                                  <div class="form-group ml-2 icheck-primary">
                                    <input type="radio" class="" name="Tributacao" value="T" id="rgNormalTrib">
                                    <label class="form-check-label pr-1" for="rgNormalTrib">Normal Trib.</label>
                                  </div>
                                  <div class="form-group ml-2 icheck-primary">
                                    <input type="radio" class="" name="Tributacao" value="R" id="rgRetida">
                                    <label class="form-check-label pr-1" for="rgRetida">Retida</label>
                                  </div>
                                  <div class="form-group ml-2 icheck-primary">
                                    <input type="radio" class="" name="Tributacao" value="S" id="rgSubstituida">
                                    <label class="form-check-label pr-1" for="rgSubstituida">Substituida</label>
                                  </div>
                                  <div class="form-group ml-2 icheck-primary">
                                    <input type="radio" class="" name="Tributacao" value="I" id="rgIsenta">
                                    <label class="form-check-label pr-1" for="rgIsenta">Isenta</label>
                                  </div>
                                  <div class="form-group ml-2 icheck-primary">
                                    <input type="radio" class="" name="Tributacao" value="O" id="rgOrgaoMun">
                                    <label class="form-check-label pr-1" for="rgOrgaoMun">Órgão Mun</label>
                                  </div>
                                  <div class="form-group ml-2 icheck-primary">
                                    <input type="radio" class="" name="Tributacao" value="P" id="rgPgMun">
                                    <label class="form-check-label pr-1" for="rgPgMun">Pago em outro Mun.</label>
                                  </div>
                                </div>
                              </fieldset>
                            </div>
                          </div>

                          <div class="form-row">
                            <div class="col-md-3  col-12 form-group">
                              <label data-error="wrong" class="labelGeral" data-success="right" for="txtCodigo">Código:</label>
                              <input type="text" class="input-default focus form-control" id="txtCodigo" aria-describedby="codError" name="txtCodigo" class="form-control" placeholder="Código">
                            </div>
                            <div class="col-md-6  col-12 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" aria-describedby="codError" name="txtDescricao" class="form-control" placeholder="Descrição">
                            </div>
                            <div class="col-md-3  col-12 form-group">
                              <label data-error="wrong" class="labelGeral" data-success="right" for="txtCodigo2">Código 2:</label>
                              <input type="text" class="input-default focus form-control" id="txtCodigo2" aria-describedby="codError" name="txtCodigo2" class="form-control" placeholder="Código 2">
                            </div>
                            <div class="col-md-10  col-8 form-group">
                              <label data-error="wrong" class="labelGeral" data-success="right" for="txtComplemento">Complemento:</label>
                              <input type="text" class="input-default focus form-control" id="txtComplemento" aria-describedby="codError" name="txtComplemento" class="form-control" placeholder="Complemento">
                            </div>
                            <div class="form-group col-4 col-md-2">
                              <label>Unidade *:</label>
                              <select id="selectUnidade" class="input-default focus form-control validate">
                              </select>
                            </div>
                          </div>

                          <div class="form-row">
                            <div class="col-md-3  col-12 form-group">
                              <label data-error="wrong" class="labelGeral" data-success="right" for="txtGrupo">Grupo *:</label>
                              <div class="input-group">
                                <input type="text" class="input-default focus form-control" id="txtGrupo" aria-describedby="codError" name="txtGrupo" class="form-control" placeholder="Grupo">
                                <div class="input-group-append">
                                  <button class="btn bg-danger" id="btnGrupo" name="btnGrupo" data-button="absolute" type="button"><i class="m-0 p-0 fas fa-search"></i></button>
                                  <button class="btn bg-danger" id="btnLimpaGrupo" name="btnLimpaGrupo" type="button"><i class="m-0 p-0 fas fa-trash"></i></button>
                                </div>
                              </div>
                            </div>
                            <div class="col-md-3  col-12 form-group">
                              <label data-error="wrong" class="labelGeral" data-success="right" for="txtCSTIPI">CST IPI:</label>
                              <div class="input-group">
                                <input type="text" class="input-default focus form-control" id="txtCSTIPI" aria-describedby="codError" name="txtCSTIPI" class="form-control" placeholder="CST IPI">
                                <div class="input-group-append">
                                  <button class="btn bg-danger" id="btnCSTIPI" name="btnCSTIPI" data-button="absolute" type="button"><i class="m-0 p-0 fas fa-search"></i></button>
                                  <button class="btn bg-danger" id="btnLimpaCSTIPI" name="btnLimpaCSTIPI" type="button"><i class="m-0 p-0 fas fa-trash"></i></button>
                                </div>
                              </div>
                            </div>
                            <div class="col-md-3  col-12 form-group">
                              <label data-error="wrong" class="labelGeral" data-success="right" for="txtCodigoSped">Código Sped:</label>
                              <div class="input-group">
                                <input type="text" class="input-default focus form-control" id="txtCodigoSped" aria-describedby="codError" name="txtCodigoSped" class="form-control" placeholder="Código Sped">
                                <div class="input-group-append">
                                  <button class="btn bg-danger" id="btnCodigoSped" name="btnCodigoSped" data-button="absolute" type="button"><i class="m-0 p-0 fas fa-search"></i></button>
                                  <button class="btn bg-danger" id="btnLimpaCodigoSped" name="btnLimpaCodigoSped" type="button"><i class="m-0 p-0 fas fa-trash"></i></button>
                                </div>
                              </div>
                            </div>
                            <div class="col-md-3  col-12 form-group">
                              <label data-error="wrong" class="labelGeral" data-success="right" for="txtCodigoLST">Código LST:</label>
                              <div class="input-group">
                                <input type="text" class="input-default focus form-control" id="txtCodigoLST" aria-describedby="codError" name="txtCodigoLST" class="form-control" placeholder="Código LST">
                                <div class="input-group-append">
                                  <button class="btn bg-danger" id="btnCodigoLST" name="btnCodigoLST" data-button="absolute" type="button"><i class="m-0 p-0 fas fa-search"></i></button>
                                  <button class="btn bg-danger" id="btnLimpaCodigoLST" name="btnLimpaCodigoLST" type="button"><i class="m-0 p-0 fas fa-trash"></i></button>
                                </div>
                              </div>
                            </div>
                          </div>
                          <div class="form-row">
                            <div class="col-md-3  col-12 form-group">
                              <label data-error="wrong" class="labelGeral" data-success="right" for="txtPreco">Preco:</label>
                              <input type="number" value="0.00" class="input-default focus" id="txtPreco" name="txtPreco" class="form-control" placeholder="Preco">
                            </div>
                            <div class="col-md-3  col-12 form-group">
                              <label data-error="wrong" class="labelGeral" data-success="right" for="txtCodNat">Cód. Nat:</label>
                              <input type="text" class="input-default focus form-control" id="txtCodNat" aria-describedby="codError" name="txtCodNat" class="form-control" placeholder="Cód. Nat">
                            </div>
                            <div class="col-md-3  col-12 form-group">
                              <label data-error="wrong" class="labelGeral" data-success="right" for="txtCodMunicipio">Cód. Município:</label>
                              <input type="text" class="input-default focus form-control" id="txtCodMunicipio" aria-describedby="codError" name="txtCodMunicipio" class="form-control" placeholder="Cód. Município">
                            </div>
                            <div class="col-md-3  col-12 form-group">
                              <label data-error="wrong" class="labelGeral" data-success="right" for="txtCNAE">CNAE:</label>
                              <input type="text" class="input-default focus form-control" id="txtCNAE" aria-describedby="codError" name="txtCNAE" class="form-control" placeholder="CNAE">
                            </div>
                            <div class="col-md-3  col-12 form-group">
                              <label data-error="wrong" class="labelGeral" data-success="right" for="txtPercImposto">Perc. Imposto(Lei Transparência):</label>
                              <input type="text" value="0.00" class="input-default focus form-control" id="txtPercImposto" aria-describedby="codError" name="txtPercImposto" class="form-control" placeholder="Perc. Imposto(Lei Transparência)">
                            </div>
                            <div class="col-md-3  col-12 form-group">
                              <label data-error="wrong" class="labelGeral" data-success="right" for="txtRamoAtuacao">Ramo Atuação:</label>
                              <div class="input-group">
                                <input type="text" class="input-default focus form-control" id="txtRamoAtuacao" aria-describedby="codError" name="txtRamoAtuacao" class="form-control" placeholder="Ramo Atuação">
                                <div class="input-group-append">
                                  <button class="btn bg-danger" id="btnRamoAtuacao" name="btnRamoAtuacao" data-button="absolute" type="button"><i class="m-0 p-0 fas fa-search"></i></button>
                                  <button class="btn bg-danger" id="btnLimpaRamo" name="btnLimpaRamo" type="button"><i class="m-0 p-0 fas fa-trash"></i></button>
                                </div>
                              </div>
                            </div>
                            <div class="col-md-3  col-12 form-group">
                              <label data-error="wrong" class="labelGeral" data-success="right" for="txtCentroCusto">Centro de Custo:</label>
                              <div class="input-group">
                                <input type="text" class="input-default focus form-control" id="txtCentroCusto" aria-describedby="codError" name="txtCentroCusto" class="form-control" placeholder="Centro de Custo">
                                <div class="input-group-append">
                                  <button class="btn bg-danger" id="btnCentroCusto" name="btnCentroCusto" data-button="absolute" type="button"><i class="m-0 p-0 fas fa-search"></i></button>
                                  <button class="btn bg-danger" id="btnLimpaCentroCusto" name="btnLimpaCentroCusto" type="button"><i class="m-0 p-0 fas fa-trash"></i></button>
                                </div>
                              </div>
                            </div>
                          </div>
                        </div>
                      </div>
                    </div>

                    <div class="card card-header" role="tab" id="tributacao">
                      <a style="width:100%;" id="endereco" data-toggle="collapse" data-parent="#multiCollapseExample2" href="#multiCollapseExample2" aria-expanded="true" aria-controls="collapseOne1">
                        <div class="row">
                          <div style="max-width:20px;margin-top:auto; margin-bottom: auto" class="col-1">
                            <i class="fas fa-angle-right"></i>
                          </div>
                          <div class="col-11">
                            <h4 class="title-page">
                              Tributação
                            </h4>
                          </div>
                        </div>
                      </a>
                    </div>
                    <div class="collapse" id="multiCollapseExample2">
                      <div class="card card-body">
                        <div class="card card-header" role="tab">
                          <a style="width:100%;" id="collapseTribINSS" data-toggle="collapse" data-parent="#collapseINSS" href="#collapseINSS" aria-expanded="true" aria-controls="collapseOne1">
                            <div class="row">
                              <div style="max-width:20px;margin-top:auto; margin-bottom: auto" class="col-1">
                                <i class="fas fa-angle-down"></i>
                              </div>
                              <div class="col-11">
                                <h4 class="title-page">
                                  INSS
                                </h4>
                              </div>
                            </div>
                          </a>
                        </div>
                        <div class="collapse mb-3" id="collapseINSS">
                          <div class="card-body">
                            <div class="pt-2 form-row">
                              <div class="form-group col-12 col-md-4">
                                <label data-error="wrong" data-success="right" for="txtFornecedorINSS">Fornecedor: *
                                </label>
                                <div class="input-group">
                                  <input type="text" autocomplete="off" class="input-default focus form-control validate" id="txtFornecedorINSS" name="txtFornecedorINSS" required placeholder="Fornecedor">
                                  <div class="input-group-append">
                                    <button class="btn bg-danger" id="btnFornecedorINSS" name="btnFornecedorINSS" data-button="absolute" type="button"><i class="m-0 p-0 fas fa-search"></i></button>
                                    <button class="btn bg-danger" id="btnLimpaFornecedorINSS" name="btnLimpaFornecedorINSS" type="button"><i class="m-0 p-0 fas fa-trash"></i></button>
                                  </div>
                                </div>
                              </div>
                              <div class="form-group col-md-4 col-12" id="cepTour">
                                <label data-error="wrong" data-success="right" for="txtClasseGerINSS">Classe Ger: *</label>
                                <div class="input-group">
                                  <input type="text" class="input-default focus form-control validate" id="txtClasseGerINSS" name="txtClasseGerINSS" placeholder="Classe Ger">
                                  <div class="input-group-append">
                                    <button class="btn bg-danger" id="btnClasseGerINSS" name="btnClasseGerINSS" data-button="absolute" type="button"><i class="m-0 p-0 fas fa-search"></i></button>
                                    <button class="btn bg-danger" id="btnLimpaClasseGerINSS" name="btnLimpaClasseGerINSS" type="button"><i class="m-0 p-0 fas fa-trash"></i></button>
                                  </div>
                                </div>
                              </div>
                              <div class="form-group col-md-2 col-6">
                                <label>Aliquota:</label>
                                <input type="number" value="0.00" class="input-default form-control" name="txtAliquotaINSS" id="txtAliquotaINSS" placeholder="Aliquota">
                              </div>
                              <div class="form-group col-md-2 col-6">
                                <label>Valor Min:</label>
                                <input type="number" value="0.00" class="input-default form-control" name="txtValorMinINSS" id="txtValorMinINSS" placeholder="Valor Min">
                              </div>
                            </div>
                          </div>
                        </div>
                        <div class="card card-header" role="tab">
                          <a style="width:100%;" id="collapseTribPIS" data-toggle="collapse" data-parent="#collapsePIS" href="#collapsePIS" aria-expanded="true" aria-controls="collapseOne1">
                            <div class="row">
                              <div style="max-width:20px;margin-top:auto; margin-bottom: auto" class="col-1">
                                <i class="fas fa-angle-right"></i>
                              </div>
                              <div class="col-11">
                                <h4 class="title-page">
                                  PIS
                                </h4>
                              </div>
                            </div>
                          </a>
                        </div>
                        <div class="collapse mb-3" id="collapsePIS">
                          <div class="card-body">
                            <div class="pt-2 form-row">
                              <div class="form-group col-12 col-md-6">
                                <label data-error="wrong" data-success="right" for="txtPais">Fornecedor: *
                                </label>
                                <div class="input-group">
                                  <input type="text" autocomplete="off" class="input-default focus form-control validate" id="txtFornecedorPIS" name="txtFornecedorPIS" required placeholder="Fornecedor">
                                  <div class="input-group-append">
                                    <button class="btn bg-danger" id="btnFornecedorPIS" name="btnFornecedorPIS" data-button="absolute" type="button"><i class="m-0 p-0 fas fa-search"></i></button>
                                    <button class="btn bg-danger" id="btnLimpaFornecedorPIS" name="btnLimpaFornecedorPIS" type="button"><i class="m-0 p-0 fas fa-trash"></i></button>
                                  </div>
                                </div>
                              </div>
                              <div class="form-group col-md-6 col-12" id="cepTour">
                                <label data-error="wrong" data-success="right" for="txtClasseGerPIS">Classe Ger: *</label>
                                <div class="input-group">
                                  <input type="text" class="input-default focus form-control validate" id="txtClasseGerPIS" name="txtClasseGerPIS" placeholder="Classe Ger">
                                  <div class="input-group-append">
                                    <button class="btn bg-danger" id="btnClasseGerPIS" name="btnClasseGerPIS" data-button="absolute" type="button"><i class="m-0 p-0 fas fa-search"></i></button>
                                    <button class="btn bg-danger" id="btnLimpaClasseGerPIS" name="btnLimpaClasseGerPIS" type="button"><i class="m-0 p-0 fas fa-trash"></i></button>
                                  </div>
                                </div>
                              </div>
                              <div class="form-group col-md-4 col-4">
                                <label>Aliquota:</label>
                                <input type="number" value="0.00" class="input-default form-control" name="txtAliquotaPIS" id="txtAliquotaPIS" placeholder="Aliquota">
                              </div>
                              <div class="form-group col-md-4 col-4">
                                <label>Cód. Ret:</label>
                                <input type="text" class="input-default form-control" name="txtCodRetPIS" id="txtCodRetPIS" placeholder="Cód. Ret.">
                              </div>
                              <div class="form-group col-md-4 col-4">
                                <label>Valor Min:</label>
                                <input type="number" value="0.00" class="input-default form-control" name="txtValorMinPIS" id="txtValorMinPIS" placeholder="Valor Min">
                              </div>
                            </div>
                          </div>
                        </div>
                        <div class="card card-header" role="tab">
                          <a style="width:100%;" id="collapseTribISS" data-toggle="collapse" data-parent="#collapseISS" href="#collapseISS" aria-expanded="true" aria-controls="collapseOne1">
                            <div class="row">
                              <div style="max-width:20px;margin-top:auto; margin-bottom: auto" class="col-1">
                                <i class="fas fa-angle-right"></i>
                              </div>
                              <div class="col-11">
                                <h4 class="title-page">
                                  ISS
                                </h4>
                              </div>
                            </div>
                          </a>
                        </div>
                        <div class="collapse mb-3" id="collapseISS">
                          <div class="card-body">
                            <div class="pt-2 form-row">
                              <div class="form-group col-md-4 col-12">
                                <label data-error="wrong" data-success="right" for="txtFornecedorISS">Fornecedor: *
                                </label>
                                <div class="input-group">
                                  <input type="text" autocomplete="off" class="input-default focus form-control validate" id="txtFornecedorISS" name="txtFornecedorISS" required placeholder="Fornecedor">
                                  <div class="input-group-append">
                                    <button class="btn bg-danger" id="btnFornecedorISS" name="btnFornecedorISS" data-button="absolute" type="button"><i class="m-0 p-0 fas fa-search"></i></button>
                                    <button class="btn bg-danger" id="btnLimpaFornecedorISS" name="btnLimpaFornecedorISS" type="button"><i class="m-0 p-0 fas fa-trash"></i></button>
                                  </div>
                                </div>
                              </div>
                              <div class="form-group col-md-4 col-12" id="cepTour">
                                <label data-error="wrong" data-success="right" for="txtClasseGerISS">Classe Ger: *</label>
                                <div class="input-group">
                                  <input type="text" class="input-default focus form-control validate" id="txtClasseGerISS" name="txtClasseGerISS" placeholder="Classe Ger">
                                  <div class="input-group-append">
                                    <button class="btn bg-danger" id="btnClasseGerISS" name="btnClasseGerISS" data-button="absolute" type="button"><i class="m-0 p-0 fas fa-search"></i></button>
                                    <button class="btn bg-danger" id="btnLimpaClasseGerISS" name="btnLimpaClasseGerISS" type="button"><i class="m-0 p-0 fas fa-trash"></i></button>
                                  </div>
                                </div>
                              </div>
                              <div class="form-group col-md-2 col-6">
                                <label>Aliquota:</label>
                                <input type="number" value="0.00" class="input-default form-control" name="txtAliquotaISS" id="txtAliquotaISS" placeholder="Aliquota">
                              </div>
                              <div class="form-group col-md-2 col-6">
                                <label>Valor Min:</label>
                                <input type="number" value="0.00" class="input-default form-control" name="txtValorMinISS" id="txtValorMinISS" placeholder="Valor Min">
                              </div>
                            </div>
                          </div>
                        </div>
                        <div class="card card-header" role="tab">
                          <a style="width:100%;" id="collapseTribIRRF" data-toggle="collapse" data-parent="#collapseIRRF" href="#collapseIRRF" aria-expanded="true" aria-controls="collapseOne1">
                            <div class="row">
                              <div style="max-width:20px;margin-top:auto; margin-bottom: auto" class="col-1">
                                <i class="fas fa-angle-right"></i>
                              </div>
                              <div class="col-11">
                                <h4 class="title-page">
                                  IRRF
                                </h4>
                              </div>
                            </div>
                          </a>
                        </div>
                        <div class="collapse mb-3" id="collapseIRRF">
                          <div class="card-body">
                            <div class="pt-2 form-row">
                              <div class="form-group col-12 col-md-6">
                                <label data-error="wrong" data-success="right" for="txtFornecedorIRRF">Fornecedor: *
                                </label>
                                <div class="input-group">
                                  <input type="text" autocomplete="off" class="input-default focus form-control validate" id="txtFornecedorIRRF" name="txtFornecedorIRRF" required placeholder="Fornecedor">
                                  <div class="input-group-append">
                                    <button class="btn bg-danger" id="btnFornecedorIRRF" name="btnFornecedorIRRF" data-button="absolute" type="button"><i class="m-0 p-0 fas fa-search"></i></button>
                                    <button class="btn bg-danger" id="btnLimpaFornecedorIRRF" name="btnLimpaFornecedorIRRF" type="button"><i class="m-0 p-0 fas fa-trash"></i></button>
                                  </div>
                                </div>
                              </div>
                              <div class="form-group col-md-6 col-12" id="cepTour">
                                <label data-error="wrong" data-success="right" for="txtClasseGerIRRF">Classe Ger: *</label>
                                <div class="input-group">
                                  <input type="text" class="input-default focus form-control validate" id="txtClasseGerIRRF" name="txtClasseGerIRRF" placeholder="Classe Ger">
                                  <div class="input-group-append">
                                    <button class="btn bg-danger" id="btnClasseGerIRRF" name="btnClasseGerIRRF" data-button="absolute" type="button"><i class="m-0 p-0 fas fa-search"></i></button>
                                    <button class="btn bg-danger" id="btnLimpaClasseGerIRRF" name="btnLimpaClasseGerIRRF" type="button"><i class="m-0 p-0 fas fa-trash"></i></button>
                                  </div>
                                </div>
                              </div>
                              <div class="form-group col-md-4 col-4">
                                <label>Aliquota:</label>
                                <input type="number" value="0.00" class="input-default form-control" name="txtAliquotaIRRF" id="txtAliquotaIRRF" placeholder="Aliquota">
                              </div>
                              <div class="form-group col-md-4 col-4">
                                <label>Cód. Ret:</label>
                                <input type="text" class="input-default form-control" name="txtCodRetIRRF" id="txtCodRetIRRF" placeholder="Cód. Ret.">
                              </div>
                              <div class="form-group col-md-4 col-4">
                                <label>Valor Min:</label>
                                <input type="number" value="0.00" class="input-default form-control" name="txtValorMinIRRF" id="txtValorMinIRRF" placeholder="Valor Min">
                              </div>
                            </div>
                          </div>
                        </div>
                        <div class="card card-header" role="tab">
                          <a style="width:100%;" id="collapseTribCOFINS" data-toggle="collapse" data-parent="#collapseCOFINS" href="#collapseCOFINS" aria-expanded="true" aria-controls="collapseOne1">
                            <div class="row">
                              <div style="max-width:20px;margin-top:auto; margin-bottom: auto" class="col-1">
                                <i class="fas fa-angle-right"></i>
                              </div>
                              <div class="col-11">
                                <h4 class="title-page">
                                  COFINS
                                </h4>
                              </div>
                            </div>
                          </a>
                        </div>
                        <div class="collapse mb-3" id="collapseCOFINS">
                          <div class="card-body">
                            <div class="pt-2 form-row">
                              <div class="form-group col-12 col-md-6">
                                <label data-error="wrong" data-success="right" for="txtFornecedorCOFINS">Fornecedor: *
                                </label>
                                <div class="input-group">
                                  <input type="text" autocomplete="off" class="input-default focus form-control validate" id="txtFornecedorCOFINS" name="txtFornecedorCOFINS" required placeholder="Fornecedor">
                                  <div class="input-group-append">
                                    <button class="btn bg-danger" id="btnFornecedorCOFINS" name="btnFornecedorCOFINS" data-button="absolute" type="button"><i class="m-0 p-0 fas fa-search"></i></button>
                                    <button class="btn bg-danger" id="btnLimpaFornecedorCOFINS" name="btnLimpaFornecedorCOFINS" type="button"><i class="m-0 p-0 fas fa-trash"></i></button>
                                  </div>
                                </div>
                              </div>
                              <div class="form-group col-md-6 col-12" id="cepTour">
                                <label data-error="wrong" data-success="right" for="txtClasseGerCOFINS">Classe Ger: *</label>
                                <div class="input-group">
                                  <input type="text" class="input-default focus form-control validate" id="txtClasseGerCOFINS" name="txtClasseGerCOFINS" placeholder="Classe Ger">
                                  <div class="input-group-append">
                                    <button class="btn bg-danger" id="btnClasseGerCOFINS" name="btnClasseGerCOFINS" data-button="absolute" type="button"><i class="m-0 p-0 fas fa-search"></i></button>
                                    <button class="btn bg-danger" id="btnLimpaClasseGerCOFINS" name="btnLimpaClasseGerCOFINS" type="button"><i class="m-0 p-0 fas fa-trash"></i></button>
                                  </div>
                                </div>
                              </div>
                              <div class="form-group col-md-4 col-4">
                                <label>Aliquota:</label>
                                <input type="number" value="0.00" class="input-default form-control" name="txtAliquotaCOFINS" id="txtAliquotaCOFINS" placeholder="Aliquota">
                              </div>
                              <div class="form-group col-md-4 col-4">
                                <label>Cód. Ret:</label>
                                <input type="text" class="input-default form-control" name="txtCodRetCOFINS" id="txtCodRetCOFINS" placeholder="Cód. Ret.">
                              </div>
                              <div class="form-group col-md-4 col-4">
                                <label>Valor Min:</label>
                                <input type="number" value="0.00" class="input-default form-control" name="txtValorMinCOFINS" id="txtValorMinCOFINS" placeholder="Valor Min">
                              </div>
                            </div>
                          </div>
                        </div>
                        <div class="card card-header" role="tab">
                          <a style="width:100%;" id="collapseTribCSLL" data-toggle="collapse" data-parent="#collapseCSLL" href="#collapseCSLL" aria-expanded="true" aria-controls="collapseOne1">
                            <div class="row">
                              <div style="max-width:20px;margin-top:auto; margin-bottom: auto" class="col-1">
                                <i class="fas fa-angle-right"></i>
                              </div>
                              <div class="col-11">
                                <h4 class="title-page">
                                  CSLL
                                </h4>
                              </div>
                            </div>
                          </a>
                        </div>
                        <div class="collapse mb-3" id="collapseCSLL">
                          <div class="card-body">
                            <div class="pt-2 form-row">
                              <div class="form-group col-12 col-md-6">
                                <label data-error="wrong" data-success="right" for="txtFornecedorCSLL">Fornecedor: *
                                </label>
                                <div class="input-group">
                                  <input type="text" autocomplete="off" class="input-default focus form-control validate" id="txtFornecedorCSLL" name="txtFornecedorCSLL" required placeholder="Fornecedor">
                                  <div class="input-group-append">
                                    <button class="btn bg-danger" id="btnFornecedorCSLL" name="btnFornecedorCSLL" data-button="absolute" type="button"><i class="m-0 p-0 fas fa-search"></i></button>
                                    <button class="btn bg-danger" id="btnLimpaFornecedorCSLL" name="btnLimpaFornecedorCSLL" type="button"><i class="m-0 p-0 fas fa-trash"></i></button>
                                  </div>
                                </div>
                              </div>
                              <div class="form-group col-md-6 col-12" id="cepTour">
                                <label data-error="wrong" data-success="right" for="txtClasseGerCSLL">Classe Ger: *</label>
                                <div class="input-group">
                                  <input type="text" class="input-default focus form-control validate" id="txtClasseGerCSLL" name="txtClasseGerCSLL" placeholder="Classe Ger">
                                  <div class="input-group-append">
                                    <button class="btn bg-danger" id="btnClasseGerCSLL" name="btnClasseGerCSLL" data-button="absolute" type="button"><i class="m-0 p-0 fas fa-search"></i></button>
                                    <button class="btn bg-danger" id="btnLimpaClasseGerCSLL" name="btnLimpaClasseGerCSLL" type="button"><i class="m-0 p-0 fas fa-trash"></i></button>
                                  </div>
                                </div>
                              </div>
                              <div class="form-group col-md-4 col-4">
                                <label>Aliquota:</label>
                                <input type="number" value="0.00" class="input-default form-control" name="txtAliquotaCSLL" id="txtAliquotaCSLL" placeholder="Aliquota">
                              </div>
                              <div class="form-group col-md-4 col-4">
                                <label>Cód. Ret:</label>
                                <input type="text" class="input-default form-control" name="txtCodRetCSLL" id="txtCodRetCSLL" placeholder="Cód. Ret.">
                              </div>
                              <div class="form-group col-md-4 col-4">
                                <label>Valor Min:</label>
                                <input type="number" value="0.00" class="input-default form-control" name="txtValorMinCSLL" id="txtValorMinCSLL" placeholder="Valor Min">
                              </div>
                            </div>
                          </div>
                        </div>
                        <div class="card card-header" role="tab">
                          <a style="width:100%;" id="collapseTribCSRF" data-toggle="collapse" data-parent="#collapseCSRF" href="#collapseCSRF" aria-expanded="true" aria-controls="collapseOne1">
                            <div class="row">
                              <div style="max-width:20px;margin-top:auto; margin-bottom: auto" class="col-1">
                                <i class="fas fa-angle-right"></i>
                              </div>
                              <div class="col-11">
                                <h4 class="title-page">
                                  CSRF(PCC)
                                </h4>
                              </div>
                            </div>
                          </a>
                        </div>
                        <div class="collapse mb-3" id="collapseCSRF">
                          <div class="card-body">
                            <div class="pt-2 form-row">
                              <div class="form-group col-12 col-md-4">
                                <label data-error="wrong" data-success="right" for="txtFornecedorCSRF">Fornecedor: *
                                </label>
                                <div class="input-group">
                                  <input type="text" autocomplete="off" class="input-default focus form-control validate" id="txtFornecedorCSRF" name="txtFornecedorCSRF" required placeholder="Fornecedor">
                                  <div class="input-group-append">
                                    <button class="btn bg-danger" id="btnFornecedorCSRF" name="btnFornecedorCSRF" data-button="absolute" type="button"><i class="m-0 p-0 fas fa-search"></i></button>
                                    <button class="btn bg-danger" id="btnLimpaFornecedorCSRF" name="btnLimpaFornecedorCSRF" type="button"><i class="m-0 p-0 fas fa-trash"></i></button>
                                  </div>
                                </div>
                              </div>
                              <div class="form-group col-md-4 col-12" id="cepTour">
                                <label data-error="wrong" data-success="right" for="txtClasseGerCSRF">Classe Ger: *</label>
                                <div class="input-group">
                                  <input type="text" class="input-default focus form-control validate" id="txtClasseGerCSRF" name="txtClasseGerCSRF" placeholder="Classe Ger">
                                  <div class="input-group-append">
                                    <button class="btn bg-danger" id="btnClasseGerCSRF" name="btnClasseGerCSRF" data-button="absolute" type="button"><i class="m-0 p-0 fas fa-search"></i></button>
                                    <button class="btn bg-danger" id="btnLimpaClasseGerCSRF" name="btnLimpaClasseGerCSRF" type="button"><i class="m-0 p-0 fas fa-trash"></i></button>
                                  </div>
                                </div>
                              </div>
                              <div class="form-row col-md-4 col-12">
                                <div class="form-group icheck-primary pt-md-4 col-12">
                                  <input type="checkbox" class="" id="cbParcelarCSRF">
                                  <label class="form-check-label pr-1" for="cbParcelarCSRF">Parcelar conforme condição de pagamento da NFS</label>
                                </div>
                              </div>
                              <div class="form-group col-md-4 col-12">
                                <label>Aliquota:</label>
                                <input type="number" value="0.00" class="input-default form-control" name="txtAliquotaCSRF" id="txtAliquotaCSRF" placeholder="Aliquota">
                              </div>
                              <div class="form-group col-md-4 col-12">
                                <label>Cód. Ret:</label>
                                <input type="text" class="input-default form-control" name="txtCodRetCSRF" id="txtCodRetCSRF" placeholder="Cód. Ret.">
                              </div>
                              <div class="form-group col-md-4 col-12">
                                <label>Valor Min:</label>
                                <input type="number" value="0.00" class="input-default form-control" name="txtValorMinCSRF" id="txtValorMinCSRF" placeholder="Valor Min">
                              </div>
                            </div>
                          </div>
                        </div>
                        <div class="card card-header" role="tab">
                          <a style="width:100%;" id="collapseTribAliq" data-toggle="collapse" data-parent="#collapseAliCred" href="#collapseAliCred" aria-expanded="true" aria-controls="collapseOne1">
                            <div class="row">
                              <div style="max-width:20px;margin-top:auto; margin-bottom: auto" class="col-1">
                                <i class="fas fa-angle-right"></i>
                              </div>
                              <div class="col-11">
                                <h4 class="title-page">
                                  Aliq. Crédito
                                </h4>
                              </div>
                            </div>
                          </a>
                        </div>
                        <div class="collapse mb-3" id="collapseAliCred">
                          <div class="card-body">
                            <div class="pt-2 form-row">
                              <div class="form-group col-md-2 col-6">
                                <label>COFINS:</label>
                                <input type="number" value="0.00" class="input-default form-control" name="txtCredCOFINS" id="txtCredCOFINS" placeholder="COFINS">
                              </div>
                              <div class="form-group col-md-2 col-6">
                                <label>PIS:</label>
                                <input type="number" value="0.00" class="input-default form-control" name="txtCredPIS" id="txtCredPIS" placeholder="PIS">
                              </div>
                            </div>
                          </div>
                        </div>
                      </div>
                    </div>

                    <div class="card card-header" role="tab" id="dados_contrato">
                      <a style="width:100%;" data-toggle="collapse" data-parent="#multiCollapseExample3" href="#multiCollapseExample3" aria-expanded="true" aria-controls="collapseOne1">
                        <div class="row">
                          <div style="max-width:20px;margin-top:auto; margin-bottom: auto" class="col-1">
                            <i class="fas fa-angle-down"></i>
                          </div>
                          <div class="col-11">
                            <h4 class="title-page">
                              Dados do Contrato
                            </h4>
                          </div>
                        </div>
                      </a>
                    </div>
                    <div class="collapse " id="multiCollapseExample3">
                      <div class="card card-body pb-3">
                        <div class="tab-pane fade show active" role="tabpanel" aria-labelledby="geral-tab">
                          <div class="form-row pt-2 pl-1 justify-content-between">
                            <div class="form-row">
                              <div class="col-md-8  col-12 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" aria-describedby="codError" name="txtCliente" class="form-control" 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>
                                  </div>
                                </div>
                              </div>
                              <div class="col-md-4 col-12 pt-0 form" id="tipos" style="margin-top:15px;">
                                <fieldset class="form border-Field mb-0 pb-0">
                                  <legend class="textoBorda mb-0 pb-0">Opções</legend>
                                  <div class="form-row">
                                    <div class="form-group form-check icheck-primary">
                                      <input type="checkbox" class="" id="cbRetISS">
                                      <label class="form-check-label pr-1" for="cbRetISS">Retenção ISS</label>
                                    </div>
                                    <div class="form-group form-check icheck-primary">
                                      <input type="checkbox" class="" id="cbRetFed">
                                      <label class="form-check-label pr-1" for="cbRetFed">Retenções Federais</label>
                                    </div>
                                  </div>
                                </fieldset>
                              </div>
                              <div class="col-md-7  col-8 form-group">
                                <label data-error="wrong" class="labelGeral" data-success="right" for="txtPeriodo">Período:</label>
                                <input type="text" class="input-default focus form-control" id="txtPeriodo" aria-describedby="codError" name="txtPeriodo" class="form-control" placeholder="Período">
                              </div>
                              <div class="col-md-3  col-4 form-group">
                                <label data-error="wrong" class="labelGeral" data-success="right" for="txtQtdeMeses">Qtde Meses:</label>
                                <input type="text" class="input-default focus form-control" id="txtQtdeMeses" aria-describedby="codError" name="txtQtdeMeses" class="form-control" placeholder="Qtde Meses">
                              </div>
                              <div class="col-md-2  col-4 form-group">
                                <label data-error="wrong" class="labelGeral" data-success="right" for="txtValor">Valor:</label>
                                <input type="number" value="0.00" class="input-default focus form-control" id="txtValor" aria-describedby="codError" name="txtValor" class="form-control" placeholder="Valor">
                              </div>
                              <div class="col-md-2  col-4 form-group">
                                <label data-error="wrong" class="labelGeral" data-success="right" for="txtQuantidade">Quantidade:</label>
                                <input type="text" class="input-default focus form-control" id="txtQuantidade" aria-describedby="codError" name="txtQuantidade" class="form-control" placeholder="Quantidade">
                              </div>
                              <div class="col-md-2  col-4 form-group">
                                <label data-error="wrong" class="labelGeral" data-success="right" for="txtValorExcedente">Valor Excedente:</label>
                                <input type="number" value="0.00" class="input-default focus form-control" id="txtValorExcedente" aria-describedby="codError" name="txtValorExcedente" class="form-control" placeholder="Valor Excedente">
                              </div>
                              <div class="col-md-4  col-12 form-group">
                                <label data-error="wrong" class="labelGeral" data-success="right" for="txtNumContrato">Num. Contrato:</label>
                                <input type="text" class="input-default focus form-control" id="txtNumContrato" aria-describedby="codError" name="txtNumContrato" class="form-control" placeholder="Num. Contrato">
                              </div>
                              <div class="col-md-2  col-6 form-group">
                                <label data-error="wrong" class="labelGeral" data-success="right" for="dtCadastro">Cadastro:</label>
                                <input type="date" class="input-default focus form-control" id="dtCadastro" aria-describedby="codError" name="dtCadastro" class="form-control">
                              </div>
                              <div class="col-md-2  col-6 form-group">
                                <label data-error="wrong" class="labelGeral" data-success="right" for="dtValidade">Validade:</label>
                                <input type="date" class="input-default focus form-control" id="dtValidade" aria-describedby="codError" name="dtValidade" class="form-control">
                              </div>
                            </div>
                          </div>
                        </div>
                      </div>
                    </div>
                    <div class="modal-footer">
                      <!-- <button type="button" id="btnRateio" style="font-size:15px; margin-right:0%" class="btn btn-success btn-sisp btn-lg action-button-previous" data-dismiss="modal">Rateio</button> -->
                      <button type="button" id="btnVoltar" style="font-size:15px;" class="btn btn-success btn-sisp btn-lg action-button-previous" data-dismiss="modal">Voltar</button>
                      <input id="btnGravar" type="submit" style="font-size:15px;" class="btn btn-danger btn-sisp btn-lg action-button float-right" value="Gravar">
                    </div>
                  </form>
                </div>
              </fieldset>
            </div>
          </div>
        </div>
      </div>
    </section>
  </div>
  </div>

  <?php
  include_once('../../../modais.php');
  include_once('../../loja/modais/modal_cep.php');
  ?>

  <!-- Control Sidebar -->
  <aside class="control-sidebar control-sidebar-dark">
    <!-- Control sidebar content goes here -->
  </aside>
  <!-- /.control-sidebar -->
  </div>
  <!-- ./wrapper -->
  <script>
    function formatar(mascara, documento) {
      var i = documento.value.length;
      var saida = mascara.substring(0, 1);
      var texto = mascara.substring(i);

      if (texto.substring(0, 1) != saida) {
        documento.value += texto.substring(0, 1);
      }

    }
  </script>

  <!-- 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="../plugins/jquery-validation/jquery.validate.min.js?versao=3.2512.9.1"></script>
  <script src="../dist/js/valida_cpf_cnpj.js?versao=3.2512.9.1"></script>
  <script src="../dist/js/dataTables.keyTable.js?versao=3.2512.9.1"></script>
  <script src="../dist/js/sisplan.js?versao=3.2512.9.1"></script>
  <script src="../utils/funcoes.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/jquery.mask.min.js?versao=3.2512.9.1"></script>
  <script src="../dist/js/jquery.maskMoney.min.js?versao=3.2512.9.1"></script>
  <script type="text/javascript" src="../config.js?versao=3.2512.9.1"></script>
  <script src="../plugins/select2/js/select2.full.min.js?versao=3.2512.9.1"></script>
  <script src="../dist/js/jquery.inputmask.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('CADSERVICO');
      if (!temAcesso.resultado) {
        toastrAcesso(temAcesso, BASE_URI);
        return;
      }

      const permissaoUsuarioLogado = await permissaoAcessos("CADSERVICO");

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

      const queryString = window.location.href;
      const parametros = queryString.split("/");
      const cliente = parametros[parametros.length - 1];

      $(window).on("beforeunload", function(e) {
        // e.preventDefault();
        e.stopPropagation();
        deletaRegistro("CADSERVICO", getCookie("usuario"), cliente);
        return undefined;
      });

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

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

    });
  </script>
</body>

</html>