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

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

.fg-table.fg-table-resizable .mud-table-root {
    table-layout: fixed;
    width: max-content;
    min-width: 100%;
}

.fg-table-resizable .mud-table-root {
    table-layout: fixed;
    width: max-content;
    min-width: 100%;
}

.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-head th.mud-table-cell:first-child {
    position: sticky;
    left: 0;
    z-index: 7;
    background: var(--mud-palette-background);
}

.fg-table .fg-table-header-cell {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100%;
}

.fg-table-resizable .mud-table-head th.mud-table-cell {
    position: relative;
}

.fg-table .fg-column-resizer {
    position: absolute;
    top: -8px;
    right: -8px;
    width: 16px;
    height: calc(100% + 16px);
    cursor: col-resize;
    z-index: 7;
}

.fg-table-resizable .fg-column-resizer {
    position: absolute;
    top: -8px;
    right: -8px;
    width: 16px;
    height: calc(100% + 16px);
    cursor: col-resize;
    z-index: 7;
}

.fg-table .fg-column-resizer::after {
    content: "";
    position: absolute;
    top: 8px;
    bottom: 8px;
    left: 50%;
    width: 2px;
    transform: translateX(-50%);
    background-color: transparent;
    transition: background-color .15s ease;
}

.fg-table-resizable .fg-column-resizer::after {
    content: "";
    position: absolute;
    top: 8px;
    bottom: 8px;
    left: 50%;
    width: 2px;
    transform: translateX(-50%);
    background-color: transparent;
    transition: background-color .15s ease;
}

.fg-table .mud-table-cell:hover .fg-column-resizer::after,
body.fg-table-is-resizing .fg-column-resizer::after {
    background-color: var(--mud-palette-secondary);
}

.fg-table-resizable .mud-table-cell:hover .fg-column-resizer::after,
body.fg-table-is-resizing .fg-table-resizable .fg-column-resizer::after {
    background-color: var(--mud-palette-secondary);
}

.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: 20px; */
    /* border-bottom-left-radius: 20px; */
    background-color: #F5F5F5;
}

.container-block-link {
    border-top-left-radius: 20px;
    border-bottom-left-radius: 20px;
    background: #fff;
    width: 100%;
    height: 48px;
    box-sizing: border-box;
    display: flex;
    justify-content: center;
    align-items: center;
}

.fg-table .mud-table-body tr:hover .container-block-link {
    background-color: var(--fg-color-hover-row);
}

.fg-table .mud-table-body .mud-table-cell:last-child {
    /* border-top-right-radius: 20px; */
    /* border-bottom-right-radius: 20px; */
    background-color: #F5F5F5;
}

.container-block-link-right {
    border-top-right-radius: 20px;
    border-bottom-right-radius: 20px;
    background: #fff;
    width: 100%;
    height: 48px;
    box-sizing: border-box;
    display: flex;
    justify-content: center;
    align-items: center;
}

.fg-table .mud-table-body tr:hover .container-block-link-right {
    background-color: var(--fg-color-hover-row);
}

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

.mud-table-dense * .mud-table-row .mud-table-cell {
    padding: 0;
}

.fg-table .mud-table-body .mud-table-cell:not(:has(button.mud-icon-button)) {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.fg-table .mud-table-body .mud-table-cell:not(:has(button.mud-icon-button)) > * {
    max-width: 100%;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.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-resizable .mud-table-container {
    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 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: 6;
}

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

.fg-table th:first-child {
    background: var(--mud-palette-background);
    z-index: 7;
}

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

.fg-table.fg-mockup-table.mud-table {
    background: transparent;
}

.fg-table.fg-mockup-table .mud-table-container {
    overflow-x: auto;
    overflow-y: visible;
    padding-bottom: 6px;
}

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

.fg-table.fg-mockup-table .mud-table-head .mud-table-cell {
    background: transparent;
    color: var(--mud-palette-secondary);
    font-size: 12px;
    font-weight: 700;
    line-height: 1.2;
    padding: 0 10px 8px;
    white-space: nowrap;
}

.fg-table.fg-mockup-table .mud-table-head .mud-table-cell:first-child {
    background: transparent;
    border-radius: 12px 0 0 12px;
}

.fg-table.fg-mockup-table .mud-table-head .mud-table-cell:last-child {
    background: transparent;
    border-radius: 0 12px 12px 0;
}

.fg-table.fg-mockup-table .mud-table-body .mud-table-row {
    background: transparent;
}

.fg-table.fg-mockup-table .mud-table-body .mud-table-cell {
    background: var(--fg-mockup-cell-bg, #ffffff);
    color: #587089;
    height: 40px;
    padding: 0 10px;
    vertical-align: middle;
    white-space: nowrap;
}

.fg-table.fg-mockup-table .mud-table-body .fg-mockup-row {
    --fg-mockup-cell-bg: #ffffff;
}

.fg-table.fg-mockup-table .mud-table-body .fg-mockup-row-alt {
    --fg-mockup-cell-bg: #efe7f7;
}

.fg-table.fg-mockup-table .mud-table-body .mud-table-cell:first-child,
.fg-table.fg-mockup-table .mud-table-body .mud-table-cell:last-child {
    z-index: 6;
}

.fg-table.fg-mockup-table .mud-table-body .mud-table-cell:first-child {
    background: #ffffff;
    border-radius: 12px 0 0 12px;
}

.fg-table.fg-mockup-table .mud-table-body .mud-table-cell:last-child {
    background: #ffffff;
    border-radius: 0 12px 12px 0;
}

.fg-table.fg-mockup-table tr:hover td:first-child,
.fg-table.fg-mockup-table tr:hover td:last-child {
    background: #ffffff;
}

.fg-table.fg-mockup-table.price-settings-table .mud-table-body .mud-table-cell {
    font-size: 13px;
    text-align: center;
}

.fg-table.fg-mockup-table.price-settings-table .mud-table-head .mud-table-cell {
    padding-bottom: 10px;
    text-align: center;
}

.fg-table.fg-mockup-table.price-settings-table .mud-table-head .mud-table-cell:first-child,
.fg-table.fg-mockup-table.price-settings-table .mud-table-body .mud-table-cell:first-child {
    text-align: center;
}

.fg-table.fg-mockup-table.price-settings-table .mud-table-head .mud-table-cell:first-child .mud-checkbox,
.fg-table.fg-mockup-table.price-settings-table .mud-table-body .mud-table-cell:first-child .mud-checkbox {
    display: flex;
    justify-content: center;
    margin: 0 auto;
}

.fg-table.fg-mockup-table.price-settings-table .price-cell {
    color: #6A1B9A;
    font-weight: 500;
}

.fg-table.fg-mockup-table.price-settings-table .price-row.price-cell {
    border-top: none;
    border-bottom: none;
}

.fg-table.fg-mockup-table.price-settings-table .mud-icon-button,
.fg-table.fg-mockup-table.price-settings-table .mud-checkbox .mud-button-root {
    color: #6A1B9A;
}

.fg-table.fg-mockup-table.stock-input-table .mud-table-head .mud-table-cell,
.fg-table.fg-mockup-table.stock-input-table .mud-table-body .mud-table-cell {
    text-align: center;
}

.fg-table.fg-mockup-table.stock-input-table .mud-table-body .mud-table-cell {
    height: 74px;
    font-size: 13px;
}

.fg-table.fg-mockup-table.stock-input-table .mud-table-body .mud-table-cell:first-child,
.fg-table.fg-mockup-table.stock-input-table .mud-table-body .mud-table-cell:last-child {
    background: #ffffff;
}

.fg-table.fg-mockup-table.stock-input-table .stock-input-stack {
    padding: 6px 0;
    white-space: normal;
    overflow: visible;
    align-items: center;
}

.fg-table.fg-mockup-table.stock-input-table .stock-input-current {
    color: #7d8da1;
}

.fg-table.fg-mockup-table.stock-input-table .stock-input-total {
    color: #6A1B9A;
    font-weight: 600;
}

.fg-table.fg-mockup-table.stock-input-table .stock-input-field {
    min-width: 72px;
}

.fg-table.fg-mockup-table.stock-input-table .stock-input-field .mud-input-control {
    margin-top: 0;
    background: transparent;
}

.fg-table.fg-mockup-table.stock-input-table .stock-input-field .mud-input.mud-input-outlined {
    border-radius: 14px;
    overflow: hidden;
    background: #ffffff;
}

.fg-table.fg-mockup-table.stock-input-table .stock-input-field fieldset.mud-input-outlined-border {
    border-radius: 14px;
    border-color: #d7d2de;
}

.fg-table.fg-mockup-table.stock-input-table .stock-input-field:hover fieldset.mud-input-outlined-border,
.fg-table.fg-mockup-table.stock-input-table .stock-input-field:focus-within fieldset.mud-input-outlined-border {
    border-color: #d7d2de;
}

.fg-table.fg-mockup-table.stock-input-table .stock-input-field .mud-input-slot {
    background: transparent;
    border-radius: inherit;
    background-clip: padding-box;
}

.fg-table.fg-mockup-table.stock-input-table-plain .stock-input-field .mud-input-slot {
    background: #ffffff;
}
