﻿.fg-table.mud-table {
    background-color: var(--mud-palette-background);
}

.fg-table .mud-table-root {
    border-collapse: separate;
    border-spacing: 0 2px;
}

.fg-table.mud-elevation-0 {
    box-shadow: none;
}

.fg-table .mud-table-head {
    background-color: var(--mud-palette-background);
}

.fg-table .mud-table-head th.mud-table-cell {
    color: var(--mud-palette-dark-darken);
    font-weight: 700;
}

.fg-table .mud-table-body .mud-table-row {
    background: var(--mud-palette-surface);
}

.fg-table .mud-table-body .mud-table-cell:first-child {
    border-top-left-radius: 5px;
    border-bottom-left-radius: 5px;
}

.fg-table .mud-table-body .mud-table-cell:last-child {
    border-top-right-radius: 5px;
    border-bottom-right-radius: 5px;
}

.fg-table .mud-table-cell {
    border-bottom: none;
}

.fg-table .mud-pagination-item.mud-pagination-item-selected button {
    background-color: var(--mud-palette-background);
}

.fg-table .mud-pagination-item.mud-pagination-item-selected button,
.fg-table .mud-pagination-item button:not(:disabled),
.fg-table .mud-table-body button:hover,
.fg-table .mud-table-head button:hover {
    color: var(--mud-palette-secondary);
    fill: var(--mud-palette-secondary);
}

.fg-table .mud-table-body button:hover,
.fg-table .mud-table-head button:hover {
    background-color: initial;
}

.fg-table .mud-table-body button,
.fg-table .mud-table-head button {
    color: var(--mud-palette-text-primary);
}

.fg-table .mud-pagination-item:not(.mud-pagination-item-selected):not(:last-child):not(:first-child) button {
    color: var(--mud-palette-action-disabled);
}

/* UIAUDIT-6: !important обоснован — скрытие MudBlazor underline pseudo-elements */
.fg-table .mud-table-pagination .mud-select .mud-input.mud-input-underline:before,
.fg-table .mud-table-pagination .mud-select .mud-input.mud-input-underline:after {
    display: none !important;
}

.fg-table .mud-table-pagination .mud-select .mud-input-slot {
    color: var(--mud-palette-text-secondary);
    padding-left: 16px;
}

.fg-pagi-select {
    box-shadow: none !important;
    border: 1px solid var(--mud-palette-text-secondary);
}

.fg-pagi-select .mud-list-item:hover {
    color: var(--mud-palette-secondary);
}

.fg-pagi-select .mud-selected-item:not(:hover) {
    background-color: var(--mud-palette-surface) !important;
}

.fg-table .mud-table-row {
    height: 60px;
}

.fg-table .mud-table-head .mud-table-row:has(div[role="progressbar"].mud-table-loading-progress) {
    display: none;
}

.fg-table .mud-table-cell:has(button.mud-icon-button) {
    justify-items: end;
}

.fg-table.mud-table-sticky-header * .mud-table-root .mud-table-head * .mud-table-cell {
    background-color: var(--mud-palette-background);
}

.fg-table .mud-table-container {
    max-height: unset;
    overflow-y: unset;
    overflow-x: auto;
}

.fg-table td:last-child,
.fg-table th:last-child {
    position: sticky;
    right: 0;
    z-index: 5;
}

.fg-table td:last-child {
    background: var(--mud-palette-surface);
}

.fg-table th:last-child {
    background: var(--mud-palette-background);
}

.fg-table th:last-child {
    background: var(--mud-palette-background);
}

.fg-table tr:hover td:last-child {
    background-color: var(--fg-color-hover-row);
}

.fg-table td:first-child,
.fg-table th:first-child {
    position: sticky;
    left: 0;
    z-index: 5;
}

.fg-table td:first-child {
    background: var(--mud-palette-surface);
}

.fg-table tr:hover td:first-child {
    background-color: var(--fg-color-hover-row);
}