.platform-switch{display:inline-flex;gap:3px;padding:3px;border:1px solid var(--line);border-radius:8px;background:var(--paper);flex-shrink:0}.platform-switch .btn{border:0;background:transparent;padding:5px 10px;min-height:28px;font-weight:650;font-size:12px}.platform-switch .btn[aria-pressed=true]{background:#e0eeff;color:#245aa7}.platform-switch .btn.wb-platform[aria-pressed=true]{background:#f1e6f5;color:#7e348f}html[data-theme=dark] .platform-switch .btn[aria-pressed=true]{background:#243e58;color:#a2caff}html[data-theme=dark] .platform-switch .btn.wb-platform[aria-pressed=true]{background:#432c4d;color:#e6b5f4}.topbar .breadcrumb{min-width:0;gap:10px}.wb-table td{vertical-align:top}.wb-product-cell{display:flex;gap:10px;align-items:flex-start;min-width:180px;max-width:380px}.wb-product-img{width:44px;height:56px;object-fit:contain;flex:0 0 44px;border-radius:4px;background:var(--paper);border:1px solid var(--line)}.wb-no-image{display:grid;place-items:center;font-size:10px;color:var(--muted)}.wb-settings{padding:18px;margin-bottom:16px}.wb-settings h2{font-size:16px;margin:0 0 12px}.wb-store-line{display:flex;align-items:center;justify-content:space-between;padding:12px 0;border-bottom:1px solid var(--line)}.wb-store-line:last-child{border-bottom:0}.wb-sync-controls{margin-top:16px;gap:10px}.wb-days{width:68px!important;min-width:0}.wb-store-choice{padding:7px 10px;border:1px solid var(--line);border-radius:6px}.wb-stat-line{display:flex;justify-content:space-between;padding:10px 0;border-bottom:1px solid var(--line)}.wb-note{color:#c44c45;font-weight:600;white-space:pre-wrap}.wb-detail-product{padding:16px 0}html[data-theme=dark] .wb-note{color:#ff9993}.wb-settings details{margin-top:16px}.wb-settings summary{cursor:pointer;font-weight:600}.wb-table .mono{overflow-wrap:anywhere}.wb-table th{white-space:nowrap}
@media(max-width:1100px){.topbar{flex-wrap:wrap;gap:8px}.platform-switch .btn{padding:5px 8px}}

#wb-coverage-month{width:180px;flex:0 0 180px}.wb-table .wb-product-cell>div{min-width:0}
.wb-profit-gain{color:#168264}.wb-profit-loss{color:#c44c45}.wb-profit-hero{border:1px solid var(--line);background:var(--paper);border-radius:9px;padding:16px;margin:12px 0;display:flex;flex-direction:column;gap:6px}.wb-profit-hero strong{font-size:30px;font-variant-numeric:tabular-nums}.wb-profit-hero p{font-size:12px;color:var(--muted);margin:2px 0}.wb-profit-hero>span{font-weight:650}.wb-profit-hero small{font-size:16px}.wb-ledger-detail{margin:16px 0}.wb-business-filter{padding:14px 18px;margin-bottom:16px}.wb-business-filter .toolbar{padding:12px 0 0;border:0}.wb-date-buttons{gap:5px}.wb-business-costs{padding:12px 18px;display:flex;flex-wrap:wrap;gap:24px;margin-bottom:14px;font-size:13px}.wb-business-costs b{margin-left:8px}.wb-tabs{margin:16px 0;padding:10px 16px}.wb-chart-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.wb-chart{padding:16px;min-width:0}.wb-chart h3{font-size:14px;margin:0}.wb-chart-readout{padding-top:8px;min-height:28px}.wb-trend-svg{width:100%;display:block;touch-action:none;user-select:none;cursor:crosshair}.wb-group-option{display:flex;align-items:center;gap:10px;padding:9px;border-bottom:1px solid var(--line);cursor:pointer}.wb-group-option>span{flex:1}.wb-group-option small{display:block;color:var(--muted)}.wb-group-option img{width:42px;height:52px;object-fit:contain}.wb-group-option input{width:auto}.wb-group-option:has(input:disabled){opacity:.5;cursor:not-allowed}#wb-group-options{max-height:340px;overflow:auto;border:1px solid var(--line);border-radius:6px}#wb-finance-filter{padding:14px 18px;margin-bottom:16px}.wb-sales-trend-row>td{padding:14px!important}.wb-sales-trend-row .wb-chart{border:0;margin:0}.wb-sync-controls input[type=date]{width:155px}html[data-theme=dark] .wb-profit-gain{color:#6ad9bb}html[data-theme=dark] .wb-profit-loss{color:#ff9993}@media(max-width:1100px){.wb-chart-grid{grid-template-columns:1fr}}
#wb-finance-filter input[type=date],.wb-business-filter input[type=date]{width:160px;flex:0 0 160px}#wb-finance-filter input[name=q],.wb-business-filter .toolbar>input[name=q]{width:240px;min-width:180px;flex:1}.wb-business-filter input[type=month]{width:180px;flex:0 0 180px}.wb-quick-summary{padding:12px 18px;margin-bottom:16px;display:flex;flex-wrap:wrap;gap:12px 30px}.wb-quick-summary>div{display:flex;gap:12px;align-items:center;font-size:12px}.wb-month-choices{display:flex;flex-wrap:wrap;gap:8px}
/* WB operational controls: compact, with shared light/dark theme variables. */
.wb-auto-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px}.wb-auto-grid>section{padding:14px;border:1px solid var(--line);border-radius:10px;background:var(--panel)}.wb-auto-row{margin:12px 0}.wb-auto-row .row{gap:5px;margin-top:9px}.wb-auto-number{width:68px!important;min-width:0!important;padding:6px 7px!important}.wb-auto-row p{margin:6px 0;font-size:11px}.wb-stage-tabs{gap:6px;flex-wrap:wrap;margin-bottom:10px}.wb-fulfillment-tools{flex-wrap:wrap}.wb-tracking{color:#2289e8;font-size:12px;margin:6px 0}.wb-supply-list{display:grid;gap:12px;margin-top:16px}.wb-supply-card{border:1px solid var(--line);border-radius:9px;padding:14px}.wb-supply-card details{margin:10px 0}.wb-operation-results>section{padding:12px 0;border-bottom:1px solid var(--line)}.wb-result-line{display:grid;grid-template-columns:minmax(90px,1fr) 2fr;gap:14px;font-size:12px;margin:6px 0;overflow-wrap:anywhere}.wb-supply-card .mono{overflow-wrap:anywhere}.wb-auto-settings .section-title{align-items:flex-start}html[data-theme=dark] .wb-tracking{color:#5aaaff}@media(max-width:1300px){.wb-auto-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:760px){.wb-auto-grid{grid-template-columns:1fr}}
#wb-filters input[type=date]{flex:0 0 160px;width:160px;min-width:140px}#wb-filters>select{flex:0 1 190px;min-width:140px}.wb-auto-grid>section{background:var(--surface,var(--white))}.wb-fulfillment-tools+.table-scroll td:last-child .catalog-actions{display:flex;flex-wrap:wrap;gap:7px}
.wb-freight-cards{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.wb-freight-rate{padding:22px}.wb-rate-band{display:flex;justify-content:space-between;gap:20px;padding:14px 0;border-top:1px solid var(--line)}.wb-freight-inputs{display:grid;grid-template-columns:1.5fr repeat(4,1fr) auto;align-items:end;gap:12px}.wb-freight-inputs .field{margin:0}.wb-freight-result{display:grid;grid-template-columns:minmax(130px,1fr) 3fr;gap:24px;padding:20px;margin:18px 0;background:var(--green-light);border:1px solid var(--line);border-radius:10px}.wb-freight-result strong{display:block;font-size:29px;color:var(--green);margin-top:5px}.wb-freight-result p{margin:5px 0;font-size:12px}.wb-freight-result.is-pending strong{color:var(--muted)}.wb-freight-policy-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:20px}.wb-freight-policy{padding:16px;border:1px solid var(--line);border-radius:9px}.wb-freight-batchbar{display:flex;gap:14px;align-items:center;padding:0 15px 10px}.wb-freight-policy .field{overflow-wrap:anywhere}@media(max-width:1100px){.wb-freight-inputs{grid-template-columns:repeat(3,minmax(0,1fr))}}@media(max-width:700px){.wb-freight-cards{grid-template-columns:1fr}.wb-freight-result{grid-template-columns:1fr}}

.coverage-error{background:var(--red-light,#fce8e6);border-color:#ce625d}.coverage-error .coverage-dot{background:#ce625d}html[data-theme=dark] .coverage-error{background:#482b2e;color:#ffbbb6}

.wb-preview-members{max-height:320px;overflow:auto;border:1px solid var(--line);border-radius:8px;margin:14px 0;padding:12px}.wb-preview-members>div{padding:7px 0;border-bottom:1px solid var(--line)}.wb-freight-inputs{grid-template-columns:1.4fr 1.2fr repeat(4,1fr) auto}.wb-freight-rate .row{flex-wrap:wrap}.wb-stat-line{flex-wrap:wrap;gap:10px}@media(max-width:1100px){.wb-freight-inputs{grid-template-columns:repeat(3,minmax(0,1fr))}}

#wb-version-form .grid3{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}

.wb-stock-cards{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-bottom:12px}.wb-stock-cards .metric{text-align:left;background:var(--paper);border:1px solid var(--line);border-radius:9px;cursor:pointer;padding:14px 18px;color:var(--ink)}.wb-stock-cards .metric strong{display:block;font-size:27px;margin-top:6px}.wb-stock-cards .metric.is-active{border-color:#32a99b;box-shadow:inset 0 0 0 1px #32a99b}.wb-stock-cards .metric:hover{border-color:#32a99b}.wb-inbound-checks{padding:12px 0;color:var(--muted);line-height:1.8}#wb-notice-popup .notice-order-number{grid-template-columns:150px minmax(0,1fr)}#wb-notice-popup .notice-order-code{font-size:11px}@media(max-width:800px){.wb-stock-cards{grid-template-columns:repeat(2,minmax(0,1fr))}}

.notice-platform-ozon .badge{background:#e6efff;color:#2762b4}.notice-platform-wb .badge{background:#f1e6f5;color:#853799}html[data-theme=dark] .notice-platform-ozon .badge{background:#243e58;color:#a2caff}html[data-theme=dark] .notice-platform-wb .badge{background:#432c4d;color:#e6b5f4}.notice-inbox .notice-order-number{grid-template-columns:176px minmax(0,1fr) auto}.notice-inbox .notice-order-number>.notice-order-tags{width:176px}.notice-order-tags .notice-platform{flex-shrink:0}.order-notices .notice-order-number{grid-template-columns:minmax(0,153px) minmax(0,1fr);gap:6px}

.wb-stock-group-toolbar{margin:0 0 14px;flex-wrap:wrap;gap:8px}.wb-stock-definition{padding:12px 16px}.wb-managed-group{border:1px solid var(--line);border-radius:8px;padding:12px;margin-top:12px}.wb-managed-group details{margin-top:8px}.wb-managed-group summary{cursor:pointer;color:var(--muted)}.wb-managed-member{display:flex;align-items:center;gap:10px;border-top:1px solid var(--line);padding:8px 0}.wb-managed-member img,.wb-group-image-empty{width:34px;height:42px;object-fit:contain;border-radius:4px}.wb-managed-member small{display:block;color:var(--muted)}.wb-group-options{max-height:340px;overflow:auto;border:1px solid var(--line);border-radius:7px;padding:5px 10px}.wb-group-picked-items{display:flex;flex-wrap:wrap;gap:7px;margin-top:7px;max-height:150px;overflow:auto}.wb-group-picked-item{display:flex;align-items:center;gap:5px;padding:4px 7px;border:1px solid var(--line);border-radius:5px;background:var(--paper);font-size:11px}.wb-group-picked-item .icon-btn{width:20px;height:20px;font-size:16px}.wb-group-option{cursor:pointer}.wb-group-image-empty{display:grid;place-items:center;background:var(--paper);font-size:10px;color:var(--muted)}.wb-table .sales-group-child td:first-child{padding-left:32px;border-left:3px solid var(--line)}
.wb-table .sales-group-row>td{background:var(--green-light)}.wb-group-options .wb-group-option{padding:9px 0}.wb-stock-group-toolbar .spacer{flex:1}.wb-stock-group-toolbar{display:flex;align-items:center}

.report-daily-toolbar{display:flex;align-items:center;gap:12px;padding:12px 16px}.report-daily-toolbar .spacer{flex:1}.report-daily-table td,.report-daily-table th{font-variant-numeric:tabular-nums}.report-daily-table th{white-space:nowrap}.report-daily-table td{padding:10px 12px;min-width:90px}.report-daily-table td:first-child{white-space:nowrap}.report-daily-table tfoot td{font-weight:650;background:var(--green-light);border-top:1px solid var(--line)}.report-daily-note{padding:12px 16px;margin:0}.report-daily-table td:last-child{min-width:64px}
/* Settlement and group ordering share the existing light/dark surfaces. */
.report-metrics.report-metrics-five,.metrics.report-metrics-five{grid-template-columns:repeat(5,minmax(0,1fr))}
.detail-financials{grid-template-columns:repeat(6,minmax(0,1fr))}
.statement-profit-grid:has(.statement-settlement){grid-template-columns:1fr 1.2fr 1fr}
.statement-settlement{background:var(--paper);border-color:var(--line)}
.group-sort-list .group-sort-item{display:flex;align-items:center;gap:8px;width:100%;box-sizing:border-box;padding:9px 10px;border:1px solid var(--line);border-radius:6px;background:var(--paper);cursor:grab}
.group-sort-list .group-sort-label{flex:1;min-width:0;overflow-wrap:anywhere;background:transparent;padding:0;border:0}
.group-sort-list .group-drag-handle{color:var(--muted);font-size:20px;flex:none}
.group-sort-buttons{display:flex;gap:3px;flex:none}.group-sort-buttons .icon-btn{width:25px;height:25px;font-size:13px}
.group-sort-list .group-sort-item.is-sorting{opacity:.45}.group-sort-list .group-sort-item.sort-target{border-color:var(--green);box-shadow:0 -3px 0 var(--green)}
.group-sort-list,.group-sort-list .wb-group-picked-items{display:flex;flex-direction:column;gap:6px;align-items:stretch}
.action-feedback{position:fixed;right:20px;bottom:22px;z-index:1500;display:grid;gap:10px;width:min(430px,calc(100vw - 40px));pointer-events:none}
.action-feedback-card{background:var(--paper,#fff);color:var(--ink);border:1px solid var(--line);border-radius:9px;box-shadow:0 8px 35px #0003;overflow:hidden;pointer-events:auto}
.action-feedback-card header{display:flex;align-items:center;justify-content:space-between;padding:9px 13px;background:#dff3ec;color:#166654;font-size:13px}
.action-feedback-card.has-failure header{background:#fbe9e7;color:#a53f36}.action-feedback-card>p{padding:12px 14px;margin:0;font-size:13px;line-height:1.7}
.action-feedback-details{padding:0 14px 12px;max-height:170px;overflow:auto;font-size:12px}.action-feedback-details p{margin:5px 0;overflow-wrap:anywhere}
html[data-theme=dark] .action-feedback-card{background:#1a2831;border-color:#30424d;color:#d8e6e9}html[data-theme=dark] .action-feedback-card header{background:#17473e;color:#91e1ca}html[data-theme=dark] .action-feedback-card.has-failure header{background:#512e32;color:#ffb2ac}
@media(max-width:1100px){.report-metrics.report-metrics-five,.metrics.report-metrics-five{grid-template-columns:repeat(3,minmax(0,1fr))}.detail-financials{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:700px){.report-metrics.report-metrics-five,.metrics.report-metrics-five{grid-template-columns:repeat(2,minmax(0,1fr))}.detail-financials{grid-template-columns:repeat(2,minmax(0,1fr))}.statement-profit-grid:has(.statement-settlement){grid-template-columns:1fr}}
.sales-group-picked.group-sort-list .group-drag-handle,.sales-group-picked.group-sort-list .group-sort-buttons{padding:0;border:0;background:transparent;margin:0}
.report-metrics-five .report-metric>strong,.metrics.report-metrics-five .number{font-size:clamp(20px,1.6vw,27px);white-space:nowrap}
.action-feedback{top:80px;bottom:auto}
.payout-explanation{margin:14px 0;padding:14px 18px}.payout-explanation>summary{cursor:pointer;font-size:13px;font-weight:600}.payout-explanation>p{font-size:12px;line-height:1.8;margin:12px 0}.payout-explanation dl{max-width:780px;display:grid;gap:8px;margin:12px 0}.payout-explanation dl>div{display:flex;justify-content:space-between;gap:18px;font-size:12px}.payout-explanation dd{margin:0;font-variant-numeric:tabular-nums}.payout-explanation dl>div:last-child{border-top:1px solid var(--line);padding-top:10px;font-weight:600}
