/* Consolidated IXRU component layer. Generated in working19; source boundaries retained below. */

/* ===== stable.css ===== */
/* v0.64-stable1 — consolidated visual system and overflow guards */
:root{
  --stable-bg:#f6f7fa;--stable-panel:#fff;--stable-text:#202939;--stable-muted:#667085;--stable-subtle:#7d8899;
  --stable-line:#e2e6ec;--stable-line-strong:#cbd2dc;--stable-brand:#5a4bd8;--stable-brand-hover:#493ac4;
  --stable-radius:14px;--stable-shadow:0 1px 2px rgba(16,24,40,.025),0 5px 14px rgba(16,24,40,.035);
}
html,body{max-width:100%;overflow-x:hidden}body{background:var(--stable-bg);color:var(--stable-text);font-size:14px;line-height:1.5}
body,button,input,select,textarea{font-family:"Segoe UI Variable","Segoe UI",Arial,sans-serif}
.main,.view,.panel,.card,.filters,.grid,.table-wrap,.smart-scroll-table,.topbar,.top-actions{min-width:0;max-width:100%}
.main{width:auto!important;overflow-x:hidden;padding-bottom:48px}
.topbar{display:grid!important;grid-template-columns:minmax(220px,1fr) minmax(0,auto);align-items:center!important;gap:16px;max-width:none!important}
.topbar-heading{min-width:0}.topbar h2{font-size:27px!important;line-height:1.2!important;overflow-wrap:anywhere}.topbar p{font-size:13.5px!important;color:var(--stable-muted)!important;overflow-wrap:anywhere}
.top-actions{display:flex!important;align-items:center!important;justify-content:flex-end!important;gap:8px!important;flex-wrap:wrap!important;overflow:visible}
.workspace-select{min-width:0!important;max-width:min(360px,31vw)!important;flex:0 1 360px!important}.workspace-select>span{min-width:0;white-space:nowrap}.workspace-select select{width:100%!important;min-width:0!important;max-width:100%!important;text-overflow:ellipsis;white-space:nowrap;overflow:hidden}
.notification-bell,.topbar-logout{flex:0 0 auto}.notification-bell{min-width:40px!important;overflow:visible!important}
.notification-backdrop{visibility:hidden;pointer-events:none!important}.notification-backdrop.active{visibility:visible;pointer-events:auto!important}
.notification-drawer{visibility:hidden;pointer-events:none}.notification-drawer.active{visibility:visible;pointer-events:auto}.notification-drawer-head span{font-size:11.5px!important}.notification-item,.notification-drawer-body{font-size:13px!important}
.panel,.card{border:1px solid var(--stable-line)!important;border-radius:var(--stable-radius)!important;box-shadow:var(--stable-shadow)!important}.panel{padding:19px!important;margin-bottom:18px!important}.panel .panel{box-shadow:none!important;background:#fbfcfd}.panel-head{align-items:flex-start!important;flex-wrap:wrap!important}.panel h3,.panel-head h3{font-size:17px!important;line-height:1.32!important;overflow-wrap:anywhere}
.cards,.summary-main-cards{grid-template-columns:repeat(auto-fit,minmax(210px,1fr))!important;gap:12px!important}.card,.metric-card,.summary-metric-card{height:auto!important;min-height:126px!important;max-height:none!important;padding:17px!important}.card .label,.metric-card .label{font-size:13px!important;line-height:1.42!important;overflow-wrap:anywhere}.card .value,.metric-card .value{font-size:25px!important;line-height:1.15!important;overflow-wrap:anywhere}.metric-card .small-muted,.metric-card small,.card small{font-size:12.5px!important;line-height:1.45!important}
.small-muted,.cell-subtext,.decision-text,.settings-check p,.settings-check small,.team-permission-item small,.team-cabinet-item small,.team-audit-row div span,.team-audit-row time{font-size:12.5px!important;line-height:1.46!important;color:var(--stable-muted)!important}
.filters{align-items:end!important;gap:11px 12px!important}.filters>*,.form-grid>*,.expense-modal-grid>*,.team-person-grid>*{min-width:0}.filters label,.modal label{font-size:13px!important;color:var(--stable-muted)!important}.filters input,.filters select,.filters .range-trigger{max-width:100%}
input,select,textarea,.range-trigger{min-width:0;max-width:100%;min-height:42px!important;border:1px solid var(--stable-line-strong)!important;border-radius:10px!important;font-size:14px!important;line-height:1.35!important}textarea{resize:vertical;padding:10px 12px}input:focus,select:focus,textarea:focus,.range-trigger:focus{outline:3px solid rgba(90,75,216,.13)!important;border-color:#8b83ea!important}
.btn,.button{display:inline-flex!important;align-items:center!important;justify-content:center!important;gap:7px;min-width:0;min-height:40px!important;padding:9px 15px!important;border-radius:10px!important;font-size:13.5px!important;font-weight:700!important;line-height:1.25!important;text-align:center;white-space:normal!important;overflow-wrap:anywhere;box-shadow:none!important}.btn:not(.secondary):not(.danger):not(.danger-outline),.button.primary{background:var(--stable-brand)!important}.btn:not(.secondary):not(.danger):not(.danger-outline):hover,.button.primary:hover{background:var(--stable-brand-hover)!important;transform:none!important}.btn.secondary,.button.secondary{background:#fff!important;color:#475467!important;border:1px solid var(--stable-line-strong)!important}.compact-btn{min-height:36px!important;padding:7px 11px!important;font-size:13px!important}.link,.table-link{font-size:13px!important;line-height:1.35!important;overflow-wrap:anywhere}
.modal{padding:18px!important}.modal-card{width:min(680px,calc(100vw - 28px));max-width:100%;max-height:calc(100vh - 28px)!important;padding:22px!important;border-radius:16px!important;overflow:auto;overflow-wrap:anywhere}.modal-card.wide,.team-access-modal-card{width:min(1060px,calc(100vw - 28px))!important}.modal-close,.icon-button{min-width:40px!important;width:40px!important;height:40px!important;min-height:40px!important;display:grid!important;place-items:center!important}
.table-wrap,.smart-scroll-table,.report-detail-table-wrap{width:100%;max-width:100%;overflow:auto!important;overscroll-behavior-inline:contain;border-radius:11px;scrollbar-gutter:stable}.table-wrap:focus-within,.smart-scroll-table:focus-within{outline:2px solid rgba(90,75,216,.09)}
table{width:100%;font-size:13.5px!important;border-collapse:separate!important;border-spacing:0!important}th,td{box-sizing:border-box;max-width:360px;vertical-align:top!important}th{height:auto!important;min-height:46px;padding:11px 12px!important;font-size:12.5px!important;line-height:1.34!important;white-space:normal!important;overflow-wrap:anywhere;word-break:normal}td{height:auto!important;min-height:46px;padding:11px 12px!important;font-size:13.5px!important;line-height:1.43!important;white-space:normal!important;overflow-wrap:anywhere;word-break:normal}.num,.table-col-compact{white-space:nowrap!important;overflow-wrap:normal!important}.table-cell-wrap{min-width:210px!important;max-width:330px!important;white-space:normal!important;overflow-wrap:anywhere!important}.table-cell-id{min-width:130px!important;max-width:225px!important;white-space:normal!important;overflow-wrap:anywhere!important;word-break:break-word!important}.table-cell-actions{min-width:135px!important;white-space:normal!important}.pill,.status,.badge{max-width:100%;white-space:normal!important;line-height:1.3!important;text-align:center}.row-actions,.table-action-buttons{min-width:0;max-width:100%;flex-wrap:wrap!important}.row-actions .btn,.table-action-buttons .btn{flex:0 1 auto}.sort-header,.table-header-label,.draggable-table-header{min-width:0;max-width:100%;white-space:normal!important}.table-header-text{white-space:normal!important;overflow-wrap:anywhere}.column-grip{min-width:24px;min-height:32px;font-size:14px!important}.table-scroll-actions button,.table-reset-columns{min-width:36px!important;min-height:36px!important;font-size:13px!important}.smart-table-toolbar{min-width:0;max-width:100%;flex-wrap:wrap!important;overflow:visible}.table-column-help>div{max-width:min(300px,calc(100vw - 32px));overflow-wrap:anywhere}
.form-grid,.settings-grid,.grid.two,.team-person-grid{min-width:0}.profile-form,.password-change-form,.cabinet-form,.api-form{grid-template-columns:repeat(auto-fit,minmax(230px,1fr))!important}.password-row,.inline-row{min-width:0}.password-row input,.inline-row input{min-width:0}
.warning,.notice,.error,.ok,.team-security-note,.read-only-banner{max-width:100%;overflow-wrap:anywhere;align-items:flex-start!important}
@media(max-width:1400px){.topbar{grid-template-columns:1fr!important;align-items:start!important}.top-actions{width:100%;justify-content:flex-start!important}.workspace-select{max-width:min(440px,48%)!important;flex:1 1 280px!important}}
@media(max-width:900px){.main{padding-left:18px!important;padding-right:18px!important}.panel{padding:17px!important}.top-actions{display:grid!important;grid-template-columns:minmax(0,1fr) minmax(0,1fr) auto auto!important}.workspace-select{max-width:none!important;width:100%!important}.cards,.summary-main-cards{grid-template-columns:repeat(2,minmax(0,1fr))!important}.smart-table-toolbar{align-items:stretch!important}.table-view-switch{width:100%}.table-view-switch button{flex:1}.table-column-help{margin-left:0!important}}
@media(max-width:620px){body{font-size:14px}.main{padding:14px 11px 34px!important}.topbar{padding-left:11px!important;padding-right:11px!important}.topbar h2{font-size:23px!important}.top-actions{grid-template-columns:minmax(0,1fr) auto auto!important}.top-actions .workspace-select:first-of-type{grid-column:1/-1}.workspace-select{grid-column:1}.cards,.summary-main-cards{grid-template-columns:1fr!important}.panel{padding:15px!important}.btn,.button,input,select,textarea,.range-trigger{min-height:44px!important}.filters>label,.filters>.range-field,.filters>.orders-search,.filters>.finance-search-field{width:100%!important;min-width:0!important}.filters>.btn{width:100%!important}.modal{padding:7px!important}.modal-card,.modal-card.wide,.team-access-modal-card{width:calc(100vw - 14px)!important;max-height:calc(100vh - 14px)!important;padding:17px!important}.row-actions .btn,.table-action-buttons .btn{width:100%!important}.table-cell-wrap{min-width:180px!important}.table-cell-id{min-width:125px!important}.quick-periods{grid-template-columns:repeat(2,minmax(0,1fr))!important}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{scroll-behavior:auto!important;animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important}}

/* v0.64-stable1 — legibility finish */
.metric-glow{display:none!important}
.notification-bell{width:44px!important;height:44px!important;min-width:44px!important;padding:0!important}
.page-eyebrow,.nav-group-label,.section-kicker,.feature-label{font-size:11.5px!important;line-height:1.3!important}
.nav-new{font-size:10px!important;padding:3px 6px!important}
.summary-card-secondary,.metric-comparison,.metric-comparison small,.summary-trust-items small,.summary-mode-arrow small,.summary-mode-heading>div>span,.calendar-report-shortcuts>span{font-size:12px!important;line-height:1.42!important}
.summary-card-action{min-height:34px!important;padding:7px 10px!important;font-size:12.5px!important;white-space:normal!important}
.settings-check b{font-size:13px!important}.settings-check p,.settings-check small{font-size:12px!important;line-height:1.42!important}.settings-check small{position:static!important;grid-column:2}
.notification-item-title>span,.profit-change-summary span,.profit-change-summary small,.summary-product-rank-main>small,.summary-product-rank-metric small,.report-operation-cell>span,.cost-focus-copy small,.shipment-product-places span,.shipment-package-card>header>div:first-child span,.shipment-package-status span,.shipment-package-product span,.shipment-package-add small,.shipment-parent-chip,.shipment-pallet-boxes-head small,.shipment-pallet-box span,.shipment-package-item small,.packing-mode-options small,.packing-derived span,.packing-derived small,.month-forecast-grid span,.month-forecast-grid small,.month-forecast-panel>p,.month-forecast-empty span,.month-forecast-empty p,.ad-campaign-open span{font-size:11.5px!important;line-height:1.4!important}
.shipment-package-add .btn{font-size:12.5px!important;min-height:36px!important}.shipment-package-add select,.shipment-package-add input{font-size:13px!important;min-height:38px!important;height:auto!important}
.summary-product-issue em{font-size:11.5px!important;white-space:normal!important}.profit-route-detail small{font-size:11.5px!important;white-space:normal!important}.profit-route-detail b{font-size:12px!important;white-space:normal!important}
.period-chip,.view-switch,.entity-tab,.section-tab,.summary-product-tab,.stock-link,.link{display:inline-flex!important;align-items:center!important;justify-content:center;min-height:36px!important;padding-top:7px!important;padding-bottom:7px!important}
.sort-header{display:flex!important;align-items:center!important;width:100%!important;min-height:34px!important;padding:3px 0!important;text-align:left!important}

/* Stable1: keep the notification counter inside its button boundary. */
.notification-bell{overflow:hidden!important}
.notification-count{right:1px!important;top:1px!important;border-width:1px!important;min-width:17px!important;height:17px!important;padding:0 4px!important;line-height:15px!important;font-size:9px!important}

/* Stable1: consistent touch targets for actionable inline controls. */
.summary-card-warning{display:inline-flex!important;align-items:center!important;min-height:36px!important;margin-top:6px!important;padding:7px 0!important;font-size:12.5px!important;line-height:1.35!important;white-space:normal!important}
.profit-route-warning{min-height:38px!important;padding:8px 11px!important;font-size:12.5px!important;line-height:1.35!important;white-space:normal!important}
.planning-product-link{min-height:38px!important;padding:4px 0!important}.planning-product-link small{font-size:11.5px!important;line-height:1.35!important}
.ad-attention-chip{min-height:38px!important;padding:7px 10px!important}.ad-attention-chip b{font-size:12px!important}.ad-attention-chip em{font-size:11px!important}
.sort-header{min-height:36px!important}

/* Native hidden attribute must win over component display rules. */
[hidden]{display:none!important}


/* ===== ux-core.css ===== */
/* v0.65-ux-core — navigation state, compact KPI cards, unified tables and filters */
:root{
  --ux-line:#e4e7ec;
  --ux-line-strong:#d0d5dd;
  --ux-text:#182230;
  --ux-muted:#667085;
  --ux-soft:#f7f8fa;
  --ux-brand:#5a4bd8;
  --ux-brand-soft:#f0efff;
}

/* Top bar: labels sit above the value and never compete with the native arrow. */
.top-actions{align-items:flex-end!important;gap:10px!important}
.topbar-selector{display:grid!important;gap:4px!important;min-width:220px!important;max-width:320px!important;flex:0 1 290px!important}
.topbar-selector-label{display:block!important;padding-left:2px;font-size:10.5px!important;font-weight:750!important;line-height:1.2!important;letter-spacing:.055em;text-transform:uppercase;color:#7b8494!important;white-space:nowrap}
.topbar-selector select{height:42px!important;padding:8px 38px 8px 12px!important;border:1px solid var(--ux-line-strong)!important;border-radius:11px!important;background-color:#fff!important;font-size:13.5px!important;font-weight:650!important;color:var(--ux-text)!important;box-shadow:0 1px 2px rgba(16,24,40,.03)!important}

/* Summary source modes must unmistakably look interactive. */
.summary-mode-switcher{padding:12px!important;border:1px solid var(--ux-line)!important;border-radius:14px!important;background:#fff!important;box-shadow:none!important}
.summary-mode-tabs{gap:8px!important}
.summary-mode-tab{position:relative;display:grid!important;grid-template-columns:28px minmax(0,1fr) 18px;align-items:center!important;gap:8px!important;min-height:58px!important;padding:9px 12px!important;border:1px solid var(--ux-line)!important;border-radius:11px!important;background:#fff!important;text-align:left!important;color:#475467!important;cursor:pointer!important}
.summary-mode-tab:hover{border-color:#aaa3f1!important;background:#fafaff!important}
.summary-mode-tab.active{border-color:#9188eb!important;background:var(--ux-brand-soft)!important;color:#332a9c!important;box-shadow:inset 0 -2px 0 var(--ux-brand)!important}
.summary-mode-tab b{font-size:13px!important;line-height:1.25!important}
.summary-mode-tab small{display:block;font-size:11.5px!important;line-height:1.35!important;color:#667085!important;white-space:normal!important}
.summary-mode-icon{display:grid!important;place-items:center;width:28px;height:28px;border-radius:9px;background:#f2f4f7;color:#667085;font-size:14px;font-weight:800}
.summary-mode-tab.active .summary-mode-icon{background:#fff;color:var(--ux-brand)}
.summary-mode-arrow{font-size:24px;line-height:1;color:#98a2b3;transition:transform .16s ease}
.summary-mode-tab:hover .summary-mode-arrow,.summary-mode-tab.active .summary-mode-arrow{transform:translateX(2px);color:var(--ux-brand)}

/* KPI cards: reduced visual scale for 14-inch notebooks. */
.cards,.summary-main-cards{grid-template-columns:repeat(auto-fit,minmax(176px,1fr))!important;gap:10px!important}
.card,.metric-card,.summary-metric-card{min-height:100px!important;padding:13px 14px!important;border-radius:13px!important}
.card .label,.metric-card .label,.summary-metric-card .label{margin-bottom:6px!important;font-size:11.75px!important;line-height:1.35!important;font-weight:650!important;color:var(--ux-muted)!important}
.card .value,.metric-card .value,.summary-metric-card .value{font-size:21px!important;line-height:1.15!important;letter-spacing:-.018em!important}
.card small,.metric-card small,.summary-metric-card small,.summary-card-secondary,.metric-comparison{font-size:11.25px!important;line-height:1.38!important}
.small-cards .card,.compact-management-cards .card{min-height:92px!important;padding:12px 13px!important}
.small-cards .card .value,.compact-management-cards .card .value{font-size:19px!important}

/* Apply buttons outside date popovers are redundant; all regular filters update automatically. */
#applySummary,#applyOrders,#applyStocks,#applySupplies,#applyPlanning,#applyAdvertising,#applyPrices,#applyGrowth,#applyProducts,#applyReports,#applyExpenses,#applyControl,#applyCosts{display:none!important}
.range-popover [data-range-apply]{display:inline-flex!important;min-width:110px!important;align-self:flex-end!important;margin-top:4px!important}
.filters{align-items:end!important}
.filters label,.filters .range-field{min-width:150px}
.filters input[type="search"]{min-width:210px}

/* Planning controls: wider horizontal fields and the shipment action next to the table workflow. */
.planning-filter-panel{padding:15px 16px!important}
.planning-filters{display:grid!important;grid-template-columns:minmax(180px,1.15fr) minmax(170px,.85fr) minmax(180px,.9fr) minmax(180px,1fr) minmax(230px,1.35fr);gap:10px!important;align-items:end!important;margin-bottom:0!important}
.planning-filters .planning-build-btn{grid-column:1/-1;justify-self:end;min-width:160px!important;margin-top:2px}
.planning-meta .tooltip-source{cursor:help;border-bottom:1px dashed #98a2b3}

/* One stable table layout. Header and body share the same colgroup. */
.smart-table-toolbar{display:flex!important;align-items:center!important;justify-content:flex-end!important;gap:7px!important;min-height:42px!important;padding:5px 0 8px!important;border:0!important;background:transparent!important}
.table-columns-button{display:inline-flex;align-items:center;gap:7px;min-height:36px;padding:7px 10px;border:1px solid var(--ux-line-strong);border-radius:9px;background:#fff;color:#475467;font:700 12.5px/1.2 inherit;cursor:pointer}
.table-columns-button:hover{border-color:#9188eb;color:#3f35ad;background:#fafaff}
.table-columns-button small{display:inline-grid;place-items:center;min-width:28px;height:20px;padding:0 5px;border-radius:999px;background:#f2f4f7;color:#667085;font-size:10.5px}
.table-scroll-actions{display:flex;gap:5px;margin-left:0!important}
.table-scroll-actions button{width:36px!important;height:36px!important;min-width:36px!important;min-height:36px!important;border:1px solid var(--ux-line-strong)!important;border-radius:9px!important;background:#fff!important;color:#475467!important}
.table-wrap,.smart-scroll-table,.report-detail-table-wrap{position:relative;overflow:auto!important;max-width:100%!important;border-radius:12px!important}
table[data-table-key]{border-collapse:separate!important;border-spacing:0!important}
table[data-table-key] thead th{position:sticky!important;top:0;z-index:4;background:#f8f9fb!important;border-bottom:1px solid var(--ux-line-strong)!important;color:#475467!important}
table[data-table-key] th,table[data-table-key] td{box-sizing:border-box!important;padding:10px 11px!important;border-right:1px solid #f0f1f3!important;border-bottom:1px solid #eaecf0!important;vertical-align:middle!important}
table[data-table-key] th{font-size:11.75px!important;line-height:1.32!important;font-weight:750!important}
table[data-table-key] td{font-size:12.75px!important;line-height:1.4!important;color:#344054!important}
table[data-table-key] tbody tr:hover td{background:#fafaff!important}
table[data-table-key] .sort-header{display:grid!important;grid-template-columns:minmax(0,1fr) 16px;gap:5px;align-items:center!important;padding:0!important;min-height:28px!important}
table[data-table-key] .sort-mark{font-size:11px;color:#98a2b3}
table[data-table-key] .table-header-label{display:block;min-height:28px;padding:5px 0}
table[data-table-key] .table-header-text{display:block;overflow-wrap:anywhere!important}
table[data-table-key] .table-cell-wrap{min-width:0!important;max-width:none!important;white-space:normal!important;overflow-wrap:anywhere!important}
table[data-table-key] .table-cell-id{min-width:0!important;max-width:none!important;white-space:normal!important;overflow-wrap:anywhere!important;word-break:break-word!important}
table[data-table-key] .num,table[data-table-key] .table-col-compact{text-align:right!important;white-space:nowrap!important;font-variant-numeric:tabular-nums}
.column-grip,.column-resizer,.table-column-help,.table-view-switch{display:none!important}

/* Dedicated side panel for column visibility/order. */
.column-manager-backdrop{position:fixed;inset:0;z-index:690;background:rgba(16,24,40,.28);backdrop-filter:blur(1.5px)}
.column-manager{position:fixed;z-index:700;top:0;right:0;bottom:0;width:min(410px,100vw);display:flex;flex-direction:column;background:#fff;border-left:1px solid var(--ux-line);box-shadow:-18px 0 44px rgba(16,24,40,.16);transform:translateX(105%);transition:transform .2s ease}
.column-manager.open{transform:translateX(0)}
.column-manager-head{display:flex;align-items:center;justify-content:space-between;padding:18px 18px 13px;border-bottom:1px solid var(--ux-line)}
.column-manager-head span{display:block;font-size:10.5px;font-weight:800;letter-spacing:.08em;text-transform:uppercase;color:#7c8492}
.column-manager-head h3{margin:2px 0 0;font-size:19px}
.column-manager-head button{display:grid;place-items:center;width:38px;height:38px;border:1px solid var(--ux-line);border-radius:10px;background:#fff;font-size:24px;cursor:pointer}
.column-manager-copy{padding:13px 18px 5px;font-size:12.5px;line-height:1.45;color:var(--ux-muted)}
.column-manager-search{display:grid;gap:5px;padding:10px 18px 8px;font-size:12px;color:var(--ux-muted)}
.column-manager-search input{width:100%}
.column-manager-actions{display:flex;gap:8px;padding:0 18px 11px;border-bottom:1px solid var(--ux-line)}
.column-manager-list{flex:1;overflow:auto;padding:8px 12px 22px}
.column-manager-item{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:8px;padding:9px 7px;border-bottom:1px solid #f0f1f3}
.column-manager-item label{display:flex;align-items:center;gap:9px;min-width:0;font-size:13px;color:#344054;cursor:pointer}
.column-manager-item label span{overflow-wrap:anywhere}
.column-manager-item input{width:17px;height:17px;min-height:0!important}
.column-manager-item>div{display:flex;gap:4px}
.column-manager-item button{display:grid;place-items:center;width:32px;height:32px;border:1px solid var(--ux-line);border-radius:8px;background:#fff;color:#667085;cursor:pointer}
.column-manager-item button:disabled{opacity:.35;cursor:default}

/* Align action bars and make primary actions obvious. */
.table-action-bar{min-height:40px;align-items:center!important;margin:8px 0!important}
.table-primary-actions{display:flex;align-items:center;gap:8px;margin-left:auto}
.expense-add-filter-btn{min-height:42px!important;padding-inline:17px!important;background:var(--ux-brand)!important;color:#fff!important}
.report-number-link,.supply-number-link{display:inline-flex;flex-direction:column;align-items:flex-start;gap:2px;min-height:36px;padding:5px 4px;border:0;background:transparent;color:#4438bb;font:700 13px/1.25 inherit;text-align:left;cursor:pointer}
.report-number-link:hover,.supply-number-link:hover{text-decoration:underline}
.supply-number-link span{font-size:11.5px;font-weight:500;color:var(--ux-muted)}

/* Forecast is a common summary block, not tied to a source tab. */
.month-forecast-panel{margin:0 0 14px!important;border-radius:13px!important}
.month-forecast-head h3{font-size:16px!important}
.month-forecast-grid b{font-size:18px!important}

@media(max-width:1240px){
  .planning-filters{grid-template-columns:repeat(3,minmax(0,1fr))}
  .planning-filters .planning-build-btn{grid-column:auto;justify-self:stretch}
  .topbar-selector{max-width:none!important;flex:1 1 250px!important}
}
@media(max-width:900px){
  .top-actions{display:grid!important;grid-template-columns:minmax(0,1fr) minmax(0,1fr) auto auto!important;align-items:end!important}
  .topbar-selector{width:100%!important;max-width:none!important}
  .planning-filters{grid-template-columns:repeat(2,minmax(0,1fr))}
  .cards,.summary-main-cards{grid-template-columns:repeat(2,minmax(0,1fr))!important}
}
@media(max-width:620px){
  .top-actions{grid-template-columns:minmax(0,1fr) auto auto!important}
  .topbar-selector{grid-column:1/-1!important}
  .summary-mode-tabs{grid-template-columns:1fr!important}
  .summary-mode-tab{min-height:62px!important}
  .cards,.summary-main-cards{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  .card,.metric-card,.summary-metric-card{min-height:91px!important;padding:11px!important}
  .card .value,.metric-card .value,.summary-metric-card .value{font-size:18px!important}
  .card .label,.metric-card .label,.summary-metric-card .label{font-size:10.75px!important}
  .planning-filters{grid-template-columns:1fr}
  .planning-filters .planning-build-btn{grid-column:1;width:100%}
  .column-manager{width:100vw}
  .table-action-bar{align-items:stretch!important}
  .table-primary-actions{width:100%;margin-left:0}
  .table-primary-actions .btn{width:100%}
}

/* Explanations stay secondary and do not compete with stock KPIs. */
.stock-method-help{display:inline-flex;align-items:center;min-height:28px;padding:3px 7px;border:0;border-bottom:1px dashed #98a2b3;background:transparent;color:#667085;font:650 11.5px/1.25 inherit;cursor:help}
.stock-method-help:hover{color:#4438bb;border-bottom-color:#4438bb}


/* ===== logistics-marketing.css ===== */
/* v0.65-logistics-marketing — persistent outbound sheets, campaign pages and product search */
:root{
  --lm-brand:#5a4bd8;
  --lm-brand-soft:#eeecff;
  --lm-text:#202939;
  --lm-muted:#667085;
  --lm-line:#e2e6ec;
  --lm-soft:#f7f8fb;
  --lm-good:#178455;
  --lm-warn:#b45f06;
  --lm-bad:#c93636;
  --lm-info:#3566cc;
}

/* Shared segmented navigation */
.section-tabs{display:inline-flex;align-items:center;gap:5px;max-width:100%;padding:5px;margin:0 0 14px;border:1px solid var(--lm-line);border-radius:12px;background:#fff;box-shadow:0 4px 14px rgba(16,24,40,.04)}
.section-tab{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:38px;padding:8px 14px;border:0;border-radius:9px;background:transparent;color:var(--lm-muted);font:700 13px/1.15 inherit;cursor:pointer;white-space:nowrap}
.section-tab:hover{background:var(--lm-soft);color:var(--lm-text)}
.section-tab.active{background:var(--lm-brand);color:#fff;box-shadow:0 6px 14px rgba(90,75,216,.18)}
.section-tab em{display:grid;place-items:center;min-width:21px;height:21px;padding:0 6px;border-radius:999px;background:#f2f4f7;color:#475467;font-style:normal;font-size:11px;font-weight:800}
.section-tab.active em{background:rgba(255,255,255,.2);color:#fff}
.planning-pane,.ad-workspace{display:none;min-width:0}.planning-pane.active,.ad-workspace.active{display:block}

/* Replenishment recommendation and outbound list */
.planning-main-tabs{margin-bottom:16px}
.planning-filter-panel .planning-filters{display:grid;grid-template-columns:minmax(170px,.85fr) minmax(170px,.85fr) minmax(180px,.9fr) minmax(190px,.95fr) minmax(220px,1.25fr);gap:12px;align-items:end}
.planning-action-bar{position:sticky;bottom:10px;z-index:30;padding:10px 12px;border:1px solid #dcd8fb;border-radius:12px;background:rgba(255,255,255,.96);box-shadow:0 10px 26px rgba(35,31,90,.12);backdrop-filter:blur(10px)}
.planning-build-btn{min-width:132px;background:var(--lm-brand)!important}
.outbound-list-toolbar{padding:15px!important}.outbound-list-toolbar .filters{display:grid;grid-template-columns:minmax(180px,.8fr) minmax(180px,.8fr) minmax(250px,1.4fr);gap:12px}
.entity-link{display:flex;flex-direction:column;align-items:flex-start;gap:2px;max-width:270px;padding:0;border:0;background:transparent;color:var(--lm-text);font:inherit;text-align:left;cursor:pointer}
.entity-link b{color:#4f46cf;font-size:13.5px;text-decoration:underline;text-decoration-color:transparent;text-underline-offset:3px}.entity-link:hover b{text-decoration-color:currentColor}
.entity-link span{max-width:100%;color:var(--lm-muted);font-size:11.5px;line-height:1.35;overflow-wrap:anywhere}
.outbound-status-select{min-width:128px!important;min-height:34px!important;height:34px!important;padding:5px 28px 5px 9px!important;border-radius:999px!important;font-size:12px!important;font-weight:750!important;background-color:#f2f4f7!important}
.outbound-status-select.warn{background-color:#fff6e8!important;border-color:#f5d29a!important;color:#925109!important}.outbound-status-select.good{background-color:#ecfdf3!important;border-color:#b8e7cc!important;color:#087443!important}.outbound-status-select.info{background-color:#edf4ff!important;border-color:#c9d9ff!important;color:#2856b2!important}.outbound-status-select.bad{background-color:#fff0f0!important;border-color:#f1c0c0!important;color:#a32626!important}
.outbound-sheets-table td,.outbound-sheets-table th{vertical-align:middle!important}.outbound-sheets-table .table-cell-actions{text-align:center}

/* Dedicated outbound sheet page */
.entity-page-topbar{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin:0 0 14px}
.entity-page-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.shipment-print-btn{min-width:112px}
.shipment-sheet-header{display:grid;grid-template-columns:minmax(190px,.7fr) minmax(0,2fr);gap:24px;align-items:start}
.shipment-sheet-title>div{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.shipment-sheet-title h2{margin:2px 0 0;font-size:24px;line-height:1.15}.shipment-sheet-fields{display:grid;grid-template-columns:minmax(210px,1.2fr) minmax(145px,.65fr) minmax(160px,.7fr);gap:12px}.shipment-sheet-fields label{display:grid;gap:5px;color:var(--lm-muted);font-size:12.5px}.shipment-sheet-comment{grid-column:1/-1}
.shipment-warehouse-panel{display:grid;grid-template-columns:minmax(320px,.95fr) minmax(300px,1.05fr);gap:18px;align-items:start}.shipment-warehouse-field{display:grid;gap:6px;color:var(--lm-muted);font-size:12.5px}.shipment-warehouse-info{min-height:42px;padding:11px 13px;border:1px solid var(--lm-line);border-radius:11px;background:var(--lm-soft);color:#475467;font-size:12.5px;line-height:1.45}
.shipment-add-product-panel{display:grid;grid-template-columns:minmax(210px,.7fr) minmax(0,1.3fr);gap:18px;align-items:center}.shipment-add-product-panel h3{margin:0 0 3px}.shipment-add-product-panel p{margin:0}.shipment-add-product-controls{display:grid;grid-template-columns:minmax(220px,1fr) 120px auto;gap:8px;align-items:end}.shipment-add-product-controls>*{min-width:0}
.shipment-plan-date{display:flex;align-items:center;gap:8px;min-height:38px;margin:4px 0 10px;padding:8px 12px;border:1px solid var(--lm-line);border-radius:10px;background:#fafbfc;color:var(--lm-muted);font-size:12.5px}
.shipment-builder-layout{gap:14px!important}.shipment-products-panel,.shipment-packages-panel{background:#fff!important;border-color:var(--lm-line)!important}.shipment-product-list,.shipment-package-list{max-height:none!important}
.shipment-product-row{position:relative;grid-template-columns:minmax(210px,1.2fr) minmax(250px,.8fr) minmax(130px,.55fr) 36px!important;align-items:center;gap:12px!important;padding:12px!important;margin-bottom:8px!important}.shipment-product-main{min-width:0}.shipment-product-main b{display:block;overflow-wrap:anywhere}.shipment-product-main span,.shipment-product-main small{display:block;margin-top:3px;color:var(--lm-muted);font-size:11.5px!important;line-height:1.4}.shipment-product-progress{display:grid!important;grid-template-columns:minmax(92px,1fr) repeat(2,minmax(74px,.7fr));gap:7px!important}.shipment-product-progress label,.shipment-product-progress>div{min-width:0;padding:7px 8px;border:1px solid var(--lm-line);border-radius:9px;background:var(--lm-soft)}.shipment-product-progress span{display:block;font-size:10.5px;color:var(--lm-muted)}.shipment-product-progress b{display:block;margin-top:2px;font-size:13px}.shipment-product-progress input{width:100%!important;min-height:30px!important;height:30px!important;padding:3px 6px!important;text-align:right;font-size:13px!important}.shipment-product-places{display:flex!important;gap:5px!important;flex-wrap:wrap!important}.shipment-product-places span{padding:4px 7px;border-radius:999px;background:#f1f0ff;color:#5145cd;font-size:10.5px!important;font-weight:700}.shipment-product-remove{align-self:center!important;justify-self:center!important}
.shipment-package-card{box-shadow:0 1px 2px rgba(16,24,40,.025)}.shipment-package-product b{max-width:420px!important;white-space:normal!important;overflow:visible!important;text-overflow:clip!important;overflow-wrap:anywhere}.shipment-package-product span{font-size:10.5px!important}.shipment-package-add{grid-template-columns:minmax(190px,1fr) 86px auto auto auto!important}.shipment-package-add small{font-size:10.5px!important}.shipment-package-item-actions select{max-width:155px!important;font-size:11.5px!important}.shipment-pallet-boxes{border-top:1px solid var(--lm-line)}

/* Advertising workspace */
.ad-mode-tabs{margin:0 0 14px}.ad-products-tab:not(.active){color:#4338ca;background:#f3f1ff}.ad-products-tab:not(.active):hover{background:#e9e6ff}
.ad-overview-panel{overflow:visible!important}.ad-overview-head{display:grid!important;grid-template-columns:minmax(220px,1fr) auto auto;align-items:center!important;gap:14px!important}.ad-chart-toggles{display:flex;gap:7px;flex-wrap:wrap;justify-content:flex-end}.chart-toggle{display:inline-flex;align-items:center;gap:6px;min-height:32px;padding:5px 9px;border:1px solid var(--lm-line);border-radius:999px;background:#fff;color:#475467;font-size:11.5px;font-weight:700;cursor:pointer}.chart-toggle input{position:absolute;opacity:0;pointer-events:none}.chart-toggle span{width:9px;height:9px;border-radius:50%;background:#98a2b3}.chart-toggle.spend span{background:#ef8b35}.chart-toggle.sales span{background:#2f9f69}.chart-toggle.orders span{background:#4e7bd9}.chart-toggle.drr span{background:#8a57d7}.chart-toggle:has(input:not(:checked)){opacity:.42}
.interactive-chart{min-height:330px}.chart-stage{position:relative;width:100%;height:330px;padding:4px 0 24px;overflow:hidden}.chart-stage svg{display:block;width:100%;height:290px;overflow:visible}.chart-grid line{stroke:#e8ebf0;stroke-width:1;vector-effect:non-scaling-stroke}.chart-area{opacity:.06;stroke:none}.chart-area.spend{fill:#ef8b35}.chart-area.sales{fill:#2f9f69}.chart-area.orders{fill:#4e7bd9}.chart-area.drr{fill:#8a57d7}.chart-line{fill:none;stroke-width:2.7;stroke-linecap:round;stroke-linejoin:round;vector-effect:non-scaling-stroke}.chart-line.spend{stroke:#ef8b35}.chart-line.sales{stroke:#2f9f69}.chart-line.orders{stroke:#4e7bd9}.chart-line.drr{stroke:#8a57d7}.chart-hover-line{stroke:#98a2b3;stroke-width:1;stroke-dasharray:4 4;vector-effect:non-scaling-stroke}.chart-axis-labels{position:absolute;left:48px;right:28px;bottom:2px;display:flex;justify-content:space-between;color:var(--lm-muted);font-size:11px}.chart-tooltip{position:absolute;z-index:5;width:185px;padding:10px 11px;border:1px solid #d5dae3;border-radius:11px;background:rgba(255,255,255,.98);box-shadow:0 12px 28px rgba(16,24,40,.14);pointer-events:none}.chart-tooltip>b{display:block;margin-bottom:6px;font-size:12px}.chart-tooltip span{display:grid;grid-template-columns:8px minmax(0,1fr) auto;align-items:center;gap:6px;padding:3px 0;color:#667085;font-size:11px}.chart-tooltip i{width:7px;height:7px;border-radius:50%}.chart-tooltip i.spend{background:#ef8b35}.chart-tooltip i.sales{background:#2f9f69}.chart-tooltip i.orders{background:#4e7bd9}.chart-tooltip i.drr{background:#8a57d7}.chart-tooltip strong{color:#344054;font-variant-numeric:tabular-nums}
.ad-campaign-open{display:flex;flex-direction:column;align-items:flex-start;gap:2px;max-width:280px;padding:0;border:0;background:transparent;color:inherit;text-align:left;cursor:pointer}.ad-campaign-open b{color:#4f46cf;font-size:13.5px;overflow-wrap:anywhere}.ad-campaign-open:hover b{text-decoration:underline;text-underline-offset:3px}.ad-campaign-open span{color:var(--lm-muted);font-size:11.5px!important}
.ad-products-toolbar{padding:17px 18px!important;border-color:#d8d4fb!important;background:linear-gradient(135deg,#faf9ff,#f3f1ff)!important}.ad-products-toolbar h2{margin:3px 0 4px;font-size:21px}.ad-products-toolbar p{margin:0;color:var(--lm-muted)}

/* Campaign detail page */
.entity-hero{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;margin-bottom:14px}.entity-hero h2{margin:3px 0 4px;font-size:25px;line-height:1.2;overflow-wrap:anywhere}.entity-hero p{margin:0;color:var(--lm-muted);font-size:12.5px}.entity-hero .pill{flex:0 0 auto}
.campaign-page-grid{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(300px,.85fr);gap:14px}.campaign-page-grid>.panel{min-width:0}.campaign-page-chart{grid-column:1/-1}.campaign-page-tabs{display:flex;gap:5px;padding:5px;border:1px solid var(--lm-line);border-radius:12px;background:#fff;margin-bottom:12px;overflow:auto}.campaign-page-tabs button{flex:0 0 auto;min-height:38px;padding:8px 13px;border:0;border-radius:8px;background:transparent;color:var(--lm-muted);font:700 13px/1.2 inherit;cursor:pointer}.campaign-page-tabs button.active{background:var(--lm-brand-soft);color:#4d3fc7}.campaign-page-pane{display:none}.campaign-page-pane.active{display:block}

/* Funnel and per-product search */
.funnel-product-cell{display:flex;align-items:center;justify-content:space-between;gap:10px;min-width:265px}.product-name-link{display:flex;flex-direction:column;align-items:flex-start;gap:2px;min-width:0;padding:0;border:0;background:transparent;color:inherit;text-align:left;cursor:pointer}.product-name-link b{max-width:230px;color:#344054;overflow-wrap:anywhere}.product-name-link:hover b{color:#4f46cf;text-decoration:underline;text-underline-offset:3px}.product-name-link span{color:var(--lm-muted);font-size:11px}.query-action-btn{flex:0 0 auto;min-height:32px;padding:5px 10px;border:1px solid #cbc5fb;border-radius:9px;background:#f4f2ff;color:#4b3fc5;font:750 11.5px/1.2 inherit;cursor:pointer}.query-action-btn:hover{background:#e9e6ff}
.search-query-explanation{display:flex;align-items:flex-start;gap:12px;padding:13px 15px!important;background:#fafbff!important;border-color:#dfe1f8!important}.search-query-explanation b{flex:0 0 auto;color:#4338ca}.search-query-explanation span{color:var(--lm-muted);font-size:12.5px;line-height:1.45}.search-queries-table .order-product{min-width:250px}

/* Print-only helper */
.shipment-print-frame{position:fixed;left:-10000px;top:0;width:1px;height:1px;border:0;visibility:hidden}

@media(max-width:1180px){
  .planning-filter-panel .planning-filters{grid-template-columns:repeat(3,minmax(0,1fr))}
  .shipment-sheet-header{grid-template-columns:1fr}.shipment-warehouse-panel,.shipment-add-product-panel{grid-template-columns:1fr}.ad-overview-head{grid-template-columns:1fr}.ad-chart-toggles{justify-content:flex-start}.campaign-page-grid{grid-template-columns:1fr}.campaign-page-chart{grid-column:auto}
  .shipment-product-row{grid-template-columns:minmax(190px,1fr) minmax(245px,1fr) 36px!important}.shipment-product-places{grid-column:1/3}.shipment-product-remove{grid-column:3;grid-row:1/3}
}
@media(max-width:820px){
  .planning-filter-panel .planning-filters,.outbound-list-toolbar .filters{grid-template-columns:repeat(2,minmax(0,1fr))}.planning-action-bar{position:static}.shipment-sheet-fields{grid-template-columns:repeat(2,minmax(0,1fr))}.shipment-add-product-controls{grid-template-columns:minmax(0,1fr) 110px}.shipment-add-product-controls .btn{grid-column:1/-1}.shipment-product-row{grid-template-columns:1fr 36px!important}.shipment-product-progress,.shipment-product-places{grid-column:1}.shipment-product-remove{grid-column:2;grid-row:1}.shipment-package-add{grid-template-columns:minmax(160px,1fr) 78px!important}.shipment-package-add .btn{grid-column:auto}.entity-hero{flex-direction:column}.interactive-chart,.chart-stage{min-height:290px;height:290px}.chart-stage svg{height:250px}
}
@media(max-width:560px){
  .section-tabs{display:flex;width:100%;overflow:auto}.section-tab{flex:1 0 auto}.planning-filter-panel .planning-filters,.outbound-list-toolbar .filters,.shipment-sheet-fields{grid-template-columns:1fr}.entity-page-topbar{align-items:stretch;flex-direction:column}.entity-page-topbar>.btn,.entity-page-actions,.entity-page-actions .btn{width:100%}.entity-page-actions{display:grid;grid-template-columns:1fr 1fr}.shipment-add-product-controls{grid-template-columns:1fr}.shipment-add-product-controls .btn{grid-column:auto;width:100%}.shipment-product-progress{grid-template-columns:1fr 1fr!important}.shipment-product-progress label{grid-column:1/-1}.shipment-package-add{grid-template-columns:1fr!important}.shipment-package-add .btn{width:100%}.shipment-package-card>header{grid-template-columns:1fr auto!important}.shipment-package-status{grid-column:1;text-align:left!important}.shipment-package-delete{grid-column:2;grid-row:1}.ad-chart-toggles{display:grid;grid-template-columns:1fr 1fr;width:100%}.chart-toggle{justify-content:flex-start}.interactive-chart,.chart-stage{min-height:250px;height:250px}.chart-stage svg{height:210px}.chart-axis-labels{left:20px;right:16px}.chart-tooltip{width:165px}.funnel-product-cell{min-width:230px}.query-action-btn{padding-inline:8px}.search-query-explanation{flex-direction:column}.campaign-page-tabs{margin-inline:-2px}
}

/* Read-only shipment sheet for employees without edit permission. */
.shipment-readonly .shipment-add-product-panel,
.shipment-readonly .shipment-builder-actions,
.shipment-readonly [data-shipment-edit-only]{display:none!important}
.shipment-readonly input:disabled,
.shipment-readonly select:disabled,
.shipment-readonly textarea:disabled{opacity:.78;background:#f8fafc;color:var(--text);cursor:default}


/* ===== products.css ===== */
/* v0.65-products — unified product catalog and product card */
.products-hub-header{display:flex;align-items:flex-end;justify-content:space-between;gap:20px;margin:0 0 18px}.products-hub-header h2{margin:3px 0 5px;font-size:26px;line-height:1.15}.products-hub-header p{margin:0;color:var(--muted);font-size:13px}.products-hub-tabs{display:flex;gap:6px;padding:5px;border:1px solid var(--line);border-radius:12px;background:#fff;box-shadow:0 4px 14px rgba(15,23,42,.04)}.products-hub-tab{display:inline-flex;align-items:center;gap:8px;min-height:38px;padding:8px 14px;border:0;border-radius:9px;background:transparent;color:var(--muted);font:700 13px/1.15 inherit;cursor:pointer;white-space:nowrap}.products-hub-tab:hover{background:var(--surface-soft);color:var(--text)}.products-hub-tab.active{background:var(--brand);color:#fff;box-shadow:0 6px 14px rgba(98,85,223,.2)}.products-hub-pane{display:none}.products-hub-pane.active{display:block}.product-filter-bar{margin-bottom:12px}.product-analytics-filters{display:grid;grid-template-columns:minmax(210px,1.2fr) minmax(170px,.8fr) minmax(210px,1fr) minmax(230px,1.2fr);align-items:end}.product-analytics-filters>label,.product-analytics-filters>.range-field{min-width:0}.products-search input{width:100%}.products-catalog-actions{display:flex;justify-content:space-between;align-items:center;gap:12px;margin:0 0 10px;min-height:40px}.products-catalog-actions>div:last-child{display:flex;gap:8px;flex-wrap:wrap}.products-result-meta{margin:8px 0 10px}.products-hub-table .product-card-link{min-width:260px}.products-hub-table .product-thumb{width:42px;height:42px}.products-hub-table td,.products-hub-table th{vertical-align:middle}.products-costs-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin:0 0 16px}.products-costs-heading h3{font-size:21px;margin:3px 0 5px}.products-costs-heading p{margin:0;color:var(--muted)}#productsPaneCosts>.filters{display:flex;align-items:end;gap:10px;flex-wrap:wrap;padding:16px;background:#fff;border:1px solid var(--line);border-radius:14px;margin-bottom:12px}#productsPaneCosts>.filters label{min-width:210px;flex:1}#productsPaneCosts .import-panel{margin-top:14px}.product-profile-card{display:flex;align-items:flex-start;justify-content:space-between;gap:18px}.product-profile-main{min-width:0;flex:1}.product-profile-actions{display:flex;align-items:center;gap:10px;flex:0 0 auto}.product-current-price{display:flex;flex-direction:column;align-items:flex-end;gap:2px;padding:8px 12px;border:1px solid var(--line);border-radius:11px;background:var(--surface-soft)}.product-current-price span{font-size:11px;color:var(--muted);font-weight:700}.product-current-price b{font-size:18px;font-variant-numeric:tabular-nums}.product-detail-tabs{display:flex;gap:4px;overflow:auto;padding:5px;margin:14px 0;border:1px solid var(--line);border-radius:12px;background:#fff;scrollbar-width:thin}.product-detail-tabs button{flex:0 0 auto;min-height:38px;padding:8px 13px;border:0;border-radius:8px;background:transparent;color:var(--muted);font:700 13px/1.15 inherit;cursor:pointer;white-space:nowrap}.product-detail-tabs button:hover{background:var(--surface-soft);color:var(--text)}.product-detail-tabs button.active{background:#ede9fe;color:#4c3fd3}.product-detail-pane{display:none}.product-detail-pane.active{display:block}.product-detail-grid.two-products{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}.product-cost-history{display:grid;gap:8px}.product-cost-history>div{display:grid;grid-template-columns:100px 110px minmax(0,1fr);align-items:center;gap:10px;padding:10px 0;border-bottom:1px solid var(--line)}.product-cost-history>div:last-child{border-bottom:0}.product-cost-history span{color:var(--muted);font-size:12px}.product-cost-history b{text-align:right;font-variant-numeric:tabular-nums}.product-cost-history small{min-width:0;overflow-wrap:anywhere;color:var(--muted)}
@media (max-width:1180px){.product-analytics-filters{grid-template-columns:repeat(2,minmax(0,1fr))}.products-hub-header{align-items:flex-start;flex-direction:column}.products-hub-tabs{width:100%}.products-hub-tab{flex:1;justify-content:center}.product-profile-card{flex-direction:column}.product-profile-actions{width:100%;justify-content:space-between}.product-current-price{align-items:flex-start}.product-detail-grid.two-products{grid-template-columns:1fr}}
@media (max-width:700px){.products-hub-header h2{font-size:23px}.products-hub-tabs{overflow:auto}.products-hub-tab{flex:0 0 auto}.product-analytics-filters{grid-template-columns:1fr}.products-catalog-actions{align-items:flex-start;flex-direction:column}.products-catalog-actions>div:last-child{width:100%}.products-catalog-actions .btn{flex:1}.products-costs-heading{flex-direction:column}.products-costs-heading .btn{width:100%}.product-profile-actions{align-items:stretch;flex-direction:column}.product-current-price{align-items:flex-start}.product-detail-tabs{margin-inline:-2px}.product-cost-history>div{grid-template-columns:88px 90px minmax(0,1fr);font-size:12px}}
/* Keep the product toolbar inside the visible panel while the full table scrolls below it. */
.products-table-panel{overflow:hidden!important;min-width:0}
#productsTable{display:block;width:100%;max-width:100%;min-width:0;overflow-x:auto;overscroll-behavior-x:contain;scrollbar-gutter:stable}
#productsTable>.smart-table-toolbar{position:sticky!important;left:0!important;right:auto!important;width:100%!important;min-width:100%!important;max-width:100%!important;box-sizing:border-box;background:#fff!important;z-index:12}
#productsTable>table{width:max-content;max-width:none}
.table-wrap>#productsTable{width:100%!important;min-width:0!important;max-width:100%!important}
.products-table-panel #productsTable{min-width:0!important}

/* Product KPIs keep words intact on compact laptop and mobile cards. */
.product-economy-cards .card .label{
  overflow-wrap:normal!important;
  word-break:normal!important;
  hyphens:none!important;
  letter-spacing:.015em!important;
  line-height:1.28!important;
}

/* v0.65-polish3: карточка товара и сверка товарной прибыли */
.product-profile-actions .btn,.product-detail-actions .btn,.product-packaging-section .btn{min-height:40px;border-radius:10px;font-weight:700;box-shadow:none}
.product-profile-actions .btn:hover,.product-detail-actions .btn:hover,.product-packaging-section .btn:hover{transform:translateY(-1px)}
.product-detail-topbar{align-items:center;gap:12px}.product-detail-topbar #backToProducts{flex:0 0 auto;min-width:112px}
.profit-reconciliation{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin-top:12px;padding:12px;border:1px solid var(--line);border-radius:12px;background:var(--surface-soft)}
.profit-reconciliation>div{display:flex;flex-direction:column;gap:3px;min-width:0}.profit-reconciliation span{font-size:12px;color:var(--muted)}.profit-reconciliation b{font-size:16px;font-variant-numeric:tabular-nums}.profit-reconciliation small{font-size:11px;color:var(--muted);line-height:1.35}.profit-reconciliation .warn b{color:var(--warning,#b45309)}
@media(max-width:760px){.product-profile-card{flex-direction:column}.product-profile-actions{width:100%;flex-wrap:wrap}.product-current-price{align-items:flex-start}.profit-reconciliation{grid-template-columns:1fr}.product-detail-grid.two-products{grid-template-columns:1fr}.product-detail-topbar{align-items:stretch;flex-direction:column}.product-detail-topbar #backToProducts{align-self:flex-start}}

/* v0.65-polish3: product image fallback and warehouse labels */
.product-stock-row>div{display:flex;flex-direction:column;gap:2px;min-width:0}
.product-stock-row>div>span{font-weight:500;color:var(--muted)}


/* ===== settings-auth.css ===== */
/* v0.65-settings-auth — registration verification, settings and team access */
.register-verification-step{display:grid;gap:15px;text-align:center;padding-top:4px}.verification-icon{width:54px;height:54px;margin:0 auto;display:grid;place-items:center;border-radius:16px;background:#f0efff;color:#5a4bd8;font-size:25px}.register-verification-step h3{margin:0;font-size:20px}.register-verification-step .auth-field{text-align:left}.register-verification-step #registrationCode{height:54px;text-align:center;font-size:24px;font-weight:750;letter-spacing:8px;font-variant-numeric:tabular-nums}.verification-actions{display:flex;justify-content:center;gap:8px;flex-wrap:wrap}.verification-actions .btn{min-height:36px!important;padding:7px 10px!important}.email-verification-status{display:flex;align-items:center;gap:12px;padding:13px 14px;margin-bottom:16px;border:1px solid #b7e4d2;background:#f1fbf7;border-radius:12px}.email-verification-status>span{width:32px;height:32px;display:grid;place-items:center;border-radius:10px;background:#d9f5e8;color:#087a55;font-weight:800}.email-verification-status b,.email-verification-status small{display:block}.email-verification-status small{margin-top:3px;color:#667085}.email-verification-status.is-unverified{border-color:#fed7aa;background:#fff9f1}.email-verification-status.is-unverified>span{background:#ffedd5;color:#b45309}.email-verification-status.is-unverified b:after{content:' не';white-space:pre}

.settings-shell{display:grid;gap:14px}.settings-hero-modern{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-bottom:0!important;background:linear-gradient(135deg,#fff 0,#fbfaff 100%)}.settings-hero-modern h3{font-size:21px!important;margin:4px 0 5px!important}.settings-health{display:flex;align-items:center;gap:10px;min-width:240px;max-width:360px;padding:12px 14px;border:1px solid #e6e4f5;border-radius:12px;background:#fff}.settings-health b,.settings-health small{display:block}.settings-health small{margin-top:2px;color:#667085;font-size:12px}.settings-health.is-good{border-color:#b7e4d2;background:#f5fcf9}.settings-health.is-warn{border-color:#fed7aa;background:#fffaf3}.settings-tabs{display:flex;gap:5px;padding:5px;border:1px solid #e6e7ee;background:#fff;border-radius:13px;overflow:auto;scrollbar-width:none}.settings-tabs::-webkit-scrollbar{display:none}.settings-tabs button{flex:0 0 auto;min-height:38px;padding:8px 13px;border:0;border-radius:9px;background:transparent;color:#667085;font:inherit;font-size:13px;font-weight:700;cursor:pointer;white-space:nowrap}.settings-tabs button:hover{background:#f7f7fb;color:#344054}.settings-tabs button.active{background:#efedff;color:#4b3fc5;box-shadow:inset 0 0 0 1px #d9d5ff}.settings-pane{display:none;gap:14px}.settings-pane.active{display:grid}.settings-grid-modern{display:grid;grid-template-columns:minmax(0,1.25fr) minmax(330px,.75fr);gap:14px}.settings-card-modern{margin-bottom:0!important}.settings-card-modern .panel-head{gap:16px;align-items:flex-start}.settings-card-icon{flex:0 0 auto;min-width:38px;height:38px;padding:0 8px;display:grid;place-items:center;border-radius:11px;background:#f1efff;color:#5a4bd8;font-size:12px;font-weight:800}.settings-form-modern label{font-size:12.5px!important;font-weight:650;color:#475467!important}.settings-form-modern input,.settings-form-modern select{margin-top:1px}.settings-actions-row{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin-top:15px}.settings-actions-row>div{flex:1 1 220px}.settings-cabinet-list{display:grid;gap:12px}.settings-cabinet-card{padding:17px;border:1px solid #e4e6ed;border-radius:14px;background:#fff;box-shadow:0 5px 16px rgba(16,24,40,.035)}.settings-cabinet-card-head{display:flex;align-items:center;gap:11px}.settings-cabinet-card-head>div:nth-child(2){min-width:0;flex:1}.settings-cabinet-card-head h4{margin:0;font-size:15px;overflow-wrap:anywhere}.settings-cabinet-card-head span:not(.pill){display:block;margin-top:2px;color:#98a2b3;font-size:11.5px}.settings-cabinet-avatar{width:39px;height:39px;display:grid;place-items:center;border-radius:11px;background:linear-gradient(135deg,#7857e8,#b34ee1);color:#fff;font-size:11px;font-weight:800}.settings-cabinet-facts{display:grid;grid-template-columns:1.4fr .8fr .8fr;gap:10px;margin:14px 0}.settings-cabinet-facts>span{min-width:0;padding:10px 11px;border-radius:10px;background:#f8f9fb}.settings-cabinet-facts small,.settings-cabinet-facts b{display:block}.settings-cabinet-facts small{margin-bottom:4px;color:#98a2b3;font-size:10.5px;text-transform:uppercase;letter-spacing:.04em}.settings-cabinet-facts b{font-size:12.5px;line-height:1.4;overflow-wrap:anywhere}.settings-cabinet-actions{display:flex;gap:8px;flex-wrap:wrap}.tax-settings-note{margin:12px 0 0}.tax-cost-check{align-self:end;min-height:42px!important;padding:9px 11px;border:1px solid #e4e6ed;border-radius:10px;background:#fafafa}

.api-wizard-layout{display:grid;grid-template-columns:minmax(0,1.1fr) minmax(340px,.9fr);gap:14px}.api-guide-panel,.api-connect-panel{margin-bottom:0!important}.api-guide-visual{margin:14px 0}.api-guide-browser{overflow:hidden;border:1px solid #dddfea;border-radius:13px;background:#fff;box-shadow:0 8px 24px rgba(16,24,40,.06)}.api-guide-browser-top{display:flex;align-items:center;gap:5px;height:34px;padding:0 10px;background:#f4f5f8;border-bottom:1px solid #e6e7ec}.api-guide-browser-top i{width:7px;height:7px;border-radius:50%;background:#c8ccd6}.api-guide-browser-top span{margin-left:7px;color:#667085;font-size:10.5px}.api-guide-browser-body{display:grid;grid-template-columns:118px minmax(0,1fr);min-height:180px}.api-guide-browser-body aside{display:flex;flex-direction:column;gap:5px;padding:13px 9px;background:#fafafb;border-right:1px solid #ebecf0}.api-guide-browser-body aside b,.api-guide-browser-body aside span{padding:7px 8px;border-radius:7px;font-size:10.5px}.api-guide-browser-body aside span{color:#667085}.api-guide-browser-body aside .active{background:#ece9ff;color:#5144c4;font-weight:700}.api-guide-browser-body main{display:block!important;margin:0!important;padding:14px!important;min-height:auto!important}.api-guide-title{display:flex;align-items:center;justify-content:space-between;gap:8px}.api-guide-title b{font-size:12px}.api-guide-title button{border:0;border-radius:8px;background:#5a4bd8;color:#fff;padding:7px 9px;font-size:9.5px;font-weight:700}.api-guide-token{display:grid;gap:5px;margin-top:26px;padding:14px;border:1px solid #e1dfff;border-radius:10px;background:#fbfaff}.api-guide-token span,.api-guide-token small{font-size:9.5px;color:#667085}.api-guide-token b{font-size:12px}.api-guide-steps{display:grid;gap:9px;margin:15px 0;padding-left:22px}.api-guide-steps li{padding-left:3px;font-size:12.5px;line-height:1.45;color:#475467}.official-wb-link{width:100%;margin-top:4px}.api-connect-steps{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:5px;margin:4px 0 16px}.api-connect-steps span{padding:8px 7px;border-radius:8px;background:#f7f7fa;color:#98a2b3;text-align:center;font-size:10.5px;font-weight:700}.api-connect-steps .active{background:#eeecff;color:#5447ca}.api-form-modern{display:grid!important;grid-template-columns:1fr!important}.api-primary-actions{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:14px}.api-help-small{width:100%;margin-top:8px}.api-token-status{margin:8px 0!important}.api-token-head{display:flex;justify-content:space-between;gap:12px;align-items:flex-start}.api-token-head>div{min-width:0;overflow-wrap:anywhere}.sync-status-list{display:grid;gap:7px;margin-top:10px}.sync-line{display:flex;align-items:center;gap:8px;flex-wrap:wrap;padding:10px 11px;border:1px solid #ececf1;border-radius:10px;background:#fafafa;font-size:12px}.sync-line .small-muted,.sync-line .sync-error{flex-basis:100%;padding-left:17px}.sync-error{color:#b42318}.api-check-list{display:grid;gap:6px;margin-top:9px;font-size:12px}

.billing-current-card{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:12px 22px;align-items:center;margin-bottom:0!important;background:linear-gradient(135deg,#fff,#f8f7ff)}.billing-current-title{display:flex;align-items:center;gap:9px;flex-wrap:wrap}.billing-current-title h3{margin:3px 0!important;font-size:20px!important}.billing-current-main p{margin:5px 0 0;color:#667085;font-size:12.5px}.billing-current-days{text-align:right}.billing-current-days strong,.billing-current-days span{display:block}.billing-current-days strong{font-size:26px;color:#4f43c5;font-variant-numeric:tabular-nums}.billing-current-days span{font-size:11.5px;color:#667085}.billing-current-limits{grid-column:1/-1;display:flex;gap:7px;flex-wrap:wrap}.billing-current-limits span{padding:6px 9px;border-radius:8px;background:#f1f0f7;color:#475467;font-size:11.5px}.billing-plan-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:11px}.billing-plan-card{position:relative;display:flex;flex-direction:column;gap:13px;min-width:0;padding:16px;border:1px solid #e4e5ec;border-radius:13px;background:#fff}.billing-plan-card.featured{border-color:#9f96ee;background:#fbfaff;box-shadow:0 8px 24px rgba(90,75,216,.08)}.billing-plan-badge{position:absolute;right:10px;top:10px;padding:4px 7px;border-radius:999px;background:#e8e5ff;color:#5144c4;font-size:9.5px;font-weight:800}.billing-plan-card>div>span{display:block;padding-right:56px;color:#667085;font-size:12px;font-weight:700}.billing-plan-card h4{margin:7px 0 3px;font-size:22px}.billing-plan-card small{color:#667085;font-size:11px}.billing-plan-card ul{display:grid;gap:5px;margin:0;padding:0;list-style:none;color:#475467;font-size:11.5px}.billing-plan-card li:before{content:'✓';margin-right:6px;color:#0f9f6e;font-weight:800}.billing-plan-card .btn{margin-top:auto;width:100%}

.team-wizard-card{gap:13px!important}.team-wizard-progress{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:5px;margin:2px 0 5px}.team-wizard-progress button{display:flex;align-items:center;justify-content:center;gap:6px;min-width:0;min-height:40px;padding:7px;border:1px solid #e4e5eb;border-radius:9px;background:#fff;color:#667085;font:inherit;font-size:10.5px;font-weight:700;cursor:pointer;overflow-wrap:anywhere}.team-wizard-progress button span{flex:0 0 auto;width:20px;height:20px;display:grid;place-items:center;border-radius:50%;background:#f1f2f5;font-size:9px}.team-wizard-progress button.active{border-color:#9f96ee;background:#f4f2ff;color:#5144c4}.team-wizard-progress button.active span,.team-wizard-progress button.done span{background:#5a4bd8;color:#fff}.team-wizard-progress button.done{color:#5144c4}.team-wizard-step{display:none}.team-wizard-step.active{display:grid;gap:13px}.team-step-intro{display:grid;gap:4px;padding:12px 13px;border-radius:11px;background:#f8f8fb}.team-step-intro b{font-size:13.5px}.team-step-intro span{color:#667085;font-size:12px;line-height:1.45}.team-person-grid{display:grid;grid-template-columns:1fr 1fr;gap:11px}.team-master-toggle,.team-permission-option{display:flex!important;align-items:flex-start!important;gap:10px!important;color:#344054!important}.team-master-toggle input,.team-permission-option input{flex:0 0 auto;margin-top:2px}.team-all-cabinets-card{padding:13px;border:1px solid #dddfea;border-radius:11px;background:#fff}.team-all-cabinets-card b,.team-all-cabinets-card small,.team-permission-option b,.team-permission-option small{display:block}.team-all-cabinets-card small,.team-permission-option small{margin-top:3px;color:#667085;font-size:11.5px;line-height:1.4}.team-cabinet-permissions,.team-permission-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.team-section-groups{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.team-permission-group{padding:12px;border:1px solid #e3e4ea;border-radius:11px;background:#fff}.team-permission-group-head{display:flex;justify-content:space-between;gap:8px;margin-bottom:9px}.team-permission-group-head b{font-size:12.5px}.team-permission-group-head button{border:0;background:transparent;color:#5a4bd8;font-size:10.5px;font-weight:700;cursor:pointer}.team-permission-group-list{display:grid;gap:7px}.team-permission-option{padding:10px;border:1px solid #ececf1;border-radius:9px;background:#fafafa}.team-group-actions{display:flex;gap:8px;flex-wrap:wrap}.team-access-section{padding:13px;border:1px solid #e3e4ea;border-radius:12px;background:#fff}.team-access-section.sensitive{border-color:#f3d4b7;background:#fffbf6}.team-access-section-head{margin-bottom:11px}.team-access-section-head b,.team-access-section-head span{display:block}.team-access-section-head span{margin-top:3px;color:#667085;font-size:11.5px}.team-access-summary{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.team-summary-person{grid-column:1/-1;padding:13px;border-radius:11px;background:#f1efff}.team-summary-person b,.team-summary-person span{display:block}.team-summary-person span{margin-top:3px;color:#667085;font-size:12px}.team-access-summary section{padding:11px;border:1px solid #e5e6eb;border-radius:10px}.team-access-summary section>b{display:block;margin-bottom:7px;font-size:12px}.team-access-summary section>div{display:flex;gap:5px;flex-wrap:wrap}.team-access-summary section span{padding:5px 7px;border-radius:7px;background:#f2f3f6;color:#475467;font-size:10.5px}.team-invite-result{display:grid;gap:8px;padding:13px;border:1px solid #b7e4d2;border-radius:11px;background:#f4fcf8}.team-invite-result>span{color:#475467;font-size:12px}.team-link-row{display:flex;gap:7px}.team-link-row input{min-width:0;flex:1}.team-modal-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap;padding-top:4px;border-top:1px solid #ececf1}.team-modal-actions>div{flex:1 1 100%;margin:0}.team-security-note{display:none!important}

@media(max-width:1050px){.settings-grid-modern,.api-wizard-layout{grid-template-columns:1fr}.billing-plan-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.settings-cabinet-facts{grid-template-columns:1fr 1fr}.team-wizard-progress button{font-size:0}.team-wizard-progress button span{font-size:10px}}
@media(max-width:700px){.settings-hero-modern{align-items:flex-start;flex-direction:column}.settings-health{width:100%;min-width:0;max-width:none}.settings-tabs{margin-left:-2px;margin-right:-2px}.settings-tabs button{font-size:12px;padding-left:10px;padding-right:10px}.settings-grid-modern{grid-template-columns:1fr}.settings-cabinet-facts{grid-template-columns:1fr}.settings-cabinet-actions .btn{flex:1 1 100%}.api-guide-browser-body{grid-template-columns:92px minmax(0,1fr)}.api-guide-browser-body aside{padding:10px 6px}.api-guide-browser-body aside b,.api-guide-browser-body aside span{font-size:9px;padding:6px}.api-primary-actions{grid-template-columns:1fr}.billing-current-card{grid-template-columns:1fr}.billing-current-days{text-align:left;display:flex;align-items:baseline;gap:7px}.billing-current-limits{grid-column:1}.billing-plan-grid{grid-template-columns:1fr}.team-wizard-progress{grid-template-columns:repeat(5,1fr)}.team-wizard-progress button{min-height:34px;padding:5px}.team-person-grid,.team-cabinet-permissions,.team-permission-grid,.team-section-groups,.team-access-summary{grid-template-columns:1fr}.team-summary-person{grid-column:1}.team-link-row{flex-direction:column}.team-link-row .btn{width:100%}.verification-actions{display:grid;grid-template-columns:1fr}.register-verification-step #registrationCode{font-size:22px;letter-spacing:6px}}
/* Align generated team editor class names with the design system. */
.team-section-group{padding:12px;border:1px solid #e3e4ea;border-radius:11px;background:#fff}.team-section-group>div:first-child{display:flex;justify-content:space-between;gap:8px;align-items:center;margin-bottom:9px}.team-section-group>div:first-child>b{font-size:12.5px}.team-section-group>div:first-child>button{border:0;background:transparent;color:#5a4bd8;font-size:10.5px;font-weight:700;cursor:pointer}.team-permission-item,.team-cabinet-item{display:flex!important;align-items:flex-start!important;gap:10px!important;padding:10px;border:1px solid #ececf1;border-radius:9px;background:#fafafa;color:#344054!important}.team-permission-item input,.team-cabinet-item input{flex:0 0 auto;margin-top:2px}.team-permission-item b,.team-permission-item small,.team-cabinet-item b,.team-cabinet-item small{display:block}.team-permission-item small,.team-cabinet-item small{margin-top:3px;color:#667085;font-size:11.5px;line-height:1.4}.team-permission-switch{display:none}
.settings-field-hint{display:block;margin-top:4px;color:#98a2b3;font-size:10.5px;line-height:1.35}.settings-form-modern input[readonly]{background:#f7f7f9;color:#667085;cursor:not-allowed}.billing-plan-card h4{overflow-wrap:anywhere}

/* v0.67 — active account sessions */
.security-sessions-block{margin-top:18px;padding-top:16px;border-top:1px solid #ececf1}.security-sessions-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin-bottom:10px}.security-sessions-head h4{margin:0;font-size:14px}.security-sessions-head p{margin:3px 0 0}.security-session-list{display:grid;gap:8px}.security-session-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px;align-items:center;padding:11px 12px;border:1px solid #e5e7ed;border-radius:11px;background:#fafafa}.security-session-row.is-current{border-color:#c8c2ff;background:#f8f7ff}.security-session-device{min-width:0}.security-session-device b,.security-session-device span{display:block}.security-session-device b{font-size:12.5px;overflow-wrap:anywhere}.security-session-device span{margin-top:3px;color:#667085;font-size:10.5px;line-height:1.4}.security-session-meta{display:flex;gap:5px;flex-wrap:wrap;margin-top:7px}.security-session-meta i{font-style:normal;padding:4px 6px;border-radius:7px;background:#eef0f4;color:#475467;font-size:9.5px}.security-session-row.is-current .security-session-meta i:first-child{background:#e7e4ff;color:#5144c4}.security-session-row .btn{white-space:nowrap}@media(max-width:700px){.security-sessions-head{align-items:stretch;flex-direction:column}.security-sessions-head .btn{width:100%}.security-session-row{grid-template-columns:1fr}.security-session-row .btn{width:100%}}

.auth-forgot-btn{margin-top:-5px}.auth-form#passwordResetForm>div{display:grid;gap:13px}.auth-form#passwordResetForm>div[hidden]{display:none}.auth-form#passwordResetForm .register-verification-step{padding-top:0}

/* v0.67-hardening2 — delayed account deletion */
.account-deletion-card{border-color:#f0c7c2!important;background:linear-gradient(135deg,#fff,#fff8f7)}.account-deletion-icon{background:#fff0ee!important;color:#b42318!important}.account-deletion-card .panel-head{margin-bottom:12px}.account-deletion-state{display:grid;gap:8px;padding:12px 13px;border:1px solid #efd5d1;border-radius:11px;background:#fff}.account-deletion-state.pending{border-color:#f5c46b;background:#fffaf0}.account-deletion-state b{font-size:13px}.account-deletion-state span,.account-deletion-state small{color:#667085;font-size:11.5px;line-height:1.45}.account-deletion-facts{display:flex;gap:6px;flex-wrap:wrap}.account-deletion-facts i{font-style:normal;padding:5px 7px;border-radius:8px;background:#f2f3f6;color:#475467;font-size:10.5px}.account-deletion-modal-card{width:min(560px,calc(100vw - 28px));display:grid;gap:13px}.account-deletion-modal-card label{display:grid;gap:7px;font-size:12.5px;font-weight:700}.account-deletion-warning{border-color:#f0b8b1!important;background:#fff6f5!important;color:#7a271a!important}@media(max-width:700px){.account-deletion-card .settings-actions-row .btn{width:100%}.account-deletion-modal-card{width:calc(100vw - 20px)}}


/* ===== hardening.css ===== */
/* v0.65-hardening1: final accessibility, subscription and mobile-table layer. */
.subscription-gate-banner{margin:12px 22px 0;padding:14px 16px;border:1px solid #f5c06a;background:#fff8e8;border-radius:14px;display:flex;align-items:center;justify-content:space-between;gap:16px;color:#6b4300}
.subscription-gate-banner[hidden]{display:none!important}.subscription-gate-banner div{display:grid;gap:3px}.subscription-gate-banner span{font-size:12.5px;color:#805b1d}
.small-muted,.panel-subtitle,.table-result-meta,.field-help,.help-text{font-size:clamp(11.5px,.82rem,13px)}
.sort-header{min-height:36px;width:100%;padding-block:7px}.sort-header .table-header-text{font-size:12px;line-height:1.25}.table-columns-button{min-height:38px}
.supply-refresh-row{display:flex;justify-content:flex-end;margin-bottom:10px}
@media(max-width:640px){
  .subscription-gate-banner{margin:8px 12px 0;align-items:stretch;flex-direction:column}.subscription-gate-banner .btn{width:100%;min-height:44px}
  .settings-tabs{overflow-x:auto;scroll-snap-type:x proximity;padding-bottom:4px}.settings-tabs>[data-settings-tab]{flex:0 0 auto;scroll-snap-align:start;min-height:44px}
  .smart-table-toolbar[data-table-toolbar="reports"],.smart-table-toolbar[data-table-toolbar="expenses"],.smart-table-toolbar[data-table-toolbar="control"],.smart-table-toolbar[data-table-toolbar="team-members"]{display:none!important}
  table[data-table-key="reports"],table[data-table-key="expenses"],table[data-table-key="control"],table[data-table-key="team-members"]{display:block!important;width:100%!important;min-width:0!important;table-layout:auto!important;background:transparent;border:0}
  table[data-table-key="reports"] colgroup,table[data-table-key="expenses"] colgroup,table[data-table-key="control"] colgroup,table[data-table-key="team-members"] colgroup,
  table[data-table-key="reports"] thead,table[data-table-key="expenses"] thead,table[data-table-key="control"] thead,table[data-table-key="team-members"] thead{display:none!important}
  table[data-table-key="reports"] tbody,table[data-table-key="expenses"] tbody,table[data-table-key="control"] tbody,table[data-table-key="team-members"] tbody{display:grid!important;gap:10px;width:100%}
  table[data-table-key="reports"] tr,table[data-table-key="expenses"] tr,table[data-table-key="control"] tr,table[data-table-key="team-members"] tr{display:grid!important;width:100%;min-width:0;border:1px solid #e6e9f0;border-radius:14px;background:#fff;box-shadow:0 3px 12px rgba(15,23,42,.04);padding:7px 12px}
  table[data-table-key="reports"] td,table[data-table-key="expenses"] td,table[data-table-key="control"] td,table[data-table-key="team-members"] td{display:grid!important;grid-template-columns:minmax(105px,38%) minmax(0,1fr);align-items:start;gap:12px;width:100%!important;min-width:0!important;max-width:none!important;padding:9px 0!important;border:0!important;border-bottom:1px solid #eef0f5!important;text-align:left!important;white-space:normal!important;overflow:visible!important;overflow-wrap:anywhere;font-size:13px;line-height:1.35}
  table[data-table-key="reports"] td:last-child,table[data-table-key="expenses"] td:last-child,table[data-table-key="control"] td:last-child,table[data-table-key="team-members"] td:last-child{border-bottom:0!important}
  table[data-table-key="reports"] td::before,table[data-table-key="expenses"] td::before,table[data-table-key="control"] td::before,table[data-table-key="team-members"] td::before{content:attr(data-label);font-size:11.5px;font-weight:650;color:#667085;line-height:1.35}
  table[data-table-key="reports"] td>* ,table[data-table-key="expenses"] td>* ,table[data-table-key="control"] td>* ,table[data-table-key="team-members"] td>*{max-width:100%;min-width:0;overflow-wrap:anywhere}
  table[data-table-key="reports"] .row-actions,table[data-table-key="expenses"] .row-actions,table[data-table-key="control"] .row-actions,table[data-table-key="team-members"] .row-actions{justify-content:flex-start;flex-wrap:wrap}
}

/* Readability floor: keep compact cards, but never make meaningful text microscopic. */
.help-tip{width:19px!important;height:19px!important;flex-basis:19px!important;font-size:11.5px!important}
.summary-card-secondary,.metric-comparison,.card small,.metric-card small,.summary-metric-card small{font-size:11.5px!important;line-height:1.4!important}
.label-with-tip,.card .label,.metric-card .label,.summary-metric-card .label{font-size:11.75px!important;line-height:1.32!important}
.period-chip,.sort-mark,.section-tab em,.entity-tab em,.view-switch em,
.table-columns-button small,.settings-field-hint,.data-freshness,.sync-compact,
.order-product span,.product-name-link span,.range-trigger>span:first-child,
#summaryPeriodLabel,#ordersPeriodLabel,#productsPeriodLabel,#reportsPeriodLabel,#expensesPeriodLabel,
#advertisingPeriodLabel,#growthPeriodLabel{font-size:11.5px!important}
.summary-trust-title small,.summary-trust-items small,.summary-mode-tab small,
.profit-route-node>span,.profit-route-node>small,.month-forecast-head span:first-child,
.forecast-confidence,.month-forecast-grid span,.month-forecast-grid small,
.month-forecast-panel>p,.month-forecast-empty span,.month-forecast-empty p{font-size:11.5px!important;line-height:1.4!important}
.summary-data-trust>small,.summary-data-trust small{font-size:11.5px!important}
.tab-count,[id$="Count"]{font-size:11.5px!important}
.settings-check small,.api-access-note span,.workspace-select small{font-size:11.5px!important;line-height:1.4!important}
@media(max-width:640px){
  .card .label,.metric-card .label,.summary-metric-card .label,.label-with-tip{font-size:11.5px!important}
  .period-chip{font-size:11.75px!important}
  .products-wide-table td::before{font-size:11.5px!important}
}
#teamMembers{max-width:100%;overflow-x:auto;overscroll-behavior-inline:contain;padding-bottom:3px}
.profit-route-operator span,.profit-route-breakdown-title span,.profit-route-warning,
.summary-product-tab,.summary-product-rank-number{font-size:11.5px!important}
.range-trigger span,.range-summary span{font-size:11.5px}
@media(max-width:640px){#teamMembers{overflow-x:visible;padding-bottom:0}}


/* ===== polish2.css ===== */
/* v0.65-polish2 — unified visual polish */
:root{--p2-radius:12px;--p2-control-h:40px;--p2-border:#e2e5ec;--p2-muted:#667085;--p2-brand:#5b4bd8;--p2-soft:#f2f0ff}
.topbar{min-height:72px!important;padding:10px 18px!important;align-items:center!important}.topbar-heading{gap:1px!important}.topbar-heading h2{font-size:23px!important}.topbar-heading p{font-size:12px!important;margin-top:1px!important}.page-eyebrow{font-size:10px!important}.top-actions{align-items:center!important;gap:8px!important;flex-wrap:nowrap!important}.topbar-selector{height:var(--p2-control-h)!important;min-height:var(--p2-control-h)!important;border:1px solid var(--p2-border)!important;border-radius:10px!important;background:#fff!important;padding:3px 9px!important;display:grid!important;grid-template-rows:11px 18px!important;align-content:center!important}.topbar-selector-label{font-size:9.5px!important;line-height:1!important;color:#7b8495!important}.topbar-selector select{height:19px!important;min-height:19px!important;padding:0 24px 0 0!important;border:0!important;border-radius:0!important;background-color:transparent!important;font-size:12.5px!important;font-weight:750!important}.topbar-logout,.notification-bell{height:var(--p2-control-h)!important;min-height:var(--p2-control-h)!important;border-radius:10px!important}.topbar-logout{padding:0 12px!important}.notification-bell{width:40px!important}.notification-count{min-width:15px!important;height:15px!important;right:-3px!important;top:-3px!important;padding:0 3px!important;border-width:1.5px!important;font-size:8px!important;line-height:12px!important}
.summary-mode-tabs{display:grid!important;grid-template-columns:minmax(260px,1fr) 54px minmax(260px,1fr)!important;align-items:stretch!important;gap:0!important}.summary-mode-connector{display:flex;align-items:center;justify-content:center;gap:4px;color:#8176dd}.summary-mode-connector i{height:1px;flex:1;background:linear-gradient(90deg,transparent,#b7b0ed)}.summary-mode-connector i:last-child{background:linear-gradient(90deg,#b7b0ed,transparent)}.summary-mode-connector b{display:grid;place-items:center;width:30px;height:30px;border:1px solid #d9d5fa;border-radius:50%;background:#faf9ff;font-size:15px;box-shadow:0 4px 12px rgba(91,75,216,.1)}.summary-mode-tab{min-height:68px!important;border:1px solid #dfe2eb!important;border-radius:13px!important;background:#fff!important}.summary-mode-tab.active{border-color:#7669e9!important;background:linear-gradient(135deg,#f4f2ff,#fff)!important;box-shadow:0 7px 20px rgba(91,75,216,.13)!important}.summary-mode-tab:not(.active){opacity:.78}.summary-mode-tab:hover{opacity:1;transform:translateY(-1px)}.summary-mode-tab .summary-mode-arrow{display:none!important}
.profit-route-operator{min-width:30px}.profit-route-operator span{display:none!important}
/* unified KPI cards */
.cards .card,.summary-dashboard-card,.metric-card{position:relative!important;min-height:92px!important;padding:13px 14px!important;border:1px solid #e5e7ee!important;border-radius:13px!important;background:#fff!important;box-shadow:0 5px 16px rgba(27,35,58,.055)!important;align-content:center!important}.cards .card:before,.summary-dashboard-card:before{width:28px!important;height:28px!important;font-size:13px!important;border-radius:9px!important}.cards .card>span,.summary-dashboard-card .summary-card-label{font-size:11.75px!important;line-height:1.25!important;align-items:center!important;margin:0!important}.cards .card>b,.summary-dashboard-card .summary-card-value{font-size:20px!important;line-height:1.12!important;margin-top:5px!important}.help-tip{width:17px!important;height:17px!important;min-width:17px!important;font-size:10px!important;vertical-align:middle!important}.summary-card-delta,.card-delta,.metric-delta{font-size:11.5px!important;font-weight:750!important}.positive,.delta-positive{color:#087a55!important}.negative,.delta-negative{color:#c43232!important}.neutral,.delta-neutral{color:#667085!important}
/* tabs */
.section-tabs,.products-hub-tabs,.view-switcher,.planning-main-tabs{gap:5px!important;padding:5px!important;border:1px solid #e0e3eb!important;border-radius:12px!important;background:#f7f8fb!important}.section-tab,.products-hub-tab,.view-switch,.planning-main-tab{min-height:42px!important;padding:9px 15px!important;border-radius:9px!important;font-size:13.5px!important;font-weight:750!important}.section-tab.active,.products-hub-tab.active,.view-switch.active,.planning-main-tab.active{background:#fff!important;color:#4f42c8!important;box-shadow:0 3px 10px rgba(34,40,70,.09)!important;border-color:#d8d3fa!important}.products-hub-header{align-items:flex-end!important;gap:18px!important}.products-hub-tabs{flex:0 0 auto!important}.products-hub-tab{min-width:142px!important}.products-hub-pane:not(.active){display:none!important}.products-catalog-actions{gap:10px!important}.products-catalog-actions>div:last-child{display:flex;gap:8px;flex-wrap:wrap}.product-filter-bar{margin-bottom:10px!important}
/* tables */
.smart-table-toolbar{min-height:40px!important;padding:0 2px 7px!important}.table-scroll-actions{display:none!important}.table-resize-hint{margin-left:auto;color:#8a93a3;font-size:11.5px}.table-th-inner{display:flex;align-items:center;gap:5px;min-height:28px;width:100%}.table-th-inner>.sort-header,.table-th-inner>.table-header-label{flex:1;min-width:0}.column-grip{flex:0 0 17px!important;width:17px!important;min-width:17px!important;min-height:29px!important;border:0!important;background:transparent!important;color:#a4aabb!important;padding:0!important;cursor:grab!important;font-size:13px!important;opacity:.5}.column-grip:hover{opacity:1;color:#6355d6}.column-resizer{display:block!important;right:-4px!important;width:9px!important}.column-resizer:after{left:4px!important;top:10%!important;bottom:10%!important}.table-cell-center{text-align:center!important;vertical-align:middle!important}.table-cell-center .pill,.table-cell-center .status{margin-inline:auto}.table-wrap table td,.smart-scroll-table table td{vertical-align:middle!important}.table-header-text{font-size:12.5px!important;line-height:1.25!important}.sort-header{min-height:34px!important;justify-content:center!important}.sort-mark{flex:0 0 auto}.orders-table .table-cell-center{font-variant-numeric:tabular-nums}.order-product .product-card-link{width:100%}.product-card-link{border-radius:9px!important}.product-card-link:hover{background:#f6f4ff!important}
.order-tabs,.orders-period-tabs{gap:6px!important}.order-tabs button,.orders-period-tabs button,[data-order-tab],[data-order-quick]{min-height:40px!important;padding:9px 16px!important;font-size:13.5px!important;border-radius:10px!important}
/* shipment */
.shipment-sheet-header{align-items:center!important}.shipment-sheet-fields{align-items:end!important}.shipment-sheet-fields label,.shipment-warehouse-field{font-size:11.5px!important}.shipment-sheet-fields input,.shipment-sheet-fields select,.shipment-warehouse-field input{height:42px!important}.shipment-warehouse-panel{align-items:end!important}.shipment-add-product-panel{grid-template-columns:minmax(220px,.65fr) minmax(0,1.35fr)!important;align-items:center!important}.shipment-add-product-controls{display:grid!important;grid-template-columns:minmax(320px,1fr) 130px auto!important;align-items:end!important;gap:8px!important}.shipment-product-picker{position:relative;min-width:0}.shipment-product-picker>input{width:100%;height:42px}.shipment-product-results{display:none;position:absolute;z-index:80;left:0;right:0;top:calc(100% + 5px);max-height:350px;overflow:auto;padding:6px;border:1px solid #dfe2ea;border-radius:12px;background:#fff;box-shadow:0 16px 40px rgba(24,32,60,.18)}.shipment-product-results.open{display:grid}.shipment-product-results button{display:grid;grid-template-columns:40px minmax(0,1fr);align-items:center;gap:9px;width:100%;padding:8px;border:0;border-radius:9px;background:transparent;text-align:left;cursor:pointer}.shipment-product-results button:hover{background:#f5f3ff}.shipment-product-results img,.shipment-picker-placeholder{width:40px;height:40px;border-radius:8px;object-fit:cover;display:grid;place-items:center;background:#f0eff7;color:#6b5ed3;font-size:10px;font-weight:800}.shipment-product-results b{display:block;font-size:12.5px}.shipment-product-results small{display:block;margin-top:3px;color:#667085;font-size:10.75px;line-height:1.35}.shipment-picker-empty{padding:16px;text-align:center;color:#667085}.shipment-save-btn{background:linear-gradient(135deg,#5f50df,#4939bd)!important;color:#fff!important;border-color:transparent!important;box-shadow:0 6px 16px rgba(85,68,207,.25)!important}.shipment-save-btn.is-dirty:after{content:'•';margin-left:7px;color:#ffd166}.shipment-plan-grid,.shipment-builder-grid{align-items:start!important}.shipment-product-row,.shipment-package-card{align-items:center!important}.shipment-pallet-box-add{padding-top:8px;border-top:1px dashed #e2e4ea}.shipment-pallet-box-add select{min-width:250px}
/* advertising */
.ad-products-action-bar{margin-top:8px!important}.campaign-details-stack{display:grid;gap:14px}.campaign-details-stack>.panel{min-width:0}.campaign-page-grid,.campaign-details-grid{grid-template-columns:1fr!important}.adCampaignProductsTable,.adCampaignQueriesTable{min-width:0}.ad-products-toolbar{display:none!important}
.search-visibility-panel>summary,.api-instruction-details>summary{display:flex;align-items:center;justify-content:space-between;gap:12px;cursor:pointer;list-style:none}.search-visibility-panel>summary::-webkit-details-marker,.api-instruction-details>summary::-webkit-details-marker{display:none}.search-visibility-panel>summary span,.api-instruction-details>summary span{display:grid;gap:3px}.search-visibility-panel>summary small,.api-instruction-details>summary small{font-weight:500;color:#667085}.search-visibility-panel[open]>summary i,.api-instruction-details[open]>summary i{transform:rotate(180deg)}.search-visibility-panel #searchSummary{margin-top:14px}.query-action-btn{min-width:132px!important;font-size:11.5px!important}
/* team */
.team-cabinet-permissions,.team-permission-grid{gap:8px!important}.team-cabinet-item,.team-permission-item,.team-master-toggle{min-height:0!important;padding:10px 11px!important;border:1px solid #e2e5ec!important;border-radius:11px!important;transition:.15s ease}.team-cabinet-item small,.team-permission-item small{font-size:11px!important;line-height:1.35!important}.team-cabinet-item.selected,.team-permission-item.selected,.team-master-toggle.selected,.team-cabinet-item:has(input:checked),.team-permission-item:has(input:checked),.team-master-toggle:has(input:checked){border-color:#796be8!important;background:#f4f2ff!important;box-shadow:0 0 0 2px rgba(91,75,216,.08)!important}.team-cabinet-item.selected:after,.team-permission-item.selected:after,.team-master-toggle.selected:after{content:'✓';display:grid;place-items:center;width:20px;height:20px;border-radius:50%;background:#5b4bd8;color:#fff;font-size:11px;font-weight:900}.team-wizard-step{min-height:300px}
/* settings API */
.api-wizard-single{display:block!important}.api-connect-primary{max-width:920px;margin:0 auto 14px!important}.api-connect-steps{grid-template-columns:repeat(3,minmax(0,1fr))!important}.api-instruction-details{margin-top:15px;border-top:1px solid #eceef3;padding-top:13px}.api-instruction-details>summary{padding:4px 2px}.api-instruction-body{padding-top:10px}.api-instruction-actions{display:flex;gap:8px;flex-wrap:wrap}.api-primary-actions{max-width:600px}.sync-line{align-items:center!important}
@media(max-width:900px){.topbar{min-height:66px!important}.topbar-heading p,.page-eyebrow{display:none!important}.top-actions{gap:5px!important}.topbar-selector{max-width:190px}.topbar-logout span{display:none}.topbar-logout{width:40px;padding:0!important}.summary-mode-tabs{grid-template-columns:1fr 40px 1fr!important}.shipment-add-product-panel{grid-template-columns:1fr!important}.shipment-add-product-controls{grid-template-columns:1fr 120px auto!important}}
@media(max-width:620px){.topbar{align-items:center!important;padding:8px 10px!important}.topbar-heading{min-width:90px}.topbar-heading h2{font-size:18px!important}.top-actions{overflow-x:auto;max-width:calc(100vw - 125px);padding-bottom:1px}.topbar-selector{min-width:145px;max-width:160px}.summary-mode-tabs{grid-template-columns:1fr!important;gap:6px!important}.summary-mode-connector{height:22px;transform:rotate(90deg)}.summary-mode-tab{min-height:61px!important}.table-resize-hint{display:none}.column-grip,.column-resizer{display:none!important}.products-hub-header{align-items:stretch!important}.products-hub-tabs{width:100%}.products-hub-tab{flex:1;min-width:0!important}.shipment-add-product-controls{grid-template-columns:1fr!important}.shipment-product-results{position:fixed;left:12px;right:12px;top:22%;max-height:55vh}.campaign-details-stack{gap:10px}.query-action-btn{min-width:116px!important}.api-connect-steps{grid-template-columns:1fr!important}.api-primary-actions{grid-template-columns:1fr!important}.cards .card,.summary-dashboard-card,.metric-card{min-height:84px!important;padding:11px 12px!important}.cards .card>b,.summary-dashboard-card .summary-card-value{font-size:18px!important}}

.shipment-product-row[draggable="true"]{cursor:grab}.shipment-product-row.is-dragging{opacity:.45}.shipment-package-card.is-drop-target{border-color:#6758df!important;box-shadow:0 0 0 3px rgba(91,75,216,.14),0 12px 30px rgba(44,37,120,.12)!important}.shipment-package-card.is-drop-target:before{content:'Отпустите товар, чтобы добавить';display:block;margin:-4px -4px 8px;padding:8px;border-radius:8px;background:#eeeaff;color:#5144c4;text-align:center;font-size:11.5px;font-weight:800}

/* final polish corrections */
.cards .card:before,.summary-dashboard-card:before,.metric-card:before{display:none!important}
.section-tab:focus,.products-hub-tab:focus,.view-switch:focus,.planning-main-tab:focus{outline:none!important}
.section-tab:focus-visible,.products-hub-tab:focus-visible,.view-switch:focus-visible,.planning-main-tab:focus-visible{box-shadow:0 0 0 3px rgba(91,75,216,.2)!important}
.notification-count{min-width:14px!important;height:14px!important;right:2px!important;top:2px!important;padding:0 2px!important;font-size:7.5px!important;line-height:11px!important}
.range-trigger{min-width:190px!important;padding-right:34px!important}
.sort-mark{opacity:.35;font-size:10px!important}.sort-header:hover .sort-mark,.sort-header[aria-sort]:not([aria-sort="none"]) .sort-mark{opacity:1}
.column-grip{opacity:0!important}.table-th-inner:hover .column-grip,.column-grip:focus-visible{opacity:.7!important}
@media(max-width:620px){.range-trigger{min-width:170px!important}}
.products-hub-tab,.section-tab,.view-switch,.planning-main-tab{border:1px solid transparent!important;outline:0!important}
.products-hub-tab.active,.section-tab.active,.view-switch.active,.planning-main-tab.active{border-color:#d8d3fa!important}
.team-wizard-step{min-height:0!important;align-content:start!important}
.team-master-toggle,.team-cabinet-item{align-items:center!important}
.team-master-toggle input,.team-cabinet-item input{margin-top:0!important}

/* table readability: colgroup is the single source of truth for widths */
table[data-table-key] th.table-col-compact,
table[data-table-key] td.table-col-compact{width:auto!important;min-width:0!important;max-width:none!important}
table[data-table-key] th.num,
table[data-table-key] td.num{white-space:nowrap!important;overflow-wrap:normal!important}
table[data-table-key] th{overflow:visible!important}
table[data-table-key] .table-header-text{hyphens:none!important;word-break:normal!important;overflow-wrap:normal!important}
table[data-table-key] .sort-header,table[data-table-key] .table-header-label{width:100%!important;max-width:none!important}

/* KPI headers: compact, aligned and never split inside a word */
.metric-card-top{position:relative!important;display:flex!important;align-items:center!important;gap:7px!important;margin-bottom:8px!important;min-width:0!important}
.metric-card-top .metric-icon{flex:0 0 30px!important;width:30px!important;height:30px!important;border-radius:9px!important}
.metric-card-top>.label{flex:1 1 auto!important;min-width:0!important;margin:0!important;padding-right:20px!important}
.metric-card-top .label-with-tip{display:block!important;width:100%!important;min-width:0!important;word-break:normal!important;overflow-wrap:normal!important;hyphens:none!important}
.metric-card-top .help-tip{position:absolute!important;top:0!important;right:0!important;width:15px!important;height:15px!important;min-width:15px!important;padding:0!important;font-size:9.5px!important;line-height:15px!important}
.metric-card-top .label,.metric-card-top .label-with-tip{font-size:11.25px!important;line-height:1.24!important;letter-spacing:.015em!important}

/* consistent segmented tabs across sections */
.section-tabs,.view-switcher,.products-hub-tabs{display:inline-flex!important;align-items:center!important;gap:5px!important;padding:5px!important;border:1px solid #e1e4ec!important;border-radius:13px!important;background:#f5f6fa!important;box-shadow:inset 0 1px 0 rgba(255,255,255,.8)!important}
.section-tab,.view-switch,.products-hub-tab{min-height:40px!important;padding:9px 15px!important;border:1px solid transparent!important;border-radius:9px!important;background:transparent!important;color:#667085!important;font-size:13.25px!important;font-weight:750!important;line-height:1.2!important;box-shadow:none!important;cursor:pointer!important;white-space:nowrap!important}
.section-tab:hover,.view-switch:hover,.products-hub-tab:hover{background:#fff!important;color:#4237aa!important}
.section-tab.active,.view-switch.active,.products-hub-tab.active{background:#fff!important;color:#5042ce!important;border-color:#d8d3fa!important;box-shadow:0 3px 10px rgba(34,31,83,.08)!important}
.products-hub-header{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:16px!important;margin:4px 0 12px!important;padding:12px 14px!important;border:1px solid #e4e6ed!important;border-radius:14px!important;background:linear-gradient(135deg,#fff 0,#faf9ff 100%)!important}
.products-hub-intro{min-width:0!important}.products-hub-intro p{margin:3px 0 0!important;color:#667085!important;font-size:12.75px!important;line-height:1.42!important}
.products-hub-tabs{flex:0 0 auto!important}
.product-filter-bar{padding:14px 16px!important}.product-analytics-filters{display:grid!important;grid-template-columns:repeat(auto-fit,minmax(205px,1fr))!important;gap:10px 12px!important;align-items:end!important}.product-analytics-filters>*{min-width:0!important;width:100%!important}.product-analytics-filters label,.product-analytics-filters .range-field{display:grid!important;gap:6px!important}.product-analytics-filters input,.product-analytics-filters select,.product-analytics-filters .range-trigger{width:100%!important;max-width:none!important}
.products-catalog-actions{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:12px!important;margin:10px 0 12px!important;min-height:42px!important}.products-catalog-actions>div:last-child{display:flex!important;gap:8px!important;flex-wrap:wrap!important}.products-catalog-actions .data-freshness{font-size:11.75px!important;color:#667085!important}
.products-result-meta{margin:10px 0 6px!important}.products-table-panel{margin-top:0!important}
.products-costs-heading{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:15px!important;margin-bottom:12px!important;padding:14px 16px!important;border:1px solid #e4e6ed!important;border-radius:14px!important;background:#fff!important}.products-costs-heading h3{margin:3px 0!important;font-size:17px!important}.products-costs-heading p{margin:0!important;color:#667085!important;font-size:12.5px!important}
@media(max-width:760px){.products-hub-header{align-items:stretch!important;flex-direction:column!important}.products-hub-tabs{width:100%!important}.products-hub-tab{flex:1!important}.products-catalog-actions{align-items:stretch!important;flex-direction:column!important}.products-catalog-actions>div:last-child{display:grid!important;grid-template-columns:1fr 1fr!important}.products-costs-heading{align-items:stretch!important;flex-direction:column!important}}

/* table headers: medium labels are readable without hover; only very long titles wrap at spaces */
table[data-table-key] .sort-header,table[data-table-key] .table-header-label{white-space:normal!important}
table[data-table-key] .table-header-text{overflow:visible!important;text-overflow:clip!important;white-space:normal!important;line-height:1.22!important}
table[data-table-key] thead th{height:auto!important;min-height:48px!important}
.chart-static-legend{display:flex;align-items:center;justify-content:flex-end;gap:12px;flex-wrap:wrap}.chart-static-legend span{display:inline-flex;align-items:center;gap:5px;color:#667085;font-size:11.5px;font-weight:700}.chart-static-legend i{width:9px;height:9px;border-radius:50%;background:#5b4bd8}.chart-static-legend .spend i{background:#f79009}.chart-static-legend .sales i{background:#12b76a}.chart-static-legend .orders i{background:#4f7ee8}.chart-static-legend .drr i{background:#8b5cf6}
@media(max-width:700px){.chart-static-legend{justify-content:flex-start;width:100%}}

/* shipment product cards fit their actual column instead of overflowing into packages */
.shipment-product-row{grid-template-columns:minmax(0,1fr) 36px!important;gap:9px 10px!important;align-items:start!important}
.shipment-product-main{grid-column:1;min-width:0!important}.shipment-product-main>b{white-space:normal!important;overflow:visible!important;text-overflow:clip!important;overflow-wrap:anywhere!important;line-height:1.35!important}
.shipment-product-progress{grid-column:1!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;min-width:0!important}
.shipment-product-places{grid-column:1!important;min-width:0!important}
.shipment-product-remove{grid-column:2!important;grid-row:1!important;align-self:start!important}
.shipment-section-head small{display:block;margin-top:4px;color:#7b8495;font-size:11px;line-height:1.4;max-width:430px}
@media(max-width:620px){.shipment-product-progress{grid-template-columns:1fr!important}.shipment-product-remove{grid-row:1!important}}

/* employee wizard: compact and unambiguous cabinet choices */
.team-master-toggle,.team-cabinet-item{position:relative!important;display:grid!important;grid-template-columns:22px minmax(0,1fr)!important;align-items:center!important;gap:10px!important;text-align:left!important;cursor:pointer!important}
.team-master-toggle>input,.team-cabinet-item>input{position:absolute!important;opacity:0!important;pointer-events:none!important}
.team-choice-box{position:relative!important;display:block!important;width:20px!important;height:20px!important;border:1.5px solid #c8ced9!important;border-radius:6px!important;background:#fff!important;box-shadow:inset 0 0 0 2px #fff!important}
.team-master-toggle input:checked+.team-choice-box,.team-cabinet-item input:checked+.team-choice-box{border-color:#5b4bd8!important;background:#5b4bd8!important}
.team-master-toggle input:checked+.team-choice-box:after,.team-cabinet-item input:checked+.team-choice-box:after{content:'✓'!important;position:absolute!important;inset:0!important;display:grid!important;place-items:center!important;color:#fff!important;font-size:12px!important;font-weight:900!important}
.team-choice-copy{display:block!important;min-width:0!important;text-align:left!important}.team-choice-copy b,.team-choice-copy small{display:block!important}.team-choice-copy b{font-size:12.75px!important;line-height:1.35!important}.team-choice-copy small{margin-top:3px!important;font-size:11.25px!important;line-height:1.35!important}
.team-cabinet-item.selected:after,.team-master-toggle.selected:after{content:none!important;display:none!important}
.team-all-cabinets-card{min-height:62px!important}.team-cabinet-item{min-height:70px!important}

