.dashboard-trend{overflow:hidden}.trend-badge{display:grid;place-items:center;background:#eee4ff;color:#8847de;border-radius:12px;width:40px;height:40px;font-size:24px}.trend-periods{display:flex;flex-wrap:wrap;gap:4px;background:var(--surface,#f7f2fe);border:1px solid var(--border);border-radius:12px;padding:4px;width:max-content;max-width:100%;margin:14px 0}.trend-periods button{padding:6px 10px;min-height:36px;background:transparent;border:0}.trend-periods button[aria-pressed=true]{background:#8847de;color:white;box-shadow:0 3px 12px #8847de33}.trend-legend{display:flex;gap:18px;justify-content:flex-start;font-size:12px}.trend-sales{fill:#8b46db;color:#8b46db}.trend-purchases{fill:#efa52e;color:#efa52e}.trend-grid{stroke:var(--border);stroke-width:1}.trend-axis{font-family:inherit;font-size:11px;fill:var(--muted)}.trend-scroll{overflow-x:auto;direction:ltr}.trend-scroll svg{width:100%;min-width:520px;display:block}.trend-bar{transform-origin:center 218px;animation:trend-grow .6s ease both;pointer-events:none}.trend-hit{fill:transparent;cursor:pointer}.trend-point:focus{outline:none}.trend-point:focus .trend-hit,.trend-point:hover .trend-hit{fill:#8847de0b;stroke:#8847de;stroke-dasharray:3}.trend-detail{min-height:34px;font-size:12px;color:var(--muted);margin:4px 0}.trend-totals{display:grid;grid-template-columns:repeat(auto-fit,minmax(130px,1fr));gap:8px}.trend-totals>div{background:var(--surface,#f8f5fc);border:1px solid var(--border);border-radius:12px;padding:12px}.trend-totals span{display:block;font-size:12px;color:var(--muted);margin-bottom:8px}.trend-totals strong{font-size:16px;overflow-wrap:anywhere}.trend-totals small{font-size:10px;font-weight:normal}@keyframes trend-grow{from{transform:scaleY(.05)}to{transform:scaleY(1)}}@media(prefers-reduced-motion:reduce){.trend-bar{animation:none}}@media(max-width:760px){.trend-periods{width:100%}.trend-periods button{flex:1;min-height:44px}.trend-totals{grid-template-columns:1fr}.trend-detail{min-height:48px}.dashboard-trend .panel-head{gap:8px}}@media print{.trend-periods,.trend-detail,.trend-badge{display:none}.trend-bar{animation:none}}
html[data-theme=dark] .trend-periods,html[data-theme=dark] .trend-totals>div{background:#1c324b;color:#eaf3fb}html[data-theme=dark] .trend-badge{background:#3d2f58;color:#c29aff}html[data-theme=dark] .trend-point:focus .trend-hit,html[data-theme=dark] .trend-point:hover .trend-hit{fill:#c29aff15;stroke:#c29aff}
