body.hl-rt-custom-metrics-open{overflow:hidden!important}
body.hl-rt-custom-metrics-open .realtime-modal-backdrop{display:none!important}
.hl-rt-custom-mask{position:fixed;inset:0;z-index:4800;display:flex;align-items:center;justify-content:center;padding:40px;background:rgba(0,0,0,.55);font-family:"Microsoft YaHei","PingFang SC",Arial,sans-serif;color:#303133}
.hl-rt-custom-dialog{display:grid;grid-template-rows:58px minmax(0,1fr) 60px;width:min(1785px,calc(100vw - 80px));height:min(890px,calc(100vh - 80px));overflow:hidden;background:#fff;border-radius:8px;box-shadow:0 18px 55px rgba(0,0,0,.3)}
.hl-rt-custom-dialog>header,.hl-rt-custom-dialog>footer{display:flex;align-items:center;border-bottom:1px solid #dcdfe6;padding:0 20px;background:#fff}
.hl-rt-custom-dialog>header{justify-content:space-between}
.hl-rt-custom-dialog>header h2{margin:0;font-size:17px;line-height:24px;font-weight:700;color:#303133}
.hl-rt-custom-close{display:grid;place-items:center;width:34px;height:34px;padding:0;border:0;background:transparent;color:#303133;font-size:28px;line-height:1}
.hl-rt-custom-close:hover{color:#409eff}
.hl-rt-custom-body{display:grid;grid-template-columns:minmax(0,1fr) 340px;min-height:0;overflow:hidden}
.hl-rt-custom-groups{min-width:0;padding:18px 20px;overflow-y:auto;background:#fff}
.hl-rt-custom-group{margin:0 0 14px}
.hl-rt-custom-group-title{display:flex;align-items:center;height:40px;padding:0 14px;background:#f5f7fa;color:#303133;font-size:14px}
.hl-rt-custom-group-title strong{font-weight:700}
.hl-rt-custom-group-title label{display:inline-flex;align-items:center;gap:7px;margin-left:12px;color:#409eff;font-size:12px;cursor:pointer}
.hl-rt-custom-group-title input,.hl-rt-custom-option input{width:14px;height:14px;margin:0;accent-color:#409eff;cursor:pointer}
.hl-rt-custom-options{display:flex;flex-wrap:wrap;align-items:center;gap:10px 14px;min-height:52px;padding:10px 14px}
.hl-rt-custom-option{display:inline-flex;align-items:center;gap:8px;height:32px;padding:0 12px;border:1px solid #dcdfe6;border-radius:2px;background:#fff;color:#606266;font-size:12px;white-space:nowrap;cursor:pointer}
.hl-rt-custom-option.selected{border-color:#409eff;color:#409eff}
.hl-rt-custom-sort{display:grid;grid-template-rows:48px 34px 24px minmax(0,1fr);gap:8px;min-height:0;padding:0 14px 14px;border-left:1px solid #e4e7ed;background:#f5f7fa}
.hl-rt-custom-sort-head{display:flex;align-items:center;gap:8px;margin:0 -14px;padding:0 14px;border-bottom:1px solid #e4e7ed;background:#fff}
.hl-rt-custom-sort-head strong{font-size:13px}
.hl-rt-custom-sort-head span{color:#909399;font-size:12px}
.hl-rt-custom-restore{margin-left:auto;padding:0;border:0;background:transparent;color:#409eff;font-size:12px}
.hl-rt-custom-sort>select{width:100%;height:34px;padding:0 10px;border:1px solid #dcdfe6;border-radius:3px;background:#fff;color:#909399;font-size:12px}
.hl-rt-custom-count{align-self:end;color:#909399;font-size:11px}
.hl-rt-custom-sort-list{min-height:0;overflow-y:auto;padding-right:2px}
.hl-rt-custom-sort-item{position:relative;display:flex;align-items:center;height:34px;margin-bottom:8px;border:1px solid transparent;border-radius:3px;background:#fff;color:#606266;font-size:12px}
.hl-rt-custom-sort-item.dragging{opacity:.45}
.hl-rt-custom-sort-item.drag-over:before,.hl-rt-custom-sort-item.drag-over.after:after{content:"";position:absolute;left:0;right:0;top:-5px;height:2px;background:#409eff}
.hl-rt-custom-sort-item.drag-over.after:before{display:none}
.hl-rt-custom-sort-item.drag-over.after:after{top:auto;bottom:-5px}
.hl-rt-custom-grip{display:grid;place-items:center;width:34px;height:32px;padding:0;border:0;background:transparent;color:#b4bac3;font-size:16px;line-height:1;cursor:grab}
.hl-rt-custom-grip:active{cursor:grabbing}
.hl-rt-custom-grip:focus-visible{outline:2px solid rgba(64,158,255,.35);outline-offset:-2px}
.hl-rt-custom-sort-item>span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.hl-rt-custom-dialog>footer{justify-content:flex-end;gap:10px;border-top:1px solid #dcdfe6;border-bottom:0}
.hl-rt-custom-dialog>footer button{height:34px;padding:0 16px;border:1px solid #dcdfe6;border-radius:3px;background:#fff;color:#606266;font-size:13px}
.hl-rt-custom-dialog>footer .hl-rt-custom-confirm{border-color:#409eff;background:#409eff;color:#fff}
.hl-rt-custom-columns-applied [data-hl-rt-metric-key]{box-sizing:border-box}
@media(max-width:1100px){.hl-rt-custom-mask{padding:20px}.hl-rt-custom-dialog{width:calc(100vw - 40px);height:calc(100vh - 40px)}.hl-rt-custom-body{grid-template-columns:minmax(0,1fr) 290px}}
@media(max-width:760px){.hl-rt-custom-mask{padding:8px}.hl-rt-custom-dialog{width:calc(100vw - 16px);height:calc(100vh - 16px);grid-template-rows:50px minmax(0,1fr) 54px}.hl-rt-custom-body{grid-template-columns:1fr}.hl-rt-custom-sort{display:none}.hl-rt-custom-groups{padding:10px}.hl-rt-custom-options{padding:8px}.hl-rt-custom-option{padding:0 8px}}
