/* Recursos Humanos (Etapa 1, 2026-09-28) -- mismo lenguaje institucional que
   Libro Comercial / Encuestas / Inventario: fondo celeste, bloque azul marino
   con borde y pastilla dorados. Solo tema claro (como Inventario). */
.rrhh-view {
    --rh-navy: #002D62;
    --rh-navy-2: #003b82;
    --rh-navy-3: #001a38;
    --rh-gold: #FFC300;
    --rh-line: #cfdcec;
    --rh-text: #1e293b;
    --rh-muted: #64748b;
    --rh-ok: #15803d;
    --rh-warn: #b45309;
    --rh-bad: #b91c1c;
    width: calc(100% + 20px);
    margin: 0 -10px -10px -10px;
    height: calc(100vh - var(--barra-alto, 58px));
    background: linear-gradient(180deg, #f4f8fd 0%, #d9e9fd 100%);
    color: var(--rh-text);
    box-sizing: border-box;
    overflow: auto;
    padding: 14px 16px 40px;
}
.rrhh-view.hidden { display: none; }
.rrhh-view *, .rrhh-view *::before, .rrhh-view *::after { box-sizing: border-box; }
.rrhh-shell { max-width: var(--content-max-width-table, 1750px); margin: 0 auto; }

/* ===== bloque azul ===== */
.rrhh-hero {
    position: relative;
    display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap;
    background: linear-gradient(135deg, var(--rh-navy) 0%, var(--rh-navy-2) 55%, var(--rh-navy-3) 100%);
    border-top: 4px solid var(--rh-gold);
    border-radius: 14px;
    padding: 18px 22px;
    color: #fff;
    box-shadow: 0 10px 24px rgba(0, 45, 98, 0.18);
}
.rrhh-hero-badge {
    display: inline-flex; align-items: center; gap: 6px;
    background: var(--rh-gold); color: var(--rh-navy);
    font-size: 0.7rem; font-weight: 900; letter-spacing: 0.08em;
    padding: 4px 10px; border-radius: 999px;
}
.rrhh-hero-titulo { margin: 8px 0 2px; font-size: 1.55rem; font-weight: 900; letter-spacing: -0.01em; }
.rrhh-hero-sub { margin: 0; color: #cbd8ee; font-size: 0.88rem; }
.rrhh-hero-acciones { display: flex; gap: 8px; flex-wrap: wrap; }

/* ===== botones ===== */
.rh-btn {
    display: inline-flex; align-items: center; gap: 6px;
    font: inherit; font-size: 0.82rem; font-weight: 800;
    border-radius: 8px; padding: 7px 13px; cursor: pointer;
    border: 1px solid var(--rh-line); background: #fff; color: var(--rh-navy);
    white-space: nowrap;
}
.rh-btn:hover { border-color: var(--rh-navy); }
.rh-btn:disabled { opacity: 0.5; cursor: not-allowed; }
.rh-btn-oro { background: var(--rh-gold); border-color: var(--rh-gold); color: var(--rh-navy); }
.rh-btn-oro:hover { background: #ffcf33; border-color: #e6ae00; }
.rh-btn-azul { background: var(--rh-navy); border-color: var(--rh-navy); color: #fff; }
.rh-btn-azul:hover { background: var(--rh-navy-2); }
.rh-btn-fantasma { background: rgba(255, 255, 255, 0.1); border-color: rgba(255, 255, 255, 0.35); color: #fff; }
.rh-btn-fantasma:hover { background: var(--rh-gold); border-color: var(--rh-gold); color: var(--rh-navy); }
.rh-btn-peligro { color: var(--rh-bad); border-color: #fecaca; }
.rh-btn-peligro:hover { background: #fef2f2; border-color: var(--rh-bad); }
.rh-btn-mini { padding: 4px 8px; font-size: 0.74rem; border-radius: 6px; }
.rh-link { background: none; border: none; color: var(--rh-navy-2); font: inherit; font-weight: 700; cursor: pointer; padding: 0; text-decoration: underline; }

/* ===== pestañas ===== */
.rrhh-tabs {
    display: flex; gap: 4px; margin: 14px 0 12px; overflow-x: auto;
    border-bottom: 2px solid var(--rh-line);
}
.rrhh-tab {
    border: none; background: transparent; font: inherit; font-size: 0.86rem; font-weight: 800;
    color: var(--rh-muted); padding: 9px 14px; cursor: pointer; white-space: nowrap;
    border-bottom: 3px solid transparent; margin-bottom: -2px; display: inline-flex; gap: 6px; align-items: center;
}
.rrhh-tab.activa { color: var(--rh-navy); border-bottom-color: var(--rh-gold); }
.rrhh-tab .rh-contador { background: var(--rh-bad); color: #fff; border-radius: 999px; font-size: 0.68rem; padding: 1px 7px; }

/* ===== tarjetas ===== */
.rh-card { background: #fff; border: 1px solid var(--rh-line); border-radius: 12px; padding: 16px; margin-bottom: 14px; }
.rh-card h3 { margin: 0 0 10px; font-size: 1rem; color: var(--rh-navy); display: flex; align-items: center; gap: 8px; }
.rh-card-cab { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.rh-card-cab h3 { margin: 0; }
.rh-kpis { display: grid; grid-template-columns: repeat(auto-fill, minmax(max(160px, calc((100% - 36px) / 4)), 1fr)); gap: 12px; margin-bottom: 14px; }
.rh-kpi { background: #fff; border: 1px solid var(--rh-line); border-left: 4px solid var(--rh-gold); border-radius: 10px; padding: 12px 14px; }
.rh-kpi-num { font-size: 1.6rem; font-weight: 900; color: var(--rh-navy); line-height: 1.1; }
.rh-kpi-txt { font-size: 0.78rem; color: var(--rh-muted); font-weight: 700; }
.rh-grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 14px; }
.rh-aviso { background: #fff8e1; border: 1px solid #ffe08a; color: #7a5b00; border-radius: 10px; padding: 10px 12px; font-size: 0.84rem; margin-bottom: 12px; }
.rh-aviso-info { background: #eef5ff; border-color: #c7dbf7; color: #1e3a66; }
.rh-vacio { color: var(--rh-muted); font-size: 0.86rem; padding: 14px 4px; }
.rh-muted { color: var(--rh-muted); }
.rh-small { font-size: 0.78rem; }

/* ===== barra de filtros ===== */
.rh-toolbar { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-bottom: 10px; }
.rh-toolbar input[type="search"], .rh-toolbar select {
    border: 1px solid var(--rh-line); border-radius: 8px; padding: 7px 10px; font: inherit; font-size: 0.84rem; background: #fff;
}
.rh-toolbar input[type="search"] { flex: 1 1 240px; min-width: 200px; }
.rh-toolbar .rh-total { margin-left: auto; font-size: 0.8rem; color: var(--rh-muted); font-weight: 700; }

/* ===== tablas ===== */
.rh-tabla-wrap { overflow-x: auto; border: 1px solid var(--rh-line); border-radius: 10px; background: #fff; }
.rh-tabla { width: 100%; border-collapse: collapse; font-size: 0.84rem; }
.rh-tabla th {
    text-align: left; background: #f1f6fd; color: var(--rh-navy); font-size: 0.74rem; letter-spacing: 0.04em;
    text-transform: uppercase; padding: 8px 10px; border-bottom: 1px solid var(--rh-line); white-space: nowrap;
}
.rh-tabla td { padding: 8px 10px; border-bottom: 1px solid #eef2f7; vertical-align: top; }
.rh-tabla tr:last-child td { border-bottom: none; }
.rh-tabla tr.rh-fila-link { cursor: pointer; }
.rh-tabla tr.rh-fila-link:hover td, .rh-tabla tr.rh-fila-link:focus td { background: #f7faff; }
.rh-tabla tr.rh-fila-link:focus { outline: 2px solid var(--rh-gold); outline-offset: -2px; }
.rh-nombre { font-weight: 800; color: var(--rh-navy); }
.rh-cod { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 0.76rem; color: var(--rh-muted); }
.rh-acciones { display: flex; gap: 4px; flex-wrap: wrap; }

/* ===== píldoras ===== */
.rh-pill { display: inline-block; font-size: 0.72rem; font-weight: 800; border-radius: 999px; padding: 2px 9px; white-space: nowrap; background: #e2e8f0; color: #334155; }
.rh-pill-ok { background: #dcfce7; color: var(--rh-ok); }
.rh-pill-warn { background: #fef3c7; color: var(--rh-warn); }
.rh-pill-bad { background: #fee2e2; color: var(--rh-bad); }
.rh-pill-azul { background: #dbeafe; color: #1d4ed8; }
.rh-pill-oro { background: #fff4c2; color: #7a5b00; }
.rh-barra { height: 6px; background: #e2e8f0; border-radius: 999px; overflow: hidden; min-width: 70px; margin-top: 4px; }
.rh-barra > span { display: block; height: 100%; background: var(--rh-ok); }

/* ===== ficha ===== */
.rh-ficha-cab {
    display: flex; gap: 14px; align-items: center; flex-wrap: wrap;
    background: #fff; border: 1px solid var(--rh-line); border-left: 5px solid var(--rh-gold);
    border-radius: 12px; padding: 14px 16px; margin-bottom: 12px;
}
.rh-avatar {
    width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; flex: 0 0 auto;
    background: linear-gradient(135deg, var(--rh-navy), var(--rh-navy-2)); color: var(--rh-gold);
    font-weight: 900; font-size: 1.2rem; border: 2px solid var(--rh-gold);
}
.rh-ficha-nombre { font-size: 1.25rem; font-weight: 900; color: var(--rh-navy); margin: 0; }
.rh-ficha-meta { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-top: 4px; font-size: 0.82rem; color: var(--rh-muted); }
.rh-ficha-acciones { margin-left: auto; display: flex; gap: 6px; flex-wrap: wrap; }
.rh-subtabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 12px; }
.rh-subtab {
    border: 1px solid var(--rh-line); background: #fff; color: var(--rh-muted); font: inherit; font-size: 0.8rem; font-weight: 800;
    border-radius: 999px; padding: 6px 13px; cursor: pointer;
}
.rh-subtab.activa { background: var(--rh-navy); border-color: var(--rh-navy); color: #fff; }
.rh-datos { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px 18px; }
.rh-dato-et { font-size: 0.72rem; color: var(--rh-muted); font-weight: 800; text-transform: uppercase; letter-spacing: 0.04em; }
.rh-dato-val { font-size: 0.9rem; font-weight: 600; word-break: break-word; }
.rh-req { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid #eef2f7; }
.rh-req:last-child { border-bottom: none; }
.rh-req-et { flex: 1; font-weight: 700; font-size: 0.86rem; }
.rh-tarea { display: flex; gap: 10px; align-items: flex-start; padding: 9px 0; border-bottom: 1px solid #eef2f7; }
.rh-tarea:last-child { border-bottom: none; }
.rh-tarea-check { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--rh-line); display: grid; place-items: center; flex: 0 0 auto; font-size: 0.75rem; font-weight: 900; }
.rh-tarea-check.hecha { background: var(--rh-ok); border-color: var(--rh-ok); color: #fff; }
.rh-tarea-check.no_aplica { background: #94a3b8; border-color: #94a3b8; color: #fff; }
.rh-tarea-cuerpo { flex: 1; min-width: 0; }
.rh-tarea-titulo { font-weight: 700; font-size: 0.87rem; }
.rh-tarea-meta { font-size: 0.76rem; color: var(--rh-muted); }
.rh-vencida { color: var(--rh-bad); font-weight: 800; }

/* ===== alertas ===== */
.rh-alerta { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--rh-line); background: #fff; margin-bottom: 8px; }
.rh-alerta-alta { border-left: 5px solid var(--rh-bad); }
.rh-alerta-media { border-left: 5px solid #f59e0b; }
.rh-alerta-baja { border-left: 5px solid #93c5fd; }
.rh-alerta-cuerpo { flex: 1; min-width: 0; }
.rh-alerta-titulo { font-weight: 800; font-size: 0.88rem; color: var(--rh-navy); }
.rh-alerta-det { font-size: 0.8rem; color: var(--rh-muted); }

/* ===== diálogo ===== */
.rrhh-dialogo {
    position: fixed; inset: 0; z-index: 150000; background: rgba(0, 26, 56, 0.55);
    display: flex; align-items: flex-start; justify-content: center; padding: 5vh 12px; overflow-y: auto;
}
.rrhh-dialogo.hidden { display: none; }
.rh-dlg {
    background: #fff; width: 100%; max-width: 620px; border-radius: 14px; overflow: hidden;
    box-shadow: 0 24px 60px rgba(0, 26, 56, 0.35); border-top: 4px solid var(--rh-gold);
}
.rh-dlg-cab { background: linear-gradient(135deg, var(--rh-navy), var(--rh-navy-2)); color: #fff; padding: 14px 18px; display: flex; align-items: flex-start; gap: 10px; }
.rh-dlg-cab h2 { margin: 0; font-size: 1.05rem; font-weight: 900; }
.rh-dlg-cab p { margin: 2px 0 0; color: #cbd8ee; font-size: 0.8rem; }
.rh-dlg-cerrar { margin-left: auto; background: none; border: none; color: #fff; font-size: 1.5rem; line-height: 1; cursor: pointer; }
.rh-dlg-cuerpo { padding: 16px 18px; display: grid; grid-template-columns: 1fr 1fr; gap: 12px 14px; }
.rh-campo { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.rh-campo.ancho { grid-column: 1 / -1; }
.rh-campo label { font-size: 0.76rem; font-weight: 800; color: var(--rh-navy); }
.rh-campo label .req { color: var(--rh-bad); }
.rh-campo input, .rh-campo select, .rh-campo textarea {
    border: 1px solid var(--rh-line); border-radius: 8px; padding: 8px 10px; font: inherit; font-size: 0.86rem; background: #fff; width: 100%;
}
.rh-campo input:focus, .rh-campo select:focus, .rh-campo textarea:focus { outline: none; border-color: var(--rh-gold); box-shadow: 0 0 0 3px rgba(255, 195, 0, 0.25); }
.rh-campo textarea { min-height: 70px; resize: vertical; }
.rh-campo .rh-ayuda { font-size: 0.72rem; color: var(--rh-muted); }
.rh-campo-check { flex-direction: row; align-items: center; gap: 8px; }
.rh-campo-check input { width: auto; }
.rh-checks { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 6px 12px; }
.rh-checks label { font-weight: 600; font-size: 0.82rem; color: var(--rh-text); display: flex; gap: 6px; align-items: flex-start; }
.rh-dlg-error { grid-column: 1 / -1; background: #fef2f2; color: var(--rh-bad); border: 1px solid #fecaca; border-radius: 8px; padding: 8px 10px; font-size: 0.82rem; font-weight: 700; }
.rh-dlg-pie { display: flex; justify-content: flex-end; gap: 8px; padding: 12px 18px; background: #f4f8fd; border-top: 1px solid var(--rh-line); }

.rh-matriz th, .rh-matriz td { text-align: center; }
.rh-matriz td:first-child, .rh-matriz th:first-child { text-align: left; }

/* ===== directorio por puesto (2026-09-28) ===== */
.rh-chips { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 10px; }
.rh-chip { border: 1px solid var(--rh-line); background: #fff; color: var(--rh-navy); font: inherit; font-size: 0.82rem; font-weight: 800; border-radius: 999px; padding: 6px 12px; cursor: pointer; }
.rh-chip b { background: #e8effa; border-radius: 999px; padding: 0 7px; margin-left: 4px; font-size: 0.74rem; }
.rh-chip.activa { background: var(--rh-navy); border-color: var(--rh-navy); color: #fff; }
.rh-chip.activa b { background: var(--rh-gold); color: var(--rh-navy); }
.rh-seg { display: inline-flex; border: 1px solid var(--rh-line); border-radius: 8px; overflow: hidden; background: #fff; }
.rh-seg button { border: none; background: transparent; font: inherit; font-size: 0.8rem; font-weight: 800; color: var(--rh-muted); padding: 7px 11px; cursor: pointer; display: inline-flex; gap: 5px; align-items: center; }
.rh-seg button.activa { background: var(--rh-navy); color: #fff; }
.rh-grupo { margin-bottom: 18px; }
.rh-grupo-cab { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; border-bottom: 2px solid var(--rh-gold); padding-bottom: 6px; margin-bottom: 10px; }
.rh-grupo-cab h3 { margin: 0; font-size: 1.05rem; color: var(--rh-navy); }
.rh-grupo-n { background: var(--rh-navy); color: #fff; border-radius: 999px; font-size: 0.74rem; padding: 2px 9px; margin-left: 4px; vertical-align: middle; }
.rh-personas { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; }
.rh-persona {
    display: flex; gap: 12px; align-items: flex-start; text-align: left; width: 100%;
    background: #fff; border: 1px solid var(--rh-line); border-left: 4px solid var(--rh-navy); border-radius: 12px;
    padding: 12px; font: inherit; color: inherit; cursor: pointer; transition: box-shadow 0.15s, border-color 0.15s;
}
.rh-persona:hover, .rh-persona:focus-visible { border-left-color: var(--rh-gold); box-shadow: 0 6px 16px rgba(0, 45, 98, 0.12); outline: none; }
.rh-avatar-sm { width: 42px; height: 42px; font-size: 0.95rem; }
.rh-persona-cuerpo { display: flex; flex-direction: column; gap: 3px; min-width: 0; flex: 1; }
.rh-persona-nombre { font-weight: 900; color: var(--rh-navy); font-size: 0.92rem; overflow-wrap: anywhere; }
.rh-persona-cargo { font-size: 0.78rem; color: var(--rh-muted); font-weight: 700; }
.rh-persona-pills { display: flex; gap: 4px; flex-wrap: wrap; margin: 2px 0; }
.icon-xs { width: 12px; height: 12px; vertical-align: -2px; }

/* ===== guía ===== */
.rh-guia-intro p { margin: 0 0 8px; font-size: 0.9rem; line-height: 1.5; }
.rh-guia-sec { background: #fff; border: 1px solid var(--rh-line); border-radius: 12px; margin-bottom: 10px; overflow: hidden; }
.rh-guia-sec summary { cursor: pointer; padding: 13px 16px; font-weight: 900; color: var(--rh-navy); display: flex; gap: 8px; align-items: center; list-style: none; }
.rh-guia-sec summary::-webkit-details-marker { display: none; }
.rh-guia-sec summary::after { content: "+"; margin-left: auto; font-size: 1.2rem; color: var(--rh-gold); }
.rh-guia-sec[open] summary { border-bottom: 1px solid var(--rh-line); background: #f7faff; }
.rh-guia-sec[open] summary::after { content: "–"; }
.rh-guia-cuerpo { padding: 14px 16px; font-size: 0.88rem; line-height: 1.55; }
.rh-guia-cuerpo h4 { margin: 0 0 6px; color: var(--rh-navy); }
.rh-guia-cuerpo p { margin: 0 0 10px; }
.rh-guia-lista { margin: 0; padding-left: 20px; }
.rh-guia-lista li { margin-bottom: 6px; }
.rh-pasos { list-style: none; margin: 0; padding: 0; }
.rh-pasos li { display: flex; gap: 12px; margin-bottom: 10px; align-items: flex-start; }
.rh-paso-n { flex: 0 0 auto; min-width: 30px; height: 30px; padding: 0 8px; border-radius: 999px; background: var(--rh-gold); color: var(--rh-navy); font-weight: 900; font-size: 0.78rem; display: grid; place-items: center; }
.rh-guia-docs { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; margin-bottom: 10px; }

/* ===== Etapa 2 ===== */
.rh-dlg-libre { padding: 16px 18px; max-height: 75vh; overflow-y: auto; font-size: 0.88rem; }
.rh-dlg-libre h4 { color: var(--rh-navy); }
.rh-btn-grande { padding: 12px 20px; font-size: 0.95rem; border-radius: 10px; }
.rh-marcar { border-left: 5px solid var(--rh-gold); }

/* ---------------------------------------------------------------- Etapa 4 */
.rh-kpi-def { font-size: 0.72rem; color: var(--rh-muted); margin-top: 4px; line-height: 1.35; }
.rh-ind-tit { font-size: 0.95rem; font-weight: 900; color: var(--rh-navy); margin: 18px 0 8px; border-bottom: 2px solid var(--rh-gold); padding-bottom: 4px; }
.rh-ev-sub { margin: 14px 0 4px; font-size: 0.9rem; color: var(--rh-navy); }
.rh-ev-crit select { max-width: 240px; width: 100%; padding: 5px 6px; border: 1px solid var(--rh-line); border-radius: 6px; font: inherit; font-size: 0.82rem; }
.rh-preg-ed { display: grid; grid-template-columns: 28px minmax(0, 1fr) 170px 170px auto; gap: 6px; align-items: center; padding: 6px 0; border-bottom: 1px solid #eef2f7; }
.rh-preg-ed input, .rh-preg-ed select { width: 100%; padding: 6px 8px; border: 1px solid var(--rh-line); border-radius: 6px; font: inherit; font-size: 0.84rem; min-width: 0; }
.rh-preg-n { font-weight: 900; color: var(--rh-navy); text-align: center; }
.rh-preg { border: 1px solid var(--rh-line); border-radius: 10px; padding: 10px 12px; margin: 0 0 10px; }
.rh-preg legend { padding: 0 4px; font-size: 0.88rem; }
.rh-preg textarea { width: 100%; box-sizing: border-box; border: 1px solid var(--rh-line); border-radius: 6px; padding: 6px 8px; font: inherit; }
.rh-escala { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 6px; }
.rh-escala label { cursor: pointer; }
.rh-escala input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.rh-escala span { display: inline-grid; place-items: center; min-width: 38px; height: 38px; border: 2px solid var(--rh-line); border-radius: 999px; font-weight: 800; color: var(--rh-navy); background: #fff; }
.rh-escala input:checked + span { background: var(--rh-navy); border-color: var(--rh-navy); color: #fff; }
.rh-escala input:focus-visible + span { outline: 3px solid var(--rh-gold); outline-offset: 2px; }
.rh-escala-ext { display: flex; justify-content: space-between; margin-top: 4px; }
.rh-comentarios { margin: 0; padding-left: 18px; font-size: 0.86rem; line-height: 1.5; }
.rh-comentarios li { margin-bottom: 6px; }
.rh-clima-inv { border-left: 5px solid var(--rh-navy-2); }

@media (max-width: 720px) {
    .rrhh-view { padding: 10px 10px 40px; }
    .rrhh-hero { padding: 14px 16px; }
    .rrhh-hero-titulo { font-size: 1.25rem; }
    .rh-dlg-cuerpo { grid-template-columns: 1fr; }
    .rh-ficha-acciones { margin-left: 0; }
    .rh-tabla.rh-apilable thead { display: none; }
    .rh-tabla.rh-apilable tr { display: block; border-bottom: 1px solid var(--rh-line); padding: 6px 0; }
    .rh-tabla.rh-apilable td { display: block; border: none; padding: 3px 10px; }
    .rh-tabla.rh-apilable td[data-et]::before { content: attr(data-et) ": "; font-weight: 800; color: var(--rh-muted); font-size: 0.72rem; }
    .rrhh-dialogo { padding: 0; align-items: flex-end; }
    .rh-dlg { border-radius: 14px 14px 0 0; max-height: 92vh; overflow-y: auto; }
    .rh-preg-ed { grid-template-columns: 28px minmax(0, 1fr) auto; }
    .rh-preg-ed select { grid-column: 2 / 3; }
    .rh-escala span { min-width: 34px; height: 34px; }
    .rh-ev-crit { font-size: 0.78rem; }
    .rh-ev-crit th { font-size: 0.66rem; }
}

/* ---- Formatos FOR-RH (2026-09-30) ---- */
.rh-select-mini { padding: 6px 10px; border: 1px solid var(--rh-line); border-radius: 8px; background: #fff; font: inherit; font-size: 0.82rem; color: var(--rh-navy); }
.rh-form-proc { margin: 16px 0 6px; font-size: 0.86rem; font-weight: 800; color: var(--rh-navy); border-left: 3px solid var(--rh-gold); padding-left: 8px; }
.rh-form-proc:first-of-type { margin-top: 4px; }
.rh-tabla-formatos td { vertical-align: top; }
.rh-tabla-formatos td:nth-child(3), .rh-tabla-formatos td:nth-child(4), .rh-tabla-formatos td:nth-child(5) { font-size: 0.78rem; color: #475569; max-width: 220px; }
@media (max-width: 720px) {
    .rh-tabla-formatos td:nth-child(3), .rh-tabla-formatos td:nth-child(4), .rh-tabla-formatos td:nth-child(5) { max-width: none; }
}
a.rh-btn { text-decoration: none; }

/* F7: documentos de la salida (2026-10-08) */
.rh-form-titulo { grid-column: 1 / -1; margin: 12px 0 2px; font-size: 0.86rem; font-weight: 800; color: var(--rh-navy); border-left: 3px solid var(--rh-gold); padding-left: 8px; }
.rh-salida-docs { margin-top: 12px; padding-top: 10px; border-top: 1px dashed rgba(0, 45, 98, 0.18); }
.rh-salida-cab h4 { margin: 0; color: var(--rh-navy); }
.rh-liq-totales { grid-column: 1 / -1; margin-top: 10px; }
.rh-dlg-cuerpo.rh-dlg-3col { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.rh-dlg-3col .rh-span2 { grid-column: span 2; }
.rh-campo-check:not(.ancho) { align-self: end; padding-bottom: 8px; }
@media (max-width: 720px) {
    .rh-dlg-cuerpo.rh-dlg-3col { grid-template-columns: 1fr; }
    .rh-dlg-3col .rh-span2 { grid-column: auto; }
}

/* F8: novedades de planilla (2026-10-09) */
.rh-form-info { background: #f4f8fd; border: 1px solid rgba(0, 45, 98, 0.12); border-radius: 10px; padding: 10px 12px; font-size: 0.82rem; }
.rh-lista-corta { margin: 4px 0 8px; padding-left: 18px; max-height: 140px; overflow: auto; }
.rh-lista-corta li { margin: 2px 0; }
