/* Estilos específicos para a tela de chip - Tema roxo escuro */
.app-chip app-generic-crud table.mat-table th,
.app-chip app-generic-crud table.mat-table th.mat-header-cell,
.app-chip app-generic-crud .mat-header-row,
.app-chip app-generic-crud .mat-mdc-header-row,
.app-chip app-generic-crud tr[mat-header-row],
.app-chip app-generic-crud th.mat-header-cell {
  background-color: #2D2A4A !important;
  color: white !important;
}

/* Estilo para a coluna de ações na tela de chip */
.app-chip app-generic-crud table.mat-table td:last-child,
.app-chip app-generic-crud .mat-column-actions,
.app-chip app-generic-crud tr.mat-row td:last-child,
.app-chip app-generic-crud tr.mat-mdc-row td:last-child,
.app-chip app-generic-crud tr[mat-row] td:last-child,
.app-chip app-generic-crud td.acoes-cell {
  background-color: #2D2A4A !important;
  color: white !important;
}

/* Forçar a cor dos botões e ícones na coluna de ações */
.app-chip app-generic-crud td:last-child button,
.app-chip app-generic-crud td:last-child mat-icon,
.app-chip app-generic-crud td.mat-column-actions button,
.app-chip app-generic-crud td.mat-column-actions mat-icon,
.app-chip app-generic-crud td.acoes-cell button,
.app-chip app-generic-crud td.acoes-cell mat-icon {
  color: white !important;
}

/* Forçar a cor das imagens na coluna de ações */
.app-chip app-generic-crud td:last-child img,
.app-chip app-generic-crud td.mat-column-actions img,
.app-chip app-generic-crud td.acoes-cell img {
  filter: brightness(0) invert(1) !important;
}

/* Seletores extremamente específicos para garantir que as células da coluna de ações tenham a cor correta */
.app-chip app-generic-crud .mat-mdc-table .mdc-data-table__header-row .mdc-data-table__header-cell,
.app-chip app-generic-crud .mat-mdc-table .mdc-data-table__row .mdc-data-table__cell:last-child {
  background-color: #2D2A4A !important;
  color: white !important;
}

/* Linhas alternadas na tabela de chip */
.app-chip app-generic-crud .mat-row:nth-child(even),
.app-chip app-generic-crud .mat-mdc-row:nth-child(even),
.app-chip app-generic-crud tr[mat-row]:nth-child(even) {
  background-color: #F2F2F2 !important;
}

.app-chip app-generic-crud .mat-row:nth-child(odd),
.app-chip app-generic-crud .mat-mdc-row:nth-child(odd),
.app-chip app-generic-crud tr[mat-row]:nth-child(odd) {
  background-color: white !important;
}
