/* V52: 近7天小曲线 + 悬停7/30/60天大图 */
.v52-trend-target{cursor:pointer!important;position:relative}
.hl-rt-ad-ctr-mini{display:block;min-height:30px}
.hl-rt-ad-ctr-note{display:block;font-size:11px;line-height:30px;color:#606266;white-space:nowrap}
.v52-trend-target[data-v52-metric="adCtr"]:focus-visible{outline:2px solid #409eff;outline-offset:2px;border-radius:2px}
.v52-trend-target[data-v52-metric="stock"]:focus-visible{outline:2px solid #409eff;outline-offset:2px;border-radius:2px}
body.hlbi-realtime-v145-active .realtime-product-tools .realtime-zero.active{
  border-color:#b52f37!important;background:#b52f37!important;color:#fff!important;
}
.v52-trend-target .realtime-mini-spark{width:80px!important;height:30px!important;display:block!important;overflow:visible!important}
.v52-trend-target .spark-area{fill:var(--hl-rt-spark-fill,rgba(64,158,255,.12))!important;stroke:none!important}
.v52-trend-target .spark-line{fill:none!important;stroke:#409eff!important;stroke-width:1.2!important;stroke-linecap:round!important;stroke-linejoin:round!important;vector-effect:non-scaling-stroke!important}
#realtime-trend-popup-v52{display:none;position:fixed;z-index:12050;width:470px;padding:14px;background:#fff;border:1px solid #dce4ed;border-radius:6px;box-shadow:0 8px 28px rgba(34,52,76,.20);box-sizing:border-box}
#realtime-trend-popup-v52.show{display:block}
#realtime-trend-popup-v52 .v52-tabs{display:flex;margin-bottom:10px}
#realtime-trend-popup-v52 .v52-tabs button{height:34px;min-width:76px;padding:0 16px;border:1px solid #d5dce6;border-right:0;background:#fff;color:#5f6670;font-size:13px;cursor:pointer}
#realtime-trend-popup-v52 .v52-tabs button:first-child{border-radius:4px 0 0 4px}
#realtime-trend-popup-v52 .v52-tabs button:last-child{border-right:1px solid #d5dce6;border-radius:0 4px 4px 0}
#realtime-trend-popup-v52 .v52-tabs button.active{background:#409eff;border-color:#409eff;color:#fff}
#realtime-trend-popup-v52 .v52-chart{height:230px;overflow:hidden}
#realtime-trend-popup-v52 .v52-chart svg{display:block;width:100%;height:100%}
#realtime-trend-popup-v52 .v52-grid{stroke:#e5e7eb;stroke-width:1}
#realtime-trend-popup-v52 .v52-axis{fill:#909399;font-size:12px}
#realtime-trend-popup-v52 .v52-area{fill:url(#hl-rt-popup-area);stroke:none}
#realtime-trend-popup-v52 .v52-line{fill:none;stroke:#409eff;stroke-width:1.2;stroke-linecap:round;stroke-linejoin:round;vector-effect:non-scaling-stroke}
#realtime-trend-popup-v52{font-family:"Helvetica Neue",Helvetica,"PingFang SC","Hiragino Sans GB","Microsoft YaHei",Arial,sans-serif;border-color:#ebeef5;box-shadow:0 2px 12px rgba(0,0,0,.1)}
#realtime-trend-popup-v52 .v52-loading,#realtime-trend-popup-v52 .v52-error{height:210px;display:flex;align-items:center;justify-content:center;color:#9099a6}
#realtime-trend-popup-v52 .v52-error{color:#e45656}


/* V53: 实时分析只保留底部固定横向滚动条，隐藏表格容器自身横向滚动条，效果与订单管理一致 */
.realtime-products-panel .realtime-table-scroll{
  overflow-x:auto !important;
  overflow-y:visible !important;
  scrollbar-width:none !important;
  -ms-overflow-style:none !important;
  padding-bottom:0 !important;
  margin-bottom:0 !important;
}
.realtime-products-panel .realtime-table-scroll::-webkit-scrollbar{
  height:0 !important;
  width:0 !important;
  background:transparent !important;
}
.realtime-products-panel .realtime-table-scroll::-webkit-scrollbar-thumb{
  background:transparent !important;
}
.realtime-products-panel.hl-has-fixed-hscroll{
  padding-bottom:calc(var(--hl-pagination-space, 53px) + var(--hl-hscroll-space, 22px)) !important;
}

/* V54：顶部即时分析曲线改为平滑弧线；今日未来时段由主 JS 截断不绘制。 */
.realtime-chart.v54-smooth-chart svg path.today-line,
.realtime-chart.v54-smooth-chart svg path.yesterday-line,
.realtime-chart.v54-smooth-chart svg path.week-line{
  fill:none!important;
  stroke-linecap:round!important;
  stroke-linejoin:round!important;
  vector-effect:non-scaling-stroke!important;
}

/* V54：7/30/60 天弹层，鼠标移动到哪一天就显示哪一天的数据。 */
#realtime-trend-popup-v52 .v52-chart{position:relative!important;}
#realtime-trend-popup-v52 .v54-hover-guide{
  display:none;
  stroke:#909399;
  stroke-width:1;
  stroke-dasharray:4 3;
  vector-effect:non-scaling-stroke;
  pointer-events:none;
}
#realtime-trend-popup-v52 .v54-hover-guide.show{display:block;}
#realtime-trend-popup-v52 .v54-trend-hover-tip{
  position:absolute;
  z-index:3;
  min-width:124px;
  padding:8px 10px;
  border-radius:5px;
  background:#fff;
  border:1px solid #e4e8ee;
  box-shadow:0 4px 14px rgba(32,49,72,.18);
  color:#4d5663;
  font-size:12px;
  line-height:1.55;
  pointer-events:none;
  box-sizing:border-box;
}
#realtime-trend-popup-v52 .v54-trend-hover-tip[hidden]{display:none!important;}
#realtime-trend-popup-v52 .v54-trend-hover-tip b{display:block;font-size:13px;margin-bottom:3px;color:#555;}
#realtime-trend-popup-v52 .v54-trend-hover-tip span{display:flex;align-items:center;gap:6px;white-space:nowrap;}
#realtime-trend-popup-v52 .v54-trend-hover-tip i{width:9px;height:9px;border-radius:50%;background:#409eff;display:inline-block;}
#realtime-trend-popup-v52 .v54-trend-hover-tip strong{font-size:14px;color:#222;margin-left:auto;}
