/* Prices presentation: reuses the existing controls and COTIQA palette. */
#page-prices{font-family:'DM Sans',sans-serif;color:var(--ink);min-width:0;--ink:#17352f;--green:#214a40;--muted:#71817b;--line:rgba(23,53,47,.08)}
:is(#page-prices,#page-compare,#page-imports,#page-overview) .page-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:20px}
:is(#page-prices,#page-compare,#page-imports,#page-overview) .page-head h1{font-size:clamp(24px,3vw,30px);letter-spacing:-.04em;font-family:inherit;margin:0;flex:1;min-width:0}
#page-prices .page-head>.cotiqa-select,#page-prices .page-head>select{flex:0 0 112px;width:112px}
#page-prices button,#page-prices input,#page-prices select{font-family:inherit}
#page-prices .secondary,#page-prices select{background:var(--white,#fff);color:var(--ink);border:1px solid var(--line);border-radius:12px;min-height:44px;padding:10px 12px;font-size:12px;box-shadow:none}
#page-prices .price-overview{padding:24px;margin-bottom:0;background:var(--white,#fff);border:1px solid rgba(23,53,47,.04);border-radius:24px;box-shadow:0 0px 10px 5px rgba(23,53,47,.04)}
#page-prices .price-overview-title{display:flex;align-items:center;gap:8px;font-size:15px;color:var(--ink)}
#page-prices .price-info{border:0;background:transparent;padding:0;width:44px;height:44px;font-size:18px}
#page-prices #priceAverage{display:block;font-size:clamp(36px,4vw,44px);font-weight:600;letter-spacing:-.04em;margin:4px 0 8px}
#page-prices #priceSummaryContext{color:var(--muted);font-size:14px;line-height:1.5;margin:0 0 12px}
#page-prices .neutral{color:var(--muted)}
#page-prices .price-rise-link{display:flex;align-items:center;justify-content:space-between;gap:12px;width:100%;color:var(--ink);background:transparent;border:0;border-top:1px solid var(--line);border-radius:0;min-height:48px;padding:14px 0 0;font-size:13px;font-weight:500;text-align:left}
#page-prices .price-rise-link span:last-child{color:var(--green)}
#page-prices .price-catalog-toolbar{display:block;margin-bottom:18px}
#page-prices .filter-search{display:flex;align-items:center;background:#fff;border:1px solid var(--line);width:100%}
#page-prices .filter-search input{min-width:0;flex:1;width:100%;border:0;background:transparent;outline:none}
#page-prices .price-control-icon{width:18px;height:18px;flex-shrink:0;fill:none;stroke:currentColor;stroke-width:1.65;stroke-linecap:round}
#page-prices .barcode-camera-button{font-size:0;flex-shrink:0}
#page-prices .price-tools{display:flex;align-items:start;gap:8px}
#page-prices .price-tool{position:relative;min-width:0;flex:0 0 auto}
#page-prices .price-tool>summary{display:flex;align-items:center;justify-content:center;cursor:pointer;list-style:none;border:1px solid var(--line);background:#fff}
#page-prices .price-tool>summary::-webkit-details-marker{display:none}
#page-prices .price-tool[open]>summary{background:var(--green-soft,#edf4f0)}
#page-prices .price-more{flex:0 0 44px;margin-left:auto}
#page-prices .price-tool-content{position:absolute;z-index:20;left:0;top:calc(100% + 6px);width:250px;max-width:calc(100vw - 28px);background:#fff;border:1px solid var(--line);border-radius:16px;padding:14px;box-shadow:0 8px 24px rgba(23,53,47,.10)}
#page-prices .price-more .price-tool-content{left:auto;right:0}
#page-prices .price-tool-content label{display:block;font-size:12px;color:var(--muted)}
#page-prices .price-tool-content .cotiqa-select{width:100%;margin-top:6px}
#page-prices .price-tool-content>button{display:block;width:100%;margin:4px 0;text-align:left}

#page-prices>.panel{background:#fff;border:1px solid var(--line);border-radius:24px;box-shadow:0 0px 10px 5px rgba(23,53,47,.04);overflow:visible}
#page-prices .panel-head{padding:16px;border-bottom:1px solid var(--line)}
#page-prices .mini-filter{display:inline-flex;width:auto;background:var(--green-soft,#f0f4f2)}
#page-prices .price-item{display:grid;grid-template-columns:44px minmax(0,1fr) auto 44px;gap:12px;align-items:center;padding:16px 20px;border-bottom:1px solid var(--line)}
#page-prices .price-item:last-child{border-bottom:0}
#page-prices .price-item .price-product-name{font-size:16px;line-height:1.45;font-weight:600;overflow-wrap:anywhere}
#page-prices .price-product-movement{font-size:17px;font-weight:600;white-space:nowrap;text-align:right}
#page-prices .price-product-movement.neutral{font-size:17px;font-weight:500;white-space:nowrap}
#page-prices .price-product-movement i{font-style:normal;margin-right:5px}
#page-prices .price-item>.row-actions{display:flex;align-items:center;justify-content:center;min-height:44px;width:44px;color:var(--muted)}
#page-prices .empty{padding:28px 18px;color:var(--muted);font-size:13px;line-height:1.6}
#page-prices button:focus-visible,#page-prices summary:focus-visible,#page-prices .clickable-row:focus-visible{outline:2px solid var(--green);outline-offset:2px}
#page-prices .filter-search:focus-within{outline:2px solid var(--green);outline-offset:2px}
@media(max-width:767px){
 body:has(#page-prices.active) .app .content{padding:14px 12px calc(84px + env(safe-area-inset-bottom,0px))!important}
 :is(#page-prices,#page-compare,#page-imports,#page-overview) .page-head{margin-bottom:14px}
 #page-prices .price-overview{border-radius:20px;padding:18px;margin-bottom:0}
 #page-prices .page-head>.cotiqa-select{flex-basis:100px;width:100px}
 #page-prices .cotiqa-select-trigger{min-height:44px;padding:9px 26px 9px 10px;font-size:12px;border-radius:12px}
 #page-prices .price-tool-content{width:210px}
 #page-prices .price-tools .price-tool:nth-child(2) .price-tool-content{left:auto;right:0}
 #page-prices .cotiqa-select-menu{max-width:calc(100vw - 28px);max-height:260px;overflow-y:auto}
 #page-prices .cotiqa-select-menu button{min-height:44px;white-space:normal}
 #page-prices>.panel{border-radius:20px}
 #page-prices .panel-head{padding:10px}
 #page-prices .price-item{padding:12px;gap:8px;grid-template-columns:36px minmax(0,1fr) auto 44px}
 #page-prices .price-item>.row-actions{width:44px}
}
@media(prefers-reduced-motion:reduce){#page-prices *{scroll-behavior:auto}}

#page-prices .price-section-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0;padding:18px 22px 10px}
#page-prices .price-section-heading h2{font:600 17px 'DM Sans',sans-serif;letter-spacing:-.025em;margin:0}
#page-prices .price-info{margin-left:auto}
#page-prices .price-products-panel{background:#fff;border:1px solid rgba(23,53,47,.04);border-radius:24px;box-shadow:0 0px 10px 5px rgba(23,53,47,.04)}
#page-prices .price-products-panel .panel-head{padding:0 22px 14px;border-bottom:1px solid var(--line)}
#page-prices .price-products-panel .mini-filter{background:var(--green-soft,#f0f4f2)}
#page-prices .price-products-panel .price-list{display:block;padding:0 18px}
#page-prices .price-products-panel .price-item{background:#fff;border:0;border-bottom:1px solid var(--line);border-radius:0;min-height:68px;box-shadow:none;padding:14px 4px}
#page-prices .price-products-panel .price-item:last-child{border-bottom:0}
#page-prices .price-list-hint{text-align:center;color:var(--muted);font-size:11px;margin:12px 0 0}

#page-prices .price-synthesis-grid{display:grid;grid-template-columns:minmax(0,2fr) minmax(240px,1fr);gap:20px;align-items:stretch;margin-bottom:26px}
#page-prices .price-secondary-stats{display:grid;grid-template-rows:auto auto;gap:16px;min-width:0}
#page-prices .price-stat-card{background:#fff;border:1px solid var(--line);border-radius:24px;padding:18px;box-shadow:0 0px 10px 5px rgba(23,53,47,.04)}
#page-prices .price-stat-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;font-size:15px;font-weight:500;color:var(--ink)}
#page-prices .price-stat-heading svg{color:var(--green);width:20px;height:20px}
#page-prices .price-stat-card strong{display:block;font-size:32px;font-weight:600;letter-spacing:-.04em;margin:14px 0 6px}
#page-prices .price-stat-card p{font-size:13px;line-height:1.5;color:var(--muted);margin:0}
#page-prices .price-stat-card .price-rise-link{margin-top:10px;font-size:13px}
#page-prices .price-history-chart{margin-top:20px}
#page-prices .price-chart-empty{display:flex;align-items:center;gap:16px;padding:22px;background:var(--green-soft,#f0f5f2);border-radius:16px;min-height:120px}
#page-prices .price-chart-empty-icon{display:grid;place-items:center;flex-shrink:0;width:46px;height:46px;border-radius:14px;background:#fff;color:var(--green);font-size:24px}
#page-prices .price-chart-empty b{display:block;font-size:15px;line-height:1.4;font-weight:600}
#page-prices .price-chart-empty p{color:var(--muted);font-size:14px;line-height:1.5;margin:6px 0 0}
#page-prices .price-history-svg{display:block;width:100%;height:auto}
#page-prices .price-history-svg text{fill:var(--muted);font:11px 'DM Sans',sans-serif}
#page-prices .price-history-grid{stroke:var(--line);stroke-dasharray:3 5;stroke-width:1}
#page-prices .price-history-line{fill:none;stroke:var(--green);stroke-width:2.5;stroke-linecap:round}
#page-prices .price-history-area{fill:url(#priceHistoryFill)}
#page-prices .price-history-point{fill:#fff;stroke:var(--green);stroke-width:2}
#page-prices .price-product-icon{display:grid;place-items:center;background:var(--green-soft,#edf4f0);color:var(--green);width:44px;height:44px;border-radius:12px}
#page-prices .price-product-icon svg{width:22px;height:22px}
#page-prices .price-item>.price-product-copy{display:block;min-width:0}
#page-prices .price-item .price-product-name{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
#page-prices .price-product-copy small{display:block;font-size:13px;line-height:1.45;color:var(--muted);margin-top:4px;overflow-wrap:anywhere}
@media(max-width:767px){
 #page-prices .price-synthesis-grid{grid-template-columns:minmax(0,1fr);gap:12px;margin-bottom:22px}
 #page-prices .price-secondary-stats{grid-template-columns:repeat(2,minmax(0,1fr));grid-template-rows:auto;gap:10px}
 #page-prices .price-stat-card{border-radius:18px;padding:14px;min-width:0}
 #page-prices .price-stat-heading{align-items:flex-start;gap:6px}
 #page-prices .price-stat-heading svg{width:18px;height:18px;flex-shrink:0}
 #page-prices .price-stat-card .price-rise-link{font-size:12px;gap:4px}
 #page-prices .price-chart-empty{min-height:110px;padding:16px;gap:12px;align-items:flex-start}
 #page-prices .price-chart-empty-icon{width:36px;height:36px;font-size:20px;border-radius:10px}
 #page-prices .price-chart-empty b{font-size:14px}
 #page-prices .price-chart-empty p{font-size:12px}
 #page-prices .price-product-icon{width:36px;height:36px;border-radius:10px}
 #page-prices .price-item .price-product-name{font-size:15px}
 #page-prices .price-product-copy small{font-size:13px}
 #page-prices .price-product-movement{font-size:15px}
 #page-prices .price-section-heading h2{font-size:19px}
}

#page-prices .price-control-icon,#page-prices [data-price-icon]{display:inline-flex;align-items:center;justify-content:center;flex-shrink:0}
#page-prices [data-price-icon] svg,#page-prices .price-product-icon svg,#page-prices .price-product-movement svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
#page-prices .barcode-camera-button svg{width:24px;height:24px;stroke-width:1.8}
#page-prices .price-stat-heading .price-control-icon{width:36px;height:36px;color:var(--green)}
#page-prices .price-product-movement{display:flex;align-items:center;justify-content:flex-end;gap:6px}
#page-prices .price-product-movement i{display:inline-flex;margin:0}
#page-prices .row-actions svg{width:18px;height:18px;stroke-width:1.8}
#page-prices .price-history-svg{max-height:155px}
#page-prices .price-chart-empty-icon svg{width:24px;height:24px}
#page-prices .price-item{transition:background .15s,box-shadow .15s}
#page-prices .price-item:hover{background:#f2f7f4;box-shadow:none}
#page-prices .price-tool>summary:hover,#page-prices .price-rise-link:hover{background:var(--green-soft,#edf4f0)}
#page-prices button:disabled{opacity:.5;cursor:not-allowed}

@media(max-width:767px){#page-prices .price-tools .price-tool{flex:1}#page-prices .mini-filter{display:flex;width:100%}#page-prices .mini-filter button{flex:1;min-width:0}#page-prices .price-stat-heading .price-control-icon{width:28px;height:28px}#page-prices .price-product-movement i{display:none}}

#page-prices .price-overview{overflow:visible}
#page-prices .price-chart-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:8px;font-size:13px;color:var(--muted)}
#page-prices .price-chart-method{position:relative}
#page-prices .price-chart-method summary{list-style:none;cursor:pointer;display:grid;place-items:center;width:44px;height:36px;border-radius:10px;color:var(--green)}
#page-prices .price-chart-method summary::-webkit-details-marker{display:none}
#page-prices .price-chart-method summary svg{width:18px;height:18px;stroke-width:1.8}
#page-prices .price-chart-method summary:focus-visible{outline:2px solid var(--green);outline-offset:2px}
#page-prices .price-chart-tooltip{position:absolute;right:0;top:calc(100% + 4px);width:280px;max-width:calc(100vw - 60px);padding:14px;border-radius:14px;background:var(--ink);color:#fff;font-size:13px;line-height:1.55;box-shadow:0 8px 24px rgba(23,53,47,.12);z-index:25}

#page-prices .price-products-panel .price-catalog-toolbar{padding:0 22px;margin-bottom:14px}
#page-prices .price-stat-heading .price-control-icon{border-radius:50%;background:#f0f6f3}
#page-prices #priceHistoryChart{border:0;background:transparent;box-shadow:none;padding:0}
#page-prices .price-list-hint{padding:0 16px 14px}
@media(max-width:767px){#page-prices .price-products-panel{border-radius:20px}#page-prices .price-section-heading{padding:14px 14px 8px}#page-prices .price-products-panel .price-catalog-toolbar{padding:0 14px}#page-prices .price-products-panel .panel-head{padding:0 14px 12px}#page-prices .price-products-panel .price-list{padding:0 12px}}

/* Monthly percentage chart: each colour fades to a transparent zero baseline. */
#page-prices .price-month-svg{display:block;width:100%;height:auto;max-height:240px;overflow:hidden}
#page-prices .price-month-svg text{font:12px 'DM Sans',sans-serif;fill:var(--muted)}
#page-prices .price-month-zero{stroke:#78928b;stroke-width:1.2}
#page-prices .price-month-line{fill:none;stroke-width:2.2;stroke-linecap:round}
#page-prices .positive{color:#d86455;stroke:#d86455}
#page-prices .negative{color:#3d725c;stroke:#3d725c}
#page-prices .price-month-line.positive{stroke:#d86455}
#page-prices .price-month-line.negative{stroke:#3d725c}
#page-prices .price-month-point{fill:#fff;stroke-width:2}
#page-prices .price-month-point.neutral{stroke:var(--muted)}
#page-prices .price-month-target{fill:transparent;cursor:pointer;touch-action:pan-y;outline:none}
#page-prices .price-month-target:focus-visible{outline:none;stroke:var(--green);stroke-width:1}
#page-prices .price-month-guide{stroke:var(--muted);stroke-dasharray:3 4;stroke-width:1;pointer-events:none}
#page-prices .price-month-selected{fill:#fff;stroke-width:2;pointer-events:none}
#page-prices .price-month-guide[hidden],#page-prices .price-month-selected[hidden]{display:none}
#page-prices .price-month-detail{display:flex;align-items:baseline;flex-wrap:wrap;gap:6px 14px;margin-top:10px;padding:12px 14px;background:#f5f8f6;border-radius:12px;font-size:13px;line-height:1.5}
#page-prices .price-month-detail strong{font-size:16px;letter-spacing:0}
#page-prices .price-month-detail span{width:100%;color:var(--muted)}
@media(max-width:767px){#page-prices .price-month-svg{min-height:0;max-height:205px}#page-prices .price-month-svg text{font-size:13px}#page-prices #priceSummaryContext{font-size:13px}}

#page-prices .price-month-selected.neutral{stroke:var(--muted)}

#page-prices #priceAverage.positive,#page-prices #priceAverage.negative,#page-prices .price-month-detail strong{background:transparent!important;border:0;padding:0}

/* Product completion: one rule, independent of price history or approval. */
#page-prices .price-section-heading{flex-wrap:wrap;gap:10px}
#page-prices .price-section-heading h2{flex:1;min-width:160px}
#page-prices #addProduct{display:inline-flex!important;align-items:center;justify-content:center;min-height:44px;padding:10px 14px;white-space:nowrap;font-size:13px;border-radius:12px}
#page-prices .price-more{margin-left:0}
#page-prices .price-completion-badge{display:inline-flex!important;align-items:center;gap:5px;font-size:11px;color:#805821;background:#faf4e9;border-radius:999px;padding:3px 7px;margin:3px 0}
#page-prices .price-completion-badge i{width:5px;height:5px;border-radius:50%;background:#d49237}
.product-completion-note{background:var(--green-soft,#edf4f0);border-radius:12px;padding:12px;margin:12px 0;font-size:13px}.product-completion-note p{margin:5px 0 0}
@media(max-width:767px){#page-prices .mini-filter{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));width:100%}#page-prices .mini-filter button{min-width:0;font-size:12px}#page-prices .price-section-heading h2{flex-basis:100%}#page-prices #addProduct{margin-left:auto}}

/* Compact phone/tablet layout; desktop proportions remain unchanged. */
@media(max-width:1024px){
:is(#page-prices,#page-compare,#page-imports,#page-overview) .page-head{margin-bottom:12px;gap:8px}
#page-prices .price-synthesis-grid{gap:12px;margin-bottom:16px}
#page-prices .price-overview{padding:16px}
#page-prices #priceAverage{font-size:36px;margin:2px 0 5px}
#page-prices #priceSummaryContext{margin-bottom:8px;line-height:1.4}
#page-prices .price-stat-card{padding:14px}
#page-prices .price-stat-card strong{font-size:32px;margin:6px 0 3px}
#page-prices .price-stat-card p{margin:4px 0;line-height:1.4}
#page-prices .price-rise-link{padding-top:8px;min-height:44px}
#page-prices .price-section-heading{padding:12px 14px 8px;gap:8px}
#page-prices .price-products-panel .price-catalog-toolbar{padding:0 14px;margin-bottom:8px}
#page-prices .price-products-panel .panel-head{padding:0 14px 8px}
#page-prices .price-products-panel .price-list{padding:0 12px}
#page-prices .price-products-panel .price-item{padding:9px 2px;min-height:0;gap:8px}
#page-prices .price-month-detail{padding:8px 10px;margin-top:6px;gap:4px 10px}
#page-prices .price-chart-empty{min-height:0;padding:10px;gap:10px}
#page-prices .price-chart-empty p{margin:5px 0 0;line-height:1.4}
#page-prices .price-list-hint{padding-bottom:10px;margin:8px 0}
}
@media(max-width:767px){
:is(#page-prices,#page-compare,#page-imports,#page-overview) .page-head h1{font-size:24px}
#page-prices .price-synthesis-grid{gap:8px;margin-bottom:12px}
#page-prices .price-overview{padding:12px 14px}
#page-prices .price-overview-title{font-size:14px;gap:6px}
#page-prices #priceAverage{font-size:32px}
#page-prices .price-secondary-stats{gap:8px}
#page-prices .price-stat-card{padding:10px 12px}
#page-prices .price-stat-heading{font-size:12px}
#page-prices .price-stat-card strong{font-size:28px;margin:3px 0}
#page-prices .price-stat-card p{font-size:12px}
#page-prices .price-section-heading h2{font-size:17px}
#page-prices #addProduct{margin-left:0;padding:8px 12px}
#page-prices .price-more{margin-left:auto}
#page-prices .filter-search{margin-bottom:6px;min-height:44px}
#page-prices .price-tool>summary{min-height:44px;padding:8px 12px}
#page-prices .mini-filter{gap:2px;padding:3px}
#page-prices .mini-filter button{min-height:44px;padding:6px 5px}
#page-prices .price-item{grid-template-columns:30px minmax(0,1fr) auto 44px}
#page-prices .price-product-icon{width:30px;height:30px;border-radius:9px}
#page-prices .price-item .price-product-name{font-size:14px;line-height:1.35}
#page-prices .price-product-copy small{font-size:12px;line-height:1.35}
#page-prices .price-completion-badge{margin:2px 0;padding:2px 6px}
#page-prices .price-product-movement,#page-prices .price-product-movement.neutral{font-size:14px}
}

/* Reuse the invoice matching scale, rather than an independent mobile scale. */
@media(max-width:767px){
:is(#page-prices,#page-compare,#page-imports,#page-overview) .page-head{gap:var(--cotiqa-review-gap);margin-bottom:10px}
#page-prices .price-products-panel{border-radius:var(--cotiqa-review-card-radius)}
#page-prices .price-section-heading{padding:var(--cotiqa-review-inset) var(--cotiqa-review-inset) 8px;gap:var(--cotiqa-review-gap)}
#page-prices .price-section-heading h2{font-size:16px;font-weight:600;line-height:1.35}
#page-prices #addProduct,#page-prices .price-tool>summary,#page-prices .cotiqa-select-trigger{min-height:var(--cotiqa-review-touch);font-size:var(--cotiqa-review-control-text);font-weight:500;border-radius:var(--cotiqa-review-control-radius)}
#page-prices #addProduct{padding:10px 14px}
#page-prices .price-tool>summary{padding:8px 12px}
#page-prices .cotiqa-select-trigger{padding:8px 30px 8px 10px}
#page-prices .price-products-panel .price-catalog-toolbar{padding:0 var(--cotiqa-review-inset);margin-bottom:10px}
#page-prices .filter-search{min-height:var(--cotiqa-review-touch);padding:0 4px 0 10px;border-radius:var(--cotiqa-review-control-radius);gap:var(--cotiqa-review-gap)}
#page-prices .filter-search input{font-size:16px;line-height:1.3}
#page-prices .barcode-camera-button{height:var(--cotiqa-review-touch);width:var(--cotiqa-review-touch);min-height:var(--cotiqa-review-touch)}
#page-prices .price-tools{gap:var(--cotiqa-review-gap)}
#page-prices .mini-filter{padding:4px;gap:5px;border-radius:14px}
#page-prices .mini-filter button{min-height:var(--cotiqa-review-tab-height);padding:6px;font:500 var(--cotiqa-review-tab-text)/1.2 'DM Sans',sans-serif;border-radius:var(--cotiqa-review-tab-radius);white-space:normal}
#page-prices .price-products-panel .panel-head{padding:0 var(--cotiqa-review-inset) 10px}
#page-prices .price-products-panel .price-list{padding:0 var(--cotiqa-review-inset)}
#page-prices .price-products-panel .price-item{padding:var(--cotiqa-review-inset) 0;gap:6px;grid-template-columns:28px minmax(0,1fr) auto 44px}
#page-prices .price-product-icon{width:28px;height:28px;border-radius:10px}
#page-prices .price-item .price-product-name{font:600 var(--cotiqa-review-name-text)/1.35 'DM Sans',sans-serif}
#page-prices .price-product-copy small{font:400 var(--cotiqa-review-meta-text)/1.3 'DM Sans',sans-serif}
#page-prices .price-completion-badge{font:500 var(--cotiqa-review-meta-text)/1.4 'DM Sans',sans-serif;padding:3px 7px}
#page-prices .price-product-movement,#page-prices .price-product-movement.neutral{font-size:var(--cotiqa-review-control-text);font-weight:500;line-height:1.4}
#page-prices .price-item>.row-actions{min-height:var(--cotiqa-review-touch);width:var(--cotiqa-review-touch)}
#page-prices .price-control-icon svg,#page-prices .price-tool svg,#page-prices .price-product-icon svg{width:18px;height:18px}
}

/* Match the invoice filters: white selected tab on the existing sage track. */
#page-prices .mini-filter button{background:transparent;color:var(--muted)}
#page-prices .mini-filter button.active{background:#fff;color:var(--green)!important;box-shadow:0 2px 8px var(--ink-soft,rgba(23,53,47,.04))}
#page-prices .mini-filter button:focus-visible{outline:2px solid var(--green);outline-offset:2px}

/* Scanner: invisible touch target, visible keyboard focus. */
#page-prices .barcode-camera-button,#page-prices .barcode-camera-button:hover,#page-prices .barcode-camera-button:active{background:transparent!important;border:0!important;box-shadow:none!important;color:var(--green)}
#page-prices .barcode-camera-button:focus-visible{outline:2px solid var(--green)!important;outline-offset:2px}

/* Full-width product row backgrounds; inset belongs to content, not the list. */
#page-prices .price-products-panel .price-list{padding-left:0;padding-right:0}
#page-prices .price-products-panel .price-item{padding-left:22px;padding-right:22px;margin-left:0;margin-right:0;min-width:0;width:100%;box-sizing:border-box}
#page-prices .price-products-panel .price-item:is(:hover,:focus-within,.selected,[aria-selected=true]){background:#f2f7f4}
#page-prices .price-products-panel .price-item:last-child{border-bottom-left-radius:inherit;border-bottom-right-radius:inherit}
@media(max-width:1024px){#page-prices .price-products-panel .price-item{padding-left:14px;padding-right:14px}}
@media(max-width:767px){#page-prices .price-products-panel .price-item{padding-left:var(--cotiqa-review-inset);padding-right:var(--cotiqa-review-inset)}}

/* Shared product-row footprint on desktop, with natural mobile content height. */
@media(min-width:768px){:is(#page-prices .price-products-panel .price-item,#page-compare .comparison-item){min-height:96px;padding-top:14px;padding-bottom:14px}}

/* Match comparison controls exactly instead of the earlier larger price scale. */
#page-prices .filter-search{min-height:48px;height:48px;padding:4px 14px;gap:10px;margin-bottom:8px;border-radius:16px}
#page-prices .filter-search input{font:400 16px 'DM Sans',sans-serif}
#page-prices .barcode-camera-button{height:40px;min-height:40px;width:40px;min-width:40px;padding:8px}
#page-prices .price-tool>summary{min-height:44px;padding:8px 14px;font:400 13px 'DM Sans',sans-serif;border-radius:12px;gap:6px}
#page-prices .price-tool>summary svg{width:16px;height:16px}
#page-prices .mini-filter{gap:4px;padding:4px;border-radius:14px}
#page-prices .mini-filter button{min-width:0;min-height:44px;padding:8px 14px;font:500 13px 'DM Sans',sans-serif;border-radius:10px;flex:0 0 auto}
#page-prices #addProduct{font:500 13px 'DM Sans',sans-serif;min-height:44px;padding:8px 14px}
@media(max-width:767px){
#page-prices .filter-search{height:44px;min-height:44px;padding:0 10px;gap:8px;border-radius:var(--cotiqa-review-control-radius)}
#page-prices .barcode-camera-button{width:44px;min-width:44px;height:44px;min-height:44px}
#page-prices .mini-filter button{min-height:44px;min-width:0;padding:8px 14px;font-size:11px;white-space:normal}
}

#page-prices #priceMergeBar{display:flex;align-items:center;gap:8px;flex-wrap:wrap;padding:12px 22px;background:var(--green-soft)}#page-prices #priceMergeBar.hidden{display:none}#page-prices .price-item:has(.price-merge-choice){grid-template-columns:24px 44px minmax(0,1fr) auto 44px}#page-prices .price-merge-choice{width:20px;height:20px;accent-color:var(--green)}@media(max-width:767px){#page-prices .price-item:has(.price-merge-choice){grid-template-columns:24px 28px minmax(0,1fr) auto 44px;gap:4px}}

/* Product references remain unchanged in storage; display is standardized. */
.price-product-name,.comparison-product h4,.product-history-header h2,.product-cell b,.mobile-invoice-name,.review-product-match b,.review-provisional-name{text-transform:uppercase}

#page-prices #mergePriceProducts{display:block!important;min-height:44px}
#page-prices #priceMergeBar{position:sticky;top:8px;z-index:12;scroll-margin-bottom:calc(100px + env(safe-area-inset-bottom,0px))}
#page-prices #priceMergeBar button{min-height:44px}
@media(max-width:767px){#page-prices #priceMergeBar{padding:10px 12px;gap:6px}#page-prices .price-merge-choice{display:block!important;min-width:20px}}

/* The add action remains primary inside the overflow menu. */
#page-prices .price-more .price-tool-content>#addProduct{display:flex!important;width:100%;box-sizing:border-box;justify-content:flex-start;margin:4px 0;min-height:44px;padding:10px 12px;background:var(--green)!important;color:#fff!important;border:1px solid var(--green)!important;border-radius:12px;font:600 13px/1.4 'DM Sans',sans-serif;text-align:left;white-space:normal}
#page-prices .price-more .price-tool-content>#addProduct:hover{filter:brightness(.94)}
#page-prices .price-more .price-tool-content>#addProduct:focus-visible{outline:2px solid var(--green);outline-offset:3px}
/* Product price tracking subtitle, aligned with the comparison card. */
#page-prices .price-section-title{flex:1;min-width:0}
#page-prices .price-section-title h2{min-width:0}
#page-prices .price-section-title p{margin:5px 0 0;color:var(--muted,#71817b);font:400 13px/1.5 'DM Sans',sans-serif}
@media(max-width:767px){#page-prices .price-section-title p{font-size:12px}}
