/* HR shares the portal palette and its light, dark and eye-care modes. */
.hr-space { display:grid; gap:20px; min-width:0; }
.hr-title { display:flex; align-items:center; justify-content:space-between; gap:20px; }
.hr-title > div:first-child > span { color:var(--theme-accent); font-size:11px; font-weight:700; letter-spacing:1.5px; }
.hr-title h1 { margin:10px 0; font-size:30px; }
.hr-title p,.hr-muted { font-size:13px; color:var(--theme-muted); line-height:1.7; }
.hr-panel { min-width:0; overflow:hidden; }
.hr-panel > p,.hr-panel > form,.hr-panel > .hr-detail,.hr-panel > .hr-filter-line,.hr-panel > .hr-file-list,.hr-panel > #hr-own-devices { margin:16px 20px; }
.hr-panel > .panel-top { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:14px; }
.hr-panel > .panel-top h3 { margin:0; font-size:17px; }
.hr-metrics { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:14px; margin:0 0 20px; }
.hr-metric { display:flex; align-items:flex-start; gap:15px; border:1px solid var(--theme-line); border-radius:10px; background:var(--theme-panel); padding:20px; min-width:0; }
.hr-metric > svg { color:var(--theme-accent); width:28px; height:28px; flex-shrink:0; }
.hr-metric:nth-child(2) > svg { color:#a391e6; }.hr-metric:nth-child(3) > svg { color:#d8a946; }
.hr-metric > div { display:grid; gap:9px; min-width:0; }
.hr-metric span { font-size:12px; font-weight:600; }.hr-metric strong { font-size:25px; overflow-wrap:anywhere; }.hr-metric small { color:var(--theme-muted); font-size:11px; line-height:1.5; }
.hr-columns { display:grid; grid-template-columns:minmax(0,1.5fr) minmax(0,1fr); gap:18px; margin-bottom:20px; }
.hr-columns > div { min-width:0; }.hr-columns .document-panel { height:100%; }
.hr-filters { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)) auto; gap:14px; align-items:end; }
.hr-space label,#modal-body:has([id^=hr-]) label { display:grid; gap:8px; font-size:12px; min-width:0; }
.hr-space :is(input,select,textarea) { width:100%; min-width:0; }.hr-space .hr-filter-line select { width:auto; min-width:180px; }
.hr-space .row-actions { display:flex; gap:8px; flex-wrap:wrap; }.hr-space td { vertical-align:middle; }.hr-space td small { display:block; margin-top:6px; color:var(--theme-muted); font-size:11px; white-space:normal; max-width:330px; line-height:1.6; }
.hr-space .table-scroll table { width:100%; }.hr-space .table-scroll td:first-child { white-space:normal; }
.hr-badge { display:inline-block; font-size:11px; line-height:1.5; padding:3px 9px; border:1px solid var(--theme-line); border-radius:6px; white-space:nowrap; }
.hr-status-pending,.hr-status-interested { color:#e9b84e; background:#a573141c; border-color:#ad822953; }.hr-status-approved,.hr-status-active,.hr-status-completed { color:#6fc691; background:#4a985920; border-color:#4a985966; }.hr-status-rejected,.hr-status-inactive,.hr-status-cancelled { color:#e69b96; background:#b4494920; }
html[data-theme=light] .hr-status-pending,html[data-theme=light] .hr-status-interested { color:var(--theme-warning); }
html[data-theme=light] :is(.hr-status-approved,.hr-status-active,.hr-status-completed) { color:var(--theme-success); }
html[data-theme=light] :is(.hr-status-rejected,.hr-status-inactive,.hr-status-cancelled) { color:var(--theme-danger); }
.hr-avatar { display:inline-grid; place-items:center; width:46px; height:46px; border:1px solid var(--theme-line); background:var(--theme-soft); color:var(--theme-accent); font-size:17px; font-weight:700; border-radius:50%; flex:0 0 auto; }.hr-avatar-small { width:34px; height:34px; font-size:12px; }
.hr-name,.hr-person-head { display:flex; align-items:center; gap:12px; }.hr-person-head { margin-bottom:20px; }.hr-person-head h3 { margin:0 0 8px; }
.hr-person-banner { display:flex; align-items:center; gap:20px; padding:20px; border:1px solid var(--theme-line); border-radius:9px; background:var(--theme-panel); }.hr-person-banner strong { font-size:20px; }.hr-person-banner p { font-size:12px; color:var(--theme-muted); margin:8px 0 0; }.hr-person-banner > button { margin-left:auto; }.hr-location { border:1px solid var(--theme-line); border-radius:7px; padding:8px 14px; font-size:12px; }
.hr-detail { display:grid; gap:0; margin:0; }.hr-detail > div { display:grid; grid-template-columns:170px minmax(0,1fr); gap:16px; padding:13px 0; border-bottom:1px solid var(--theme-line); }.hr-detail dt { color:var(--theme-muted); font-size:12px; }.hr-detail dd { margin:0; font-size:13px; overflow-wrap:anywhere; white-space:pre-wrap; }
.hr-agenda,.hr-onboarding-list { display:grid; padding:0 20px 16px; }.hr-agenda article { display:flex; align-items:flex-start; gap:16px; padding:17px 0; border-bottom:1px solid var(--theme-line); }.hr-agenda article:last-child { border-bottom:0; }.hr-agenda time { display:grid; gap:5px; justify-items:center; padding:9px 13px; min-width:55px; border-radius:8px; background:var(--theme-soft); border:1px solid var(--theme-line); }.hr-agenda time strong { font-size:20px; }.hr-agenda time span { font-size:10px; text-transform:uppercase; }.hr-agenda p { font-size:12px; color:var(--theme-muted); line-height:1.6; margin:6px 0; white-space:pre-wrap; }.hr-agenda article > div { min-width:0; overflow-wrap:anywhere; }
.hr-empty { padding:16px 0; font-size:13px; color:var(--theme-muted); }.hr-onboarding-list article { display:flex; gap:12px; padding:16px 0; border-bottom:1px solid var(--theme-line); }.hr-onboarding-list article > div { flex:1; }.hr-onboarding-list small { display:block; color:var(--theme-muted); font-size:11px; margin-top:7px; }.hr-space progress { display:block; margin-top:10px; width:100%; max-width:230px; height:9px; accent-color:var(--theme-accent); }
.hr-shortcuts { display:flex; gap:10px; flex-wrap:wrap; padding:0 20px 14px; }.hr-device,.hr-file-list > div { display:flex; align-items:center; justify-content:space-between; gap:15px; padding:15px 0; border-bottom:1px solid var(--theme-line); }.hr-device { justify-content:flex-start; }.hr-device svg { width:30px; height:30px; color:var(--theme-accent); }.hr-device small { display:block; font-size:11px; color:var(--theme-muted); margin-top:7px; }
.hr-space [hidden],#modal-body [hidden] { display:none!important; }
@media(max-width:1200px) { .hr-metrics { grid-template-columns:repeat(2,minmax(0,1fr)); }.hr-columns { grid-template-columns:minmax(0,1fr); }.hr-filters { grid-template-columns:repeat(2,minmax(0,1fr)); }.hr-title { align-items:flex-start; flex-direction:column; } }
@media(max-width:600px) { .hr-metrics { gap:9px; }.hr-metric { padding:13px; gap:8px; }.hr-metric strong { font-size:21px; }.hr-metric > svg { width:20px; height:20px; }.hr-filters { grid-template-columns:minmax(0,1fr); }.hr-person-banner { flex-wrap:wrap; gap:12px; }.hr-detail > div { grid-template-columns:minmax(0,1fr); gap:7px; }.hr-title h1 { font-size:25px; } }

/* Compact summary tables wrap within their half of the dashboard. */
.hr-columns .table-scroll table { min-width:0; table-layout:fixed; }
.hr-columns .table-scroll :is(td,th) { white-space:normal; overflow-wrap:anywhere; padding:12px 10px; }
.hr-columns .table-scroll td button { padding:8px 10px; font-size:11px; }
.hr-columns .table-scroll th { font-size:9px; letter-spacing:.3px; }

/* Labels and CV previews are limited to the people database. */
.hr-tags { display:flex; align-items:center; flex-wrap:wrap; gap:7px; max-width:280px; }
.hr-tag { display:inline-flex; align-items:center; gap:6px; padding:4px 9px; border:1px solid var(--theme-line); border-radius:18px; color:var(--theme-accent); background:var(--theme-soft); font-size:.875rem; line-height:1.4; white-space:normal; overflow-wrap:anywhere; }
.hr-tag > button { display:grid; place-items:center; flex-shrink:0; width:24px; height:24px; padding:0; color:var(--theme-accent); background:transparent; border:0; border-radius:50%; font-size:20px; cursor:pointer; }
.hr-tag > button:hover { background:var(--theme-hover); }.hr-no-tags { color:var(--theme-muted); font-size:.8125rem; }
.hr-tag-editor { display:grid; gap:14px; padding:18px; border:1px solid var(--theme-line); border-radius:8px; }
.hr-tag-editor legend { padding:0 7px; font-size:1rem; font-weight:600; }.hr-tag-editor p { font-size:.875rem; color:var(--theme-muted); line-height:1.6; margin:0; }
.hr-tag-entry { display:grid; grid-template-columns:minmax(0,1fr) auto; gap:12px; align-items:end; }.hr-tag-entry input { width:100%; }
.hr-cv-preview { display:inline-flex; align-items:center; padding:8px 11px; font-size:.875rem; cursor:pointer; border:1px solid var(--theme-line); border-radius:6px; color:var(--theme-accent); background:var(--theme-soft); }
.hr-cv-preview:hover,.hr-cv-preview:focus-visible { background:var(--theme-hover); }.hr-cv-preview + small { display:block; font-size:.75rem; color:var(--theme-muted); overflow-wrap:anywhere; margin:7px 0; }
.hr-cv-tooltip { position:fixed; inset:auto; margin:0; padding:18px; max-width:calc(100vw - 32px); max-height:min(360px,calc(100vh - 32px)); overflow:auto; z-index:10000; border:1px solid var(--theme-line); border-radius:10px; background:var(--theme-panel); color:var(--theme-text); box-shadow:0 10px 35px #0005; }
.hr-cv-tooltip-heading { display:flex; align-items:center; justify-content:space-between; gap:16px; font-size:1rem; }.hr-cv-tooltip-heading button { width:28px; height:28px; border:0; border-radius:5px; background:var(--theme-soft); color:var(--theme-text); font-size:20px; cursor:pointer; }
.hr-cv-tooltip p { font-size:1rem; line-height:1.6; white-space:pre-wrap; overflow-wrap:anywhere; margin:12px 0; }.hr-cv-tooltip small { display:block; color:var(--theme-muted); font-size:.75rem; line-height:1.5; overflow-wrap:anywhere; }
.hr-file-list > div { flex-wrap:wrap; }.hr-file-list > div > div { flex:1; min-width:180px; }
@media(max-width:600px) { .hr-tag-entry { grid-template-columns:minmax(0,1fr); } }
.hr-people-database td { font-size:.875rem; }.hr-people-database th { font-size:.8125rem; }.hr-tag-entry label { font-size:.875rem!important; }
.hr-people-database #hr-people-filters { grid-template-columns:repeat(4,minmax(0,1fr)) auto; }
@media(max-width:1200px) { .hr-people-database #hr-people-filters { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media(max-width:600px) { .hr-people-database #hr-people-filters { grid-template-columns:minmax(0,1fr); } }

/* Colaboradores: ambas listas comparten búsqueda y sede. */
.hr-people-filters { grid-template-columns:minmax(0,2fr) minmax(0,1fr) auto; }
@media(max-width:600px) { .hr-people-filters { grid-template-columns:minmax(0,1fr); } }
