.price-trend-dialog{max-width:1000px;width:calc(100% - 32px)}
#productPriceTrend{color:var(--ink,#173e30);font-size:14px;line-height:1.6;overflow-wrap:anywhere}
#productPriceTrend [hidden]{display:none!important}
#productPriceTrend .pt-current{display:flex;justify-content:space-between;flex-wrap:wrap;gap:8px;background:var(--green-2,#e8f5ee);padding:12px 15px;border-radius:10px;margin-bottom:16px}
#productPriceTrend .pt-filters{display:flex;align-items:center;flex-wrap:wrap;gap:10px;margin-bottom:18px}
#productPriceTrend .pt-filters label{display:flex;align-items:center;gap:7px;margin:0}
#productPriceTrend .pt-filters select{width:auto;max-width:240px;min-height:36px;border-radius:7px}
#productPriceTrend .pt-muted,#productPriceTrend .pt-footnote{color:var(--muted,#68746e);font-size:12px}
#productPriceTrend .pt-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;border-bottom:1px solid var(--line,#dce5df);padding-bottom:17px;margin-bottom:15px}
#productPriceTrend .pt-stats>div>span{color:var(--muted,#68746e);font-size:12px}
#productPriceTrend .pt-stats strong{display:block;font-size:25px;font-variant-numeric:tabular-nums;margin:5px 0}
#productPriceTrend .pt-stats strong small{display:inline;font-size:12px;font-weight:400;margin-left:4px}
#productPriceTrend .pt-stats small,#productPriceTrend .pt-selected small{display:block;color:var(--muted,#68746e);font-size:12px}
#productPriceTrend button{appearance:none;padding:7px 12px;border:1px solid var(--green-3,#c5e3d4);border-radius:8px;background:var(--white,#fff);color:var(--green,#176b4d);font:inherit;font-size:13px;cursor:pointer;min-height:36px}
#productPriceTrend button:disabled{opacity:.55;cursor:wait}
#productPriceTrend button:focus-visible{outline:2px solid var(--green,#176b4d);outline-offset:2px}
#productPriceTrend .pt-coverage{display:flex;justify-content:space-between;align-items:center;gap:8px;flex-wrap:wrap;background:var(--green-2,#e8f5ee);border-radius:8px;padding:10px 13px;margin-bottom:16px;font-size:13px}
#productPriceTrend .pt-coverage-pending{background:var(--amber-2,#fff3dc)}
#productPriceTrend .pt-coverage button{background:transparent;border:0;padding:4px}
#productPriceTrend .pt-tabs{display:flex;gap:20px;border-bottom:1px solid var(--line,#dce5df);margin-bottom:16px}
#productPriceTrend .pt-tabs button{border:0;background:none;border-radius:0;padding:8px 0;color:var(--muted,#68746e)}
#productPriceTrend .pt-tabs button[aria-pressed=true]{color:var(--green,#176b4d);border-bottom:2px solid var(--green,#176b4d)}
#productPriceTrend h3{font-size:14px;margin:0;color:var(--ink,#173e30)}
#productPriceTrend .pt-chart-group{margin-bottom:19px}
#productPriceTrend .pt-chart-head{display:flex;gap:8px;flex-wrap:wrap;align-items:center;justify-content:space-between;margin-bottom:6px}
#productPriceTrend .pt-legend{display:flex;flex-wrap:wrap;gap:12px;font-size:11px;color:var(--muted,#68746e)}
#productPriceTrend .pt-legend span:before{content:'';display:inline-block;width:15px;vertical-align:middle;border-top:2px solid var(--green,#176b4d);margin-right:5px}
#productPriceTrend .pt-legend .pt-dot-key:before{width:6px;height:6px;border:0;border-radius:50%;background:var(--blue,#295bac)}
#productPriceTrend .pt-legend .pt-target-key:before{border-top:2px dashed var(--muted,#68746e)}
#productPriceTrend .pt-chart{position:relative;width:100%;min-width:0}
#productPriceTrend .pt-chart svg{display:block;width:100%;overflow:visible}
#productPriceTrend .pt-chart text{fill:var(--muted,#68746e);font:12px -apple-system,BlinkMacSystemFont,"Segoe UI","Microsoft YaHei",sans-serif}
#productPriceTrend .pt-grid{stroke:var(--line,#dce5df);stroke-width:1}
#productPriceTrend .pt-target{fill:none;stroke:var(--muted,#68746e);stroke-width:1.5;stroke-dasharray:5 4}
#productPriceTrend .pt-cumulative{fill:none;stroke:var(--green,#176b4d);stroke-width:2.5}
#productPriceTrend .pt-observation{fill:var(--blue,#295bac)}
#productPriceTrend .pt-bar{fill:var(--green,#176b4d);opacity:.85}
#productPriceTrend .pt-bar-pending{fill:var(--muted,#68746e);opacity:.35}
#productPriceTrend .pt-chart .pt-hit{position:absolute;border:0;background:transparent;padding:0;width:40px;height:40px;min-height:40px;border-radius:50%}
#productPriceTrend .pt-hit:hover{background:rgba(23,107,77,.08)}
#productPriceTrend .pt-selected{display:flex;justify-content:space-between;align-items:center;gap:10px;flex-wrap:wrap;border-top:1px solid var(--line,#dce5df);padding:12px 0}
#productPriceTrend .pt-table-wrap{overflow-x:auto}
#productPriceTrend table{width:100%;font-size:13px}
#productPriceTrend table th{font-size:12px}
#productPriceTrend table small{display:block;color:var(--muted,#68746e);font-size:12px}
#productPriceTrend .pt-record{white-space:normal;min-width:80px}
#productPriceTrend .pt-pending{color:var(--amber,#8b5708);background:var(--amber-2,#fff3dc);border-color:var(--line,#dce5df)}
#productPriceTrend .pt-allocation{margin-top:18px;padding:17px;border:1px solid var(--line,#dce5df);border-radius:10px}
#productPriceTrend .pt-allocation p{margin:8px 0}
#productPriceTrend .pt-form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:15px;margin:15px 0}
#productPriceTrend .pt-allocation label{display:block;font-size:13px}
#productPriceTrend input,#productPriceTrend textarea{width:100%;box-sizing:border-box;margin-top:6px;border-radius:8px;min-height:40px}
#productPriceTrend .pt-net{background:var(--green-2,#e8f5ee);padding:10px 12px;margin-bottom:14px;border-radius:7px;font-variant-numeric:tabular-nums}
#productPriceTrend .pt-actions{display:flex;justify-content:flex-end;gap:9px;flex-wrap:wrap;margin-top:14px}
#productPriceTrend .pt-primary{background:var(--green,#176b4d);color:var(--white,#fff)}
#productPriceTrend .pt-warning{background:var(--amber-2,#fff3dc);color:var(--amber,#8b5708);padding:12px;border-radius:7px;margin:12px 0}
#productPriceTrend .pt-footnote{margin:14px 0 0}
#productPriceTrend .pt-empty{padding:28px 8px;color:var(--muted,#68746e);text-align:center}
#productPriceTrend #ptSaveError{color:var(--red,#b42318);margin-bottom:0}
.product-trend-entry{margin-top:8px;display:inline-flex;align-items:center;gap:5px;min-height:32px;border:1px solid var(--green-3,#c5e3d4);background:var(--green-2,#e8f5ee);color:var(--green,#176b4d);border-radius:7px;font-size:12px;padding:4px 10px;cursor:pointer}
@media(max-width:650px){.price-trend-dialog{width:calc(100% - 16px)}.price-trend-dialog #modalBody{padding:15px}.price-trend-dialog .modal-head{padding:15px}#productPriceTrend .pt-stats{grid-template-columns:1fr 1fr;gap:14px}#productPriceTrend .pt-stats>div:last-child{grid-column:1/-1}#productPriceTrend .pt-stats strong{font-size:22px}#productPriceTrend .pt-form-grid{grid-template-columns:1fr}#productPriceTrend .pt-filters select{max-width:190px}#productPriceTrend .pt-allocation{padding:12px}#productPriceTrend table{min-width:570px}#productPriceTrend .pt-legend{gap:9px}#productPriceTrend input,#productPriceTrend select,#productPriceTrend textarea{font-size:16px}}
@media(pointer:coarse){#productPriceTrend button,#productPriceTrend select{min-height:44px}#productPriceTrend .pt-chart .pt-hit{width:44px;height:44px;min-height:44px}}
