.container-grid {
  width: 100%;
  margin: 20px 0;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  overflow: hidden;
}

/* Estilo base de la tabla */
.table-custom {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 0 !important;
  font-family: 'Segoe UI', Arial, sans-serif;
  font-size: 14px;
  background-color: #ffffff !important; /* Todo el fondo en blanco */
}

  /* ENCABEZADO: Fuerza el color ROJO únicamente aquí */
  .table-custom tr:first-child th,
  .table-custom thead tr th {
    background-color: #d32f2f !important; /* Rojo institucional */
    background-image: none !important;
    color: #ffffff !important; /* Letras blancas para contrastar */
    padding: 12px 15px !important;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 13px;
    border: none !important;
    text-align: left;
  }

    /* Enlaces del encabezado (por si tenés el Sorting/Ordenamiento activo) */
    .table-custom tr:first-child th a,
    .table-custom thead tr th a {
      color: #ffffff !important;
      text-decoration: none !important;
    }

  /* FILAS DE DATOS: Forzamos que sean totalmente BLANCAS */
  .table-custom tr td {
    background-color: #ffffff !important;
    color: #333333 !important;
    padding: 12px 15px !important;
    border-bottom: 1px solid #eee !important;
  }

  /* EFECTO HOVER: Un gris muy sutil al pasar el mouse por las filas */
  .table-custom tr:not(:first-child):hover td {
    background-color: #f5f5f5 !important;
    cursor: pointer;
  }

  /* PAGINACIÓN: Fondo blanco o gris claro al pie */
  .table-custom tr:last-child td {
    background-color: #ffffff !important;
    border-bottom: none !important;
  }
