#bandPercentiles th,#bandPercentiles td{padding:8px 12px;text-align:right;border-bottom:1px solid #38404d}#bandPercentiles th:first-child,#bandPercentiles td:first-child{text-align:left}[hidden]{display:none!important}h2{padding:12px 20px}
#bandPercentiles{overflow-x:auto}


#reportPanel{min-width:0}#reportPanel .controls{grid-template-columns:repeat(auto-fit,minmax(280px,1fr))}
#reportPanel details>summary{padding:12px 20px;color:#b9c4d2;cursor:pointer}
#reportStages{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:8px;padding:12px 20px}
#reportStages p{grid-column:1/-1;margin:4px 0}#reportStages div{padding:8px 10px;background:#151b22;border-radius:4px}
#reportTitle,#reportComment{margin:0}#reportComment:empty{display:none}


.emv-chart-panel{margin:12px 20px;border:1px solid #384453;border-radius:10px;overflow:hidden;min-width:0;background:#101419}
.emv-panel-header{display:flex;align-items:center;gap:8px;padding:8px 14px;background:#151d27;border-bottom:1px solid #303e4f}
.emv-panel-header strong{margin-right:auto}.emv-panel-header button{padding:5px 10px;min-height:34px}.emv-drag{cursor:grab}
.emv-chart-panel.drop-before{border-top:4px solid #258ccd}.emv-chart-panel.moving{opacity:.5}
.emv-order-help{padding:12px 20px;color:#b9c4d2}.emv-order-help button{margin-left:12px}
.sensor-availability{font-size:12px;line-height:1.5;color:#b9c4d2;max-width:420px}
.sensor-availability:empty{display:none}

#chartStack #plot{height:max(800px,calc(45vh - 170px));min-height:0}
.emv-display-controls{display:flex;flex-wrap:wrap;align-items:center;gap:18px;padding:12px 16px;color:#dce3ef}
.emv-display-controls select{background:#202a36;color:#dce3ef;border:1px solid #52657d;border-radius:5px;padding:6px}
.emv-display-controls label{display:flex;align-items:center;gap:8px}
@media(max-width:600px){.emv-chart-panel{margin:8px 5px}.emv-panel-header{padding:8px}.emv-panel-header strong{font-size:13px}.emv-drag{display:none}}


.emv-chart-panel>.group{border:0;border-radius:0;padding:12px 20px}
.emv-chart-panel>details{padding:12px 20px}
.emv-chart-panel>.explain{margin:0}
.emv-chart-panel>p{padding:10px 20px}


.emv-panel-header{flex-wrap:wrap}
.emv-png-choice{display:flex;align-items:center;gap:6px;font-size:12px;cursor:pointer;white-space:nowrap;padding:5px 8px;border:1px solid #384453;border-radius:6px;color:#b9c4d2}
.emv-png-choice input{accent-color:#258ccd;cursor:pointer}
.emv-png-selected .emv-png-choice{border-color:#258ccd;color:#dce3ef;background:#112b3a}
#pngStatus{display:block;max-width:420px;color:#b9c4d2;font-size:13px;line-height:1.5}


#reportStages{display:block;overflow-x:auto;padding:5px 22px}
#bandPercentiles{padding:5px 22px}
#reportStages table,#bandPercentiles table{border-collapse:collapse;width:100%;font-size:12px;font-weight:400}
#reportStages th,#reportStages td,#bandPercentiles th,#bandPercentiles td{border:1px solid #313b49;padding:5px 8px;text-align:right;white-space:nowrap}
#reportStages th:first-child,#bandPercentiles th:first-child{text-align:left}
#reportStages thead,#bandPercentiles thead{color:#bf9bff}
#recordedEventControls .event-note{flex-basis:100%;margin:0}
