/* 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)}
#page-prices .page-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:20px}
#page-prices .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;gap:10px;background:#fff;border:1px solid var(--line);border-radius:16px;padding:4px 6px 4px 14px;min-height:48px;width:100%;margin-bottom:10px}
#page-prices .filter-search input{min-width:0;flex:1;width:100%;border:0;background:transparent;outline:none;font-size:16px}
#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{min-width:44px;width:44px;height:44px;min-height:44px;font-size:0;padding:10px;flex-shrink:0;border:0;background:var(--green-soft,#edf4f0)}
#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;gap:8px;cursor:pointer;list-style:none;border:1px solid var(--line);border-radius:12px;background:#fff;min-height:44px;padding:12px 16px;font-size:14px;font-weight:500}
#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 #addProduct{background:var(--green);color:#fff}
#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;gap:4px;padding:4px;border-radius:14px;background:var(--green-soft,#f0f4f2)}
#page-prices .mini-filter button{flex:0 0 auto;min-width:100px;min-height:44px;border-radius:11px;font-size:14px}
#page-prices .mini-filter button.active{background:var(--green);color:#fff!important;box-shadow:0 2px 6px rgba(23,53,47,.10)}
#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}
 #page-prices .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{font-size:13px;align-items:flex-start;gap:6px}
 #page-prices .price-stat-heading svg{width:18px;height:18px;flex-shrink:0}
 #page-prices .price-stat-card strong{font-size:30px;margin:10px 0 4px}
 #page-prices .price-stat-card p{font-size:12px}
 #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;border-radius:11px;background:var(--green-soft,#edf4f0);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-stat-card strong{font-size:36px}#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}}
