/* Custom table header colors for different sports */

/* Force override any existing styles with higher specificity */

/* Override inline styles for header elements */
html body.soccer-page .header[style],
html body.soccer-page div.header[style],
html body[data-sport="soccer"] .header[style],
html body[data-sport="soccer"] div.header[style] {
    background-color: #0f1056 !important;
    background: #0f1056 !important;
    color: white !important;
}

html body.basketball-page .header[style],
html body.basketball-page div.header[style],
html body[data-sport="basketball"] .header[style],
html body[data-sport="basketball"] div.header[style] {
    background-color: #113065 !important;
    background: #113065 !important;
    color: white !important;
}
html body.soccer-page table thead th,
html body.soccer-page .mat-table .mat-header-cell,
html body.soccer-page .mat-header-row .mat-header-cell,
html body[data-sport="soccer"] table thead th,
html body[data-sport="soccer"] .mat-table .mat-header-cell,
html body[data-sport="soccer"] .mat-header-row .mat-header-cell {
    background-color: #0f1056 !important;
    background: #0f1056 !important;
    color: white !important;
    border-bottom-color: #0f1056 !important;
}

html body.basketball-page table thead th,
html body.basketball-page .mat-table .mat-header-cell,
html body.basketball-page .mat-header-row .mat-header-cell,
html body[data-sport="basketball"] table thead th,
html body[data-sport="basketball"] .mat-table .mat-header-cell,
html body[data-sport="basketball"] .mat-header-row .mat-header-cell {
    background-color: #113065 !important;
    background: #113065 !important;
    color: white !important;
    border-bottom-color: #113065 !important;
}

/* Additional selectors for Angular Material components */
/* Soccer */
.soccer-page .mat-sort-header,
.soccer-page .cdk-header-cell,
body[data-sport="soccer"] .mat-sort-header,
body[data-sport="soccer"] .cdk-header-cell,
body.route-soccer .mat-sort-header,
body.route-soccer .cdk-header-cell {
    background-color: #0f1056 !important;
    color: white !important;
}

/* Basketball */
.basketball-page .mat-sort-header,
.basketball-page .cdk-header-cell,
body[data-sport="basketball"] .mat-sort-header,
body[data-sport="basketball"] .cdk-header-cell,
body.route-basketball .mat-sort-header,
body.route-basketball .cdk-header-cell {
    background-color: #113065 !important;
    color: white !important;
}

/* Odds table specific selectors */
/* Soccer */
.soccer-page app-table .mat-header-cell,
.soccer-page .odds-table .mat-header-cell,
body[data-sport="soccer"] app-table .mat-header-cell,
body[data-sport="soccer"] .odds-table .mat-header-cell {
    background-color: #0f1056 !important;
    color: white !important;
}

/* Basketball */
.basketball-page app-table .mat-header-cell,
.basketball-page .odds-table .mat-header-cell,
body[data-sport="basketball"] app-table .mat-header-cell,
body[data-sport="basketball"] .odds-table .mat-header-cell {
    background-color: #113065 !important;
    color: white !important;
}

/* Game list headers */
/* Soccer */
.soccer-page .game-list-header,
.soccer-page .list-header,
body[data-sport="soccer"] .game-list-header,
body[data-sport="soccer"] .list-header {
    background-color: #0f1056 !important;
    color: white !important;
}

/* Basketball */
.basketball-page .game-list-header,
.basketball-page .list-header,
body[data-sport="basketball"] .game-list-header,
body[data-sport="basketball"] .list-header {
    background-color: #113065 !important;
    color: white !important;
}

/* Soccer pages - #0f1056 */
body[data-sport="soccer"] .table-header,
body[data-sport="soccer"] .mat-table thead,
body[data-sport="soccer"] .mat-header-row,
body[data-sport="soccer"] .mat-header-cell,
body[data-sport="soccer"] th,
body[data-sport="soccer"] .header-row,
body[data-sport="soccer"] .table-header-cell,
.soccer-page .table-header,
.soccer-page .mat-table thead,
.soccer-page .mat-header-row,
.soccer-page .mat-header-cell,
.soccer-page th,
.soccer-page .header-row,
.soccer-page .table-header-cell {
    background-color: #0f1056 !important;
    color: white !important;
}

/* Basketball pages - #113065 */
body[data-sport="basketball"] .table-header,
body[data-sport="basketball"] .mat-table thead,
body[data-sport="basketball"] .mat-header-row,
body[data-sport="basketball"] .mat-header-cell,
body[data-sport="basketball"] th,
body[data-sport="basketball"] .header-row,
body[data-sport="basketball"] .table-header-cell,
.basketball-page .table-header,
.basketball-page .mat-table thead,
.basketball-page .mat-header-row,
.basketball-page .mat-header-cell,
.basketball-page th,
.basketball-page .header-row,
.basketball-page .table-header-cell {
    background-color: #113065 !important;
    color: white !important;
}

/* Specific selectors for different table components */
/* Soccer */
.soccer-table .mat-sort-header,
.soccer-table .mat-header-cell,
.soccer-table thead th,
[data-sport="soccer"] .mat-sort-header,
[data-sport="soccer"] .mat-header-cell,
[data-sport="soccer"] thead th {
    background-color: #0f1056 !important;
    color: white !important;
}

/* Basketball */
.basketball-table .mat-sort-header,
.basketball-table .mat-header-cell,
.basketball-table thead th,
[data-sport="basketball"] .mat-sort-header,
[data-sport="basketball"] .mat-header-cell,
[data-sport="basketball"] thead th {
    background-color: #113065 !important;
    color: white !important;
}

/* Route-based selectors */
/* Soccer routes */
body.route-soccer .table-header,
body.route-soccer .mat-table thead,
body.route-soccer .mat-header-row,
body.route-soccer .mat-header-cell,
body.route-soccer th,
body.route-soccer .header-row {
    background-color: #0f1056 !important;
    color: white !important;
}

/* Basketball routes */
body.route-basketball .table-header,
body.route-basketball .mat-table thead,
body.route-basketball .mat-header-row,
body.route-basketball .mat-header-cell,
body.route-basketball th,
body.route-basketball .header-row {
    background-color: #113065 !important;
    color: white !important;
}

/* Additional table elements */
/* Soccer */
.soccer-page .odds-table-header,
.soccer-page .game-table-header,
[data-sport="soccer"] .odds-table-header,
[data-sport="soccer"] .game-table-header {
    background-color: #0f1056 !important;
    color: white !important;
}

/* Basketball */
.basketball-page .odds-table-header,
.basketball-page .game-table-header,
[data-sport="basketball"] .odds-table-header,
[data-sport="basketball"] .game-table-header {
    background-color: #113065 !important;
    color: white !important;
}

/* Override any existing styles */
/* Soccer */
.soccer-page table thead,
.soccer-page .mat-table .mat-header-row,
[data-sport="soccer"] table thead,
[data-sport="soccer"] .mat-table .mat-header-row {
    background-color: #0f1056 !important;
}

.soccer-page table thead th,
.soccer-page .mat-table .mat-header-cell,
[data-sport="soccer"] table thead th,
[data-sport="soccer"] .mat-table .mat-header-cell {
    background-color: #0f1056 !important;
    color: white !important;
    border-bottom: 1px solid #0f1056 !important;
}

/* Basketball */
.basketball-page table thead,
.basketball-page .mat-table .mat-header-row,
[data-sport="basketball"] table thead,
[data-sport="basketball"] .mat-table .mat-header-row {
    background-color: #113065 !important;
}

.basketball-page table thead th,
.basketball-page .mat-table .mat-header-cell,
[data-sport="basketball"] table thead th,
[data-sport="basketball"] .mat-table .mat-header-cell {
    background-color: #113065 !important;
    color: white !important;
    border-bottom: 1px solid #113065 !important;
}

/* Ensure text is readable */
.soccer-page .table-header *,
.soccer-page .mat-header-cell *,
.soccer-page th *,
[data-sport="soccer"] .table-header *,
[data-sport="soccer"] .mat-header-cell *,
[data-sport="soccer"] th * {
    color: white !important;
}

.basketball-page .table-header *,
.basketball-page .mat-header-cell *,
.basketball-page th *,
[data-sport="basketball"] .table-header *,
[data-sport="basketball"] .mat-header-cell *,
[data-sport="basketball"] th * {
    color: white !important;
}
