/* RT30 compacto y página ampliada. No altera estilos de otras vistas. */
.rt30-card{position:relative;box-sizing:border-box;min-width:0;margin-top:16px;padding:13px 14px 10px;background:#fff;border:1px solid #ddd6fe;border-radius:13px;font-family:Arial,sans-serif}
.rt30-head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin-bottom:8px}.rt30-head h4{margin:0 0 5px;font-size:14px;line-height:1.3;color:#4c1d95}.rt30-head p{margin:0;color:#64748b;font-size:11px;line-height:1.45}.rt30-tools{display:flex;flex-direction:column;align-items:flex-end;gap:6px;flex-shrink:0}.rt30-period{color:#64748b;font-size:10px}
.rt30-open{display:inline-flex;align-items:center;gap:6px;padding:8px 12px;border:1px solid #d8c7ff;border-radius:8px;font-size:12px;font-weight:700;color:#5b21b6;background:#fff;text-decoration:none;white-space:nowrap}.rt30-open:hover{background:#f5f0ff}.rt30-open:focus-visible{outline:2px solid #7c3aed;outline-offset:3px}
.rt30-legend{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:8px 15px;margin:6px 0;color:#475569;font-size:10px;line-height:1.5}.rt30-legend span{display:inline-flex;align-items:center;gap:5px}.rt30-legend i{width:9px;height:9px;display:inline-block;border-radius:50%}.rt30-legend .high{background:#dc2626}.rt30-legend .low{background:#2563eb}.rt30-legend .limit{height:0;width:25px;border-top:2px dashed #7c3aed;border-radius:0}.rt30-order{color:#64748b}
.rt30-plot{display:flex;align-items:flex-start;min-width:0}.rt30-yaxis{flex:0 0 52px;width:52px;display:block}.rt30-scroll{flex:1;min-width:0;overflow-x:auto;overflow-y:hidden;padding:0 0 4px;scrollbar-width:thin}.rt30-surface{width:100%}.rt30-svg{display:block;width:100%;overflow:visible}.rt30-tick,.rt30-axis-title{fill:#64748b;font-size:10px}.rt30-axis-title{font-size:10px;font-weight:600}.rt30-grid{stroke:#e7e5ee;stroke-width:1;stroke-dasharray:3 5}.rt30-baseline{stroke:#cbd5e1;stroke-width:1}.rt30-threshold{stroke:#7c3aed;stroke-width:1.8;stroke-dasharray:6 5}.rt30-value{fill:#173c66;font-size:var(--rt30-value-size,9px);font-weight:600}
.rt30-point{cursor:pointer;stroke-width:1.3}.rt30-point.high{fill:#dc2626;stroke:#991b1b}.rt30-point.low{fill:#2563eb;stroke:#1d4ed8}.rt30-point:hover,.rt30-point:focus{stroke:#fff;stroke-width:2.5;filter:drop-shadow(0 1px 3px #33415580);outline:none}
.rt30-names{display:grid;align-items:start;font-size:9.5px;gap:0;padding-top:2px}.rt30-name{padding:0 2px;text-align:center;line-height:1.12;color:#111827;font-weight:700;overflow-wrap:anywhere;min-width:0}.rt30-note{margin:9px 0 0;color:#64748b;font-size:10px;line-height:1.5}.rt30-empty{padding:30px 15px;text-align:center;color:#64748b;font-size:12px}
.rt30-tooltip{position:absolute;z-index:40;box-sizing:border-box;max-width:min(310px,calc(100% - 16px));padding:11px 13px;border:1px solid #ddd6fe;border-radius:9px;background:#fff;box-shadow:0 9px 24px #4c1d9528;white-space:pre-line;color:#334155;font-size:12px;line-height:1.55;pointer-events:none}.rt30-tooltip[hidden]{display:none!important}
.rt30-page{margin:0;background:#f6f8fc;color:#173c66;font-family:Arial,sans-serif}.rt30-page *{box-sizing:border-box}.rt30-page-header{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:21px 26px;background:#fff;border-bottom:1px solid #e2e8f0}.rt30-page-header p{font-size:10px;letter-spacing:.08em;font-weight:700;color:#7c3aed;margin:0 0 5px}.rt30-page-header h1{font-size:22px;margin:0;color:#173c66}.rt30-page-header a{color:#5b21b6;font-size:12px;text-decoration:none;font-weight:700;white-space:nowrap}.rt30-page-main{width:100%;padding:18px 24px 30px;margin:0 auto}.rt30-page-kpis{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.rt30-page-kpis>div{background:#fff;border:1px solid #e2e8f0;border-radius:11px;padding:13px 17px}.rt30-page-kpis span{display:block;color:#64748b;font-size:11px}.rt30-page-kpis strong{display:block;margin-top:5px;color:#4c1d95;font-size:25px}.rt30-standalone{padding:16px 18px 12px}.rt30-standalone .rt30-head h4{font-size:16px}.rt30-standalone .rt30-period{font-size:12px}.rt30-standalone .rt30-note{font-size:11px}
.rt30-detail{margin-top:18px;padding:16px 18px;background:#fff;border:1px solid #e2e8f0;border-radius:12px;min-width:0}.rt30-detail-head{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:12px}.rt30-detail h2{font-size:16px;margin:0}.rt30-detail-head span,.rt30-detail p{font-size:11px;color:#64748b}.rt30-table-wrap{overflow:auto;width:100%;max-width:100%}.rt30-table{width:100%;border-collapse:collapse;min-width:770px;font-size:12px}.rt30-table th{padding:11px 12px;background:#f6f3fe;color:#4c1d95;text-align:right;font-size:11px;line-height:1.4;border-bottom:1px solid #ddd6fe}.rt30-table td{padding:11px 12px;border-bottom:1px solid #edf1f5;text-align:right;vertical-align:top}.rt30-table td:nth-child(2),.rt30-table th:nth-child(2){text-align:left}.rt30-table tbody tr:nth-child(even){background:#fafbfd}.rt30-table td.high{color:#b91c1c;font-weight:800}.rt30-table td.low{color:#1d4ed8;font-weight:800}.rt30-event-table{min-width:1150px}.rt30-event-table td,.rt30-event-table th{text-align:left}.rt30-event-table td:last-child{text-align:center}.rt30-event-table small{display:block;color:#64748b;font-size:10px;margin-top:3px}.rt30-events summary{font-weight:700;color:#5b21b6;cursor:pointer;font-size:14px}.rt30-events .rt30-table-wrap{max-height:560px}.rt30-events thead th{position:sticky;top:0;z-index:1}.rt30-page-status{background:#fff;border:1px solid #ddd6fe;border-radius:12px;padding:25px;color:#475569}.rt30-page-status button{padding:9px 14px;background:#5b21b6;border:0;color:#fff;border-radius:7px;cursor:pointer}.rt30-page-status a{color:#5b21b6;font-weight:700}
@media(max-width:700px){.rt30-head{flex-direction:column;gap:9px}.rt30-tools{width:100%;flex-direction:row;justify-content:space-between;align-items:center;flex-wrap:wrap}.rt30-legend{justify-content:flex-start}.rt30-card{padding:12px 9px 9px}.rt30-page-main{padding:12px}.rt30-page-header{padding:16px 14px;align-items:flex-start;flex-direction:column}.rt30-page-header h1{font-size:19px}.rt30-page-kpis{gap:7px}.rt30-page-kpis>div{padding:10px}.rt30-page-kpis strong{font-size:20px}.rt30-detail{padding:12px}.rt30-detail-head{align-items:flex-start;flex-direction:column}}
@media print{.rt30-page{background:#fff}.rt30-page-header a{display:none}.rt30-page-main{padding:0}.rt30-card,.rt30-detail{box-shadow:none}.rt30-table{font-size:9px}.rt30-events{display:none}}
