/* Offers workspace: layout only. Controls and tables use the shared ERP kit. */
.ho-workspace { color:var(--color-gray-700); display:flex; flex-direction:column; gap:24px; min-width:0; }
.ho-workspace h2 { font-size:16px; font-weight:600; color:var(--color-gray-900); margin:0 0 20px; }
.ho-workspace h3 { font-size:18px; font-weight:600; color:var(--color-gray-900); margin:16px 0 8px; }
.ho-layout { display:grid; grid-template-columns:minmax(0,1fr) 340px; gap:24px; align-items:start; }
.ho-form,.ho-form fieldset { display:flex; flex-direction:column; gap:20px; min-width:0; }
.ho-form fieldset { border:0; padding:0; margin:0; }
.ho-panel,.ho-registry { background:var(--color-white,#fff); border:1px solid var(--color-gray-200); border-radius:var(--surface-radius); min-width:0; }
.ho-panel { padding:24px; }
.ho-panel p { line-height:1.5; }
.ho-fields { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:20px; }
.ho-workspace .form-group { margin-bottom:20px; min-width:0; }
.ho-workspace .form-group:last-child { margin-bottom:0; }
.ho-workspace .form-group > label { display:block; color:var(--color-gray-600); font-size:13px; font-weight:500; margin-bottom:8px; }
.ho-workspace .erp-choice-card { margin:0; min-height:56px; padding:14px; align-items:center; }
.ho-workspace .erp-choice-card__title { font-size:14px; font-weight:600; }
.ho-workspace .erp-choice-card__icon { background:transparent; width:22px; height:22px; flex-basis:22px; }
.ho-workspace .erp-choice-cards { margin-bottom:20px; }
.ho-filters { display:grid; grid-template-columns:minmax(180px,1fr) 200px 200px; gap:16px; padding:20px; align-items:end; }
.ho-tabs { margin-top:-6px; }
.ho-category-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:16px; }
.ho-category { display:flex; flex-direction:column; align-items:flex-start; gap:9px; min-height:146px; padding:20px; border:1px solid var(--color-gray-200); border-radius:16px; background:var(--color-white,#fff); color:var(--color-gray-900); text-align:left; font:inherit; cursor:pointer; }
.ho-category:hover,.ho-category.is-active { border-color:var(--color-primary-hover); box-shadow:0 5px 20px rgba(15,23,42,.07); }
.ho-category .erp-icon { color:var(--color-primary-hover); }
.ho-category span { color:var(--color-gray-600); font-size:13px; font-weight:600; }
.ho-category strong { font-size:25px; font-weight:700; line-height:1; }
.ho-category small { color:var(--color-gray-500); font-size:12px; line-height:1.4; }
.ho-category[data-kind="reward_points"] strong { font-size:16px; line-height:1.3; }
.ho-table-foot { border-top:1px solid var(--color-gray-200); padding:14px 20px; color:var(--color-gray-600); font-size:13px; }
.ho-points-intro { display:flex; align-items:center; justify-content:space-between; gap:24px; padding:28px; }
.ho-points-intro p { max-width:660px; margin:10px 0 0; color:var(--color-gray-600); line-height:1.5; }
.ho-points-intro h2 { margin:10px 0 0; }
.ho-issue-offer { display:flex; justify-content:space-between; gap:16px; padding-bottom:16px; margin-bottom:20px; border-bottom:1px solid var(--color-gray-200); }
.ho-issue-offer span { color:var(--color-gray-600); }
.ho-recipient-table { margin:18px 0; border:1px solid var(--color-gray-200); border-radius:10px; overflow:hidden; }
.ho-recipient-head,.ho-recipient-row { display:grid; grid-template-columns:minmax(0,1fr) 120px 36px; align-items:center; gap:12px; padding:10px 14px; }
.ho-recipient-head { background:var(--color-gray-50); color:var(--color-gray-600); font-size:12px; }
.ho-recipient-row + .ho-recipient-row { border-top:1px solid var(--color-gray-200); }
.ho-recipient-row strong,.ho-recipient-row small { display:block; overflow-wrap:anywhere; }
.ho-recipient-row small { margin-top:3px; color:var(--color-gray-600); }
.ho-recipient-remove { display:grid; place-items:center; min-height:36px; width:36px; border:0; background:transparent; color:var(--color-gray-600); cursor:pointer; }
.ho-notification { margin-top:20px; }
.ho-filters .form-group { margin:0; }
.ho-filters .ds-search-wrap { align-self:end; }
.ho-registry .erp-data-table-wrapper { border-radius:0; }
.ho-preview-photo { width:100%; height:210px; object-fit:cover; border-radius:12px; background:var(--color-gray-50); }
.ho-muted { color:var(--color-gray-500); font-size:13px; }
.ho-text-link { border:0; background:none; padding:8px 0; min-height:32px; color:var(--color-gray-900); font:inherit; font-size:13px; font-weight:600; text-align:left; cursor:pointer; }
.ho-text-link:hover { color:var(--color-primary-hover); text-decoration:underline; }
.ho-chips { display:flex; flex-wrap:wrap; gap:8px; margin-bottom:10px; }
.ho-chip { display:flex; align-items:center; gap:8px; background:var(--color-gray-50); border:1px solid var(--color-gray-200); border-radius:8px; padding:8px 10px; font:inherit; font-size:13px; color:var(--color-gray-700); cursor:pointer; min-height:36px; }
.ho-chip:hover { border-color:var(--color-gray-400); }
.ho-customer-results { max-height:280px; overflow:auto; }
.ho-customer-option { width:100%; border:0; border-bottom:1px solid var(--color-gray-200); background:none; padding:12px 8px; display:grid; grid-template-columns:1fr auto; gap:4px 12px; text-align:left; font:inherit; cursor:pointer; }
.ho-customer-option strong { font-size:14px; font-weight:600; }
.ho-customer-option span { color:var(--color-gray-500); grid-column:1; font-size:13px; }
.ho-customer-option svg { grid-column:2; grid-row:1 / 3; align-self:center; }
.ho-customer-option:hover { background:var(--color-gray-50); }
.ho-customer-option:disabled { cursor:not-allowed; color:var(--color-gray-600); background:var(--color-gray-50); }
.ho-customer-unlinked { display:flex; align-items:center; justify-content:space-between; gap:12px; border-bottom:1px solid var(--color-gray-200); padding:12px 8px; min-width:0; }
.ho-customer-unlinked strong,.ho-customer-unlinked span { display:block; overflow-wrap:anywhere; }
.ho-customer-unlinked strong { color:var(--color-gray-900); font-size:14px; font-weight:600; }
.ho-customer-unlinked span { color:var(--color-gray-600); font-size:13px; margin-top:4px; }
.ho-customer-unlinked .btn { min-height:36px; flex-shrink:0; }
.ho-issued-row { display:flex; align-items:center; justify-content:space-between; gap:16px; padding:14px 0; border-bottom:1px solid var(--color-gray-200); min-width:0; }
.ho-issued-row strong,.ho-issued-row span,.ho-issued-row small { display:block; overflow-wrap:anywhere; }
.ho-issued-row strong { color:var(--color-gray-900); font-size:14px; }
.ho-issued-row span,.ho-issued-row small { color:var(--color-gray-600); font-size:13px; margin-top:4px; }
.ho-issued-row .btn { min-height:36px; flex-shrink:0; }
.ho-summary { display:grid; grid-template-columns:1fr auto; gap:16px; font-size:14px; }
.ho-summary dd { margin:0; font-weight:600; color:var(--color-gray-900); }
.ho-feedback:empty { display:none; }
.ho-feedback,.ho-notice { padding:16px 20px; border:1px solid var(--color-gray-200); border-radius:12px; background:var(--color-gray-50); line-height:1.5; }
.ho-feedback--error { color:var(--color-danger,#b91c1c); }
.ho-workspace button:focus-visible { outline:2px solid var(--color-primary-hover); outline-offset:3px; }
.ho-loading { padding:32px; }
#ho-table { overflow-x:auto; min-height:120px; }
#ho-confirm-error { color:var(--color-danger,#b91c1c); }
@media(max-width:1000px) { .ho-layout { grid-template-columns:minmax(0,1fr) 280px; } }
@media(max-width:767px) { .ho-layout,.ho-fields,.ho-filters,.ho-category-grid { grid-template-columns:minmax(0,1fr); } .ho-panel { padding:20px; } .ho-workspace { gap:16px; } .ho-workspace button { min-height:44px; } .ho-workspace .erp-choice-cards { grid-template-columns:1fr; } .ho-preview-photo { height:180px; } .ho-category { min-height:112px; } .ho-points-intro { flex-direction:column; align-items:stretch; padding:20px; } }

.ho-workspace .ho-locus-list { display: grid; gap: 0; }
.ho-workspace .ho-locus-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto; gap: 16px; align-items: start; padding: 16px 0; border-bottom: 1px solid var(--color-gray-200); }
.ho-workspace .ho-locus-row p { margin: 6px 0; color: var(--color-gray-700); overflow-wrap: anywhere; }
.ho-workspace .ho-locus-row small { color: var(--color-gray-600); overflow-wrap: anywhere; }
.ho-workspace .ho-locus-diagnostics { margin-top: 20px; min-width: 0; }
.ho-workspace .ho-locus-diagnostics summary { cursor: pointer; min-height: 32px; display: flex; align-items: center; color: var(--color-primary-hover); }
.ho-workspace .ho-locus-diagnostics pre { max-height: 420px; overflow: auto; white-space: pre-wrap; overflow-wrap: anywhere; padding: 16px; background: var(--color-gray-50); border: 1px solid var(--color-gray-200); font-size: 12px; }
@media (max-width: 640px) { .ho-workspace .ho-locus-row { grid-template-columns: minmax(0, 1fr); gap: 10px; } .ho-workspace .ho-locus-row .btn { min-height: 44px; width: 100%; } }
@media (max-width: 640px) { .ho-customer-unlinked { align-items:stretch; flex-direction:column; } .ho-customer-unlinked .btn { width:100%; } }
@media (max-width: 640px) { .ho-issued-row { align-items:stretch; flex-direction:column; } .ho-issued-row .btn { width:100%; } }

.ho-workspace .ho-locus-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 16px; }

/* Offers and loyalty share the same registry and detail rhythm as Geo Marketing. */
.ho-workspace { gap:18px; }
.ho-panel,.ho-registry,.discounts-editor-form,.loyalty-ledger-filters,.loyalty-members-registry { box-shadow:var(--surface-shadow); }
.ho-panel h2 { display:flex; align-items:center; gap:10px; margin:0 0 18px; font-size:16px; }
.ho-panel-icon { display:inline-flex; align-items:center; justify-content:center; width:32px; height:32px; flex:0 0 32px; border-radius:9px; background:var(--color-primary-light); color:var(--color-primary-hover); }
.ho-panel-icon svg { width:17px; height:17px; stroke-width:1.7; }
.ho-editor-aside { display:grid; gap:16px; }
.ho-checklist { display:grid; gap:10px; padding:0; margin:0 0 16px; list-style:none; }
.ho-checklist li { display:flex; align-items:center; gap:10px; min-height:28px; color:var(--color-gray-600); font-size:13px; }
.ho-checklist li svg { width:18px; height:18px; color:var(--color-gray-400); }
.ho-checklist li.is-done { color:var(--color-gray-900); }
.ho-checklist li.is-done svg { color:var(--color-success-dark); }
.ho-save-state { display:inline-flex; align-items:center; min-height:26px; padding:4px 9px; border:1px solid var(--color-gray-200); border-radius:8px; background:var(--color-gray-50); color:var(--color-gray-600); font-size:12px; font-weight:600; }
.ho-mobile-save { display:none; }
.ho-tabs { margin:0; overflow-x:auto; }
.ho-facts,.discounts-registry-summary { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:12px; }
.ho-facts > div,.discounts-registry-summary > div { display:flex; align-items:baseline; justify-content:space-between; gap:16px; min-width:0; padding:18px 20px; border:1px solid var(--color-gray-200); border-radius:var(--surface-radius); background:#fff; box-shadow:var(--surface-shadow); }
.ho-facts span,.discounts-registry-summary span { color:var(--color-gray-600); font-size:13px; }
.ho-facts strong,.discounts-registry-summary strong { color:var(--color-gray-900); font-size:23px; line-height:1; font-variant-numeric:tabular-nums; }
.ho-registry { overflow:hidden; }
.ho-registry-head,.loyalty-ledger-heading,.discounts-editor-heading { display:flex; align-items:center; gap:12px; min-width:0; }
.ho-registry-head { padding:20px 20px 12px; }
.ho-registry-head > div { display:flex; align-items:center; gap:12px; }
.ho-registry-head h2,.loyalty-ledger-heading h2,.discounts-editor-heading h2 { margin:0; color:var(--color-gray-900); font-size:16px; font-weight:600; }
.ho-registry-head p,.loyalty-ledger-heading p,.discounts-editor-heading p { margin:4px 0 0; color:var(--color-gray-600); font-size:13px; line-height:1.45; }
.ho-status-tabs { padding:0 20px 6px; overflow-x:auto; }
.ho-filters { grid-template-columns:minmax(220px,1fr) 220px; padding:12px 20px 18px; }
.ho-table-foot { background:var(--color-gray-50); }
.ho-empty-next { display:flex; justify-content:center; padding:16px 20px; border-top:1px solid var(--color-gray-200); }
.ho-panel .ho-muted:last-child { margin-bottom:0; }
.ho-panel .ho-muted + .form-group { margin-top:18px; }

.discounts-page { display:flex; flex-direction:column; gap:18px; }
.discounts-registry-summary { margin-top:0; }
.discounts-registry-results { border:1px solid var(--color-gray-200); border-radius:var(--surface-radius); background:#fff; box-shadow:var(--surface-shadow); overflow:hidden; }
.discounts-registry-results .u-card-shell { border:0; border-radius:0; box-shadow:none; }
.discounts-registry-results tbody tr[hidden] { display:none; }
.discounts-status-filter { display:flex; gap:6px; padding:16px 20px; border-bottom:1px solid var(--color-gray-200); overflow-x:auto; }
.discounts-status-filter button { min-height:38px; display:inline-flex; align-items:center; gap:8px; padding:7px 12px; border:1px solid transparent; border-radius:9px; background:transparent; color:var(--color-gray-600); font:inherit; font-size:13px; font-weight:600; white-space:nowrap; cursor:pointer; }
.discounts-status-filter button[aria-pressed="true"] { border-color:var(--color-primary-light); background:var(--color-primary-light); color:var(--color-primary-hover); }
.discounts-status-filter button span { padding:2px 6px; border-radius:6px; background:var(--color-gray-100); font-size:11px; }
.discounts-status-filter button[aria-pressed="true"] span { background:#fff; }
.discounts-name-link { border:0; padding:8px 0; background:none; color:var(--color-gray-900); font:inherit; font-size:13px; font-weight:600; text-align:start; cursor:pointer; }
.discounts-name-link:hover { color:var(--color-primary-hover); text-decoration:underline; }
.discounts-page--creating .discounts-registry-header,.discounts-page--creating .discounts-registry-summary,.discounts-page--creating .discounts-registry-results { display:none; }
.discounts-editor-form { min-width:0; padding:24px; border:1px solid var(--color-gray-200); border-radius:var(--surface-radius); background:#fff; }
.discounts-editor-heading { padding-bottom:20px; margin-bottom:20px; border-bottom:1px solid var(--color-gray-200); }
.discounts-page--creating #newDiscountForm > .erp-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:18px; align-items:start; }
.discounts-page--creating #newDiscountForm > .erp-grid > div { min-width:0; }
.discounts-page--creating #newDiscountForm > .erp-grid input { min-height:40px; }
.discounts-editor-layout { display:grid; grid-template-columns:minmax(0,1fr) 320px; gap:20px; align-items:start; }
.discounts-editor-aside .hgm-panel { margin:0; }
.discounts-page--editing .discounts-editor-form > div:last-child { max-width:840px; }
.discounts-page--editing .erp-control { min-height:40px; }

.loyalty-suite .card { border:1px solid var(--color-gray-200); border-radius:var(--surface-radius); box-shadow:var(--surface-shadow); }
.loyalty-suite .card-header .card-title > svg { width:32px; height:32px; padding:7px; border-radius:9px; background:var(--color-primary-light); color:var(--color-primary-hover); }
.loyalty-primary-tabs { display:flex; gap:6px; width:100%; overflow-x:auto; scrollbar-width:thin; }
.loyalty-primary-tabs .btn { flex:0 0 auto; white-space:nowrap; }
.loyalty-rules-tabs { display:flex; gap:6px; width:max-content; max-width:100%; padding:5px; margin:0 0 18px; border:1px solid var(--color-gray-200); border-radius:12px; background:#fff; overflow-x:auto; }
.loyalty-rules-tabs button { display:inline-flex; align-items:center; gap:8px; min-height:38px; padding:7px 14px; border:0; border-radius:8px; background:transparent; color:var(--color-gray-600); font:inherit; font-size:13px; font-weight:600; white-space:nowrap; cursor:pointer; }
.loyalty-rules-tabs button[aria-current="page"] { background:var(--color-primary-light); color:var(--color-primary-hover); }
.loyalty-action-list { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; margin-top:20px; }
.loyalty-action { display:flex; align-items:center; gap:12px; min-width:0; min-height:76px; padding:14px 16px; border:1px solid var(--color-gray-200); border-radius:var(--surface-radius); background:#fff; color:var(--color-gray-900); font:inherit; text-align:start; box-shadow:var(--surface-shadow); cursor:pointer; }
.loyalty-action:hover,.loyalty-action:focus-visible { border-color:var(--color-primary-hover); }
.loyalty-action > span:nth-child(2) { display:grid; gap:3px; min-width:0; flex:1; }
.loyalty-action strong { font-size:14px; }
.loyalty-action small { color:var(--color-gray-600); font-size:12px; line-height:1.4; }
.loyalty-ledger-filters,.loyalty-members-registry { padding:20px; border:1px solid var(--color-gray-200); border-radius:var(--surface-radius); background:#fff; }
.loyalty-ledger-filter-controls { display:flex; align-items:center; gap:12px; flex-wrap:wrap; margin-top:18px; }
.loyalty-ledger-filter-controls > div { min-width:0; }
.loyalty-ledger-phone { display:block; margin-top:3px; color:var(--color-gray-500); font-size:11px; }
.loyalty-points-positive { color:var(--color-success-dark); }
.loyalty-points-negative { color:var(--color-danger,#b91c1c); }
.loyalty-ledger-footer { display:flex; justify-content:space-between; align-items:center; gap:12px; flex-wrap:wrap; padding:16px 20px; border:1px solid var(--color-gray-200); border-radius:12px; background:#fff; color:var(--color-gray-600); font-size:13px; }
.loyalty-ledger-footer > div { display:flex; align-items:center; gap:10px; }
.loyalty-members-search { max-width:440px; margin:18px 0; }
.loyalty-members-registry .erp-data-table-wrap,.discounts-registry-results .erp-data-table-wrap { border:0; border-radius:0; box-shadow:none; }
.loyalty-members-empty { padding:40px 16px; text-align:center; }
.loyalty-members-empty p { margin:5px 0 0; color:var(--color-gray-600); }
.loyalty-members-footer { display:flex; justify-content:space-between; align-items:center; gap:12px; flex-wrap:wrap; padding-top:16px; color:var(--color-gray-600); font-size:13px; }
.loyalty-members-footer > div { display:flex; align-items:center; gap:10px; }
@media(max-width:1000px) { .discounts-editor-layout { grid-template-columns:minmax(0,1fr); } }
@media(max-width:767px) {
  .ho-workspace .erp-page-header__controls { flex-wrap:wrap; overflow-x:visible; }
  .ho-facts,.discounts-registry-summary { grid-template-columns:repeat(3,minmax(0,1fr)); gap:6px; }
  .ho-facts > div,.discounts-registry-summary > div { display:grid; gap:6px; padding:13px 10px; }
  .ho-facts span,.discounts-registry-summary span { font-size:11px; }
  .ho-facts strong,.discounts-registry-summary strong { font-size:20px; }
  .ho-filters { grid-template-columns:minmax(0,1fr); }
  .ho-recipient-remove { width:44px; min-height:44px; }
  .ho-workspace .ho-locus-diagnostics summary { min-height:44px; }
  .ho-mobile-save { display:block; }
  .ho-mobile-save .btn { width:100%; justify-content:center; }
  .discounts-page--creating #newDiscountForm > .erp-grid { grid-template-columns:minmax(0,1fr); }
  .discounts-editor-form,.loyalty-ledger-filters,.loyalty-members-registry { padding:18px; }
  .loyalty-action-list { grid-template-columns:minmax(0,1fr); }
  .loyalty-ledger-filter-controls { display:grid; grid-template-columns:minmax(0,1fr); }
  .loyalty-ledger-filter-controls > div { width:100%; }
  .loyalty-primary-tabs .btn,.loyalty-rules-tabs button { min-height:44px; }
  .loyalty-primary-tabs { flex-wrap:wrap; overflow-x:visible; }
}
