/**
 * Estilos personalizados para sobrescrever Bootstrap e DataTables
 * Este arquivo é carregado após o Bootstrap e DataTables CSS
 */

/* Regra de alta prioridade para sobrescrever qualquer estilo de tabela */
table, tr, td, tbody, thead, tfoot,
.table tbody tr,
.table-striped tbody tr,
.table-striped > tbody > tr:nth-of-type(odd),
.table-striped > tbody > tr:nth-of-type(even),
.table-striped > tbody > tr:nth-of-type(odd) > *,
.table-striped > tbody > tr:nth-of-type(even) > * {
  --bs-table-accent-bg: none !important;
  --bs-table-striped-bg: transparent !important;
  --bs-table-striped-color: inherit !important;
  --bs-table-hover-bg: transparent !important;
  --bs-table-hover-color: inherit !important;
  background-color: #fff !important;
  background: #fff !important;
}

/* Regra específica para DataTables */
.dataTable tr,
.dataTable tr.odd,
.dataTable tr.even,
.dataTable tr.odd td,
.dataTable tr.even td,
table.dataTable.stripe tbody tr.odd,
table.dataTable.stripe tbody tr.even,
table.dataTable.hover tbody tr:hover,
table.dataTable.display tbody tr.odd,
table.dataTable.display tbody tr.even,
table.dataTable.display tbody tr.odd > .sorting_1,
table.dataTable.display tbody tr.even > .sorting_1,
table.dataTable.order-column tbody tr.odd > .sorting_1,
table.dataTable.order-column tbody tr.even > .sorting_1,
table.dataTable.row-border tbody tr:first-child td,
table.dataTable.row-border tbody tr:last-child td,
table.dataTable.cell-border tbody tr td:first-child,
table.dataTable.cell-border tbody tr td:last-child,
table.dataTable.stripe > tbody > tr.odd > .sorting_1,
table.dataTable.stripe > tbody > tr.odd > .sorting_2,
table.dataTable.stripe > tbody > tr.odd > .sorting_3,
table.dataTable.stripe > tbody > tr.even > .sorting_1,
table.dataTable.stripe > tbody > tr.even > .sorting_2,
table.dataTable.stripe > tbody > tr.even > .sorting_3,
table.dataTable.display > tbody > tr.odd > .sorting_1,
table.dataTable.display > tbody > tr.odd > .sorting_2,
table.dataTable.display > tbody > tr.odd > .sorting_3,
table.dataTable.display > tbody > tr.even > .sorting_1,
table.dataTable.display > tbody > tr.even > .sorting_2,
table.dataTable.display > tbody > tr.even > .sorting_3 {
  background: #fff !important;
  background-color: #fff !important;
}

/* Regra de alta prioridade para remover qualquer efeito zebra */
.tabela-ppp tbody tr,
#tabela-ppp tbody tr,
.tabela-ppp tbody tr:nth-child(odd),
.tabela-ppp tbody tr:nth-child(even),
#tabela-ppp tbody tr:nth-child(odd),
#tabela-ppp tbody tr:nth-child(even),
.tabela-ppp tbody tr.odd,
.tabela-ppp tbody tr.even,
#tabela-ppp tbody tr.odd,
#tabela-ppp tbody tr.even,
.tabela-ppp tbody tr td,
#tabela-ppp tbody tr td {
  background: #fff !important;
  background-color: #fff !important;
  --bs-table-accent-bg: transparent !important;
  --bs-table-accent-bg: none !important;
  --bs-table-striped-bg: transparent !important;
  --bs-table-striped-color: inherit !important;
}

/* Remover efeito zebra de todas as tabelas */
.table-striped > tbody > tr:nth-of-type(odd),
.table-striped > tbody > tr:nth-of-type(even),
.table-striped > tbody > tr:nth-of-type(odd) > *,
.table-striped > tbody > tr:nth-of-type(even) > *,
.table-hover > tbody > tr:hover,
.table-hover > tbody > tr:hover > *,
.table > :not(caption) > * > *,
.table-striped,
.table-striped tbody tr,
.table-striped tbody tr td {
  --bs-table-accent-bg: transparent !important;
  --bs-table-striped-bg: transparent !important;
  --bs-table-striped-color: inherit !important;
  --bs-table-hover-bg: transparent !important;
  --bs-table-hover-color: inherit !important;
  background-color: #fff !important;
  color: inherit !important;
}

/* Estilos específicos para a tabela de projetos */
.tabela-ppp tbody tr,
.tabela-ppp tbody tr:nth-child(odd),
.tabela-ppp tbody tr:nth-child(even),
.tabela-ppp tbody tr.odd,
.tabela-ppp tbody tr.even,
#tabela-ppp tbody tr,
#tabela-ppp tbody tr:nth-child(odd),
#tabela-ppp tbody tr:nth-child(even),
#tabela-ppp tbody tr.odd,
#tabela-ppp tbody tr.even,
#tabela-ppp tbody tr td {
  background-color: #fff !important;
  --bs-table-accent-bg: none !important;
}

/* Sobrescrever estilos do DataTables */
table.dataTable tbody tr,
table.dataTable.stripe tbody tr.odd,
table.dataTable.stripe tbody tr.even,
table.dataTable.hover tbody tr:hover,
table.dataTable.display tbody tr.odd,
table.dataTable.display tbody tr.even,
table.dataTable.display tbody tr.odd > .sorting_1,
table.dataTable.display tbody tr.even > .sorting_1,
table.dataTable.order-column tbody tr.odd > .sorting_1,
table.dataTable.order-column tbody tr.even > .sorting_1,
table.dataTable.table-striped > tbody > tr.odd,
table.dataTable.table-striped > tbody > tr.even,
table.dataTable.table-striped > tbody > tr.odd > td,
table.dataTable.table-striped > tbody > tr.even > td,
table.dataTable.table-striped > tbody > tr:nth-of-type(odd),
table.dataTable.table-striped > tbody > tr:nth-of-type(even) {
  background-color: #fff !important;
  background: #fff !important;
}

/* Sobrescrever estilos do Bootstrap 5 */
.table > :not(caption) > * > *,
.table-striped > tbody > tr,
.table-striped > tbody > tr > td,
.dataTables_wrapper .table-striped > tbody > tr:nth-of-type(odd),
.dataTables_wrapper .table-striped > tbody > tr:nth-of-type(even),
.dataTables_wrapper .table-striped > tbody > tr:nth-of-type(odd) > td,
.dataTables_wrapper .table-striped > tbody > tr:nth-of-type(even) > td,
.table-striped > :not(caption) > tr:nth-child(2n) > *,
.table-striped > tbody > tr:nth-child(odd),
.table-striped > tbody > tr:nth-child(even),
.table-striped > tbody > tr:nth-child(odd) > *,
.table-striped > tbody > tr:nth-child(even) > * {
  background-color: #fff !important;
  background: #fff !important;
  --bs-table-accent-bg: none !important;
  --bs-table-accent-bg: transparent !important;
  --bs-table-striped-bg: transparent !important;
  --bs-table-striped-color: inherit !important;
}

/* Garantir que o cabeçalho da tabela de projetos mantenha a cor correta */
.tabela-ppp thead th {
  background-color: #8d0202 !important;
  color: #fff !important;
}

