/*-----------------------------
|            FONTES
------------------------------*/
/*@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300&display=swap');*/
/*@import url('https://fonts.googleapis.com/css2?family=Inter&display=swap');*/
@import url('https://fonts.googleapis.com/css2?family=Open+Sans&display=swap');

/*------------------------------
|    CORES PERSONALIZADAS
-------------------------------
#dc3545 > Vermelho Preço Quad-Pro MainPage
#1c2e4a > Azul Fundo Destaque Quad-Pro MainPage
#ebf5fb > Azul Claro Barro Top
#f8f9fa > Cinza Claro (Fundo)
#007bc3 > Azul Claro (Barra Topo)
#343a40 > Cinza Escuro
#001f3f > bg-navy
rgba(0,31,63,.9) > bg-navy
rgba(60,141,188,.85) > bg-navy (Claro)
-----------------------------*/
/*---- Backgrounds ----*/
.bg-gray {
  background-color: #e4e2e2;
}
.bg-purple {
  background-color: #7554ae;
}
.bg-black {
  background-color: #000;
}
.bg-azul-claro-1 {
  background-color: #007bc3;
}
.bg-azul-1 {
  background-color: #1c2e4a;
}
.bg-azul-navy {
  background-color: #1D4362;
}
.bg-barra-topo {
  background-color: #000;/*#ebf5fb;*/
  border-bottom: 4px solid #ffffff;
}
.bg-barra-titulo {
  background-color: #1E90B3;
}
.bg-orange-dark {
  background-color: #ffa901;
}
/*---- Checkout Barra Navegacao Rodape Quadro ----*/
.bg-quadro-rodape {
  background-color: #e4e2e2;
}
/*---- Texto ----*/
.txt-green-dark {
  color: #008000;
}
.txt-orange-dark {
  color: #ffa901;
}
/*---- Botoes ----*/
/*--- btn-info ---*/
.btn-light {
  color: #1f2d3d;
  background-color: #ffffff;
  border-color: #f8f9fa;
  box-shadow: none;
}
.btn-light:hover {
  color: #1f2d3d;
  background-color: #f8f9fa;
  border-color: #f8f9fa;
}
.btn-light:focus, .btn-light.focus {
  color: #1f2d3d;
  background-color: #e2e6ea;
  border-color: #dae0e5;
  box-shadow: 0 0 0 0 rgba(215, 218, 222, 0.5);
}
.btn-light.disabled, .btn-light:disabled {
  color: #1f2d3d;
  background-color: #f8f9fa;
  border-color: #f8f9fa;
}

/*--- btn-olive ---*/
.btn-olive {
  color: #75720f;
  background-color: #ccca8a;
  border-color: #ccca8a;
  box-shadow: none;
}
.btn-olive:hover {
  color: #f8f9fa;
  background-color: #75720f;
  border-color: #75720f;
}
.btn-olive:focus, .btn-olive.focus {
  color: #75720f;
  background-color: #ccca8a;
  border-color: #ccca8a;
  box-shadow: 0 0 0 0 rgba(215, 218, 222, 0.5);
}
.btn-olive.disabled, .btn-olive:disabled {
  color: #75720f;
  background-color: #ccca8a;
  border-color: #ccca8a;
}
/*-----------------------------
|      ESTILOS PRINCIPAIS
------------------------------*/
html,body {
  /*max-width: 1366px;*/
  margin:0 auto;
  height: 100%;
  position: relative;
  min-height: 100%;
  font-family: 'Open Sans', sans-serif;
  /*background-color: $00E9F3F3;*/
  /*background-image: url(/dist/img/bgmoney_gray.jpg)*/;
}

/*-------------------------------
|    CONTAINERS ESPECIFICOS
-------------------------------*/
.wrapper .content-wrapper {
  min-height: calc(100vh - calc(1.8rem + 1px) - calc(1.8rem + 1px));
}
.wrapper .content-wrapper-sem-menu {
  min-height: calc(60vh - calc(2rem + 1px) - calc(2rem + 1px));
}
.content-max-width {
  max-width: 1280px;
}

/*----------------------------
|     PAGINACAO
-----------------------------*/
.page-item, .page-link {
  width:100%;
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  height:22px;
  margin:0;
  padding:0;  
  font-weight: bold;
  text-align: center;
}
.item-clique {
  cursor:pointer;
}
.custom-control-input {
  cursor:pointer;
}


/*-----------------------------
| DROPDOWNS-MENU (BLOQUEADO/ATVO
-----------------------------*/
/* Largura do menu pela metade */
.drop-menu .dropdown-menu {
    min-width: 50% !important;
    padding-top: 0.20rem;
    padding-bottom: 0.20rem;
}
/* Estilo para o item marcado */
.drop-menu .dropdown-menu.bg-dark .dropdown-item.active-selection,
.drop-menu .dropdown-menu.bg-warning .dropdown-item.active-selection {
    background-color: #fff8dc !important; 
    color: #212529 !important;
    font-weight: 600;
}
/* Opcional: remover o hover quando marcado 
    background-color: #fff8dc !important; 
    color: #212529 !important;
    font-weight: 600;
    background-color: #dbe9f4 !important;  azul claro 
    color: #212529 !important;
    font-weight: 600;    
*/
.drop-menu .dropdown-menu.bg-dark .dropdown-item.active-selection:hover,
.drop-menu .dropdown-menu.bg-warning .dropdown-item.active-selection:hover {
    background-color: #495057 !important; /* cinza escuro suave */
    color: #e9ecef !important;             /* texto claro */
    font-weight: 600
}
/* Cores do menu */
.drop-menu .dropdown-menu.bg-dark {
    background-color: #343a40 !important;
}
/* Itens do menu */
.drop-menu .dropdown-menu.bg-dark .dropdown-item {
    background-color: #6c757d !important;
    border-bottom: 1px solid #000;
    color: #fff !important;
}
/* Efeito hover */
.drop-menu .dropdown-menu.bg-dark .dropdown-item:hover {
    background-color: #495057 !important; /* cinza escuro suave */
    color: #e9ecef !important;             /* texto claro */
    font-weight: 600
}
/* ======== Fundo e estilo para BG-WARNING ======== */
.drop-menu .dropdown-menu.bg-warning {
    background-color: #ffc107 !important;
}

.drop-menu .dropdown-menu.bg-warning .dropdown-item {
    background-color: #6c757d !important;
    border-bottom: 1px solid #000;
    color: #fff !important;
}

.drop-menu .dropdown-menu.bg-warning .dropdown-item:hover {
    background-color: #495057 !important; /* cinza escuro suave */
    color: #e9ecef !important;             /* texto claro */
    font-weight: 600
}

/*-----------------------------
|    ESTILO FORMs CADASTRO
-----------------------------*/
form .form-group > .label-cadastro {
  font-size: 13px;
  font-weight: normal;
  margin-bottom: 2px;
}

input.form-control:focus,
select.form-control:focus,
textarea.form-control:focus {
  border-color: #80bdff;
  outline: 0;
  box-shadow: 0 0 0 0.2rem rgba(0,123,255,.25);
}

/*---------------------------
|    REGISTRO LABEL/INPUT
----------------------------*/
.col-form-label  {
  font-size: 14px;
  margin: 0;
}

/*-----------------------------
|      LOGIN / REGISTRO
-----------------------------*/
.login-form input[type="checkbox"] {
  /* Double-sized Checkboxes */
  transform: scale(1.5);
  -ms-transform: scale(1.5); /* IE */
  -moz-transform: scale(1.5); /* FF */
  -webkit-transform: scale(1.5); /* Safari and Chrome */
  -o-transform: scale(1.5); /* Opera */
}
input[type="checkbox"].checkbox-alto {
  /* Double-sized Checkboxes */
  position: relative;
  display: block;
  width: 25px;
  height: 25px;
  border: 1px solid #ced4da;
  content: "";
  background: #FFF;
  margin: 0;
  top: 0;
  left: 0;
}

.login-form .form-check-label {
  font-size: 13px;
  color: #000;
}

.validate {
  margin-bottom: 4px;
  font-weight: 400;
  font-size: .8rem;
  color: red;
}
.login-page {
  min-height:calc(100vh - calc(3.5rem + 1px) - calc(3.5rem + 1px));
  background: url(/dist/img/login_bg.png);
  outline: none;
  border: none;
}

/* Opcional: Estilo de foco */
#f_login_email input:focus {
  border-bottom: 2px solid #007BFF; /* Muda a cor da borda inferior quando em foco */
}
.registro-page {
  min-height: 240px;
  background-color: #f2e8d5;
}

/*========================================/
|
|    ESPECIFICOS
|
=========================================*/ 

/*---------------------------------------
/  AJUSTES ADMINLTE
/--------------------------------------*/
.main-sidebar {
    display: flex;
    flex-direction: column;
}
.main-sidebar .sidebar {
    flex: 1 1 auto;
    overflow-y: auto;
}
li.nav-item > .nav-link.menu_selecionado, li.nav-item.menu-is-opening.menu-open > .nav-link.menu_selecionado {
  color: #fff;
  background-color: #343a40;
  border-left: 3px solid #9c9723;
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
}
ul.nav-treeview > li.nav-item.active a.nav-link {
  color: #fff;
  background-color: #6c757d;
  border-left: 3px solid #9c9723;
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
}
.brand-link img {
  width: 100%;
  max-width: 160px;
  height: auto;
}

/*---------------------------------------
/  AJUSTES DATATABLES
/--------------------------------------*/
.dataTables_wrapper .dataTables_paginate .pagination .page-item .page-link {
  height: 20px;
  margin: 0;
  padding: 2px 1px;
  font-size: 14px; 
  line-height: 20px;
}
table.dataTable {
  margin-top: 0 !important;
}
/* Se quiser personalizar o botão ativo */
.dataTables_wrapper .dataTables_paginate .pagination .page-item.active .page-link {
  margin: 0;
}

/*-----------------------------------------------
/  SWEET ALERTS 
/----------------------------------------------*/
.swal-confirm-danger  {
  border: 2px solid red;
}

/*---------------------------------------
/  AJUSTES SELECT2
/--------------------------------------*/
/* Caixa principal */
.select2-selection--single {
  height: 26px !important;
  font-size: 14px !important;
  padding: 2px 0px !important;
}

/* Campo de busca dentro do dropdown */
.select2-search__field {
  height: 26px !important;
  font-size: 13px !important;
}

/* Itens da lista (options) */
.select2-results__option {
  font-size: 13px !important;
  padding: 4px 10px !important;
  background-color: #dedede;
}

/* Itens da lista (options) */
.select2-container {
  width: 340px !important; /* ajuste conforme necessário */
}
.form-cadastro .select2-container {
  width: auto !important; /* ajuste conforme necessário */
}

/* Aplicar Estilo Bootstrap 4.6 */
.select2-container--default.select2-container--focus .select2-selection {
  border-color: #80bdff;
  box-shadow: 0 0 0 0.2rem rgba(0,123,255,.25);
}

.select2-container--default .select2-selection--single {
  height: 38px; /* altura padrão do .form-control */
  padding: 6px 12px;
  border: 1px solid #ced4da;
  border-radius: 0.25rem;
}

.select2-container--default.select2-container--focus .select2-selection--single {
  border-color: #80bdff;
  box-shadow: 0 0 0 0.2rem rgba(0,123,255,.25);
  outline: 0;
}

/*-----------------------------------------------
/   Barra Progresso
/----------------------------------------------*/
#consulta-progresso {
  width: 100%;
  position: absolute;
  bottom: 3rem;
  font-size: 1.6rem;
  font-weight: bold;
}

.progress {
  height: 50px;
  background-color: #ddd;
  color: #444;
}


/*---------------------------------------
/  LOG_API FORM
/--------------------------------------*/
#form_log_api input {
  height: 24px;
}

/*-------------------------------
|     MENUS
-------------------------------*/
.icone-menu {
  width: 50px;
}
.texto-menu  {
  font-family: 'Open Sans', Tahoma, Verdana, sans-serif;
  font-size: 48px;
}
/*--------------------------------------------------------------
/  # Botao Voltar TOPO
/-------------------------------------------------------------*/
.header-scrolled {
  position: fixed;
  top: 0;
  max-width: 1366px;
  transition: all 0.5s;
  z-index: 997;
  border-bottom: 1px solid #1e4356;
  box-shadow: 0px 0px 10px rgba(127, 137, 161, 10);  
}

.back-to-top {
  position: fixed;
  display: none;
  width: 40px;
  height: 40px;
  border-radius: 3px;
  background: #68A4C4;
  color: #fff;
  transition: display 0.5s ease-in-out;
  z-index: 99999;
}

.back-to-top i {
  font-size: 24px;
  position: absolute;
  top: 8px;
  left: 8px;
}

.back-to-top:hover {
  color: #fff;
  background: #85b6cf;
  transition: background 0.2s ease-in-out;
}
/*-------------------------------------------------------------*/


/* Modal Spinner Full */
.modal-dialog-full-spinner {
  width: 100% !important;
  height: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  max-width:none !important;
}

/*======================================/
|  MEDIA QUERYS - Max-Width: 575.98px
|======================================*/

@media (max-width: 575.98px) {
  .main-header .navbar-nav[class*='-right'] .dropdown-menu {
    left: 0;
    bottom: 0;
    right: auto;
  }
  .brand-link{
    display: block;
    position: relative;
    align-content: flex-start;
    width: 100%;
  }
}

.table-container {
  overflow-y: auto;
  max-height: 80vh; /* Para resoluções menores, baseia na altura da tela */
}
.table-container-grid {
  overflow-y: auto;
  max-height: 68.5vh;
}
.table-container-datagrid {
  overflow-y: auto;
  min-height: 79vh;
  max-height: 79vh;
}
/* Para resoluções maiores (ex: altura >= 900px), trava em no máximo 900px */
@media screen and (min-height: 900px) {
  .table-container {
    overflow-y: auto;
    max-height: 790px;
  }
  .table-container-grid {
    overflow-y: auto;
    max-height: 720px;
  }
  .table-container-datagrid {
    overflow-y: auto;
    min-height: 790px;
    max-height: 790px;
  }  
}