@mj-biz-apps/orders-ng 5.50.2 → 5.52.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/checkout-element/main.js +58 -3
- package/dist/lib/checkout-widget/checkout-public-host.component.d.ts +10 -2
- package/dist/lib/checkout-widget/checkout-public-host.component.d.ts.map +1 -1
- package/dist/lib/checkout-widget/checkout-public-host.component.js +30 -3
- package/dist/lib/checkout-widget/checkout-public-host.component.js.map +1 -1
- package/dist/lib/custom/OrderHeader/order-header-form.component.d.ts +8 -1
- package/dist/lib/custom/OrderHeader/order-header-form.component.d.ts.map +1 -1
- package/dist/lib/custom/OrderHeader/order-header-form.component.js +257 -172
- package/dist/lib/custom/OrderHeader/order-header-form.component.js.map +1 -1
- package/dist/lib/custom/OrderHeader/order-lines-editor.component.d.ts +37 -2
- package/dist/lib/custom/OrderHeader/order-lines-editor.component.d.ts.map +1 -1
- package/dist/lib/custom/OrderHeader/order-lines-editor.component.js +178 -39
- package/dist/lib/custom/OrderHeader/order-lines-editor.component.js.map +1 -1
- package/dist/lib/custom/Product/widgets/product-pricing-widget.component.d.ts +9 -0
- package/dist/lib/custom/Product/widgets/product-pricing-widget.component.d.ts.map +1 -1
- package/dist/lib/custom/Product/widgets/product-pricing-widget.component.js +28 -6
- package/dist/lib/custom/Product/widgets/product-pricing-widget.component.js.map +1 -1
- package/dist/lib/data/orders-queries.d.ts +56 -5
- package/dist/lib/data/orders-queries.d.ts.map +1 -1
- package/dist/lib/data/orders-queries.js +115 -11
- package/dist/lib/data/orders-queries.js.map +1 -1
- package/dist/lib/data/preset-view.d.ts +4 -3
- package/dist/lib/data/preset-view.d.ts.map +1 -1
- package/dist/lib/data/preset-view.js +4 -3
- package/dist/lib/data/preset-view.js.map +1 -1
- package/dist/lib/form-panels/external-invoices.panel.d.ts +4 -0
- package/dist/lib/form-panels/external-invoices.panel.d.ts.map +1 -1
- package/dist/lib/form-panels/external-invoices.panel.js +73 -10
- package/dist/lib/form-panels/external-invoices.panel.js.map +1 -1
- package/dist/lib/generated/Entities/mjBizAppsOrdersSalesAuthority/mjbizappsorderssalesauthority.form.component.d.ts.map +1 -1
- package/dist/lib/generated/Entities/mjBizAppsOrdersSalesAuthority/mjbizappsorderssalesauthority.form.component.js +24 -6
- package/dist/lib/generated/Entities/mjBizAppsOrdersSalesAuthority/mjbizappsorderssalesauthority.form.component.js.map +1 -1
- package/dist/lib/generated/Entities/mjBizAppsOrdersSalesAuthorityMixTier/mjbizappsorderssalesauthoritymixtier.form.component.d.ts +10 -0
- package/dist/lib/generated/Entities/mjBizAppsOrdersSalesAuthorityMixTier/mjbizappsorderssalesauthoritymixtier.form.component.d.ts.map +1 -0
- package/dist/lib/generated/Entities/mjBizAppsOrdersSalesAuthorityMixTier/mjbizappsorderssalesauthoritymixtier.form.component.js +67 -0
- package/dist/lib/generated/Entities/mjBizAppsOrdersSalesAuthorityMixTier/mjbizappsorderssalesauthoritymixtier.form.component.js.map +1 -0
- package/dist/lib/generated/generated-forms.module.d.ts +105 -104
- package/dist/lib/generated/generated-forms.module.d.ts.map +1 -1
- package/dist/lib/generated/generated-forms.module.js +5 -2
- package/dist/lib/generated/generated-forms.module.js.map +1 -1
- package/dist/lib/pages/orders/orders-dashboard.page.d.ts +16 -1
- package/dist/lib/pages/orders/orders-dashboard.page.d.ts.map +1 -1
- package/dist/lib/pages/orders/orders-dashboard.page.js +33 -10
- package/dist/lib/pages/orders/orders-dashboard.page.js.map +1 -1
- package/dist/lib/pages/orders/return.page.d.ts +17 -1
- package/dist/lib/pages/orders/return.page.d.ts.map +1 -1
- package/dist/lib/pages/orders/return.page.js +160 -87
- package/dist/lib/pages/orders/return.page.js.map +1 -1
- package/dist/lib/pages/receivables/customer-ar-page.model.d.ts +265 -0
- package/dist/lib/pages/receivables/customer-ar-page.model.d.ts.map +1 -0
- package/dist/lib/pages/receivables/customer-ar-page.model.js +576 -0
- package/dist/lib/pages/receivables/customer-ar-page.model.js.map +1 -0
- package/dist/lib/pages/receivables/customer-ar.page.d.ts +209 -73
- package/dist/lib/pages/receivables/customer-ar.page.d.ts.map +1 -1
- package/dist/lib/pages/receivables/customer-ar.page.js +2182 -556
- package/dist/lib/pages/receivables/customer-ar.page.js.map +1 -1
- package/dist/lib/pages/receivables/external-invoicing-queue.page.js +55 -55
- package/dist/lib/pages/receivables/external-invoicing-queue.page.js.map +1 -1
- package/dist/lib/panels/aging-bar.component.d.ts +59 -0
- package/dist/lib/panels/aging-bar.component.d.ts.map +1 -1
- package/dist/lib/panels/aging-bar.component.js +76 -1
- package/dist/lib/panels/aging-bar.component.js.map +1 -1
- package/dist/lib/panels/stat-tile.component.d.ts +10 -1
- package/dist/lib/panels/stat-tile.component.d.ts.map +1 -1
- package/dist/lib/panels/stat-tile.component.js +27 -6
- package/dist/lib/panels/stat-tile.component.js.map +1 -1
- package/dist/lib/sections/orders-sections.component.d.ts +33 -1
- package/dist/lib/sections/orders-sections.component.d.ts.map +1 -1
- package/dist/lib/sections/orders-sections.component.js +92 -7
- package/dist/lib/sections/orders-sections.component.js.map +1 -1
- package/dist/lib/sections/section-nav.model.js +5 -5
- package/dist/lib/sections/section-nav.model.js.map +1 -1
- package/dist/lib/services/pricing-scheduler.service.d.ts.map +1 -1
- package/dist/lib/services/pricing-scheduler.service.js +10 -3
- package/dist/lib/services/pricing-scheduler.service.js.map +1 -1
- package/dist/public-api.d.ts +6 -0
- package/dist/public-api.d.ts.map +1 -1
- package/dist/public-api.js +6 -0
- package/dist/public-api.js.map +1 -1
- package/package.json +35 -35
|
@@ -4,7 +4,7 @@ import { GetGlobalObjectStore } from '@memberjunction/global';
|
|
|
4
4
|
import { NavigationService } from '@memberjunction/ng-shared';
|
|
5
5
|
import { moveItemInArray } from '@angular/cdk/drag-drop';
|
|
6
6
|
import { FormatDate, FormatMoney } from '../../../panels/money-format.js';
|
|
7
|
-
import { ApplicabilityNeedsRevenue, AsDateValue, BuildRevenueBandApplicability, ComparePriceRows, DEFAULT_REVENUE_BAND_EDGES, DescribeInapplicableReason, DescribeRevenueLadder, DescribeRevenueLadderIssue, IsRuleApplicable, LoadOrdersEngine, OrdersEngine, PRICE_APPLICABILITY_SOURCES, ParseRevenueBand, RevenueBandName, RevenueBandRangeText, RequireUUID, RevenueBandsFromEdges, ToISODate, Today, TodayAsDateValue, UniquePriceName, priceApplies, } from '@mj-biz-apps/orders-entities';
|
|
7
|
+
import { ApplicabilityNeedsRevenue, AsDateValue, BuildRevenueBandApplicability, ComparePriceRows, DEFAULT_REVENUE_BAND_EDGES, DescribeInapplicableReason, DescribeRevenueLadder, DescribeRevenueLadderIssue, IsRuleApplicable, LoadOrdersEngine, OlderOrdersCutoff, OrdersEngine, PRICE_APPLICABILITY_SOURCES, ParseRevenueBand, RevenueBandName, RevenueBandRangeText, RequireUUID, RevenueBandsFromEdges, ToISODate, Today, TodayAsDateValue, UniquePriceName, priceApplies, } from '@mj-biz-apps/orders-entities';
|
|
8
8
|
import * as i0 from "@angular/core";
|
|
9
9
|
import * as i1 from "@angular/forms";
|
|
10
10
|
import * as i2 from "@angular/cdk/drag-drop";
|
|
@@ -43,7 +43,7 @@ function BizAppsProductPricingWidgetComponent_Conditional_13_Template(rf, ctx) {
|
|
|
43
43
|
i0.ɵɵelementEnd()();
|
|
44
44
|
} if (rf & 2) {
|
|
45
45
|
const ctx_r1 = i0.ɵɵnextContext();
|
|
46
|
-
i0.ɵɵproperty("title", ctx_r1.ShowRetired ? "Hide inactive and
|
|
46
|
+
i0.ɵɵproperty("title", ctx_r1.ShowRetired ? "Hide inactive, expired and older-order prices" : "Show inactive, expired and older-order prices");
|
|
47
47
|
i0.ɵɵadvance();
|
|
48
48
|
i0.ɵɵclassMap(ctx_r1.ShowRetired ? "fa-solid fa-eye-slash" : "fa-solid fa-eye");
|
|
49
49
|
i0.ɵɵadvance(2);
|
|
@@ -237,8 +237,9 @@ function BizAppsProductPricingWidgetComponent_Conditional_26_Conditional_2_Condi
|
|
|
237
237
|
i0.ɵɵelementEnd()();
|
|
238
238
|
} if (rf & 2) {
|
|
239
239
|
const row_r9 = i0.ɵɵnextContext().$implicit;
|
|
240
|
+
const ctx_r1 = i0.ɵɵnextContext(4);
|
|
240
241
|
i0.ɵɵadvance();
|
|
241
|
-
i0.ɵɵconditional(row_r9.
|
|
242
|
+
i0.ɵɵconditional(ctx_r1.CanActivate(row_r9.Record) ? 1 : 2);
|
|
242
243
|
} }
|
|
243
244
|
function BizAppsProductPricingWidgetComponent_Conditional_26_Conditional_2_Conditional_3_For_17_Template(rf, ctx) { if (rf & 1) {
|
|
244
245
|
i0.ɵɵelementStart(0, "tr")(1, "td", 40);
|
|
@@ -667,7 +668,7 @@ function BizAppsProductPricingWidgetComponent_Conditional_27_Conditional_2_For_2
|
|
|
667
668
|
i0.ɵɵadvance(8);
|
|
668
669
|
i0.ɵɵproperty("ngModel", ctx_r1.EffectiveToInput(row_r21.Record))("disabled", ctx_r1.IsSaving);
|
|
669
670
|
i0.ɵɵadvance();
|
|
670
|
-
i0.ɵɵconditional(row_r21.
|
|
671
|
+
i0.ɵɵconditional(ctx_r1.CanActivate(row_r21.Record) ? 34 : 35);
|
|
671
672
|
} }
|
|
672
673
|
function BizAppsProductPricingWidgetComponent_Conditional_27_Conditional_2_For_2_Conditional_11_Conditional_2_Conditional_1_Template(rf, ctx) { if (rf & 1) {
|
|
673
674
|
const _r27 = i0.ɵɵgetCurrentView();
|
|
@@ -1274,12 +1275,33 @@ export class BizAppsProductPricingWidgetComponent {
|
|
|
1274
1275
|
IsRetired(p) {
|
|
1275
1276
|
if (p.Status !== 'Active')
|
|
1276
1277
|
return true;
|
|
1278
|
+
if (this.IsOlderOrdersOnly(p))
|
|
1279
|
+
return true;
|
|
1277
1280
|
const to = ToISODate(p.EffectiveTo);
|
|
1278
1281
|
return to != null && to < Today();
|
|
1279
1282
|
}
|
|
1283
|
+
/**
|
|
1284
|
+
* An Active price kept for orders created before a cutover that has passed (`OlderOrdersCutoff`):
|
|
1285
|
+
* no new order can match it, so it is retired for the catalog's purposes and hidden with the
|
|
1286
|
+
* inactive ones. It is still in force for those older orders, so it is not offered for
|
|
1287
|
+
* activation; deactivating it would move their prices.
|
|
1288
|
+
*/
|
|
1289
|
+
IsOlderOrdersOnly(p) {
|
|
1290
|
+
if (p.Status !== 'Active')
|
|
1291
|
+
return false;
|
|
1292
|
+
const cutoff = OlderOrdersCutoff(p.Applicability);
|
|
1293
|
+
return cutoff != null && cutoff.getTime() <= Date.now();
|
|
1294
|
+
}
|
|
1295
|
+
/** Activate is offered for a price that is inactive or expired, not for one kept for older orders. */
|
|
1296
|
+
CanActivate(p) {
|
|
1297
|
+
return this.IsRetired(p) && !this.IsOlderOrdersOnly(p);
|
|
1298
|
+
}
|
|
1280
1299
|
StatusTextFor(p) {
|
|
1281
1300
|
if (p.Status !== 'Active')
|
|
1282
1301
|
return 'Inactive';
|
|
1302
|
+
const cutoff = this.IsOlderOrdersOnly(p) ? OlderOrdersCutoff(p.Applicability) : null;
|
|
1303
|
+
if (cutoff)
|
|
1304
|
+
return `Orders before ${FormatDate(cutoff)}`;
|
|
1283
1305
|
const to = ToISODate(p.EffectiveTo);
|
|
1284
1306
|
if (to == null)
|
|
1285
1307
|
return '';
|
|
@@ -2679,7 +2701,7 @@ export class BizAppsProductPricingWidgetComponent {
|
|
|
2679
2701
|
}
|
|
2680
2702
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(BizAppsProductPricingWidgetComponent, [{
|
|
2681
2703
|
type: Component,
|
|
2682
|
-
args: [{ standalone: false, selector: 'bizapps-product-pricing-widget', template: "<div class=\"mjo-pricing-widget-wrap\">\n @if (ActiveToast) {\n <div class=\"mjo-toast\" [class]=\"'mjo-toast--' + ActiveToast.Type\">\n <div class=\"mjo-toast-left\">\n <i [class]=\"ActiveToast.Icon\"></i>\n <span class=\"mjo-toast-msg\">{{ ActiveToast.Message }}</span>\n </div>\n <button type=\"button\" class=\"mjo-toast-close\" (click)=\"DismissToast()\">\n <i class=\"fa-solid fa-xmark\"></i>\n </button>\n </div>\n }\n\n <div class=\"mjo-pricing-card\">\n <div class=\"mjo-card-header\">\n <div class=\"mjo-card-title\">\n <i class=\"fa-solid fa-tags\"></i>\n <span>Pricing</span>\n </div>\n <div class=\"mjo-card-header-actions\">\n <button type=\"button\" class=\"mjo-btn-subtle\" (click)=\"OpenQuote()\" title=\"See which price a sample customer receives\">\n <i class=\"fa-solid fa-calculator\"></i>\n <span>Simulate price</span>\n </button>\n @if (RetiredCount > 0) {\n <button type=\"button\" class=\"mjo-btn-subtle\" (click)=\"ToggleRetired()\" [title]=\"ShowRetired ? 'Hide inactive and expired prices' : 'Show inactive and expired prices'\">\n <i [class]=\"ShowRetired ? 'fa-solid fa-eye-slash' : 'fa-solid fa-eye'\"></i>\n <span>{{ ShowRetired ? 'Hide inactive' : 'Show inactive (' + RetiredCount + ')' }}</span>\n </button>\n }\n <div class=\"mjo-view-switch\" role=\"tablist\" aria-label=\"Pricing view\">\n <button type=\"button\" role=\"tab\" [class.active]=\"ViewMode === 'cards'\" [attr.aria-selected]=\"ViewMode === 'cards'\" (click)=\"SetView('cards')\">\n <i class=\"fa-solid fa-tags\"></i><span>Prices</span>\n </button>\n @if (BandRows.length > 0 || EditMode) {\n <button type=\"button\" role=\"tab\" [class.active]=\"ViewMode === 'bands'\" [attr.aria-selected]=\"ViewMode === 'bands'\" (click)=\"SetView('bands')\">\n <i class=\"fa-solid fa-layer-group\"></i><span>Revenue bands</span>\n </button>\n }\n <button type=\"button\" role=\"tab\" [class.active]=\"ViewMode === 'grid'\" [attr.aria-selected]=\"ViewMode === 'grid'\" (click)=\"SetView('grid')\">\n <i class=\"fa-solid fa-table-cells\"></i><span>Grid</span>\n </button>\n </div>\n </div>\n </div>\n\n @if (ShowChannelBar) {\n <div class=\"mjo-channel-bar\" role=\"tablist\" aria-label=\"Price list\">\n <span class=\"mjo-channel-label\">Price list</span>\n <div class=\"mjo-channel-list\">\n @for (ch of VisibleChannels; track ch.ID) {\n <button\n type=\"button\"\n class=\"mjo-channel-tab\"\n [class.active]=\"SelectedChannelID === ch.ID\"\n role=\"tab\"\n [attr.aria-selected]=\"SelectedChannelID === ch.ID\"\n [title]=\"ch.ID == null ? 'Prices every customer can receive' : (ch.DiscountDescription || 'Prices for customers assigned to this price list')\"\n mjRecordLink\n [EntityName]=\"PriceListsEntity\"\n [RecordID]=\"ch.ID ?? ''\"\n [DisplayName]=\"ch.Name\"\n [HandleClick]=\"false\"\n (click)=\"SelectChannel(ch.ID)\">\n <i [class]=\"ch.Icon\"></i>\n <span>{{ ch.Name }}</span>\n <span class=\"mjo-channel-count\">{{ ch.TierCount }} {{ ch.TierCount === 1 ? 'price' : 'prices' }}</span>\n </button>\n }\n </div>\n </div>\n }\n\n @if (ViewMode === 'grid') {\n @if (ProductPricesViewParams) {\n <div class=\"mjo-grid-wrap\">\n <mj-explorer-entity-data-grid\n [Params]=\"ProductPricesViewParams\"\n [NewRecordValues]=\"NewPriceRecordValues\"\n [Height]=\"420\"\n [AllowLoad]=\"true\"\n [ShowToolbar]=\"true\"\n [ShowNewButton]=\"EditMode\"\n [ShowDeleteButton]=\"EditMode\"\n (Navigate)=\"Navigate.emit($event)\">\n </mj-explorer-entity-data-grid>\n </div>\n }\n } @else if (ViewMode === 'bands') {\n <div class=\"mjo-bands\">\n @if (IsLoading) {\n <div class=\"mjo-loading-state\">\n <mj-loading text=\"Loading prices\u2026\" size=\"small\"></mj-loading>\n </div>\n } @else {\n <p class=\"mjo-bands-lede\">\n Price by the customer's annual revenue. Each band includes its lower limit and excludes its upper\n limit. Revenue comes from the organization's latest tax return; if none is on file, the band is\n selected on the order line.\n </p>\n @if (BandRows.length === 0) {\n <mj-empty-state\n Size=\"compact\"\n Icon=\"fa-solid fa-layer-group\"\n Title=\"No revenue bands\"\n [Message]=\"EditMode ? 'Create a band ladder below, or add bands one at a time.' : 'Edit the product to add revenue bands.'\" />\n } @else {\n <div class=\"mjo-band-table-wrap\">\n <table class=\"mjo-band-table\">\n <thead>\n <tr>\n <th>Band</th>\n <th class=\"num\">From ($M)</th>\n <th class=\"num\">To ($M)</th>\n <th class=\"num\">Price</th>\n <th>Status</th>\n @if (EditMode) { <th></th> }\n </tr>\n </thead>\n <tbody>\n @for (row of BandRows; track row.ID) {\n <tr [class.retired]=\"row.Retired\">\n <td class=\"mjo-band-name\">\n @if (EditMode) {\n <input class=\"mjo-input-text\" [(ngModel)]=\"row.Record.Name\" (blur)=\"SaveBandName(row)\" [disabled]=\"IsSaving\" aria-label=\"Band name\">\n } @else {\n <span class=\"mjo-band-title\">{{ row.Record.Name }}</span>\n }\n <span class=\"mjo-band-range\">{{ row.RangeText }}</span>\n </td>\n <td class=\"num\">\n @if (EditMode) {\n <input type=\"number\" class=\"mjo-input-num mjo-input-num--wide\" [(ngModel)]=\"row.MinMillions\" min=\"0\" step=\"0.5\" placeholder=\"0\" (blur)=\"SaveBandEdges(row)\" [disabled]=\"IsSaving\" aria-label=\"Revenue from, in millions\">\n } @else {\n {{ row.MinMillions ?? 0 }}\n }\n </td>\n <td class=\"num\">\n @if (EditMode) {\n <input type=\"number\" class=\"mjo-input-num mjo-input-num--wide\" [(ngModel)]=\"row.MaxMillions\" min=\"0\" step=\"0.5\" placeholder=\"No limit\" (blur)=\"SaveBandEdges(row)\" [disabled]=\"IsSaving\" aria-label=\"Revenue to, in millions\">\n } @else {\n {{ row.MaxMillions == null ? 'No limit' : row.MaxMillions }}\n }\n </td>\n <td class=\"num\">\n @if (EditMode) {\n <input type=\"text\" mjoCurrency class=\"mjo-input-price\" [(ngModel)]=\"row.Record.Amount\" (blur)=\"SaveBandAmount(row)\" [disabled]=\"IsSaving\" aria-label=\"Price\">\n } @else {\n <span class=\"mjo-band-amount\">{{ FormatCurrency(row.Amount) }}</span>\n }\n </td>\n <td>\n <span class=\"mjo-offer-status\" [class.retired]=\"row.Retired\">{{ row.StatusText || 'Active' }}</span>\n </td>\n @if (EditMode) {\n <td class=\"mjo-band-actions\">\n @if (row.Retired) {\n <button type=\"button\" class=\"mjo-btn-subtle\" (click)=\"RestorePrice(row.Record)\" [disabled]=\"IsSaving\" title=\"Make this band available to new order lines\">Activate</button>\n } @else {\n <button type=\"button\" class=\"mjo-btn-subtle\" (click)=\"RetirePrice(row.Record)\" [disabled]=\"IsSaving\" title=\"Stop offering this band on new order lines. Existing lines keep their price.\">Deactivate</button>\n }\n <button type=\"button\" class=\"mjo-btn-subtle mjo-btn-icon\" (click)=\"OpenPriceRecord(row.Record, $event)\" title=\"Open price record\">\n <i class=\"fa-solid fa-arrow-up-right-from-square\"></i>\n </button>\n </td>\n }\n </tr>\n }\n </tbody>\n </table>\n </div>\n @if (LadderIssues.length) {\n <div class=\"mjo-ladder-issues\">\n <i class=\"fa-solid fa-triangle-exclamation\"></i>\n <span>Revenue ranges with no price, or more than one:</span>\n @for (issue of LadderIssues; track issue) {\n <span class=\"mjo-ladder-issue\">{{ issue }}</span>\n }\n </div>\n } @else {\n <div class=\"mjo-ladder-ok\">\n <i class=\"fa-solid fa-circle-check\"></i>\n <span>All revenue levels are covered. No gaps or overlaps.</span>\n </div>\n }\n }\n\n @if (EditMode) {\n @if (BandRows.length === 0) {\n <div class=\"mjo-band-setup\">\n <div class=\"mjo-when-title\">Create band ladder</div>\n <div class=\"mjo-quick-add-inputs\">\n <label class=\"mjo-field-group mjo-field-group--grow\">\n <span class=\"mjo-sub-label\">Breakpoints ($M)</span>\n <input class=\"mjo-input-text mjo-input-text--wide\" [(ngModel)]=\"BandSetupEdgesText\" [disabled]=\"IsSaving\" placeholder=\"0, 2, 5, 10, 25, 50, 75, 100, 150, 250\">\n </label>\n <label class=\"mjo-field-group\">\n <span class=\"mjo-sub-label\">Default price</span>\n <input type=\"text\" mjoCurrency class=\"mjo-input-price\" [(ngModel)]=\"BandSetupAmount\" [disabled]=\"IsSaving\">\n </label>\n <label class=\"mjo-field-group\">\n <span class=\"mjo-sub-label\">Effective date</span>\n <input type=\"date\" class=\"mjo-input-text\" [(ngModel)]=\"NewPriceEffectiveFrom\" [disabled]=\"IsSaving\">\n </label>\n <button type=\"button\" class=\"mjo-btn-add\" [disabled]=\"IsSaving\" (click)=\"CreateBandLadder()\">\n @if (IsSaving) {\n <mj-loading class=\"mjo-btn-add__loading\" [showText]=\"false\" size=\"small\" logoColor=\"currentColor\"></mj-loading>\n <span>Saving\u2026</span>\n } @else {\n <i class=\"fa-solid fa-plus\"></i>\n <span>Create bands</span>\n }\n </button>\n </div>\n <span class=\"mjo-quick-add-hint\">{{ BandSetupPreview }} All bands start at the default price. Adjust each price in the table.</span>\n </div>\n } @else {\n <div class=\"mjo-quick-add-bar\">\n <div class=\"mjo-quick-add-inputs\">\n <span class=\"mjo-quick-add-label\">\n <i class=\"fa-solid fa-plus-circle\"></i> Add band\n </span>\n <label class=\"mjo-field-group\">\n <span class=\"mjo-sub-label\">From ($M)</span>\n <input type=\"number\" class=\"mjo-input-num mjo-input-num--wide\" [(ngModel)]=\"NewBandMinMillions\" min=\"0\" step=\"0.5\" placeholder=\"0\" [disabled]=\"IsSaving\">\n </label>\n <label class=\"mjo-field-group\">\n <span class=\"mjo-sub-label\">To ($M)</span>\n <input type=\"number\" class=\"mjo-input-num mjo-input-num--wide\" [(ngModel)]=\"NewBandMaxMillions\" min=\"0\" step=\"0.5\" placeholder=\"No limit\" [disabled]=\"IsSaving\">\n </label>\n <label class=\"mjo-field-group\">\n <span class=\"mjo-sub-label\">Price</span>\n <input type=\"text\" mjoCurrency class=\"mjo-input-price\" [(ngModel)]=\"NewBandAmount\" [disabled]=\"IsSaving\">\n </label>\n <label class=\"mjo-field-group\">\n <span class=\"mjo-sub-label\">Effective date</span>\n <input type=\"date\" class=\"mjo-input-text\" [(ngModel)]=\"NewPriceEffectiveFrom\" [disabled]=\"IsSaving\">\n </label>\n <button type=\"button\" class=\"mjo-btn-add\" [disabled]=\"IsSaving\" (click)=\"AddBand()\">\n @if (IsSaving) {\n <mj-loading class=\"mjo-btn-add__loading\" [showText]=\"false\" size=\"small\" logoColor=\"currentColor\"></mj-loading>\n <span>Saving\u2026</span>\n } @else {\n <i class=\"fa-solid fa-plus\"></i>\n <span>Add band</span>\n }\n </button>\n </div>\n @if (TopBandOpen) {\n <span class=\"mjo-quick-add-hint\">The top band has no upper limit. Set one before adding a band above it.</span>\n } @else {\n <span class=\"mjo-quick-add-hint\">Leave To blank for the top band. Applies to orders dated on or after the effective date.</span>\n }\n </div>\n }\n }\n }\n </div>\n } @else {\n @if (IsLoading) {\n <div class=\"mjo-loading-state\">\n <mj-loading text=\"Loading prices\u2026\" size=\"small\"></mj-loading>\n </div>\n } @else if (VisiblePrices.length === 0) {\n <mj-empty-state\n Size=\"compact\"\n Icon=\"fa-solid fa-tags\"\n Title=\"No prices\"\n [Message]=\"EditMode ? 'Add a price below. Add conditions only when a price applies to specific customers.' : 'Edit the product to add prices.'\" />\n } @else {\n <div\n class=\"mjo-price-list\"\n cdkDropList\n [cdkDropListDisabled]=\"!EditMode\"\n (cdkDropListDropped)=\"OnPriceDrop($event)\">\n @for (row of VisiblePrices; track row.ID) {\n <article\n class=\"mjo-offer\"\n cdkDrag\n [cdkDragDisabled]=\"!EditMode || row.Inherited\"\n [class.open]=\"ExpandedPriceID === row.ID && PriceCanExpand(row)\"\n [class.selected]=\"SelectedPriceID === row.ID\"\n [class.inherited]=\"row.Inherited\"\n [class.retired]=\"row.Retired\">\n <button\n type=\"button\"\n class=\"mjo-offer-h\"\n mjRecordLink\n [EntityName]=\"ProductPricesEntity\"\n [RecordID]=\"row.ID\"\n [DisplayName]=\"row.Name\"\n [HandleClick]=\"false\"\n (click)=\"TogglePrice(row)\">\n @if (EditMode && !row.Inherited) {\n <span class=\"mjo-offer-grip\" cdkDragHandle title=\"Drag to change priority\">\n <i class=\"fa-solid fa-grip-vertical\"></i>\n </span>\n }\n <span class=\"mjo-offer-amt\">{{ FormatCurrency(row.Amount) }}</span>\n <span class=\"mjo-offer-copy\">\n <span class=\"mjo-offer-name\">{{ row.Name }}</span>\n @if (row.WhenText) {\n <span class=\"mjo-offer-when\">{{ row.WhenText }}</span>\n }\n </span>\n @if (row.StatusText) {\n <span class=\"mjo-offer-status\" [class.retired]=\"row.Retired\">{{ row.StatusText }}</span>\n }\n @if (row.SourceLabel) {\n <span class=\"mjo-offer-from inherited\">{{ row.SourceLabel }}</span>\n }\n </button>\n @if (ExpandedPriceID === row.ID && PriceCanExpand(row)) {\n <div class=\"mjo-offer-body\" (click)=\"$event.stopPropagation()\">\n @if (row.Inherited) {\n <p class=\"mjo-inherit-note\">\n Inherited from the product category. A product price with the same name overrides it.\n @if (EditMode) {\n <button type=\"button\" class=\"mjo-btn-subtle\" (click)=\"OverrideInherited(row)\">Override on this product</button>\n }\n </p>\n } @else {\n @if (EditMode) {\n <div class=\"mjo-offer-fields\">\n <label class=\"mjo-field-group\">\n <span class=\"mjo-sub-label\">Name</span>\n <input class=\"mjo-input-text\" [(ngModel)]=\"row.Record.Name\" (blur)=\"SavePrice(row.Record)\">\n </label>\n <label class=\"mjo-field-group\">\n <span class=\"mjo-sub-label\">Price</span>\n <input type=\"text\" mjoCurrency class=\"mjo-input-price\" [(ngModel)]=\"row.Record.Amount\" (blur)=\"SavePrice(row.Record)\">\n </label>\n <label class=\"mjo-field-group\">\n <span class=\"mjo-sub-label\">Pricing model</span>\n <select class=\"mjo-input-select\" [(ngModel)]=\"row.Record.PricingModel\" (change)=\"SavePrice(row.Record)\">\n <option value=\"PerUnit\">Per unit</option>\n <option value=\"Package\">Package</option>\n <option value=\"Volume\">Volume</option>\n <option value=\"Flat\">Flat</option>\n </select>\n </label>\n </div>\n <div class=\"mjo-offer-fields mjo-offer-lifecycle\">\n <label class=\"mjo-field-group\">\n <span class=\"mjo-sub-label\">Status</span>\n <select class=\"mjo-input-select\" [(ngModel)]=\"row.Record.Status\" (change)=\"OnStatusChange(row.Record)\" [disabled]=\"IsSaving\">\n <option value=\"Active\">Active</option>\n <option value=\"Inactive\">Inactive</option>\n </select>\n </label>\n <label class=\"mjo-field-group\">\n <span class=\"mjo-sub-label\">Expiration date</span>\n <input type=\"date\" class=\"mjo-input-text\" [ngModel]=\"EffectiveToInput(row.Record)\" (ngModelChange)=\"OnEffectiveToChange(row.Record, $event)\" [disabled]=\"IsSaving\">\n </label>\n @if (row.Retired) {\n <button type=\"button\" class=\"mjo-btn-subtle\" (click)=\"RestorePrice(row.Record)\" [disabled]=\"IsSaving\" title=\"Make this price available to new order lines\">Activate</button>\n } @else {\n <button type=\"button\" class=\"mjo-btn-subtle\" (click)=\"RetirePrice(row.Record)\" [disabled]=\"IsSaving\" title=\"Stop offering this price on new order lines. Existing lines keep their price.\">Deactivate</button>\n }\n <button type=\"button\" class=\"mjo-btn-subtle\" (click)=\"OpenPriceRecord(row.Record, $event)\">\n <i class=\"fa-solid fa-arrow-up-right-from-square\"></i>\n <span>Open record</span>\n </button>\n </div>\n }\n @if (EditMode && row.WhenText && WhenEditorPriceID !== row.ID) {\n <div class=\"mjo-when-read\">\n <button type=\"button\" class=\"mjo-btn-subtle\" (click)=\"OpenWhenEditor(row)\">Edit conditions</button>\n </div>\n } @else if (EditMode && WhenEditorPriceID !== row.ID) {\n <button type=\"button\" class=\"mjo-btn-subtle\" (click)=\"OpenWhenEditor(row)\">+ Conditions</button>\n }\n @if (EditMode && WhenEditorPriceID === row.ID) {\n <div class=\"mjo-when-edit\">\n <div class=\"mjo-when-head\">\n <div class=\"mjo-when-title\">Conditions</div>\n <label class=\"mjo-when-allfields\">\n <input type=\"checkbox\" [ngModel]=\"ShowAllWhenFields\" (ngModelChange)=\"ToggleAllWhenFields($event)\">\n <span>Show all fields</span>\n </label>\n </div>\n <mj-filter-builder\n [fields]=\"WhenFields\"\n [filter]=\"WhenFilter\"\n [showSummary]=\"true\"\n (filterChange)=\"OnWhenFilterChange($event)\">\n </mj-filter-builder>\n <div class=\"mjo-when-actions\">\n <button type=\"button\" class=\"mjo-btn-subtle\" (click)=\"ClearWhen(row)\">Remove conditions</button>\n <button type=\"button\" class=\"mjo-btn-subtle\" (click)=\"CloseWhenEditor()\">Cancel</button>\n <button type=\"button\" class=\"mjo-btn-add\" (click)=\"SaveWhen(row)\">Save conditions</button>\n </div>\n </div>\n }\n @if (HasAdvanced(row.Record) || AdvancedEditingID === row.ID) {\n <div class=\"mjo-adv\">\n <div class=\"mjo-when-title\">Quantity, fee type & priority</div>\n @if (EditMode) {\n <div class=\"mjo-adv-grid\">\n <label class=\"mjo-field-group\"><span class=\"mjo-sub-label\">Min quantity</span>\n <input type=\"number\" class=\"mjo-input-num\" [(ngModel)]=\"row.Record.MinQuantity\" (blur)=\"SavePrice(row.Record)\">\n </label>\n <label class=\"mjo-field-group\"><span class=\"mjo-sub-label\">Max quantity</span>\n <input type=\"number\" class=\"mjo-input-num\" [(ngModel)]=\"row.Record.MaxQuantity\" (blur)=\"SavePrice(row.Record)\">\n </label>\n <label class=\"mjo-field-group\"><span class=\"mjo-sub-label\">Fee type</span>\n <select class=\"mjo-input-select\" [(ngModel)]=\"row.Record.FeeType\" (change)=\"SavePrice(row.Record)\">\n <option value=\"Standard\">Standard</option>\n <option value=\"Setup\">Setup</option>\n <option value=\"Recurring\">Recurring</option>\n <option value=\"Overage\">Overage</option>\n </select>\n </label>\n <label class=\"mjo-field-group\"><span class=\"mjo-sub-label\">Priority</span>\n <input type=\"number\" class=\"mjo-input-num\" [(ngModel)]=\"row.Record.Priority\" (blur)=\"SavePrice(row.Record)\">\n </label>\n </div>\n } @else {\n <div class=\"mjo-adv-read\">\n @if (row.Record.MinQuantity != null) {\n <span>Min quantity {{ row.Record.MinQuantity }}</span>\n }\n @if (row.Record.MaxQuantity != null) {\n <span>Max quantity {{ row.Record.MaxQuantity }}</span>\n }\n @if (row.Record.FeeType && row.Record.FeeType !== 'Standard') {\n <span>{{ row.Record.FeeType }} fee</span>\n }\n @if (row.Record.EffectiveTo) {\n <span>Expires {{ FormatDate(row.Record.EffectiveTo) }}</span>\n }\n </div>\n }\n </div>\n } @else if (EditMode) {\n <button type=\"button\" class=\"mjo-btn-subtle\" (click)=\"OpenAdvanced(row.ID, $event)\">+ Quantity, fee type & priority</button>\n }\n }\n </div>\n }\n </article>\n }\n </div>\n }\n\n @if (EditMode) {\n <div class=\"mjo-quick-add-bar\">\n <div class=\"mjo-quick-add-inputs\">\n <span class=\"mjo-quick-add-label\">\n <i class=\"fa-solid fa-plus-circle\"></i> Add price\n </span>\n <label class=\"mjo-field-group\">\n <span class=\"mjo-sub-label\">Name</span>\n <input class=\"mjo-input-text\" [(ngModel)]=\"NewPriceName\" placeholder=\"List price\">\n </label>\n <label class=\"mjo-field-group\">\n <span class=\"mjo-sub-label\">Price</span>\n <input type=\"text\" mjoCurrency class=\"mjo-input-price\" [(ngModel)]=\"NewPriceAmount\">\n </label>\n <label class=\"mjo-field-group\">\n <span class=\"mjo-sub-label\">Effective date</span>\n <input type=\"date\" class=\"mjo-input-text\" [(ngModel)]=\"NewPriceEffectiveFrom\" [disabled]=\"IsSaving\">\n </label>\n <span class=\"mjo-quick-add-hint\">Applies to orders dated on or after this date.</span>\n <button type=\"button\" class=\"mjo-btn-add\" [disabled]=\"IsSaving\" (click)=\"AddPrice()\">\n @if (IsSaving) {\n <mj-loading class=\"mjo-btn-add__loading\" [showText]=\"false\" size=\"small\" logoColor=\"currentColor\"></mj-loading>\n <span>Saving\u2026</span>\n } @else {\n <i class=\"fa-solid fa-plus\"></i>\n <span>Add price</span>\n }\n </button>\n </div>\n </div>\n }\n }\n </div>\n</div>\n\n@if (QuoteDrawerOpen) {\n <div class=\"mjo-quote-scrim\" (click)=\"CloseQuote()\"></div>\n <aside class=\"mjo-quote-drawer\" role=\"dialog\" aria-label=\"Price simulation\">\n <div class=\"mjo-quote-drawer-h\">\n <h3>Price simulation</h3>\n <button type=\"button\" class=\"mjo-btn-subtle mjo-quote-close\" (click)=\"CloseQuote()\" aria-label=\"Close\">\n <i class=\"fa-solid fa-xmark\"></i>\n </button>\n </div>\n <p class=\"mjo-quote-lede\">\n @if (SelectedChannelID === null) {\n The price a sample customer would get today.\n } @else {\n The price a sample customer on this price list would get today. When the list has no price that applies, the Standard price does, as on an order.\n }\n </p>\n\n <div class=\"mjo-quote-form\">\n <label class=\"mjo-quote-field\">\n <span>Customer type</span>\n <select class=\"mjo-input-select\" [(ngModel)]=\"QuoteOrgType\" (ngModelChange)=\"RunQuote()\">\n <option value=\"Member\">Member</option>\n <option value=\"Prospect\">Prospect</option>\n </select>\n </label>\n <label class=\"mjo-quote-field\">\n <span>Quantity</span>\n <input type=\"number\" class=\"mjo-input-num\" [(ngModel)]=\"SimQuantity\" min=\"1\" (ngModelChange)=\"RunQuote()\">\n </label>\n <label class=\"mjo-quote-field mjo-quote-field--wide\">\n <span>Annual revenue ($M)</span>\n <input type=\"number\" class=\"mjo-input-num\" [(ngModel)]=\"QuoteRevenueMillions\" min=\"0\" step=\"0.5\" placeholder=\"Unknown\" (ngModelChange)=\"RunQuote()\">\n <small>Leave blank for a customer with no revenue on file.</small>\n </label>\n </div>\n\n <div class=\"mjo-quote-result\">\n <div class=\"mjo-quote-amt\">{{ QuoteResult.AmountText }}</div>\n <p class=\"mjo-quote-why\">{{ QuoteResult.Why }}</p>\n </div>\n\n @if (QuoteResult.Skipped.length) {\n <div class=\"mjo-quote-skipped-title\">Not applied</div>\n <ul class=\"mjo-quote-skipped\">\n @for (s of QuoteResult.Skipped; track s) {\n <li>{{ s }}</li>\n }\n </ul>\n }\n </aside>\n}\n", styles: [".mjo-pricing-widget-wrap {\n display: flex;\n flex-direction: column;\n gap: 16px;\n width: 100%;\n position: relative;\n}\n\n/* In-Widget Toast Notification */\n.mjo-toast {\n display: flex;\n align-items: center;\n justify-content: space-between;\n padding: 10px 16px;\n border-radius: var(--mj-radius-md, 8px);\n font-size: 13px;\n font-weight: 500;\n animation: mjo-toast-in 0.25s cubic-bezier(0.16, 1, 0.3, 1);\n box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);\n border: 1px solid transparent;\n}\n\n@keyframes mjo-toast-in {\n from { opacity: 0; transform: translateY(-6px); }\n to { opacity: 1; transform: translateY(0); }\n}\n\n.mjo-toast--success {\n background: rgba(22, 163, 74, 0.15);\n border-color: rgba(22, 163, 74, 0.3);\n color: #22c55e;\n}\n\n.mjo-toast--error {\n background: rgba(239, 68, 68, 0.15);\n border-color: rgba(239, 68, 68, 0.3);\n color: #f87171;\n}\n\n.mjo-toast--info {\n background: rgba(2, 132, 199, 0.15);\n border-color: rgba(2, 132, 199, 0.3);\n color: #38bdf8;\n}\n\n.mjo-toast-left {\n display: flex;\n align-items: center;\n gap: 10px;\n}\n\n.mjo-toast-left i {\n font-size: 16px;\n}\n\n.mjo-toast-msg {\n line-height: 1.4;\n}\n\n.mjo-toast-close {\n background: transparent;\n border: none;\n color: currentColor;\n opacity: 0.7;\n cursor: pointer;\n padding: 4px 8px;\n border-radius: 4px;\n font-size: 13px;\n}\n\n.mjo-toast-close:hover {\n opacity: 1;\n}\n\n.mjo-pricing-card {\n background: var(--mj-bg-surface-card, rgba(255, 255, 255, 0.05));\n border: 1px solid var(--mj-border-default, rgba(255, 255, 255, 0.12));\n border-radius: var(--mj-radius-lg, 10px);\n overflow: hidden;\n}\n\n.mjo-card-header-actions {\n display: flex;\n gap: 8px;\n align-items: center;\n}\n\n.mjo-card-header {\n padding: 12px 16px;\n background: var(--mj-bg-surface-sunken, rgba(0, 0, 0, 0.1));\n border-bottom: 1px solid var(--mj-border-default, rgba(255, 255, 255, 0.1));\n display: flex;\n align-items: center;\n justify-content: space-between;\n gap: 12px;\n}\n\n.mjo-card-title {\n font-size: 13.5px;\n font-weight: 700;\n color: var(--mj-text-primary, #0f172a);\n display: flex;\n align-items: center;\n gap: 8px;\n}\n\n.mjo-card-title i {\n color: var(--mj-brand-primary, #0284c7);\n}\n\n.mjo-base-pill {\n font-size: 12px;\n color: var(--mj-text-muted, #64748b);\n}\n\n.mjo-base-pill strong {\n font-family: var(--mj-font-family-mono);\n color: var(--mj-brand-primary, #0284c7);\n}\n\n.mjo-pricing-fields {\n padding: 16px;\n display: grid;\n grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));\n gap: 16px;\n}\n\n/* Channel Tabs Header */\n.mjo-channel-bar {\n display: flex;\n align-items: center;\n justify-content: flex-start;\n background: var(--mj-bg-surface-sunken, rgba(0, 0, 0, 0.1));\n border-bottom: 1px solid var(--mj-border-default, rgba(255, 255, 255, 0.1));\n padding: 0 12px;\n flex-wrap: wrap;\n gap: 8px;\n}\n\n.mjo-channel-label {\n font-size: 11.5px;\n font-weight: 600;\n text-transform: uppercase;\n letter-spacing: 0.04em;\n color: var(--mj-text-muted, #94a3b8);\n padding-right: 4px;\n}\n\n.mjo-channel-list {\n display: flex;\n align-items: center;\n gap: 4px;\n overflow-x: auto;\n}\n\n.mjo-channel-tab {\n display: inline-flex;\n align-items: center;\n gap: 8px;\n padding: 12px 14px;\n background: transparent;\n border: none;\n border-bottom: 2px solid transparent;\n font-size: 12.5px;\n font-weight: 600;\n color: var(--mj-text-muted, #94a3b8);\n cursor: pointer;\n transition: all 0.15s ease;\n white-space: nowrap;\n}\n\n.mjo-channel-tab:hover {\n color: var(--mj-text-primary, #0f172a);\n}\n\n.mjo-channel-tab.active {\n color: var(--mj-brand-primary, #0284c7);\n border-bottom-color: var(--mj-brand-primary, #0284c7);\n background: var(--mj-bg-surface-card, rgba(255, 255, 255, 0.05));\n}\n\n.mjo-channel-count {\n font-size: 10px;\n font-weight: 700;\n padding: 2px 6px;\n border-radius: 9999px;\n background: var(--mj-bg-surface-sunken, rgba(0, 0, 0, 0.15));\n color: var(--mj-text-secondary, #cbd5e1);\n}\n\n.mjo-channel-tab.active .mjo-channel-count {\n background: rgba(2, 132, 199, 0.18);\n color: var(--mj-brand-primary, #0284c7);\n}\n\n.mjo-channel-actions {\n display: flex;\n align-items: center;\n gap: 8px;\n}\n\n.mjo-btn-subtle {\n display: inline-flex;\n align-items: center;\n gap: 6px;\n padding: 6px 12px;\n border-radius: 6px;\n font-size: 11.5px;\n font-weight: 600;\n color: var(--mj-text-primary, #0f172a);\n background: var(--mj-bg-surface-card, rgba(255, 255, 255, 0.05));\n border: 1px solid var(--mj-border-default, rgba(255, 255, 255, 0.12));\n cursor: pointer;\n transition: all 0.15s ease;\n}\n\n.mjo-btn-subtle:hover {\n border-color: var(--mj-brand-primary, #0284c7);\n color: var(--mj-brand-primary, #0284c7);\n}\n\n/* Tier Ladder Table */\n.mjo-ladder-table-wrap {\n overflow-x: auto;\n width: 100%;\n}\n\n.mjo-ladder-table {\n width: 100%;\n border-collapse: collapse;\n font-size: 13px;\n text-align: left;\n}\n\n.mjo-ladder-table th {\n padding: 10px 14px;\n font-size: 11px;\n font-weight: 700;\n text-transform: uppercase;\n letter-spacing: 0.04em;\n color: var(--mj-text-muted, #64748b);\n background: var(--mj-bg-surface-sunken, rgba(0, 0, 0, 0.05));\n border-bottom: 1px solid var(--mj-border-default, rgba(255, 255, 255, 0.1));\n}\n\n.mjo-ladder-table td {\n padding: 11px 14px;\n border-bottom: 1px solid var(--mj-border-subtle, rgba(255, 255, 255, 0.06));\n color: var(--mj-text-primary, #0f172a);\n vertical-align: middle;\n}\n\n.mjo-ladder-table tr:hover {\n background: var(--mj-bg-surface-hover, rgba(255, 255, 255, 0.03));\n}\n\n.mjo-tier-title {\n color: var(--mj-brand-primary, #0284c7);\n}\n\n.mjo-range-pill {\n display: inline-flex;\n align-items: center;\n gap: 4px;\n font-family: var(--mj-font-family-mono);\n font-weight: 700;\n font-size: 12px;\n padding: 3px 8px;\n border-radius: 6px;\n background: var(--mj-bg-surface-sunken, rgba(0, 0, 0, 0.12));\n border: 1px solid var(--mj-border-default, rgba(255, 255, 255, 0.1));\n}\n\n.mjo-price-input {\n font-family: var(--mj-font-family-mono);\n font-size: 13.5px;\n font-weight: 700;\n color: var(--mj-text-primary, #0f172a);\n background: var(--mj-bg-surface, rgba(0, 0, 0, 0.2));\n border: 1px solid var(--mj-border-default, rgba(255, 255, 255, 0.15));\n border-radius: 6px;\n padding: 5px 8px;\n width: 100px;\n transition: all 0.15s ease;\n}\n\n.mjo-price-input:focus {\n outline: none;\n border-color: var(--mj-brand-primary, #0284c7);\n box-shadow: 0 0 0 2px rgba(2, 132, 199, 0.25);\n}\n\n.mjo-price-val {\n font-family: var(--mj-font-family-mono);\n font-size: 13px;\n font-weight: 700;\n color: var(--mj-text-primary, #0f172a);\n display: inline-block;\n padding: 4px 0;\n}\n\n.mjo-disc-tag {\n display: inline-flex;\n align-items: center;\n gap: 4px;\n font-size: 11px;\n font-weight: 700;\n padding: 2px 7px;\n border-radius: 4px;\n background: rgba(22, 163, 74, 0.15);\n color: #22c55e;\n}\n\n.mjo-standard-tag {\n font-size: 11px;\n color: var(--mj-text-muted, #94a3b8);\n}\n\n.mjo-savings-val {\n color: #22c55e;\n font-family: var(--mj-font-family-mono);\n font-size: 12.5px;\n}\n\n.mjo-model-tag {\n font-size: 11px;\n font-weight: 600;\n padding: 2px 7px;\n border-radius: 4px;\n background: var(--mj-bg-surface-sunken, rgba(0, 0, 0, 0.1));\n color: var(--mj-text-secondary, #cbd5e1);\n}\n\n.mjo-date-tag {\n font-size: 11.5px;\n color: var(--mj-text-muted, #94a3b8);\n}\n\n.mjo-th-num, .mjo-td-num { text-align: left; }\n.mjo-th-actions, .mjo-td-actions { text-align: right; }\n\n.mjo-action-btn {\n width: 28px;\n height: 28px;\n border-radius: 6px;\n border: 1px solid var(--mj-border-default, rgba(255, 255, 255, 0.1));\n background: var(--mj-bg-surface, rgba(255, 255, 255, 0.05));\n color: var(--mj-text-muted, #94a3b8);\n cursor: pointer;\n font-size: 11px;\n display: inline-flex;\n align-items: center;\n justify-content: center;\n transition: all 0.15s ease;\n margin-left: 4px;\n}\n\n.mjo-action-btn:hover {\n color: var(--mj-brand-primary, #0284c7);\n border-color: var(--mj-brand-primary, #0284c7);\n}\n\n.mjo-action-btn--delete:hover {\n color: #ef4444;\n border-color: #ef4444;\n}\n\n/* 1-Click Quick Add Bar */\n.mjo-quick-add-bar {\n display: flex;\n align-items: center;\n justify-content: space-between;\n padding: 12px 16px;\n background: var(--mj-bg-surface-sunken, rgba(0, 0, 0, 0.1));\n border-top: 1px solid var(--mj-border-default, rgba(255, 255, 255, 0.1));\n gap: 12px;\n flex-wrap: wrap;\n}\n\n.mjo-quick-add-inputs {\n display: flex;\n align-items: center;\n gap: 10px;\n flex-wrap: wrap;\n}\n\n.mjo-quick-add-label {\n font-size: 12.5px;\n font-weight: 700;\n color: var(--mj-brand-primary, #0284c7);\n display: flex;\n align-items: center;\n gap: 6px;\n}\n\n.mjo-quick-add-hint {\n font-size: 11.5px;\n color: var(--mj-text-muted, #94a3b8);\n}\n\n.mjo-field-group {\n display: flex;\n align-items: center;\n gap: 4px;\n}\n\n.mjo-sub-label {\n font-size: 11.5px;\n font-weight: 600;\n color: var(--mj-text-muted, #94a3b8);\n}\n\n.mjo-input-num {\n width: 65px;\n padding: 5px 8px;\n font-size: 12.5px;\n font-family: var(--mj-font-family-mono);\n font-weight: 700;\n text-align: center;\n border-radius: 6px;\n border: 1px solid var(--mj-border-default, rgba(255, 255, 255, 0.15));\n background: var(--mj-bg-surface, rgba(0, 0, 0, 0.2));\n color: var(--mj-text-primary, #0f172a);\n}\n\n.mjo-input-price {\n width: 110px;\n padding: 5px 8px;\n font-size: 12.5px;\n font-family: var(--mj-font-family-mono);\n font-weight: 700;\n text-align: right;\n border-radius: 6px;\n border: 1px solid var(--mj-border-default, rgba(255, 255, 255, 0.15));\n background: var(--mj-bg-surface, rgba(0, 0, 0, 0.2));\n color: var(--mj-text-primary, #0f172a);\n}\n\n.mjo-input-select {\n padding: 5px 8px;\n font-size: 12px;\n font-weight: 600;\n border-radius: 6px;\n border: 1px solid var(--mj-border-default, rgba(255, 255, 255, 0.15));\n background: var(--mj-bg-surface, rgba(0, 0, 0, 0.2));\n color: var(--mj-text-primary, #0f172a);\n}\n\n.mjo-btn-add {\n display: inline-flex;\n align-items: center;\n gap: 6px;\n padding: 6px 14px;\n border-radius: 6px;\n font-size: 12px;\n font-weight: 700;\n color: #ffffff;\n background: #0284c7;\n border: none;\n cursor: pointer;\n transition: all 0.15s ease;\n}\n\n.mjo-btn-add:hover {\n background: #0369a1;\n}\n\n.mjo-btn-add:disabled {\n opacity: 0.5;\n cursor: not-allowed;\n}\n\n/* mj-loading fills its container by default; inside the button it sizes to its small logo. */\n.mjo-btn-add__loading {\n width: auto;\n height: auto;\n flex: none;\n}\n\n.mjo-guard-badge {\n font-size: 11.5px;\n color: #22c55e;\n display: flex;\n align-items: center;\n gap: 6px;\n}\n\n/* Volume Step Curve Diagram */\n.mjo-step-curve-wrap {\n padding: 14px 18px;\n display: flex;\n flex-direction: column;\n gap: 8px;\n}\n\n.mjo-step-curve-title {\n font-size: 11px;\n font-weight: 700;\n text-transform: uppercase;\n letter-spacing: 0.04em;\n color: var(--mj-text-muted, #94a3b8);\n display: flex;\n align-items: center;\n gap: 6px;\n}\n\n.mjo-step-curve-title i {\n color: var(--mj-brand-primary, #0284c7);\n}\n\n.mjo-step-curve-bars {\n display: flex;\n align-items: flex-end;\n gap: 12px;\n height: 80px;\n padding-top: 8px;\n}\n\n.mjo-step-col {\n flex: 1;\n display: flex;\n flex-direction: column;\n align-items: center;\n gap: 4px;\n height: 100%;\n justify-content: flex-end;\n}\n\n.mjo-step-track {\n width: 100%;\n max-width: 60px;\n height: 100%;\n background: var(--mj-bg-surface-sunken, rgba(0, 0, 0, 0.1));\n border-radius: 4px 4px 0 0;\n display: flex;\n align-items: flex-end;\n}\n\n.mjo-step-fill {\n width: 100%;\n border-radius: 4px 4px 0 0;\n background: linear-gradient(180deg, #0284c7 0%, #0369a1 100%);\n min-height: 8px;\n transition: height 0.3s ease;\n}\n\n.mjo-step-val {\n font-size: 11px;\n font-weight: 700;\n font-family: var(--mj-font-family-mono);\n color: var(--mj-brand-primary, #0284c7);\n}\n\n.mjo-step-label {\n font-size: 10px;\n font-family: var(--mj-font-family-mono);\n color: var(--mj-text-muted, #94a3b8);\n}\n\n.mjo-loading-state {\n display: flex;\n align-items: center;\n justify-content: center;\n gap: 10px;\n padding: 30px;\n font-size: 13px;\n color: var(--mj-text-muted, #94a3b8);\n}\n\n.mjo-grid-wrap {\n padding: 0;\n min-height: 400px;\n height: 420px;\n}\n\n.mjo-price-list {\n display: flex;\n flex-direction: column;\n gap: 8px;\n padding: 12px 14px 16px;\n}\n\n.mjo-offer {\n border: 1px solid var(--mj-border-default, rgba(255, 255, 255, 0.12));\n border-radius: 12px;\n background: var(--mj-bg-surface-sunken, rgba(0, 0, 0, 0.12));\n overflow: hidden;\n}\n\n.mjo-offer.selected {\n border-color: var(--mj-brand-primary, #38bdf8);\n box-shadow: inset 0 0 0 1px var(--mj-brand-primary, #38bdf8);\n}\n\n.mjo-offer-grip {\n color: var(--mj-text-muted, #94a3b8);\n cursor: grab;\n padding: 0 4px 0 0;\n display: inline-flex;\n}\n\n.mjo-offer-h {\n width: 100%;\n display: grid;\n grid-template-columns: 108px 1fr auto;\n gap: 14px;\n align-items: center;\n padding: 12px 14px;\n border: 0;\n background: transparent;\n color: inherit;\n text-align: left;\n cursor: pointer;\n}\n\n.mjo-offer-h:has(.mjo-offer-grip) {\n grid-template-columns: 18px 108px 1fr auto;\n}\n\n.mjo-offer-h:hover {\n background: color-mix(in srgb, var(--mj-brand-primary, #0076b6) 8%, transparent);\n}\n\n.mjo-offer-amt {\n font-variant-numeric: tabular-nums;\n font-weight: 700;\n font-size: 18px;\n letter-spacing: -0.02em;\n text-align: left;\n}\n\n.mjo-offer-copy {\n display: flex;\n flex-direction: column;\n gap: 2px;\n min-width: 0;\n}\n\n.mjo-offer-name {\n font-weight: 700;\n font-size: 14px;\n}\n\n.mjo-offer-when {\n font-size: 12.5px;\n color: var(--mj-text-muted, #94a3b8);\n}\n\n.mjo-offer-from {\n font-size: 11px;\n font-weight: 700;\n color: var(--mj-status-success-text, #86efac);\n white-space: nowrap;\n}\n\n.mjo-offer-body {\n padding: 0 14px 14px;\n border-top: 1px solid var(--mj-border-default, rgba(255, 255, 255, 0.1));\n}\n\n.mjo-when-read {\n display: flex;\n justify-content: space-between;\n align-items: center;\n gap: 12px;\n padding-top: 12px;\n font-size: 13px;\n color: var(--mj-text-secondary, #cbd5e1);\n}\n\n.mjo-when-edit {\n padding-top: 12px;\n}\n\n.mjo-when-actions {\n display: flex;\n justify-content: flex-end;\n gap: 8px;\n margin-top: 10px;\n}\n\n.mjo-quote-scrim {\n position: fixed;\n inset: 0;\n background: rgba(2, 6, 23, 0.55);\n z-index: 1000;\n}\n\n.mjo-quote-drawer {\n position: fixed;\n top: 0;\n right: 0;\n height: 100vh;\n width: min(440px, 100vw);\n box-sizing: border-box;\n overflow-y: auto;\n background: var(--mj-bg-page, #0f172a);\n border-left: 1px solid var(--mj-border-default, #334155);\n z-index: 1001;\n padding: 28px 28px 32px;\n font-size: 14px;\n line-height: 1.5;\n box-shadow: -16px 0 40px rgba(0, 0, 0, 0.35);\n}\n\n.mjo-quote-drawer-h {\n display: flex;\n justify-content: space-between;\n align-items: center;\n margin-bottom: 6px;\n}\n\n.mjo-quote-drawer h3 {\n margin: 0;\n font-size: 20px;\n font-weight: 700;\n}\n\n.mjo-quote-close {\n width: 32px;\n height: 32px;\n padding: 0;\n justify-content: center;\n font-size: 16px;\n}\n\n.mjo-quote-lede {\n color: var(--mj-text-muted, #94a3b8);\n font-size: 14px;\n margin: 0 0 24px;\n}\n\n.mjo-quote-form {\n display: grid;\n grid-template-columns: 1fr 1fr;\n gap: 16px 20px;\n padding-bottom: 24px;\n border-bottom: 1px solid var(--mj-border-default, rgba(255, 255, 255, 0.12));\n}\n\n.mjo-quote-field {\n display: flex;\n flex-direction: column;\n gap: 6px;\n min-width: 0;\n}\n\n.mjo-quote-field--wide {\n grid-column: 1 / -1;\n}\n\n.mjo-quote-field > span {\n font-size: 13px;\n font-weight: 600;\n color: var(--mj-text-muted, #94a3b8);\n}\n\n.mjo-quote-field > small {\n font-size: 12.5px;\n color: var(--mj-text-muted, #94a3b8);\n}\n\n.mjo-quote-field .mjo-input-select,\n.mjo-quote-field .mjo-input-num {\n width: 100%;\n box-sizing: border-box;\n text-align: left;\n font-size: 14px;\n padding: 8px 10px;\n}\n\n.mjo-quote-result {\n padding: 24px 0 8px;\n}\n\n.mjo-quote-amt {\n font-size: 34px;\n font-weight: 700;\n letter-spacing: -0.02em;\n margin: 0 0 6px;\n}\n\n.mjo-quote-why {\n font-size: 14px;\n color: var(--mj-text-muted, #94a3b8);\n margin: 0;\n}\n\n.mjo-offer.inherited {\n border-style: dashed;\n}\n\n.mjo-offer-from.inherited {\n color: #a78bfa;\n}\n\n.mjo-offer-fields,\n.mjo-adv-grid {\n display: flex;\n flex-wrap: wrap;\n gap: 10px;\n padding-top: 12px;\n}\n\n.mjo-input-text {\n background: var(--mj-bg-surface-sunken, rgba(0, 0, 0, 0.2));\n border: 1px solid var(--mj-border-default, rgba(255, 255, 255, 0.12));\n color: inherit;\n border-radius: 8px;\n padding: 6px 8px;\n min-width: 120px;\n}\n\n.mjo-when-title {\n font-size: 11px;\n font-weight: 700;\n letter-spacing: 0.05em;\n text-transform: uppercase;\n color: var(--mj-text-muted, #94a3b8);\n margin-bottom: 8px;\n}\n\n.mjo-when-rule {\n display: grid;\n grid-template-columns: 1fr 1fr 110px 1fr;\n gap: 6px;\n}\n\n.mjo-when-rule select,\n.mjo-when-rule input {\n background: var(--mj-bg-surface-sunken, rgba(0, 0, 0, 0.2));\n border: 1px solid var(--mj-border-default, rgba(255, 255, 255, 0.12));\n color: inherit;\n border-radius: 8px;\n padding: 6px 8px;\n}\n\n.mjo-inherit-note {\n font-size: 12.5px;\n color: var(--mj-text-muted, #94a3b8);\n margin: 12px 0 0;\n}\n\n.mjo-adv {\n margin-top: 10px;\n font-size: 12px;\n color: var(--mj-text-muted, #94a3b8);\n}\n\n.mjo-adv-read {\n display: flex;\n flex-wrap: wrap;\n gap: 10px 16px;\n padding-top: 4px;\n font-size: 13px;\n color: var(--mj-text-secondary, #cbd5e1);\n}\n\n/* ---- View switch (cards / revenue bands / grid) ---- */\n.mjo-view-switch {\n display: inline-flex;\n border: 1px solid var(--mj-border-default, rgba(255, 255, 255, 0.12));\n border-radius: 6px;\n overflow: hidden;\n}\n\n.mjo-view-switch button {\n display: inline-flex;\n align-items: center;\n gap: 6px;\n padding: 6px 10px;\n font-size: 11.5px;\n font-weight: 600;\n background: transparent;\n border: none;\n border-right: 1px solid var(--mj-border-default, rgba(255, 255, 255, 0.12));\n color: var(--mj-text-muted, #94a3b8);\n cursor: pointer;\n}\n\n.mjo-view-switch button:last-child {\n border-right: none;\n}\n\n.mjo-view-switch button:hover {\n color: var(--mj-brand-primary, #0284c7);\n}\n\n.mjo-view-switch button.active {\n background: var(--mj-brand-primary, #0284c7);\n color: #fff;\n}\n\n/* ---- Price status (retired / ends) ---- */\n.mjo-offer-status {\n font-size: 11px;\n font-weight: 600;\n padding: 2px 8px;\n border-radius: 999px;\n white-space: nowrap;\n background: rgba(22, 163, 74, 0.12);\n color: var(--mj-status-success-text, #86efac);\n}\n\n.mjo-offer-status.retired {\n background: rgba(148, 163, 184, 0.18);\n color: var(--mj-text-muted, #94a3b8);\n}\n\n.mjo-offer.retired .mjo-offer-amt,\n.mjo-offer.retired .mjo-offer-name {\n opacity: 0.6;\n text-decoration: line-through;\n}\n\n.mjo-offer-lifecycle {\n align-items: flex-end;\n border-top: 1px dashed var(--mj-border-default, rgba(255, 255, 255, 0.1));\n margin-top: 10px;\n}\n\n/* ---- Revenue band editor ---- */\n.mjo-bands {\n display: flex;\n flex-direction: column;\n gap: 12px;\n padding: 14px 16px 16px;\n}\n\n.mjo-bands-lede {\n margin: 0;\n font-size: 12.5px;\n line-height: 1.5;\n color: var(--mj-text-muted, #94a3b8);\n}\n\n.mjo-band-table-wrap {\n overflow-x: auto;\n}\n\n.mjo-band-table {\n width: 100%;\n border-collapse: collapse;\n font-size: 13px;\n}\n\n.mjo-band-table th {\n text-align: left;\n font-size: 11px;\n font-weight: 700;\n letter-spacing: 0.03em;\n text-transform: uppercase;\n color: var(--mj-text-muted, #94a3b8);\n padding: 6px 8px;\n border-bottom: 1px solid var(--mj-border-default, rgba(255, 255, 255, 0.12));\n}\n\n.mjo-band-table td {\n padding: 8px;\n border-bottom: 1px solid var(--mj-border-default, rgba(255, 255, 255, 0.08));\n vertical-align: middle;\n}\n\n.mjo-band-table th.num,\n.mjo-band-table td.num {\n text-align: right;\n font-family: var(--mj-font-family-mono);\n}\n\n.mjo-band-table tr.retired td {\n opacity: 0.6;\n}\n\n.mjo-band-name {\n display: flex;\n flex-direction: column;\n gap: 2px;\n}\n\n.mjo-band-title {\n font-weight: 600;\n color: var(--mj-text-primary, #0f172a);\n}\n\n.mjo-band-range {\n font-size: 11.5px;\n color: var(--mj-text-muted, #94a3b8);\n}\n\n.mjo-band-amount {\n font-weight: 700;\n color: var(--mj-brand-primary, #0284c7);\n}\n\n.mjo-band-actions {\n white-space: nowrap;\n text-align: right;\n}\n\n.mjo-band-actions .mjo-btn-subtle + .mjo-btn-subtle {\n margin-left: 6px;\n}\n\n.mjo-btn-icon {\n padding: 6px 8px;\n}\n\n.mjo-input-num--wide {\n width: 90px;\n}\n\n.mjo-input-text--wide {\n width: min(420px, 100%);\n}\n\n.mjo-field-group--grow {\n flex: 1 1 320px;\n}\n\n.mjo-ladder-issues,\n.mjo-ladder-ok {\n display: flex;\n flex-wrap: wrap;\n align-items: center;\n gap: 8px;\n font-size: 12.5px;\n padding: 8px 12px;\n border-radius: 6px;\n}\n\n.mjo-ladder-issues {\n background: rgba(245, 158, 11, 0.12);\n border: 1px solid rgba(245, 158, 11, 0.3);\n color: #fbbf24;\n}\n\n.mjo-ladder-issue {\n font-weight: 600;\n padding: 1px 8px;\n border-radius: 999px;\n background: rgba(245, 158, 11, 0.18);\n}\n\n.mjo-ladder-ok {\n background: rgba(22, 163, 74, 0.1);\n border: 1px solid rgba(22, 163, 74, 0.25);\n color: var(--mj-status-success-text, #86efac);\n}\n\n.mjo-band-setup {\n display: flex;\n flex-direction: column;\n gap: 8px;\n padding: 12px;\n border: 1px dashed var(--mj-border-default, rgba(255, 255, 255, 0.15));\n border-radius: 8px;\n}\n\n/* ---- When editor header ---- */\n.mjo-when-head {\n display: flex;\n align-items: center;\n justify-content: space-between;\n gap: 12px;\n}\n\n.mjo-when-allfields {\n display: inline-flex;\n align-items: center;\n gap: 6px;\n font-size: 11.5px;\n color: var(--mj-text-muted, #94a3b8);\n cursor: pointer;\n}\n\n/* ---- Quote drawer additions ---- */\n.mjo-quote-skipped-title {\n margin-top: 20px;\n font-size: 12px;\n font-weight: 700;\n letter-spacing: 0.03em;\n text-transform: uppercase;\n color: var(--mj-text-muted, #94a3b8);\n}\n\n.mjo-quote-skipped {\n margin: 8px 0 0;\n padding-left: 18px;\n font-size: 13.5px;\n line-height: 1.6;\n color: var(--mj-text-muted, #94a3b8);\n}\n"] }]
|
|
2704
|
+
args: [{ standalone: false, selector: 'bizapps-product-pricing-widget', template: "<div class=\"mjo-pricing-widget-wrap\">\n @if (ActiveToast) {\n <div class=\"mjo-toast\" [class]=\"'mjo-toast--' + ActiveToast.Type\">\n <div class=\"mjo-toast-left\">\n <i [class]=\"ActiveToast.Icon\"></i>\n <span class=\"mjo-toast-msg\">{{ ActiveToast.Message }}</span>\n </div>\n <button type=\"button\" class=\"mjo-toast-close\" (click)=\"DismissToast()\">\n <i class=\"fa-solid fa-xmark\"></i>\n </button>\n </div>\n }\n\n <div class=\"mjo-pricing-card\">\n <div class=\"mjo-card-header\">\n <div class=\"mjo-card-title\">\n <i class=\"fa-solid fa-tags\"></i>\n <span>Pricing</span>\n </div>\n <div class=\"mjo-card-header-actions\">\n <button type=\"button\" class=\"mjo-btn-subtle\" (click)=\"OpenQuote()\" title=\"See which price a sample customer receives\">\n <i class=\"fa-solid fa-calculator\"></i>\n <span>Simulate price</span>\n </button>\n @if (RetiredCount > 0) {\n <button type=\"button\" class=\"mjo-btn-subtle\" (click)=\"ToggleRetired()\" [title]=\"ShowRetired ? 'Hide inactive, expired and older-order prices' : 'Show inactive, expired and older-order prices'\">\n <i [class]=\"ShowRetired ? 'fa-solid fa-eye-slash' : 'fa-solid fa-eye'\"></i>\n <span>{{ ShowRetired ? 'Hide inactive' : 'Show inactive (' + RetiredCount + ')' }}</span>\n </button>\n }\n <div class=\"mjo-view-switch\" role=\"tablist\" aria-label=\"Pricing view\">\n <button type=\"button\" role=\"tab\" [class.active]=\"ViewMode === 'cards'\" [attr.aria-selected]=\"ViewMode === 'cards'\" (click)=\"SetView('cards')\">\n <i class=\"fa-solid fa-tags\"></i><span>Prices</span>\n </button>\n @if (BandRows.length > 0 || EditMode) {\n <button type=\"button\" role=\"tab\" [class.active]=\"ViewMode === 'bands'\" [attr.aria-selected]=\"ViewMode === 'bands'\" (click)=\"SetView('bands')\">\n <i class=\"fa-solid fa-layer-group\"></i><span>Revenue bands</span>\n </button>\n }\n <button type=\"button\" role=\"tab\" [class.active]=\"ViewMode === 'grid'\" [attr.aria-selected]=\"ViewMode === 'grid'\" (click)=\"SetView('grid')\">\n <i class=\"fa-solid fa-table-cells\"></i><span>Grid</span>\n </button>\n </div>\n </div>\n </div>\n\n @if (ShowChannelBar) {\n <div class=\"mjo-channel-bar\" role=\"tablist\" aria-label=\"Price list\">\n <span class=\"mjo-channel-label\">Price list</span>\n <div class=\"mjo-channel-list\">\n @for (ch of VisibleChannels; track ch.ID) {\n <button\n type=\"button\"\n class=\"mjo-channel-tab\"\n [class.active]=\"SelectedChannelID === ch.ID\"\n role=\"tab\"\n [attr.aria-selected]=\"SelectedChannelID === ch.ID\"\n [title]=\"ch.ID == null ? 'Prices every customer can receive' : (ch.DiscountDescription || 'Prices for customers assigned to this price list')\"\n mjRecordLink\n [EntityName]=\"PriceListsEntity\"\n [RecordID]=\"ch.ID ?? ''\"\n [DisplayName]=\"ch.Name\"\n [HandleClick]=\"false\"\n (click)=\"SelectChannel(ch.ID)\">\n <i [class]=\"ch.Icon\"></i>\n <span>{{ ch.Name }}</span>\n <span class=\"mjo-channel-count\">{{ ch.TierCount }} {{ ch.TierCount === 1 ? 'price' : 'prices' }}</span>\n </button>\n }\n </div>\n </div>\n }\n\n @if (ViewMode === 'grid') {\n @if (ProductPricesViewParams) {\n <div class=\"mjo-grid-wrap\">\n <mj-explorer-entity-data-grid\n [Params]=\"ProductPricesViewParams\"\n [NewRecordValues]=\"NewPriceRecordValues\"\n [Height]=\"420\"\n [AllowLoad]=\"true\"\n [ShowToolbar]=\"true\"\n [ShowNewButton]=\"EditMode\"\n [ShowDeleteButton]=\"EditMode\"\n (Navigate)=\"Navigate.emit($event)\">\n </mj-explorer-entity-data-grid>\n </div>\n }\n } @else if (ViewMode === 'bands') {\n <div class=\"mjo-bands\">\n @if (IsLoading) {\n <div class=\"mjo-loading-state\">\n <mj-loading text=\"Loading prices\u2026\" size=\"small\"></mj-loading>\n </div>\n } @else {\n <p class=\"mjo-bands-lede\">\n Price by the customer's annual revenue. Each band includes its lower limit and excludes its upper\n limit. Revenue comes from the organization's latest tax return; if none is on file, the band is\n selected on the order line.\n </p>\n @if (BandRows.length === 0) {\n <mj-empty-state\n Size=\"compact\"\n Icon=\"fa-solid fa-layer-group\"\n Title=\"No revenue bands\"\n [Message]=\"EditMode ? 'Create a band ladder below, or add bands one at a time.' : 'Edit the product to add revenue bands.'\" />\n } @else {\n <div class=\"mjo-band-table-wrap\">\n <table class=\"mjo-band-table\">\n <thead>\n <tr>\n <th>Band</th>\n <th class=\"num\">From ($M)</th>\n <th class=\"num\">To ($M)</th>\n <th class=\"num\">Price</th>\n <th>Status</th>\n @if (EditMode) { <th></th> }\n </tr>\n </thead>\n <tbody>\n @for (row of BandRows; track row.ID) {\n <tr [class.retired]=\"row.Retired\">\n <td class=\"mjo-band-name\">\n @if (EditMode) {\n <input class=\"mjo-input-text\" [(ngModel)]=\"row.Record.Name\" (blur)=\"SaveBandName(row)\" [disabled]=\"IsSaving\" aria-label=\"Band name\">\n } @else {\n <span class=\"mjo-band-title\">{{ row.Record.Name }}</span>\n }\n <span class=\"mjo-band-range\">{{ row.RangeText }}</span>\n </td>\n <td class=\"num\">\n @if (EditMode) {\n <input type=\"number\" class=\"mjo-input-num mjo-input-num--wide\" [(ngModel)]=\"row.MinMillions\" min=\"0\" step=\"0.5\" placeholder=\"0\" (blur)=\"SaveBandEdges(row)\" [disabled]=\"IsSaving\" aria-label=\"Revenue from, in millions\">\n } @else {\n {{ row.MinMillions ?? 0 }}\n }\n </td>\n <td class=\"num\">\n @if (EditMode) {\n <input type=\"number\" class=\"mjo-input-num mjo-input-num--wide\" [(ngModel)]=\"row.MaxMillions\" min=\"0\" step=\"0.5\" placeholder=\"No limit\" (blur)=\"SaveBandEdges(row)\" [disabled]=\"IsSaving\" aria-label=\"Revenue to, in millions\">\n } @else {\n {{ row.MaxMillions == null ? 'No limit' : row.MaxMillions }}\n }\n </td>\n <td class=\"num\">\n @if (EditMode) {\n <input type=\"text\" mjoCurrency class=\"mjo-input-price\" [(ngModel)]=\"row.Record.Amount\" (blur)=\"SaveBandAmount(row)\" [disabled]=\"IsSaving\" aria-label=\"Price\">\n } @else {\n <span class=\"mjo-band-amount\">{{ FormatCurrency(row.Amount) }}</span>\n }\n </td>\n <td>\n <span class=\"mjo-offer-status\" [class.retired]=\"row.Retired\">{{ row.StatusText || 'Active' }}</span>\n </td>\n @if (EditMode) {\n <td class=\"mjo-band-actions\">\n @if (CanActivate(row.Record)) {\n <button type=\"button\" class=\"mjo-btn-subtle\" (click)=\"RestorePrice(row.Record)\" [disabled]=\"IsSaving\" title=\"Make this band available to new order lines\">Activate</button>\n } @else {\n <button type=\"button\" class=\"mjo-btn-subtle\" (click)=\"RetirePrice(row.Record)\" [disabled]=\"IsSaving\" title=\"Stop offering this band on new order lines. Existing lines keep their price.\">Deactivate</button>\n }\n <button type=\"button\" class=\"mjo-btn-subtle mjo-btn-icon\" (click)=\"OpenPriceRecord(row.Record, $event)\" title=\"Open price record\">\n <i class=\"fa-solid fa-arrow-up-right-from-square\"></i>\n </button>\n </td>\n }\n </tr>\n }\n </tbody>\n </table>\n </div>\n @if (LadderIssues.length) {\n <div class=\"mjo-ladder-issues\">\n <i class=\"fa-solid fa-triangle-exclamation\"></i>\n <span>Revenue ranges with no price, or more than one:</span>\n @for (issue of LadderIssues; track issue) {\n <span class=\"mjo-ladder-issue\">{{ issue }}</span>\n }\n </div>\n } @else {\n <div class=\"mjo-ladder-ok\">\n <i class=\"fa-solid fa-circle-check\"></i>\n <span>All revenue levels are covered. No gaps or overlaps.</span>\n </div>\n }\n }\n\n @if (EditMode) {\n @if (BandRows.length === 0) {\n <div class=\"mjo-band-setup\">\n <div class=\"mjo-when-title\">Create band ladder</div>\n <div class=\"mjo-quick-add-inputs\">\n <label class=\"mjo-field-group mjo-field-group--grow\">\n <span class=\"mjo-sub-label\">Breakpoints ($M)</span>\n <input class=\"mjo-input-text mjo-input-text--wide\" [(ngModel)]=\"BandSetupEdgesText\" [disabled]=\"IsSaving\" placeholder=\"0, 2, 5, 10, 25, 50, 75, 100, 150, 250\">\n </label>\n <label class=\"mjo-field-group\">\n <span class=\"mjo-sub-label\">Default price</span>\n <input type=\"text\" mjoCurrency class=\"mjo-input-price\" [(ngModel)]=\"BandSetupAmount\" [disabled]=\"IsSaving\">\n </label>\n <label class=\"mjo-field-group\">\n <span class=\"mjo-sub-label\">Effective date</span>\n <input type=\"date\" class=\"mjo-input-text\" [(ngModel)]=\"NewPriceEffectiveFrom\" [disabled]=\"IsSaving\">\n </label>\n <button type=\"button\" class=\"mjo-btn-add\" [disabled]=\"IsSaving\" (click)=\"CreateBandLadder()\">\n @if (IsSaving) {\n <mj-loading class=\"mjo-btn-add__loading\" [showText]=\"false\" size=\"small\" logoColor=\"currentColor\"></mj-loading>\n <span>Saving\u2026</span>\n } @else {\n <i class=\"fa-solid fa-plus\"></i>\n <span>Create bands</span>\n }\n </button>\n </div>\n <span class=\"mjo-quick-add-hint\">{{ BandSetupPreview }} All bands start at the default price. Adjust each price in the table.</span>\n </div>\n } @else {\n <div class=\"mjo-quick-add-bar\">\n <div class=\"mjo-quick-add-inputs\">\n <span class=\"mjo-quick-add-label\">\n <i class=\"fa-solid fa-plus-circle\"></i> Add band\n </span>\n <label class=\"mjo-field-group\">\n <span class=\"mjo-sub-label\">From ($M)</span>\n <input type=\"number\" class=\"mjo-input-num mjo-input-num--wide\" [(ngModel)]=\"NewBandMinMillions\" min=\"0\" step=\"0.5\" placeholder=\"0\" [disabled]=\"IsSaving\">\n </label>\n <label class=\"mjo-field-group\">\n <span class=\"mjo-sub-label\">To ($M)</span>\n <input type=\"number\" class=\"mjo-input-num mjo-input-num--wide\" [(ngModel)]=\"NewBandMaxMillions\" min=\"0\" step=\"0.5\" placeholder=\"No limit\" [disabled]=\"IsSaving\">\n </label>\n <label class=\"mjo-field-group\">\n <span class=\"mjo-sub-label\">Price</span>\n <input type=\"text\" mjoCurrency class=\"mjo-input-price\" [(ngModel)]=\"NewBandAmount\" [disabled]=\"IsSaving\">\n </label>\n <label class=\"mjo-field-group\">\n <span class=\"mjo-sub-label\">Effective date</span>\n <input type=\"date\" class=\"mjo-input-text\" [(ngModel)]=\"NewPriceEffectiveFrom\" [disabled]=\"IsSaving\">\n </label>\n <button type=\"button\" class=\"mjo-btn-add\" [disabled]=\"IsSaving\" (click)=\"AddBand()\">\n @if (IsSaving) {\n <mj-loading class=\"mjo-btn-add__loading\" [showText]=\"false\" size=\"small\" logoColor=\"currentColor\"></mj-loading>\n <span>Saving\u2026</span>\n } @else {\n <i class=\"fa-solid fa-plus\"></i>\n <span>Add band</span>\n }\n </button>\n </div>\n @if (TopBandOpen) {\n <span class=\"mjo-quick-add-hint\">The top band has no upper limit. Set one before adding a band above it.</span>\n } @else {\n <span class=\"mjo-quick-add-hint\">Leave To blank for the top band. Applies to orders dated on or after the effective date.</span>\n }\n </div>\n }\n }\n }\n </div>\n } @else {\n @if (IsLoading) {\n <div class=\"mjo-loading-state\">\n <mj-loading text=\"Loading prices\u2026\" size=\"small\"></mj-loading>\n </div>\n } @else if (VisiblePrices.length === 0) {\n <mj-empty-state\n Size=\"compact\"\n Icon=\"fa-solid fa-tags\"\n Title=\"No prices\"\n [Message]=\"EditMode ? 'Add a price below. Add conditions only when a price applies to specific customers.' : 'Edit the product to add prices.'\" />\n } @else {\n <div\n class=\"mjo-price-list\"\n cdkDropList\n [cdkDropListDisabled]=\"!EditMode\"\n (cdkDropListDropped)=\"OnPriceDrop($event)\">\n @for (row of VisiblePrices; track row.ID) {\n <article\n class=\"mjo-offer\"\n cdkDrag\n [cdkDragDisabled]=\"!EditMode || row.Inherited\"\n [class.open]=\"ExpandedPriceID === row.ID && PriceCanExpand(row)\"\n [class.selected]=\"SelectedPriceID === row.ID\"\n [class.inherited]=\"row.Inherited\"\n [class.retired]=\"row.Retired\">\n <button\n type=\"button\"\n class=\"mjo-offer-h\"\n mjRecordLink\n [EntityName]=\"ProductPricesEntity\"\n [RecordID]=\"row.ID\"\n [DisplayName]=\"row.Name\"\n [HandleClick]=\"false\"\n (click)=\"TogglePrice(row)\">\n @if (EditMode && !row.Inherited) {\n <span class=\"mjo-offer-grip\" cdkDragHandle title=\"Drag to change priority\">\n <i class=\"fa-solid fa-grip-vertical\"></i>\n </span>\n }\n <span class=\"mjo-offer-amt\">{{ FormatCurrency(row.Amount) }}</span>\n <span class=\"mjo-offer-copy\">\n <span class=\"mjo-offer-name\">{{ row.Name }}</span>\n @if (row.WhenText) {\n <span class=\"mjo-offer-when\">{{ row.WhenText }}</span>\n }\n </span>\n @if (row.StatusText) {\n <span class=\"mjo-offer-status\" [class.retired]=\"row.Retired\">{{ row.StatusText }}</span>\n }\n @if (row.SourceLabel) {\n <span class=\"mjo-offer-from inherited\">{{ row.SourceLabel }}</span>\n }\n </button>\n @if (ExpandedPriceID === row.ID && PriceCanExpand(row)) {\n <div class=\"mjo-offer-body\" (click)=\"$event.stopPropagation()\">\n @if (row.Inherited) {\n <p class=\"mjo-inherit-note\">\n Inherited from the product category. A product price with the same name overrides it.\n @if (EditMode) {\n <button type=\"button\" class=\"mjo-btn-subtle\" (click)=\"OverrideInherited(row)\">Override on this product</button>\n }\n </p>\n } @else {\n @if (EditMode) {\n <div class=\"mjo-offer-fields\">\n <label class=\"mjo-field-group\">\n <span class=\"mjo-sub-label\">Name</span>\n <input class=\"mjo-input-text\" [(ngModel)]=\"row.Record.Name\" (blur)=\"SavePrice(row.Record)\">\n </label>\n <label class=\"mjo-field-group\">\n <span class=\"mjo-sub-label\">Price</span>\n <input type=\"text\" mjoCurrency class=\"mjo-input-price\" [(ngModel)]=\"row.Record.Amount\" (blur)=\"SavePrice(row.Record)\">\n </label>\n <label class=\"mjo-field-group\">\n <span class=\"mjo-sub-label\">Pricing model</span>\n <select class=\"mjo-input-select\" [(ngModel)]=\"row.Record.PricingModel\" (change)=\"SavePrice(row.Record)\">\n <option value=\"PerUnit\">Per unit</option>\n <option value=\"Package\">Package</option>\n <option value=\"Volume\">Volume</option>\n <option value=\"Flat\">Flat</option>\n </select>\n </label>\n </div>\n <div class=\"mjo-offer-fields mjo-offer-lifecycle\">\n <label class=\"mjo-field-group\">\n <span class=\"mjo-sub-label\">Status</span>\n <select class=\"mjo-input-select\" [(ngModel)]=\"row.Record.Status\" (change)=\"OnStatusChange(row.Record)\" [disabled]=\"IsSaving\">\n <option value=\"Active\">Active</option>\n <option value=\"Inactive\">Inactive</option>\n </select>\n </label>\n <label class=\"mjo-field-group\">\n <span class=\"mjo-sub-label\">Expiration date</span>\n <input type=\"date\" class=\"mjo-input-text\" [ngModel]=\"EffectiveToInput(row.Record)\" (ngModelChange)=\"OnEffectiveToChange(row.Record, $event)\" [disabled]=\"IsSaving\">\n </label>\n @if (CanActivate(row.Record)) {\n <button type=\"button\" class=\"mjo-btn-subtle\" (click)=\"RestorePrice(row.Record)\" [disabled]=\"IsSaving\" title=\"Make this price available to new order lines\">Activate</button>\n } @else {\n <button type=\"button\" class=\"mjo-btn-subtle\" (click)=\"RetirePrice(row.Record)\" [disabled]=\"IsSaving\" title=\"Stop offering this price on new order lines. Existing lines keep their price.\">Deactivate</button>\n }\n <button type=\"button\" class=\"mjo-btn-subtle\" (click)=\"OpenPriceRecord(row.Record, $event)\">\n <i class=\"fa-solid fa-arrow-up-right-from-square\"></i>\n <span>Open record</span>\n </button>\n </div>\n }\n @if (EditMode && row.WhenText && WhenEditorPriceID !== row.ID) {\n <div class=\"mjo-when-read\">\n <button type=\"button\" class=\"mjo-btn-subtle\" (click)=\"OpenWhenEditor(row)\">Edit conditions</button>\n </div>\n } @else if (EditMode && WhenEditorPriceID !== row.ID) {\n <button type=\"button\" class=\"mjo-btn-subtle\" (click)=\"OpenWhenEditor(row)\">+ Conditions</button>\n }\n @if (EditMode && WhenEditorPriceID === row.ID) {\n <div class=\"mjo-when-edit\">\n <div class=\"mjo-when-head\">\n <div class=\"mjo-when-title\">Conditions</div>\n <label class=\"mjo-when-allfields\">\n <input type=\"checkbox\" [ngModel]=\"ShowAllWhenFields\" (ngModelChange)=\"ToggleAllWhenFields($event)\">\n <span>Show all fields</span>\n </label>\n </div>\n <mj-filter-builder\n [fields]=\"WhenFields\"\n [filter]=\"WhenFilter\"\n [showSummary]=\"true\"\n (filterChange)=\"OnWhenFilterChange($event)\">\n </mj-filter-builder>\n <div class=\"mjo-when-actions\">\n <button type=\"button\" class=\"mjo-btn-subtle\" (click)=\"ClearWhen(row)\">Remove conditions</button>\n <button type=\"button\" class=\"mjo-btn-subtle\" (click)=\"CloseWhenEditor()\">Cancel</button>\n <button type=\"button\" class=\"mjo-btn-add\" (click)=\"SaveWhen(row)\">Save conditions</button>\n </div>\n </div>\n }\n @if (HasAdvanced(row.Record) || AdvancedEditingID === row.ID) {\n <div class=\"mjo-adv\">\n <div class=\"mjo-when-title\">Quantity, fee type & priority</div>\n @if (EditMode) {\n <div class=\"mjo-adv-grid\">\n <label class=\"mjo-field-group\"><span class=\"mjo-sub-label\">Min quantity</span>\n <input type=\"number\" class=\"mjo-input-num\" [(ngModel)]=\"row.Record.MinQuantity\" (blur)=\"SavePrice(row.Record)\">\n </label>\n <label class=\"mjo-field-group\"><span class=\"mjo-sub-label\">Max quantity</span>\n <input type=\"number\" class=\"mjo-input-num\" [(ngModel)]=\"row.Record.MaxQuantity\" (blur)=\"SavePrice(row.Record)\">\n </label>\n <label class=\"mjo-field-group\"><span class=\"mjo-sub-label\">Fee type</span>\n <select class=\"mjo-input-select\" [(ngModel)]=\"row.Record.FeeType\" (change)=\"SavePrice(row.Record)\">\n <option value=\"Standard\">Standard</option>\n <option value=\"Setup\">Setup</option>\n <option value=\"Recurring\">Recurring</option>\n <option value=\"Overage\">Overage</option>\n </select>\n </label>\n <label class=\"mjo-field-group\"><span class=\"mjo-sub-label\">Priority</span>\n <input type=\"number\" class=\"mjo-input-num\" [(ngModel)]=\"row.Record.Priority\" (blur)=\"SavePrice(row.Record)\">\n </label>\n </div>\n } @else {\n <div class=\"mjo-adv-read\">\n @if (row.Record.MinQuantity != null) {\n <span>Min quantity {{ row.Record.MinQuantity }}</span>\n }\n @if (row.Record.MaxQuantity != null) {\n <span>Max quantity {{ row.Record.MaxQuantity }}</span>\n }\n @if (row.Record.FeeType && row.Record.FeeType !== 'Standard') {\n <span>{{ row.Record.FeeType }} fee</span>\n }\n @if (row.Record.EffectiveTo) {\n <span>Expires {{ FormatDate(row.Record.EffectiveTo) }}</span>\n }\n </div>\n }\n </div>\n } @else if (EditMode) {\n <button type=\"button\" class=\"mjo-btn-subtle\" (click)=\"OpenAdvanced(row.ID, $event)\">+ Quantity, fee type & priority</button>\n }\n }\n </div>\n }\n </article>\n }\n </div>\n }\n\n @if (EditMode) {\n <div class=\"mjo-quick-add-bar\">\n <div class=\"mjo-quick-add-inputs\">\n <span class=\"mjo-quick-add-label\">\n <i class=\"fa-solid fa-plus-circle\"></i> Add price\n </span>\n <label class=\"mjo-field-group\">\n <span class=\"mjo-sub-label\">Name</span>\n <input class=\"mjo-input-text\" [(ngModel)]=\"NewPriceName\" placeholder=\"List price\">\n </label>\n <label class=\"mjo-field-group\">\n <span class=\"mjo-sub-label\">Price</span>\n <input type=\"text\" mjoCurrency class=\"mjo-input-price\" [(ngModel)]=\"NewPriceAmount\">\n </label>\n <label class=\"mjo-field-group\">\n <span class=\"mjo-sub-label\">Effective date</span>\n <input type=\"date\" class=\"mjo-input-text\" [(ngModel)]=\"NewPriceEffectiveFrom\" [disabled]=\"IsSaving\">\n </label>\n <span class=\"mjo-quick-add-hint\">Applies to orders dated on or after this date.</span>\n <button type=\"button\" class=\"mjo-btn-add\" [disabled]=\"IsSaving\" (click)=\"AddPrice()\">\n @if (IsSaving) {\n <mj-loading class=\"mjo-btn-add__loading\" [showText]=\"false\" size=\"small\" logoColor=\"currentColor\"></mj-loading>\n <span>Saving\u2026</span>\n } @else {\n <i class=\"fa-solid fa-plus\"></i>\n <span>Add price</span>\n }\n </button>\n </div>\n </div>\n }\n }\n </div>\n</div>\n\n@if (QuoteDrawerOpen) {\n <div class=\"mjo-quote-scrim\" (click)=\"CloseQuote()\"></div>\n <aside class=\"mjo-quote-drawer\" role=\"dialog\" aria-label=\"Price simulation\">\n <div class=\"mjo-quote-drawer-h\">\n <h3>Price simulation</h3>\n <button type=\"button\" class=\"mjo-btn-subtle mjo-quote-close\" (click)=\"CloseQuote()\" aria-label=\"Close\">\n <i class=\"fa-solid fa-xmark\"></i>\n </button>\n </div>\n <p class=\"mjo-quote-lede\">\n @if (SelectedChannelID === null) {\n The price a sample customer would get today.\n } @else {\n The price a sample customer on this price list would get today. When the list has no price that applies, the Standard price does, as on an order.\n }\n </p>\n\n <div class=\"mjo-quote-form\">\n <label class=\"mjo-quote-field\">\n <span>Customer type</span>\n <select class=\"mjo-input-select\" [(ngModel)]=\"QuoteOrgType\" (ngModelChange)=\"RunQuote()\">\n <option value=\"Member\">Member</option>\n <option value=\"Prospect\">Prospect</option>\n </select>\n </label>\n <label class=\"mjo-quote-field\">\n <span>Quantity</span>\n <input type=\"number\" class=\"mjo-input-num\" [(ngModel)]=\"SimQuantity\" min=\"1\" (ngModelChange)=\"RunQuote()\">\n </label>\n <label class=\"mjo-quote-field mjo-quote-field--wide\">\n <span>Annual revenue ($M)</span>\n <input type=\"number\" class=\"mjo-input-num\" [(ngModel)]=\"QuoteRevenueMillions\" min=\"0\" step=\"0.5\" placeholder=\"Unknown\" (ngModelChange)=\"RunQuote()\">\n <small>Leave blank for a customer with no revenue on file.</small>\n </label>\n </div>\n\n <div class=\"mjo-quote-result\">\n <div class=\"mjo-quote-amt\">{{ QuoteResult.AmountText }}</div>\n <p class=\"mjo-quote-why\">{{ QuoteResult.Why }}</p>\n </div>\n\n @if (QuoteResult.Skipped.length) {\n <div class=\"mjo-quote-skipped-title\">Not applied</div>\n <ul class=\"mjo-quote-skipped\">\n @for (s of QuoteResult.Skipped; track s) {\n <li>{{ s }}</li>\n }\n </ul>\n }\n </aside>\n}\n", styles: [".mjo-pricing-widget-wrap {\n display: flex;\n flex-direction: column;\n gap: 16px;\n width: 100%;\n position: relative;\n}\n\n/* In-Widget Toast Notification */\n.mjo-toast {\n display: flex;\n align-items: center;\n justify-content: space-between;\n padding: 10px 16px;\n border-radius: var(--mj-radius-md, 8px);\n font-size: 13px;\n font-weight: 500;\n animation: mjo-toast-in 0.25s cubic-bezier(0.16, 1, 0.3, 1);\n box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);\n border: 1px solid transparent;\n}\n\n@keyframes mjo-toast-in {\n from { opacity: 0; transform: translateY(-6px); }\n to { opacity: 1; transform: translateY(0); }\n}\n\n.mjo-toast--success {\n background: rgba(22, 163, 74, 0.15);\n border-color: rgba(22, 163, 74, 0.3);\n color: #22c55e;\n}\n\n.mjo-toast--error {\n background: rgba(239, 68, 68, 0.15);\n border-color: rgba(239, 68, 68, 0.3);\n color: #f87171;\n}\n\n.mjo-toast--info {\n background: rgba(2, 132, 199, 0.15);\n border-color: rgba(2, 132, 199, 0.3);\n color: #38bdf8;\n}\n\n.mjo-toast-left {\n display: flex;\n align-items: center;\n gap: 10px;\n}\n\n.mjo-toast-left i {\n font-size: 16px;\n}\n\n.mjo-toast-msg {\n line-height: 1.4;\n}\n\n.mjo-toast-close {\n background: transparent;\n border: none;\n color: currentColor;\n opacity: 0.7;\n cursor: pointer;\n padding: 4px 8px;\n border-radius: 4px;\n font-size: 13px;\n}\n\n.mjo-toast-close:hover {\n opacity: 1;\n}\n\n.mjo-pricing-card {\n background: var(--mj-bg-surface-card, rgba(255, 255, 255, 0.05));\n border: 1px solid var(--mj-border-default, rgba(255, 255, 255, 0.12));\n border-radius: var(--mj-radius-lg, 10px);\n overflow: hidden;\n}\n\n.mjo-card-header-actions {\n display: flex;\n gap: 8px;\n align-items: center;\n}\n\n.mjo-card-header {\n padding: 12px 16px;\n background: var(--mj-bg-surface-sunken, rgba(0, 0, 0, 0.1));\n border-bottom: 1px solid var(--mj-border-default, rgba(255, 255, 255, 0.1));\n display: flex;\n align-items: center;\n justify-content: space-between;\n gap: 12px;\n}\n\n.mjo-card-title {\n font-size: 13.5px;\n font-weight: 700;\n color: var(--mj-text-primary, #0f172a);\n display: flex;\n align-items: center;\n gap: 8px;\n}\n\n.mjo-card-title i {\n color: var(--mj-brand-primary, #0284c7);\n}\n\n.mjo-base-pill {\n font-size: 12px;\n color: var(--mj-text-muted, #64748b);\n}\n\n.mjo-base-pill strong {\n font-family: var(--mj-font-family-mono);\n color: var(--mj-brand-primary, #0284c7);\n}\n\n.mjo-pricing-fields {\n padding: 16px;\n display: grid;\n grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));\n gap: 16px;\n}\n\n/* Channel Tabs Header */\n.mjo-channel-bar {\n display: flex;\n align-items: center;\n justify-content: flex-start;\n background: var(--mj-bg-surface-sunken, rgba(0, 0, 0, 0.1));\n border-bottom: 1px solid var(--mj-border-default, rgba(255, 255, 255, 0.1));\n padding: 0 12px;\n flex-wrap: wrap;\n gap: 8px;\n}\n\n.mjo-channel-label {\n font-size: 11.5px;\n font-weight: 600;\n text-transform: uppercase;\n letter-spacing: 0.04em;\n color: var(--mj-text-muted, #94a3b8);\n padding-right: 4px;\n}\n\n.mjo-channel-list {\n display: flex;\n align-items: center;\n gap: 4px;\n overflow-x: auto;\n}\n\n.mjo-channel-tab {\n display: inline-flex;\n align-items: center;\n gap: 8px;\n padding: 12px 14px;\n background: transparent;\n border: none;\n border-bottom: 2px solid transparent;\n font-size: 12.5px;\n font-weight: 600;\n color: var(--mj-text-muted, #94a3b8);\n cursor: pointer;\n transition: all 0.15s ease;\n white-space: nowrap;\n}\n\n.mjo-channel-tab:hover {\n color: var(--mj-text-primary, #0f172a);\n}\n\n.mjo-channel-tab.active {\n color: var(--mj-brand-primary, #0284c7);\n border-bottom-color: var(--mj-brand-primary, #0284c7);\n background: var(--mj-bg-surface-card, rgba(255, 255, 255, 0.05));\n}\n\n.mjo-channel-count {\n font-size: 10px;\n font-weight: 700;\n padding: 2px 6px;\n border-radius: 9999px;\n background: var(--mj-bg-surface-sunken, rgba(0, 0, 0, 0.15));\n color: var(--mj-text-secondary, #cbd5e1);\n}\n\n.mjo-channel-tab.active .mjo-channel-count {\n background: rgba(2, 132, 199, 0.18);\n color: var(--mj-brand-primary, #0284c7);\n}\n\n.mjo-channel-actions {\n display: flex;\n align-items: center;\n gap: 8px;\n}\n\n.mjo-btn-subtle {\n display: inline-flex;\n align-items: center;\n gap: 6px;\n padding: 6px 12px;\n border-radius: 6px;\n font-size: 11.5px;\n font-weight: 600;\n color: var(--mj-text-primary, #0f172a);\n background: var(--mj-bg-surface-card, rgba(255, 255, 255, 0.05));\n border: 1px solid var(--mj-border-default, rgba(255, 255, 255, 0.12));\n cursor: pointer;\n transition: all 0.15s ease;\n}\n\n.mjo-btn-subtle:hover {\n border-color: var(--mj-brand-primary, #0284c7);\n color: var(--mj-brand-primary, #0284c7);\n}\n\n/* Tier Ladder Table */\n.mjo-ladder-table-wrap {\n overflow-x: auto;\n width: 100%;\n}\n\n.mjo-ladder-table {\n width: 100%;\n border-collapse: collapse;\n font-size: 13px;\n text-align: left;\n}\n\n.mjo-ladder-table th {\n padding: 10px 14px;\n font-size: 11px;\n font-weight: 700;\n text-transform: uppercase;\n letter-spacing: 0.04em;\n color: var(--mj-text-muted, #64748b);\n background: var(--mj-bg-surface-sunken, rgba(0, 0, 0, 0.05));\n border-bottom: 1px solid var(--mj-border-default, rgba(255, 255, 255, 0.1));\n}\n\n.mjo-ladder-table td {\n padding: 11px 14px;\n border-bottom: 1px solid var(--mj-border-subtle, rgba(255, 255, 255, 0.06));\n color: var(--mj-text-primary, #0f172a);\n vertical-align: middle;\n}\n\n.mjo-ladder-table tr:hover {\n background: var(--mj-bg-surface-hover, rgba(255, 255, 255, 0.03));\n}\n\n.mjo-tier-title {\n color: var(--mj-brand-primary, #0284c7);\n}\n\n.mjo-range-pill {\n display: inline-flex;\n align-items: center;\n gap: 4px;\n font-family: var(--mj-font-family-mono);\n font-weight: 700;\n font-size: 12px;\n padding: 3px 8px;\n border-radius: 6px;\n background: var(--mj-bg-surface-sunken, rgba(0, 0, 0, 0.12));\n border: 1px solid var(--mj-border-default, rgba(255, 255, 255, 0.1));\n}\n\n.mjo-price-input {\n font-family: var(--mj-font-family-mono);\n font-size: 13.5px;\n font-weight: 700;\n color: var(--mj-text-primary, #0f172a);\n background: var(--mj-bg-surface, rgba(0, 0, 0, 0.2));\n border: 1px solid var(--mj-border-default, rgba(255, 255, 255, 0.15));\n border-radius: 6px;\n padding: 5px 8px;\n width: 100px;\n transition: all 0.15s ease;\n}\n\n.mjo-price-input:focus {\n outline: none;\n border-color: var(--mj-brand-primary, #0284c7);\n box-shadow: 0 0 0 2px rgba(2, 132, 199, 0.25);\n}\n\n.mjo-price-val {\n font-family: var(--mj-font-family-mono);\n font-size: 13px;\n font-weight: 700;\n color: var(--mj-text-primary, #0f172a);\n display: inline-block;\n padding: 4px 0;\n}\n\n.mjo-disc-tag {\n display: inline-flex;\n align-items: center;\n gap: 4px;\n font-size: 11px;\n font-weight: 700;\n padding: 2px 7px;\n border-radius: 4px;\n background: rgba(22, 163, 74, 0.15);\n color: #22c55e;\n}\n\n.mjo-standard-tag {\n font-size: 11px;\n color: var(--mj-text-muted, #94a3b8);\n}\n\n.mjo-savings-val {\n color: #22c55e;\n font-family: var(--mj-font-family-mono);\n font-size: 12.5px;\n}\n\n.mjo-model-tag {\n font-size: 11px;\n font-weight: 600;\n padding: 2px 7px;\n border-radius: 4px;\n background: var(--mj-bg-surface-sunken, rgba(0, 0, 0, 0.1));\n color: var(--mj-text-secondary, #cbd5e1);\n}\n\n.mjo-date-tag {\n font-size: 11.5px;\n color: var(--mj-text-muted, #94a3b8);\n}\n\n.mjo-th-num, .mjo-td-num { text-align: left; }\n.mjo-th-actions, .mjo-td-actions { text-align: right; }\n\n.mjo-action-btn {\n width: 28px;\n height: 28px;\n border-radius: 6px;\n border: 1px solid var(--mj-border-default, rgba(255, 255, 255, 0.1));\n background: var(--mj-bg-surface, rgba(255, 255, 255, 0.05));\n color: var(--mj-text-muted, #94a3b8);\n cursor: pointer;\n font-size: 11px;\n display: inline-flex;\n align-items: center;\n justify-content: center;\n transition: all 0.15s ease;\n margin-left: 4px;\n}\n\n.mjo-action-btn:hover {\n color: var(--mj-brand-primary, #0284c7);\n border-color: var(--mj-brand-primary, #0284c7);\n}\n\n.mjo-action-btn--delete:hover {\n color: #ef4444;\n border-color: #ef4444;\n}\n\n/* 1-Click Quick Add Bar */\n.mjo-quick-add-bar {\n display: flex;\n align-items: center;\n justify-content: space-between;\n padding: 12px 16px;\n background: var(--mj-bg-surface-sunken, rgba(0, 0, 0, 0.1));\n border-top: 1px solid var(--mj-border-default, rgba(255, 255, 255, 0.1));\n gap: 12px;\n flex-wrap: wrap;\n}\n\n.mjo-quick-add-inputs {\n display: flex;\n align-items: center;\n gap: 10px;\n flex-wrap: wrap;\n}\n\n.mjo-quick-add-label {\n font-size: 12.5px;\n font-weight: 700;\n color: var(--mj-brand-primary, #0284c7);\n display: flex;\n align-items: center;\n gap: 6px;\n}\n\n.mjo-quick-add-hint {\n font-size: 11.5px;\n color: var(--mj-text-muted, #94a3b8);\n}\n\n.mjo-field-group {\n display: flex;\n align-items: center;\n gap: 4px;\n}\n\n.mjo-sub-label {\n font-size: 11.5px;\n font-weight: 600;\n color: var(--mj-text-muted, #94a3b8);\n}\n\n.mjo-input-num {\n width: 65px;\n padding: 5px 8px;\n font-size: 12.5px;\n font-family: var(--mj-font-family-mono);\n font-weight: 700;\n text-align: center;\n border-radius: 6px;\n border: 1px solid var(--mj-border-default, rgba(255, 255, 255, 0.15));\n background: var(--mj-bg-surface, rgba(0, 0, 0, 0.2));\n color: var(--mj-text-primary, #0f172a);\n}\n\n.mjo-input-price {\n width: 110px;\n padding: 5px 8px;\n font-size: 12.5px;\n font-family: var(--mj-font-family-mono);\n font-weight: 700;\n text-align: right;\n border-radius: 6px;\n border: 1px solid var(--mj-border-default, rgba(255, 255, 255, 0.15));\n background: var(--mj-bg-surface, rgba(0, 0, 0, 0.2));\n color: var(--mj-text-primary, #0f172a);\n}\n\n.mjo-input-select {\n padding: 5px 8px;\n font-size: 12px;\n font-weight: 600;\n border-radius: 6px;\n border: 1px solid var(--mj-border-default, rgba(255, 255, 255, 0.15));\n background: var(--mj-bg-surface, rgba(0, 0, 0, 0.2));\n color: var(--mj-text-primary, #0f172a);\n}\n\n.mjo-btn-add {\n display: inline-flex;\n align-items: center;\n gap: 6px;\n padding: 6px 14px;\n border-radius: 6px;\n font-size: 12px;\n font-weight: 700;\n color: #ffffff;\n background: #0284c7;\n border: none;\n cursor: pointer;\n transition: all 0.15s ease;\n}\n\n.mjo-btn-add:hover {\n background: #0369a1;\n}\n\n.mjo-btn-add:disabled {\n opacity: 0.5;\n cursor: not-allowed;\n}\n\n/* mj-loading fills its container by default; inside the button it sizes to its small logo. */\n.mjo-btn-add__loading {\n width: auto;\n height: auto;\n flex: none;\n}\n\n.mjo-guard-badge {\n font-size: 11.5px;\n color: #22c55e;\n display: flex;\n align-items: center;\n gap: 6px;\n}\n\n/* Volume Step Curve Diagram */\n.mjo-step-curve-wrap {\n padding: 14px 18px;\n display: flex;\n flex-direction: column;\n gap: 8px;\n}\n\n.mjo-step-curve-title {\n font-size: 11px;\n font-weight: 700;\n text-transform: uppercase;\n letter-spacing: 0.04em;\n color: var(--mj-text-muted, #94a3b8);\n display: flex;\n align-items: center;\n gap: 6px;\n}\n\n.mjo-step-curve-title i {\n color: var(--mj-brand-primary, #0284c7);\n}\n\n.mjo-step-curve-bars {\n display: flex;\n align-items: flex-end;\n gap: 12px;\n height: 80px;\n padding-top: 8px;\n}\n\n.mjo-step-col {\n flex: 1;\n display: flex;\n flex-direction: column;\n align-items: center;\n gap: 4px;\n height: 100%;\n justify-content: flex-end;\n}\n\n.mjo-step-track {\n width: 100%;\n max-width: 60px;\n height: 100%;\n background: var(--mj-bg-surface-sunken, rgba(0, 0, 0, 0.1));\n border-radius: 4px 4px 0 0;\n display: flex;\n align-items: flex-end;\n}\n\n.mjo-step-fill {\n width: 100%;\n border-radius: 4px 4px 0 0;\n background: linear-gradient(180deg, #0284c7 0%, #0369a1 100%);\n min-height: 8px;\n transition: height 0.3s ease;\n}\n\n.mjo-step-val {\n font-size: 11px;\n font-weight: 700;\n font-family: var(--mj-font-family-mono);\n color: var(--mj-brand-primary, #0284c7);\n}\n\n.mjo-step-label {\n font-size: 10px;\n font-family: var(--mj-font-family-mono);\n color: var(--mj-text-muted, #94a3b8);\n}\n\n.mjo-loading-state {\n display: flex;\n align-items: center;\n justify-content: center;\n gap: 10px;\n padding: 30px;\n font-size: 13px;\n color: var(--mj-text-muted, #94a3b8);\n}\n\n.mjo-grid-wrap {\n padding: 0;\n min-height: 400px;\n height: 420px;\n}\n\n.mjo-price-list {\n display: flex;\n flex-direction: column;\n gap: 8px;\n padding: 12px 14px 16px;\n}\n\n.mjo-offer {\n border: 1px solid var(--mj-border-default, rgba(255, 255, 255, 0.12));\n border-radius: 12px;\n background: var(--mj-bg-surface-sunken, rgba(0, 0, 0, 0.12));\n overflow: hidden;\n}\n\n.mjo-offer.selected {\n border-color: var(--mj-brand-primary, #38bdf8);\n box-shadow: inset 0 0 0 1px var(--mj-brand-primary, #38bdf8);\n}\n\n.mjo-offer-grip {\n color: var(--mj-text-muted, #94a3b8);\n cursor: grab;\n padding: 0 4px 0 0;\n display: inline-flex;\n}\n\n.mjo-offer-h {\n width: 100%;\n display: grid;\n grid-template-columns: 108px 1fr auto;\n gap: 14px;\n align-items: center;\n padding: 12px 14px;\n border: 0;\n background: transparent;\n color: inherit;\n text-align: left;\n cursor: pointer;\n}\n\n.mjo-offer-h:has(.mjo-offer-grip) {\n grid-template-columns: 18px 108px 1fr auto;\n}\n\n.mjo-offer-h:hover {\n background: color-mix(in srgb, var(--mj-brand-primary, #0076b6) 8%, transparent);\n}\n\n.mjo-offer-amt {\n font-variant-numeric: tabular-nums;\n font-weight: 700;\n font-size: 18px;\n letter-spacing: -0.02em;\n text-align: left;\n}\n\n.mjo-offer-copy {\n display: flex;\n flex-direction: column;\n gap: 2px;\n min-width: 0;\n}\n\n.mjo-offer-name {\n font-weight: 700;\n font-size: 14px;\n}\n\n.mjo-offer-when {\n font-size: 12.5px;\n color: var(--mj-text-muted, #94a3b8);\n}\n\n.mjo-offer-from {\n font-size: 11px;\n font-weight: 700;\n color: var(--mj-status-success-text, #86efac);\n white-space: nowrap;\n}\n\n.mjo-offer-body {\n padding: 0 14px 14px;\n border-top: 1px solid var(--mj-border-default, rgba(255, 255, 255, 0.1));\n}\n\n.mjo-when-read {\n display: flex;\n justify-content: space-between;\n align-items: center;\n gap: 12px;\n padding-top: 12px;\n font-size: 13px;\n color: var(--mj-text-secondary, #cbd5e1);\n}\n\n.mjo-when-edit {\n padding-top: 12px;\n}\n\n.mjo-when-actions {\n display: flex;\n justify-content: flex-end;\n gap: 8px;\n margin-top: 10px;\n}\n\n.mjo-quote-scrim {\n position: fixed;\n inset: 0;\n background: rgba(2, 6, 23, 0.55);\n z-index: 1000;\n}\n\n.mjo-quote-drawer {\n position: fixed;\n top: 0;\n right: 0;\n height: 100vh;\n width: min(440px, 100vw);\n box-sizing: border-box;\n overflow-y: auto;\n background: var(--mj-bg-page, #0f172a);\n border-left: 1px solid var(--mj-border-default, #334155);\n z-index: 1001;\n padding: 28px 28px 32px;\n font-size: 14px;\n line-height: 1.5;\n box-shadow: -16px 0 40px rgba(0, 0, 0, 0.35);\n}\n\n.mjo-quote-drawer-h {\n display: flex;\n justify-content: space-between;\n align-items: center;\n margin-bottom: 6px;\n}\n\n.mjo-quote-drawer h3 {\n margin: 0;\n font-size: 20px;\n font-weight: 700;\n}\n\n.mjo-quote-close {\n width: 32px;\n height: 32px;\n padding: 0;\n justify-content: center;\n font-size: 16px;\n}\n\n.mjo-quote-lede {\n color: var(--mj-text-muted, #94a3b8);\n font-size: 14px;\n margin: 0 0 24px;\n}\n\n.mjo-quote-form {\n display: grid;\n grid-template-columns: 1fr 1fr;\n gap: 16px 20px;\n padding-bottom: 24px;\n border-bottom: 1px solid var(--mj-border-default, rgba(255, 255, 255, 0.12));\n}\n\n.mjo-quote-field {\n display: flex;\n flex-direction: column;\n gap: 6px;\n min-width: 0;\n}\n\n.mjo-quote-field--wide {\n grid-column: 1 / -1;\n}\n\n.mjo-quote-field > span {\n font-size: 13px;\n font-weight: 600;\n color: var(--mj-text-muted, #94a3b8);\n}\n\n.mjo-quote-field > small {\n font-size: 12.5px;\n color: var(--mj-text-muted, #94a3b8);\n}\n\n.mjo-quote-field .mjo-input-select,\n.mjo-quote-field .mjo-input-num {\n width: 100%;\n box-sizing: border-box;\n text-align: left;\n font-size: 14px;\n padding: 8px 10px;\n}\n\n.mjo-quote-result {\n padding: 24px 0 8px;\n}\n\n.mjo-quote-amt {\n font-size: 34px;\n font-weight: 700;\n letter-spacing: -0.02em;\n margin: 0 0 6px;\n}\n\n.mjo-quote-why {\n font-size: 14px;\n color: var(--mj-text-muted, #94a3b8);\n margin: 0;\n}\n\n.mjo-offer.inherited {\n border-style: dashed;\n}\n\n.mjo-offer-from.inherited {\n color: #a78bfa;\n}\n\n.mjo-offer-fields,\n.mjo-adv-grid {\n display: flex;\n flex-wrap: wrap;\n gap: 10px;\n padding-top: 12px;\n}\n\n.mjo-input-text {\n background: var(--mj-bg-surface-sunken, rgba(0, 0, 0, 0.2));\n border: 1px solid var(--mj-border-default, rgba(255, 255, 255, 0.12));\n color: inherit;\n border-radius: 8px;\n padding: 6px 8px;\n min-width: 120px;\n}\n\n.mjo-when-title {\n font-size: 11px;\n font-weight: 700;\n letter-spacing: 0.05em;\n text-transform: uppercase;\n color: var(--mj-text-muted, #94a3b8);\n margin-bottom: 8px;\n}\n\n.mjo-when-rule {\n display: grid;\n grid-template-columns: 1fr 1fr 110px 1fr;\n gap: 6px;\n}\n\n.mjo-when-rule select,\n.mjo-when-rule input {\n background: var(--mj-bg-surface-sunken, rgba(0, 0, 0, 0.2));\n border: 1px solid var(--mj-border-default, rgba(255, 255, 255, 0.12));\n color: inherit;\n border-radius: 8px;\n padding: 6px 8px;\n}\n\n.mjo-inherit-note {\n font-size: 12.5px;\n color: var(--mj-text-muted, #94a3b8);\n margin: 12px 0 0;\n}\n\n.mjo-adv {\n margin-top: 10px;\n font-size: 12px;\n color: var(--mj-text-muted, #94a3b8);\n}\n\n.mjo-adv-read {\n display: flex;\n flex-wrap: wrap;\n gap: 10px 16px;\n padding-top: 4px;\n font-size: 13px;\n color: var(--mj-text-secondary, #cbd5e1);\n}\n\n/* ---- View switch (cards / revenue bands / grid) ---- */\n.mjo-view-switch {\n display: inline-flex;\n border: 1px solid var(--mj-border-default, rgba(255, 255, 255, 0.12));\n border-radius: 6px;\n overflow: hidden;\n}\n\n.mjo-view-switch button {\n display: inline-flex;\n align-items: center;\n gap: 6px;\n padding: 6px 10px;\n font-size: 11.5px;\n font-weight: 600;\n background: transparent;\n border: none;\n border-right: 1px solid var(--mj-border-default, rgba(255, 255, 255, 0.12));\n color: var(--mj-text-muted, #94a3b8);\n cursor: pointer;\n}\n\n.mjo-view-switch button:last-child {\n border-right: none;\n}\n\n.mjo-view-switch button:hover {\n color: var(--mj-brand-primary, #0284c7);\n}\n\n.mjo-view-switch button.active {\n background: var(--mj-brand-primary, #0284c7);\n color: #fff;\n}\n\n/* ---- Price status (retired / ends) ---- */\n.mjo-offer-status {\n font-size: 11px;\n font-weight: 600;\n padding: 2px 8px;\n border-radius: 999px;\n white-space: nowrap;\n background: rgba(22, 163, 74, 0.12);\n color: var(--mj-status-success-text, #86efac);\n}\n\n.mjo-offer-status.retired {\n background: rgba(148, 163, 184, 0.18);\n color: var(--mj-text-muted, #94a3b8);\n}\n\n.mjo-offer.retired .mjo-offer-amt,\n.mjo-offer.retired .mjo-offer-name {\n opacity: 0.6;\n text-decoration: line-through;\n}\n\n.mjo-offer-lifecycle {\n align-items: flex-end;\n border-top: 1px dashed var(--mj-border-default, rgba(255, 255, 255, 0.1));\n margin-top: 10px;\n}\n\n/* ---- Revenue band editor ---- */\n.mjo-bands {\n display: flex;\n flex-direction: column;\n gap: 12px;\n padding: 14px 16px 16px;\n}\n\n.mjo-bands-lede {\n margin: 0;\n font-size: 12.5px;\n line-height: 1.5;\n color: var(--mj-text-muted, #94a3b8);\n}\n\n.mjo-band-table-wrap {\n overflow-x: auto;\n}\n\n.mjo-band-table {\n width: 100%;\n border-collapse: collapse;\n font-size: 13px;\n}\n\n.mjo-band-table th {\n text-align: left;\n font-size: 11px;\n font-weight: 700;\n letter-spacing: 0.03em;\n text-transform: uppercase;\n color: var(--mj-text-muted, #94a3b8);\n padding: 6px 8px;\n border-bottom: 1px solid var(--mj-border-default, rgba(255, 255, 255, 0.12));\n}\n\n.mjo-band-table td {\n padding: 8px;\n border-bottom: 1px solid var(--mj-border-default, rgba(255, 255, 255, 0.08));\n vertical-align: middle;\n}\n\n.mjo-band-table th.num,\n.mjo-band-table td.num {\n text-align: right;\n font-family: var(--mj-font-family-mono);\n}\n\n.mjo-band-table tr.retired td {\n opacity: 0.6;\n}\n\n.mjo-band-name {\n display: flex;\n flex-direction: column;\n gap: 2px;\n}\n\n.mjo-band-title {\n font-weight: 600;\n color: var(--mj-text-primary, #0f172a);\n}\n\n.mjo-band-range {\n font-size: 11.5px;\n color: var(--mj-text-muted, #94a3b8);\n}\n\n.mjo-band-amount {\n font-weight: 700;\n color: var(--mj-brand-primary, #0284c7);\n}\n\n.mjo-band-actions {\n white-space: nowrap;\n text-align: right;\n}\n\n.mjo-band-actions .mjo-btn-subtle + .mjo-btn-subtle {\n margin-left: 6px;\n}\n\n.mjo-btn-icon {\n padding: 6px 8px;\n}\n\n.mjo-input-num--wide {\n width: 90px;\n}\n\n.mjo-input-text--wide {\n width: min(420px, 100%);\n}\n\n.mjo-field-group--grow {\n flex: 1 1 320px;\n}\n\n.mjo-ladder-issues,\n.mjo-ladder-ok {\n display: flex;\n flex-wrap: wrap;\n align-items: center;\n gap: 8px;\n font-size: 12.5px;\n padding: 8px 12px;\n border-radius: 6px;\n}\n\n.mjo-ladder-issues {\n background: rgba(245, 158, 11, 0.12);\n border: 1px solid rgba(245, 158, 11, 0.3);\n color: #fbbf24;\n}\n\n.mjo-ladder-issue {\n font-weight: 600;\n padding: 1px 8px;\n border-radius: 999px;\n background: rgba(245, 158, 11, 0.18);\n}\n\n.mjo-ladder-ok {\n background: rgba(22, 163, 74, 0.1);\n border: 1px solid rgba(22, 163, 74, 0.25);\n color: var(--mj-status-success-text, #86efac);\n}\n\n.mjo-band-setup {\n display: flex;\n flex-direction: column;\n gap: 8px;\n padding: 12px;\n border: 1px dashed var(--mj-border-default, rgba(255, 255, 255, 0.15));\n border-radius: 8px;\n}\n\n/* ---- When editor header ---- */\n.mjo-when-head {\n display: flex;\n align-items: center;\n justify-content: space-between;\n gap: 12px;\n}\n\n.mjo-when-allfields {\n display: inline-flex;\n align-items: center;\n gap: 6px;\n font-size: 11.5px;\n color: var(--mj-text-muted, #94a3b8);\n cursor: pointer;\n}\n\n/* ---- Quote drawer additions ---- */\n.mjo-quote-skipped-title {\n margin-top: 20px;\n font-size: 12px;\n font-weight: 700;\n letter-spacing: 0.03em;\n text-transform: uppercase;\n color: var(--mj-text-muted, #94a3b8);\n}\n\n.mjo-quote-skipped {\n margin: 8px 0 0;\n padding-left: 18px;\n font-size: 13.5px;\n line-height: 1.6;\n color: var(--mj-text-muted, #94a3b8);\n}\n"] }]
|
|
2683
2705
|
}], () => [], { Product: [{
|
|
2684
2706
|
type: Input
|
|
2685
2707
|
}], EditMode: [{
|
|
@@ -2693,5 +2715,5 @@ export class BizAppsProductPricingWidgetComponent {
|
|
|
2693
2715
|
}], TierAdded: [{
|
|
2694
2716
|
type: Output
|
|
2695
2717
|
}] }); })();
|
|
2696
|
-
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(BizAppsProductPricingWidgetComponent, { className: "BizAppsProductPricingWidgetComponent", filePath: "lib/custom/Product/widgets/product-pricing-widget.component.ts", lineNumber:
|
|
2718
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(BizAppsProductPricingWidgetComponent, { className: "BizAppsProductPricingWidgetComponent", filePath: "lib/custom/Product/widgets/product-pricing-widget.component.ts", lineNumber: 170 }); })();
|
|
2697
2719
|
//# sourceMappingURL=product-pricing-widget.component.js.map
|