<!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.263.17.1">

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

  <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 card-body">
              <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 card card-body col-12">
              <h5>Itens</h5>
              <div class="col-sm-12 table-responsive card-body  pt-2 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" 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" id="divCompras" role="tabpanel" aria-labelledby="tabCompras">
                  <div class="card-body">
                    <div class="card">
                      <div class="col-sm-12 table-responsive card-body">
                        <table id="tabelaCompras" class="table table-sm-sisp table-select table-hover" width="100%">
                          <thead></thead>
                          <tbody></tbody>
                        </table>
                      </div>
                    </div>
                  </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="card-body">
                    <div class="card">
                      <div class="col-sm-12 table-responsive card-body">
                        <table id="tabelaConsumos" class="table table-sm-sisp table-select table-hover" width="100%">
                          <thead></thead>
                          <tbody></tbody>
                        </table>
                      </div>
                    </div>
                  </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="card-body">
                    <div class="card">
                      <div class="col-sm-12 table-responsive card-body">
                        <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>
    </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="row">
              <div class="col-md-4 pl-2 form-group">
                <div class="">
                  <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"><label for="rdTipoTodos" class="container escondeRadio">Todos</label></div>
                        <div class="radio-group form-radio icheck-primary"><input type="radio" id="rdTipoMaterial" name="tipo"><label for="rdTipoMaterial" class="container escondeRadio">Material</label></div>
                        <div class="radio-group form-radio icheck-primary"><input type="radio" id="rdTipoProduto" name="tipo"><label for="rdTipoProduto" class="container escondeRadio">Produto</label></div>
                      </div>
                    </div>
                  </fieldset>
                </div>
              </div>
              <div class="col-md-8 pl-2 form-group">
                <div class="">
                  <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>
              <div class="col-md-5 pl-2 form-group">
                <div class="">
                  <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"><label for="rdStausLibTodos" class="container escondeRadio">Todos</label></div>
                        <div class="radio-group form-radio icheck-primary"><input type="radio" id="rdStausLibLiberado" name="statusLib"><label for="rdStausLibLiberado" class="container escondeRadio">Liberado</label></div>
                        <div class="radio-group form-radio icheck-primary"><input type="radio" id="rdStausLibBloqueado" name="statusLib"><label for="rdStausLibBloqueado" class="container escondeRadio">Bloqueado</label></div>
                      </div>
                    </div>
                  </fieldset>
                </div>
              </div>
              <div class="col-md-5 pl-2 form-group">
                <div class="">
                  <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"><label for="rdStatusOCTodos" class="container escondeRadio">Todos</label></div>
                        <div class="radio-group form-radio icheck-primary"><input type="radio" id="rdStatusOCLiberado" name="statusOC"><label for="rdStatusOCLiberado" class="container escondeRadio">Liberado</label></div>
                        <div class="radio-group form-radio icheck-primary"><input type="radio" id="rdStatusOCBloqueado" name="statusOC"><label for="rdStatusOCBloqueado" class="container escondeRadio">Bloqueado</label></div>
                      </div>
                    </div>
                  </fieldset>
                </div>
              </div>
              <button class="btn btn-danger btn-sisp mt-1" type='button' id="btnSelecionarEmpresas">Selecionar Empresas</button>
            </div>
            <div class="row">
              <div class="col-12 pl-2 form-group">
                <div class="">
                  <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>
            </div>

            <div class="row">

              <div class="col-md-4 col-12 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-md-4 col-12 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-md-6 col-lg-4 col-12 form-group">
                <label data-error="wrong" data-success="right" for="txtNumero">Numero: </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-md-6 col-lg-4 col-12 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-md-6 col-lg-4 col-12 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-md-6 col-lg-4 col-12 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-md-6 col-lg-4 col-12 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-md-6 col-lg-4 col-12 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-md-6 col-lg-4 col-12 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-md-6 col-lg-4 col-12 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-md-6 col-lg-4 col-12 form-group">
                <label data-error="wrong" data-success="right" for="txtCentroCusto">Centro 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-md-6 col-lg-4 col-12 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-md-6 col-lg-4 col-12 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-md-6 col-lg-4 col-12 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-md-6 col-lg-4 col-12 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 class="modal-footer">
              <div class="row col-12">
                <div class="col-md-4 col-sm-4 col-12">
                  <label for="txtOrdem">Opção de Relatório:</label>
                  <div class="relative 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="col-6 col-lg-8 d-flex justify-content-end align-items-end pr-0">
                <div class="d-flex">
                  <button class="btn btn-primary btn-sisp mr-2" id="btnLimparFiltros" style="background-color: #B22222; border-color: #B22222">
                    <span class="fas fa-trash"></span> Limpar Filtros
                  </button>
                  <button id="btnConsultar" class="btn btn-primary btn-sisp" type="button">
                    <span class="fas fa-search"></span> Consultar
                  </button>
                </div>
              </div>
              </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.263.17.1"></script>
  <script src="dist/js/jquery.maskMoney.min.js?versao=3.263.17.1"></script>
  <script src="plugins/jquery-ui/jquery-ui.min.js?versao=3.263.17.1"></script>
  <script type="text/javascript" src="dist/js/jquery.dataTables.js?versao=3.263.17.1"></script>
  <script type="text/javascript" src="dist/js/dataTables.bootstrap4.min.js?versao=3.263.17.1"></script>
  <script src="plugins/sweetalert2/sweetalert2.min.js?versao=3.263.17.1"></script>
  <script src="plugins/toastr/toastr.min.js?versao=3.263.17.1"></script>
  <script>
    $.widget.bridge('uibutton', $.ui.button);
  </script>
  <script src="plugins/bootstrap/js/bootstrap.bundle.min.js?versao=3.263.17.1"></script>
  <script src="dist/js/adminlte.min.js?versao=3.263.17.1"></script>
  <script src="dist/js/requisicoes.js?versao=3.263.17.1"></script>
  <script src="dist/js/loadingoverlay.min.js?versao=3.263.17.1"></script>
  <script src="dist/js/valida_cpf_cnpj.js?versao=3.263.17.1"></script>
  <script src="plugins/jquery-validation/jquery.validate.min.js?versao=3.263.17.1"></script>
  <script src="dist/js/dataTables.keyTable.js?versao=3.263.17.1"></script>
  <script src="dist/js/sisplan.js?versao=3.263.17.1"></script>
  <script src="utils/funcoes.js?versao=3.263.17.1"></script>
  <script src="utils/cookies.js?versao=3.263.17.1"></script>
  <script src="dist/js/driver.min.js?versao=3.263.17.1"></script>
  <script src="config.js?versao=3.263.17.1"></script>
  <script type="text/javascript" src="plugins/jszip/jszip.min.js?versao=3.263.17.1"></script>
  <script type="text/javascript" src="plugins/pdfmake/pdfmake.min.js?versao=3.263.17.1"></script>
  <script type="text/javascript" src="plugins/pdfmake/vfs_fonts.js?versao=3.263.17.1"></script>
  <script type="text/javascript" src="plugins/datatables-buttons/js/dataTables.buttons.min.js?versao=3.263.17.1"></script>
  <script type="text/javascript" src="plugins/datatables-buttons/js/buttons.html5.min.js?versao=3.263.17.1"></script>
  <script src="plugins/datatables-colreorder/js/dataTables.colReorder.min.js?versao=3.263.17.1"></script>
  <script src="plugins/select2/js/select2.full.min.js?versao=3.263.17.1"></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.263.17.1`;
      const nomeTela = ('<?php echo basename(__FILE__) ?>').replace('.php', '');
      // nomeTela


      await insereJavaScriptPagina(sArquivo);

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

</body>

</html>