/* Astryx line chart: plot, then a wrapping legend. Tooltip is a light card. */
.br-trend{display:flex;flex-direction:column;gap:8px;min-width:0;margin-top:6px}
.br-trend-main{flex:1;min-width:0}
.br-trend-plot{position:relative;min-width:0;outline:none}
.br-trend-plot:focus-visible{outline:2px solid #1b1b1b;border-radius:8px}
.br-trend-canvas{width:100%;height:100%}
.br-trend-canvas canvas{display:block}
.br-trend-plot .br-trend-status{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);font-size:14px;color:#6a6a6a;text-align:center}
.br-trend-retry{background:#fff;border:1px solid #00000014;padding:8px 12px;cursor:pointer;border-radius:12px;color:#111}
.br-trend-footnote{display:flex;justify-content:space-between;font-size:12px;color:#6a6a6a;padding-left:0;gap:8px;line-height:20px}
.br-trend-footnote span:first-child{color:#474747}
.br-trend-legend{width:auto;display:flex;flex-direction:column;gap:8px;border:0;padding:8px 0 0;min-height:0;font-size:14px;color:#111}
.br-trend-legend-list{display:flex;flex-wrap:wrap;align-items:center;gap:4px 16px}
.br-trend-legend-item{display:inline-flex;align-items:center;gap:6px;min-width:0;max-width:100%}
.br-trend-series{display:inline-flex;align-items:center;gap:6px;min-width:0;border:0;border-radius:8px;background:transparent;text-align:start;font:inherit;font-size:14px;line-height:20px;color:#111;padding:2px 4px;cursor:pointer;white-space:nowrap}
.br-trend-series:hover{background:#0000000d}
.br-trend-series i{width:8px;height:8px;border-radius:2px;flex:none}
.br-trend-series span{min-width:0;max-width:240px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.br-trend-series small{display:inline;margin-left:4px;font-size:12px;color:#6a6a6a;font-variant-numeric:tabular-nums}
.br-trend-legend-item.is-off .br-trend-series{color:#919191}
.br-trend-legend-item.is-off .br-trend-series i{opacity:.35}
.br-trend-legend p{margin:0;font-size:14px;color:#6a6a6a}
.br-trend-cursor{pointer-events:none;position:absolute;top:8px;bottom:28px;border-left:1px solid #00000014}
.br-trend-tooltip{position:fixed;width:max-content;max-width:min(320px,calc(100vw - 16px));max-height:calc(100vh - 16px);overflow:hidden;z-index:8002;background:#fff;border:1px solid #d4d4d4;border-radius:12px;box-shadow:0 8px 24px #00000014;padding:8px 12px;font-size:14px;color:#111;pointer-events:none;box-sizing:border-box}
.br-trend-tooltip>b{display:flex;align-items:baseline;justify-content:space-between;gap:16px;font-size:14px;font-weight:600;margin-bottom:4px;white-space:nowrap}
.br-trend-tooltip>b small{font-weight:400;color:#6a6a6a;font-size:12px}
.br-trend-tooltip>div{display:flex;align-items:center;gap:8px;padding:2px 0;line-height:20px}
.br-trend-tooltip i{width:8px;height:8px;border-radius:2px;flex:none}
.br-trend-tooltip span{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#111}
.br-trend-tooltip strong{font-weight:600;font-variant-numeric:tabular-nums;white-space:nowrap;margin-left:12px;text-align:right;color:#111}
.br-trend-tooltip div small{display:inline;margin-left:6px;color:#6a6a6a;font-size:12px;font-weight:400}
.br-trend-tooltip .br-trend-share{color:#474747}
.br-trend-total{display:flex;justify-content:space-between;gap:12px;border-top:1px solid #00000014;margin-top:4px;padding-top:4px;font-size:14px;color:#111}
.br-trend-tooltip .ax-tip-note{margin:4px 0 0;color:#6a6a6a;font-size:12px;line-height:18px;white-space:normal;max-width:280px}
.dashboard-charts .dashboard-chart{height:248px}
.dashboard-chart.dashboard-trend{padding-bottom:6px}
.dashboard-chart .dashboard-bars{gap:19px;margin-top:18px}
.effect-trend-card .effect-trend-top{align-items:center;margin-bottom:8px}
.effect-trend-card .effect-trend-top h2{margin:0;font-size:14px}
.effect-trend-card .effect-trend-top .arco-radio-button-content{font-size:11px}
@media(max-width:760px){.br-trend-series span{max-width:160px}
.dashboard-charts .dashboard-chart{height:auto}}
.br-trend-range{display:flex;align-items:center;gap:8px;margin:12px 0 5px;padding:8px 10px;border-radius:6px;background:#f7f9fc;color:#667085;font-size:10px}
.br-trend-range input{min-width:30px;flex:1;width:0;accent-color:#165dff;cursor:ew-resize}
.br-trend-range span{white-space:nowrap;font-variant-numeric:tabular-nums}
.br-trend-range button{border:0;background:none;padding:2px;color:#165dff;font:inherit;white-space:nowrap;cursor:pointer}
.br-trend-range input:focus-visible{outline:2px solid #165dff;border-radius:3px}
@media(max-width:760px){.br-trend-range{gap:4px;padding:6px}
.br-trend-range span{font-size:9px}}
/* Loaded after dashboard.css: reserve room for chart controls and shop details. */
.dashboard-charts .dashboard-chart{height:370px}
@media(max-width:1000px){.dashboard-charts .dashboard-chart{height:auto;min-height:310px}}
.br-trend-range label{font-size:10px;white-space:nowrap;color:#86909c}
.dashboard-ranking-no-values{position:absolute;inset:65px 0 auto;text-align:center;font-size:12px;color:#86909c}
.br-trend-tooltip div .br-trend-tooltip-detail{display:block;margin-left:0;white-space:nowrap;font-size:11px;font-variant-numeric:tabular-nums}
.br-trend-picture,.br-trend-tooltip-picture{position:relative;display:grid;place-items:center;flex:0 0 32px;width:32px;height:32px;box-sizing:border-box;border:1px solid var(--color-border-2,#e5e6eb);border-radius:4px;background:#fff;color:#86909c;overflow:hidden}
.br-trend-picture{padding:0;cursor:zoom-in}
.br-trend-picture:disabled{cursor:default}
.br-trend-picture img,.br-trend-tooltip-picture img{position:absolute;inset:0;width:100%;height:100%;object-fit:contain}
.br-trend-picture img:not([src]),.br-trend-tooltip-picture img:not([src]),.br-trend-picture img[data-thumb-error],.br-trend-tooltip-picture img[data-thumb-error]{opacity:0}
.br-trend-tooltip-has-pictures{max-width:min(400px,calc(100vw - 16px))}
.br-trend-tooltip .br-trend-tooltip-picture{flex:0 0 32px;min-width:32px}
@media(max-width:480px){.br-trend-tooltip-has-pictures>div{display:grid;grid-template-columns:7px 32px minmax(0,1fr);gap:0 7px}
.br-trend-tooltip-has-pictures>div>strong{grid-column:3;margin-left:0;text-align:left}
.br-trend-tooltip-has-pictures .br-trend-tooltip-picture{grid-row:1 / span 2;grid-column:2}}
