.table td.text-center {
  vertical-align: middle; /* Centraliza verticalmente */
}

.form-check {
  display: flex;
  justify-content: center;
  align-items: center;
  bg-color: red !important;
}


.form-check-input {
  background-color: #ccc;  
  border: 1px solid #fff;   
  outline: none;            
  box-shadow: none;         
}

.form-check-input:checked {
  background-color: #28a745; 
  border-color: #28a745;     
}

.form-check-input:focus {
  outline: none; 
  box-shadow: 0 0 0 0.2rem rgba(40, 167, 69, 0.25);
}


/* DataTables styling */
.dataTables_wrapper .dataTables_length select,
.dataTables_wrapper .dataTables_filter input {
  background-color: var(--bs-dark);
  color: var(--bs-light);
  border: 1px solid var(--bs-gray-700);
  padding: 0.375rem 0.75rem;
}

.dataTables_wrapper .dataTables_info {
  color: var(--bs-light) !important;
}

.dataTables_wrapper .dataTables_paginate .paginate_button {
  color: var(--bs-light) !important;
  background: transparent !important;
  border: 1px solid var(--bs-gray-700) !important;
  
}

.dataTables_wrapper .dataTables_paginate .paginate_button.current,
.dataTables_wrapper .dataTables_paginate .paginate_button:hover {
  background: var(--bs-primary) !important;
  border-color: var(--bs-primary) !important;
  color: white !important;
}

.dataTables_wrapper .dataTables_length,
.dataTables_wrapper .dataTables_filter {
  margin-bottom: 1rem;
}


/* Estilos base para DataTables responsivo */
.dataTables_wrapper {
  width: 100% !important;
  margin: 0 auto;
}

/* Força a tabela a ocupar 100% da largura disponível */
.dataTable {
  width: 100% !important;
}

/* Ajusta o container da tabela */
.dataTables_scroll {
  width: 100% !important;
}

/* Garante que o cabeçalho e o corpo da tabela se alinhem corretamente */
.dataTables_scrollHead,
.dataTables_scrollBody {
  width: 100% !important;
}

/* Ajusta as colunas para serem flexíveis */
.dataTable th,
.dataTable td {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Responsividade para telas menores */
@media screen and (max-width: 768px) {
  .dataTables_wrapper {
    overflow-x: auto;
  }
  
  .dataTable {
    min-width: 100%;
  }
}

/* Garante visibilidade adequada durante transições */
.tab-pane {
  opacity: 1 !important;
  transition: opacity 0.15s linear;
}

.tab-pane.fade {
  opacity: 0;
}

.tab-pane.fade.show {
  opacity: 1;
}



.nav-tabs .nav-link.active{
  background-color: #fff !important;
}

.modal-body::-webkit-scrollbar {
  width: 8px;
}

.modal-body::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 4px;
}

.modal-body::-webkit-scrollbar-thumb {
  background: #c1c1c1;
  border-radius: 4px;
}

.modal-body::-webkit-scrollbar-thumb:hover {
  background: #a8a8a8;
}

/* Firefox */
.modal-body {
  scrollbar-width: thin;
  scrollbar-color: #c1c1c1 #f1f1f1;
}

/* Seleciona apenas o badge dentro do footer do card quando atrasado */
.card-body .d-flex .badge.text-bg-danger {
  background-color: red !important;
}



/* Estilo padrão para links */
.nav-item {
  transition: all 0.3s ease;
}

body.controle-mensal .system-item {
  filter: blur(2px) !important;
  pointer-events: none !important;
  opacity: 0.5 !important;
}

body.controle-mensal .home-item,
body.controle-mensal .active {
  opacity: 1 !important;
  filter: none !important;
  pointer-events: auto !important;
}



.nav-item.nav-link {
  line-height: 1;
}

.table-danger {
  background-color: #f8d7da !important;
  color: #721c24 !important;
}


/* Estilos para linhas vencidas */
.row-overdue {
    background-color: #ffebee !important;
    border-left: 4px solid #f44336 !important;
}

.row-overdue:hover {
    background-color: #ffcdd2 !important;
}

.row-overdue td {
    color: #b71c1c !important;
    font-weight: 500;
}

/* Estilos para o badge de atraso */
.badge-overdue {
    background-color: #f44336 !important;
    color: white !important;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* Ícone de flag com animação */
.flag-overdue {
    color: #f44336 !important;
    animation: shake 0.5s infinite alternate;
}

@keyframes shake {
    0% { transform: translateX(0); }
    100% { transform: translateX(2px); }
}