#rmsTemplateDispatch{margin-left:8px;white-space:nowrap}
#rmsTemplateBody .rtpl-target-table{max-height:270px;overflow:auto}
#rmsTemplateBody .rtpl-target-table small{display:block;max-width:330px;overflow-wrap:anywhere}
#rmsTemplateBody .rtpl-target-table th{position:sticky;top:0;background:#edf4fa;z-index:1}
#rmsTemplateBody .rtpl-template-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
#rmsTemplateBody .rtpl-template-options button{border:1px solid #ceddec;border-radius:6px;background:#fff;color:#21476d;text-align:left;padding:16px}
#rmsTemplateBody .rtpl-template-options button:hover{border-color:#327ed3;background:#f2f7ff}
#rmsTemplateBody .rtpl-template-options strong,#rmsTemplateBody .rtpl-template-options small,#rmsTemplateBody .rtpl-template-options span{display:block}
#rmsTemplateBody .rtpl-template-options span{margin-top:10px;color:#2372c9;font-size:12px}
#rmsTemplateBody .rtpl-execution-order{display:flex;flex-wrap:wrap;gap:12px 32px;padding-left:20px}
#rmsTemplateBody .rtpl-dispatch-footer{position:sticky;bottom:0;background:#f3f6fa;padding:12px 0;box-shadow:0 -6px 10px #f3f6fa}
#rmsTemplateBody .rtpl-batch-summary{display:flex;flex-wrap:wrap;gap:15px;align-items:center;padding:14px;background:white;border:1px solid #d7e2ef;border-radius:6px;margin-bottom:16px}
#rmsTemplateBody details.rtpl-device-result{margin:0}
#rmsTemplateBody .rtpl-device-result>summary{display:flex;align-items:center;flex-wrap:wrap;gap:12px;margin:0;padding:4px 0}
#rmsTemplateBody .rtpl-device-result>summary::before{content:'▸'}
#rmsTemplateBody .rtpl-device-result[open]>summary::before{content:'▾'}
#rmsTemplateBody .rtpl-device-result[open]>summary{margin-bottom:14px}
#rmsTemplateBody .rtpl-device-result>summary>span:last-child{margin-left:auto;font-size:12px;color:#617990}
.rda-panel{margin-top:12px;padding-top:12px;border-top:1px solid #d7e2ef;color:#244766;font-size:13px}
.rda-info-title{margin:18px 0 10px;padding-top:14px;border-top:1px solid #d7e2ef;color:#496581;font-size:13px}
.rda-heading{display:flex;align-items:center;justify-content:space-between;gap:10px;overflow-wrap:anywhere}
.rda-heading h3{font-size:15px;margin:0 0 8px}.rda-heading h2{font-size:20px;margin:0}
.rda-heading .rms-button{font-size:12px;padding:4px 8px}
.rda-meta{font-size:12px;line-height:1.7;color:#71839a;margin:9px 0}
.rda-progress{display:flex;align-items:center;gap:8px;font-size:12px;color:#526e89;margin:12px 0}
.rda-progress progress{flex:1;width:100px;height:7px;accent-color:#327ed3}
.rda-steps{list-style:none;margin:8px 0 14px;padding:0;counter-reset:task}
.rda-steps li{counter-increment:task;padding:8px 0;border-bottom:1px solid #eef2f7}
.rda-steps li>div{display:flex;gap:8px;align-items:center}.rda-steps li>div::before{content:counter(task);color:#7b91a7;font-size:12px}
.rda-steps li>div>span:first-child{flex:1;overflow-wrap:anywhere}.rda-steps small{display:block;color:#9c702b;line-height:1.5;margin:5px 0}
.rda-badge{display:inline-block;border-radius:4px;padding:2px 7px;font-size:12px;white-space:nowrap;color:#6c7f93;background:#eef2f6}
.rda-success{background:#e4f5ed;color:#247650}.rda-failed{background:#fdebea;color:#bf4444}.rda-running{background:#e8f0ff;color:#2365c7}.rda-partial,.rda-unconfirmed,.rda-waiting{background:#fff2d8;color:#987020}
.rda-actions{display:flex;align-items:center;flex-wrap:wrap;gap:10px;margin-top:12px}
.rda-error{color:#bf4444;font-size:12px}.rda-history{padding:22px;background:#f3f6fa;color:#244766;min-height:100%;box-sizing:border-box}
.rda-history-item{padding:16px;border:1px solid #d7e2ef;border-radius:6px;margin:12px 0;background:white}
.rda-history-item>summary{display:flex;flex-wrap:wrap;gap:12px;align-items:center;cursor:pointer}.rda-history-item>summary::before{content:'▸'}.rda-history-item[open]>summary::before{content:'▾'}
.rda-history-item>summary>span:last-child{margin-left:auto;font-size:12px;color:#71839a}
@media(max-width:650px){#rmsTemplateBody .rtpl-template-options{grid-template-columns:1fr}.rda-history{padding:12px}}
