/* MudDataGrid header — brand red with white text */
.mud-data-grid .mud-table-head .mud-table-row.custom-header-row > .mud-table-cell,
.mud-data-grid .mud-table-head .mud-table-cell.custom-header-row,
.mud-data-grid.mud-table-striped .mud-table-head .mud-table-row.custom-header-row > .mud-table-cell,
.mud-data-grid.mud-table-striped .mud-table-head .mud-table-cell.custom-header-row,
.mud-data-grid .mud-table-head .custom-header-row > .mud-table-cell {
    background-color: #C51B35 !important;
    background-image: none !important;
    color: #ffffff !important;
    font-size: 12px !important;
    font-weight: 600;
    border-bottom: 1px solid #a91630 !important;
}

/* Force white text on all header content (MudBlazor nests labels/icons deeply) */
.mud-data-grid .mud-table-head .mud-table-row.custom-header-row,
.mud-data-grid .mud-table-head .mud-table-cell.custom-header-row,
.mud-data-grid .mud-table-head .mud-table-row.custom-header-row *,
.mud-data-grid .mud-table-head .mud-table-cell.custom-header-row *,
.mud-data-grid .mud-table-head .mud-table-row.custom-header-row .mud-table-cell-content,
.mud-data-grid .mud-table-head .mud-table-row.custom-header-row .column-header,
.mud-data-grid .mud-table-head .mud-table-row.custom-header-row .sortable-column-header,
.mud-data-grid .mud-table-head .mud-table-cell.custom-header-row .mud-table-cell-content,
.mud-data-grid .mud-table-head .mud-table-cell.custom-header-row .column-header,
.mud-data-grid .mud-table-head .mud-table-cell.custom-header-row .sortable-column-header,
.mud-data-grid .mud-table-head .mud-table-row.custom-header-row .mud-typography,
.mud-data-grid .mud-table-head .mud-table-cell.custom-header-row .mud-typography,
.mud-data-grid .mud-table-head .mud-table-row.custom-header-row .mud-button-root,
.mud-data-grid .mud-table-head .mud-table-cell.custom-header-row .mud-button-root,
.mud-data-grid .mud-table-head .mud-table-row.custom-header-row .mud-icon-root,
.mud-data-grid .mud-table-head .mud-table-cell.custom-header-row .mud-icon-root,
.mud-data-grid .mud-table-head .mud-table-row.custom-header-row .mud-svg-icon,
.mud-data-grid .mud-table-head .mud-table-cell.custom-header-row .mud-svg-icon {
    color: #ffffff !important;
    fill: currentColor !important;
}

/* Legacy class hook */
.custom-header-row,
.custom-header-row th {
    background-color: #C51B35 !important;
    color: #ffffff !important;
}

/* Body cells — match legacy table-sm / #grid { font-size: 0.9em } */
.mud-data-grid .mud-table-body .mud-table-cell {
    font-size: 12px !important;
    line-height: 1.35;
    padding-top: 4px !important;
    padding-bottom: 4px !important;
}

.mud-data-grid .mud-table-pagination,
.mud-data-grid .mud-table-pagination-toolbar,
.mud-data-grid .mud-table-pagination-caption {
    font-size: 12px !important;
}

.mud-data-grid .mud-table-pagination .mud-select {
    font-size: 12px !important;
}

.mud-data-grid .mud-table-body .mud-table-cell svg {
    width: 18px;
    height: 18px;
}

/* In-grid empty state */
.bridge-grid-empty {
    padding: 16px;
    color: #666;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.4;
    text-align: center;
}

.mud-data-grid .mud-table-body .bridge-grid-empty {
    display: block;
    width: 100%;
}
