#catalog .catalog-header{justify-content:space-between}
#catalog .catalog-search{justify-content:flex-start;flex-wrap:wrap}
.catalog-options-panel{position:absolute;z-index:4;right:0;top:100%;display:flex;gap:8px;flex-wrap:wrap;min-width:min(280px,65vw);padding:12px;border:1px solid var(--line);border-radius:9px;background:white;box-shadow:0 6px 22px #1f39221a}
.catalog-sync{border-bottom:1px solid var(--line)}
.catalog-sync>div{margin:6px 8px}
#catalog .catalog-tools{display:flex;flex-wrap:wrap;align-items:center}
#catalog .catalog-tools .catalog-tool-icon{display:inline-grid;place-items:center;width:32px;height:32px}
#catalog .catalog-tools button svg{width:17px;height:17px}
#catalog[data-mode=simple] :is(.catalog-feedback-cell,.catalog-feedback-head,.catalog-boost-sort,.barcode-edit-trigger,.supplier-input,.catalog-table .markup-slider,.marketplace-auto-price-form,.stock-upload-controls,.row-actions .inline-save-form,.row-actions .inline-delete-form,.row-actions [data-label-product]){display:none}
#catalog[data-mode=simple] .catalog-price-controls.has-boost{display:block}
#catalog .boost-entry[hidden]{display:none}
.catalog-popover{width:min(760px,calc(100% - 28px));max-height:90vh;padding:20px;border:1px solid var(--line);border-radius:12px;color:var(--ink);background:#fff;box-shadow:0 18px 56px #10261935}
.catalog-popover::backdrop{background:#12261b66}
.catalog-popover>header,.catalog-dialog-actions{display:flex;align-items:center;justify-content:space-between;gap:8px}
.catalog-popover h2{margin:0}
.catalog-product-fields{display:grid;grid-template-columns:repeat(auto-fit,minmax(205px,1fr));gap:12px;margin-top:16px}
.catalog-product-fields label{display:grid;gap:4px;font-size:12px}
.catalog-product-fields :is(input,select,textarea){width:100%;padding:8px;border:1px solid var(--line);border-radius:5px;background:#fff;font:inherit}
.catalog-product-fields .catalog-barcodes{grid-column:1/-1}
.catalog-sync .catalog-options-panel{position:static;min-width:0;box-shadow:none;border:0;padding:6px 0}
#catalog[data-mode=simple] .catalog-feedback-period,#catalog[data-mode=simple] .catalog-feedback-custom{display:none}
.catalog-boost-part [hidden]{display:none!important}
#catalog .catalog-header{align-items:center;flex-wrap:wrap;justify-content:flex-start;gap:8px 12px}
#catalog .catalog-search{flex:0 1 auto}
#catalog .catalog-master-switches{margin:0;align-items:center}
#catalog .catalog-master-switches label{padding:5px 8px;min-height:34px}
#catalog .catalog-save-state:not(:has(button:not([hidden]))){display:none}
#catalog [data-catalog-save-all][hidden]{display:none}
.catalog-add-dialog{width:min(530px,calc(100% - 28px))}
.catalog-add-actions{display:flex;justify-content:flex-end;gap:8px}

#catalog .catalog-toolbar {
    position: relative;
    z-index: 3;
    display: grid;
    gap: 8px;
    padding: 10px 12px;
    margin-bottom: 12px;
    border: 1px solid #dce7e0;
    border-radius: 10px;
    background: #f0f6f2;
}
#catalog .catalog-toolbar .catalog-header {display:grid;grid-template-columns:minmax(110px,1fr) auto;gap:8px}
#catalog .catalog-toolbar .catalog-search {position:relative;display:block;min-width:0;margin:0}
#catalog .catalog-search input[type=search] {width:100%;min-width:0;height:34px;padding-left:32px;background:#fff}
.catalog-search>svg {position:absolute;top:9px;left:10px;width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.6;pointer-events:none;color:#56685e}
#catalog .catalog-toolbar .catalog-master-switches {flex-wrap:nowrap;gap:7px;padding:2px 7px;border:1px solid #dce7e0;border-radius:7px;background:#fff}
#catalog .catalog-toolbar .catalog-master-switches strong {font-size:11px;font-weight:600;color:#334b3d}
#catalog .catalog-toolbar .catalog-master-switches label {min-height:28px;border:0;padding:2px;gap:4px;font-size:11px;white-space:nowrap}
#catalog .catalog-toolbar .catalog-master-switches input[type=checkbox] {flex:none;width:24px;height:14px}
#catalog .catalog-toolbar .catalog-master-switches input[type=checkbox]::before {width:10px;height:10px}
#catalog .catalog-toolbar .catalog-master-switches input[type=checkbox]:checked::before {transform:translateX(10px)}
#catalog .catalog-toolbar .catalog-master-switches input[type=checkbox]:indeterminate::before {height:2px;margin:6px auto}
#catalog .catalog-toolbar .catalog-tools {flex-wrap:nowrap;gap:5px;margin:0}
#catalog .catalog-toolbar .catalog-tool-icon,#catalog .catalog-toolbar .bulk-delete-trigger {flex:none;width:30px;height:30px}
#catalog .catalog-toolbar .catalog-tool-menu {position:relative;margin:0;border:0}
#catalog .catalog-toolbar .catalog-tool-menu>summary {padding:0}
.catalog-tool-menu[open]>summary {background:#dceee3;color:#145d3d}
.catalog-tool-popover {position:absolute;top:calc(100% + 6px);left:0;z-index:5;width:max-content;min-width:180px;max-width:min(480px,75vw);padding:12px;border:1px solid var(--line);border-radius:8px;background:#fff;box-shadow:0 7px 24px #142b2030}
.catalog-view-settings {display:grid;gap:8px}
.catalog-view-settings label {display:flex;align-items:center;justify-content:space-between;gap:12px}
.catalog-toolbar .catalog-sync .catalog-tool-popover {margin:0}
#catalog .catalog-toolbar .bulk-panel {position:static;flex:none;min-width:0;border:0;background:transparent}
#catalog .catalog-toolbar .bulk-panel>summary {height:30px}
#catalog .catalog-toolbar .catalog-bulk-popover {position:absolute;left:12px;right:12px;top:calc(100% + 5px);z-index:6;background:#fff;border:1px solid var(--line);border-radius:8px;padding:12px;box-shadow:0 7px 24px #142b2030}
#catalog .catalog-toolbar .catalog-save-state {margin:0;gap:4px}
#catalog .catalog-toolbar .catalog-save-state [data-catalog-save-status] {position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
#catalog .catalog-toolbar [hidden] {display:none!important}
@media(max-width:640px) {
    #catalog .catalog-toolbar {padding:8px 6px}
    #catalog .catalog-toolbar .catalog-header {grid-template-columns:minmax(72px,1fr) auto;gap:5px}
    #catalog .catalog-toolbar .catalog-master-switches {gap:4px;padding:2px 4px}
    #catalog .catalog-toolbar .catalog-master-switches strong {max-width:76px;line-height:1.1}
    #catalog .catalog-toolbar .catalog-master-switches label {font-size:10px}
    #catalog .catalog-toolbar .catalog-tools {gap:3px}
    #catalog .catalog-toolbar .catalog-tool-icon,#catalog .catalog-toolbar .bulk-delete-trigger {width:26px}
    #catalog .catalog-toolbar .bulk-panel>summary {gap:2px;padding:0 4px}
}


.history-tabs {display:flex;flex-wrap:wrap;gap:5px;padding:8px 14px;border-bottom:1px solid var(--line)}
.history-tabs button {padding:7px 11px;border:1px solid transparent;border-radius:6px;background:transparent;color:var(--muted);font:inherit;cursor:pointer}
.history-tabs button[aria-selected=true] {border-color:#c8e2d1;background:#eaf5ee;color:#145d3d}

#catalog .catalog-price-controls.has-boost {display:flex;gap:8px;align-items:flex-start}
#catalog .catalog-price-controls.has-boost .catalog-boost-part {display:flex;gap:4px;align-items:center}
#catalog .catalog-table:has(.has-boost) :is(td,th):nth-child(5) {width:175px}
.boost-indicator {display:inline-grid;place-items:center;width:30px;height:30px;font-size:16px;line-height:1}
.boost-indicator[data-boost-icon=member] {background:#e4f4e9;color:#157146}
.boost-indicator[data-boost-icon=available] {background:#fff2ce;color:#775200}
.boost-indicator[data-boost-icon=unavailable],.boost-indicator[data-boost-icon=pending] {color:#64736a}
.boost-dialog {width:min(560px,calc(100% - 28px));text-align:left;font-size:14px}
.boost-dialog .boost-facts {display:grid;grid-template-columns:repeat(auto-fit,minmax(130px,1fr));gap:8px}
.boost-facts>div {display:grid;gap:4px;padding:9px;background:#f0f6f2;border-radius:7px}
.boost-dialog [data-boost-entry] {display:grid;gap:8px;padding:10px 0}
.boost-dialog [data-boost-entry-preview] {white-space:normal}
.boost-dialog-actions {display:flex;align-items:center;flex-wrap:wrap;gap:8px;margin-top:8px}
.boost-member-settings {padding:10px 0;border-top:1px solid var(--line)}
.boost-member-settings>summary {cursor:pointer}

/* Boosting is separate from markup and keeps the existing stock columns stable. */
#catalog .catalog-table :is(th,td).catalog-boost-head,#catalog .catalog-table .catalog-boost-cell{width:150px;min-width:150px;white-space:normal}
.catalog-boost-head small{display:block;font-size:9px;margin-top:5px}.catalog-boost-cell .catalog-boost-part{display:grid;gap:5px}
.catalog-boost-cell .boost-indicator{display:grid;grid-template-columns:18px 1fr;gap:3px 5px;width:100%;height:auto;min-height:38px;padding:6px 8px;border-radius:7px;text-align:left;font-size:14px}
.boost-trigger-label{font-size:10px;font-weight:500}.boost-indicator [data-boost-coefficient]{grid-column:2;font-size:12px;font-variant-numeric:tabular-nums}
#catalog .catalog-table .catalog-price-controls{display:block}.boost-dialog{width:min(670px,calc(100% - 28px));font-family:inherit}
.boost-explainer{font-size:12px;line-height:1.6;color:#6b7c70;white-space:normal}.boost-discount-label{font-weight:600;font-size:13px}
.boost-economics-scroll{overflow:auto}.boost-economics{width:100%;min-width:440px;border-collapse:collapse;font-size:12px;margin:10px 0}
.boost-economics th,.boost-economics td{padding:11px 10px!important;text-align:left;white-space:normal;border-bottom:1px solid #e4ebe6;width:auto!important}
.boost-economics thead th{color:#738078;font-size:11px;background:#f6f8f7}.boost-economics tbody th{font-weight:500}.boost-economics th small{display:block;font-size:10px;font-weight:400;color:#839087;margin-top:4px}.boost-economics .is-selected{background:#edf7f0}.boost-economics [data-scenario-profit]{color:#237951;font-weight:600}.boost-economics .is-loss{color:#bd4141!important}
.boost-dialog [data-boost-entry-range]{appearance:auto!important;width:100%;min-height:24px;accent-color:#237951}
.boost-dialog [data-boost-entry-preview]{font-size:12px;line-height:1.5}.boost-dialog [data-boost-range-message]{font-size:11px;color:#738078;white-space:normal}

.boost-rule-help{position:relative;margin-top:12px;white-space:normal}.boost-rule-help summary{display:inline-grid;place-items:center;width:28px;height:28px;border:1px solid #dae6df;border-radius:50%;color:#337955;cursor:pointer;list-style:none}.boost-rule-help p{font-size:12px;color:#6b7c70;line-height:1.6}.boost-rule-help a{color:#237951}
.boost-needs-review{display:block;padding:12px;border:1px solid #e5c677;border-radius:7px;background:#fff8e6;color:#7b5a13;white-space:normal;line-height:1.5}

.catalog-effective-profit{display:grid;gap:4px;margin-top:7px;color:#146c45;white-space:normal}.catalog-effective-profit strong{font-size:13px;font-weight:750}.catalog-effective-profit small{font-size:9px;font-weight:400;color:#6e8175;line-height:1.4}.catalog-effective-profit.is-loss{color:#bd4141}
.inline-markup:has(.catalog-effective-profit)>.markup-profit{font-size:9px;color:#8a978f;font-weight:400;margin-top:3px}.inline-markup:has(.catalog-effective-profit)>.markup-profit::before{content:'По наценке: ';font-weight:400}
.boost-indicator [data-boost-earnings]{grid-column:1/-1;font-size:10px;font-weight:600;white-space:nowrap}

/* Catalog responsive layout: one set of fields and forms at every size. */
#catalog{min-width:0;max-width:100%;container:catalog / inline-size}
#catalog-results>.table-scroll{max-width:100%;overscroll-behavior-x:contain;scrollbar-gutter:stable;max-height:min(68vh,780px)}
#catalog .catalog-table>thead>tr>th{position:sticky;top:0;z-index:2;background:#f5f8f6}
.catalog-mobile-controls{display:none}
@media(min-width:601px) and (max-width:1280px){
 #catalog .catalog-toolbar .catalog-header{grid-template-columns:1fr}
 #catalog .catalog-toolbar .catalog-master-switches{justify-self:start;flex-wrap:wrap}
 #catalog .catalog-toolbar .catalog-tools{flex-wrap:wrap;margin-left:auto}
 #catalog .catalog-table>tbody>.product-row>.catalog-name-cell{width:240px}
 #catalog .catalog-table>thead>tr>th:nth-child(3){width:240px}
}
@media(max-width:800px){
 body:has(#catalog) .wrap{padding:16px 10px}
 body:has(#catalog) .side{max-height:190px;overflow:auto;overscroll-behavior:contain}
 #catalog .catalog-toolbar .catalog-header{grid-template-columns:1fr}
 #catalog .catalog-toolbar .catalog-master-switches{justify-self:stretch;justify-content:space-between;flex-wrap:wrap;min-width:0}
 #catalog .catalog-toolbar .catalog-tools{flex-wrap:wrap;margin-left:auto;max-width:100%;justify-content:flex-end}
 #catalog .catalog-toolbar .catalog-tools>button,#catalog .catalog-toolbar .catalog-tools>details>summary{min-height:36px;min-width:36px}
 #catalog .catalog-tool-popover{max-width:calc(100vw - 48px)}
 .catalog-popover{max-height:calc(100dvh - 24px);padding:16px}
}
@media(max-width:600px){
 body:has(#catalog) .card:has(#catalog){padding:10px}
 #catalog .catalog-toolbar{padding:10px 8px}
 #catalog .catalog-toolbar .catalog-search input[type=search]{height:42px;font-size:16px}
 #catalog .catalog-toolbar .catalog-master-switches strong{max-width:none;font-size:11px}
 #catalog .catalog-toolbar .catalog-master-switches label{min-height:36px}
 #catalog .catalog-toolbar .catalog-tools{gap:6px}
}
@container catalog (width < 850px){
 .catalog-mobile-controls{display:flex;flex-wrap:wrap;gap:8px;align-items:center;margin:12px 0;font:12px Arial,sans-serif}
 .catalog-mobile-controls form{display:flex;flex-wrap:wrap;gap:6px;width:100%;align-items:center}
 .catalog-mobile-controls select{flex:1;min-width:90px;height:40px;border:1px solid var(--line);border-radius:6px;background:#fff;padding:0 7px;font:12px Arial,sans-serif}
 .catalog-mobile-controls label{flex-basis:100%;color:var(--muted)}
 #catalog-results>.table-scroll{border:0;overflow:visible;max-height:none;margin:8px 0}
 #catalog .catalog-table{display:block;min-width:0!important;width:100%!important;table-layout:auto}
 #catalog .catalog-table>thead{display:none}
 #catalog .catalog-table>tbody{display:grid;gap:12px;width:100%}
 #catalog .catalog-table>tbody>.product-row{position:relative;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;background:#fff;border:1px solid #dce7e0;border-radius:10px;padding:12px;min-width:0}
 #catalog .catalog-table>tbody>.product-row>td{width:auto!important;min-width:0!important;max-width:none!important;padding:0!important;border:0!important;white-space:normal;overflow:visible;vertical-align:top;background:transparent;text-align:left}
 #catalog .catalog-table>tbody>.product-row>td:first-child{position:absolute;top:12px;right:12px;z-index:1}
 #catalog .row-select{width:20px;height:20px;margin:0;accent-color:var(--green)}
 #catalog .catalog-table>tbody>.product-row>td:nth-child(2){grid-column:1/-1;padding-right:28px!important;grid-row:1}
 #catalog .catalog-name-cell{grid-column:1/-1;grid-row:2;margin-bottom:5px}
 #catalog .catalog-name-cell .inline-cell-input{font-size:13px;height:36px;padding-left:0;white-space:normal}
 #catalog .catalog-table>tbody>.product-row>td:nth-child(4){grid-column:1/3;grid-row:3}
 #catalog .catalog-table>tbody>.product-row>td:nth-child(5){grid-column:3/5;grid-row:3}
 #catalog .catalog-table>tbody>.product-row>td:nth-child(4)::before{content:'Закупка';display:block;font-size:10px;color:var(--muted);margin-bottom:4px}
 #catalog .catalog-table>tbody>.product-row>td:nth-child(5)::before{content:'Наценка и прибыль';display:block;font-size:10px;color:var(--muted);margin-bottom:4px}
 #catalog .control-caption{display:none}
 #catalog .catalog-boost-cell{grid-column:1/3;grid-row:4;align-self:start}
 #catalog .marketplace-links{grid-column:3/5;grid-row:4}
 #catalog .product-row:not(:has(.catalog-boost-cell)) .marketplace-links{grid-column:1/-1}
 #catalog .marketplace-links::before{content:'Цена продажи';display:block;font-size:10px;color:var(--muted);margin-bottom:5px}
 #catalog .marketplace-price-item{max-width:100%;display:flex;flex-wrap:wrap;margin:0}
 #catalog .catalog-table>tbody>.product-row>.catalog-quantity,#catalog .catalog-table>tbody>.product-row>.catalog-stock-cell{grid-row:5;padding:8px 6px!important;background:#f0f6f2;border-radius:6px;text-align:center}
 #catalog .catalog-stock-first{grid-column:1}#catalog .catalog-fbs-quantity{grid-column:2}#catalog .catalog-local-quantity{grid-column:3}#catalog .catalog-stock-cell{grid-column:4}
 #catalog .catalog-quantity::before,#catalog .catalog-stock-cell::before{display:block;font-size:10px;color:var(--muted);margin-bottom:5px}
 #catalog .catalog-stock-first::before{content:'FBO'}#catalog .catalog-fbs-quantity::before{content:'FBS'}#catalog .catalog-local-quantity::before{content:'Локально'}#catalog .catalog-stock-cell::before{content:'Всего'}
 #catalog .catalog-total-quantity{text-align:center;margin:0}
 #catalog .catalog-feedback-cell{grid-column:1/-1;grid-row:6}
 #catalog .catalog-table>tbody>.product-row>.row-actions{grid-column:1/-1;grid-row:7;display:flex;justify-content:flex-end;align-items:center;gap:8px;padding-top:6px!important;border-top:1px solid #edf1ee!important;flex-wrap:wrap}
 #catalog .row-actions .icon-button{width:38px;height:38px}
 #catalog .sku-input{font-size:12px;font-weight:700;height:26px;padding-left:0}
 #catalog .inline-markup{min-width:0}#catalog .catalog-effective-profit strong{font-size:12px}
 #catalog .catalog-pages{flex-wrap:wrap;gap:10px}
 #catalog .boost-dialog .boost-economics{min-width:420px}
 #catalog .catalog-bulk-popover{max-height:75dvh;overflow:auto}
}

.catalog-mobile-product-name{display:none}
@container catalog (width < 850px){#catalog .catalog-name-main .name-input{display:none}#catalog .catalog-mobile-product-name{display:block;flex:1;min-width:0;font:600 13px/1.5 Arial,sans-serif;overflow-wrap:anywhere}#catalog .catalog-name-main{align-items:flex-start}#catalog .catalog-name-main .barcode-edit-trigger{flex:none}}

.catalog-boost-heading{display:flex;align-items:center;justify-content:space-between;gap:6px}
.catalog-boost-sort-menu{position:relative;flex:none;text-transform:none;letter-spacing:normal}
.catalog-boost-sort-menu>summary{display:grid;place-items:center;width:28px;height:28px;cursor:pointer;border:1px solid transparent;border-radius:5px;list-style:none;color:#65786c}
.catalog-boost-sort-menu>summary::-webkit-details-marker{display:none}
.catalog-boost-sort-menu>summary:hover,.catalog-boost-sort-menu[open]>summary{color:#167852;background:#e7f2eb;border-color:#d0e4d7}
.catalog-boost-sort-menu svg{width:15px;height:15px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
.catalog-boost-sort-options{position:absolute;left:0;top:calc(100% + 5px);z-index:12;min-width:165px;background:#fff;border:1px solid #dae5de;border-radius:8px;box-shadow:0 7px 22px #142b2020;padding:6px;font:11px Arial,sans-serif;text-align:left;white-space:nowrap}
.catalog-boost-sort-options>span{display:block;padding:6px 9px;color:#8a968e;font-size:10px}
.catalog-boost-sort-options>a{display:block;padding:9px;border-radius:5px;color:#355443;text-decoration:none}
.catalog-boost-sort-options>a:hover{background:#edf6f0;color:#116744}
#catalog .catalog-table>thead>tr>th.catalog-boost-head:has(details[open]){z-index:15;overflow:visible}
#catalog-results>.table-scroll:has(.catalog-boost-sort-menu[open]){min-height:270px}
.catalog-boost-sort-options{left:auto;right:0}

#catalog .boost-indicator [data-boost-entry-price]{grid-column:2;min-width:0;white-space:nowrap;font:600 11px/1.35 Arial,sans-serif;text-align:center}
#catalog .boost-indicator [hidden]{display:none!important}


/* The same dialog controls serve the catalog and Ozon promotions. */
.catalog-popover:is(.boost-dialog,.promo-price-dialog) {
    margin:auto;
    max-width:calc(100vw - 24px);
    max-height:calc(100dvh - 24px);
    overflow:auto;
    font-family:inherit;
}
.catalog-popover:is(.boost-dialog,.promo-price-dialog) > header {
    position:sticky;
    top:0;
    z-index:2;
    background:#fff;
    margin-bottom:12px;
}
.catalog-popover:is(.boost-dialog,.promo-price-dialog) h2 {
    font-size:18px;
    line-height:1.3;
}
.promo-price-dialog {width:min(460px,calc(100vw - 24px))}
.promo-price-dialog form,.promo-price-dialog form .field {display:grid;gap:8px}
.promo-price-dialog .catalog-dialog-actions {justify-content:flex-end;flex-wrap:wrap;padding-top:8px}
.catalog-popover:is(.boost-dialog,.promo-price-dialog) input[type=number] {
    font:inherit;
    border:1px solid #d3e0d8;
    border-radius:6px;
    padding:7px 9px;
    background:#fff;
    color:var(--ink);
    max-width:100%;
}
.catalog-popover:is(.boost-dialog,.promo-price-dialog) input[type=number]:focus-visible {
    outline:2px solid #278564;
    outline-offset:1px;
}
.boost-dialog .boost-facts small,.boost-dialog .boost-facts strong {display:block}
.boost-dialog .boost-economics th small {display:block}
.boost-dialog .boost-economics tbody tr + tr {border-top:1px solid #e4ebe6}
#promo-boost-editor [data-open-boost] {display:none}
@media(max-width:520px){
    .boost-dialog>header {flex-wrap:wrap}
    .boost-dialog .boost-economics {min-width:420px}
}

/* Give the simple view compact defaults and allow the table to scroll when wider than its container. */
@container catalog (width >= 850px) {
    #catalog[data-mode=simple] #catalog-results>.table-scroll {overflow:auto;scrollbar-gutter:auto}
    #catalog[data-mode=simple] .catalog-table {width:100%;min-width:920px;table-layout:fixed}
    #catalog[data-mode=simple] .catalog-table :is(th,td):nth-child(1) {width:32px}
    #catalog[data-mode=simple] .catalog-table :is(th,td):nth-child(2) {width:clamp(90px,10cqw,125px)}
    #catalog[data-mode=simple] .catalog-table :is(th,td):nth-child(3) {width:auto}
    #catalog[data-mode=simple] .catalog-table :is(th,td):nth-child(4) {width:80px}
    #catalog[data-mode=simple] .catalog-table :is(th,td):nth-child(5) {width:95px}
    #catalog[data-mode=simple] .catalog-table :is(.catalog-boost-head,.catalog-boost-cell) {width:112px;min-width:0}
    #catalog[data-mode=simple] .catalog-table :is(.catalog-sale-head,.marketplace-links) {width:115px}
    #catalog[data-mode=simple] .catalog-table :is(.catalog-quantity-head,.catalog-quantity) {width:40px}
    #catalog[data-mode=simple] .catalog-table :is(.catalog-local-head,.catalog-local-quantity) {width:48px}
    #catalog[data-mode=simple] .catalog-table :is(.catalog-stock-total-head,.catalog-stock-cell) {width:56px}
    #catalog[data-mode=simple] .catalog-table :is(th,td):last-child {width:102px}
    #catalog[data-mode=simple] .catalog-table .marketplace-price-item {display:flex;flex-wrap:wrap;margin-right:0}
    #catalog[data-mode=simple] .catalog-table td.row-actions {white-space:normal;overflow:visible}
    #catalog[data-mode=simple] .catalog-table td.row-actions .icon-button {vertical-align:middle}
    #catalog[data-mode=simple] .catalog-table td.row-actions .row-save-status {display:block;max-width:100%;overflow-wrap:anywhere}
}
@container catalog (width < 850px) {
    #catalog .catalog-toolbar .catalog-header {grid-template-columns:1fr}
    #catalog .catalog-toolbar .catalog-tools,#catalog .catalog-toolbar .catalog-master-switches {flex-wrap:wrap}
}

#catalog-results > .table-scroll[data-catalog-overflow] {overflow-x:auto}
.catalog-scroll-cue[hidden]{display:none!important}
.catalog-scroll-cue{margin:8px 0 5px;padding:5px 7px;border:1px solid #dce8df;border-radius:8px;background:#f1f7f3;color:#315746}
.catalog-scroll-line{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:8px}
.catalog-scroll-line .icon-button{width:36px;height:36px;font-size:17px}
.catalog-scroll-line .icon-button:disabled{opacity:.4}
.catalog-scroll-track{display:grid;gap:2px;min-width:0;font-size:11px;font-weight:600;text-align:center}
.catalog-scroll-track input{width:100%;min-width:0;accent-color:#176d51;margin:0}
.catalog-scroll-rotate{display:none;text-align:center;margin-top:3px;font-size:10px}
@media (max-width:600px) and (orientation:portrait){.catalog-scroll-rotate{display:block}}

.boost-indicator[data-boost-price-review]{background:#f3eafe;color:#592c86;border-color:#a775cc;animation:boost-review-pulse 2s ease-in-out 3}
.boost-price-review-note{padding:.55rem .75rem;border:1px solid #c9a8e6;border-radius:8px;background:#f3eafe;color:#592c86}
@keyframes boost-review-pulse{50%{box-shadow:inset 0 0 0 2px #9e6bc6;background:#e6d3f8}}
@media (prefers-reduced-motion:reduce){.boost-indicator[data-boost-price-review]{animation:none}}

.catalog-ozon-next{margin:0 0 12px;padding:9px 11px;border:1px solid #dce7e0;border-radius:8px}
.catalog-ozon-next summary{cursor:pointer;font-weight:650}
.catalog-ozon-next p{margin:6px 0 0}
#catalog .marketplace-price-lines .marketplace-current-price{color:#344c40;font-size:11px}
#catalog .catalog-current-profit{display:block;color:#176d51;font-size:10px;line-height:1.25;white-space:normal}
#catalog .catalog-current-profit.is-loss{color:#ad3940;font-weight:650}
#catalog .catalog-current-profit:empty{display:none}
