/* Price history dialog — rides on the shared front-dialog shell (glass). Palette: the site's black/yellow (violet is reserved for AI features — owner ruling 2026-09-02). */
.asrtools-price-history__body{padding-top:4px}
.asrtools-price-history__ranges{display:flex;gap:4px;margin:2px 0 14px;padding:4px;border-radius:999px;background:rgba(12,12,12,.06)}
.asrtools-price-history__ranges button{flex:1 1 0;min-width:0;min-height:0;margin:0;padding:7px 4px;border:0;border-radius:999px;background:transparent;color:#4b5563;box-shadow:none;font:inherit;font-size:max(12px,calc(var(--asr-fd-font-size,15px) - 2px));line-height:1.3;cursor:pointer;transition:background .2s ease,color .2s ease}
.asrtools-price-history__ranges button[aria-selected=true]{background:var(--asrtools-dialog-action,#0c0c0c);color:var(--asrtools-dialog-action-text,#fff);font-weight:700}
.asrtools-price-history__figure{min-width:0;max-width:100%;margin:0 0 10px;padding:14px 14px 10px;border:1px solid rgba(12,12,12,.1);border-radius:22px;background:rgba(255,255,255,.55)}
.asrtools-price-history__plot{position:relative;display:flex;align-items:stretch;gap:6px;min-width:0}
.asrtools-price-history__chart{touch-action:pan-y;cursor:crosshair}
.asrtools-price-history__cursor{stroke:rgba(12,12,12,.35);stroke-width:1;stroke-dasharray:4 4;vector-effect:non-scaling-stroke}
.asrtools-price-history__focus{fill:var(--wd-primary-color,#f5b301);stroke:#0c0c0c;stroke-width:2;vector-effect:non-scaling-stroke}
.asrtools-price-history__tip{position:absolute;top:6px;z-index:2;display:flex;flex-direction:column;gap:2px;padding:7px 10px;border-radius:12px;background:rgba(12,12,12,.92);color:#fff;font-size:12px;line-height:1.5;white-space:nowrap;pointer-events:none}
.asrtools-price-history__tip strong{font-size:13px;font-weight:700}
.asrtools-price-history__tip[hidden],.asrtools-price-history__cursor[hidden],.asrtools-price-history__focus[hidden]{display:none}
.asrtools-price-history__tip .asrtools-price-history__delta--up{color:#fca5a5}
.asrtools-price-history__tip .asrtools-price-history__delta--down{color:#86efac}
.asrtools-price-history__summary{margin:0 0 12px;padding:10px 12px;border-radius:14px;background:rgba(12,12,12,.05);color:#1f2937;font-size:var(--asr-fd-font-size,15px);line-height:1.7}
.asrtools-price-history__summary--down{background:rgba(22,163,74,.1)}
.asrtools-price-history__summary--up{background:rgba(220,38,38,.08)}
.asrtools-price-history__chart{display:block;flex:1 1 0%;width:0;min-width:0;max-width:100%;height:210px}
.asrtools-price-history__yaxis{position:relative;flex:0 0 auto;width:96px;height:190px;font-size:11px;color:#6b7280}
.asrtools-price-history__yaxis span{position:absolute;right:0;transform:translateY(-50%);white-space:nowrap}
.asrtools-price-history__placement{display:inline-flex;align-items:center}
.asrtools-price-history__placement .asrtools-price-history__trigger--icon{display:inline-flex;align-items:center;justify-content:center;gap:0;min-width:0;min-height:0;margin:0;padding:0;border:0;border-radius:0;background:transparent;box-shadow:none;font-size:0;line-height:1;cursor:pointer;vertical-align:middle;-webkit-tap-highlight-color:transparent;text-decoration:none}
.asrtools-price-history__placement .asrtools-price-history__trigger--icon:hover,.asrtools-price-history__placement .asrtools-price-history__trigger--icon:focus,.asrtools-price-history__placement .asrtools-price-history__trigger--icon:active,.asrtools-price-history__placement .asrtools-price-history__trigger--icon:focus-visible{background:transparent;outline:none;box-shadow:none}
.asrtools-price-history__action .wd-action-icon{display:inline-flex;align-items:center;justify-content:center;width:20px;height:20px}
.asrtools-price-history__action .wd-action-icon::before{content:none}
/* Theme glyphs measure 19.5×17.6px at 20px (canvas-measured 2026-09-02) and are painted with the theme's own action variables; the SVG mirrors both. */
.asrtools-price-history__action .wd-action-icon svg{width:21.5px;height:21.5px;color:var(--wd-action-icon-color,#333);stroke-width:2.1;transition:color .25s ease}
.asrtools-price-history__action a:hover .wd-action-icon svg,.asrtools-price-history__action a:focus-visible .wd-action-icon svg{color:var(--asr-ph-hover,var(--wd-action-icon-color-hover,var(--color-gray-500,#777)))}
.asrtools-price-history__placement .asrtools-price-history__trigger--icon .asrtools-price-history__icon{flex:0 0 auto;display:block;width:20px;height:20px;overflow:visible;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.asrtools-price-history__placement .asrtools-price-history__action .asrtools-price-history__trigger--icon .asrtools-price-history__icon{width:var(--asr-ph-icon-size,21.5px);height:var(--asr-ph-icon-size,21.5px);stroke-width:2.1}
.asrtools-price-history__placement .wd-action-btn.wd-style-icon>a{width:auto;height:auto;line-height:1}
.asrtools-price-history__placement--preview .asrtools-price-history__trigger--icon{cursor:default}
.asrtools-price-history__grid{stroke:rgba(12,12,12,.16);stroke-width:1;stroke-dasharray:3 5;vector-effect:non-scaling-stroke}
.asrtools-price-history__area{stroke:none}
.asrtools-price-history__line{fill:none;stroke:#0c0c0c;stroke-width:2;stroke-linejoin:round;stroke-linecap:round;vector-effect:non-scaling-stroke}
.asrtools-price-history__dots circle{fill:#fff;stroke:#0c0c0c;stroke-width:1.8;vector-effect:non-scaling-stroke}
.asrtools-price-history__dots .asrtools-price-history__dot--now{fill:var(--wd-primary-color,#f5b301);stroke:#0c0c0c}
.is-drawing .asrtools-price-history__line{stroke-dasharray:2400;stroke-dashoffset:2400;animation:asr-ph-draw .9s cubic-bezier(.16,1,.3,1) forwards}
.is-drawing .asrtools-price-history__dots circle,.is-drawing .asrtools-price-history__area{opacity:0;animation:asr-ph-dot .3s ease-out .65s forwards}
@keyframes asr-ph-draw{to{stroke-dashoffset:0}}
@keyframes asr-ph-dot{to{opacity:1}}
.asrtools-price-history__axis,.asrtools-price-history__range{display:flex;justify-content:space-between;gap:10px;font-size:12px;color:#6b7280;margin-top:6px}
.asrtools-price-history__range{margin-top:2px;font-weight:600;color:#374151}
/* Axis row stays ltr to match the chart's fixed time direction (task01a07220); its
   span children stay rtl so a Persian label's own text still reads correctly. */
.asrtools-price-history__axis{direction:ltr}
.asrtools-price-history__axis>span{direction:rtl}
.asrtools-price-history__stats{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,140px),1fr));gap:8px;margin:0 0 14px}
.asrtools-price-history__stats div{border:1px solid rgba(12,12,12,.1);border-radius:16px;padding:10px 12px;background:rgba(255,255,255,.55)}
.asrtools-price-history__stats dt{font-size:max(12px,calc(var(--asr-fd-font-size,15px) - 2px));color:#6b7280;margin:0 0 4px}
.asrtools-price-history__stats dd{margin:0;font-size:var(--asr-fd-font-size,15px);font-weight:700;color:#0c0c0c}
.asrtools-price-history__table{width:100%;border-collapse:separate;border-spacing:0;border:1px solid rgba(12,12,12,.1);border-radius:18px;overflow:hidden;background:rgba(255,255,255,.55);font-size:13.5px}
.asrtools-price-history__table th{padding:9px 12px;border-bottom:1px solid rgba(12,12,12,.1);font-size:12px;font-weight:600;color:#6b7280;text-align:right}
.asrtools-price-history__table td{padding:9px 12px;text-align:right;vertical-align:middle}
.asrtools-price-history__table tr+tr td{border-top:1px solid rgba(12,12,12,.08)}
.asrtools-price-history__table time{color:#6b7280;font-size:12.5px;white-space:nowrap}
.asrtools-price-history__table strong{font-weight:700;color:#0c0c0c;white-space:nowrap}
.asrtools-price-history__empty{margin:0;padding:10px 12px;border-radius:14px;background:rgba(12,12,12,.05);color:#4b5563;font-size:13px}
.asrtools-price-history__delta--up{color:#dc2626}
.asrtools-price-history__delta--down{color:#16a34a}
.asrtools-price-history__delta--flat{color:#6b7280}
@media (prefers-reduced-motion:reduce){.is-drawing .asrtools-price-history__line,.is-drawing .asrtools-price-history__dots circle,.is-drawing .asrtools-price-history__area{animation:none;stroke-dashoffset:0;opacity:1}}
@media (max-width:420px){.asrtools-price-history__stats{gap:6px}.asrtools-price-history__chart,.asrtools-price-history__yaxis{height:160px}.asrtools-price-history__yaxis{width:84px;font-size:10px}.asrtools-price-history__ranges button{padding:6px 2px}.asrtools-price-history__table{font-size:12.5px}.asrtools-price-history__table td,.asrtools-price-history__table th{padding:8px 8px}}
/* 0.26.137: the theme's icon block (a div with role=button) is a trigger too */
[data-asrtools-price-history-open]{cursor:pointer}

.asrtools-price-history__table-scroll{min-width:0;max-width:100%;overflow-x:auto}
.asrtools-price-history__table-scroll:focus-visible{outline:2px solid currentColor;outline-offset:2px}

/* 0.28.43 — the «چند؟!» chart, second pass: the plot fills the popup edge to edge, no card, no grid, no price
   labels; the hero carries price / delta / ب-ک; day numbers under the plot; a hairline cursor with the date above it. */
.asrtools-price-history__body{padding-top:0}
/* 0.28.45: no separate backing — every popup shares one glass (owner: «شکل تمام پاپ‌آپ‌ها یکسان»); only the scrollbar gutter is dropped so the plot reaches the edges. */
.asrtools-front-dialog.asrtools-front-dialog--glass.asrtools-price-history__dialog[data-asrtools-front-dialog] .asrtools-front-dialog__content{scrollbar-gutter:auto!important}
.asrtools-price-history__figure{margin:0 0 10px;padding:0;border:0;background:transparent}
.asrtools-price-history__hero{display:grid;grid-template-columns:1fr auto;grid-template-areas:"delta when" "price when" "range when";align-items:end;gap:1px 12px;margin:0 0 4px;padding:0 2px}
.asrtools-price-history__hero-delta{grid-area:delta;font-size:13px;font-weight:700;line-height:1.4}
.asrtools-price-history__hero-price{grid-area:price;font-size:32px;font-weight:800;line-height:1.15;color:#0c0c0c;letter-spacing:-.01em;font-variant-numeric:tabular-nums}
.asrtools-price-history__hero-price small{margin-inline-start:6px;font-size:13px;font-weight:600;color:#6b7280}
.asrtools-price-history__hero-range{grid-area:range;font-size:12px;color:#6b7280;font-variant-numeric:tabular-nums}
.asrtools-price-history__hero-range b{font-weight:800;color:#374151}
.asrtools-price-history__hero-when{grid-area:when;align-self:end;font-size:12px;color:#6b7280;white-space:nowrap}
.asrtools-price-history__plot{margin:0 -18px;padding:0}
.asrtools-price-history__figure .asrtools-price-history__chart{width:100%!important;flex:none;height:250px;display:block;overflow:visible}
.asrtools-price-history__figure--up{--asr-ph-c:#e5383b}.asrtools-price-history__figure--down{--asr-ph-c:#16a34a}.asrtools-price-history__figure--flat{--asr-ph-c:#0c0c0c}
.asrtools-price-history__figure .asrtools-price-history__line{stroke:var(--asr-ph-c,#0c0c0c);stroke-width:2}
.asrtools-price-history__figure .asrtools-price-history__dot--now{fill:var(--asr-ph-c,#0c0c0c);stroke:#fff;stroke-width:2;vector-effect:non-scaling-stroke}
.asrtools-price-history__figure .asrtools-price-history__cursor{stroke:var(--asr-ph-c,#0c0c0c);stroke-width:1.25;stroke-dasharray:none;opacity:.9;vector-effect:non-scaling-stroke}
.asrtools-price-history__figure .asrtools-price-history__focus{fill:#fff;stroke:var(--asr-ph-c,#0c0c0c);stroke-width:2}
.asrtools-price-history__figure .asrtools-price-history__tip{top:0;bottom:auto;padding:1px 7px;border-radius:8px;background:#0c0c0c;color:#fff;font-size:11px;line-height:1.7;font-variant-numeric:tabular-nums}
.is-scrubbing .asrtools-price-history__dots{opacity:0}
.asrtools-price-history__figure .asrtools-price-history__axis{position:relative;height:18px;margin:4px -18px 0;direction:ltr;font-size:11px;color:#9ca3af}
.asrtools-price-history__figure .asrtools-price-history__axis>span{position:absolute;top:0;transform:translateX(-50%);direction:rtl;white-space:nowrap}
.asrtools-price-history__figure .asrtools-price-history__axis>span:first-child{transform:translateX(-10%)}
.asrtools-price-history__figure .asrtools-price-history__axis>span:last-child{transform:translateX(-90%)}
.asrtools-price-history__ranges{margin:8px 0 12px;padding:3px;background:rgba(12,12,12,.05)}
.asrtools-price-history__ranges button{padding:6px 4px;font-size:12.5px}
.asrtools-price-history__summary{margin:0 0 10px;padding:0 2px;background:transparent;color:#6b7280;font-size:12.5px;line-height:1.7}
.asrtools-price-history__summary--down,.asrtools-price-history__summary--up{background:transparent}
.is-drawing .asrtools-price-history__hero{animation:asr-ph-dot .35s ease-out both}
@media (max-width:640px){.asrtools-price-history__plot{margin:0 -14px}.asrtools-price-history__figure .asrtools-price-history__axis{margin:4px -14px 0}}
@media (max-width:420px){.asrtools-price-history__hero-price{font-size:28px}.asrtools-price-history__figure .asrtools-price-history__chart{height:210px}}
