/* Armador de plan de mantenimiento (prefijo pm). Fondo y texto fijos para modo claro y oscuro. */
.pm { --pm-acc: #d98a0b; --pm-soft: #fff4de; --pm-line: #cfdae6; --pm-muted: #4a5d70;
  background: #fff; color: #0b1f33; border: 1px solid var(--pm-line); border-radius: 8px; padding: 18px; margin: 26px 0; display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.pm *, .pm *::before, .pm *::after { box-sizing: border-box; }
.pm-head { display: flex; flex-direction: column; gap: 2px; }
.pm-head strong { font-size: 1.15rem; }
.pm-head span { color: var(--pm-muted); font-size: .92rem; line-height: 1.5; }
.pm button { font: inherit; cursor: pointer; }
.pm-presets { display: flex; flex-wrap: wrap; gap: 6px; }
.pm-pre, .pm-reset { font-size: .86rem; font-weight: 600; padding: 7px 12px; min-height: 40px; border-radius: 4px; border: 1px solid var(--pm-line); background: #f3f6f9; color: #0b1f33; }
.pm-pre[aria-pressed="true"] { background: var(--pm-soft); border-color: var(--pm-acc); }
.pm-reset { background: #0b1f33; border-color: #0b1f33; color: #fff; }
.pm button:focus-visible, .pm select:focus-visible, .pm input:focus-visible { outline: 3px solid var(--pm-acc); outline-offset: 2px; }
.pm-note, .pm-help, .pm-why, .pm-msg { margin: 0; font-size: .9rem; line-height: 1.55; color: #0b1f33; }
.pm-help { color: var(--pm-muted); }
.pm-why, .pm-msg { padding: 10px 12px; border-left: 4px solid #1f5fa8; background: #eef4fb; border-radius: 4px; }
.pm-sec { border-top: 2px solid #e1e8ef; padding-top: 12px; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.pm-sec h4 { margin: 0; font-size: 1.02rem; color: #0b1f33; }
.pm-g2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; min-width: 0; }
@media (max-width: 820px) { .pm-g2 { grid-template-columns: minmax(0, 1fr); } }
.pm-col { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.pm-list { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.pm-asset { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0 8px; text-align: left; padding: 7px 10px; min-height: 44px; border: 1px solid var(--pm-line); border-radius: 4px; background: #f8fafc; color: #0b1f33; }
.pm-asset[aria-pressed="true"] { border-color: #0b1f33; background: #fff4de; box-shadow: inset 4px 0 0 var(--pm-acc); }
.pm-an { font-weight: 600; font-size: .88rem; overflow-wrap: anywhere; }
.pm-ab { font-size: .78rem; font-weight: 700; padding: 1px 8px; border-radius: 10px; align-self: start; }
.pm-as { grid-column: 1 / -1; font-size: .78rem; color: var(--pm-muted); }
.pm-l0 { color: #14683d; } .pm-l1 { color: #8a5a00; } .pm-l2 { color: #b42318; }
.pm-ab.pm-l0 { background: #cfe9d8; } .pm-ab.pm-l1 { background: #fbe7b5; } .pm-ab.pm-l2 { background: #f6c9c4; }
.pm-tb td.pm-l0, .pm-tb td.pm-l1, .pm-tb td.pm-l2 { font-weight: 700; }
.pm-svg { display: block; width: 100%; height: auto; max-width: 100%; background: #f8fafc; border: 1px solid #e1e8ef; border-radius: 4px; }
.pm-svg text { font-family: Helvetica, Arial, sans-serif; fill: #0b1f33; }
.pm-mt { font-size: 10px; fill: #4a5d70 !important; } .pm-ml { font-size: 12px; } .pm-mb { font-weight: 700; } .pm-mt2 { font-size: 11px; font-weight: 700; }
.pm-md { font-size: 11px; font-weight: 700; } .pm-md.sel { fill: #fff !important; }
.pm-lim { stroke: #b42318; stroke-width: 2; stroke-dasharray: 5 4; }
.pm fieldset { border: 1px solid var(--pm-line); border-radius: 6px; margin: 0; padding: 6px 10px 8px; min-width: 0; }
.pm legend { font-size: .85rem; font-weight: 700; padding: 0 6px; }
.pm-row { display: flex; flex-direction: column; gap: 2px; padding: 5px 0; min-width: 0; }
.pm-row label { font-size: .84rem; font-weight: 600; }
.pm select, .pm input[type=number] { width: 100%; min-width: 0; min-height: 40px; font: inherit; font-size: .9rem; padding: 6px 8px; border: 1px solid var(--pm-line); border-radius: 4px; background: #fff; color: #0b1f33; }
.pm-tw { overflow-x: auto; min-width: 0; }
.pm-tb { border-collapse: collapse; width: 100%; font-size: .84rem; }
.pm-tb th, .pm-tb td { border: 1px solid var(--pm-line); padding: 5px 6px; text-align: left; vertical-align: top; color: #0b1f33; }
.pm-tb th { background: #eef2f6; }
.pm-tb td.n { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.pm-tb tr.pm-sum td { background: var(--pm-soft); font-weight: 700; }
.pm-tb select { min-height: 36px; font-size: .82rem; min-width: 9em; }
.pm-caps { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px; }
.pm-cap .pm-row { padding: 0; }
.pm-chk { display: flex; gap: 8px; align-items: center; font-size: .9rem; font-weight: 600; min-height: 40px; }
.pm-chk input { width: 20px; height: 20px; }
.pm-hw { overflow-x: auto; min-width: 0; }
.pm-heat { border-collapse: collapse; width: 100%; font-size: .78rem; table-layout: fixed; }
.pm-heat caption { text-align: left; font-weight: 700; font-size: .85rem; padding-bottom: 4px; color: #0b1f33; }
.pm-heat th, .pm-heat td { border: 1px solid #fff; padding: 4px 1px; text-align: center; background: #e9f6ef; color: #0b1f33; font-variant-numeric: tabular-nums; }
.pm-heat thead th { background: #eef2f6; font-size: .74rem; }
.pm-heat tbody th { text-align: left; background: #eef2f6; width: 5.6em; font-size: .72rem; line-height: 1.15; padding: 3px 3px; overflow-wrap: anywhere; }
.pm-heat tbody th i { display: inline-block; width: 8px; height: 8px; margin-right: 3px; border-radius: 2px; }
.pm-heat td.z { background: #f3f6f9; color: #8a9bad; }
.pm-heat td.over { background: #b42318; color: #fff; font-weight: 700; }
.pm-alert { margin: 0; padding: 10px 12px; border-radius: 4px; font-size: .9rem; line-height: 1.5; border-left: 4px solid #1a7f4b; background: #e9f6ef; color: #0b1f33; }
.pm-alert.bad { border-left-color: #b42318; background: #fdecea; }
.pm-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px; }
.pm-kpi { border: 1px solid var(--pm-line); border-radius: 6px; padding: 8px 10px; display: flex; flex-direction: column; gap: 1px; background: #f8fafc; min-width: 0; }
.pm-kl { font-size: .78rem; font-weight: 700; color: var(--pm-muted); }
.pm-kn { font-size: 1.4rem; color: #0b1f33; }
.pm-kn.ok { color: #14683d; } .pm-kn.warn { color: #8a5a00; } .pm-kn.bad { color: #b42318; }
.pm-kf { font-size: .72rem; color: var(--pm-muted); line-height: 1.3; }
@media (max-width: 520px) { .pm { padding: 12px; } .pm-tb { font-size: .78rem; } .pm-heat { font-size: .7rem; } .pm-heat tbody th { width: 4.6em; font-size: .66rem; } }
@media (prefers-reduced-motion: no-preference) { .pm-asset, .pm-pre { transition: background .15s, border-color .15s; } }
.pm-bars { max-width: 640px; }
.pm-mx .pm-svg { max-width: 380px; margin: 0 auto; }
.pm-heat { min-width: 440px; }
.pm-heat tbody th { width: 6.4em; }
.pm-heat thead th:first-child { width: 6.4em; }
@media (max-width: 520px) { .pm-heat tbody th { width: 6.4em; font-size: .68rem; } }
