/* GRUPO YBAÑEZ — V860.2.3
   Refinamiento visual de la V860.2.2 sobre el módulo ya existente.
   Usa el estilo tradicional detallado; no cambia cálculos de negocio, API ni permisos. */

/* Recuperar las CUATRO tarjetas originales en lugar de reemplazarlas por
   "Trabajadores / Expedientes completos / Vencidos y faltantes". La fuente real
   y los contadores V90 existentes siguen vigentes para cada empresa. */
#inductionCoursesPage.gyV688Competencies .v688ExecutiveKpis {display:none!important}
#inductionCoursesPage.gyV688Competencies .complianceKpisV90 {
  display:grid!important;
  grid-template-columns:repeat(4,minmax(0,1fr))!important;
  gap:12px!important;
  margin:0!important;
  padding:15px 20px 18px!important;
  background:#f5f8fd!important;
}
#inductionCoursesPage.gyV688Competencies .complianceKpisV90 .complianceKpiV90:not(:first-child){
  display:flex!important;
  flex-direction:row!important;
  align-items:center!important;
  min-height:109px!important;
  gap:13px!important;
  padding:16px!important;
  border-radius:14px!important;
  border:1px solid #dce6f1!important;
  box-shadow:0 4px 14px rgba(25,60,95,.035)!important;
  background:#fff!important;
}
#inductionCoursesPage.gyV688Competencies .complianceKpisV90 .complianceKpiV90:first-child{display:none!important}
#inductionCoursesPage.gyV688Competencies .complianceKpiV90 .kpiIconV90{
  width:44px!important;height:44px!important;min-width:44px!important;
  border-radius:12px!important;font-size:21px!important;
}
#inductionCoursesPage.gyV688Competencies .complianceKpiV90 b{font-size:26px!important;line-height:1.05!important}
#inductionCoursesPage.gyV688Competencies .complianceKpiV90 span{font-size:14px!important;line-height:1.3!important;font-weight:800!important;margin-top:5px!important}
#inductionCoursesPage.gyV688Competencies .complianceKpiV90 small{font-size:12.5px!important;line-height:1.4!important;color:#677f98!important;margin-top:5px!important}
#inductionCoursesPage.gyV688Competencies .complianceKpiV90.green .kpiIconV90{background:#e9f9ef!important;color:#008344!important}
#inductionCoursesPage.gyV688Competencies .complianceKpiV90.orange .kpiIconV90{background:#eaf2ff!important;color:#0966cc!important}
#inductionCoursesPage.gyV688Competencies .complianceKpiV90.amber .kpiIconV90{background:#fff6e5!important;color:#d27b00!important}
#inductionCoursesPage.gyV688Competencies .complianceKpiV90.red .kpiIconV90{background:#ffedf0!important;color:#bf2339!important}

/* Mismo lenguaje visual de la segunda captura, con contenido menos apretado. */
#inductionCoursesPage.gyV688Competencies{
  max-width:1400px!important;
  background:#f7faff!important;border:1px solid #e0e8f3!important;
  box-shadow:0 12px 30px rgba(20,49,83,.065)!important;
}
#inductionCoursesPage.gyV688Competencies .complianceHeroV90{padding:18px 21px 15px!important}
#inductionCoursesPage.gyV688Competencies .complianceTitleV90 h2{font-size:23px!important;line-height:1.25!important}
#inductionCoursesPage.gyV688Competencies .complianceTitleV90 .muted{font-size:13.5px!important;color:#58718d!important}
#inductionCoursesPage.gyV688Competencies .complianceTabsV90{margin:0 20px 14px!important;padding:5px!important;gap:8px!important}
#inductionCoursesPage.gyV688Competencies .complianceTabV90{font-size:13.5px!important;min-height:40px!important}
#inductionCoursesPage.gyV688Competencies .compliancePanelV90{margin:0 20px 19px!important;padding:17px!important;background:#fff!important}
#inductionCoursesPage.gyV688Competencies .sectionHeadV90 h3{font-size:17.5px!important}
#inductionCoursesPage.gyV688Competencies .sectionHeadV90 p{font-size:13px!important;color:#687e97!important}
#inductionCoursesPage.gyV688Competencies .sectionHeadV90 .actions button,
#inductionCoursesPage.gyV688Competencies .reportActionsV128 button{
  font-size:13px!important;font-weight:800!important;min-height:37px!important;white-space:normal!important;
}
#inductionCoursesPage.gyV688Competencies .controlLegendV125{padding:11px!important;background:#fafcff!important;border:1px solid #dce8f6!important;border-radius:9px!important;margin:10px 0!important}
#inductionCoursesPage.gyV688Competencies .controlLegendV125 *{font-size:12.5px!important}
#inductionCoursesPage.gyV688Competencies .gyV86022Viewbar{
  display:flex!important;justify-content:space-between!important;align-items:center!important;
  background:#f7faff!important;padding:11px 12px!important;gap:10px!important;
  margin:11px 0!important;border:1px solid #dce7f4!important;
}
#inductionCoursesPage.gyV688Competencies .gyV86022Viewbar label{font-size:13px!important;color:#1c3b62!important;font-weight:850!important}
#inductionCoursesPage.gyV688Competencies .gyV86022Search{width:min(340px,100%)!important;font-size:14px!important;min-height:40px!important}
#inductionCoursesPage.gyV688Competencies .gyV86022ViewActions button{
  font-size:13px!important;min-height:39px!important;border-radius:9px!important;
}

/* Vista DETALLADA predeterminada: 9 columnas, como el diseño aprobado.
   Desplazamiento horizontal solo si la pantalla es demasiado estrecha. */
#inductionCoursesPage.gyV688Competencies:not(.gyV86022Summary) .controlMatrixV125{
  min-width:1055px!important;
  table-layout:fixed!important;
  width:100%!important;
}
#inductionCoursesPage.gyV688Competencies .controlMatrixWrapV125{
  border:1px solid #dce6f1!important;border-radius:11px!important;
  scrollbar-color:#b3c7dd #edf3fa!important;
}
#inductionCoursesPage.gyV688Competencies .controlMatrixV125 th{
  font-size:12.5px!important;line-height:1.32!important;font-weight:850!important;
  padding:12px 9px!important;background:#f0f5fb!important;
  color:#1e4265!important;text-align:center!important;
}
#inductionCoursesPage.gyV688Competencies .controlMatrixV125 td{
  font-size:13px!important;line-height:1.35!important;padding:11px 9px!important;
  text-align:center!important;height:auto!important;
}
#inductionCoursesPage.gyV688Competencies .controlMatrixV125 tbody tr:nth-child(2n) td{background:#fbfcff!important}
#inductionCoursesPage.gyV688Competencies .controlMatrixV125 th:nth-child(1),
#inductionCoursesPage.gyV688Competencies .controlMatrixV125 td:nth-child(1){
  width:250px!important;min-width:250px!important;max-width:250px!important;text-align:left!important;
}
#inductionCoursesPage.gyV688Competencies .controlMatrixV125 th:nth-child(2),
#inductionCoursesPage.gyV688Competencies .controlMatrixV125 td:nth-child(2){
  width:115px!important;min-width:115px!important;max-width:115px!important;
  left:250px!important;
}
#inductionCoursesPage.gyV688Competencies .controlMatrixV125 .courseWorkerV99 b{
  font-size:13.5px!important;line-height:1.31!important;font-weight:850!important;
}
#inductionCoursesPage.gyV688Competencies .controlMatrixV125 .courseWorkerV99 small{font-size:11.5px!important;line-height:1.35!important}
#inductionCoursesPage.gyV688Competencies .controlMatrixV125 .courseAvatarV99{height:35px!important;width:35px!important;min-width:35px!important}
#inductionCoursesPage.gyV688Competencies .controlMatrixV125 .v677Role{font-size:11.5px!important;padding:6px 8px!important;white-space:normal!important;line-height:1.2!important}
#inductionCoursesPage.gyV688Competencies .controlMatrixV125 .v713DocBadge,
#inductionCoursesPage.gyV688Competencies .controlMatrixV125 .v722CourseBadge{
  font-size:11.5px!important;line-height:1.22!important;min-height:30px!important;
  border-radius:9px!important;padding:7px 8px!important;
  box-shadow:none!important;
}
#inductionCoursesPage.gyV688Competencies .controlMatrixV125 .v677ExpBtn{
  min-height:37px!important;padding:8px 11px!important;font-size:12.5px!important;
  border-radius:9px!important;background:#edf4ff!important;color:#075eab!important;
}
#inductionCoursesPage.gyV688Competencies .controlMatrixV125 .v677ExpBtn:hover{background:#dceeff!important}
#inductionCoursesPage.gyV688Competencies .controlMatrixV125 tbody tr:hover td{background:#f1f8ff!important}
#inductionCoursesPage.gyV688Competencies .gyV86022Summary .controlMatrixV125{min-width:790px!important}

/* Mejor lectura para las ventanas ya existentes de Expediente, Vigencias y WhatsApp. */
#courseWorkerDetailModalV99 .courseDetailModalV99{max-height:92dvh!important}
#courseWorkerDetailModalV99 #courseWorkerDetailTitleV99{font-size:21px!important}
#courseWorkerDetailModalV99 .v677DocCard h5,#courseWorkerDetailModalV99 .v671CourseName b{font-size:15px!important}
#courseWorkerDetailModalV99 .v677DocCard small,#courseWorkerDetailModalV99 .v677DocCard .muted{font-size:12.5px!important}
#complianceWhatsappModalV130 .modalBox,#documentExpiryModalV135 .modalBox,#integralPersonnelReportModalV142 .modalBox{max-height:93dvh!important}
@media(max-width:1050px){
  #inductionCoursesPage.gyV688Competencies .complianceKpisV90{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  #inductionCoursesPage.gyV688Competencies .controlMatrixV125{min-width:1055px!important}
}
@media(max-width:650px){
  #inductionCoursesPage.gyV688Competencies .complianceKpisV90{grid-template-columns:1fr!important;padding:9px!important}
  #inductionCoursesPage.gyV688Competencies .compliancePanelV90{margin:0 10px 12px!important;padding:12px!important}
  #inductionCoursesPage.gyV688Competencies .gyV86022Viewbar{align-items:stretch!important;flex-direction:column!important}
  #inductionCoursesPage.gyV688Competencies .gyV86022Search{width:100%!important}
  #inductionCoursesPage.gyV688Competencies .gyV86022ViewActions{width:100%!important;display:grid!important;grid-template-columns:1fr 1fr}
}
/* Evita truncar 'Ver expediente' en la última columna sin reducir el texto del resto de la tabla. */
#inductionCoursesPage.gyV688Competencies .controlMatrixV125 td:last-child .v677ExpBtn{
  max-width:100%!important;
  width:100%!important;
  white-space:normal!important;
  padding:8px 5px!important;
  overflow-wrap:normal!important;
  font-size:12px!important;
  line-height:1.25!important;
}
