/* Laboratorio de compensaciones CNC (prefijo cc). Paleta de la serie: ámbar + azul + azul marino. */
.cc { --cc-acc: #d98a0b; --cc-soft: #fff4de; --cc-blue: #1f5fa8; --cc-muted: var(--muted, #4a5d70); --cc-line: var(--line, #cfdae6);
  background: var(--card, #ffffff); color: #0b1f33; border: 1px solid var(--cc-line); border-radius: 8px; padding: 18px; margin: 26px 0; display: flex; flex-direction: column; gap: 12px; min-width: 0; font-size: 16px; line-height: 1.45; }
.cc *, .cc *::before, .cc *::after { box-sizing: border-box; }
.cc-head { display: flex; flex-direction: column; gap: 2px; }
.cc-head strong { font-size: 1.15rem; }
.cc-head span { color: var(--cc-muted); font-size: .92rem; line-height: 1.5; }
.cc button { font: inherit; cursor: pointer; }
.cc-tabs, .cc-presets { display: flex; flex-wrap: wrap; gap: 6px; }
.cc-tab, .cc-pre { font-size: .88rem; font-weight: 600; padding: 7px 12px; min-height: 40px; border-radius: 4px; border: 1px solid var(--cc-line); background: #f3f6f9; color: #0b1f33; }
.cc-tab[aria-pressed="true"] { background: #0b1f33; border-color: #0b1f33; color: #fff; }
.cc-pre[aria-pressed="true"] { background: var(--cc-soft); border-color: var(--cc-acc); }
.cc button:focus-visible, .cc select:focus-visible, .cc input:focus-visible { outline: 3px solid var(--cc-acc); outline-offset: 2px; }
.cc-panel[hidden] { display: none; }
.cc-panel { min-width: 0; }
.cc-body { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 14px; min-width: 0; }
.cc-col { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
@media (max-width: 820px) { .cc-body { grid-template-columns: minmax(0, 1fr); } }
.cc-svgbox { min-width: 0; }
.cc-svg { display: block; width: 100%; height: auto; max-width: 100%; background: #f8fafc; border: 1px solid #e1e8ef; border-radius: 4px; }
.cc-svg text { font-family: Helvetica, Arial, sans-serif; fill: #0b1f33; font-size: 17px; }
.cc-svg text.s { font-size: 16px; fill: #4a5d70; }
.cc-svg text.b { font-weight: 700; font-size: 17px; }
.cc-svg text.bad { fill: #b42318; }
.cc-trav { fill: #fff; stroke: #0b1f33; stroke-width: 2; }
.cc-mz { fill: #0b1f33; }
.cc-ax { stroke: #0b1f33; stroke-width: 2; fill: none; }
.cc-zc { stroke: #4a5d70; stroke-width: 2; fill: none; }
.cc-zc.on { stroke: #d98a0b; stroke-width: 3.5; }
.cc-zline { stroke: #1a7f4b; stroke-width: 2.5; stroke-dasharray: 6 4; fill: none; }
.cc-int { fill: none; stroke: #1a7f4b; stroke-width: 2.5; }
.cc-err { stroke: #b42318; stroke-width: 2.5; stroke-dasharray: 6 4; fill: none; }
.cc-tool.ok { fill: #1a7f4b; stroke: #fff; stroke-width: 1.5; }
.cc-tool.bad { fill: #b42318; stroke: #fff; stroke-width: 1.5; }
.cc-part { fill: #dbe5ef; stroke: #0b1f33; stroke-width: 2; }
.cc-vise { fill: #2a6fb0; stroke: #0b1f33; stroke-width: 2; }
.cc-cut { fill: rgba(217, 138, 11, .25); stroke: #d98a0b; stroke-width: 2.5; }
.cc-cut2 { fill: #f4c76a; stroke: #0b1f33; stroke-width: 1.5; }
.cc-holder { fill: #4a5d70; stroke: #0b1f33; stroke-width: 1.5; }
.cc-run { fill: #2a6fb0; }
.cc-over { fill: #b42318; }
.cc fieldset { border: 1px solid var(--cc-line); border-radius: 6px; margin: 0; padding: 6px 10px 8px; min-width: 0; }
.cc legend { font-size: .85rem; font-weight: 700; padding: 0 6px; }
.cc-row { display: flex; flex-direction: column; gap: 2px; padding: 5px 0; min-width: 0; }
.cc-row label { font-size: .86rem; font-weight: 600; }
.cc-row input[type=number], .cc-row select { width: 100%; min-width: 0; min-height: 40px; font: inherit; padding: 6px 8px; border: 1px solid var(--cc-line); border-radius: 4px; background: #fff; color: #0b1f33; }
.cc-in { display: flex; align-items: center; gap: 10px; min-width: 0; }
.cc-in input[type=range] { flex: 1 1 auto; min-width: 0; height: 30px; accent-color: var(--cc-acc); }
.cc-in output { flex: 0 0 auto; min-width: 5.5em; text-align: right; font-variant-numeric: tabular-nums; font-family: ui-monospace, Menlo, Consolas, monospace; font-size: .88rem; }
.cc-grid { display: grid; grid-template-columns: 2.6em repeat(3, minmax(0, 1fr)); gap: 4px; align-items: center; }
.cc-gh { font-size: .8rem; font-weight: 700; text-align: center; color: var(--cc-muted); }
.cc-gl { font-size: .86rem; font-weight: 700; }
.cc-grid input { width: 100%; min-width: 0; min-height: 38px; font: inherit; font-size: .85rem; padding: 4px 4px; border: 1px solid var(--cc-line); border-radius: 4px; background: #fff; color: #0b1f33; font-variant-numeric: tabular-nums; }
.cc-chk { display: flex; align-items: flex-start; gap: 8px; font-size: .88rem; padding: 5px 0; line-height: 1.35; }
.cc-chk input { margin-top: 3px; width: 18px; height: 18px; flex: 0 0 auto; accent-color: var(--cc-acc); }
.cc-res { min-width: 0; overflow-x: auto; }
.cc-t { border-collapse: collapse; width: 100%; font-size: .86rem; }
.cc-t th, .cc-t td { border: 1px solid var(--cc-line); padding: 5px 6px; text-align: right; font-variant-numeric: tabular-nums; }
.cc-t th { background: #eef2f6; }
.cc-t td:first-child, .cc-t th:first-child { text-align: left; }
.cc-t tr.hl td { background: var(--cc-soft); font-weight: 700; }
.cc-t td.bad { color: #b42318; font-weight: 700; }
.cc-msg { margin: 0; padding: 10px 12px; border-radius: 4px; border-left: 4px solid var(--cc-blue); background: #eef4fb; font-size: .92rem; line-height: 1.5; }
.cc-msg.ok { border-left-color: #1a7f4b; background: #e9f6ef; }
.cc-msg.bad { border-left-color: #b42318; background: #fdecea; }
@media (max-width: 520px) { .cc-t { font-size: .78rem; } .cc-t th, .cc-t td { padding: 4px 3px; } .cc-t td:first-child { width: 34%; } .cc { padding: 14px; } }
.cc-svg .ob { fill: rgba(180, 35, 24, .18); stroke: #b42318; stroke-width: 2; }
.cc-svg .pth { fill: none; stroke: #2a6fb0; stroke-width: 3; }
.cc-svg .pth.hit { stroke: #b42318; }
.cc-svg .ref { fill: none; stroke: #4a5d70; stroke-width: 1.5; stroke-dasharray: 5 4; }
.cc-svg .arc { fill: none; stroke: #d98a0b; stroke-width: 3.5; }
.cc-svg .arc.bad { stroke: #b42318; }
.cc-svg .ctr { fill: none; stroke: #1a7f4b; stroke-width: 2.5; }
.cc-svg .rad { stroke: #4a5d70; stroke-width: 1.5; stroke-dasharray: 4 4; fill: none; }
.cc-svg .dot { fill: #0b1f33; }
.cc-svg .tl { fill: rgba(42, 111, 176, .25); stroke: #2a6fb0; stroke-width: 2; }
.cc-svg .wall { fill: none; stroke: #0b1f33; stroke-width: 3; }
.cc-hgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(76px, 1fr)); gap: 4px; }
.cc-hgrid input { width: 100%; min-width: 0; min-height: 38px; font: inherit; font-size: .78rem; padding: 4px 3px; border: 1px solid var(--cc-line); border-radius: 4px; background: #fff; color: #0b1f33; font-variant-numeric: tabular-nums; }
.cc-svg .cc-gl { stroke: #1a7f4b; stroke-width: 2.5; stroke-dasharray: 6 4; }
.cc-svg .cc-dot { fill: #0b1f33; }
.cc-svg .cc-tolb { fill: rgba(26, 127, 75, .18); stroke: #1a7f4b; stroke-width: 1.5; }
.cc-svg .cc-ctr { fill: none; stroke: #d98a0b; stroke-width: 2.5; stroke-dasharray: 8 5; }
.cc-svg .cc-tl { fill: rgba(42, 111, 176, .25); stroke: #2a6fb0; stroke-width: 2; }
.cc-svg .cc-tl.bad { fill: rgba(180, 35, 24, .25); stroke: #b42318; }
.cc-svg .cc-dirl { stroke: #0b1f33; stroke-width: 3; }
.cc-svg .cc-dirh { fill: #0b1f33; }
.cc-svg .cc-wall { fill: none; stroke: #0b1f33; stroke-width: 3; }
.cc-svg .cc-zline { stroke: #4a5d70; stroke-width: 1.5; stroke-dasharray: 5 4; }
