<!DOCTYPE html>
<html>

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

  <link rel="stylesheet" href="dist/css/adminlte.min.css?versao=3.265.7.1">
  <link rel="stylesheet" href="dist/css/custom.css?versao=3.265.7.1">
  <link rel="stylesheet" href="dist/css/sisplan.css?versao=3.265.7.1">
  <link rel="stylesheet" type="text/css" href="plugins/datatables-keytable/css/keyTable.bootstrap4.min.css?versao=3.265.7.1">
  <link rel="stylesheet" href="plugins/toastr/toastr.min.css?versao=3.265.7.1">
  <link rel="stylesheet" href="plugins/fontawesome-free/css/all.min.css?versao=3.265.7.1">
  <link rel="shortcut icon" href="favicon.ico">
  <link rel="stylesheet" type="text/css" href="dist/css/driver.min.css?versao=3.265.7.1" />
  <link rel="stylesheet" href="dist/css/jquery-ui.css?versao=3.265.7.1">
  <link rel="stylesheet" type="text/css" href="dist/css/driver.min.css?versao=3.265.7.1" />
  <link rel="stylesheet" href="plugins/icheck-bootstrap/icheck-bootstrap.min.css?versao=3.265.7.1">
  <link rel="stylesheet" href="dist/css/jquery-ui.css?versao=3.265.7.1">
  <link rel="stylesheet" href="plugins/datatables-colreorder/css/colReorder.bootstrap4.min.css?versao=3.265.7.1">
  <link rel="stylesheet" href="dist/css/PesquisaVariosSelect2.css?versao=3.265.7.1">
  <link rel="stylesheet" href="plugins/select2/css/select2.min.css?versao=3.265.7.1">
  <link rel="stylesheet" href="plugins/select2-bootstrap4-theme/select2-bootstrap4.min.css?versao=3.265.7.1">
  <link href="https://fonts.googleapis.com/css?family=Source+Sans+Pro:300,400,400i,700" rel="stylesheet">
  <link rel="stylesheet" href="https://cdn.datatables.net/select/1.6.0/css/select.dataTables.min.css">

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

    .dataTables_length {
      margin-top: 0.90rem !important;
    }

    .dataTables_filter>label {
      margin-top: 0.275rem !important;
      margin-bottom: 0rem !important;
    }

    #divTabelaNotas .dataTables_scrollHeadInner table {
      width: 100% !important;
    }

    #divTabelaNotas .dataTables_scrollHeadInner {
      width: 100% !important;
    }

    .bordaCampos {
      border: solid #e0e4e6;
      border-radius: 4px;
      border-width: 2px;
      padding-top: 2%;
      padding-bottom: 0%;
    }

    .bordaCampos:first-child {
      display: flex;
      flex-direction: row;
      flex-wrap: wrap;
      justify-content: flex-end;
      align-items: center;
    }

    .border-Field .textoBorda {
      font-size: 1.0em !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;
      margin: 0 0 0 0 !important;
      -webkit-box-shadow: 0px 0px 0px 0px #000;
      box-shadow: 0px 0px 0px 0px #000;
      padding-bottom: 0px !important;
    }

    #btnSelecionarEmpresas {
      margin-top: 8px !important;
      height: 43px;
      width: 170px;
    }
  </style>
</head>

<body class="hold-transition sidebar-mini layout-fixed">
  <main class="wrapper">

    <div class="content-wrapper">
      <div class="content-header">
        <div class="container-fluid">
          <div class="row mb-2">
            <div class="col-sm-6 flex">
              <h1 class="m-0 text-dark">Relatório de Solicitação de Compras</h1>
              <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>
            </div>
            <div class="col-sm-6">
            </div>
          </div>
        </div>
        <div class="container-fluid">
          <div class="row card">
            <div class="col-sm-12 mt-2">
              <button class="btn btn-success btn-sisp" id="btnFiltros"><span class="fas fa-search"></span> Filtros</button>
              <button id="btnImprimir" class="btn-sisp btn btn-danger"><i class="fas fa-print"></i> Imprimir</button>
            </div>
            <div class="row">
              <div class="col-sm-6 d-flex justify-content-center align-items-center" style="height: 100%;">
                <div id="graficosNotas" class="mt-5" style="width: 100%;"></div>
              </div>
              <div class="col-sm-6 d-flex justify-content-center align-items-center" style="height: 100%;">
                <div id="graficosNotas1" class="mt-5" style="width: 100%;"></div>
              </div>
            </div>
            <div class="col-sm-12 table-responsive">
              <h5>Lista de Solicitações</h5>
              <table id="tabelaSolicitacoes" class="table table-sm-sisp table-select table-hover" width="100%">
              </table>
            </div>
          </div>

          <div class="d-flex gap-2 row">
            <div class="table-responsive col-12">
              <h5>Itens</h5>
              <div class="col-12 table-responsive pb-2">
                <nav>
                  <div class="nav nav-tabs justify-content-center float-left" id="nav-tab" role="tablist" style="text-decoration: none">
                    <a class="nav-link abaLink active" id="tabCompras" data-toggle="tab" href="#divCompras" role="tab" aria-controls="divCompras" aria-selected="true">Compras</a>
                    <a class="nav-link abaLink" id="tabConsumos" data-toggle="tab" href="#divConsumos" role="tab" aria-controls="divConsumos" aria-selected="false">Consumos</a>
                    <a class="nav-link abaLink" id="tabUltCompra" data-toggle="tab" href="#divUltCompra" role="tab" aria-controls="divUltCompra" aria-selected="false">Últimas Compras</a>
                  </div>
                </nav>
              </div>
              <div class="tab-content" id="nav-tabContent">
                <div class="tab-pane fade active show" id="divCompras" role="tabpanel" aria-labelledby="tabCompras">
                  <div class="col-12 table-responsive">
                    <table id="tabelaCompras" class="table table-sm-sisp table-select table-hover" width="100%">
                      <thead></thead>
                      <tbody></tbody>
                    </table>
                  </div>
                </div>
              </div>

              <div class="tab-content" id="nav-tabContent">
                <div class="tab-pane fade active" id="divConsumos" role="tabpanel" aria-labelledby="tabConsumos">
                  <div class="col-12 table-responsive">
                    <table id="tabelaConsumos" class="table table-sm-sisp table-select table-hover" width="100%">
                      <thead></thead>
                      <tbody></tbody>
                    </table>
                  </div>
                </div>
              </div>

              <div class="tab-content" id="nav-tabContent">
                <div class="tab-pane fade active" id="divUltCompra" role="tabpanel" aria-labelledby="tabUltCompra">
                  <div class="col-12 table-responsive">
                    <table id="tabelaUltCompra" class="table table-sm-sisp table-select table-hover" width="100%">
                      <thead></thead>
                      <tbody></tbody>
                    </table>
                  </div>
                </div>
              </div>
            </div>
          </div>
        </div>
      </div>
    </div>

    <div id="modal-filtros" class="modal" tabindex="-1" role="dialog">
      <div class="modal-dialog modal-xl" role="document">
        <div class="modal-content" id="modalBody">
          <div class="modal-header d-flex">
            <h4 class="modal-title">Filtros</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="flex flex-wrap w-100">
              <div class="col-4 form-group">
                <fieldset class="form border-Field p-0">
                  <legend class="textoBorda pb-0 mb-0">Tipo</legend>
                  <div class="form-row justify-content-around">
                    <div class="d-flex">
                      <div class="radio-group form-radio icheck-primary"><input type="radio" id="rdTipoTodos" checked name="tipo" value=""><label for="rdTipoTodos" class="container escondeRadio">Todos</label></div>
                      <div class="radio-group form-radio icheck-primary"><input type="radio" id="rdTipoMaterial" name="tipo" value="M"><label for="rdTipoMaterial" class="container escondeRadio">Material</label></div>
                      <div class="radio-group form-radio icheck-primary"><input type="radio" id="rdTipoProduto" name="tipo" value="P"><label for="rdTipoProduto" class="container escondeRadio">Produto</label></div>
                    </div>
                  </div>
                </fieldset>
              </div>
              <div class="col-8 form-group">
                <fieldset class="form border-Field p-0">
                  <legend class="textoBorda pb-0 mb-0">Situação itens</legend>
                  <div class="form-row justify-content-around">
                    <div class="d-flex">
                      <div class="radio-group form-radio icheck-primary"><input type="checkbox" value="A" id="rdSitItenEmAberto" checked name="sitItens"><label for="rdSitItenEmAberto" class="container escondeRadio">Em Aberto</label></div>
                      <div class="radio-group form-radio icheck-primary"><input type="checkbox" value="B" id="rdSitItenBaixado" checked name="sitItens"><label for="rdSitItenBaixado" class="container escondeRadio">Baixado</label></div>
                      <div class="radio-group form-radio icheck-primary"><input type="checkbox" value="R" id="rdSitItenRejeitado" checked name="sitItens"><label for="rdSitItenRejeitado" class="container escondeRadio">Rejeitado</label></div>
                      <div class="radio-group form-radio icheck-primary"><input type="checkbox" value="E" id="rdSitItenEmAnalise" checked name="sitItens"><label for="rdSitItenEmAnalise" class="container escondeRadio">Em Analise</label></div>
                      <div class="radio-group form-radio icheck-primary"><input type="checkbox" value="L" id="rdSitItenLiberado" checked name="sitItens"><label for="rdSitItenLiberado" class="container escondeRadio">Liberado</label></div>
                      <div class="radio-group form-radio icheck-primary"><input type="checkbox" value="D" id="rdSitItenDevolvido" checked name="sitItens"><label for="rdSitItenDevolvido" class="container escondeRadio">Devolvido</label></div>
                    </div>
                  </div>
                </fieldset>
              </div>
              <div class="col-5 form-group">
                <fieldset class="form border-Field p-0">
                  <legend class="textoBorda pb-0 mb-0">Status Lib.</legend>
                  <div class="form-row justify-content-around">
                    <div class="d-flex">
                      <div class="radio-group form-radio icheck-primary"><input type="radio" id="rdStausLibTodos" checked name="statusLib" value=""><label for="rdStausLibTodos" class="container escondeRadio">Todos</label></div>
                      <div class="radio-group form-radio icheck-primary"><input type="radio" id="rdStausLibLiberado" name="statusLib" value="L"><label for="rdStausLibLiberado" class="container escondeRadio">Liberado</label></div>
                      <div class="radio-group form-radio icheck-primary"><input type="radio" id="rdStausLibBloqueado" name="statusLib" value="B"><label for="rdStausLibBloqueado" class="container escondeRadio">Bloqueado</label></div>
                    </div>
                  </div>
                </fieldset>
              </div>
              <div class="col-5 form-group">
                <fieldset class="form border-Field p-0">
                  <legend class="textoBorda pb-0 mb-0">Status OC</legend>
                  <div class="form-row justify-content-around">
                    <div class="d-flex">
                      <div class="radio-group form-radio icheck-primary"><input type="radio" id="rdStatusOCTodos" checked name="statusOC" value=""><label for="rdStatusOCTodos" class="container escondeRadio">Todos</label></div>
                      <div class="radio-group form-radio icheck-primary"><input type="radio" id="rdStatusOCLiberado" name="statusOC" value="A"><label for="rdStatusOCLiberado" class="container escondeRadio">Liberado</label></div>
                      <div class="radio-group form-radio icheck-primary"><input type="radio" id="rdStatusOCBloqueado" name="statusOC" value="F"><label for="rdStatusOCBloqueado" class="container escondeRadio">Bloqueado</label></div>
                    </div>
                  </div>
                </fieldset>
              </div>
              <div class="col-2 form-group">
                <button class="btn btn-danger btn-sisp mt-1" type='button' id="btnSelecionarEmpresas">Selecionar Empresas</button>
              </div>
              <div class="col-12 form-group">
                <fieldset class="form border-Field p-0">
                  <legend class="textoBorda pb-0 mb-0">Status itens</legend>
                  <div class="form-row justify-content-around">
                    <div class="d-flex">
                      <div class="form-radio icheck-primary"><input type="checkbox" value="D" id="cbItensDigitados" checked name="statusItens"><label for="cbItensDigitados" class="container escondeRadio">Digitados</label></div>
                      <div class="form-radio icheck-primary"><input type="checkbox" value="B" id="cbItensBloqueados" checked name="statusItens"><label for="cbItensBloqueados" class="container escondeRadio">Bloqueados</label></div>
                      <div class="form-radio icheck-primary"><input type="checkbox" value="R" id="cbItensRetornados" checked name="statusItens"><label for="cbItensRetornados" class="container escondeRadio">Retornados</label></div>
                      <div class="form-radio icheck-primary"><input type="checkbox" value="L" id="cbItensLiberados" checked name="statusItens"><label for="cbItensLiberados" class="container escondeRadio">Liberados</label></div>
                      <div class="form-radio icheck-primary"><input type="checkbox" value="C" id="cbItensCotados" checked name="statusItens"><label for="cbItensCotados" class="container escondeRadio">Cotados</label></div>
                      <div class="form-radio icheck-primary"><input type="checkbox" value="N" id="cbItensCancelados" checked name="statusItens"><label for="cbItensCancelados" class="container escondeRadio">Cancelados</label></div>
                      <div class="form-radio icheck-primary"><input type="checkbox" value="A" id="cbItensAtendidos" checked name="statusItens"><label for="cbItensAtendidos" class="container escondeRadio">Atendidos</label></div>
                    </div>
                  </div>
                </fieldset>
              </div>
              <div class="col-4 form-group">
                <label data-error="wrong" data-success="right" for="dtCadastroDe">Cadastro De/ Até: </label>
                <div class="relative">
                  <div class="input-group">
                    <input type="date" max="2500-12-31" class="input-default focus form-control" id="dtCadastroDe" name="dtCadastroDe" class="form-control">
                    <input type="date" max="2500-12-31" class="input-default focus form-control" id="dtCadastroAte" name="dtCadastroAte" class="form-control">
                  </div>
                </div>
              </div>
              <div class="col-4 form-group">
                <label data-error="wrong" data-success="right" for="dtEntregaDe">Entrega De/ Até: </label>
                <div class="relative">
                  <div class="input-group">
                    <input type="date" max="2500-12-31" class="input-default focus form-control" id="dtEntregaDe" name="dtEntregaDe" class="form-control">
                    <input type="date" max="2500-12-31" class="input-default focus form-control" id="dtEntregaAte" name="dtEntregaAte" class="form-control">
                  </div>
                </div>
              </div>
              <div class="col-4 form-group">
                <label data-error="wrong" data-success="right" for="txtNumero">Número: </label>
                <div class="relative">
                  <div class="input-group">
                    <select class="js-example-programmatic js-states form-control" id="txtNumero" name="txtNumero" multiple="multiple"></select>
                    <div class="input-group-append">
                      <button class="btn bg-danger" id="btnNumero" name="btnNumero" data-button="absolute" type="button"><i class="m-0 p-0 fas fa-search"></i></button>
                      <button class="btn bg-danger" id="btnLimpaNumero" type="button"><i class="m-0 p-0 fas fa-trash"></i></button>
                    </div>
                  </div>
                </div>
              </div>
              <div class="col-4 form-group" id="inputProduto">
                <label data-error="wrong" data-success="right" for="txtProduto">Produto: </label>
                <div class="relative">
                  <div class="input-group">
                    <select class="js-example-programmatic js-states form-control" id="txtProduto" name="txtProduto" multiple="multiple"></select>
                    <div class="input-group-append">
                      <button class="btn bg-danger" id="btnProduto" name="btnProduto" data-button="absolute" type="button"><i class="m-0 p-0 fas fa-search"></i></button>
                      <button class="btn bg-danger" id="btnLimpaProduto" type="button"><i class="m-0 p-0 fas fa-trash"></i></button>
                    </div>
                  </div>
                </div>
              </div>
              <div class="col-4 form-group" id="inputMaterial">
                <label data-error="wrong" data-success="right" for="txtMaterial">Material: </label>
                <div class="relative">
                  <div class="input-group">
                    <select class="js-example-programmatic js-states form-control" id="txtMaterial" name="txtMaterial" multiple="multiple"></select>
                    <div class="input-group-append">
                      <button class="btn bg-danger" id="btnMaterial" name="btnMaterial" data-button="absolute" type="button"><i class="m-0 p-0 fas fa-search"></i></button>
                      <button class="btn bg-danger" id="btnLimpaMaterial" type="button"><i class="m-0 p-0 fas fa-trash"></i></button>
                    </div>
                  </div>
                </div>
              </div>
              <div class="col-4 form-group">
                <label data-error="wrong" data-success="right" for="txtSolicitante">Solicitante: </label>
                <div class="relative">
                  <div class="input-group">
                    <select class="js-example-programmatic js-states form-control" id="txtSolicitante" name="txtSolicitante" multiple="multiple"></select>
                    <div class="input-group-append">
                      <button class="btn bg-danger" id="btnSolicitante" name="btnCor" data-button="absolute" type="button"><i class="m-0 p-0 fas fa-search"></i></button>
                      <button class="btn bg-danger" id="btnLimpaSolicitante" type="button"><i class="m-0 p-0 fas fa-trash"></i></button>
                    </div>
                  </div>
                </div>
              </div>
              <div class="col-4 form-group" id="inputGrupoMat">
                <label data-error="wrong" data-success="right" for="txtGrupoMat">Grupo Material: </label>
                <div class="relative">
                  <div class="input-group">
                    <select class="js-example-programmatic js-states form-control" id="txtGrupoMat" name="txtGrupoMat" multiple="multiple"></select>
                    <div class="input-group-append">
                      <button class="btn bg-danger" id="btnGrupoMat" name="btnCor" data-button="absolute" type="button"><i class="m-0 p-0 fas fa-search"></i></button>
                      <button class="btn bg-danger" id="btnLimpaGrupoMat" type="button"><i class="m-0 p-0 fas fa-trash"></i></button>
                    </div>
                  </div>
                </div>
              </div>
              <div class="col-4 form-group" id="inputSubGrupo">
                <label data-error="wrong" data-success="right" for="txtSubGrupo">Subgrupo Material: </label>
                <div class="relative">
                  <div class="input-group">
                    <select class="js-example-programmatic js-states form-control" id="txtSubGrupo" name="txtSubGrupo" multiple="multiple"></select>
                    <div class="input-group-append">
                      <button class="btn bg-danger" id="btnSubGrupo" name="btnSubGrupo" data-button="absolute" type="button"><i class="m-0 p-0 fas fa-search"></i></button>
                      <button class="btn bg-danger" id="btnLimpaSubGrupo" type="button"><i class="m-0 p-0 fas fa-trash"></i></button>
                    </div>
                  </div>
                </div>
              </div>
              <div class="col-4 form-group">
                <label data-error="wrong" data-success="right" for="txtTipo">Tipo: </label>
                <div class="relative">
                  <div class="input-group">
                    <select class="js-example-programmatic js-states form-control" id="txtTipo" name="txtTipo" multiple="multiple"></select>
                    <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" type="button"><i class="m-0 p-0 fas fa-trash"></i></button>
                    </div>
                  </div>
                </div>
              </div>
              <div class="col-4 form-group">
                <label data-error="wrong" data-success="right" for="txtCor">Cor: </label>
                <div class="relative">
                  <div class="input-group">
                    <select class="js-example-programmatic js-states form-control" id="txtCor" name="txtCor" multiple="multiple"></select>
                    <div class="input-group-append">
                      <button class="btn bg-danger" id="btnCor" name="btnCor" data-button="absolute" type="button"><i class="m-0 p-0 fas fa-search"></i></button>
                      <button class="btn bg-danger" id="btnLimpaCor" type="button"><i class="m-0 p-0 fas fa-trash"></i></button>
                    </div>
                  </div>
                </div>
              </div>
              <div class="col-4 form-group">
                <label data-error="wrong" data-success="right" for="txtCentroCusto">Centro de Custo: </label>
                <div class="relative">
                  <div class="input-group">
                    <select class="js-example-programmatic js-states form-control" id="txtCentroCusto" name="txtCentroCusto" multiple="multiple"></select>
                    <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" type="button"><i class="m-0 p-0 fas fa-trash"></i></button>
                    </div>
                  </div>
                </div>
              </div>
              <div class="col-4 form-group">
                <label data-error="wrong" data-success="right" for="txtCliente">Cliente: </label>
                <div class="relative">
                  <div class="input-group">
                    <select class="js-example-programmatic js-states form-control" id="txtCliente" name="txtCliente" multiple="multiple"></select>
                    <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" type="button"><i class="m-0 p-0 fas fa-trash"></i></button>
                    </div>
                  </div>
                </div>
              </div>
              <div class="col-4 form-group">
                <label data-error="wrong" data-success="right" for="txtComprador">Comprador: </label>
                <div class="relative">
                  <div class="input-group">
                    <select class="js-example-programmatic js-states form-control" id="txtComprador" name="txtComprador" multiple="multiple"></select>
                    <div class="input-group-append">
                      <button class="btn bg-danger" id="btnComprador" name="btnCentroCusto" data-button="absolute" type="button"><i class="m-0 p-0 fas fa-search"></i></button>
                      <button class="btn bg-danger" id="btnLimpaComprador" type="button"><i class="m-0 p-0 fas fa-trash"></i></button>
                    </div>
                  </div>
                </div>
              </div>
              <div class="col-4 form-group">
                <label data-error="wrong" data-success="right" for="txtStatus">Status: </label>
                <div class="relative">
                  <div class="input-group">
                    <select class="js-example-programmatic js-states form-control" id="txtStatus" name="txtStatus" multiple="multiple"></select>
                    <div class="input-group-append">
                      <button class="btn bg-danger" id="btnStatus" name="btnCentroCusto" data-button="absolute" type="button"><i class="m-0 p-0 fas fa-search"></i></button>
                      <button class="btn bg-danger" id="btnLimpaStatus" type="button"><i class="m-0 p-0 fas fa-trash"></i></button>
                    </div>
                  </div>
                </div>
              </div>
              <div class="col-4 form-group">
                <label data-error="wrong" data-success="right" for="txtDeposito">Depósito: </label>
                <div class="relative">
                  <div class="input-group">
                    <select class="js-example-programmatic js-states form-control" id="txtDeposito" name="txtDeposito" multiple="multiple"></select>
                    <div class="input-group-append">
                      <button class="btn bg-danger" id="btnDeposito" name="btnDeposito" data-button="absolute" type="button"><i class="m-0 p-0 fas fa-search"></i></button>
                      <button class="btn bg-danger" id="btnLimpaDeposito" type="button"><i class="m-0 p-0 fas fa-trash"></i></button>
                    </div>
                  </div>
                </div>
              </div>
            </div>
          </div>
          <div class="modal-footer py-0" style="padding-left: 1.25rem">
            <div class="flex col-12 justify-content-between">
              <div class="form-group mb-2">
                <label for="txtOrdem">Opção de Relatório:</label>
                <div class="d-flex align-items-center">
                  <select id="txtOrdem" class="input-default focus custom-select">
                  </select>
                  <button class="btn btn-sm btn-success ml-2 btnEdicaoRelatorio" title="Edição de ordenações">
                    <i class="fas fa-check"></i>
                  </button>
                </div>
              </div>
              <div class="flex align-items-end mb-2">
                <button class="btn btn-danger btn-sisp mr-2" id="btnLimparFiltros" style="max-height: 38px">
                  <span class="fas fa-trash"></span> Limpar Filtros
                </button>
                <button id="btnConsultar" class="btn btn-primary btn-sisp" type="button" style="max-height: 38px">
                  <span class="fas fa-search"></span> Consultar
                </button>
              </div>
            </div>
          </div>
        </div>
      </div>
    </div>

    <!-- Control Sidebar -->
    <aside class="control-sidebar control-sidebar-dark">
      <!-- Control sidebar content goes here -->
    </aside><!-- /.control-sidebar -->
    <?php include_once('../../modais.php'); ?>
  </main><!-- /.wrapper -->

  <script src="plugins/jquery/jquery.min.js?versao=3.265.7.1"></script>
  <script src="dist/js/jquery.maskMoney.min.js?versao=3.265.7.1"></script>
  <script src="plugins/jquery-ui/jquery-ui.min.js?versao=3.265.7.1"></script>
  <script type="text/javascript" src="dist/js/jquery.dataTables.js?versao=3.265.7.1"></script>
  <script type="text/javascript" src="dist/js/dataTables.bootstrap4.min.js?versao=3.265.7.1"></script>
  <script src="plugins/sweetalert2/sweetalert2.min.js?versao=3.265.7.1"></script>
  <script src="plugins/toastr/toastr.min.js?versao=3.265.7.1"></script>
  <script>
    $.widget.bridge('uibutton', $.ui.button);
  </script>
  <script src="plugins/bootstrap/js/bootstrap.bundle.min.js?versao=3.265.7.1"></script>
  <script src="dist/js/adminlte.min.js?versao=3.265.7.1"></script>
  <script src="dist/js/requisicoes.js?versao=3.265.7.1"></script>
  <script src="dist/js/loadingoverlay.min.js?versao=3.265.7.1"></script>
  <script src="dist/js/valida_cpf_cnpj.js?versao=3.265.7.1"></script>
  <script src="plugins/jquery-validation/jquery.validate.min.js?versao=3.265.7.1"></script>
  <script src="dist/js/dataTables.keyTable.js?versao=3.265.7.1"></script>
  <script src="dist/js/sisplan.js?versao=3.265.7.1"></script>
  <script src="utils/funcoes.js?versao=3.265.7.1"></script>
  <script src="utils/cookies.js?versao=3.265.7.1"></script>
  <script src="dist/js/driver.min.js?versao=3.265.7.1"></script>
  <script src="config.js?versao=3.265.7.1"></script>
  <script type="text/javascript" src="plugins/jszip/jszip.min.js?versao=3.265.7.1"></script>
  <script type="text/javascript" src="plugins/pdfmake/pdfmake.min.js?versao=3.265.7.1"></script>
  <script type="text/javascript" src="plugins/pdfmake/vfs_fonts.js?versao=3.265.7.1"></script>
  <script type="text/javascript" src="plugins/datatables-buttons/js/dataTables.buttons.min.js?versao=3.265.7.1"></script>
  <script type="text/javascript" src="plugins/datatables-buttons/js/buttons.html5.min.js?versao=3.265.7.1"></script>
  <script src="plugins/datatables-colreorder/js/dataTables.colReorder.min.js?versao=3.265.7.1"></script>
  <script src="plugins/select2/js/select2.full.min.js?versao=3.265.7.1"></script>
  <script src="https://cdn.datatables.net/select/1.6.0/js/dataTables.select.min.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('RELSOLICITA');
      if (!temAcesso.resultado) {
        toastrAcesso(temAcesso, BASE_URI);
        return;
      }

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


      await insereJavaScriptPagina(sArquivo);

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

</body>

</html>