.table-responsive thead th {
    position: sticky;
    top: 0;
    background: #1976d2;
    color: white;
    z-index: 10;
    text-align: center; /* opcional */
}