/* HHEE del cliente: selección de equipo y revisión por autorización.
   Mantiene las variables de marca, los controles nativos y la CSP del portal. */
.hc-pagina { min-width: 0; }
.hc-pagina > .nota { max-width: 95ch; }
.hc-autorizaciones { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 18px; }
.hc-autorizacion { min-width: 0; padding: 18px; border: 1px solid var(--linea); border-radius: 16px; background: var(--superficie); box-shadow: var(--sombra); }
.hc-autorizacion.is-active { border-color: var(--azul); background: #f6f9fe; box-shadow: 0 0 0 1px var(--azul); }
.hc-autorizacion h2, .hc-autorizacion h3 { margin: 0; color: var(--azul); font-size: 1rem; line-height: 1.45; overflow-wrap: anywhere; }
.hc-autorizacion .btn { white-space: normal; }
.hc-source-top { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 10px; }
.hc-source-top > div, .hc-source-top > h2 { min-width: 0; }
.hc-source-meta { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 8px; color: var(--texto-3); font-size: .8125rem; overflow-wrap: anywhere; }
.hc-source-data { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 16px; margin: 16px 0 12px; }
.hc-source-data > div { min-width: 0; display: grid; gap: 4px; }
.hc-source-data small, .hc-source-data span { color: var(--texto-3); font-size: .8125rem; }
.hc-source-data strong { color: var(--azul); overflow-wrap: anywhere; }
.hc-source-horas { padding-left: 15px; border-left: 1px solid #d8e4f3; }
.hc-source-horas strong { font-size: 1.5rem; line-height: 1.25; font-variant-numeric: tabular-nums; }
.hc-source-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-top: 14px; }
.hc-asignados { font-size: .8125rem; color: var(--texto-3); }
.hc-source-selected { margin-bottom: 18px; padding: 17px; border: 1px solid #d8e6fa; border-radius: 15px; background: #f2f7ff; }
.hc-asignacion-motivo { margin: 10px 0 0; font-size: .875rem; color: var(--texto-2); overflow-wrap: anywhere; }
.hc-asignacion-motivo strong { color: var(--azul); }
.hc-source-signed { display: flex; flex-wrap: wrap; gap: 6px 12px; padding-top: 10px; border-top: 1px solid #d8e4f3; color: var(--texto-3); font-size: .8125rem; overflow-wrap: anywhere; }
.hc-asignacion { border-radius: 18px; padding: 22px; background: var(--superficie); box-shadow: 0 6px 22px #123c7010; }
.hc-asignacion > .hc-source-top, .hc-asignacion > .hc-source-meta, .hc-asignacion > .hc-source-data, .hc-asignacion > .hc-source-signed { background: #f2f7ff; }
.hc-team-heading { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 14px; margin: 20px 0 12px; }
.hc-team-heading h2, .hc-team-heading h3 { margin: 0; font-size: 1.0625rem; color: var(--azul); }
.hc-team-heading > span, .hc-resultados, #hc-resultados { color: var(--texto-3); font-size: .8125rem; }
.hc-search-label { display: block; margin-bottom: 5px; color: var(--texto-2); font-size: .8125rem; }
#hc-buscar { width: 100%; min-width: 0; min-height: 46px; border: 1px solid #d8e2ed; background: #f8fafd; border-radius: 12px; padding: 11px 13px; color: var(--texto); font: inherit; }
.hc-personas { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 11px; margin: 15px 0; }
.hc-persona { align-items: center; gap: 12px; padding: 14px; border: 1px solid #e2e8f1; border-radius: 14px; min-width: 0; min-height: 76px; }
.hc-persona.is-selected, .hc-persona:has(input:checked) { border-color: var(--azul); background: #f0f6ff; box-shadow: 0 0 0 1px var(--azul); }
.hc-avatar { display: grid; place-items: center; width: 40px; height: 40px; min-width: 40px; flex: 0 0 40px; border-radius: 50%; background: #e8f0fb; color: #164d89; font-size: .875rem; font-weight: 700; line-height: 1; }
.hc-persona .hc-persona-texto { flex: 1 1 0; min-width: 0; }
.hc-persona-texto strong { display: block; color: var(--azul); font-size: .9375rem; line-height: 1.45; overflow-wrap: anywhere; }
.hc-persona-texto small { margin-top: 3px; font-size: .8125rem; line-height: 1.4; }
.hc-persona input[type="checkbox"] { margin: 0 0 0 auto; width: 22px; height: 22px; flex: 0 0 22px; }
.hc-persona.is-assigned { background: #f4faf7; border-color: #cde8dc; box-shadow: none; }
.hc-persona.is-assigned .hc-avatar { background: #def1e7; color: #086b4a; }
.hc-persona.is-rejected { background: #fff8f7; border-color: #efd4cf; box-shadow: none; }
.hc-persona.is-rejected .hc-avatar { background: #fce9e5; color: #9b3325; }
.hc-persona.is-rejected .hc-persona-texto small:last-child { color: #9b3325; }
.hc-persona.is-cancelled { background: #f6f7f9; border-color: var(--linea); box-shadow: none; }
.hc-persona.is-cancelled .hc-avatar { background: #e9edf2; color: var(--texto-3); }
.hc-persona.is-cancelled .hc-persona-texto small:last-child { color: var(--texto-3); }
#hc-seleccionados { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; margin: 13px 0; }
#hc-seleccionados:empty { display: none; }
.hc-chip-quitar { display: inline-flex; align-items: center; gap: 8px; padding: 6px 11px; border: 1px solid transparent; border-radius: 999px; background: #edf4ff; color: #154779; font: inherit; font-size: .8125rem; cursor: pointer; max-width: 100%; overflow-wrap: anywhere; }
.hc-send-summary { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 14px; margin-top: 15px; padding: 15px; background: #f3f7fc; border-radius: 13px; }
.hc-send-summary .hc-resumen { display: grid; gap: 3px; margin: 0; padding: 0; background: transparent; border-radius: 0; color: var(--azul); font-size: 1rem; font-variant-numeric: tabular-nums; }
.hc-resumen small { color: var(--texto-3); font-size: .8125rem; font-weight: 400; }
.hc-send-summary #hc-enviar { min-height: 46px; padding: 12px 17px; border-radius: 11px; white-space: normal; }
.hc-send-note { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 12px; margin-top: 10px; color: var(--texto-3); font-size: .8125rem; }

/* El origen y el respaldo se agrupan; cada solicitud conserva sus acciones. */
.hc-aprob-seccion { min-width: 0; margin: 20px 0; }
.hc-aprob-titulo { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 14px; margin: 0 0 13px; color: var(--azul); font-size: 1.125rem; line-height: 1.4; }
.hc-aprob-titulo h2, .hc-aprob-titulo h3 { font-size: inherit; margin: 0; }
.hc-aprob-fuente { margin: 16px 0; padding: 18px; min-width: 0; border: 1px solid #d8e6fa; border-radius: 17px; background: #f2f7ff; }
.hc-aprob-fuente-cab { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 10px 18px; }
.hc-aprob-fuente-cab h3, .hc-aprob-fuente-cab strong { margin: 0; color: var(--azul); font-size: 1rem; line-height: 1.45; overflow-wrap: anywhere; }
.hc-aprob-fuente-datos { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 8px; color: var(--texto-2); font-size: .8125rem; line-height: 1.55; overflow-wrap: anywhere; }
.hc-aprob-fuente-estado { flex: 0 1 auto; }
.hc-aprob-fuente-ok { background: #dcfce7; color: #166534; }
.hc-aprob-fuente-alerta { background: #fff2cf; color: #855615; }
.hc-aprob-personas { display: grid; gap: 12px; margin-top: 15px; }
.hc-aprob-persona { min-width: 0; overflow: hidden; border: 1px solid #e2e9f2; border-radius: 15px; background: var(--superficie); box-shadow: var(--sombra); }
.hc-aprob-persona-cab { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; padding: 15px 16px 8px; }
.hc-aprob-avatar { display: grid; place-items: center; width: 40px; height: 40px; flex: 0 0 40px; border-radius: 50%; color: #164d89; background: #e8f0fb; font-size: .875rem; font-weight: 700; }
.hc-aprob-identidad { flex: 1 1 180px; min-width: 0; }
.hc-aprob-identidad strong, .hc-aprob-identidad b { color: var(--azul); font-size: .9375rem; overflow-wrap: anywhere; }
.hc-aprob-identidad small { display: block; margin-top: 3px; color: var(--texto-3); font-size: .8125rem; overflow-wrap: anywhere; }
.hc-aprob-persona-cuerpo { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 12px 18px; align-items: start; padding: 4px 16px 14px; min-width: 0; }
.hc-aprob-horas { display: grid; gap: 5px; font-size: 1.25rem; font-weight: 700; color: var(--azul); line-height: 1.3; font-variant-numeric: tabular-nums; }
.hc-aprob-horas small, .hc-aprob-horas span { font-size: .875rem; font-weight: 400; color: var(--texto-2); }
.hc-aprob-estado { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; min-width: 0; }
.hc-aprob-estado .rl-sub { white-space: normal; }
.hc-aprob-geo { display: block; flex-basis: 100%; }
.hc-aprob-geo[data-geo-estado="sent"] .hh-marca { color: #126344; }
.hc-aprob-geo[data-geo-estado="pending"] .hh-marca { color: #855615; }
.hc-aprob-geo[data-geo-estado="sending"] .hh-marca { color: var(--azul); }
.hc-aprob-seleccion { margin: 14px 0; font-size: .875rem; }
.hc-aprob-seleccion label { display: inline-flex; gap: 10px; align-items: center; }
.hc-aprob-acciones, .hc-aprob-acciones .ls-acc { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; min-width: 0; align-items: center; }
.hc-aprob-acciones .rl-btn-mini, .hc-aprob-acciones .rl-enl { min-height: 40px; white-space: normal; }
.hc-aprob-acciones .hh-bloqueo { flex: 1 1 100%; max-width: 44ch; white-space: normal; color: var(--negativo); font-size: .8125rem; line-height: 1.5; }
.hc-aprob-contador { min-width: 0; padding: 10px 16px 12px; border-top: 1px solid var(--linea); background: #f8fafd; }
.hc-aprob-contador .hh-resumen-admin { max-width: none; margin: 0; }
.hc-aprob-contador .hh-resumen-admin > summary { padding: 3px 0; }
.hc-aprob-respaldo { min-width: 0; color: var(--texto-3); font-size: .8125rem; overflow-wrap: anywhere; }
.hc-aprob-persona .cl-hist { margin: 0; padding: 12px 16px; border-top: 1px solid var(--linea); }
.hc-aprob-origen-interno, .hc-aprob-origen-sin_clasificar { margin-top: 26px; }

@media (max-width: 900px) {
  .hc-autorizaciones { grid-template-columns: minmax(0, 1fr); }
  .hc-personas { grid-template-columns: minmax(0, 1fr); }
  .hc-aprob-persona-cuerpo { grid-template-columns: minmax(0, 1fr); }
  .hc-aprob-acciones, .hc-aprob-acciones .ls-acc { justify-content: flex-start; }
}
@media (max-width: 559px) {
  .hc-pagina > .nota { font-size: .8125rem; }
  .hc-asignacion, .hc-autorizacion { padding: 15px; }
  .hc-source-data { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .hc-source-horas { padding-left: 0; border-left: 0; }
  .hc-source-selected { padding: 13px; }
  .hc-persona { gap: 10px; padding: 12px; }
  .hc-avatar, .hc-aprob-avatar { width: 36px; height: 36px; flex-basis: 36px; min-width: 36px; }
  #hc-buscar { font-size: 16px; }
  .hc-send-summary { align-items: stretch; flex-direction: column; }
  .hc-send-summary #hc-enviar { width: 100%; }
  .hc-chip-quitar { min-height: 40px; }
  .hc-aprob-fuente { padding: 13px; }
  .hc-aprob-persona-cab { padding: 13px 12px 8px; gap: 8px; }
  .hc-aprob-identidad { flex-basis: 140px; }
  .hc-aprob-persona-cuerpo { padding: 4px 12px 12px; }
  .hc-aprob-contador { padding: 9px 12px; }
  .hc-aprob-acciones .hh-bloqueo { max-width: none; }
}
@media (pointer: coarse) {
  .hc-chip-quitar, .hc-aprob-acciones .rl-btn-mini, .hc-aprob-acciones .rl-enl { min-height: 44px; }
}
