@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600&display=swap');

::after,
::before {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}
/* mudanças feitas na cor do menu na alteração dos temas */ 
:root {
  --header-bg-light: #133152;
  --header-bg-dark: #333;
  --sidebar-bg-light: #133152;
  --sidebar-bg-dark: #333;
}
/*fim das mudanças feitas na cor do menu na alteração dos temas */ 

a {
    text-decoration: none;
}

li {
    list-style: none;
}

h1 {
    font-weight: 600;
    font-size: 1.5rem;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color:rgba(var(--bs-gray-500-rgb), var(--bs-text-opacity))
}

.wrapper {
    display: flex;
}

.main {
    min-height: 100vh;
    width: 100%;
    overflow: hidden;
    transition: all 0.35s ease-in-out;
    background-color:rgba(var(--bs-gray-rgb), var(--bs-text-opacity))
}

#sidebar {
    width: 70px;
    min-width: 70px;
    z-index: 1000;
    transition: all .25s ease-in-out;
    background-color: var(--sidebar-bg-light);
    display: flex;
    flex-direction: column;
}

#sidebar.expand {
    width: 260px;
    min-width: 260px;
}

.toggle-btn {
    background-color: transparent;
    cursor: pointer;
    border: 0;
    padding: 1rem 1.5rem;
}

.toggle-btn i {
    font-size: 1.5rem;
    color: #FFF;
}

.sidebar-logo {
    margin: auto 0;
}

.sidebar-logo a {
    color: #FFF;
    font-size: 1.15rem;
    font-weight: 600;
}

#sidebar:not(.expand) .sidebar-logo,
#sidebar:not(.expand) a.sidebar-link span {
    display: none;
}

.sidebar-nav {
    padding: 5rem 0;
    flex: 1 1 auto;
}

a.sidebar-link {
    padding: .625rem 1.625rem;
    color: #FFF;
    display: block;
    font-size: 0.9rem;
    white-space: nowrap;
    border-left: 3px solid transparent;
}

.sidebar-link i {
    font-size: 1.1rem;
    margin-right: .75rem;
}

a.sidebar-link:hover {
  background-color: var(--sidebar-bg-light);
    color: #fff;
    border-left: 3px solid #e44c4c;
}

.sidebar-item {
    position: relative;
}

#sidebar:not(.expand) .sidebar-item .sidebar-dropdown {
    position: absolute;
    top: 0;
    left: 70px;
    background-color: var(--sidebar-bg-light);
    padding: 0;
    min-width: 17rem;
    display: none;
    /* adição das configurações de mais filhos no dropdonw do power bi*/
     z-index: 999; /* garante que fique sobre os demais elementos */
    max-height: 400px; /* Aumente esse valor se necessário */
    overflow-y: auto;  /* Adiciona scroll vertical se exceder o tamanho */
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
    border-radius: 5px;
}

#sidebar:not(.expand) .sidebar-item:hover .has-dropdown+.sidebar-dropdown {
    display: block;
    max-height: 15em;
    width: 100%;
    opacity: 1;
}

#sidebar.expand .sidebar-link[data-bs-toggle="collapse"]::after {
    border: solid;
    border-width: 0 .075rem .075rem 0;
    content: "";
    display: inline-block;
    padding: 2px;
    position: absolute;
    right: 1.5rem;
    top: 1.4rem;
    transform: rotate(-135deg);
    transition: all .2s ease-out;
}

#sidebar.expand .sidebar-link[data-bs-toggle="collapse"].collapsed::after {
    transform: rotate(45deg);
    transition: all .2s ease-out;
}
/* Ajuste para os itens do dropdown quando sidebar está recolhido */
#sidebar:not(.expand) .sidebar-item .sidebar-dropdown .sidebar-item .sidebar-link {
    padding: .625rem 1.625rem;
    color: #FFF;
    white-space: nowrap;
    border-left: 3px solid transparent;
}

#sidebar:not(.expand) .sidebar-item .sidebar-dropdown .sidebar-item .sidebar-link:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: #fff;
    border-left: 3px solid #e44c4c;
}

/* Ajuste para alinhar os ícones e textos no dropdown recolhido */
#sidebar:not(.expand) .sidebar-item .sidebar-dropdown .sidebar-link i {
    margin-right: .75rem;
    font-size: 1.1rem;
}
#sidebar:not(.expand) .sidebar-item .sidebar-dropdown .sidebar-link {
    padding: .625rem 1.625rem;
    color: #FFF;
    white-space: nowrap;
    border-left: 3px solid transparent;
    background-color: transparent;
}

#sidebar:not(.expand) .sidebar-item .sidebar-dropdown .sidebar-link:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-left: 3px solid #e44c4c;
}
/*-------------------------------*/
/*      Deixar fixo sidebar      */
/*-------------------------------*/
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1001;
  height: 60px;
}

#sidebar {
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  z-index: 1002;
}

.main {
  margin-top: 60px; /* Ajuste conforme a altura do seu header */
  margin-left: 60px; /* Ajuste conforme a largura inicial do sidebar */
  height: 100vh;
  overflow-y: auto;
  box-sizing: border-box;
  width: calc(100% - 60px); /* Ajuste conforme a largura inicial do sidebar */
}

#sidebar.expand {
  width: 260px;
}

.main.expand {
  margin-left: 260px;
  width: calc(100% - 260px);
}
.toggle-btn {
  position: fixed; /* Fixa o botão na tela */
  top: 10px; /* Ajuste a posição vertical conforme necessário */
  left: 1px; /* Ajuste a posição horizontal conforme necessário */
  z-index: 1003; /* Garante que o botão fique acima do sidebar e do header */
  background-color: transparent;
  cursor: pointer;
  border: 0;
  padding: 1rem 1.5rem;
}
/* Ajuste para dispositivos móveis */
@media (max-width: 768px) {
  .toggle-btn {
      left: 5px;
      top: 5px;
  }

  .main {
      margin-left: 0; /* Remove a margem esquerda em dispositivos móveis */
      width: 100%; /* Ocupa a largura total da tela */
  }

  .main.expand {
      margin-left: 260px; /* Mantém a margem quando o sidebar está expandido */
      width: calc(100% - 260px);
  }

  #sidebar {
      width: 0;
      overflow: hidden;
  }

  #sidebar.expand {
      width: 260px;
      overflow: auto;
  }
}
/*-------------------------------*/
/*           Botão do tema novo   */
/*-------------------------------*/
.bd-placeholder-img {
  font-size: 1.125rem;
  text-anchor: middle;
  -webkit-user-select: none;
  -moz-user-select: none;
  user-select: none;
}

@media (min-width: 768px) {
  .bd-placeholder-img-lg {
    font-size: 3.5rem;
  }
}

.b-example-divider {
  width: 100%;
  height: 3rem;
  background-color: rgba(0, 0, 0, .1);
  border: solid rgba(0, 0, 0, .15);
  border-width: 1px 0;
  box-shadow: inset 0 .5em 1.5em rgba(0, 0, 0, .1), inset 0 .125em .5em rgba(0, 0, 0, .15);
}

.b-example-vr {
  flex-shrink: 0;
  width: 1.5rem;
  height: 100vh;
}

.bi {
  vertical-align: -.125em;
  fill: currentColor;
}

.nav-scroller {
  position: relative;
  z-index: 2;
  height: 2.75rem;
  overflow-y: hidden;
}

.nav-scroller .nav {
  display: flex;
  flex-wrap: nowrap;
  padding-bottom: 1rem;
  margin-top: -1px;
  overflow-x: auto;
  text-align: center;
  white-space: nowrap;
  -webkit-overflow-scrolling: touch;
}

.btn-bd-primary {
  --bd-violet-bg: #712cf9;
  --bd-violet-rgb: 112.520718, 44.062154, 249.437846;

  --bs-btn-font-weight: 600;
  --bs-btn-color: var(--bs-white);
  --bs-btn-bg: var(--bd-violet-bg);
  --bs-btn-border-color: var(--bd-violet-bg);
  --bs-btn-hover-color: var(--bs-white);
  --bs-btn-hover-bg: #6528e0;
  --bs-btn-hover-border-color: #6528e0;
  --bs-btn-focus-shadow-rgb: var(--bd-violet-rgb);
  --bs-btn-active-color: var(--bs-btn-hover-color);
  --bs-btn-active-bg: #5a23c8;
  --bs-btn-active-border-color: #5a23c8;
}

.bd-mode-toggle {
  z-index: 1500;
}

.bd-mode-toggle .dropdown-menu .active .bi {
  display: block !important;
}
/*-------------------------------*/
/*           Botão de Sair      */
/*-------------------------------*/
button, input, optgroup, select, textarea {
  background-color: transparent;
  border: transparent;
}
.sidebar-footer .sidebar-item {
 
  color: white;}



/*-------------------------------*/
/*           Botão do tema       */
/*-------------------------------*/
.theme-toggle {
  padding: 10px;
  text-align: center;
}

.theme-toggle select {
  width: 100%;
  padding: 5px;
  border-radius: 5px;
}

header {
  background-color: var(--header-bg-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header-content {
  display: flex;
  align-items: center;
}

@media (max-width: 768px) {
  #sidebar {
      display: none; /* Oculta o sidebar em dispositivos móveis */
  }

  #sidebar.expand {
      display: flex; /* Mostra o sidebar quando expandido */
  }
}
.sidebar-footer .sidebar-item {
  margin: 0; /* Remove margens se necessário */
}

.sidebar-footer .sidebar-link {
  padding: .625rem 1.625rem; /* Mesma padronização de padding */
  color: var(--sidebar-text-color); /* Usar a variável de cor */
  display: flex; /* Para alinhar o ícone e o texto */
  align-items: center; /* Centraliza verticalmente */
  text-decoration: none; /* Remove o sublinhado */
}

.sidebar-footer .sidebar-link:hover {
  background-color: rgba(255, 255, 255, .075); /* Efeito hover */
}

/*-------------------------------*/
/*       painel principal        */
/*-------------------------------*/

.app-body{
  display: flex;
  margin-left: 2px;
}
.app-body .main {
  flex: 1;
  min-width: 0;
}
main {
  padding-bottom: 30px;
}
.main .container-fluid{
  padding: 0 5px;
}
.container-fluid{
  width: 100%;
  margin-left: auto;
}

@media (min-width: 1200px) {
  .col-xl-3 {
      min-height: 1px;
      padding-right: 10px;
      padding-left: 10px;
      flex: 0 0 25%;
      max-width: 25%;
  }
}

/* Tamanhos dos cards tela principal */
@media (min-width: 1250px) {
  .min-h-280px {
      min-height: 300px;
  }
}
/* alterações feitas no menu de filtros*/
#div_menu{
  padding: 10px;
}
#nm_filial{
  display: flex;
  flex-direction: column; 
  gap: 10px; 
  padding: 5px;
  box-shadow: 0 1px 2.94px .06px rgba(4, 26, 55, .16);
  border-radius: 5px;
  margin: 15px 0;
}
#menu_filtros{
  display: flex;
  flex-direction: column; 
  gap: 10px; 
  padding: 5px;
  box-shadow: 0 1px 2.94px .06px rgba(4, 26, 55, .16);
  border-radius: 5px;
  background: var(--bs-body-bg);
}
.form-select {
  text-align: center  ;
}
@media (min-width: 768px) {
  #colfilt {
      padding: 10px;
      margin: auto;
      
  }
}
/* fim das alterações do menu de filtros*/
#container {
  display: flex;
  flex-direction: column; /* Empilha verticalmente */
  gap: 10px; /* Define espaçamento entre os elementos */
}

.card {
  padding: 5px;
  box-shadow: 0 1px 2.94px .06px rgba(4, 26, 55, .16);
  border-radius: 5px;
  margin: 15px 0;
  text-align: justify;
  --bs-card-border-width: var(--bs-border-color-translucent);

}
.card.min-h-280px {
  transition: transform 0.3s ease, box-shadow 0.3s ease; /* Adiciona transições suaves */
}
.card.callout.w-100 {
  transition: transform 0.3s ease, box-shadow 0.3s ease; /* Adiciona transições suaves */
}
.card.min-h-280px:hover {
  transform: translateY(-5px); /* Move o card 5 pixels para cima */
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2); /* Adiciona uma sombra */
}

.card.callout.w-100:hover {
  transform: translateY(-5px); /* Move o card 5 pixels para cima */
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2); /* Adiciona uma sombra */
}

/* estilos card vendas*/

.text-muted{
  color:rgba(var(--bs-white-rgb), var(--bs-text-opacity))
}
.titulo-valor{
  color:rgba(var(--bs-white-rgb), var(--bs-text-opacity))
}
.text-uppercase {
  text-transform: uppercase !important;
  font-size: 20px;
  font-weight: 700;
}
.titulo-percent {
  font-size: 15px;
}
.faturamento-card {
  background: linear-gradient(45deg, #FF5370, #ff869a);
  color: white;
  transition: background 0.3s ease-in-out;
  font-family:Poppins,sans-serif
}

.faturamento-card.above-100 {
  background: linear-gradient(45deg, #2ed8b6, #59e0c5);
} 
.faturamento-card.above-100 .titulo-text i {
  color: #2ed8b6; /* Cor do ícone quando a porcentagem for maior que 100 */
}

.card .card-header {
  border-bottom: 0 solid #e2e5e8;
  position: relative;
}
.cmv-card {
  background: linear-gradient(45deg, #FF5370, #ff869a);
  color: white;
  transition: background 0.3s ease-in-out;
  font-family:Poppins,sans-serif
}

.cmv-card.above-100 {
  background: linear-gradient(45deg, #2ed8b6, #59e0c5);
} 

.cmv-card.above-100 .titulo-text i {
  color: #2ed8b6; /* Cor do ícone quando a porcentagem for maior que 100 */
}

.clientes-card {
  background: linear-gradient(45deg, #FF5370, #ff869a);
  color: white;
  transition: background 0.3s ease-in-out;
  font-family:Poppins,sans-serif
}

.clientes-card.above-100 {
  background: linear-gradient(45deg, #2ed8b6, #59e0c5);
} 
.clientes-card.above-100 .titulo-text i {
  color: #2ed8b6; /* Cor do ícone quando a porcentagem for maior que 100 */
}
.ticket-card {
  background: linear-gradient(45deg, #FF5370, #ff869a);
  color: white;
  transition: background 0.3s ease-in-out;
  font-family:Poppins,sans-serif
}

.ticket-card.above-100 {
  background: linear-gradient(45deg, #2ed8b6, #59e0c5);
} 
.ticket-card.above-100 .titulo-text i {
  color: #2ed8b6; /* Cor do ícone quando a porcentagem for maior que 100 */
}
.data-card {
  background: linear-gradient(45deg, #FF5370, #ff869a);
  color: white;
  transition: background 0.3s ease-in-out;
  font-family:Poppins,sans-serif
}

.data-card.above-100 {
  background: linear-gradient(45deg, #2ed8b6, #59e0c5);
}
.data-card.above-100 .titulo-text i {
  color: #2ed8b6; /* Cor do ícone quando a porcentagem for maior que 100 */
} 
.itens-card {
  background: linear-gradient(45deg, #FF5370, #ff869a);
  color: white;
  transition: background 0.3s ease-in-out;
  font-family:Poppins,sans-serif
}

.itens-card.above-100 {
  background: linear-gradient(45deg, #2ed8b6, #59e0c5);
}
.itens-card.above-100 .titulo-text i {
  color: #2ed8b6; /* Cor do ícone quando a porcentagem for maior que 100 */
} 
.marcapropria-card {
  background: linear-gradient(45deg, #FF5370, #ff869a);
  color: white;
  transition: background 0.3s ease-in-out;
  font-family:Poppins,sans-serif
}

.marcapropria-card.above-100 {
  background: linear-gradient(45deg, #2ed8b6, #59e0c5);
}
.marcapropria-card.above-100 .titulo-text i {
  color: #2ed8b6; /* Cor do ícone quando a porcentagem for maior que 100 */
}
.crm-card {
  background: linear-gradient(45deg, #FF5370, #ff869a);
  color: white;
  transition: background 0.3s ease-in-out;
  font-family:Poppins,sans-serif
}

.crm-card.above-100 {
  background: linear-gradient(45deg, #2ed8b6, #59e0c5);
}
.crm-card.above-100 .titulo-text i {
  color: #2ed8b6; /* Cor do ícone quando a porcentagem for maior que 100 */
}
.fpop-card {
  background: linear-gradient(45deg, #FF5370, #ff869a);
  color: white;
  transition: background 0.3s ease-in-out;
  font-family:Poppins,sans-serif
}

.fpop-card.above-100 {
  background: linear-gradient(45deg, #2ed8b6, #59e0c5);
}
.fpop-card.above-100 .titulo-text i {
  color: #2ed8b6; /* Cor do ícone quando a porcentagem for maior que 100 */
}
.multicanal-card {
  background: linear-gradient(45deg, #FF5370, #ff869a);
  color: white;
  transition: background 0.3s ease-in-out;
  font-family:Poppins,sans-serif
}

.multicanal-card.above-100 {
  background: linear-gradient(45deg, #2ed8b6, #59e0c5);
}
.multicanal-card.above-100 .titulo-text i {
  color: #2ed8b6; /* Cor do ícone quando a porcentagem for maior que 100 */
}  
.data-margem-card {
  background: linear-gradient(45deg, #FF5370, #ff869a);
  color: white;
  transition: background 0.3s ease-in-out;
  font-family:Poppins,sans-serif
}

.data-margem-card.above-100 {
  background: linear-gradient(45deg, #2ed8b6, #59e0c5);
}
.data-margem-card.above-100 .titulo-text i {
  color: #2ed8b6; /* Cor do ícone quando a porcentagem for maior que 100 */
} 

.titulo-text {
  display: flex; /* Define o container como flexível */
  align-items: center; /* Alinha verticalmente os itens */
}
.titulo-text i {
  margin-right: 10px;
  font-size: 24px; /* Aumenta o tamanho do ícone */
  display: inline-flex; /* Permite centralizar o ícone */
  align-items: center; /* Centraliza verticalmente */
  justify-content: center; /* Centraliza horizontalmente */
  width: 2.5em; /* Define a largura do círculo */
  height: 2.5em; /* Define a altura do círculo */
  border-radius: 50%; /* Cria um círculo */
  background-color: white; /* Cor de fundo branca */
  color: #FF5370; /* Cor do ícone (opcional, para garantir contraste) */
}
     /* Ajuste para melhor responsividade */

canvas {
    width: 100% !important;
    max-width: 100% !important;
   
}


.row {
  --bs-gutter-x: 0;}
  
#supervisores{
  padding-right: calc(var(--bs-gutter-x)* -0.5);
  padding-left: calc(var(--bs-gutter-x)* -0.5);
}
#tb_lojas{
  padding-right: calc(var(--bs-gutter-x)* -0.5);
  padding-left: calc(var(--bs-gutter-x)* -0.5);
}
#tb_vendedores {
  padding-right: calc(var(--bs-gutter-x)* -0.5);
  padding-left: calc(var(--bs-gutter-x)* -0.5);
}
#gf_hora {
  padding-right: calc(var(--bs-gutter-x)* -0.5);
  padding-left: calc(var(--bs-gutter-x)* -0.5);
}
  /* alinhamento tabelas*/
.text-left { text-align: left; }
.text-right { text-align: right; }

/* alteração das cores do menu caso mude o tema */
[data-bs-theme="dark"] header {
  background-color: var(--header-bg-dark);
}

[data-bs-theme="dark"] #sidebar {
  background-color: var(--sidebar-bg-dark);
}

[data-bs-theme="dark"] a.sidebar-link:hover {
  background-color: var(--sidebar-bg-dark);
  border-left: 3px solid #3b7ddd;
}

[data-bs-theme="dark"] #sidebar:not(.expand) .sidebar-item .sidebar-dropdown {
  background-color: var(--sidebar-bg-dark);
  border-left: 3px solid #3b7ddd;
}
[data-bs-theme="light"] .wrapper {
background: #f6f7fb;
}
[data-bs-theme="auto"] .wrapper {
  background: #f6f7fb;
  }
/* fim da alteração*/

/*Inicio Page header */ 
.pcoded-main-container .page-header {
  margin-bottom: 30px;
}
.page-header {
  background: var(--bs-body-bg);
  padding: 10px;
  border-radius: 5px;
}
.card, .page-header {
  box-shadow: 0 1px 2.94px .06px rgba(4, 26, 55, .16);
}
.h5, h5 {
  text-align: start;
}
/*Fim page header */

.header-logo {
  height: 40px;
  margin-right: 10px;
  vertical-align: middle;
  margin-left: 80px;
}
  #btn_limpar{
      margin: auto;
  }
/*Tentativa de ajuste geral dos elementos no mobile*/
@media (max-width: 768px) {
  /* Reduzindo o tamanho da fonte */
  body {
      font-size: 1.0rem; /* Ajuste conforme necessário */
  }

  .card {
      padding: 7px; /* Reduzindo o padding dos cartões */
  }

  .titulo-text {
      font-size: 1.0rem; /* Ajuste do tamanho do título */
  }

  .titulo-valor {
      font-size: 1.2rem; /* Ajuste do tamanho do valor */
  }

  .data-boxes td {
      font-size: 1.0rem; /* Ajuste do tamanho da tabela */
  }
  table.dataTable {

    font-size: xx-small;
  }

  /* Ajustando o tamanho dos botões */
  .btn {
      font-size: 0.8rem; /* Ajuste do tamanho do botão */
      padding: 5px 10px; /* Ajuste do padding do botão */
  }
  .container{
    --bs-gutter-x: 0.0rem;
  }
  .main .container-fluid {
    padding: 0px 0px;
    font-size: x-small;
}

}
/* Estilo para o carregador */
#loader {
  position: fixed;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(255, 255, 255, 0.534);
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Estilo para a imagem do carregador */
#loader img {
  max-width: 700px; /* Ajuste o tamanho conforme necessário */
  max-height: 700px; /* Ajuste o tamanho conforme necessário */
}
/* fim estilo carregamento */
#card-total-profit .card-body {
  background: linear-gradient(45deg, #2ed8b6, #59e0c5);
  border-radius: 10px;
  /*box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);*/
  padding: 20px 25px;
}
/*css da anumação de alteração de colunas */
.dt-colReorder-float {
  opacity: 0.8;
  background-color: #f8f9fa;
  border: 1px solid #dee2e6;
}
@media (max-width: 768px) {
  table.dataTable td {
      white-space: nowrap;
  }

  .dataTables_wrapper .dataTables_length,
  .dataTables_wrapper .dataTables_filter {
      float: none;
      text-align: center;
  }
}


/*ajuste card estoque*/
.align-items-stretch {
    padding: 10px;
}
/* background */
body.login-bg {
  background: url('../img/background.gif') no-repeat center center fixed;
  background-size: cover;
  overflow: hidden;
}
/* Substituições para a tela de login */
body.login-bg .main {
  margin-top: 1px;
  margin-left: 60px;
  height: 0; 
  overflow-y: hidden;
}
@media (max-width: 768px) {
  body.login-bg .main {
  margin-left: 1px;
}
}
table.dataTable tbody tr>.dtfc-fixed-left, table.dataTable tbody tr>.dtfc-fixed-right {
    background-color: var(--bs-body-bg)!important;
}
table.dataTable thead tr>.dtfc-fixed-left, table.dataTable thead tr>.dtfc-fixed-right, table.dataTable tfoot tr>.dtfc-fixed-left, table.dataTable tfoot tr>.dtfc-fixed-right {
    background-color: var(--bs-body-bg) !important;
}

