/* Datos y títulos semibold */
.rrhh-data-panel h3,
.rrhh-data-field span,
.rrhh-data-field label,
.rrhh-data-who small,
.rrhh-contact-actions span{
  font-weight:600!important;
}
.rrhh-data-field input,
.rrhh-data-field select,
.rrhh-data-field textarea{
  font-weight:600!important;
  color:#163d68!important;
}
.rrhh-data-who strong,
.rrhh-contact-actions b{
  font-weight:700!important;
}

/* Mantener el contenido compacto para no forzar scroll innecesario */
.rrhh-data-form{padding-top:7px!important}
.rrhh-data-columns{gap:8px!important}
.rrhh-data-panel h3{min-height:29px!important;padding:6px 9px!important}
.rrhh-data-field{min-height:30px!important}


/* 4.16.436 · RRHH secciones funcionales */

/* SOLICITUDES: orden y jerarquía Desktop */
.rrhh-request-toolbar,
.rrhh-control-toolbar{
  display:grid!important;
  grid-template-columns:190px minmax(300px,1fr) auto!important;
  align-items:end!important;
  gap:10px!important;
  min-height:52px!important;
  padding:7px 10px!important;
}
.rrhh-toolbar-field,
.rrhh-toolbar-search{
  display:flex!important;
  align-items:center!important;
  gap:7px!important;
  font-size:9px!important;
  font-weight:600!important;
  color:#48657f!important;
}
.rrhh-toolbar-field select{
  min-width:125px!important;
  height:34px!important;
  font-size:10px!important;
  font-weight:600!important;
}
.rrhh-toolbar-search{
  min-width:0!important;
}
.rrhh-toolbar-search input{
  width:100%!important;
  min-width:0!important;
  height:34px!important;
  border:1px solid #cbdceb!important;
  border-radius:4px!important;
  padding:0 10px!important;
  font-size:10px!important;
  font-weight:600!important;
  color:#173d6a!important;
}
.rrhh-toolbar-actions{
  display:flex!important;
  align-items:center!important;
  justify-content:flex-end!important;
  flex-wrap:nowrap!important;
  gap:7px!important;
}
.rrhh-toolbar-actions .rrhh-action-btn{
  min-width:112px!important;
  height:35px!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  gap:6px!important;
  border-radius:0!important;
}
.rrhh-toolbar-actions .rrhh-action-btn svg{
  width:15px!important;
  height:15px!important;
}
.rrhh-toolbar-actions .rrhh-action-btn span{
  font-weight:700!important;
  white-space:nowrap!important;
}

/* En solicitudes, el buscador correcto es el de la toolbar. */
.rrhh-section-head + .rrhh-request-toolbar{
  border-top:0!important;
}
.rrhh-section-head:has(+ .rrhh-request-toolbar) .rrhh-search{
  visibility:hidden!important;
}

/* VACACIONES: conmutador WFERP */
.rrhh-vac-mode{
  display:flex!important;
  align-items:center!important;
  gap:6px!important;
  padding:7px 10px!important;
  border-left:1px solid #d6e2ef!important;
  border-right:1px solid #d6e2ef!important;
  background:#fff!important;
}
.rrhh-vac-mode button{
  min-width:104px!important;
  height:34px!important;
  padding:0 13px!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  gap:7px!important;
  border:1px solid #b8cfe7!important;
  border-radius:0!important;
  background:#fff!important;
  color:#155b9c!important;
  font-size:9.5px!important;
  font-weight:700!important;
  cursor:pointer!important;
}
.rrhh-vac-mode button svg{
  width:16px!important;
  height:16px!important;
}
.rrhh-vac-mode button.active{
  color:#0875e8!important;
  border-color:#76b2ef!important;
  background:#edf6ff!important;
  box-shadow:inset 0 -2px 0 #0875e8!important;
}

/* CONTROL HORARIO RRHH: resumen igual a Desktop */
.rrhh-control-title{
  min-height:54px!important;
  display:flex!important;
  align-items:center!important;
  padding:0 14px!important;
  background:#fff!important;
  border:1px solid #d6e2ef!important;
  border-bottom:0!important;
}
.rrhh-control-title h2{
  margin:0!important;
  font-size:18px!important;
  font-weight:700!important;
  color:#173d6a!important;
}
.rrhh-control-toolbar{
  border-top:1px solid #d6e2ef!important;
}
.rrhh-control-toolbar .rrhh-toolbar-actions .rrhh-action-btn{
  min-width:190px!important;
}
.rrhh-control-table-wrap{
  min-height:390px!important;
  border-top:0!important;
}
.rrhh-control-summary-table thead th{
  font-size:9px!important;
  font-weight:700!important;
}
.rrhh-control-summary-table tbody td{
  font-size:10px!important;
  font-weight:600!important;
  padding:10px 12px!important;
}
.rrhh-control-footer{
  min-height:38px!important;
  display:flex!important;
  align-items:center!important;
  justify-content:space-between!important;
  padding:0 10px!important;
  border:1px solid #d6e2ef!important;
  border-top:0!important;
  background:#fff!important;
  color:#56708b!important;
  font-size:8px!important;
  font-weight:600!important;
}
.rrhh-mini-pagination b{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  width:24px!important;
  height:24px!important;
  background:#0875e8!important;
  color:#fff!important;
  border-radius:3px!important;
}

@media(max-width:1250px){
  .rrhh-request-toolbar,
  .rrhh-control-toolbar{
    grid-template-columns:170px 1fr!important;
  }
  .rrhh-toolbar-actions{
    grid-column:1/-1!important;
  }
}


/* 4.16.437 · RRHH Desktop parity */

/* Documentación contextual de empleado */
.rrhh-doc-title,.rrhh-vac-title,.rrhh-comm-title{
  min-height:48px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:0 12px;
  background:#fff;
  border:1px solid #d7e4f1;
  border-bottom:0;
}
.rrhh-doc-title h2,.rrhh-vac-title h2,.rrhh-comm-title h2{
  margin:0;
  font-size:18px;
  font-weight:700;
  color:#173d6a;
}
.rrhh-vac-title p{margin:2px 0 0;font-size:9px;color:#698099;font-weight:600}
.rrhh-doc-context-strip{
  min-height:54px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:7px 11px;
  background:#edf6ff;
  border:1px solid #cbddec;
}
.rrhh-doc-context-strip>div{display:flex;flex-direction:column;gap:3px}
.rrhh-doc-context-strip strong{font-size:11px;font-weight:700;color:#173d6a}
.rrhh-doc-context-strip small{font-size:8.5px;font-weight:600;color:#6c8198}
.rrhh-doc-context-strip button,.rrhh-vac-back{
  height:31px;
  display:flex;
  align-items:center;
  gap:6px;
  border:1px solid #9fc6ec;
  background:#fff;
  color:#1477d4;
  font-size:9px;
  font-weight:700;
  padding:0 12px;
}
.rrhh-doc-type-tabs{
  display:grid;
  grid-template-columns:repeat(6,1fr);
  min-height:53px;
  background:#fff;
  border-left:1px solid #d7e4f1;
  border-right:1px solid #d7e4f1;
}
.rrhh-doc-type-tabs button{
  border:0;
  border-bottom:3px solid transparent;
  background:#fff;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:2px;
  color:var(--doc-color);
}
.rrhh-doc-type-tabs button span{width:19px;height:19px}
.rrhh-doc-type-tabs button span svg{width:19px;height:19px}
.rrhh-doc-type-tabs button b{font-size:8px;font-weight:700;color:#173d6a}
.rrhh-doc-type-tabs button.active{
  background:#f1f7ff;
  border-bottom-color:var(--doc-color);
}
.rrhh-doc-toolbar,.rrhh-comm-toolbar{
  display:grid!important;
  grid-template-columns:190px minmax(280px,1fr) auto!important;
  gap:10px!important;
  align-items:end!important;
  padding:7px 10px!important;
}
.rrhh-doc-table-wrap,.rrhh-comm-table-wrap{min-height:430px!important}
.rrhh-doc-table tbody td,.rrhh-comm-table tbody td{
  font-size:10px!important;
  font-weight:600!important;
}
.rrhh-doc-actions button{min-width:43px!important}

/* Vacaciones */
.rrhh-vac-title{border-bottom:1px solid #d7e4f1}
.rrhh-vac-mode{
  border-top:0!important;
  padding-top:6px!important;
}
.rrhh-vac-back{margin-left:auto}
.rrhh-calendar{min-height:500px!important}
.rrhh-calendar .day{min-height:82px!important}

/* Comunicaciones */
.rrhh-comm-toolbar .rrhh-toolbar-actions .rrhh-action-btn{min-width:150px!important}
.rrhh-comm-modal{
  width:min(610px,92vw)!important;
  max-width:610px!important;
}
.rrhh-comm-modal form{padding:10px!important}
.rrhh-comm-panel{
  border:1px solid #c9dced;
  background:#f7fbff;
  margin-bottom:9px;
}
.rrhh-comm-panel h4{
  margin:0;
  min-height:31px;
  display:flex;
  align-items:center;
  gap:7px;
  padding:0 10px;
  background:#eaf4ff;
  border-bottom:1px solid #c9dced;
  color:#174b80;
  font-size:10px;
  font-weight:700;
}
.rrhh-comm-panel h4 svg{width:15px;height:15px}
.rrhh-comm-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:8px 10px;
  padding:9px;
}
.rrhh-comm-grid .rrhh-modal-field:nth-child(3){grid-column:1/2}
.rrhh-comm-panel.message{padding-bottom:8px}
.rrhh-comm-panel.message textarea{
  width:calc(100% - 18px);
  min-height:155px;
  margin:8px 9px 0;
  resize:vertical;
  border:1px solid #bfd3e7;
  font:600 10px "Segoe UI",sans-serif;
  color:#173d6a;
  padding:8px;
}
.rrhh-comm-modal .rrhh-modal-field span{
  font-weight:600!important;
  color:#173d6a!important;
}
.rrhh-comm-modal .rrhh-modal-field input,
.rrhh-comm-modal .rrhh-modal-field select{
  font-weight:600!important;
}
.rrhh-comm-modal .rrhh-modal-actions .publish{
  display:flex;
  align-items:center;
  gap:6px;
  background:#12a75d!important;
  color:#fff!important;
  border-color:#12a75d!important;
}

/* Editar empleado: no se usa modal reducido; se conserva ficha completa. */


/* 4.16.438 · RRHH legibilidad y vacaciones */

/* Ficha 360: identidad sin duplicado y con mayor presencia */
.rrhh-identity-main{
  gap:12px!important;
  align-items:center!important;
}
.rrhh-identity-avatar{
  width:48px!important;
  height:48px!important;
  min-width:48px!important;
  font-size:13px!important;
  font-weight:700!important;
}
.rrhh-identity-copy{
  display:flex!important;
  flex-direction:column!important;
  gap:4px!important;
}
.rrhh-identity-copy>strong{
  font-size:15px!important;
  line-height:1.15!important;
  font-weight:700!important;
  color:#173d6a!important;
}
.rrhh-identity-copy>small{
  font-size:10px!important;
  line-height:1.25!important;
  font-weight:600!important;
  color:#526d88!important;
}
.rrhh-identity-copy .rrhh-status{
  font-size:8.5px!important;
  font-weight:700!important;
}
.rrhh-identity-card{
  min-height:76px!important;
  padding:10px 12px!important;
}

/* Empleados: fila seleccionada superior con avatar/nombre legibles */
.rrhh-employee-selected{
  min-height:64px!important;
  padding:8px 12px!important;
}
.rrhh-employee-selected .rrhh-avatar{
  width:38px!important;
  height:38px!important;
  min-width:38px!important;
  font-size:10.5px!important;
}
.rrhh-employee-selected .client-selected-copy strong{
  font-size:13px!important;
  font-weight:700!important;
}
.rrhh-employee-selected .client-selected-copy>div>span{
  font-size:9.5px!important;
  font-weight:600!important;
}

/* Listado de empleados: ocupa la altura útil hasta el pie */
.rrhh-client-toolbar + .rrhh-table-wrap{
  min-height:calc(100vh - 515px)!important;
  max-height:calc(100vh - 515px)!important;
  overflow:auto!important;
}
.rrhh-client-toolbar + .rrhh-table-wrap .rrhh-table tbody td{
  font-size:10.5px!important;
  font-weight:600!important;
  padding-top:9px!important;
  padding-bottom:9px!important;
}
.rrhh-client-toolbar + .rrhh-table-wrap .rrhh-person-cell b{
  font-size:10.5px!important;
  font-weight:700!important;
}

/* Documentación: menú horizontal más visible */
.rrhh-doc-type-tabs{
  min-height:68px!important;
}
.rrhh-doc-type-tabs button{
  gap:5px!important;
  padding:6px 4px!important;
}
.rrhh-doc-type-tabs button span{
  width:25px!important;
  height:25px!important;
}
.rrhh-doc-type-tabs button span svg{
  width:25px!important;
  height:25px!important;
}
.rrhh-doc-type-tabs button b{
  font-size:10px!important;
  line-height:1.15!important;
  font-weight:700!important;
}
.rrhh-doc-context-strip strong{
  font-size:12px!important;
}
.rrhh-doc-context-strip small{
  font-size:9.5px!important;
}
.rrhh-doc-title h2{
  font-size:19px!important;
}

/* Vacaciones: asegurar que el contenido sea visible y con altura Desktop */
.rrhh-vac-title{
  min-height:52px!important;
}
.rrhh-vac-title h2{
  font-size:18px!important;
}
.rrhh-vac-mode{
  min-height:45px!important;
}
.rrhh-vac-mode button{
  min-width:118px!important;
  height:36px!important;
  font-size:10px!important;
}
.rrhh-vac-mode button svg{
  width:18px!important;
  height:18px!important;
}
.rrhh-vac-controls{
  min-height:44px!important;
}
.rrhh-vac-controls strong{
  font-size:14px!important;
}
.rrhh-vac-legend{
  min-height:34px!important;
  font-size:9.5px!important;
}
.rrhh-calendar{
  min-height:520px!important;
}

/* Ficha 360: mejor lectura general sin forzar scroll excesivo */
.rrhh-360-grid .rrhh-info-panel h3,
.rrhh-side-column h3{
  font-size:10.5px!important;
  font-weight:700!important;
}
.rrhh-info-panel>div span{
  font-size:9.5px!important;
  font-weight:600!important;
}
.rrhh-info-panel>div b{
  font-size:10px!important;
  font-weight:600!important;
}

/* 4.16.439 · elimina definitivamente el avatar vacío duplicado */
body[data-route="personal_rrhh"] .rrhh-identity-main:before{
  content:none!important;display:none!important;width:0!important;height:0!important;
}

/* 4.16.439 · RRHH paridad visual Desktop */

/* Menú horizontal principal */
body[data-route="personal_rrhh"] .rrhh-tabs{min-height:72px!important}
body[data-route="personal_rrhh"] .rrhh-tabs button{min-height:72px!important;gap:6px!important;padding:6px 4px!important}
body[data-route="personal_rrhh"] .rrhh-tabs button span,
body[data-route="personal_rrhh"] .rrhh-tabs button span svg{width:32px!important;height:32px!important}
body[data-route="personal_rrhh"] .rrhh-tabs button b{font-size:11.5px!important;line-height:1.15!important;font-weight:700!important}

/* Aprovechar más altura útil de la página */
body[data-route="personal_rrhh"] .rrhh-section-content{min-height:calc(100vh - 390px)!important}
body[data-route="personal_rrhh"] .rrhh-employee-table-wrap,
body[data-route="personal_rrhh"] .rrhh-doc-table-wrap,
body[data-route="personal_rrhh"] .rrhh-control-table-wrap,
body[data-route="personal_rrhh"] .rrhh-comm-table-wrap{
  min-height:calc(100vh - 525px)!important;
  max-height:calc(100vh - 480px)!important;
}

/* Ficha 360 */
body[data-route="personal_rrhh"] .rrhh-identity-avatar{width:52px!important;height:52px!important;min-width:52px!important;font-size:14px!important}
body[data-route="personal_rrhh"] .rrhh-identity-copy>strong{font-size:17px!important;font-weight:700!important}
body[data-route="personal_rrhh"] .rrhh-identity-copy>small{font-size:11px!important;font-weight:600!important}

/* Empleados */
.rrhh-name-link{cursor:pointer!important;font-size:11px!important;font-weight:700!important;color:#153d6d!important}
.rrhh-name-link:hover{color:#1477f2!important;text-decoration:underline}
body[data-route="personal_rrhh"] .rrhh-employee-table td{font-size:10.5px!important;font-weight:600!important}
body[data-route="personal_rrhh"] .rrhh-employee-table .rrhh-avatar{width:34px!important;height:34px!important;min-width:34px!important;font-size:9.5px!important}

/* Documentación */
body[data-route="personal_rrhh"] .rrhh-doc-type-tabs{min-height:82px!important}
body[data-route="personal_rrhh"] .rrhh-doc-type-tabs button{min-height:82px!important;gap:7px!important;padding:7px 4px!important}
body[data-route="personal_rrhh"] .rrhh-doc-type-tabs button span,
body[data-route="personal_rrhh"] .rrhh-doc-type-tabs button span svg{width:31px!important;height:31px!important}
body[data-route="personal_rrhh"] .rrhh-doc-type-tabs button b{font-size:11.5px!important;font-weight:700!important}
body[data-route="personal_rrhh"] .rrhh-doc-table th{font-size:9.5px!important;font-weight:700!important}
body[data-route="personal_rrhh"] .rrhh-doc-table td{font-size:10.5px!important;font-weight:600!important;padding:8px 10px!important}
body[data-route="personal_rrhh"] .rrhh-doc-footer,
body[data-route="personal_rrhh"] .rrhh-control-footer,
body[data-route="personal_rrhh"] .rrhh-comm-footer{
  min-height:46px!important;padding:7px 10px!important;font-size:9.5px!important;font-weight:600!important
}
body[data-route="personal_rrhh"] .rrhh-mini-pagination b{
  display:inline-grid!important;place-items:center!important;width:28px!important;height:28px!important;border-radius:5px!important;background:#1477f2!important;color:#fff!important
}

/* Acciones filas */
body[data-route="personal_rrhh"] .rrhh-row-actions{display:flex!important;align-items:flex-start!important;gap:5px!important}
body[data-route="personal_rrhh"] .rrhh-row-actions button{
  min-width:42px!important;height:42px!important;display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:center!important;gap:2px!important
}
body[data-route="personal_rrhh"] .rrhh-row-actions button small{display:block!important;font-size:7.5px!important;line-height:1!important;font-weight:600!important}

/* Solicitudes */
body[data-route="personal_rrhh"] .rrhh-request-badge{min-width:78px!important;text-align:center!important;font-size:9px!important}
body[data-route="personal_rrhh"] .rrhh-request-toolbar{padding:8px 10px!important}

/* Vacaciones */
body[data-route="personal_rrhh"] .rrhh-vac-mode{min-height:50px!important}
body[data-route="personal_rrhh"] .rrhh-vac-mode button{min-width:132px!important;height:39px!important;font-size:11.5px!important;font-weight:700!important}
body[data-route="personal_rrhh"] .rrhh-vac-mode button svg{width:21px!important;height:21px!important}
body[data-route="personal_rrhh"] .rrhh-vac-legend{min-height:42px!important;display:flex!important;align-items:center!important;gap:18px!important;padding:7px 10px!important}
body[data-route="personal_rrhh"] .rrhh-vac-legend span{font-size:10.5px!important;font-weight:700!important}
body[data-route="personal_rrhh"] .rrhh-vac-legend i{width:10px!important;height:10px!important}
body[data-route="personal_rrhh"] .rrhh-calendar{min-height:565px!important}
body[data-route="personal_rrhh"] .rrhh-calendar .day .event{
  display:block!important;width:auto!important;height:auto!important;border-radius:4px!important;padding:3px 5px!important;margin:2px 0!important;
  color:#fff!important;font-size:8px!important;font-weight:700!important;line-height:1.1!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important
}
.rrhh-vac-legend i.c0,.rrhh-calendar .event.c0{background:#12a957!important}
.rrhh-vac-legend i.c1,.rrhh-calendar .event.c1{background:#1477f2!important}
.rrhh-vac-legend i.c2,.rrhh-calendar .event.c2{background:#f28a0b!important}
.rrhh-vac-legend i.c3,.rrhh-calendar .event.c3{background:#7546ef!important}
.rrhh-vac-legend i.c4,.rrhh-calendar .event.c4{background:#0aa7a6!important}
.rrhh-vac-legend i.c5,.rrhh-calendar .event.c5{background:#e80087!important}

/* Control horario */
body[data-route="personal_rrhh"] .rrhh-control-summary-table th{font-size:9.5px!important}
body[data-route="personal_rrhh"] .rrhh-control-summary-table td{font-size:10.5px!important;font-weight:600!important}
body[data-route="personal_rrhh"] .rrhh-control-person{cursor:pointer!important}
body[data-route="personal_rrhh"] .rrhh-control-person b{font-size:10.5px!important;font-weight:700!important}
body[data-route="personal_rrhh"] .rrhh-mark-badge{min-width:70px!important;text-align:center!important;font-size:9px!important}

/* Comunicaciones */
body[data-route="personal_rrhh"] .rrhh-comm-table th{font-size:9.5px!important;font-weight:700!important}
body[data-route="personal_rrhh"] .rrhh-comm-table td{font-size:10.5px!important;font-weight:600!important}
body[data-route="personal_rrhh"] .rrhh-comm-title-cell b{font-size:11px!important;font-weight:700!important;color:#153d6d!important}
body[data-route="personal_rrhh"] .rrhh-avatar.comm svg{width:16px!important;height:16px!important;color:#fff!important}

/* =========================================================
   4.16.440 · ESTÁNDAR TIPOGRÁFICO OFICIAL WFERP · RRHH FICHA
   Etiquetas: Segoe UI 9pt normal
   Datos: Segoe UI Semibold 10pt
   ========================================================= */

/* Cabecera de la ficha */
body[data-route="personal_rrhh"] .rrhh-data-toolbar{
  min-height:52px!important;
  height:auto!important;
  grid-template-columns:190px minmax(260px,1fr) auto!important;
  padding:7px 10px!important;
  background:#fff!important;
  border:1px solid #d7e3ef!important;
  border-radius:8px 8px 0 0!important;
}
body[data-route="personal_rrhh"] .rrhh-data-toolbar h2{
  font-family:"Segoe UI",Arial,sans-serif!important;
  font-size:15pt!important;
  line-height:1.12!important;
  font-weight:700!important;
  color:#123b73!important;
}

/* Botones superiores: misma familia WFERP */
body[data-route="personal_rrhh"] .rrhh-data-toolbar>button,
body[data-route="personal_rrhh"] .rrhh-data-actions .wf-action-btn{
  height:38px!important;
  min-width:145px!important;
  border-radius:2px!important;
  padding:0 13px!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  gap:7px!important;
  font-family:"Segoe UI",Arial,sans-serif!important;
  font-size:9pt!important;
  line-height:1!important;
  font-weight:700!important;
  text-transform:uppercase!important;
}
body[data-route="personal_rrhh"] .rrhh-data-toolbar>button{
  color:#0a65c8!important;
  border:1px solid #9fc4ee!important;
  background:#f7fbff!important;
}
body[data-route="personal_rrhh"] .rrhh-data-actions{
  display:flex!important;
  justify-content:flex-end!important;
  align-items:center!important;
  gap:8px!important;
}
body[data-route="personal_rrhh"] .rrhh-data-actions #rrhh-data-cancel{
  color:#0a65c8!important;
  border-color:#9fc4ee!important;
  background:#f7fbff!important;
}
body[data-route="personal_rrhh"] .rrhh-data-actions #rrhh-data-save{
  color:#078b43!important;
  border-color:#8dd9ad!important;
  background:#eaf9f0!important;
}
body[data-route="personal_rrhh"] .rrhh-data-actions svg,
body[data-route="personal_rrhh"] .rrhh-data-toolbar>button svg{
  width:16px!important;
  height:16px!important;
}

/* Identidad del empleado */
body[data-route="personal_rrhh"] .rrhh-data-identity{
  min-height:74px!important;
  margin:7px 10px 0!important;
  padding:9px 12px!important;
}
body[data-route="personal_rrhh"] .rrhh-data-identity .rrhh-avatar.xl{
  width:46px!important;
  height:46px!important;
  min-width:46px!important;
  font-family:"Segoe UI",Arial,sans-serif!important;
  font-size:10pt!important;
  font-weight:700!important;
}
body[data-route="personal_rrhh"] .rrhh-data-who strong{
  font-family:"Segoe UI",Arial,sans-serif!important;
  font-size:12pt!important;
  line-height:1.1!important;
  font-weight:700!important;
}
body[data-route="personal_rrhh"] .rrhh-data-who small{
  font-family:"Segoe UI",Arial,sans-serif!important;
  font-size:9pt!important;
  line-height:1.15!important;
  font-weight:600!important;
}

/* Menú horizontal de la ficha: más visible y homogéneo */
body[data-route="personal_rrhh"] .rrhh-data-tabs{
  display:grid!important;
  grid-template-columns:repeat(10,minmax(92px,1fr))!important;
  min-height:72px!important;
  height:72px!important;
  margin:7px 10px 0!important;
  background:#fff!important;
  border-top:1px solid #d9e5f1!important;
  border-bottom:1px solid #d9e5f1!important;
  overflow:visible!important;
}
body[data-route="personal_rrhh"] .rrhh-data-tabs button{
  height:72px!important;
  min-height:72px!important;
  min-width:0!important;
  padding:5px 3px!important;
  gap:5px!important;
  display:flex!important;
  flex-direction:column!important;
  align-items:center!important;
  justify-content:center!important;
  border:0!important;
  border-bottom:3px solid transparent!important;
  background:#fff!important;
  color:#153d6c!important;
}
body[data-route="personal_rrhh"] .rrhh-data-tabs button span{
  width:30px!important;
  height:30px!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  color:var(--tab-color)!important;
}
body[data-route="personal_rrhh"] .rrhh-data-tabs button span svg{
  width:28px!important;
  height:28px!important;
}
body[data-route="personal_rrhh"] .rrhh-data-tabs button b{
  font-family:"Segoe UI",Arial,sans-serif!important;
  font-size:9pt!important;
  line-height:1.05!important;
  font-weight:700!important;
  text-align:center!important;
  white-space:normal!important;
}
body[data-route="personal_rrhh"] .rrhh-data-tabs button.active{
  background:#f1f7ff!important;
  border-bottom-color:var(--tab-color)!important;
  color:var(--tab-color)!important;
}

/* Paneles de datos */
body[data-route="personal_rrhh"] .rrhh-data-form{
  padding:8px 10px 12px!important;
}
body[data-route="personal_rrhh"] .rrhh-data-panel{
  border-radius:5px!important;
}
body[data-route="personal_rrhh"] .rrhh-data-panel h3{
  min-height:31px!important;
  padding:7px 9px!important;
  font-family:"Segoe UI",Arial,sans-serif!important;
  font-size:9pt!important;
  line-height:1.1!important;
  font-weight:600!important;
  color:#123b73!important;
}

/* ESTÁNDAR OFICIAL: etiquetas 9 pt normal */
body[data-route="personal_rrhh"] .rrhh-data-field>span,
body[data-route="personal_rrhh"] .rrhh-data-field label{
  font-family:"Segoe UI",Arial,sans-serif!important;
  font-size:9pt!important;
  line-height:1.15!important;
  font-weight:400!important;
  color:#385778!important;
}

/* ESTÁNDAR OFICIAL: datos y desplegables 10 pt Semibold */
body[data-route="personal_rrhh"] .rrhh-data-field input,
body[data-route="personal_rrhh"] .rrhh-data-field select,
body[data-route="personal_rrhh"] .rrhh-data-field textarea{
  min-height:32px!important;
  height:32px!important;
  padding:4px 8px!important;
  font-family:"Segoe UI Semibold","Segoe UI",Arial,sans-serif!important;
  font-size:10pt!important;
  line-height:1.15!important;
  font-weight:600!important;
  color:#173b69!important;
  background:#fff!important;
  border:1px solid #c9dbea!important;
  border-radius:4px!important;
}
body[data-route="personal_rrhh"] .rrhh-data-field textarea{
  min-height:145px!important;
  height:auto!important;
}
body[data-route="personal_rrhh"] .rrhh-data-field{
  grid-template-columns:145px minmax(0,1fr)!important;
  min-height:34px!important;
  margin:4px 0!important;
}

/* Valores de contacto: mismo criterio de dato */
body[data-route="personal_rrhh"] .rrhh-contact-actions span{
  font-family:"Segoe UI",Arial,sans-serif!important;
  font-size:8.5pt!important;
  font-weight:400!important;
}
body[data-route="personal_rrhh"] .rrhh-contact-actions b{
  font-family:"Segoe UI Semibold","Segoe UI",Arial,sans-serif!important;
  font-size:9.5pt!important;
  font-weight:600!important;
}

/* Tablas internas de ficha con el mismo motor tipográfico */
body[data-route="personal_rrhh"] .rrhh-data-table th{
  font-family:"Segoe UI",Arial,sans-serif!important;
  font-size:9pt!important;
  font-weight:400!important;
}
body[data-route="personal_rrhh"] .rrhh-data-table td{
  font-family:"Segoe UI Semibold","Segoe UI",Arial,sans-serif!important;
  font-size:10pt!important;
  font-weight:600!important;
}

/* Responsive: conserva legibilidad, permitiendo desplazamiento horizontal del menú */
@media(max-width:1280px){
  body[data-route="personal_rrhh"] .rrhh-data-tabs{
    display:flex!important;
    overflow-x:auto!important;
  }
  body[data-route="personal_rrhh"] .rrhh-data-tabs button{
    flex:0 0 122px!important;
  }
}

/* =========================================================
   4.16.441 · RRHH DOCUMENTACIÓN · JERARQUÍA Y ALTURA ÚTIL
   ========================================================= */

/* Documentación: el título queda claramente separado del menú de categorías */
body[data-route="personal_rrhh"] .rrhh-docs-view{
  display:flex!important;
  flex-direction:column!important;
  min-height:calc(100vh - 365px)!important;
}
body[data-route="personal_rrhh"] .rrhh-docs-view>h2,
body[data-route="personal_rrhh"] .rrhh-docs-title{
  margin:0!important;
  padding:12px 14px!important;
  min-height:48px!important;
  display:flex!important;
  align-items:center!important;
  background:#fff!important;
  border:1px solid #d7e3ef!important;
  border-bottom:0!important;
  border-radius:8px 8px 0 0!important;
  font-family:"Segoe UI",Arial,sans-serif!important;
  font-size:15pt!important;
  font-weight:700!important;
  color:#123b73!important;
}

/* Barra independiente para Todos / Contratos / Nóminas / ... */
body[data-route="personal_rrhh"] .rrhh-doc-tabs{
  flex:0 0 72px!important;
  min-height:72px!important;
  height:72px!important;
  margin:0!important;
  padding:0!important;
  display:grid!important;
  grid-template-columns:repeat(6,1fr)!important;
  background:#fff!important;
  border:1px solid #d7e3ef!important;
  border-bottom:1px solid #c7d9ea!important;
  box-shadow:0 2px 4px rgba(18,59,115,.05)!important;
}
body[data-route="personal_rrhh"] .rrhh-doc-tabs button{
  height:71px!important;
  min-height:71px!important;
  padding:6px 4px!important;
  display:flex!important;
  flex-direction:column!important;
  align-items:center!important;
  justify-content:center!important;
  gap:5px!important;
  background:#fff!important;
  border:0!important;
  border-right:1px solid #e2ebf4!important;
  border-bottom:3px solid transparent!important;
}
body[data-route="personal_rrhh"] .rrhh-doc-tabs button:last-child{
  border-right:0!important;
}
body[data-route="personal_rrhh"] .rrhh-doc-tabs button svg{
  width:27px!important;
  height:27px!important;
}
body[data-route="personal_rrhh"] .rrhh-doc-tabs button span,
body[data-route="personal_rrhh"] .rrhh-doc-tabs button b{
  font-family:"Segoe UI",Arial,sans-serif!important;
  font-size:9pt!important;
  line-height:1.05!important;
  font-weight:700!important;
}
body[data-route="personal_rrhh"] .rrhh-doc-tabs button.active{
  background:#f1f7ff!important;
  border-bottom-color:#0aaf67!important;
}

/* Estado/buscador en su propia franja, no mezclado con el menú */
body[data-route="personal_rrhh"] .rrhh-docs-view .rrhh-list-tools{
  flex:0 0 auto!important;
  min-height:48px!important;
  margin:0!important;
  padding:7px 10px!important;
  background:#f8fbff!important;
  border-left:1px solid #d7e3ef!important;
  border-right:1px solid #d7e3ef!important;
  border-bottom:1px solid #d7e3ef!important;
}

/* El listado usa la altura disponible y no fuerza scroll vertical de la página */
body[data-route="personal_rrhh"] .rrhh-docs-view .rrhh-table-wrap{
  flex:1 1 auto!important;
  min-height:0!important;
  overflow:visible!important;
  border-left:1px solid #d7e3ef!important;
  border-right:1px solid #d7e3ef!important;
}
body[data-route="personal_rrhh"] .rrhh-docs-view .rrhh-data-table{
  margin:0!important;
}
body[data-route="personal_rrhh"] .rrhh-docs-view .rrhh-data-table th{
  height:34px!important;
  padding:6px 9px!important;
  font-size:8.5pt!important;
}
body[data-route="personal_rrhh"] .rrhh-docs-view .rrhh-data-table td{
  height:37px!important;
  padding:5px 9px!important;
  font-size:9pt!important;
  line-height:1.1!important;
}

/* Compactar únicamente las acciones del listado para ganar altura */
body[data-route="personal_rrhh"] .rrhh-docs-view .rrhh-row-actions button{
  min-height:31px!important;
  height:31px!important;
  padding:2px 5px!important;
}
body[data-route="personal_rrhh"] .rrhh-docs-view .rrhh-row-actions svg{
  width:14px!important;
  height:14px!important;
}

/* Pie siempre visible inmediatamente tras el último registro */
body[data-route="personal_rrhh"] .rrhh-docs-view .rrhh-pagination,
body[data-route="personal_rrhh"] .rrhh-docs-view .rrhh-list-footer{
  flex:0 0 42px!important;
  min-height:42px!important;
  margin:0!important;
  padding:6px 10px!important;
  background:#fff!important;
  border:1px solid #d7e3ef!important;
  border-top:0!important;
  border-radius:0 0 8px 8px!important;
}

/* La vista no debe crear un segundo scroll vertical */
body[data-route="personal_rrhh"] main,
body[data-route="personal_rrhh"] .page-content{
  overflow-x:hidden!important;
}

/* =========================================================
   4.16.442 · RRHH DOCUMENTACIÓN · CORRECCIÓN SELECTORES REALES
   ========================================================= */

/* 1) Título independiente */
body[data-route="personal_rrhh"] .rrhh-doc-title{
  min-height:46px!important;
  margin:0 0 8px 0!important;
  padding:0 12px!important;
  background:#fff!important;
  border:1px solid #d7e4f1!important;
  border-radius:8px!important;