:root {
  /* --color-primary: #008ED3;
	--color-primary-rgb: 0,142,211; */
	/* --color-primary-contrast: #ffffff;
	--color-primary-contrast-rgb: 255,255,255;
	--color-primary-shade: #8e1118;
	--color-primary-tint: #aa2b32; */

  /* --color-secondary: #fed530;
	--color-secondary-rgb: 161,19,27;
	--color-secondary-contrast: #ffffff;
	--color-secondary-contrast-rgb: 255,255,255;
	--color-secondary-shade: #8e1118;
	--color-secondary-tint: #aa2b32; */
}

.min-h-100vh {
  min-height: 100vh !important;
}

.invalid-form,
.invalid-image {
  border: 1px solid #ff0000;
}

.btn .spinner-border {
  width: 1.2rem;
  height: 1.2rem;
}

.bg-filtrando {
  background-color: rgba(28, 200, 138, .4);
  /* background-color: #FFF; */
  background-image: linear-gradient(180deg, rgba(28, 200, 138, .3) 10%, rgba(19, 133, 92, .3) 100%);
  background-size: cover;
}

.nav-tabs {
  border-bottom: 0px;
}

/* Estilos gerais do container do pager */
#pager {
  display: flex;
  border-radius: 0.25rem;
  overflow: hidden; 
  box-shadow: 0 0 5px rgba(0,0,0,0.1); 
  border: 1px solid #AFAFAF; 
  width: fit-content; 
  margin: 20px 0 20px auto; 
}

/* Estilos para botões de navegação */
#pager .stepper-before,
#pager .stepper-next {
  display: flex !important;
  align-items: center;
  justify-content: center;
  font-family: Inter;
  font-weight: 600;
  font-size: 15px;
  color: #012559;
}

/* Estilos para todos os botões (Anterior, Números, Próximo) */
#pager .stepper,
#pager .stepper-before,
#pager .stepper-next {
  display: flex; 
  align-items: center;
  justify-content: center;
  min-width: 35px; 
  height: 35px; 
  padding: 0 12px;
  background-color: #fff;
  color: #012559; 
  font-size: .875rem;
  font-weight: 400;
  border: none; 
  cursor: pointer;
  transition: all 0.2s ease-in-out;
  text-decoration: none; 
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  font-family: Inter;
  font-weight: 600;
  font-style: Semi Bold;
  font-size: 15px;
}

/* Bordas entre os elementos */
#pager .stepper + .stepper,
#pager .stepper-before + .stepper,
#pager .stepper + .stepper-next,
#pager .stepper-next {
  border-left: 1px solid #AFAFAF; 
}

/* Remove a borda esquerda apenas do primeiro elemento (Anterior) */
#pager .stepper-before:first-child {
  border-left: none !important;
}

/* Arredondamento de cantos para "Anterior" e "Próximo" */
#pager .stepper-before {
  border-top-left-radius: 0.25rem;
  border-bottom-left-radius: 0.25rem;
}
#pager .stepper-next {
  border-top-right-radius: 0.25rem;
  border-bottom-right-radius: 0.25rem;
}

/* Quando "Anterior" não aparece, arredondar o primeiro stepper */
#pager .stepper:first-child {
  border-top-left-radius: 0.25rem;
  border-bottom-left-radius: 0.25rem;
}

/* Estado ativo (página atual) */
#pager .stepper-active {
  background-color: #012559;
  color: #fff;
  font-weight: 700;
  border-color: #012559; 
}

/* Estado desabilitado para botões */
#pager .stepper-before.disabled,
#pager .stepper-next.disabled {
  color: #AFAFAF !important;
  background-color: #f8f9fa !important;
  cursor: not-allowed !important;
}

/* Hover states */
#pager .stepper:not(.stepper-active):hover,
#pager .stepper-next:not(.disabled):hover,
#pager .stepper-before:not(.disabled):hover {
  background-color: #e9ecef; 
  color: #012559;
}

/* Forçar botões "Anterior" e "Próximo" a sempre aparecer - sobrescreve qualquer estilo do SimplePHP */
#pager .stepper-before,
#pager .stepper-next {
  display: flex !important;
  visibility: visible !important;
  opacity: 1 !important;
  position: relative !important;
}

/* Sobrescrever estilos inline que o SimplePHP pode aplicar */
#pager .stepper-before[style*="display: none"],
#pager .stepper-before[style*="display:none"],
#pager .stepper-before[style*="visibility: hidden"],
#pager .stepper-before[style*="visibility:hidden"],
#pager .stepper-before[style*="opacity: 0"],
#pager .stepper-before[style*="opacity:0"],
#pager .stepper-next[style*="display: none"],
#pager .stepper-next[style*="display:none"],
#pager .stepper-next[style*="visibility: hidden"],
#pager .stepper-next[style*="visibility:hidden"],
#pager .stepper-next[style*="opacity: 0"],
#pager .stepper-next[style*="opacity:0"] {
  display: flex !important;
  visibility: visible !important;
  opacity: 1 !important;
}

/* Remove a linha cinza acima do título das colunas */
.table thead th,
.table thead td {
  border-top: none !important;
}

/* Login */
.bg-onboard {
  background-color: #1D1D1B;
}

.bg-login-image {
  background-image: url('./img/alphacode_quadrado.jpg');
}
.bg-password-image {
  background-image: url('./img/alphacode_quadrado.jpg');
}

.footer-login p {
  color: #FFFFFF;
  font-size: small;
}
.footer-login img {
  height: 23px;
}

#olho-senha {
  width: 25px;
  margin-right: 20px;
  margin-left: 0px;
  border: none;
  cursor: pointer;
  position: absolute;
  top: 58%;
  right: 50px;
  color: #555;
  transform: translateY(-50%);
}

@media (max-width: 383px) {
  #olho-senha {
    top: 60%;
  }
}

::-webkit-calendar-picker-indicator {
  border-radius: 50%;
  margin-left: 0.1rem;
  width: 14px;
  height: 14px;
  cursor: pointer;
}

::-webkit-calendar-picker-indicator:hover {
  -webkit-box-shadow: 0 0 0 4px rgba(0, 0, 0, 0.04);
  box-shadow: 0 0 0 4px rgba(0, 0, 0, 0.04);
}

/* usuarios START */

.img-avatar {
  position: relative;
  top: 0;
  left: 10px;
  width: 180px !important;
  height: 180px !important;
  border-radius: 50%;
  margin: 0px !important;
  cursor: pointer;
  object-fit: cover;
  margin-bottom: 30px !important;
}

.custom-control-input:checked:disabled~.custom-control-label::before {
  background-color: #012559 !important;
  border-color: #012559 !important;
}

/* Checkbox maior */
.custom-control-input {
  width: 20px;
  height: 20px;

}

.custom-control-label::before {
  width: 20px;
  height: 20px;

}

.custom-control-label::after {
  width: 20px;
  height: 20px;
}

#lista-permissoes thead th,
#lista-permissoes thead td {
  font-family: Inter, sans-serif !important;
  font-weight: 700 !important;
  font-size: 20px !important;
  color: #012559 !important;
  text-align: center !important;
}

#lista-permissoes tbody td {
  font-family: Inter, sans-serif !important;
  font-weight: 400 !important;
  font-size: 18px !important;
  color: #565656 !important;
}

#lista-permissoes tbody td:first-child {
  text-align: center !important;
}

#lista-permissoes tbody td:last-child {
  text-align: center !important;
}

#lista-permissoes {
  border: 1px solid #AFAFAF !important;
  border-radius: 8px !important;
  overflow: hidden !important;
  margin: 0 auto !important;
  width: 80% !important;
  max-width: 1100px !important;
}

#lista-permissoes tbody tr {
  background-color: #FFFFFF !important;
}

#lista-permissoes tbody tr {
  border-bottom: 1px solid #AFAFAF !important;
}

#lista-permissoes tbody tr:last-child {
  border-bottom: 1px solid #AFAFAF !important;
}

#lista-permissoes tbody tr:hover {
  background-color: #e3e6f0 !important;
  transition: background-color 0.2s ease !important;
}

/* Botões de alterar e salvar em usuarios/ver.html */
#btn-alterar,
#btn-salvar {
  margin-top: 20px !important;
}

/* Remover todas as bordas padrão do Bootstrap */
#lista-permissoes.table,
#lista-permissoes.table td,
#lista-permissoes.table th,
#lista-permissoes.table tbody tr td,
#lista-permissoes.table thead tr th {
  border: none !important;
  border-top: none !important;
  border-left: none !important;
  border-right: none !important;
}

#lista-permissoes.table tbody tr td {
  border-bottom: 1px solid #AFAFAF !important;
}

#lista-permissoes.table thead tr th {
  border-bottom: none !important;
}

/* Reduzir espaçamento entre colunas */
#lista-permissoes.table td,
#lista-permissoes.table th {
  padding-left: 8px !important;
  padding-right: 8px !important;
}

/* Primeira coluna (Módulos) - padding direito menor */
#lista-permissoes.table td:first-child,
#lista-permissoes.table th:first-child {
  padding-right: 4px !important;
}

/* Segunda coluna (Acesso) - padding esquerdo menor */
#lista-permissoes.table td:last-child,
#lista-permissoes.table th:last-child {
  padding-left: 4px !important;
}

/* Forçar largura das colunas para aproximar */
#lista-permissoes.table {
  table-layout: fixed !important;
  width: 100% !important;
}

/* Primeira coluna - 50% da largura */
#lista-permissoes.table td:first-child,
#lista-permissoes.table th:first-child {
  width: 50% !important;
  padding-right: 30px !important;
}

/* Segunda coluna - 50% da largura */
#lista-permissoes.table td:last-child,
#lista-permissoes.table th:last-child {
  width: 50% !important;
  padding-left: 30px !important;
}

/* ===== ESTILOS PARA TABELA DE ACORDOS (IMAGEM 2) ===== */

/* Layout da tabela com largura automática */
.table.table-hover.table-striped {
  table-layout: auto !important; /* Permite largura automática */
  width: 100% !important;
  border: none !important;
}

/* Remove todas as bordas */
.table.table-hover.table-striped,
.table.table-hover.table-striped td,
.table.table-hover.table-striped th,
.table.table-hover.table-striped tbody tr td,
.table.table-hover.table-striped thead tr th {
  border: none !important;
  border-top: none !important;
  border-left: none !important;
  border-right: none !important;
  border-bottom: none !important;
}

/* Remove padding do card-body para tabela ocupar toda largura */
.table-responsive {
  padding: 0 !important;
  margin: 0 !important;
  padding-top: 20px !important; /* Espaçamento acima da tabela */
}

/* ===== ESTILO ESPECÍFICO PARA TABELA DE CLIENTES ===== */

/* Layout fixo para distribuição igual das colunas */
#lista-clientes {
  table-layout: fixed !important;
  width: 100% !important;
}

/* Distribuição igual das 8 colunas (12.5% cada) com espaçamentos iguais */
#lista-clientes th,
#lista-clientes td {
  text-align: center !important; /* ALINHAMENTO CENTRALIZADO */
  padding-left: 20px !important; /* ESPAÇAMENTO IGUAL DAS BORDAS */
  padding-right: 20px !important; /* ESPAÇAMENTO IGUAL ENTRE COLUNAS */
  padding-top: 12px !important;
  padding-bottom: 12px !important;
  width: 12.5% !important; /* 100% ÷ 8 colunas = 12.5% cada */
}

/* Cabeçalho específico para clientes */
#lista-clientes thead th {
  background-color: #f8f9fa !important; /* FUNDO CINZA CLARO */
  font-weight: 600 !important;
  color: #333333 !important;
  border-bottom: none !important;
  padding-top: 15px !important;
  padding-bottom: 15px !important;
  text-align: center !important; /* CABEÇALHO CENTRALIZADO */
}

/* ===== ESTILO GERAL PARA OUTRAS TABELAS ===== */

/* Para tabelas com 4 colunas (25% cada) - OUTRAS TABELAS */
.table.table-hover.table-striped th:first-child,
.table.table-hover.table-striped td:first-child {
  width: 25% !important;
  text-align: center !important;
  padding-left: 15px !important;
  padding-right: 15px !important;
}

.table.table-hover.table-striped th:nth-child(2),
.table.table-hover.table-striped td:nth-child(2) {
  width: 25% !important;
  text-align: center !important;
  padding-left: 15px !important;
  padding-right: 15px !important;
}

.table.table-hover.table-striped th:nth-child(3),
.table.table-hover.table-striped td:nth-child(3) {
  width: 25% !important;
  text-align: center !important;
  padding-left: 15px !important;
  padding-right: 15px !important;
}

.table.table-hover.table-striped th:last-child,
.table.table-hover.table-striped td:last-child {
  width: 25% !important;
  text-align: center !important;
  padding-left: 15px !important;
  padding-right: 15px !important;
}

/* Alinhamento vertical centralizado */
.table.table-hover.table-striped th,
.table.table-hover.table-striped td {
  vertical-align: middle !important;
  padding-top: 12px !important;
  padding-bottom: 12px !important;
}

/* Estilo zebrado (linhas alternadas) */
.table.table-hover.table-striped tbody tr:nth-child(odd) {
  background-color: #E4E4E4 !important;
}

.table.table-hover.table-striped tbody tr:nth-child(even) {
  background-color: #ffffff !important;
}

/* Hover effect sutil */
.table.table-hover.table-striped tbody tr:hover {
  background-color: #e9ecef !important;
  transition: background-color 0.2s ease;
}

/* Estilo do cabeçalho - CENTRALIZADO (EXCETO CLIENTES) */
.table.table-hover.table-striped:not(#lista-clientes) thead th {
  background-color: #ffffff !important;
  font-weight: 600 !important;
  color: #333333 !important;
  border-bottom: none !important;
  padding-top: 15px !important; /* Igual à tabela de clientes */
  padding-bottom: 15px !important;
  text-align: center !important; /* CABEÇALHO CENTRALIZADO */
}

/* Botões de ação centralizados */
.table.table-hover.table-striped .btn {
  margin: 0 auto;
  display: inline-block;
}

/* Centralizar mensagens de "nenhum dado encontrado" */
.table-responsive p {
  text-align: center !important;
  padding: 20px 20px 0 0 !important;
  margin: 0 !important;
  font-size: 16px !important;
  color: #6c757d !important;
  background-color: #ffffff !important;
  border-radius: 8px !important;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1) !important;
}

/* ===== ESTILO ESPECÍFICO PARA TABELA DE ASSINATURAS ===== */

/* Layout fixo para distribuição das colunas */
#lista-assinaturas {
  table-layout: fixed !important;
  width: 100% !important;
}

/* Distribuição específica das 7 colunas da tabela de assinaturas */
#lista-assinaturas th,
#lista-assinaturas td {
  text-align: center !important;
  padding-left: 20px !important;
  padding-right: 20px !important;
  padding-top: 12px !important;
  padding-bottom: 12px !important;
  vertical-align: middle !important;
  word-wrap: break-word !important;
  overflow-wrap: break-word !important;
}

/* Larguras específicas para cada coluna */
#lista-assinaturas th:nth-child(1),
#lista-assinaturas td:nth-child(1) {
  width: 18% !important; /* Usuário - diminuído */
  text-align: center !important;
  padding-left: 10px !important; /* Espaçamento ainda menor na borda esquerda */
  padding-right: 10px !important; /* Espaçamento ainda menor na borda direita */
}

#lista-assinaturas th:nth-child(2),
#lista-assinaturas td:nth-child(2) {
  width: 15% !important; /* Valor Pago - aumentado */
  text-align: center !important;
}

#lista-assinaturas th:nth-child(3),
#lista-assinaturas td:nth-child(3) {
  width: 15% !important; /* Valor Original - aumentado */
  text-align: center !important;
}

#lista-assinaturas th:nth-child(4),
#lista-assinaturas td:nth-child(4) {
  width: 20% !important; /* Tipo de Assinatura - aumentado */
  text-align: center !important;
  line-height: 1.3 !important;
}

#lista-assinaturas th:nth-child(5),
#lista-assinaturas td:nth-child(5) {
  width: 15% !important; /* Data de Pagamento - aumentado */
  text-align: center !important;
}

#lista-assinaturas th:nth-child(6),
#lista-assinaturas td:nth-child(6) {
  width: 10% !important; /* Status */
  text-align: center !important;
}

#lista-assinaturas th:nth-child(7),
#lista-assinaturas td:nth-child(7) {
  width: 7% !important; /* Ação - diminuído */
  text-align: center !important;
}

/* Cabeçalho específico para assinaturas */
#lista-assinaturas thead th {
  background-color: #f8f9fa !important;
  font-weight: 600 !important;
  color: #333333 !important;
  border-bottom: none !important;
  padding-top: 15px !important;
  padding-bottom: 15px !important;
  text-align: center !important;
}

/* ===== CORREÇÃO DO FOOTER - GARANTIR QUE FIQUE SEMPRE NO FINAL ===== */

/* Garantir que o body tenha altura mínima e use flexbox */
body {
  min-height: 100vh !important;
  display: flex !important;
  flex-direction: column !important;
}

/* Garantir que o content-wrapper ocupe o espaço disponível */
#content-wrapper {
  flex: 1 !important;
  display: flex !important;
  flex-direction: column !important;
}

/* Garantir que o content ocupe o espaço disponível */
#content {
  flex: 1 !important;
}

/* Garantir que o footer fique sempre no final */
.sticky-footer {
  margin-top: auto !important;
  flex-shrink: 0 !important;
}

/* Corrigir problema específico das páginas de listagem com muitos filtros */
.card.h-100 {
  height: auto !important; /* Remove altura fixa que causa problema no footer */
}

/* Garantir que o container-fluid não cause problemas de altura */
.container-fluid {
  min-height: auto !important;
}

.popup {
  width: 313px;
  height: 91px;
  border-radius: 10px;
  margin: 20px;
}

.popup-titulo {
  font-family: Inter;
  font-weight: bold;
  font-size: 15px;
  color: #000000;
  text-align: start;
}

.popup-texto {
  font-family: Inter;
  font-weight: 350;
  font-size: 12px;
  color: #000000;
  text-align: start;
}

.swal-close {
  color: #838383 !important;     
  font-size: 25px !important;      
  width: 20px;
  height: 20px;
  border: 1px solid #838383 !important;
  border-radius: 20px !important;
  margin-top: 10px;
  margin-right: 10px;
}

/* Espaçamento individual por coluna da tabela de conexões */
#lista-conexoes th:nth-child(1),
#lista-conexoes td:nth-child(1) {
  padding: 0; /* Nome - mais compacto */
}
#lista-conexoes th:nth-child(2),
#lista-conexoes td:nth-child(2) {
  padding: 0; /* CPF */
}
#lista-conexoes th:nth-child(3),
#lista-conexoes td:nth-child(3) {
  padding: 0; /* E-mail */
}
#lista-conexoes th:nth-child(4),
#lista-conexoes td:nth-child(4) {
  padding: 8px 50px; /* Estado */
  white-space: nowrap; /* Impede quebra de linha */
}
#lista-conexoes th:nth-child(5),
#lista-conexoes td:nth-child(5) {
  padding: 8px 50px; /* Tipo */
}
#lista-conexoes th:nth-child(6),
#lista-conexoes td:nth-child(6) {
  padding: 8px 50px; /* Status */
}
#lista-conexoes th:nth-child(7),
#lista-conexoes td:nth-child(7) {
  padding: 8px 8px; /* Ação */
  text-align: center;
}

#lista-gastos th:nth-child(1),
#lista-gastos td:nth-child(1) {
  padding: 0; 
}
#lista-gastos th:nth-child(2),
#lista-gastos td:nth-child(2) {
  padding: 8px 30px; 
}
#lista-gastos th:nth-child(3),
#lista-gastos td:nth-child(3) {
  padding: 8px 30px;
}
#lista-gastos th:nth-child(4),
#lista-gastos td:nth-child(4) {
  padding: 8px 50px;
}
#lista-gastos th:nth-child(5),
#lista-gastos td:nth-child(5) {
  padding: 8px 50px; 
  text-align: center;
}
