.rp-performance{padding:14px 20px 30px;background:#f9fafb;color:#29363d}
.rp-performance button,.rp-performance select{font:inherit;font-size:12px;cursor:pointer}
.rp-tools{display:flex;justify-content:flex-end;gap:8px;margin:0 0 14px}
.rp-tools select,.rp-tools button,.rp-chart-card select{border:1px solid #dfe3e9;border-radius:7px;background:#fff;padding:6px 10px;min-height:30px;color:#29363d}
.rp-tools button{display:flex;align-items:center;gap:6px;font-weight:500}
.rp-tools svg,.rp-chart-icon svg,.rp-settings svg{width:18px;height:18px;display:block}
.rp-data-note{font-size:12px;color:#7b8592;margin:0 0 12px}
.rp-charts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
.rp-chart-card{background:white;border-radius:12px;min-width:0;overflow:visible}
.rp-chart-card>header{display:flex;align-items:center;gap:8px;padding:13px 10px;min-height:56px}
.rp-chart-icon{width:26px;height:28px;display:grid;place-items:center;border:1px solid #edf0f3;border-radius:6px;color:#616a73;flex:none}
.rp-chart-card select[data-rp-metric]{max-width:155px;min-width:0;border-left:3px solid #4dbf9b;padding-left:8px;text-overflow:ellipsis}
.rp-chart-card .rp-interval{margin-left:auto;width:82px;flex:none}
.rp-add{background:none;color:#086aff;padding:4px 0;white-space:nowrap}
.rp-menu{position:relative;flex:none}
.rp-menu>summary{list-style:none;border:1px solid #e0e5eb;border-radius:6px;width:26px;min-height:29px;display:grid;place-items:center;font-size:21px;cursor:pointer;line-height:1}
.rp-menu>summary::-webkit-details-marker{display:none}
.rp-menu>div{position:absolute;right:0;top:34px;z-index:20;width:145px;display:grid;background:#fff;border:1px solid #e2e7ee;border-radius:8px;padding:5px;box-shadow:0 6px 18px #17385b1a}
.rp-menu button{padding:9px 8px;background:none;text-align:left;border-radius:5px}
.rp-menu button:hover,.rp-menu button[aria-pressed=true]{background:#edf4ff;color:#086aff}
.rp-chart-content{padding:0 8px;min-height:280px;display:flex;align-items:center;justify-content:center}
.rp-plot{display:block;width:100%;height:auto;min-height:280px;max-height:360px;overflow:visible}
.rp-empty{min-height:280px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;text-align:center;font-size:14px;color:#8b96a4;padding:20px}
.rp-empty strong{font-size:15px;font-weight:500;color:#677686}
.rp-legend{display:flex;justify-content:center;flex-wrap:wrap;gap:14px;padding:5px 12px 17px;font-size:12px;color:#6b747e;min-height:37px}
.rp-legend span{display:flex;align-items:center;gap:5px}
.rp-legend i{width:12px;height:12px;background:#4dbf9b;border-radius:50%}
.rp-legend span:nth-child(2) i{background:#3979e6}
.rp-details{background:#fff;border-radius:12px;margin-top:16px;overflow:hidden}
.rp-details>header{display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #edf0f4;padding:0 14px;min-height:45px}
.rp-details [role=tablist]{display:flex;align-self:stretch;gap:24px}
.rp-details [role=tab]{background:none;border-bottom:2px solid transparent;padding:12px 0 10px;color:#626c77}
.rp-details [role=tab][aria-selected=true]{color:#086aff;border-color:#086aff}
.rp-settings{background:#fff;border:1px solid #e3e7ed;border-radius:6px;padding:5px;color:#556675}
.rp-summary{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));padding:14px 0}
.rp-summary article{padding:11px 16px 16px;min-height:67px;border-right:1px solid #edf0f3}
.rp-summary article:nth-child(4n){border-right:0}
.rp-summary article>span{display:flex;align-items:center;gap:4px;color:#7a818a;font-size:12px;line-height:18px}
.rp-summary article .info{width:12px;height:12px;font-size:8px;border-width:1px;color:#8b939d;border-color:#8b939d}
.rp-summary strong{display:inline-block;font-size:17px;line-height:23px;font-weight:600;margin-top:1px}
.rp-summary small{font-size:11px;margin-left:6px}
.rp-summary-options{display:grid;grid-template-columns:1fr 1fr;gap:14px}
.rp-summary-options label{display:flex!important;align-items:center;gap:8px;font-size:14px}
.rp-summary-options input{width:auto!important}
.rp-table-scroll{overflow:auto;max-height:480px}
.rp-table-scroll table{width:100%;border-collapse:collapse;font-size:13px;text-align:left;white-space:nowrap}
.rp-table-scroll th{background:#f1f4fb;font-weight:500;color:#626f7e;position:sticky;top:0}
.rp-table-scroll th,.rp-table-scroll td{padding:13px 16px;border-bottom:1px solid #edf0f4}
.rp-table-scroll td.negative{color:#f45f67}.rp-table-scroll td.positive{color:#28ae88}
.rp-table-scroll button{padding:0;background:none;color:#3979e6}
.rp-no-rows{text-align:center;color:#8993a0;height:130px}
.rp-performance button:focus-visible,.rp-performance select:focus-visible,.rp-menu summary:focus-visible{outline:2px solid #086aff;outline-offset:2px}
@media(max-width:1250px){.rp-chart-card>header{flex-wrap:wrap}.rp-chart-card select[data-rp-metric]{flex:1;max-width:none}.rp-chart-card .rp-interval{width:70px}.rp-summary article{padding-inline:12px}}
@media(max-width:850px){.rp-performance{padding:12px 0 25px}.rp-charts{grid-template-columns:1fr}.rp-summary{grid-template-columns:repeat(2,minmax(0,1fr))}.rp-summary article:nth-child(2n){border-right:0}.rp-chart-card>header{padding:12px}.rp-chart-card select[data-rp-metric]{max-width:190px}.rp-plot{max-height:340px}.rp-details [role=tablist]{gap:22px}}
@media print{body[data-workspace=reports]{background:#fff!important}body[data-workspace=reports] .dashboard-header,body[data-workspace=reports] .app-rail,body[data-workspace=reports] .journal-sidebar,body[data-workspace=reports] .journal-filters,body[data-workspace=reports] .ws-report-navigation,body[data-workspace=reports] .rp-tools,body[data-workspace=reports] .rp-add,body[data-workspace=reports] .rp-menu,body[data-workspace=reports] .rp-settings,body[data-workspace=reports] #support-chat{display:none!important}body[data-workspace=reports] #journal-main{margin:0;padding:0}body[data-workspace=reports] .journal-toolbar{position:static;background:white;border:0;padding:8px 0}body[data-workspace=reports] .journal-content{padding:0}.rp-performance{padding:0;background:white}.rp-charts{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.rp-chart-card,.rp-details{break-inside:avoid}.rp-chart-card select{border:0;appearance:none}.rp-add{display:none}.rp-plot{min-height:0;max-height:260px}.rp-chart-content{min-height:0}.rp-summary{grid-template-columns:repeat(4,minmax(0,1fr))}.rp-summary article{padding:8px}.rp-table-scroll{max-height:none;overflow:visible}.rp-performance{-webkit-print-color-adjust:exact;print-color-adjust:exact}@page{size:landscape;margin:12mm}}
/* Report metric controls */
.rp-chart-card>header{position:relative;flex-wrap:wrap;gap:7px}
.rp-control{position:relative;min-width:0}
.rp-chart-icon{padding:3px;background:#fff;cursor:pointer}
.rp-metric-chip{display:flex;align-items:center;gap:10px;max-width:172px;min-height:30px;background:#fff;border:1px solid #dfe3e9;border-left:3px solid var(--metric-color);border-radius:7px;padding:5px 9px;color:#29363d}
.rp-metric-chip>span:first-child{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.rp-metric-chip>span:last-child{flex:none}
.rp-popover{position:absolute;top:calc(100% + 8px);left:0;z-index:55;background:white;border:1px solid #e6e9ee;border-radius:11px;box-shadow:0 2px 5px #25354b14,0 9px 28px #25354b17;color:#29363d}
.rp-picker{width:270px;max-width:calc(100vw - 32px);padding:12px 10px 5px}
.rp-search{display:flex;align-items:center;gap:7px;border:1px solid #dce1e8;border-radius:7px;padding:5px 9px;margin:0 3px 4px;color:#97a0ad}
.rp-search input{border:0;outline:0!important;min-width:0;width:100%;font:inherit;font-size:12px;background:transparent;color:#29363d;padding:0;height:20px}
.rp-picker-list{max-height:min(355px,55vh);overflow:auto;scrollbar-width:thin;scrollbar-color:#b7bdc5 transparent}
.rp-category{display:flex;width:100%;justify-content:space-between;align-items:center;gap:12px;padding:12px 5px;background:none;text-align:left;font-weight:500}
.rp-category.active{color:#086aff}
.rp-category span{font-size:16px;color:#7e8793}
.rp-metric-choice{display:block;width:100%;background:none;text-align:left;line-height:19px;padding:8px 12px;color:#35424d;border-radius:5px}
.rp-metric-choice:hover,.rp-category:hover{background:#f1f6ff}
.rp-metric-choice:disabled{color:#b6bcc3;cursor:default;background:none}
.rp-picker-note{font-size:10px;line-height:15px;margin:5px 4px 3px;color:#86919c;border-top:1px solid #eef0f3;padding-top:6px}
.rp-picker-empty{font-size:12px;padding:16px;color:#7a8490}
.rp-appearance{width:240px;padding:14px}
.rp-appearance strong{display:block;font-size:12px;font-weight:500;margin-bottom:9px;line-height:18px}
.rp-appearance-row{display:flex;gap:6px;align-items:center}
.rp-appearance select{flex:1;min-width:0}
.rp-color{display:flex;border:1px solid #e3e7ec;padding:3px;border-radius:5px;width:27px;height:28px;overflow:hidden;cursor:pointer}
.rp-color input{width:19px;height:20px;border:0;padding:0;background:transparent;cursor:pointer}
.rp-color input::-webkit-color-swatch-wrapper{padding:0}.rp-color input::-webkit-color-swatch{border:0;border-radius:3px}
.rp-text-action{display:block;background:none;padding:7px 0 0;color:#086aff;font-size:12px;text-align:left}
.rp-danger{color:#ef5966}
.rp-options-trigger{display:grid;place-items:center;border:1px solid #e0e5eb;background:#fff;border-radius:6px;width:27px;min-height:30px;font-size:20px!important;line-height:1}
.rp-actions{left:auto;right:0;width:125px;padding:6px}
.rp-actions button{display:flex;align-items:center;gap:8px;width:100%;background:none;padding:9px 6px;text-align:left;border-radius:5px}
.rp-actions button:hover{background:#f1f6ff}
.rp-actions button>span{font-size:17px;color:#677581}
.rp-expand-backdrop{position:fixed;inset:0;background:#0c172966;z-index:2999;border:0;cursor:default!important}
.rp-chart-card.rp-expanded{position:fixed;z-index:3000;inset:5vh 4vw;display:flex;flex-direction:column;overflow:visible;box-shadow:0 15px 50px #162c4340}
.rp-expanded>.rp-chart-content{flex:1;min-height:0;overflow:auto}
.rp-expanded .rp-plot{height:100%;max-height:100%;min-height:220px}
.rp-expanded>header{padding:16px}
.rp-expanded .rp-legend{padding:15px}
.rp-collapse{background:none;border:1px solid #e1e6ed;border-radius:6px;width:28px;height:29px;font-size:20px!important}
.rp-restore{margin-top:12px;background:#fff;border:1px solid #dce3ed;border-radius:7px;color:#086aff;padding:9px 12px}
@media(max-width:850px){.rp-metric-chip{max-width:180px}.rp-add-control .rp-picker{left:auto;right:-60px}.rp-chart-card.rp-expanded{inset:2vh 2vw}.rp-appearance{max-width:calc(100vw - 65px)}}
@media print{.rp-popover,.rp-expand-backdrop,.rp-collapse,.rp-restore{display:none!important}.rp-chart-card.rp-expanded{position:static;box-shadow:none}.rp-metric-chip{max-width:none;border:0}.rp-chart-icon,.rp-options{display:none}}
/* Summary, day and trade statistic layouts */
.rp-details .rpd-grid{padding:14px 0;gap:0}
.rpd-grid .rpd-cell{position:relative;min-width:0;min-height:68px;display:flex;flex-direction:column;justify-content:flex-start}
.rpd-value{display:flex;align-items:center;gap:6px;min-height:25px;flex-wrap:wrap}
.rpd-value strong.positive{color:#20ac83}.rpd-value strong.negative{color:#f25560}
.rpd-value small{margin:0;font-size:11px}
.rpd-open{background:transparent;padding:2px;color:#086aff;display:inline-flex;border-radius:4px}
.rpd-open svg{width:15px;height:15px}
.rpd-scale-unavailable{height:5px;background:#e9edf1;margin:5px 0;width:100%;border-radius:2px}
.rpd-edit-actions{display:flex;align-items:center;gap:7px}
.rpd-edit-actions button{padding:7px 11px;border-radius:6px;line-height:16px}
.rpd-edit-actions .rpd-reset{background:transparent;color:#086aff;border:0;padding-inline:4px;margin-right:8px}
.rpd-cancel{background:#fff;border:1px solid #dfe3e8;color:#29363d}
.rpd-save{background:#086aff;border:1px solid #086aff;color:#fff;font-weight:500}
.rp-details.rpd-editing{overflow:visible}
.rp-details.rpd-editing .rpd-grid{padding:14px 12px 8px;gap:12px}
.rpd-editing .rpd-cell{border:1px dashed #e3e7ed!important;border-radius:6px;padding:7px;min-height:62px}
.rpd-cell-label{display:flex;align-items:center;gap:4px;min-width:0}
.rpd-cell-label select{min-width:0;max-width:100%;border:0;background:transparent;color:#6f7781;font-size:12px;padding:0 14px 0 0;cursor:pointer}
.rpd-drag{flex:none;border:0;background:transparent;font-size:20px!important;color:#7c838b;padding:0 1px;line-height:22px;cursor:grab!important}
.rpd-drag:active{cursor:grabbing!important}
.rpd-remove{position:absolute;top:-7px;right:-1px;width:15px;height:15px;border-radius:50%;display:grid;place-items:center;background:#171b21;color:#fff;padding:0;line-height:12px;font-size:13px!important;z-index:1}
.rpd-dragging{opacity:.4}.rpd-editing .rpd-drop-target{outline:2px solid #086aff;outline-offset:1px;background:#f3f7ff}
.rpd-editor-footer{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:4px 13px 14px;flex-wrap:wrap}
.rpd-editor-footer select{border:1px solid #e0e5eb;border-radius:6px;background:#fff;color:#086aff;padding:6px 9px;max-width:240px}
.rpd-editor-footer>span{color:#8b929d;font-size:11px}
.rpd-empty{grid-column:1/-1;font-size:13px;color:#7b8591;text-align:center;padding:14px}
.rpd-status{font-size:12px;margin:0;padding:5px 14px 12px;color:#627690}.rpd-status[hidden]{display:none}
@media(max-width:700px){.rpd-editing>header{flex-wrap:wrap;padding-block:6px;gap:8px}.rpd-edit-actions{margin-left:auto}.rpd-edit-actions .rpd-reset{margin-right:0}.rp-details.rpd-editing .rpd-grid{gap:12px 8px}.rpd-cell-label select{font-size:11px}.rpd-editor-footer>span{font-size:10px}}
@media print{.rpd-edit-actions,.rpd-remove,.rpd-drag,.rpd-editor-footer,.rpd-open,.rpd-status{display:none!important}.rpd-editing .rpd-cell{border:0!important}.rpd-cell-label select{appearance:none}}

.rp-series-appearance+.rp-series-appearance{border-top:1px solid #e8ecf1;margin-top:10px;padding-top:12px}

/* Compact report interval and actions menus. */
.rp-interval-control{margin-left:auto;flex:none}
.rp-chart-card .rp-interval{margin:0;display:flex;align-items:center;justify-content:space-between;gap:12px;width:84px;min-height:30px;padding:5px 9px;border:1px solid #dfe3e9;border-radius:7px;background:#fff;color:#29363d}
.rp-interval svg{width:12px;height:12px;fill:none;stroke:currentColor;stroke-width:1.5}
.rp-interval[aria-expanded=true]{border-color:#086aff}
.rp-interval[aria-expanded=true] svg{transform:rotate(180deg);color:#086aff}
.rp-interval-menu{top:calc(100% + 4px);width:84px;padding:4px;box-sizing:border-box}
.rp-interval-menu button{display:block;width:100%;min-height:30px;padding:6px 7px;background:none;border-radius:5px;text-align:left;line-height:18px;color:#29363d}
.rp-interval-menu button:hover,.rp-interval-menu button[aria-checked=true]{background:#e7edfc}
.rp-actions{top:calc(100% + 4px);width:104px;padding:4px;box-sizing:border-box}
.rp-actions button{gap:7px;min-height:32px;padding:6px 7px;line-height:20px;white-space:nowrap}
.rp-actions button svg{width:16px;height:16px;flex:none;fill:none;stroke:#778087;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round}
