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

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

.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 {
    font-family: 'Inter', sans-serif;
    color: #542A80;
    font-weight: 600;
    font-size: 13px;
    line-height: 1;
    text-align: center !important;
    vertical-align: middle;
    white-space: nowrap;
    word-break: keep-all;
    overflow-wrap: normal;
}

.fg-table .mud-table-body .mud-table-cell {
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    font-size: 14px;
    line-height: 1;
    color: #5D748A;
    min-height: 30px;
    text-align: center !important;
    vertical-align: middle;
}

.fg-table .mud-table-head .mud-table-cell,
.fg-table .mud-table-body .mud-table-cell,
.fg-table .mud-table-footer .mud-table-cell {
    text-align: center !important;
    vertical-align: middle !important;
}

.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 !important;
    height: 30px;
    min-height: 100%;
    text-align: center !important;
}

.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);
    height: 30px;
}

.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: 10px;
    border-bottom-left-radius: 10px;
    background: #fff;
    width: 100%;
    height: 30px;
    box-sizing: border-box;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.raw-stock-table .container-block-link{
    justify-content: center;
    padding-left: 0;
}

.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: 10px;
    border-bottom-right-radius: 10px;
    background: #fff;
    width: 100%;
    height: 30px;
    box-sizing: border-box;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: 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;
}

.fg-table .mud-table-head .mud-table-cell {
    height: 30px;
    padding: 0 6px;
}

.fg-table .mud-table-body .mud-table-cell {
    height: 30px;
    padding: 0 6px;
}

.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;
    line-height: 1;
    align-items: center;
    text-align: center !important;
}

.fg-table .mud-table-cell > *,
.fg-table .mud-table-cell .mud-typography,
.fg-table .mud-table-cell .mud-link {
    text-align: center !important;
}

.fg-table .mud-table-head .mud-table-sort-label,
.fg-table .mud-table-head .mud-table-sort-label-container {
    justify-content: center !important;
    text-align: center !important;
}

.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-head .mud-table-cell:first-child .mud-checkbox,
.fg-table .mud-table-body .mud-table-cell:first-child .mud-checkbox {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}

.fg-table .fg-table-actions-cell {
    text-align: center;
}

.fg-table .fg-table-actions {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    min-height: 30px;
    height: 30px;
    width: 100%;
}

.fg-table .fg-table-actions .mud-icon-button {
    width: 30px;
    height: 30px;
}

.fg-table .fg-table-pager {
    gap: 12px;
    min-height: 40px;
}

.fg-table .fg-table-pager .mud-pagination {
    min-height: 40px;
}

.fg-table .fg-table-pager .mud-input-control {
    margin-top: 0;
}

.fg-table .fg-table-pager .mud-select {
    min-width: 132px;
}

.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: hidden;
    scrollbar-width: none;
}

.fg-table.fg-table-has-overflow-x .mud-table-container {
    overflow-x: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(84, 42, 128, 0.35) transparent;
}

.fg-overflow-x-managed {
    overflow-x: hidden !important;
    scrollbar-width: none !important;
}

.fg-overflow-x-managed.fg-overflow-x-active {
    overflow-x: auto !important;
    scrollbar-width: thin !important;
    scrollbar-color: rgba(84, 42, 128, 0.35) transparent !important;
}

.fg-table .mud-table-container::-webkit-scrollbar {
    width: 4px;
    height: 0;
}

.fg-table.fg-table-has-overflow-x .mud-table-container::-webkit-scrollbar {
    height: 4px;
}

.fg-overflow-x-managed::-webkit-scrollbar {
    width: 4px;
    height: 0;
}

.fg-overflow-x-managed.fg-overflow-x-active::-webkit-scrollbar {
    height: 4px;
}

.fg-table .mud-table-container::-webkit-scrollbar-track {
    background: transparent;
}

.fg-overflow-x-managed::-webkit-scrollbar-track {
    background: transparent;
}

.fg-table .mud-table-container::-webkit-scrollbar-thumb {
    background-color: rgba(84, 42, 128, 0.35);
    border-radius: 999px;
}

.fg-overflow-x-managed::-webkit-scrollbar-thumb {
    background-color: rgba(84, 42, 128, 0.35);
    border-radius: 999px;
}

.fg-table .mud-table-container::-webkit-scrollbar-thumb:hover {
    background-color: rgba(84, 42, 128, 0.5);
}

.fg-overflow-x-managed::-webkit-scrollbar-thumb:hover {
    background-color: rgba(84, 42, 128, 0.5);
}

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

.fg-table.mud-table-dense * .mud-table-row .mud-table-cell:last-child {
    padding-right: 0 !important;
    padding-inline-end: 0 !important;
}
.fg-table td:last-child {
    background: var(--mud-palette-surface);
}

.fg-table th:last-child {
    background: var(--mud-palette-background);
    z-index: 7;
    text-align: center;
}

.fg-table tr:hover td, .fg-table.fg-mockup-table .mud-table-body tr:hover .mud-table-cell {
    background-color: var(--fg-color-hover-row);
}

.fg-table td:first-child,
.fg-table th:first-child {
    position: sticky !important;
    left: 0 !important;
    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;
    text-align: center;
}

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

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

.fg-table.fg-mockup-table .mud-table-container {
    overflow-y: visible;
}

.fg-table.fg-mockup-table .mud-table-root {
    border-collapse: separate;
    border-spacing: 0 4px;
    width: max-content;
    min-width: 100%;
}

.fg-table.fg-mockup-table .mud-table-head .mud-table-cell {
    background: var(--mud-palette-background);
    border-bottom: none;
    color: var(--mud-palette-dark-darken);
    font-size: 0.875rem;
    font-weight: 700;
    line-height: 1.25;
    padding: 0;
    vertical-align: bottom;
    white-space: nowrap;
    text-align: center;
}

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

.fg-table.fg-mockup-table .mud-table-body .mud-table-cell {
    background: var(--fg-mockup-cell-bg, var(--mud-palette-surface));
    border-bottom: none;
    color: #5D748A;
    height: 30px;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 500;
    line-height: 1;
    padding: 0;
    vertical-align: middle;
    white-space: nowrap;
    text-align: center;
}

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

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

.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: var(--fg-mockup-cell-bg, var(--mud-palette-surface));
}

.fg-table.fg-mockup-table .mud-table-body .mud-table-cell:last-child {
    background: var(--fg-mockup-cell-bg, var(--mud-palette-surface));
}

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

.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 {
    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: #5D748A;
    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: var(--mud-palette-secondary);
}

.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: var(--fg-mockup-cell-bg, var(--mud-palette-surface));
}

.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: #5D748A;
    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;
}

.raw-stock-table .mud-table-cell .mud-checkbox {
    margin: unset;
}
