@media screen{
:root{--rlb-accent:#0065d9;--chart-blue:#0065d9;--chart-ink:#65758c;--chart-grid:#e8edf4;--chart-tooltip:#fff;--chart-title:#202b43;--bg:#f6f8fb;--blue:#0065d9;--blue-dark:#0053b5}
body .app-shell .company-context{display:flex;flex-direction:column;gap:2px;padding:0 16px 0 0;border-right:1px solid #e3e8ef;max-width:220px;line-height:1.3}.company-context strong{font-size:13px;font-weight:800;color:#25364e}.company-context span{font-size:10px;color:#78869a}.theme-picker select{font-size:11px!important;min-height:32px!important;padding:5px 24px 5px 9px!important;background:transparent!important}.theme-picker{margin:0 3px}.top-actions{gap:12px}body .app-shell .btn:not(.secondary):not(.danger){background:#0065d9;border-color:#0065d9}body .app-shell .btn:not(.secondary):not(.danger):hover{background:#0053b5}body .app-shell .btn.secondary{color:#005bbf}body .app-shell .side-link.active{color:#005bbf}body .decision-filters .filter-reset{color:#596b84}
:root[data-theme=dark]{color-scheme:dark;--rlb-accent:#c98af8;--chart-blue:#c98af8;--chart-ink:#c4bbcf;--chart-grid:#494253;--chart-tooltip:#312839;--chart-title:#faf4ff;--bg:#1f1e25;--panel:#2d2b35;--text:#f2edf7;--ink:#f2edf7;--muted:#c4bbcf;--line:#51495e;--blue:#c98af8;--blue-dark:#e3baff;--sidebar:#27252e;--sidebar2:#2d2b35}
html[data-theme=dark] body,html[data-theme=dark] body .app-shell,html[data-theme=dark] body .main-area{background:#1f1e25;color:#f2edf7}
html[data-theme=dark] body .sidebar,html[data-theme=dark] body .sidebar-brand,html[data-theme=dark] body .sidebar-footer,html[data-theme=dark] body .top-header{background:#27252e!important;border-color:#494253!important;color:#c1cde0!important;box-shadow:none}
html[data-theme=dark] body .top-title,html[data-theme=dark] body .user-name,html[data-theme=dark] body .company-context strong{color:#f2edf7!important}html[data-theme=dark] body .company-context{border-color:#51495e}html[data-theme=dark] body .company-context span,html[data-theme=dark] body .logout-link{color:#c4bbcf}html[data-theme=dark] body .brand-copy strong,html[data-theme=dark] body .brand-copy span{color:#dce9ff!important}
html[data-theme=dark] body .app-shell :is(.panel,.card,.dash-panel,.dash-metric,.coverage-card,.attention-card,.decision-filters,.kpi-card,.editor-sheet,.editor-section,.product-detail-section,.product-hero,.product-price-card,.product-rule-grid>div,.editor-rule-cards>div,.search-panel,.modal-content,.modal-panel,.dialog,.dropdown-menu,.bulk-toolbar,.bulk-quick-add){background:#2d2b35!important;border-color:#494253!important;color:#f2edf7!important;box-shadow:none!important}
html[data-theme=dark] body .app-shell :is(h1,h2,h3,h4,.panel-title,.dash-metric>strong,.kpi,.product-hero h1,.product-identification b,.inventory-summary strong,.editor-sale-card>label,.coverage-card h2,.attention-card h2){color:#faf4ff!important;background-color:transparent!important}
html[data-theme=dark] body .app-shell :is(.muted,.small.muted,.dash-footnote,.dash-context,.product-section-help,.period-caption,.workspace-heading p,.workspace-eyebrow,.section-kicker,.dash-metric small,.metric-comparison,.dash-panel header p,.dash-metric>span,.product-identification span,.product-eyebrow,.product-hero-codes,.product-hero-image small,.product-hero-switches label,.product-hero-switches>small,.replenishment-list small,.inventory-summary span,.editor-section-heading>span){color:#c4bbcf!important}
html[data-theme=dark] body .app-shell :is(input:not([type=checkbox]):not([type=radio]):not([type=color]):not([type=range]),select,textarea){background:#22212a!important;color:#f2edf7!important;border-color:#655770!important;box-shadow:none}html[data-theme=dark] body .app-shell input::placeholder,html[data-theme=dark] body .app-shell textarea::placeholder{color:#bcb2c8;opacity:1}html[data-theme=dark] body .app-shell :is(input,select,textarea):focus-visible{outline:2px solid #c98af866!important;border-color:#c98af8!important}html[data-theme=dark] body .app-shell :is(input[readonly],input:disabled,textarea[readonly]){background:#36313e!important;color:#bccce0!important;opacity:1}
html[data-theme=dark] body .app-shell :is(table,tbody,tr,td,.table-wrap){background-color:#2d2b35!important;color:#e5dcec!important;border-color:#494253!important}html[data-theme=dark] body .app-shell th{background:#383341!important;color:#cec2da!important;border-color:#51495e!important}html[data-theme=dark] body .app-shell tbody tr:hover td{background:#383341!important}html[data-theme=dark] body .app-shell .panel-title{border-color:#494253!important}
html[data-theme=dark] body .app-shell :is(.side-link,.side-parent,.workspace-tabs a,.product-jumpnav a){color:#cec2da}html[data-theme=dark] body .app-shell :is(.side-link.active,.side-link.sub.active,.cascade-group.open>.side-parent,.side-parent:hover,.side-link:hover){background:#453052!important;color:#d9a5ff!important}html[data-theme=dark] body .app-shell :is(.workspace-tabs .selected,.product-jumpnav a:hover,a.product-link,.dash-panel header>a,.btn.secondary){color:#d9a5ff!important}html[data-theme=dark] body .workspace-tabs{border-color:#494253}
html[data-theme=dark] body .app-shell .btn.secondary{background:#383341!important;border-color:#655770!important}html[data-theme=dark] body .app-shell .btn.danger{background:#3d2630!important;border-color:#734552!important;color:#ffb3bd!important}html[data-theme=dark] body .app-shell .btn:not(.secondary):not(.danger){background:#76449b!important;border-color:#aa75cf!important;color:#fff!important}
html[data-theme=dark] body .app-shell :is(.role-chip,.user-badge,.dash-animated-icon,.product-hero-switches,.product-stock-grid>div,.product-rule-grid>div,.editor-inventory-grid>.field,.editor-identity-grid,.editor-gain-result,.rlb-switch,.rule-chip,.dash-card-detail span){background:#393043!important;border-color:#5e4b69!important;color:#e3c5f6!important}html[data-theme=dark] body .app-shell :is(.cost-card,.readonly-cost){background:#392b44!important;border-color:#634b73!important}html[data-theme=dark] body .app-shell :is(#product-cost,.product-price-card>strong,.product-stock-grid b){color:#faf4ff!important;background:transparent!important}html[data-theme=dark] body .app-shell .editor-money{background:transparent!important}html[data-theme=dark] body .app-shell .editor-money>span{color:#c6dcf8!important}
html[data-theme=dark] body .app-shell :is(.notice,.info-notice,.warn-notice,.dash-tag){background:#3b3145!important;border-color:#665671!important;color:#ead9f3!important}html[data-theme=dark] body .app-shell :is(.error-notice,.error-text,.dash-negative,.dash-metric.negative>strong,.negative,.qty-neg){color:#ff9caa!important}html[data-theme=dark] body .app-shell :is(.success-notice,.qty-pos,.metric-comparison .up){color:#77dbc3!important;background:#17382f!important}html[data-theme=dark] body .app-shell :is(.metric-comparison .down,.product-badge.empty,.product-badge.inactive){color:#ffadb8!important;background:#432b36!important}html[data-theme=dark] body .app-shell :is(.product-badge.active,.product-badge.available){color:#83dfbd!important;background:#1c3b35!important}
html[data-theme=dark] body .app-shell :is(.ui-icon,.ico img,.dash-animated-icon img,.dashboard-search img,.product-jumpnav img,.menu-toggle img){filter:brightness(1.6) saturate(.85)}html[data-theme=dark] body .app-shell .btn:not(.secondary):not(.danger) .ui-icon{filter:brightness(0) invert(1)}html[data-theme=dark] body .app-shell :is(.product-detail-section,.product-integration,.replenishment-list>a,.dash-card-detail,.editor-gain-control,.inventory-summary>div){border-color:#494253!important}
/* Retain visible validation and selection states in bulk editing. */
html[data-theme=dark] body .app-shell tr:has(.input-error) td,html[data-theme=dark] body .app-shell tr.bulk-row-error td{background:#422633!important;border-color:#895061!important}html[data-theme=dark] body .app-shell :is(.input-error,[aria-invalid=true]){border-color:#ff8fa4!important}html[data-theme=dark] body .app-shell tr.selected td{background:#453052!important}
@media(max-width:980px){.company-context{display:none!important}.theme-picker select{max-width:105px}.top-actions{gap:7px}}
}
@media screen{
html[data-theme=dark] body #bulk-editor .bulk-grid tr.bulk-row-error>td{background:#422633!important;color:#f6d9e1!important;border-color:#895061!important}
html[data-theme=dark] body #bulk-editor .bulk-grid .bulk-field-error{background:#35202e!important;color:#ffdbe4!important;border-color:#ff8fa4!important}
html[data-theme=dark] body #bulk-editor :is(.bulk-error-summary,.bulk-error-link){background:#422633!important;color:#ffb5c5!important;border-color:#895061!important}
@media(max-width:600px){body .top-header{padding:0 12px;gap:8px}body .top-title{min-width:0;flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:130px}body .top-actions{flex-shrink:0;gap:7px}body .top-actions .user-name,body .top-actions .role-chip{display:none}body .theme-picker select{max-width:92px;font-size:10px!important}body .top-actions .logout-link{font-size:10px}}
}

@media screen{body .theme-picker{display:flex;align-items:center;gap:7px}body .theme-picker>span{font-size:10px;font-weight:700;letter-spacing:.6px;color:#78869a}html[data-theme=dark] body .theme-picker>span{color:#c4bbcf}}

@media screen{body .app-shell .side-link[aria-current=page]{background:#e5efff;color:#005bbf;font-weight:800;box-shadow:inset 3px 0 #0065d9}html[data-theme=dark] body .app-shell .side-link[aria-current=page]{background:#453052!important;color:#ecd3ff!important;box-shadow:inset 3px 0 #c98af8}}
@media screen{
body .app-shell .top-header{display:flex;align-items:center;gap:14px}body .app-shell .top-actions{display:flex;align-items:center;justify-content:flex-end;gap:12px;margin-left:auto;min-height:36px}body .app-shell .top-actions>.theme-picker{display:flex;flex-direction:row;align-items:center;gap:8px;margin:0;padding:0;line-height:1}body .app-shell .theme-picker select{display:block;height:34px;min-height:34px!important;margin:0;padding-top:5px!important;padding-bottom:5px!important}body .app-shell .top-actions :is(.role-chip,.user-badge,.user-name,.logout-link){display:inline-flex;align-items:center;justify-content:center;margin-top:0;margin-bottom:0;line-height:1.2}body .app-shell .user-badge{width:32px;height:32px;flex:0 0 32px}body .app-shell .role-chip{height:26px;padding:0 10px}body .app-shell :is(.user-name,.logout-link){min-height:34px}
@media(max-width:600px){body .app-shell .top-actions{gap:7px}body .app-shell .top-actions .user-name,body .app-shell .top-actions .role-chip{display:none}body .app-shell .top-actions>.theme-picker{gap:5px}}
}

@media screen{
body .app-shell>.top-header{position:fixed;top:0;left:0;right:0;z-index:100;width:100%;height:92px;padding:8px 24px 8px 16px;background:#fff;display:flex;align-items:center;gap:18px}body .app-shell .header-brand{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;flex:0 0 200px;max-width:220px;text-align:center}body .app-shell .header-brand .brand-logo-wrap{width:var(--sidebar-logo-width,170px);max-width:210px;height:58px;flex:0 0 auto;padding:0;background:transparent;border:0;border-radius:0;overflow:visible}body .app-shell .header-brand .sidebar-logo{width:100%;height:100%;max-width:none;max-height:none;object-fit:contain;display:block}body .app-shell .header-brand .brand-copy{display:block!important;width:100%}body .app-shell .header-brand .brand-copy>span{display:block!important;font-size:11px;font-weight:700;text-align:center;line-height:1.2}body .app-shell .sidebar{top:92px;height:calc(100vh - 92px);padding-top:8px;background:#0074de!important;border-color:#0069cc!important;color:#fff!important}body .app-shell .main-area{padding-top:92px}body .app-shell .sidebar-footer{background:#0074de!important;color:#dceeff!important;border-color:#4295df!important}body .app-shell .side-nav{padding-top:10px}body .app-shell .sidebar :is(.side-link,.side-parent){color:#fff!important}body .app-shell .sidebar :is(.side-link:hover,.side-parent:hover,.cascade-group.open>.side-parent){background:#0063bf!important;color:#fff!important}body .app-shell .sidebar :is(.side-link.active,.side-link.sub.active,.side-link[aria-current=page]){background:#0054a5!important;color:#fff!important;box-shadow:inset 3px 0 #fff!important}body .app-shell .sidebar :is(.ico img,.ui-icon){filter:brightness(0) invert(1)!important}body.sidebar-collapsed .app-shell .header-brand{display:flex}body .app-shell .side-parent .cascade-arrow{color:white}html[data-theme=dark] body .app-shell>.top-header{background:#27252e!important}body .app-shell .top-title{font-weight:750;font-size:16px}body .app-shell .menu-toggle{flex-shrink:0}
@media(max-width:980px){body .app-shell .header-brand{flex-basis:150px;max-width:150px}body .app-shell .header-brand .brand-logo-wrap{max-width:145px}body .app-shell>.top-header{gap:10px;padding-left:12px;padding-right:12px}body .app-shell .top-title{font-size:14px}}@media(max-width:600px){body .app-shell>.top-header{height:86px;gap:8px}body .app-shell .header-brand{flex-basis:94px;max-width:94px}body .app-shell .header-brand .brand-logo-wrap{max-width:90px;height:46px}body .app-shell .header-brand .brand-copy>span{font-size:9px}body .app-shell .sidebar{top:86px;height:calc(100vh - 86px)}body .app-shell .main-area{padding-top:86px}body .app-shell .top-title{display:none}body .app-shell .top-actions{gap:6px}body .theme-picker>span{display:none}}
}
@media print{.header-brand{display:none!important}}
@media screen{body .app-shell .header-brand .brand-logo-wrap{height:calc(var(--sidebar-logo-width,170px)*.31);max-height:65px}@media(max-width:600px){body .app-shell .header-brand .brand-logo-wrap{height:43px}}}

@media screen{
/* Contifico-style order: blue corner/menu, logo, right-aligned account controls. */
body .app-shell>.top-header{height:64px;padding:0 20px 0 0;gap:0}body .app-shell>.top-header>.menu-toggle{display:flex;align-items:center;justify-content:center;align-self:stretch;flex:0 0 64px;width:64px;height:64px;min-height:64px;margin:0;padding:0;border:0;border-radius:0;background:#0074de;color:#fff}body .app-shell>.top-header>.menu-toggle img{filter:brightness(0) invert(1)!important;width:23px;height:23px}body .app-shell>.top-header>.header-brand{flex:0 0 170px;max-width:220px;height:64px;margin-left:16px;margin-right:16px;gap:1px;padding:4px 0;align-items:center;justify-content:center}body .app-shell .header-brand .brand-logo-wrap{height:calc(var(--sidebar-logo-width,170px)*.21);max-height:44px;max-width:210px}body .app-shell .header-brand .brand-copy>span{font-size:10px;line-height:1.2}body .app-shell>.top-header>.top-title{display:none}body .app-shell>.top-header>.top-actions{margin-left:auto}body .app-shell .sidebar{top:64px;height:calc(100vh - 64px)}body .app-shell .main-area{padding-top:64px}body.sidebar-collapsed .app-shell .sidebar{width:64px}body.sidebar-collapsed .app-shell .main-area{margin-left:64px}body.sidebar-collapsed .app-shell .sidebar .side-nav{padding:8px 4px}body.sidebar-collapsed .app-shell .sidebar .side-parent{justify-content:center;padding:10px 0;margin:4px 0;width:100%}body.sidebar-collapsed .app-shell .sidebar .side-parent>span:nth-child(2),body.sidebar-collapsed .app-shell .sidebar .cascade-arrow,body.sidebar-collapsed .app-shell .sidebar .side-submenu{display:none}body.sidebar-collapsed .app-shell .sidebar .side-link{justify-content:center;padding:10px 0;min-height:44px;margin-left:0;margin-right:0}body.sidebar-collapsed .app-shell .cascade-group:has(.side-link.active)>.side-parent{background:#0054a5!important;box-shadow:inset 3px 0 white}
@media(max-width:980px){body .app-shell>.top-header>.header-brand{flex-basis:135px;max-width:145px;margin-left:10px;margin-right:8px}body .app-shell .header-brand .brand-logo-wrap{max-width:140px}body.sidebar-collapsed .app-shell .main-area{margin-left:0}body.sidebar-collapsed .app-shell .sidebar{width:238px}body.sidebar-collapsed .app-shell .sidebar .side-parent>span:nth-child(2),body.sidebar-collapsed .app-shell .sidebar .cascade-arrow{display:inline}body.sidebar-collapsed .app-shell .sidebar .side-parent{justify-content:flex-start;padding:10px 12px}body.sidebar-collapsed .app-shell .sidebar .cascade-group.open .side-submenu{display:block}body.sidebar-collapsed .app-shell .sidebar .side-link{justify-content:flex-start;padding:10px 16px}}
@media(max-width:600px){body .app-shell>.top-header{padding-right:10px}body .app-shell>.top-header>.menu-toggle{flex-basis:48px;width:48px}body .app-shell>.top-header>.header-brand{flex-basis:90px;max-width:100px;margin-left:6px;margin-right:4px}body .app-shell .header-brand .brand-logo-wrap{max-width:96px;height:31px}body .app-shell .header-brand .brand-copy>span{font-size:9px}body .app-shell .top-actions{gap:6px}body .theme-picker select{max-width:87px}}
}

/* Only invoices with pending costs receive a horizontal soft alert. */
@media screen {
 body table tbody tr.invoice-cost-pending > td { background-color:#fff0f1 !important; }
 html[data-theme="dark"] body table tbody tr.invoice-cost-pending > td { background-color:#3b252e !important; }
}

@media screen {
.product-image-cell{vertical-align:middle;text-align:center}.product-image-action{display:flex;flex-direction:column;align-items:center;gap:4px;min-width:52px;max-width:95px;margin:auto}
.product-image-missing{display:grid;justify-items:center;gap:2px;min-width:52px;min-height:60px;padding:3px;border:1px solid var(--line);border-radius:7px;background:var(--panel)}
.product-image-missing>small{font-size:9px;line-height:12px;color:var(--muted)}
.product-image-refresh{display:grid;justify-items:center;gap:1px;padding:2px 4px;border:0;border-radius:5px;background:transparent;color:var(--blue);font:inherit;cursor:pointer}
.product-image-refresh img{width:20px;height:20px}.product-image-refresh small{font-size:8px;line-height:11px}.product-image-refresh:hover:not(:disabled){background:var(--bg)}.product-image-refresh:disabled{opacity:.5;cursor:default}.product-image-refresh:focus-visible{outline:2px solid var(--blue);outline-offset:1px}
.product-image-result{font-size:9px;line-height:1.35;color:var(--muted);overflow-wrap:anywhere;white-space:normal}.product-image-result:empty{display:none}.product-image-result.error{color:#c53645}
.product-image-refresh.is-loading img{animation:catalog-spin 1s linear infinite}.product-image-action [hidden]{display:none!important}
html[data-theme=dark] .product-image-refresh img{filter:brightness(0) invert(1)}
@media(prefers-reduced-motion:reduce){.product-image-refresh.is-loading img{animation:none}}
}

.rlb-product-option{display:grid!important;grid-template-columns:50px minmax(0,1fr)!important;gap:10px!important;align-items:center!important;width:100%;text-align:left!important;box-sizing:border-box}.rlb-result-thumb{width:48px;height:48px;display:flex;align-items:center;justify-content:center;background:#fff;border:1px solid var(--line);border-radius:6px;overflow:hidden;flex-shrink:0}.rlb-result-thumb img{width:46px;height:46px;object-fit:contain}.rlb-result-thumb small{font-size:9px;color:#6c7e90;text-align:center}.rlb-result-thumb [hidden]{display:none!important}.rlb-result-content{min-width:0;white-space:normal;overflow-wrap:anywhere}.rlb-product-option:focus-visible{outline:2px solid var(--blue);outline-offset:-2px}

.theme-picker{display:flex;align-items:center;gap:8px}.theme-picker>span{display:flex;align-items:center;gap:5px;text-transform:none;letter-spacing:0}.theme-picker img{width:17px;height:17px}.theme-options{display:flex;padding:3px;border:1px solid var(--line);border-radius:8px;background:var(--panel)}.theme-options button{display:flex;align-items:center;gap:5px;border:0;background:transparent;color:var(--muted);padding:6px 8px;border-radius:5px;cursor:pointer;font:inherit;font-size:12px}.theme-options button[aria-pressed=true]{background:#0065d914;color:var(--blue);font-weight:700}.theme-options button:focus-visible{outline:2px solid #0065d9;outline-offset:1px}html[data-theme=dark] .theme-picker img{filter:brightness(0) invert(1)}.theme-picker select[hidden]{display:none!important}

@media screen {
body .app-shell a.product-name-link,
body .app-shell a.product-name-container,
body .app-shell a.product-name-container:hover {text-decoration:none}
body .app-shell a.product-name-link:hover,
body .app-shell a.product-name-container .product-name-text:hover {text-decoration:underline;text-underline-offset:3px}
body .app-shell a:is(.product-name-link,.product-name-container):focus-visible {outline:2px solid var(--blue);outline-offset:3px}
}

.catalog-suggest-host{position:relative;flex:1;min-width:0}
.catalog-suggest-host>.input{width:100%}
.catalog-suggest-host>.catalog-suggest-list{position:absolute;inset:100% 0 auto;z-index:20;max-height:320px;overflow:auto;background:var(--surface,#fff);border:1px solid #bed6ea;border-radius:8px;box-shadow:0 8px 20px #17496a22}
.catalog-suggest-host>.catalog-suggest-list[hidden]{display:none}

/* Let catalog suggestions extend past the search card and above the table. */
.app-shell .panel.catalog-suggest-panel,
.app-shell .panel.catalog-suggest-panel > .panel-body { overflow: visible !important; }
.app-shell .panel.catalog-suggest-panel:focus-within { position: relative; z-index: 30; }

button.rlb-product-option { appearance:none; background:var(--surface,#fff);color:var(--text,#17304b);border:1px solid var(--line,#cfdfed);border-radius:8px;padding:6px 12px;margin:0;min-width:0;cursor:pointer }
button.rlb-product-option:hover,button.rlb-product-option:focus-visible,button.rlb-product-option.active {background:var(--soft,#eaf5ff);border-color:#5695cf}
button.rlb-product-option.rlb-option-with-stock {grid-template-columns:50px minmax(0,1fr) minmax(62px,auto)!important}
.rlb-result-content {min-width:0;overflow-wrap:anywhere}
.rlb-result-stock {display:grid;justify-items:end;align-self:center;text-align:right;white-space:nowrap;font-variant-numeric:tabular-nums}
.rlb-result-stock small {font-size:.72rem;color:inherit}
.catalog-suggest-list:not([hidden]) {display:grid;gap:4px;padding:5px}
