.ProductGrid {
    /* Эталон L = 160px: gap 2px, radius 8px */
    --tile-size: 130px;
    --tile-gap: calc(var(--tile-size) * 0.0125);
    --tile-radius: calc(var(--tile-size) * 0.05);
    --tile-pad: calc(var(--tile-size) * 0.0125);
    --tile-inner-pad: calc(var(--tile-size) * 0.01875);
    display: grid;
    grid-template-columns: repeat(auto-fill, var(--tile-size));
    justify-content: start;
    overflow-x: auto;
    gap: var(--tile-gap);
}

.ProductGridColumn {
    display: contents;
}

.ProductTile {
    position: relative;
    padding: var(--tile-pad);
    box-sizing: border-box;
    display: grid;
    width: var(--tile-size);
    max-width: var(--tile-size);
    border-radius: var(--tile-radius);
}

/*.aqua-block-bg, .red-block-bg, .orange-block-bg, .blue-block-bg, .light-green-block-bg, green-block-bg {*/
.prduct_tile_div {
    padding: var(--tile-inner-pad);
    box-sizing: border-box;
    border-radius: var(--tile-radius);
    overflow: hidden;
    background-size: 100% 100%;
    background-repeat: no-repeat;
    min-height: calc(var(--tile-size) * 0.72);
    width: 100%;
}

/* Компактный режим (без наименований): ниже, как раньше — только номер */
.ProductGrid--compact .prduct_tile_div {
    min-height: 0;
    padding-top: calc(var(--tile-size) * 0.055);
    padding-bottom: calc(var(--tile-size) * 0.055);
}

.ProductGrid--compact .h5,
.ProductGrid--compact .ProductName .h5 {
    font-size: calc(var(--tile-size) * 0.18);
    line-height: 1.1;
}

.ProductName {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    max-width: 100%;
    padding: 0 var(--tile-pad);
}

/* Компактные заголовки только на плитках объектов оператора */
.ProductGrid .h5,
.ProductGrid .h6,
.ProductTile .h5,
.ProductTile .h6,
.prduct_tile_div .h5,
.prduct_tile_div .h6,
.ProductName .h5,
.ProductName .h6 {
    margin: 0;
    max-width: 100%;
}

/* Номер объекта — в одну строку */
.ProductGrid .h5,
.ProductTile .h5,
.prduct_tile_div .h5,
.ProductName .h5 {
    font-size: calc(var(--tile-size) * 0.138);
    line-height: 1.15;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Наименование — с переносом */
.ProductGrid .h6,
.ProductTile .h6,
.prduct_tile_div .h6,
.ProductName .h6 {
    font-size: calc(var(--tile-size) * 0.092);
    line-height: 1.2;
    white-space: normal;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
}

/* Фильтры оператора в одну строку с чекбоксами */
.react_topSettings .operator-toolbar-filters {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px 16px;
    margin-left: 8px;
    margin-right: 4px;
    min-height: 22px;
    max-width: 100%;
}

.react_topSettings .operator-toolbar-filters .filter-checkbox {
    display: inline-flex;
    align-items: center;
    margin-top: 0;
    margin-left: 0;
    margin-bottom: 0;
}

/* Пресеты размера — в одной линии с «Группировать объекты» */
.operator-tile-size {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    padding: 0;
    font-weight: normal;
    white-space: nowrap;
    line-height: 16px;
    height: 22px;
}

.operator-tile-size__label {
    display: inline-block;
    padding: 0;
    margin: 0;
    cursor: default;
    color: inherit;
    font-size: inherit;
    font-weight: normal;
    line-height: 16px;
}

.operator-tile-size__presets {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    height: 16px;
}

.operator-tile-size__btn {
    box-sizing: border-box;
    min-width: 26px;
    height: 16px;
    padding: 0 6px;
    border: 1px solid #888;
    border-radius: 3px;
    background: #555;
    color: #eee;
    font-size: 11px;
    font-weight: bold;
    line-height: 14px;
    cursor: pointer;
}

.operator-tile-size__btn:hover {
    background: #666;
    border-color: #aaa;
}

.operator-tile-size__btn.is-active {
    background: #337ab7;
    border-color: #2e6da4;
    color: #fff;
}

.top-user-label {
    cursor: default;
    user-select: none;
    -webkit-user-select: none;
}

/* tsc: служебная подсветка цепочки плиток */
.tsc-bar {
    position: fixed;
    top: 48px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1040;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 4px 10px;
    background: rgba(40, 40, 40, 0.88);
    color: #ccc;
    border-radius: 4px;
    border: 1px solid #555;
    font-size: 12px;
    white-space: nowrap;
    opacity: 0.92;
}

.tsc-bar__tag {
    font-weight: bold;
    color: #8c8;
    font-size: 11px;
}

.tsc-bar__st {
    color: #888;
    min-width: 1.2em;
}

.tsc-bar__x {
    padding: 0 6px;
    border: 1px solid #666;
    border-radius: 2px;
    background: #333;
    color: #aaa;
    cursor: pointer;
    font-size: 14px;
    line-height: 1.2;
}

.tsc-bar__x:hover {
    background: #444;
    color: #eee;
}

.ProductTile.tsc--h .prduct_tile_div {
    box-shadow: inset 0 0 0 3px #0a3d0a, 0 0 10px 2px rgba(124, 252, 0, 0.85);
    outline: 3px solid #7CFC00;
    outline-offset: -1px;
    filter: brightness(1.12) saturate(1.35);
    position: relative;
    z-index: 3;
}

.ProductTile.tsc--h .prduct_tile_div::after {
    content: '';
    position: absolute;
    top: 4px;
    right: 6px;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #111;
    box-shadow: -10px 0 0 #111;
    opacity: 0.85;
    pointer-events: none;
}

.ProductTile.tsc--m .prduct_tile_div {
    box-shadow: inset 0 0 0 3px #145214, 0 0 6px 1px rgba(50, 205, 50, 0.55);
    outline: 3px solid #2ecc40;
    outline-offset: -1px;
    filter: brightness(0.92) hue-rotate(-8deg) saturate(1.4);
    position: relative;
    z-index: 2;
}

.ProductTile.tsc--m .prduct_tile_div::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    width: 42%;
    height: 42%;
    transform: translate(-50%, -50%);
    border-radius: 40%;
    background: rgba(20, 120, 30, 0.45);
    border: 2px solid rgba(10, 60, 10, 0.7);
    pointer-events: none;
}

.ProductTile.tsc--e .prduct_tile_div {
    box-shadow: inset 0 0 0 3px #0d3d0d, 0 0 8px 2px rgba(0, 100, 0, 0.7);
    outline: 3px solid #1a8f1a;
    outline-offset: -1px;
    filter: brightness(0.78) saturate(1.5) hue-rotate(-15deg);
    position: relative;
    z-index: 2;
}

.ProductTile.tsc--e .prduct_tile_div::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    width: 0;
    height: 0;
    transform: translate(-50%, -40%);
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-top: 16px solid rgba(0, 70, 0, 0.85);
    pointer-events: none;
}

.ProductTile.tsc--t .prduct_tile_div {
    animation: tsc-pulse 0.7s ease-in-out infinite;
    box-shadow: 0 0 0 3px #ff0, inset 0 0 0 2px #900;
    z-index: 1;
}

@keyframes tsc-pulse {
    0%, 100% { transform: scale(1); filter: brightness(1.1); }
    50% { transform: scale(1.06); filter: brightness(1.25); }
}

.ProductGrid--tsc .ProductTile {
    cursor: crosshair;
}

.min-width-1220 {
    min-width: 1220px;
}

* {
    font-family: 'Arial', 'Roboto', sans-serif;
}

.action {
    display: flex;
    flex-direction: column;
    width: 100%;
    /*min-height: 250px;*/
    /*border-left: 1px solid silver;*/
    /*border-right: 1px solid silver;*/
}

.selectList {
    margin: 5px 5px 0px 5px;
}

.customTextarea {
    box-sizing: border-box;
    border: 1px solid silver;
    border-radius: 3px;
    resize: none;
    height: 100%;
}

/*.customTextarea:active {*/
/*    box-sizing: border-box;*/
/*    border: 1px solid #DDB9B8;*/
/*    border-radius: 3px;*/
/*}*/

/*.customTextarea:focus {*/
/*    box-sizing: border-box;*/
/*    outline: none;*/
/*    border: 2px solid #DDB9B8;*/
/*    border-radius: 3px;*/
/*}*/

.customLabel {
    height: 100%;
    margin-left: 4px;
    margin-right: 4px;
    font-size: 13px;
    font-weight: bold;
    /*background-color: red;*/
    /*vertical-align: middle;*/
}

.mySelect {

}

.customDiv {
    /*display: flex;*/
    /*align-items: center;*/
    /*align-content: center;*/
    /*vertical-align: middle;*/
}

.customText {
    box-sizing: border-box;
    border: none;
    border-bottom: 1px solid silver;
    margin: 5px;
    font-size: 13px;
    /*text-align: center;*/
    background-color: transparent;
}

.customText:active {
    box-sizing: border-box;
    outline: none;
    /*border: none;*/
    border-bottom: 1px solid black;
}

.customText:focus {
    box-sizing: border-box;
    outline: none;
    /*border: none;*/
    border-bottom: 1px solid black;
}

.simple-btn {
    font-size: 13px;
    padding: 2px 10px 2px 10px;
    border: 1px solid #dddddd;
    border-radius: 3px;
    margin: 5px;
}

.simple-btn:hover {
    background-color: #dddddd;
}

.simple-btn:active {
    background-color: white;
}

.red-btn {
    font-size: 13px;
    padding: 2px 10px 2px 10px;
    border: 1px solid #d2322d;
    border-radius: 3px;
    background-color: #d2322d;
    margin: 5px;
}

.red-btn:hover {
    border: 1px solid #e93732;
    background-color: #e93732;
}

.red-btn:active {
    background-color: white;
}

.red-btn:disabled {
    border: 1px solid #dddddd;
    background-color: transparent;
}

.min-width-250 {
    min-width: 250px;
}

.min-width-427 {
    min-width: 427px;
}

.min-width-1042 {
    min-width: 1042px;
}

.min-width-1200 {
    min-width: 1200px;
}

.attentionButton {
    /*background-color: #DDB9B8;*/
    height: 30px;
    border-radius: 3px;
    border: 2px solid black;
    font-size: 13px;
    font-weight: bold;
}

@font-face {
    font-family: 'Material Symbols Outlined';
    font-style: normal;
    font-weight: 400;
    src: url("../../fonts/MaterialSymbolsRounded-e374547c83dc9be5d2d4a3b7149d3dd4.woff2") format('woff2');
}

.material-symbols-outlined {
    font-family: 'Material Symbols Outlined';
    font-weight: normal;
    font-style: normal;
    font-size: 20px; /* Preferred icon size */
    display: inline-block;
    line-height: 1;
    text-transform: none;
    letter-spacing: normal;
    word-wrap: normal;
    white-space: nowrap;
    direction: ltr;
}


.react-checkbox-tree {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: horizontal;
    -webkit-box-direction: reverse;
    -ms-flex-direction: row-reverse;
    flex-direction: row-reverse;
    font-size: 13px;
}

.react-checkbox-tree > ol {
    -webkit-box-flex: 1;
    -ms-flex: 1 1 auto;
    flex: 1 1 auto;
}

.react-checkbox-tree ol {
    margin: 0;
    padding-left: 0;
    list-style-type: none;
}

.react-checkbox-tree ol ol {
    padding-left: 24px;
}

.react-checkbox-tree button {
    line-height: normal;
    color: inherit;
}

.react-checkbox-tree button:disabled {
    cursor: not-allowed;
}

.react-checkbox-tree .rct-bare-label {
    cursor: default;
}

.react-checkbox-tree label {
    margin-bottom: 0;
    cursor: pointer;
}

.react-checkbox-tree label:hover {
    background: rgba(51, 51, 204, 0.1);
}

.react-checkbox-tree label:active, .react-checkbox-tree label:focus {
    background: rgba(51, 51, 204, 0.15);
}

.react-checkbox-tree:not(.rct-native-display) input {
    display: none;
}

.react-checkbox-tree.rct-native-display input {
    margin: 0 5px;
}

.react-checkbox-tree .rct-icon {
    display: inline-block;
    text-align: center;
    text-rendering: auto;
    font-family: "Font Awesome 5 Free", "FontAwesome", sans-serif;
    font-weight: normal;
    font-variant: normal;
    font-style: normal;
}

.rct-disabled > .rct-text > label {
    opacity: 0.75;
    cursor: not-allowed;
}

.rct-disabled > .rct-text > label:hover {
    background: transparent;
}

.rct-disabled > .rct-text > label:active {
    background: transparent;
}

.rct-text {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
}

.rct-options {
    -webkit-box-flex: 0;
    -ms-flex: 0 0 auto;
    flex: 0 0 auto;
    margin-left: 0.5rem;
    text-align: right;
}

.rct-option {
    opacity: 0.75;
    border: 0;
    background: none;
    cursor: pointer;
    padding: 0 4px;
    font-size: 18px;
}

.rct-option:hover {
    opacity: 1;
}

.rct-option + .rct-option {
    margin-left: 2px;
}

.rct-collapse,
.rct-checkbox,
.rct-node-icon {
    padding: 0 5px;
}

.rct-collapse *,
.rct-checkbox *,
.rct-node-icon * {
    display: inline-block;
    margin: 0;
    width: 14px;
}

.rct-collapse {
    -ms-flex-item-align: stretch;
    align-self: stretch;
    border: 0;
    background: none;
    line-height: normal;
    color: inherit;
    font-size: 12px;
}

.rct-collapse.rct-collapse-btn {
    cursor: pointer;
}

.rct-collapse > .rct-icon-expand-close {
    opacity: 0.5;
}

.rct-collapse > .rct-icon-expand-close:hover {
    opacity: 1;
}

.rct-native-display .rct-checkbox {
    display: none;
}

.rct-node-clickable {
    cursor: pointer;
}

.rct-node-clickable:hover {
    background: rgba(51, 51, 204, 0.1);
}

.rct-node-clickable:focus {
    outline: 0;
    background: rgba(51, 51, 204, 0.2);
}

.rct-node-icon {
    color: #33c;
}

.rct-title {
    padding: 0 5px;
}

.rct-icons-fa4 .rct-icon-expand-close::before {
    content: "\f054";
}

.rct-icons-fa4 .rct-icon-expand-open::before {
    content: "\f078";
}

.rct-icons-fa4 .rct-icon-uncheck::before {
    content: "\f096";
}

.rct-icons-fa4 .rct-icon-check::before {
    content: "\f046";
}

.rct-icons-fa4 .rct-icon-half-check::before {
    opacity: 0.5;
    content: "\f046";
}

.rct-icons-fa4 .rct-icon-leaf::before {
    content: "\f016";
}

.rct-icons-fa4 .rct-icon-parent-open::before {
    content: "\f115";
}

.rct-icons-fa4 .rct-icon-parent-close::before {
    content: "\f114";
}

.rct-icons-fa4 .rct-icon-expand-all::before {
    content: "\f0fe";
}

.rct-icons-fa4 .rct-icon-collapse-all::before {
    content: "\f146";
}

.rct-icons-fa5 .rct-icon-expand-close::before {
    font-weight: 900;
    content: "\f054";
}

.rct-icons-fa5 .rct-icon-expand-open::before {
    font-weight: 900;
    content: "\f078";
}

.rct-icons-fa5 .rct-icon-uncheck::before {
    content: "\f0c8";
}

.rct-icons-fa5 .rct-icon-check::before {
    content: "\f14a";
}

.rct-icons-fa5 .rct-icon-half-check::before {
    opacity: 0.5;
    content: "\f14a";
}

.rct-icons-fa5 .rct-icon-leaf::before {
    content: "\f15b";
}

.rct-icons-fa5 .rct-icon-parent-open::before {
    content: "\f07c";
}

.rct-icons-fa5 .rct-icon-parent-close::before {
    content: "\f07b";
}

.rct-icons-fa5 .rct-icon-expand-all::before {
    content: "\f0fe";
}

.rct-icons-fa5 .rct-icon-collapse-all::before {
    content: "\f146";
}

.rct-direction-rtl {
    direction: rtl;
}

.rct-direction-rtl ol ol {
    padding-right: 24px;
    padding-left: 0;
}

.rct-direction-rtl.rct-icons-fa4 .rct-icon-expand-close::before {
    content: "\f105";
}

.rct-direction-rtl.rct-icons-fa5 .rct-icon-expand-close::before {
    content: "\f053";
}


.proton-counter-icon-btn {
    font-size: 13px;
    padding: 0;
    font-weight: bold;
    line-height: 1;
    color: #000;
    text-shadow: 0 1px 0 #fff;
    filter: alpha(opacity=20);
    opacity: 0.2;
}
.proton-counter-icon-btn:hover {
    color: #000;
    text-decoration: none;
    cursor: pointer;
    filter: alpha(opacity=50);
    opacity: 0.5;
}

.proton-counter-icon-btn:active {
    filter: alpha(opacity=20);
    opacity: 0.2;
}

button.proton-counter-icon-btn {
    padding: 0;
    cursor: pointer;
    background: transparent;
    border: 0;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

.proton-counter-input {
    border: none;
    width: 100%;
}

.proton-counter-input:focus {
    outline: none;
}

.proton-counter {
    display: block;
    width: 100%;
    height: 34px;
    padding: 6px 12px;
    font-size: 14px;
    line-height: 1.428571429;
    color: #555555;
    vertical-align: middle;
    background-color: #ffffff;
    background-image: none;
    border: 1px solid #cccccc;
    border-radius: 4px;
    -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075);
    box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075);
    -webkit-transition: border-color ease-in-out 0.15s, box-shadow ease-in-out 0.15s;
    transition: border-color ease-in-out 0.15s, box-shadow ease-in-out 0.15s;
}

.proton-counter-active {
    border-color: #66afe9;
    outline: 0;
    -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 8px rgba(102, 175, 233, 0.6);
    box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 8px rgba(102, 175, 233, 0.6);
}

.proton-counter-active {
    border-color: #66afe9;
    outline: 0;
    -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 8px rgba(102, 175, 233, 0.6);
    box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 8px rgba(102, 175, 233, 0.6);
}

.proton-counter-has-error {
    border-color: #953b39;
    -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 6px #d59392;
    box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 6px #d59392;
}

.tr-string-example {
    cursor: pointer;
}
.box.box--pageoperator {
    margin: 2px;
}