/* Gestiontrak · Reclutamiento y selección (usa también los estilos base de cxc.css) */
.rrhh .rh-migas { font-size: 12px; color: var(--muted); margin-bottom: 4px; }
.rrhh .rh-migas .enlace { font-size: 12px; }
.rrhh .rh-titulo { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.rrhh .rh-sec { font-size: 15px; color: var(--accent); margin: 18px 0 10px; padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.rrhh .panel > .rh-sec:first-child, .rrhh form > .rh-sec:first-child, .rrhh .rh-hoja > .rh-sec:first-child { margin-top: 0; }
.rrhh .rh-grid { display: grid; gap: 12px; align-items: end; margin-bottom: 12px; }
.rrhh .rh-g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.rrhh .rh-g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.rrhh .rh-g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.rrhh .rh-span2 { grid-column: span 2; }
.rrhh .rh-span3, .rrhh .rh-span-todo { grid-column: 1 / -1; }
.rrhh .rh-check { align-self: center; padding-top: 16px; }
.rrhh .campo textarea { width: 100%; }
.rrhh .enlace { align-self: auto; text-align: left; }
.rrhh .enlace.fuerte { font-weight: 700; text-decoration: none; }
.rrhh .enlace.sec { color: var(--muted); font-size: 12px; text-decoration: none; }
.rrhh .enlace.sec:hover { color: var(--accent); text-decoration: underline; }
.rrhh .rh-tabla td { vertical-align: top; }
.rrhh .rh-tabla td.mono { white-space: nowrap; }
.rrhh tr.rh-sel td { background: var(--accent-soft); }
.rrhh tr.rh-detalle td { background: var(--surface-2); font-size: 13px; }
.rrhh .rh-coment { max-width: 280px; white-space: pre-wrap; }
.rrhh .rh-cand-linea { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; margin: 2px 0; }
.rrhh .rh-perfil { margin: -2px 0 6px; font-size: 13px; }
.rrhh .rh-perfil summary { cursor: pointer; color: var(--accent); font-weight: 600; }
.rrhh .rh-perfil p { white-space: pre-wrap; margin: 8px 0 0; padding: 10px 12px; background: var(--surface-2); border-radius: 6px; }
.rrhh .rh-nota-fin { display: flex; justify-content: flex-end; margin-top: 10px; }
.rrhh .rh-nota { font-size: 12px; font-weight: 600; color: var(--warn); background: var(--warn-bg); border: 1px solid color-mix(in srgb, var(--warn) 30%, transparent); border-radius: 6px; padding: 8px 14px; }
.rrhh .rh-nota-vino { font-size: 13px; font-weight: 600; color: var(--accent); background: var(--accent-soft); border-radius: 6px; padding: 10px 12px; margin: 12px 0 0; }
.rrhh .rh-regla { font-size: 13px; color: var(--warn); background: var(--warn-bg); border: 1px solid color-mix(in srgb, var(--warn) 30%, transparent); border-radius: 6px; padding: 12px 14px; margin-top: 16px; }
.rrhh .rh-regla b { display: block; margin-bottom: 2px; }
.rrhh section.panel > .rh-regla:first-child { margin-top: 0; }

/* Expediente */
.rrhh .rh-subtabs { display: flex; gap: 2px; overflow-x: auto; background: var(--surface); border: 1px solid var(--line); border-bottom: 0; border-radius: var(--r) var(--r) 0 0; padding: 0 8px; }
.rrhh .rh-subtabs button { background: none; border: 0; border-bottom: 3px solid transparent; padding: 12px 14px; font-weight: 500; color: var(--muted); cursor: pointer; white-space: nowrap; }
.rrhh .rh-subtabs button[aria-selected="true"] { color: var(--accent); border-bottom-color: var(--accent); font-weight: 600; }
.rrhh .rh-subtabs button:disabled { opacity: .45; cursor: not-allowed; }
.rrhh .rh-n { display: inline-block; min-width: 18px; padding: 0 5px; border-radius: 99px; background: var(--surface-2); color: var(--ink); font-size: 11px; line-height: 18px; text-align: center; }
.rrhh .rh-hoja { border-radius: 0 0 var(--r) var(--r); }
.rrhh .rh-proceso { padding: 12px 16px; }
.rrhh .rh-proceso-fila { display: flex; flex-wrap: wrap; gap: 10px 28px; align-items: center; }
.rrhh .rh-l { display: block; font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-bottom: 2px; }
.rrhh .rh-derecha { margin-left: auto; }
.rrhh .rh-decision-reg { margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line); font-size: 13px; }
.rrhh .rh-sub-panel { margin-top: 12px; padding: 12px; background: var(--accent-soft); border-radius: 6px; }
.rrhh .rh-sub-panel .rh-grid { margin-bottom: 4px; }
.rrhh .rh-datos { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 28px; align-items: start; }
.rrhh .rh-sangria { margin-left: 198px; }
.rrhh .rh-foto { border: 1.5px solid var(--line); border-radius: 6px; padding: 18px 12px; display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; background: var(--surface-2); }
.rrhh .rh-foto svg, .rrhh .rh-foto img { width: 84px; height: 84px; border-radius: 50%; object-fit: cover; display: block; }
.rrhh .rh-foto b { color: var(--ink); font-size: 14px; margin-top: 6px; }
.rrhh .rh-foto .enlace { font-size: 12px; cursor: pointer; text-decoration: none; text-align: center; }
.rrhh .rh-av-f { fill: var(--line); }
.rrhh .rh-av-c { fill: var(--muted); }
.rrhh .rh-titulo-fila { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; border-bottom: 1px solid var(--line); margin-bottom: 12px; padding-bottom: 8px; }
.rrhh .rh-titulo-fila .rh-sec { margin: 0; padding: 0; border: 0; }
.rrhh .rh-docs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.rrhh .rh-doc { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); min-width: 0; }
.rrhh .rh-ext { flex: none; width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; border-radius: 4px; background: var(--accent-soft); color: var(--accent); font-size: 11px; font-weight: 700; font-family: var(--f-mono); }
.rrhh .rh-doc-t { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; font-size: 12px; color: var(--muted); }
.rrhh .rh-doc-t b { font-size: 14px; color: var(--fg); }
.rrhh .rh-doc-t .enlace { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
.rrhh input.rh-resalta { background: var(--accent-soft); color: var(--accent); border-color: color-mix(in srgb, var(--accent) 35%, var(--line)); }
.rrhh .rh-exp { border: 1px solid var(--line); border-radius: 6px; margin-bottom: 10px; overflow: hidden; }
.rrhh .rh-exp-cab { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; padding: 10px 12px; background: var(--surface-2); }
.rrhh .rh-exp-cuerpo { padding: 10px 12px; display: flex; flex-direction: column; gap: 6px; font-size: 13px; }
.rrhh .rh-texto { margin: 0; white-space: pre-wrap; }
.rrhh .rh-kv { font-size: 13px; }
.rrhh .rh-kv > span:first-child { display: inline-block; min-width: 130px; font-size: 11px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }

/* Entrevista con jefe */
.rrhh .rh-ent { display: grid; grid-template-columns: minmax(240px, 330px) minmax(0, 1fr); gap: 20px; align-items: start; }
.rrhh .rh-ficha h3 { color: var(--accent); font-size: 18px; }
.rrhh .rh-ficha dl { margin: 14px 0 0; }
.rrhh .rh-ficha dt { font-size: 10px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 600; padding-top: 10px; }
.rrhh .rh-ficha dd { margin: 4px 0 0; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.rrhh .rh-expdisp { list-style: none; margin: 0; padding: 0; }
.rrhh .rh-expdisp li { padding: 8px 0; }
.rrhh .rh-expdisp li::before { content: "▣"; color: var(--ink); margin-right: 8px; }
.rrhh .rh-decision { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 18px; }
.rrhh .rh-decision button { min-width: 160px; padding: 12px 18px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); font-size: 15px; cursor: pointer; color: var(--ink); }
.rrhh .rh-decision button[aria-checked="true"] { background: var(--accent-soft); border-color: var(--accent); color: var(--accent); font-weight: 700; }
.rrhh .rh-ent-campos { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.rrhh select:disabled { opacity: .55; }

@media (max-width: 980px) {
  .rrhh .rh-g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rrhh .rh-g3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rrhh .rh-ent { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 720px) {
  .rrhh .rh-g2, .rrhh .rh-g3, .rrhh .rh-g4, .rrhh .rh-docs, .rrhh .rh-ent-campos, .rrhh .rh-datos { grid-template-columns: minmax(0, 1fr); }
  .rrhh .rh-span2 { grid-column: auto; }
  .rrhh .rh-sangria { margin-left: 0; }
  .rrhh .rh-foto { max-width: 220px; }
  .rrhh .rh-derecha { margin-left: 0; }
}
