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

.end-svg text.w { fill: #fff; }
