<!DOCTYPE html>
<html>

<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <title>Sisplan Web | Cadastro de Centro de Custo</title>
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <link rel="stylesheet" href="plugins/fontawesome-free/css/all.min.css?versao=3.2310.31.2">
    <link rel="stylesheet" href="dist/css/adminlte.min.css?versao=3.2310.31.2">
    <link href='https://fonts.googleapis.com/css?family=Roboto:400,300,500,600,700,400italic' rel='stylesheet' type='text/css'>
    <link rel="stylesheet" href="dist/css/custom.css?versao=3.2310.31.2">
    <link rel="stylesheet" href="dist/css/sisplan.css?versao=3.2310.31.2">
    <link rel="stylesheet" type="text/css" href="dist/css/dataTables.bootstrap4.min.css?versao=3.2310.31.2" />
    <link rel="shortcut icon" href="favicon.ico">
    <link rel="stylesheet" href="plugins/toastr/toastr.min.css?versao=3.2310.31.2">
    <link rel="stylesheet" type="text/css" href="dist/css/driver.min.css?versao=3.2310.31.2" />
    <link rel="stylesheet" href="dist/css/jquery-ui.css?versao=3.2310.31.2">
    <link rel="stylesheet" href="plugins/tempusdominus-bootstrap-4/css/tempusdominus-bootstrap-4.min.css?versao=3.2310.31.2">
    <link rel="stylesheet" href="plugins/select2/css/select2.min.css?versao=2.1.7">
    <link rel="stylesheet" href="plugins/select2-bootstrap4-theme/select2-bootstrap4.min.css?versao=2.1.7">
    <style>
        .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;
        }


        .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: #343a40;
            margin: 0;
            font-family: Roboto, Arial, sans-serif;
        }

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

        .border-Field-semborda {
            border: 0px solid var(--font-color) !important;
            padding: 0 1.0em 0 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;
        }
    </style>
</head>

<body class="hold-transition sidebar-mini layout-fixed">
    <div class="wrapper">
        <?php
        include_once('../../menu.php');
        ?>
        <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">Cadastro de Centro de Custo</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">
                            <ol class="breadcrumb float-sm-right">
                                <li class="breadcrumb-item"><a href="./index">Início</a></li>
                                <li class="breadcrumb-item active">Cadastro de Centro de Custo</li>
                            </ol>
                        </div>
                    </div>
                </div>
                <div class="row justify-content-center">
                    <div class="col-11 text-center p-0 mt-3">
                        <div class="card px-0 pt-4 pb-4">
                            <div class="card-header text-center flex" style="border: none!important;box-shadow:none!important;">
                                <h2>Cadastro de Banco
                                    <button type="button" class="btn btn-info btn-sm ml-2" title="Tutorial" style="color: white;" id="tutorial">
                                        <i class="fas fa-question-circle"></i>
                                    </button>
                                </h2>
                            </div>
                            <div class="col-md-12 col-12 col-sm-12 mx-0" style="padding-right: 0px !important; padding-left: 0px !important">
                                <div class="form-card">
                                    <div class="row col-12 col-sm-12 col-md-12">
                                        <div class="form-group col-sm-12 col-md-12 col-12" style="margin: 0px !important">
                                            <div class="col-md-3 col-3 col-sm-12 form-group" style="margin-bottom: 0px !important">
                                                <label data-error="wrong" class="labelGeral" data-success="right" for="txtCodigo">Código: </label>
                                                <div class="input-group">
                                                    <input type="text" class="input-default focus form-control" id="txtCodigo" name="txtCodigo" placeholder="Código">
                                                    <div class="input-group-append">
                                                        <button class="btn btn-sisp bg-danger" id="btnCodigo" name="btnCodigo" data-button="absolute" type="button"><i class="m-0 p-0 fas fa-search"></i></button>
                                                        <button class="btn btn-sisp bg-danger" id="btnACodigo" type="button"><i class="m-0 p-0 fas fa-trash"></i></button>
                                                    </div>
                                                </div>
                                            </div>
                                            <div class="col-md-3 col-3 col-sm-12 form-group" style="margin-bottom: 0px !important">
                                                <label data-error="wrong" class="labelGeral" data-success="right" for="txtEstrutura">Estrutura: </label>
                                                <div class="input-group">
                                                    <input type="text" class="input-default focus form-control" id="txtEstrutura" name="txtEstrutura" placeholder="Estrutura">
                                                    <div class="input-group-append">
                                                        <button class="btn btn-sisp bg-danger" id="btnAEstrutura" type="button"><i class="m-0 p-0 fas fa-trash"></i></button>
                                                    </div>
                                                </div>
                                            </div>
                                            <div class="col-md-3 col-3 col-sm-12 form-group" style="margin-bottom: 0px !important">
                                                <label data-error="wrong" class="labelGeral" data-success="right" for="txtEstrutura">Tipo: </label>
                                                <select id="rgClassificacao" class="input-default focus custom-select">
                                                    <option value="" selected disabled>Selecione uma opção</option>
                                                    <option value="T">Título</option>
                                                    <option value="A">Analítica</option>
                                                </select>
                                            </div>
                                            <div class="col-md-3 col-3 col-sm-12 form-group" style="margin-bottom: 0px !important">
                                                <div class="col-md-12 col-12 col-sm-12 form-group">
                                                    <fieldset class="form border-Field p-0">
                                                        <legend class="textoBorda pb-0 mb-0">Custo</legend>
                                                        <div class="form-row">
                                                            <div class="icheck-primary col-12 col-sm-12 col-md-12"><input type="checkbox" value="F" id="cbCustoFixo"><label class="labelCheck" for="cbCustoFixo"> Fixo</label></div>
                                                            <div class="icheck-primary col-12 col-sm-12 col-md-12"><input type="checkbox" value="V" id="cbCustoVariavel"><label class="labelCheck" for="cbCustoVariavel"> Varíavel</label></div>
                                                        </div>
                                                    </fieldset>
                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                    <div class="row col-12 col-sm-12 col-md-12">
                                        <div class="form-group d-flex col-sm-12 col-md-12 col-12" style="margin: 0px !important">
                                            <div class="col-md-6 col-6 col-sm-12 form-group">
                                                <label data-error="wrong" class="labelGeral" data-success="right" for="txtDescricao">Descrição</label>
                                                <div class="input-group">
                                                    <input type="text" class="input-default focus form-control" id="txtDescricao" name="txtDescricao" placeholder="Descrição">
                                                    <div class="input-group-append">
                                                        <button class="btn btn-sisp bg-danger" id="btnADescricao" type="button"><i class="m-0 p-0 fas fa-trash"></i></button>
                                                    </div>
                                                </div>
                                            </div>
                                            <div class="col-md-3 col-3 col-sm-12 form-group">
                                                <label data-error="wrong" class="labelGeral" data-success="right" for="txtGrupoCC">Grupo: </label>
                                                <div class="input-group">
                                                    <input type="text" class="input-default focus form-control" id="txtGrupoCC" name="txtGrupoCC" placeholder="Grupo de Centro de Custo">
                                                    <div class="input-group-append">
                                                        <button class="btn btn-sisp bg-danger" id="btnGrupoCC" name="btnGrupoCC" data-button="absolute" type="button"><i class="m-0 p-0 fas fa-search"></i></button>
                                                        <button class="btn btn-sisp bg-danger" id="btnAGrupoCC" type="button"><i class="m-0 p-0 fas fa-trash"></i></button>
                                                    </div>
                                                </div>
                                            </div>
                                            <div class="col-md-3 col-3 col-sm-12 mt-3">
                                                <div class="col-md-12 col-12 col-sm-12 form-group">
                                                    <fieldset class="form border-Field-semborda">
                                                        <div class="icheck-primary col-12 col-sm-12 col-md-12"><input type="checkbox" value="F" id="cbCustoFixo"><label class="labelCheck" for="cbCustoFixo">Ativo</label></div>
                                                        <div class="icheck-primary col-12 col-sm-12 col-md-12"><input type="checkbox" value="V" id="cbCustoVariavel"><label class="labelCheck" for="cbCustoVariavel"> Produção</label></div>
                                                    </fieldset>
                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                    <div class="row col-12 col-sm-12 col-md-12">
                                        <div class="form-group d-flex col-sm-12 col-md-12 col-12">
                                            <div class="col-md-3 col-3 col-sm-12 form-group">
                                                <label data-error="wrong" class="labelGeral" data-success="right" for="txtResponsavel">Responsável: </label>
                                                <div class="input-group">
                                                    <input type="text" class="input-default focus form-control" id="txtResponsavel" name="txtResponsavel" placeholder="Responsável">
                                                    <div class="input-group-append">
                                                        <button class="btn btn-sisp bg-danger" id="btnResponsavel" name="btnResponsavel" data-button="absolute" type="button"><i class="m-0 p-0 fas fa-search"></i></button>
                                                        <button class="btn btn-sisp bg-danger" id="btnAResponsavel" type="button"><i class="m-0 p-0 fas fa-trash"></i></button>
                                                    </div>
                                                </div>
                                            </div>
                                            <div class="col-md-3 col-3 col-sm-12 form-group">
                                                <label data-error="wrong" class="labelGeral" data-success="right" for="txtResponsavel2">Responsável: </label>
                                                <div class="input-group">
                                                    <input type="text" class="input-default focus form-control" id="txtResponsavel2" name="txtResponsavel2" placeholder="Responsável">
                                                    <div class="input-group-append">
                                                        <button class="btn btn-sisp bg-danger" id="btnResponsavel2" name="btnResponsavel2" data-button="absolute" type="button"><i class="m-0 p-0 fas fa-search"></i></button>
                                                        <button class="btn btn-sisp bg-danger" id="btnAResponsavel2" type="button"><i class="m-0 p-0 fas fa-trash"></i></button>
                                                    </div>
                                                </div>
                                            </div>
                                            <div class="col-md-3 col-3 col-sm-12 form-group">
                                                <label data-error="wrong" class="labelGeral" data-success="right" for="txtNegocio">Negócio: </label>
                                                <div class="input-group">
                                                    <input type="text" class="input-default focus form-control" id="txtNegocio" name="txtNegocio" placeholder="Negócio">
                                                    <div class="input-group-append">
                                                        <button class="btn btn-sisp bg-danger" id="btnNegocio" name="btnNegocio" data-button="absolute" type="button"><i class="m-0 p-0 fas fa-search"></i></button>
                                                        <button class="btn btn-sisp bg-danger" id="btnANegocio" type="button"><i class="m-0 p-0 fas fa-trash"></i></button>
                                                    </div>
                                                </div>
                                            </div>
                                            <div class="col-md-3 col-3 col-sm-12 form-group">
                                                <label for="txtOrdem">Ordenação de Relatório:</label>
                                                <div class="relative">
                                                    <select id="txtOrdem" class="input-default focus custom-select">
                                                        <option>Código</option>
                                                    </select>
                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                    <div class="row col-12 col-sm-12 col-md-12 justify-content-start">
                                        <div class="form-group d-flex col-sm-12 col-md-12 col-12">
                                            <div class="col-md-12 col-12 col-sm-12 form-group">
                                                <label for="txtOrdem">Obs: </label>
                                                <textarea class="input-default focus form-control" style="resize: none; font-size:medium; min-height: 100px;">

                                                </textarea>
                                            </div>
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
            <div>

            </div>
        </div>
    </div>
    <?php
    include_once('../../footer.php');
    ?>
    <aside class="control-sidebar control-sidebar-dark">
    </aside>
    </div>
    <script src="plugins/jquery/jquery.min.js?versao=3.2310.31.2"></script>
    <script type="text/javascript" src="dist/js/jquery.dataTables.js?versao=3.2310.31.2"></script>
    <script type="text/javascript" src="dist/js/dataTables.bootstrap4.min.js?versao=3.2310.31.2"></script>
    <script src="plugins/jquery-ui/jquery-ui.min.js?versao=3.2310.31.2"></script>
    <script>
        $.widget.bridge('uibutton', $.ui.button);
    </script>
    <script src="plugins/bootstrap/js/bootstrap.bundle.min.js?versao=3.2310.31.2"></script>
    <script src="dist/js/adminlte.min.js?versao=3.2310.31.2"></script>
    <script src="dist/js/sisplan.js?versao=3.2310.31.2"></script>
    <script src="utils/funcoes.js?versao=3.2310.31.2"></script>
    <script src="utils/cookies.js?versao=3.2310.31.2"></script>
    <script src="dist/js/requisicoes.js?versao=3.2310.31.2"></script>
    <script src="dist/js/loadingoverlay.min.js?versao=3.2310.31.2"></script>
    <script src="dist/js/driver.min.js?versao=3.2310.31.2"></script>
    <script src="plugins/toastr/toastr.min.js?versao=3.2310.31.2"></script>
    <script src="plugins/select2/js/select2.full.min.js?versao=3.2310.31.2"></script>
    <script type="text/javascript" src="dist/js/sum().js?versao=3.2310.31.2"></script>
    <script type="text/javascript" src="config.js?versao=3.2310.31.2"></script>
    <script src="plugins/moment/moment.min.js?versao=2.6.8"></script>
    <script src="plugins/tempusdominus-bootstrap-4/js/tempusdominus-bootstrap-4.min.js?versao=2.6.8"></script>
    <script src="dist/js/jquery.mask.min.js?versao=3.2310.31.2"></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('CADCENTROCUSTO');
            if (!temAcesso.resultado) {
                toastrAcesso(temAcesso, BASE_URI);
                return;
            }

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

        });
    </script>
</body>

</html>