.sales-offers-page { min-width:0; min-height:0; padding:0!important; }
#salesOffersHost,.offers-workspace { height:100%; min-height:0; min-width:0; }
.offers-workspace { display:flex; flex-direction:column; gap:8px; padding:6px; color:var(--ink); background:var(--erp-surface-muted); box-sizing:border-box; }
.offers-workspace [hidden] { display:none!important; }
.offers-workspace .button { min-height:34px; padding:7px 12px; }
.offers-workspace .button-primary { color:#fff; background:var(--erp-accent,#498f91); border-color:var(--erp-accent,#498f91); }
.offers-workspace .button-secondary { color:var(--ink); background:var(--erp-surface); border-color:var(--erp-border); }
.offers-heading,.offers-toolbar,.offers-footer,.offers-tabs { display:flex; align-items:center; gap:8px; flex-wrap:wrap; }
.offers-heading { justify-content:space-between; padding:8px 10px; background:var(--erp-surface); border:1px solid var(--erp-border); border-radius:10px; }
.offers-heading h1 { margin:2px 0; font-size:21px; color:var(--ink); }
.offers-heading .eyebrow { margin:0; }
.offers-tabs { flex-shrink:0; }
.offers-tabs button[aria-pressed=true] { border-color:var(--erp-accent); box-shadow:inset 3px 0 var(--erp-accent); background:color-mix(in srgb,var(--erp-accent) 14%,var(--erp-surface)); }
.offers-toolbar input { flex:1 1 160px; min-width:0; padding:8px; }
.offers-grid-region,.offers-editor-scroll { flex:1; min-height:0; overflow:auto; overscroll-behavior:contain; }
.offers-table { width:100%; border-collapse:separate; border-spacing:3px; }
.offers-table th,.offers-table td { padding:8px; border:1px solid var(--erp-border); border-radius:6px; text-align:left; }
.offers-table thead th { position:sticky; top:0; z-index:2; color:#fff; background:var(--document-header-bg,#2d2b83); }
.offers-table td { background:var(--erp-surface); }
.offers-grid-region>.offers-table { height:auto; border-spacing:2px; }
.offers-grid-region>.offers-table :is(th,td) { height:auto; padding:3px 6px; font-size:var(--grid-font-size,12px); line-height:1.25; }
.offers-grid-region>.offers-table td { white-space:nowrap; }
.offers-grid-region>.offers-table td .button { min-height:28px; height:28px; padding:3px 6px; }
.offers-grid-region>.offers-table thead th { position:sticky; top:0; z-index:3; }
.offers-panel { padding:18px; margin:0; border:1px solid var(--erp-border); border-radius:10px; background:var(--erp-surface); }
.offers-panel h2 { margin:0 0 10px; font-size:16px; color:var(--ink); }
.offer-rule-templates { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; margin:16px 0; }
.offer-rule-templates button { min-width:0; display:flex; align-items:center; justify-content:space-between; gap:12px; padding:12px 14px!important; text-align:left; white-space:normal; min-height:76px!important; font-size:13px; }
.offers-template-copy { min-width:0; display:grid; gap:5px; }
.offer-rule-templates small { color:var(--muted); line-height:1.4; }
.offers-template-state { flex-shrink:0; min-width:50px; font-size:11px; font-weight:700; }
#salesOffersHost .offers-workspace .offer-rule-templates button[aria-checked=true] { color:#fff!important; background:#273d64!important; border-color:#273d64!important; box-shadow:inset 4px 0 #65c6c5; }
#salesOffersHost .offer-rule-templates button[aria-checked=true] :is(strong,small,.offers-template-state) { color:#fff!important; }
.offer-rule-templates button:focus-visible { outline:3px solid #65c6c5; outline-offset:2px; }
.offers-fields { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px; margin:14px 0; }
.offers-field { display:flex; flex-direction:column; gap:5px; min-width:0; color:var(--ink); font-size:12px; }
.offers-field input,.offers-field select { min-width:0; width:100%; min-height:34px; padding:7px; }
.offers-field input[type=checkbox] { width:18px; min-height:18px; height:18px; accent-color:var(--erp-accent); }
.offers-toggle { flex-direction:row; flex-wrap:wrap; align-items:center; align-self:end; min-height:34px; gap:8px; padding:6px 0; }
.offers-toggle small { flex-basis:100%; padding-left:26px; }
.offers-field small,.offers-note { color:var(--muted); line-height:1.5; }
.offer-branches { display:flex; flex-wrap:wrap; align-items:center; gap:10px 18px; max-height:140px; overflow:auto; margin:14px 0 0; border:1px solid var(--erp-border); border-radius:8px; }
.offer-branches label { display:flex; align-items:center; gap:5px; font-size:12px; }
.offer-branches input { width:16px; height:16px; min-height:0; }
.offers-products-step { display:flex; flex-direction:column; overflow:auto; }
.offers-products-panel { display:flex; flex-direction:column; flex:1; min-height:0; padding:10px; }
.offers-products-panel> :not(.offers-product-grid) { flex-shrink:0; }
.offers-product-tools { margin-bottom:6px; }
.offers-product-tools h2 { margin:0 auto 0 0; }
.offers-products-panel .offers-fields { grid-template-columns:repeat(2,minmax(0,1fr)); margin:4px 0 8px; gap:8px; }
.offers-products-panel .offers-fields .offers-toggle { grid-column:1 / -1; }
.offers-tier-editor { flex-shrink:0; max-height:250px; min-height:90px; overflow:auto; margin-bottom:8px; }
.offers-tier-editor h3 { margin:0 auto 0 0; font-size:14px; }
.offers-tier-table { height:auto; border-spacing:2px; }
.offers-tier-table :is(th,td) { height:auto; padding:3px 6px; }
.offers-tier-editor .offers-tier-table thead th { position:sticky; top:0; z-index:3; }
.offers-tier-table input { width:100%; min-width:75px; height:28px; padding:3px 6px; font:inherit; box-sizing:border-box; }
.offers-tier-table .button { min-height:28px; height:28px; padding:3px 6px; }
.offers-workspace .offers-tier-editor .offers-tier-table :is(th,td) { min-height:0!important; height:32px!important; padding:2px 5px!important; line-height:1.2; vertical-align:middle; }
.offers-workspace .offers-tier-editor .offers-tier-table thead th { padding-left:30px!important; }
.offers-workspace .offers-tier-editor .offers-tier-table td input { display:block; min-height:0!important; height:26px!important; max-height:26px!important; padding:2px 5px!important; line-height:1.2; margin:0; }
.offers-workspace .offers-tier-editor .offers-tier-table td .button { --erp-command-height:26px; min-height:26px!important; height:26px!important; padding:2px 5px!important; }
.offers-product-grid { flex:1; min-height:64px; overflow:auto; overscroll-behavior:contain; isolation:isolate; }
.offers-product-grid .offers-table { height:auto; border-spacing:2px; }
.offers-product-grid .offers-table th,.offers-product-grid .offers-table td { padding:4px 6px; height:auto; vertical-align:middle; }
.offers-product-grid .offers-table thead th { position:sticky; top:0; z-index:3; }
.offers-classified-products { min-width:max-content; }
.offers-classified-products :is(th,td) { min-width:100px; max-width:260px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.offers-classified-products :is(th,td):nth-child(2) { min-width:220px; }
.offers-classified-products .offers-entry-row input { width:100%; }
:root[data-theme="dark"] .offers-workspace :is(.erp-bank-command,.standard-icon-command):not(.primary,.button-primary,.erp-button-primary,.danger,.button-danger,.erp-button-danger) { color:var(--ink); }
.offers-product-grid .offers-table td input { display:block; width:140px; max-width:100%; min-width:90px; min-height:28px; height:auto; padding:3px 6px; font:inherit; line-height:1.25; box-sizing:border-box; }
.offers-product-grid .offers-table .button { min-height:28px; padding:4px 8px; }
.offers-product-grid .offers-entry-row td { background:color-mix(in srgb,var(--erp-accent) 5%,var(--erp-surface)); }
.offers-product-grid .offers-entry-row td input { width:100%; }
.offers-product-grid .offers-entry-row td select { width:100%; min-width:110px; min-height:28px; padding:3px 6px; font:inherit; color:var(--ink); background:var(--erp-surface); border:1px solid var(--erp-border); border-radius:6px; }
.offers-row-lookup { position:fixed; z-index:1400; overflow:auto; overscroll-behavior:contain; padding:4px; border:1px solid var(--erp-accent); border-radius:8px; background:var(--erp-surface); color:var(--ink); box-shadow:0 8px 24px #172b5126; box-sizing:border-box; }
.offers-row-lookup>p { margin:8px; font-size:13px; }
.offers-row-lookup { padding:0; scroll-padding-top:28px; }
.offers-lookup-table { width:100%; table-layout:fixed; border-collapse:collapse; }
.offers-lookup-table th { position:sticky; top:0; z-index:2; padding:6px 7px; text-align:left; font-size:10px; line-height:1.4; text-transform:uppercase; }
.offers-lookup-table th:first-child { width:25%; }.offers-lookup-table th:nth-child(2) { width:55%; }.offers-lookup-table th:last-child { width:20%; text-align:right; }
.offers-lookup-table td { padding:0; border-bottom:1px solid var(--lookup-line,var(--erp-border)); }
.offers-lookup-option { display:grid; grid-template-columns:25% 55% 20%; align-items:center; width:100%; min-height:28px; padding:4px 0; border:0; border-radius:0; background:var(--erp-surface); color:var(--ink); text-align:left; font:inherit; font-size:12px; line-height:1.4; font-weight:400; cursor:pointer; }
.offers-lookup-option>span { min-width:0; padding:0 7px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.offers-lookup-option>span:first-child { font-weight:600; }.offers-lookup-option>span:last-child { text-align:right; font-variant-numeric:tabular-nums; }
.offers-scope-only .offers-stock-column,.offers-no-prices .offers-price-column { display:none!important; }
.offers-summary { flex-shrink:0; margin:0; padding:10px 14px; border-left:3px solid var(--erp-accent); border-radius:6px; background:color-mix(in srgb,var(--erp-accent) 8%,var(--erp-surface)); font-size:13px; color:var(--ink); }
.offers-steps { flex-shrink:0; display:flex; gap:6px; padding:4px; border:1px solid var(--erp-border); border-radius:9px; background:var(--erp-surface); }
.offers-steps .button { flex:1; display:flex; align-items:center; justify-content:center; gap:8px; border:0; background:transparent; color:var(--muted); font-weight:600; }
.offers-steps .button[aria-current=step] { background:color-mix(in srgb,var(--erp-accent) 12%,var(--erp-surface)); color:var(--ink); }
.offers-steps-promotion .button { min-width:0; white-space:normal; line-height:1.3; }
.offers-steps-promotion .button>span:last-child { min-width:0; }
.offers-step-number { flex-shrink:0; display:grid; place-items:center; width:24px; height:24px; border-radius:50%; border:1px solid var(--erp-border); font-size:12px; }
.offers-steps [aria-current=step] .offers-step-number { background:var(--erp-accent); border-color:var(--erp-accent); color:white; }
.offers-note { font-size:12px; margin:8px 0; }
.offers-help { margin-top:14px; padding-top:10px; border-top:1px solid var(--erp-border); font-size:12px; color:var(--muted); }
.offers-help summary { cursor:pointer; }
.offers-footer { flex-shrink:0; justify-content:flex-end; padding:8px 116px 8px 8px; background:var(--erp-surface); border-top:1px solid var(--erp-border); }
.offers-footer>span { margin-right:auto; color:var(--muted); }
.offers-footer .offers-save-status { padding:5px 8px; border-radius:6px; font-size:12px; font-weight:600; }
.offers-footer .offers-save-status[data-state=saved] { color:var(--ink); background:color-mix(in srgb,var(--erp-accent) 16%,var(--erp-surface)); border:1px solid var(--erp-accent); }
.offers-save-status[data-state=saved]::before { content:'✓ '; color:var(--erp-accent); font-weight:800; }
.offers-appearance-dialog { width:min(760px,92vw); max-height:85vh; overflow:auto; border:1px solid var(--erp-border); border-radius:12px; padding:18px; }
.offers-appearance-dialog::backdrop { background:#172b5166; }
.offer-field-error { color:var(--error,#a52a2a)!important; }
.offers-workspace [aria-invalid=true] { border-color:var(--error,#a52a2a); }
@media(max-width:950px){.offer-rule-templates,.offers-fields{grid-template-columns:repeat(2,minmax(0,1fr));}}
@media(max-width:600px){.offer-rule-templates,.offers-fields{grid-template-columns:1fr;}.offers-workspace{padding:6px;}.offers-heading h1{font-size:18px;}.offers-panel{padding:12px;}.offers-steps .button{flex-direction:row;font-size:11px;padding:6px;gap:6px;}.offers-footer{padding-right:96px;gap:5px;}.offers-footer>.button{padding:7px 9px;}}
@media(max-width:600px){.offers-steps-promotion .button{flex-direction:column;gap:4px;padding:6px 4px;}}

/* Buy/get reward alternatives remain adjacent and use native fields. */
.offers-buy-get-rewards { gap:8px; margin:0; align-items:start; grid-template-columns:repeat(2,minmax(0,1fr)); }
@media(max-width:600px){.offers-buy-get-rewards{grid-template-columns:1fr;}}

.offers-product-pair { display:grid; gap:12px; }
.offers-product-pair > .offers-fields { margin:0; }
.offers-product-pair .offers-panel { margin:0; min-width:0; }
.offers-product-pair .offers-note { overflow-wrap:anywhere; }

.offers-template-tools { justify-content:space-between; flex-wrap:wrap; }
.offers-template-tools h2 { margin:0; }
.offers-workspace .offers-wizard-launch.erp-bank-command,
.offers-workspace .offers-wizard-launch { --erp-command-surface:#f0e8ff; --erp-command-ink:#512c87; --erp-command-border:#9672c7; background:#f0e8ff!important; color:#512c87!important; border-color:#9672c7!important; }
.offers-workspace .offers-wizard-launch[aria-pressed=true] { box-shadow:inset 4px 0 #7952ac; }
:root[data-theme="dark"] .offers-workspace .offers-wizard-launch { --erp-command-surface:#352550; --erp-command-ink:#eee3ff; --erp-command-border:#ba98e6; background:#352550!important; color:#eee3ff!important; border-color:#ba98e6!important; }
.offers-wizard { display:grid; gap:12px; }
.offers-wizard-cards { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; align-items:start; }
.offers-wizard-card { display:grid; gap:10px; min-width:0; margin:0; }
.offers-wizard-card h3 { margin:0 0 4px; }
.offers-wizard-card > button { justify-self:start; }
.offers-wizard-card .offers-field select { min-width:0; width:100%; }
.offers-wizard-products { display:grid; gap:4px; padding:0; margin:0; list-style:none; max-height:180px; overflow:auto; }
.offers-wizard-products li { display:flex; gap:6px; align-items:center; justify-content:space-between; }
.offers-wizard-products li>span { min-width:0; overflow-wrap:anywhere; }
.offers-wizard-sample { min-width:0; margin:0; }
.offers-wizard-sample-grid { overflow:auto; max-height:300px; }
.offers-wizard-sample-grid table { min-width:650px; table-layout:fixed; }
.offers-wizard-sample-grid th { position:sticky; top:0; }
.offers-wizard-sample-grid td { height:32px; padding:3px 5px; }
.offers-wizard-sample-grid input { min-width:0; width:100%; height:28px; }
@media(max-width:768px){.offers-wizard-cards{grid-template-columns:1fr;}}
