body{
  font-weight: 200 !important;
}
.label:not(.form-check-label):not(.custom-file-label) {
  font-weight: 100 !important;
}
.input-group-lg>.custom-select, .input-group-lg>.form-control, .input-group-lg>.input-group-append>.btn, .input-group-lg>.input-group-append>.input-group-text, .input-group-lg>.input-group-prepend>.btn, .input-group-lg>.input-group-prepend>.input-group-text {
  font-size: 0.9rem !important;
}
.btn {
  font-weight: 100 !important;
}
.form-control {
  font-size: 0.9rem !important;
  font-weight: 100 !important;
}
.label:not(.form-check-label):not(.custom-file-label) {
  font-weight: 400 !important;
}
.bg-white{
  background-color: white !important;
}
b, strong {
  font-weight: 600 !important;
}
.nav-sidebar .nav-treeview>.nav-item>.nav-link>.nav-icon {
  width: 3.0rem !important;
}
.brand-text{
  font-size: 1rem !important;
}
.bg-orange{
  color: white !important;  
}

@media print {
  @page {
    size: landscape;
  }
  thead {
    display: table-header-group; /* Garante que o cabeçalho seja repetido em múltiplas páginas */
  }
  tfoot {
    display: table-row-group;
  }
}

/* Se preferir um fundo azul quando ativo, altere a cor */
/* Estilo para itens do menu de colunas */
div.dt-button-collection {
  position: fixed !important;
}

.dropdown-item {
  background-color: white !important; /* Fundo branco quando não selecionado */
  color: grey !important; /* Texto preto */
  cursor: pointer !important; /* Cursor de ponteiro */
  position: relative; /* Para posicionar o ícone em relação ao texto */
  padding-left: 40px;
}

/* Mostra o ícone quando o item está ativo */
.dropdown-item.active::before {
  display: inline; /* Exibe o ícone quando ativo */
}

/* Se preferir um fundo azul quando ativo, altere a cor */
.dropdown-item.active {
  background-color: white !important; /* Altere para azul se desejado */
  color: black !important; /* Texto branco quando ativo */
}

.dropdown-item::before {
  content: "\f00c"; /* Código Unicode do ícone 'check' */
  font-family: "Font Awesome 5 Free"; /* Fonte do Font Awesome */
  font-weight: 800; /* Peso da fonte para ícones sólidos */
  position: absolute; /* Posiciona o ícone */
  left: 5px; /* Distância do ícone ao texto */
  top: 50%; /* Centraliza verticalmente */
  transform: translateY(-50%); /* Ajusta o alinhamento vertical */
  color: black; /* Cor do ícone */
  display: none; /* Inicialmente escondido */
}

/* Profile Others */
.profile-reg-xs {
  /* margin-top: -0.3rem !important; */
  margin-right: 0.5rem !important;
  width: 25px; /* Largura da imagem */
  height: 25px; /* Altura da imagem, faça igual à largura para manter a proporção */
  border-radius: 50%; /* Torna a imagem redonda */
  object-fit: cover; /* Garante que a imagem se ajuste ao contêiner */
  border: 2px solid #ddd; /* Opcional: Adiciona uma borda */
  box-shadow: 0 0 5px rgba(0,0,0,0.3); /* Opcional: Adiciona uma sombra */
}

.profile-reg-xs:hover {
  transform: scale(2.5); /* Aplica o efeito de zoom */
}

.profile-reg-md {
  margin-top: -0.3rem !important;
  margin-right: 0.5rem !important;
  width: 35px; /* Largura da imagem */
  height: 35px; /* Altura da imagem, faça igual à largura para manter a proporção */
  border-radius: 50%; /* Torna a imagem redonda */
  object-fit: cover; /* Garante que a imagem se ajuste ao contêiner */
  border: 2px solid #ddd; /* Opcional: Adiciona uma borda */
  box-shadow: 0 0 5px rgba(0,0,0,0.3); /* Opcional: Adiciona uma sombra */
}

/* Efeito de Perfil para Ícones */
.icon-profile-xs {
  margin-top: -0.3rem !important;
  margin-right: 0.5rem !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 25px;
  height: 25px;
  border-radius: 50%; /* Torna o contêiner redondo */
  background-color: #f0f0f0; /* Fundo para contraste com o ícone */
  border: 2px solid #ddd; /* Opcional: borda ao redor do contêiner */
  box-shadow: 0 0 5px rgba(0,0,0,0.3); /* Opcional: sombra */
  font-size: 16px; /* Ajusta o tamanho do ícone */
  color: #333; /* Cor do ícone */
}

.icon-profile-xs:hover {
  transform: scale(2.5); /* Aplica o efeito de zoom */
}

/* Tamanho médio */
.icon-profile-md {
  margin-top: -0.3rem !important;
  margin-right: 0.5rem !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 35px;
  height: 35px;
  border-radius: 50%;
  background-color: #f0f0f0;
  border: 2px solid #ddd;
  box-shadow: 0 0 5px rgba(0,0,0,0.3);
  font-size: 20px;
  color: #333;
}

/*Profile Pic Start*/
.picture-container{
    position: relative;
    cursor: pointer;
    text-align: center;
  }
.picture{
  width: 106px;
  height: 106px;
  background-color: #999999;
  border: 2px solid #CCCCCC;
  color: #FFFFFF;
  border-radius: 50%;
  margin: 0px auto;
  overflow: hidden;
  transition: all 0.2s;
  -webkit-transition: all 0.2s;
}
.picture:hover{
  border-color: #2ca8ff;
}
.content.ct-wizard-green .picture:hover{
  border-color: #05ae0e;
}
.content.ct-wizard-blue .picture:hover{
  border-color: #3472f7;
}
.content.ct-wizard-orange .picture:hover{
  border-color: #ff9500;
}
.content.ct-wizard-red .picture:hover{
  border-color: #ff3b30;
}
.picture input[type="file"] {
  cursor: pointer;
  display: block;
  height: 100%;
  left: 0;
  opacity: 0 !important;
  position: absolute;
  top: 0;
  width: 100%;
}

.picture-src{
  width: 100%;
}

.p-image {
  position: absolute;
  top: 80px;
  right: 80px;
  color: #FFF;
  transition: all .3s cubic-bezier(.175, .885, .32, 1.275);
}
.p-image:hover {
  transition: all .3s cubic-bezier(.175, .885, .32, 1.275);
}
.upload-button {
  font-size: 1.2em;
}

.p-image:hover {
  transition: all .3s cubic-bezier(.175, .885, .32, 1.275);
  color: #999;
}
/*Profile Pic End*/

/* Logo */
.brand-link .brand-image {
  margin-top: 0px !important;
}
.brand-link .brand-image {
  margin-right: 1rem;
}
/* Logo End */

/* Tables */
.page-link {
  z-index: 3;
  color: #212529 !important;
  background-color: #FFF !important;
  border-color: rgba(0,0,0,.125) !important;
}

.table-xs{
  font-size: 11px;
}
.table-sm{
  font-size: 14px;
}

.tablecustom .fixed-horizontal-scrollbar td {
  white-space: nowrap; /* Impede a quebra de linha nas células */
  vertical-align: middle
}

.fixed-horizontal-scrollbar {
  position: fixed;
  bottom: 0; /* Sempre no final da janela */
  left: 0;
  width: 100%;
  overflow-x: auto;
  background-color: transparent; /* Cor do fundo */
  z-index: 1000; /* Sempre acima do conteúdo */
  border-top: 1px solid transparent; /* Linha separadora */
}

.fixed-horizontal-scrollbar::-webkit-scrollbar {
  height: 12px; /* Altura da barra de rolagem */
}

.fixed-horizontal-scrollbar div {
  width: 100%;
  height: 1px; /* Invisível, apenas para rolar */
}

.fixed-horizontal-scrollbar::-webkit-scrollbar-thumb {
  background: hsla(0, 0%, 73%, 0.8); /* Cor #bbb com 60% de opacidade */
  border-radius: 4px;
}

.fixed-horizontal-scrollbar::-webkit-scrollbar-thumb:hover {
  background: hsla(0, 0%, 73%, 1); /* Cor #bbb com 90% de opacidade ao passar o mouse */
}

/* Tables End*/

/* Loading of Page*/
.progress {
  width: 100%;
  background-color: #e0e0e0;
  border-radius: 10px;
  height: 15px;
  position: relative;
}

.progress-bar {
  width: 0;
  height: 100%;
  background-color: #007bff;
  border-radius: 10px;
  transition: width 2s ease;
}

.table-height{
  max-height: 75vh;
}

.ui-datepicker-calendar {
  display: none;
}
.ui-datepicker-close {
  display: none;
}

.ui-widget-content {
width: 350px !important;
}

/* Biblioteca  Swal Fire */
.swal2-title {
  font-size: 16px; /* Ajuste o tamanho do título */
}
.swal2-html-container {
  font-size: 12px; /* Ajuste o tamanho do texto */
}

.swal2-confirm {
  background-color: #007bff !important;
  color: #fff !important; /* Cor do texto */
  border: none; /* Remove a borda */
  box-shadow: none; /* Remove sombras extras */
}
.swal2-confirm:hover {
  background-color: #0056b3 !important; /* Cor ao passar o mouse */
}
/* Marcas do cabecalho: preservar a imagem inteira, sem o recorte de avatares. */
.navbar-brand img.profile-reg-md,.auto-brand img.profile-reg-md{
 object-fit:contain;border-width:1px;box-shadow:0 1px 3px rgba(0,0,0,.18);background-color:#fff;
}
.navbar-brand img.brand-logo-wide,.auto-header img.brand-logo-wide{
 width:auto!important;height:35px;min-width:35px;max-width:100px;flex:0 0 auto!important;
 border-radius:4px!important;padding:3px;object-fit:contain;background:#fff!important;
}
/* Menus do cabecalho: recuo compacto para os icones dos itens. */
.main-header .dropdown-menu .dropdown-item{
 padding-left:16px;
}
/* Mensagens de atencao: texto escuro sobre o fundo amarelo do Toastr. */
/* Avisos opacos e acima de menus, modais e seus fundos. */
#toast-container { z-index: 2147483647; }
#toast-container > .toast { opacity: 1 !important; }

#toast-container > .toast-warning,
#toast-container > .toast-warning .toast-title,
#toast-container > .toast-warning .toast-message,
#toast-container > .toast-warning .toast-message a,
#toast-container > .toast-warning .toast-close-button{
 color:#000!important;
 text-shadow:none;
}
/* Acoes de WhatsApp mantem texto branco, inclusive dentro do toast amarelo. */
a.btn-success.whatsapp-envio,
#toast-container > .toast-warning .toast-message a.whatsapp-envio{
 color:#fff!important;
}
/* Contatos de envio: uma acao compacta por linha, sem quebras internas. */
a.whatsapp-envio{
 display:inline-flex;align-items:center;gap:8px;width:100%;max-width:100%;
 padding:8px 10px;font-size:.875rem;line-height:1.4;
 border:1px solid rgba(255,255,255,.6);background:#168b39;
 text-decoration:none!important;text-align:left;white-space:nowrap;
}
a.whatsapp-envio:hover,a.whatsapp-envio:focus{
 background:#11752f;text-decoration:none!important;
}
a.whatsapp-envio .fa-whatsapp{flex:0 0 auto;font-size:1.15rem;}
a.whatsapp-envio .whatsapp-envio-nome{
 min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;
}
a.whatsapp-envio .whatsapp-envio-numero{flex:0 0 auto;white-space:nowrap;margin-left:auto;}


/* O retorno da criação precisa acomodar nomes completos e telefones. */
#toast-container > .toast-inspecao-contatos{
 width:480px;
 max-width:calc(100vw - 24px);
 box-sizing:border-box;
}
#toast-container > .toast-inspecao-contatos a.whatsapp-envio{
 display:grid;
 grid-template-columns:auto minmax(0,1fr);
 white-space:normal;
}
#toast-container > .toast-inspecao-contatos .whatsapp-envio-nome{
 overflow:visible;
 text-overflow:clip;
 white-space:normal;
 overflow-wrap:anywhere;
}
#toast-container > .toast-inspecao-contatos .whatsapp-envio-numero{
 grid-column:2;
 margin-left:0;
}

/* Leitura do relatório: ordem de cima para baixo em cada coluna. */
#relatorio-leitura .relatorio-dados { column-count: 1; column-gap: 2.5rem; }
#relatorio-leitura .relatorio-dado { break-inside: avoid; overflow-wrap: anywhere; padding-bottom: .75rem; }
#relatorio-leitura .relatorio-dado dd { margin-bottom: 0; }
@media (min-width: 768px) {
 #relatorio-leitura .relatorio-dados { column-count: 2; }
}

/* Engrenagem: grupos legíveis, ícones alinhados e alvos confortáveis. */
.main-header .settings-menu{position:absolute;width:280px;min-width:0;max-width:calc(100vw - 24px);padding:8px;margin-top:8px;border:1px solid #e2e6eb!important;border-radius:10px;box-shadow:0 8px 28px rgba(25,39,55,.16);max-height:calc(100vh - 84px);overflow-y:auto;right:0;left:auto}
.main-header .settings-menu .dropdown-header{padding:8px 12px 6px;color:#6c757d;font-size:11px;font-weight:700;letter-spacing:.7px;text-transform:uppercase}
.main-header .settings-menu .dropdown-item{display:flex;align-items:center;gap:10px;min-height:42px;padding:9px 12px;border-radius:6px;color:#343a40;font-size:14px;line-height:1.4;white-space:normal}
.main-header .settings-menu .dropdown-item>i{width:20px;flex:0 0 20px;text-align:center;color:#6c757d}
.main-header .settings-menu .dropdown-item:hover,.main-header .settings-menu .dropdown-item:focus{background:#edf3fa;color:#174f85}
.main-header .settings-menu .dropdown-item:focus-visible{outline:2px solid #007bff;outline-offset:-2px}
.main-header .settings-menu .dropdown-item:active{background:#e0edfa;color:#174f85}
.main-header .settings-menu .dropdown-divider{margin:8px 4px;border-top-color:#e5e9ee}
@media(max-width:767px){.main-header .settings-menu .dropdown-item{min-height:44px}.main-header .settings-menu{max-height:calc(100dvh - 84px)}}
