/* Taller de rectificadoras (prefijo rtm). */
.rtm { --ds-acc: #d98a0b; --ds-soft: #fff4de; --ds-line: var(--line, #cfdae6); --ds-muted: var(--muted, #4a5d70);
  background: var(--card, #fff); color: #0b1f33; border: 1px solid var(--ds-line); border-radius: 8px; padding: 18px; margin: 26px 0; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.rtm *, .rtm *::before, .rtm *::after { box-sizing: border-box; }
.rtm-head { display: flex; flex-direction: column; gap: 2px; }
.rtm-head strong { font-size: 1.15rem; }
.rtm-head span { color: var(--ds-muted); font-size: .92rem; line-height: 1.5; }
.rtm button { font: inherit; cursor: pointer; }
.rtm-tabs, .rtm-presets { display: flex; flex-wrap: wrap; gap: 6px; }
.rtm-tab, .rtm-pre { font-size: .88rem; font-weight: 600; padding: 7px 12px; min-height: 40px; border-radius: 4px; border: 1px solid var(--ds-line); background: #f3f6f9; color: #0b1f33; }
.rtm-tab[aria-pressed="true"] { background: #0b1f33; border-color: #0b1f33; color: #fff; }
.rtm-pre[aria-pressed="true"] { background: var(--ds-soft); border-color: var(--ds-acc); }
.rtm button:focus-visible, .rtm select:focus-visible, .rtm input:focus-visible { outline: 3px solid var(--ds-acc); outline-offset: 2px; }
.rtm-panel[hidden] { display: none; }
.rtm-panel { min-width: 0; }
.rtm-body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; min-width: 0; }
.rtm-col { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
@media (max-width: 820px) { .rtm-body { grid-template-columns: minmax(0, 1fr); } }
.rtm fieldset { border: 1px solid var(--ds-line); border-radius: 6px; margin: 0; padding: 6px 10px 8px; min-width: 0; }
.rtm legend { font-size: .85rem; font-weight: 700; padding: 0 6px; }
.rtm-row { display: flex; flex-direction: column; gap: 2px; padding: 5px 0; min-width: 0; }
.rtm-row label { font-size: .86rem; font-weight: 600; }
.rtm input[type=number], .rtm select { width: 100%; min-width: 0; min-height: 40px; font: inherit; padding: 6px 8px; border: 1px solid var(--ds-line); border-radius: 4px; background: #fff; color: #0b1f33; }
.rtm-grid { display: grid; grid-template-columns: 3.4em repeat(2, minmax(0, 1fr)); gap: 4px; align-items: center; }
.rtm-gh { font-size: .8rem; font-weight: 700; text-align: center; color: var(--ds-muted); }
.rtm-gl { font-size: .86rem; font-weight: 700; }
.rtm-svgbox { min-width: 0; }
.rtm-svg { display: block; width: 100%; height: auto; max-width: 100%; background: #f8fafc; border: 1px solid #e1e8ef; border-radius: 4px; }
.rtm-svg text { font-family: Helvetica, Arial, sans-serif; fill: #0b1f33; font-size: 15px; }
.rtm-svg text.s { font-size: 13px; fill: #4a5d70; }
.rtm-svg text.b { font-weight: 700; font-size: 16px; }
.rtm-blk { fill: #dbe5ef; stroke: #0b1f33; stroke-width: 2; }
.rtm-band { fill: rgba(26, 127, 75, .16); stroke: #1a7f4b; stroke-width: 1.5; }
.rtm-axis { stroke: #0b1f33; stroke-width: 1.5; }
.rtm-bar { fill: #2a6fb0; }
.rtm-bar.bad { fill: #b42318; }
.rtm-lnA { fill: none; stroke: #2a6fb0; stroke-width: 2.5; }
.rtm-lnD { fill: none; stroke: #d98a0b; stroke-width: 2.5; stroke-dasharray: 6 4; }
.rtm-dotA { fill: #2a6fb0; }
.rtm-dotD { fill: #d98a0b; }
.rtm-res { min-width: 0; overflow-x: auto; display: flex; flex-direction: column; gap: 10px; }
.rtm-tb { border-collapse: collapse; width: 100%; font-size: .86rem; }
.rtm-tb th, .rtm-tb td { border: 1px solid var(--ds-line); padding: 5px 6px; text-align: right; font-variant-numeric: tabular-nums; }
.rtm-tb th { background: #eef2f6; }
.rtm-tb td:first-child, .rtm-tb th:first-child { text-align: left; }
.rtm-tb tr.hl td { background: var(--ds-soft); font-weight: 700; }
.rtm-tb td.bad { color: #b42318; font-weight: 700; }
.rtm-msg { margin: 0; padding: 10px 12px; border-radius: 4px; border-left: 4px solid #1f5fa8; background: #eef4fb; font-size: .92rem; line-height: 1.5; }
.rtm-msg.ok { border-left-color: #1a7f4b; background: #e9f6ef; }
.rtm-msg.bad { border-left-color: #b42318; background: #fdecea; }
@media (max-width: 520px) { .rtm-tb { font-size: .78rem; } .rtm-tb th, .rtm-tb td { padding: 4px 3px; } .rtm { padding: 14px; } }
.rtm-bar.ok { fill: #1a7f4b; } .rtm-bar.warn { fill: #d98a0b; } .rtm-bar.ref { fill: #8a9bad; }
.rtm-lim { stroke: #b42318; stroke-width: 2; stroke-dasharray: 5 4; }
.rtm-svg text.rtm-x { font-size: 13px; } .rtm-svg text.rtm-y { font-size: 14px; font-weight: 700; }
