.pricing-view { min-width: 0; }
.card-price-categories { min-width: 0; margin: 16px 0; padding: 12px 16px; border: 1px solid var(--line); border-radius: var(--radius); }
.card-price-categories label { max-width: 100%; overflow-wrap: anywhere; }
.pricing-tabs { display: flex; gap: 5px; flex-wrap: wrap; padding: 2px 0 15px; border-bottom: 1px solid var(--line); margin-bottom: 16px; }
.pricing-tabs [aria-selected="true"] { background: var(--blue); color: #fff; border-color: var(--blue); }
.pricing-tabs [aria-selected="true"]:hover { background: #205bb3; }
.pricing-toolbar { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin: 12px 0; }
.pricing-toolbar h2 { margin: 0 auto 0 0; font-size: 17px; }
.pricing-toolbar > input[type="search"] { flex: 1 1 310px; min-width: 180px; }
.pricing-toolbar label { display: flex; align-items: center; gap: 8px; }
.pricing-filters { display: grid; grid-template-columns: repeat(auto-fit, minmax(145px, 1fr)); gap: 11px; padding: 14px; background: white; border: 1px solid var(--line); border-radius: var(--radius); }
.pricing-filters label { display: flex; flex-direction: column; gap: 5px; min-width: 0; color: #535b69; font-size: 12px; }
.pricing-filters input, .pricing-filters select { width: 100%; min-width: 0; }
.pricing-price-lists { display: flex; align-items: center; flex-wrap: wrap; gap: 18px; padding: 15px 0; }
.pricing-price-lists label { display: flex; align-items: center; gap: 6px; font-weight: 650; }
.pricing-price-lists .form-note { margin-left: auto; }
.pricing-table-scroll { overflow: auto; max-width: 100%; max-height: 65vh; }
.pricing-table { width: 100%; border-collapse: collapse; min-width: 850px; }
.pricing-table th { position: sticky; top: 0; z-index: 1; background: #f7f8fa; border-bottom: 1px solid var(--line); font-size: 11px; white-space: nowrap; padding: 11px 12px; text-align: left; }
.pricing-table th button { padding: 0; background: none; border: 0; font-weight: 650; }
.pricing-table td { padding: 12px; border-bottom: 1px solid var(--line); vertical-align: top; min-width: 90px; }
.pricing-table td:first-child { min-width: 220px; }
.pricing-table [data-pricing-column="name"] { position: sticky; left: 0; background: #fff; z-index: 1; box-shadow: 2px 0 3px #19202c08; }
.pricing-table th[data-pricing-column="name"] { z-index: 2; background: #f7f8fa; }
.pricing-table td[data-pricing-column="cost"] { min-width: 170px; }
.pricing-table td[data-pricing-column="status"] small { white-space: nowrap; }
.pricing-table details { margin-top: 6px; text-align: left; font-size: 10px; }
.pricing-table summary { cursor: pointer; color: #936400; }
.pricing-table td.money, .pricing-table th.money { text-align: right; font-variant-numeric: tabular-nums; }
.pricing-table td small { display: block; font-size: 10px; line-height: 1.5; color: #717782; margin-top: 4px; white-space: normal; }
.pricing-table td a { font-weight: 650; color: var(--text); }
.pricing-table td button { margin: 0 4px 4px 0; padding: 6px 9px; }
.pricing-table tr:hover td { background: #fafbfc; }
.pricing-table tr.pricing-family td { padding: 7px 12px; background: #edf1f7; }
.pricing-family button { width: 100%; text-align: left; font-weight: 700; border: 0; background: none; }
.pricing-family span { font-weight: 500; color: #636b78; }
.pricing-price { display: block; min-width: 130px; white-space: nowrap; }
.pricing-price + .pricing-price { margin-top: 10px; border-top: 1px dashed var(--line); padding-top: 7px; }
.pricing-price strong { display: block; font-size: 14px; }
.pricing-missing { color: #936400; font-size: 12px; }
.pricing-quality { display: inline-block; background: #fff6dd; color: #8b6200; padding: 3px 6px; border-radius: 4px; font-size: 10px; line-height: 1.5; margin-top: 4px; }
.pricing-quality.approved_norm, .pricing-quality.norm { background: #e8f1ff; color: #23599e; }
.pricing-quality.measured, .pricing-quality.actual { background: #e7f4eb; color: #20753e; }
.pricing-quality.not_applicable { background: #eff0f3; color: #626976; }
.pricing-wide { grid-column: 1 / -1; }
.pricing-summary { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; margin: 15px 0; }
.pricing-summary > div { background: #f7f8fb; border: 1px solid var(--line); border-radius: var(--radius); padding: 13px; font-size: 12px; color: #666d78; }
.pricing-summary strong { display: block; font-size: 19px; color: var(--text); margin-top: 8px; font-variant-numeric: tabular-nums; }
.pricing-summary small { display: block; margin-top: 6px; }
.pricing-calculation { grid-column: 1 / -1; min-width: 0; }
.pricing-calculation h3 { margin-top: 20px; }
.pricing-mapping { border: 1px solid var(--line); border-radius: var(--radius); background: #fff; padding: 14px; margin-top: 13px; }
.pricing-mapping summary { cursor: pointer; font-weight: 650; }
.pricing-template-actions { display: flex; gap: 7px; align-items: end; flex-wrap: wrap; }
.pricing-table pre { white-space: pre-wrap; overflow-wrap: anywhere; max-width: 370px; font: inherit; font-size: 12px; line-height: 1.6; margin: 0; }
[data-resource-product-results], [data-plan-product-results] { display: flex; flex-direction: column; gap: 4px; max-height: 190px; overflow: auto; }
[data-resource-product-results] button, [data-plan-product-results] button { text-align: left; }
.detail-dialog:has(.pricing-calculation), .detail-dialog:has([data-resource-product-search]) { width: min(1100px, 94vw); max-width: 1100px; }
.detail-dialog:has([data-pricing-history-table]) { width: min(1100px, 94vw); max-width: 1100px; }
.detail-dialog:has([data-resource-impact-result]) { width: min(1100px, 94vw); max-width: 1100px; }
[data-commissions] td { white-space: normal; overflow-wrap: anywhere; }
[data-resource-impact-result] .pricing-table { min-width: 0; table-layout: fixed; }
[data-resource-impact-result] .pricing-table th:nth-child(n) { width: 25%; white-space: normal; }
[data-resource-impact-result] td { min-width: 0; white-space: normal; overflow-wrap: anywhere; }
.pricing-history-values { min-width: 240px; font-size: 12px; color: var(--text); }
.pricing-history-values p { overflow-wrap: anywhere; }
[data-pricing-history-table] .pricing-table { table-layout: fixed; min-width: 0; }
[data-pricing-history-table] th, [data-pricing-history-table] td { white-space: normal; overflow-wrap: anywhere; }
[data-pricing-history-table] td { min-width: 0; }
[data-pricing-history-table] th:nth-child(1) { width: 9%; }
[data-pricing-history-table] th:nth-child(2) { width: 13%; }
[data-pricing-history-table] th:nth-child(3) { width: 16%; }
[data-pricing-history-table] th:nth-child(4) { width: 23%; }
[data-pricing-history-table] th:nth-child(5) { width: 14%; }
[data-pricing-history-table] th:nth-child(6) { width: 25%; }
[data-pricing-history-table] .pricing-history-values { min-width: 0; }
.dialog-grid h3.pricing-wide { margin-bottom: 0; border-top: 1px solid var(--line); padding-top: 15px; }
.dialog-grid .pricing-wide textarea { width: 100%; }
@media (max-width: 850px) { .pricing-filters { grid-template-columns: repeat(2, minmax(120px, 1fr)); } .pricing-toolbar { align-items: stretch; } .pricing-price-lists .form-note { margin-left: 0; width: 100%; } .pricing-table-scroll { max-height: 60vh; } .pricing-tabs button { font-size: 11px; padding: 8px; } }

/* Standalone customer catalogue: deliberately scoped away from cost analysis. */
.sales-catalog { --catalog-green: #24614e; }
.catalog-heading { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin: 8px 0 22px; }
.catalog-eyebrow { font-size: 10px; font-weight: 750; letter-spacing: .12em; color: var(--catalog-green); }
.catalog-heading h2 { font-size: 25px; margin: 5px 0 7px; }
.catalog-heading p { color: #6b737b; margin: 0; }
.catalog-downloads { display: flex; gap: 9px; flex-shrink: 0; }
.catalog-downloads button { padding: 12px 19px; font-weight: 650; }
.catalog-downloads .primary { background: var(--catalog-green); border-color: var(--catalog-green); }
.catalog-settings { display: flex; align-items: end; flex-wrap: wrap; gap: 18px; background: #f3f7f5; border: 1px solid #dce7e0; border-radius: 12px; padding: 18px; }
.catalog-settings label { display: grid; gap: 7px; font-size: 12px; color: #505c55; min-width: 135px; flex: 0 1 180px; }
.catalog-settings input, .catalog-settings select { width: 100%; }
.catalog-settings p { font-size: 12px; color: #637168; line-height: 1.7; margin: auto 0; }
.catalog-settings button { margin-left: auto; }
.catalog-workspace { display: grid; grid-template-columns: 245px minmax(0, 1fr); gap: 20px; margin-top: 20px; }
.catalog-categories { padding: 17px 12px; background: #fff; border: 1px solid var(--line); border-radius: 12px; align-self: start; }
.catalog-categories h3 { display: flex; justify-content: space-between; margin: 0 7px 16px; font-size: 14px; }
.catalog-categories h3 span { color: #869089; font-size: 12px; }
.catalog-categories > input { width: 100%; margin-bottom: 12px; }
.catalog-category-list { max-height: 550px; overflow: auto; }
.sales-catalog .catalog-category { display: flex; align-items: center; gap: 10px; padding: 10px 7px; border-radius: 6px; cursor: pointer; font-size: 12px; line-height: 1.5; }
.sales-catalog .catalog-category[hidden] { display: none; }
.catalog-category:hover { background: #f0f5f2; }
.catalog-category span { flex: 1; overflow-wrap: anywhere; }
.catalog-category small { color: #7f8984; font-size: 11px; }
.sales-catalog input[type="checkbox"] { width: 16px; height: 16px; flex: 0 0 16px; margin: 0; accent-color: var(--catalog-green); cursor: pointer; }
.catalog-category-all { border-bottom: 1px solid var(--line); margin-bottom: 8px; font-weight: 700; }
.catalog-products { min-width: 0; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: #fff; }
.catalog-product-tools { padding: 17px 18px 10px; display: flex; align-items: end; gap: 18px; flex-wrap: wrap; }
.catalog-search { display: grid; gap: 6px; flex: 1; min-width: 180px; font-size: 12px; color: #68736c; }
.catalog-search input { width: 100%; }
.catalog-selected-filter { display: flex; align-items: center; gap: 8px; font-size: 12px; padding-bottom: 9px; }
.catalog-selection-bar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 8px 18px 0; font-size: 12px; }
.catalog-selection-bar strong { margin-right: auto; }
.catalog-selection-bar button { font-size: 12px; }
.catalog-search-note { font-size: 11px; color: #7a827d; margin: 7px 18px 16px; }
.catalog-product-table { min-width: 620px; }
.catalog-product-table td { vertical-align: middle; }
.catalog-product-table th.catalog-checkbox, .catalog-product-table td.catalog-checkbox { width: 42px; min-width: 42px; padding: 12px 8px 12px 16px; }
.catalog-product-table td:nth-child(2) { min-width: 180px; }
.catalog-product-table td:nth-child(3) { min-width: 55px; }
.catalog-product-table td label { cursor: pointer; }
.catalog-product-table tr.is-selected { background: #f9fcfa; }
.catalog-offer-price { color: var(--catalog-green); white-space: nowrap; }
.catalog-pagination { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; padding: 13px 17px; }
.catalog-pagination span { margin-right: auto; font-size: 12px; color: #717b74; }
.catalog-empty { padding: 35px 10px; text-align: center; color: #69736d; }
.catalog-empty p { font-size: 12px; font-weight: normal; }
@media (max-width: 1050px) { .catalog-workspace { grid-template-columns: 205px minmax(0, 1fr); gap: 12px; } }
@media (max-width: 760px) { .catalog-heading { align-items: start; flex-direction: column; } .catalog-downloads { width: 100%; } .catalog-downloads button { flex: 1; } .catalog-workspace { grid-template-columns: 1fr; } .catalog-category-list { max-height: 200px; display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); } .catalog-settings label { flex: 1 1 120px; } .catalog-settings button { margin-left: 0; } }

.sales-catalog .catalog-subcategory { padding-left: 27px; color: #536158; font-size: 11px; }
