/* Calculadora de lubricación de rodamientos con grasa */
.rdg { background: var(--card, #fff); border: 1px solid var(--line, #cfdae6); border-radius: 8px; padding: 18px; margin: 26px 0; display: flex; flex-direction: column; gap: 14px; font-size: 16px; color: var(--navy, #0b1f33); }
.rdg * { box-sizing: border-box; }
.rdg-head { display: flex; flex-direction: column; gap: 4px; }
.rdg-head strong { font-size: 1.1rem; }
.rdg-head span { color: var(--muted, #4a5d70); font-size: .92rem; line-height: 1.5; }
.rdg-note { background: #fff6e0; border-left: 4px solid #c98a00; color: #5a4000; padding: 9px 12px; font-size: .88rem; line-height: 1.5; border-radius: 0 4px 4px 0; }
.rdg-box { border: 1px solid var(--line, #cfdae6); border-radius: 6px; padding: 12px 14px 14px; margin: 0; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.rdg-box > legend { font-weight: 700; padding: 0 6px; font-size: .98rem; }
.rdg-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 12px; }
.rdg label { display: flex; flex-direction: column; gap: 4px; font-size: .88rem; font-weight: 600; min-width: 0; }
.rdg select, .rdg input[type="number"] { font: inherit; font-size: 1rem; font-weight: 400; min-height: 44px; padding: 8px 10px; border: 1px solid var(--line, #cfdae6); border-radius: 4px; background: #fff; color: var(--navy, #0b1f33); width: 100%; max-width: 100%; }
.rdg input[type="range"] { width: 100%; min-height: 36px; accent-color: var(--accent, #e0731a); }
.rdg :is(select, input):focus-visible { outline: 3px solid var(--accent, #e0731a); outline-offset: 2px; }
.rdg output { font-weight: 700; }
.rdg-err { margin: 0; padding: 8px 10px; background: #fdecec; color: #721c24; border-radius: 4px; font-weight: 600; font-size: .9rem; }
.rdg-res { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 14px; }
.rdg-card { border: 1px solid var(--line, #cfdae6); border-top: 5px solid var(--navy, #0b1f33); border-radius: 6px; padding: 12px; min-width: 0; background: #fff; }
.rdg-card.rdg-wide { grid-column: 1 / -1; }
.rdg-card h4 { margin: 0 0 8px; font-size: 1rem; }
.rdg-big { font-size: 1.9rem; font-weight: 800; color: var(--accent, #e0731a); font-variant-numeric: tabular-nums; line-height: 1.15; }
.rdg-p { margin: 6px 0; font-size: .9rem; line-height: 1.5; color: var(--muted, #4a5d70); }
.rdg-p b { color: var(--navy, #0b1f33); }
.rdg-two { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 12px; align-items: center; }
@media (max-width: 420px) { .rdg-two { grid-template-columns: minmax(0, 1fr); } .rdg-svg { max-width: 190px; margin: 0 auto; } .rdg { padding: 14px 12px; } }
.rdg-svg { width: 100%; height: auto; display: block; }
.rdg-o { fill: #dfe6ed; stroke: #0b1f33; stroke-width: 2; }
.rdg-c { fill: #fff; stroke: #8aa0b5; stroke-width: 1.2; }
.rdg-b { fill: #fff; stroke: #0b1f33; stroke-width: 2; }
.rdg-g { stroke: none; }
.rdg-g-ok { fill: #e6b422; } .rdg-g-poca { fill: #e9d9a0; } .rdg-g-exceso { fill: #c5601a; }
.rdg-ball { fill: #b8c4d0; stroke: #0b1f33; stroke-width: 1.2; }
.rdg-badge { display: inline-block; margin: 8px 0 2px; padding: 5px 10px; border-radius: 6px; font-size: .86rem; font-weight: 600; line-height: 1.4; background: #eef3f8; border: 1px solid var(--line, #cfdae6); }
.rdg-badge.ok { background: #effaf2; border-color: #15803d; color: #0f4d27; }
.rdg-badge.poca, .rdg-badge.warn { background: #fff6e0; border-color: #c98a00; color: #5a4000; }
.rdg-badge.exceso, .rdg-badge.bad { background: #fdecec; border-color: #b91c1c; color: #721c24; }
.rdg-badge.info { background: #eaf2fb; border-color: #2a6fb0; color: #123e68; }
.rdg-tab { width: 100%; border-collapse: collapse; font-size: .88rem; margin-top: 8px; }
.rdg-tab th, .rdg-tab td { text-align: left; padding: 6px 4px; border-top: 1px solid var(--line-soft, #e1e8ef); vertical-align: top; }
.rdg-tab th { font-weight: 600; }
.rdg-tab td { font-variant-numeric: tabular-nums; }
.rdg-tab td i { font-style: normal; color: var(--muted, #4a5d70); }
.rdg-tab caption { text-align: left; font-weight: 600; font-size: .86rem; padding: 6px 0; }
.rdg-tab tr.sel th, .rdg-tab tr.sel td { background: #fff7ef; font-weight: 700; }
.rdg-alerts { margin: 8px 0 0; padding-left: 20px; font-size: .88rem; line-height: 1.5; color: #721c24; }
.rdg-kv { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.rdg-kv div { border: 1px solid var(--line, #cfdae6); border-radius: 6px; padding: 8px; display: flex; flex-direction: column; gap: 2px; }
.rdg-kv span { font-size: .78rem; color: var(--muted, #4a5d70); }
.rdg-kv b { font-size: 1rem; font-variant-numeric: tabular-nums; }
@media (max-width: 420px) { .rdg-kv { grid-template-columns: minmax(0, 1fr); } }
.rdg-gauge { margin: 12px 0 4px; }
.rdg-zones { position: relative; display: flex; height: 22px; border-radius: 4px; overflow: visible; border: 1px solid #0b1f33; }
.rdg-zones i { display: block; height: 100%; }
.rdg-zones .z1 { flex: 30.1; background: #e8a3a3; } .rdg-zones .z2 { flex: 19.9; background: #f3d28a; } .rdg-zones .z3 { flex: 30.1; background: #9bd3ad; } .rdg-zones .z4 { flex: 19.9; background: #a9c8ea; }
.rdg-mk { position: absolute; top: -7px; width: 4px; height: 36px; margin-left: -2px; background: #0b1f33; border: 1px solid #fff; border-radius: 2px; }
.rdg-ticks { position: relative; height: 1.2em; font-size: .75rem; color: var(--muted, #4a5d70); margin: 6px 6px 0; }
.rdg-ticks span { position: absolute; transform: translateX(-50%); }
