/* Recursos Humanos: directorio claro, accesible y adaptable. */
.hr-workspace { display:grid; gap:16px; min-width:0; }
.hr-workspace > .clinessy-card { margin:0!important; padding:18px 20px!important; border:1px solid #e8e3ef!important; border-radius:18px!important; background:#fff!important; box-shadow:0 10px 28px rgba(48,29,74,.045)!important; }
.hr-workspace .hr-directory-heading { display:flex; align-items:center; justify-content:space-between; gap:16px; flex-wrap:wrap; padding-block:16px!important; background:linear-gradient(120deg,#fff 50%,#fbf8ff 100%)!important; }
.hr-workspace h2 { margin:0 0 4px!important; color:#20152d; font-size:21px!important; letter-spacing:-.025em; }
.hr-workspace p { color:#667085; margin:4px 0 0; line-height:1.45; }
.hr-workspace .hr-eyebrow { display:block; margin-bottom:5px; color:#7a38c7; font-size:11px; font-weight:800; letter-spacing:.09em; text-transform:uppercase; }
.hr-summary-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:12px; }
.hr-summary-card { position:relative; display:flex; align-items:center; gap:14px; min-height:92px; padding:16px 18px; overflow:hidden; border:1px solid #e8e3ef; border-radius:16px; background:#fff; box-shadow:0 8px 22px rgba(48,29,74,.04); }
.hr-summary-card::after { content:""; position:absolute; right:-26px; bottom:-36px; width:105px; height:105px; border-radius:50%; background:currentColor; opacity:.045; }
.hr-summary-card > .dashicons { display:grid; place-items:center; width:42px; height:42px; border-radius:13px; font-size:22px; line-height:1; }
.hr-summary-card small { display:block; margin-bottom:1px; color:#667085; font-size:12px; font-weight:700; }
.hr-summary-card strong { display:block; color:#20152d; font-size:25px; line-height:1.05; letter-spacing:-.04em; }
.hr-summary-card p { font-size:12px; }
.hr-summary-total { color:#6e35bd; }
.hr-summary-total > .dashicons { background:#f0e8fc; color:#7137bf; }
.hr-summary-active { color:#138a68; }
.hr-summary-active > .dashicons { background:#e4f6ef; color:#138a68; }
.hr-summary-agenda { color:#2877c8; }
.hr-summary-agenda > .dashicons { background:#e8f3ff; color:#2877c8; }
.hr-workspace .hr-directory-filters { display:flex; flex-wrap:wrap; align-items:end; gap:12px; }
.hr-workspace .hr-directory-filters label { display:grid; gap:6px; flex:1 1 220px; color:#344054; font-weight:700; }
.hr-workspace .hr-directory-filters input,.hr-workspace .hr-directory-filters select { width:100%; box-sizing:border-box; min-height:44px; padding:8px 12px; border:1px solid #d8d2e2; border-radius:10px; background:#fff; }
.hr-workspace .hr-directory-filters input:focus,.hr-workspace .hr-directory-filters select:focus { border-color:#8a51d2; box-shadow:0 0 0 3px rgba(122,56,199,.11); outline:0; }
.hr-workspace .hr-form-card .clinessy-form { gap:16px!important; }
.hr-workspace .hr-section-heading { padding:12px 0 8px; border-bottom:1px solid #ece8f2; }
.hr-workspace .hr-section-heading h3 { margin:0; color:#6333a4; font-size:16px; }
.hr-workspace .hr-field-help,.hr-workspace .hr-access-note { font-size:12px; }
.hr-workspace .hr-access-note { padding:10px 12px; border-radius:8px; background:#f5f2fb; margin:0; }
.hr-workspace .hr-notes { border:1px solid #e5e1ee; border-radius:10px; padding:12px; }
.hr-workspace .hr-notes summary { cursor:pointer; font-weight:600; color:#4e386e; }
.hr-workspace .hr-notes label { display:grid; gap:8px; margin-top:12px; }
.hr-workspace .hr-notes textarea { width:100%; box-sizing:border-box; min-height:85px; }
.hr-workspace .employee-form-actions { display:flex!important; flex-wrap:wrap; gap:10px!important; justify-content:flex-end; padding-top:16px; border-top:1px solid #ece8f2; }
.hr-workspace .button { display:inline-flex!important; align-items:center!important; justify-content:center!important; gap:7px!important; min-height:42px!important; padding:0 15px!important; border-radius:10px!important; border:1px solid #ded5eb!important; background:#fff!important; color:#6634a4!important; text-decoration:none!important; font-weight:750!important; line-height:1.3!important; box-sizing:border-box; cursor:pointer; }
.hr-workspace .button.button-primary { background:linear-gradient(135deg,#7024d6,#8c36d9)!important; color:#fff!important; border-color:#7024d6!important; box-shadow:0 8px 18px rgba(112,36,214,.18)!important; }
.hr-workspace .button:hover { border-color:#9d7ac8!important; transform:translateY(-1px); }
.hr-workspace .button:focus-visible,.hr-workspace summary:focus-visible { outline:3px solid #bba0ec; outline-offset:3px; }
.hr-list-heading { display:flex; align-items:end; justify-content:space-between; gap:16px; margin-bottom:14px; }
.hr-list-heading h2 { margin:0!important; }
.hr-list-heading h2 span { display:inline-grid; place-items:center; min-width:25px; height:25px; padding:0 7px; margin-left:4px; border-radius:999px; background:#f0e8fc; color:#7137bf; font-size:12px; vertical-align:3px; }
.hr-list-heading p { margin:0; font-size:13px; }
.hr-workspace .hr-table-scroll { max-width:100%; overflow:visible; }
.hr-workspace .clinessy-employee-list-card { min-width:0; padding-bottom:8px!important; overflow:visible!important; }
.hr-employee-table { width:100%; border-collapse:separate!important; border-spacing:0!important; }
.hr-employee-table thead th { padding:11px 10px!important; border-bottom:1px solid #ebe7f0!important; background:#faf9fc!important; color:#667085!important; font-size:11px!important; letter-spacing:.035em; text-transform:uppercase; }
.hr-employee-table tbody td { padding:13px 10px!important; border-bottom:1px solid #f0edf3!important; color:#344054; vertical-align:middle!important; }
.hr-employee-table tbody tr:last-child td { border-bottom:0!important; }
.hr-employee-table tbody tr:hover td { background:#fcfbfe; }
.hr-person { display:flex; align-items:center; gap:10px; min-width:145px; }
.hr-avatar { display:grid; flex:0 0 36px; place-items:center; width:36px; height:36px; border-radius:12px; background:linear-gradient(145deg,#ece2fb,#f7f3fe); color:#6f35b7; font-size:12px; font-weight:850; }
.hr-person strong { color:#231a2e; font-size:14px; }
.hr-salary { white-space:nowrap; font-weight:700; color:#303846!important; }
.hr-status-chip { display:inline-flex; align-items:center; gap:7px; min-height:26px; padding:3px 9px; border-radius:999px; white-space:nowrap; font-size:11px; font-weight:800; }
.hr-status-chip > span { width:7px; height:7px; border-radius:50%; background:currentColor; box-shadow:0 0 0 3px rgba(255,255,255,.7); }
.hr-status-chip.is-active { background:#e7f7ef; color:#147b5e; }
.hr-status-chip.is-agenda { background:#e8f3ff; color:#276eaf; }
.hr-status-chip.is-muted { background:#f1f2f4; color:#667085; }
.hr-actions-cell { width:1%; }
.employee-row-actions { position:relative; display:flex; align-items:center; justify-content:flex-end; gap:7px; white-space:nowrap; }
.hr-workspace .hr-edit-action { min-height:34px!important; padding:0 12px!important; border-color:transparent!important; background:#f4effb!important; }
.employee-actions-menu { position:relative; }
.employee-actions-menu summary { display:grid; place-items:center; width:34px; height:34px; border:1px solid #e3ddea; border-radius:9px; color:#5c4c6e; cursor:pointer; list-style:none; }
.employee-actions-menu summary::-webkit-details-marker { display:none; }
.employee-actions-menu summary:hover { border-color:#ae8cd2; background:#faf7fd; }
.employee-actions-menu[open] summary { border-color:#9c70ce; background:#f4edfc; }
.employee-actions-menu > div { position:absolute; z-index:20; top:42px; right:0; width:190px; padding:6px; border:1px solid #e7dfe9; border-radius:11px; background:#fff; box-shadow:0 14px 34px rgba(43,25,60,.16); }
.employee-actions-menu a { display:block; padding:10px 11px; border-radius:7px; color:#b42342!important; text-decoration:none; font-size:12px; font-weight:750; }
.employee-actions-menu a:hover { background:#fff0f3; }
.hr-empty-row td { padding:36px 20px!important; text-align:center; }
.hr-empty-row .dashicons,.hr-empty-row strong,.hr-empty-row small { display:block; margin-inline:auto; }
.hr-empty-row .dashicons { width:34px; height:34px; margin-bottom:8px; color:#8a769e; font-size:30px; }
.hr-empty-row strong { color:#342641; }
.hr-empty-row small { margin-top:4px; color:#7b7085; }
@media(max-width:980px) {
 .hr-summary-grid { grid-template-columns:repeat(3,minmax(170px,1fr)); overflow-x:auto; padding-bottom:3px; scroll-snap-type:x proximity; }
 .hr-summary-card { scroll-snap-align:start; }
 .hr-workspace .hr-table-scroll { overflow-x:auto; }
 .hr-employee-table { min-width:900px; }
}
@media(max-width:700px) {
 .hr-workspace { gap:12px; }
 .hr-workspace > .clinessy-card { padding:14px!important; border-radius:15px!important; }
 .hr-workspace .hr-directory-heading { align-items:flex-start; }
 .hr-workspace .hr-directory-heading>.button { width:100%; }
 .hr-summary-grid { grid-template-columns:1fr; overflow:visible; }
 .hr-summary-card { min-height:78px; padding:13px 14px; }
 .hr-summary-card > .dashicons { width:38px; height:38px; }
 .hr-summary-card strong { font-size:22px; }
 .hr-workspace .hr-form-card .clinessy-form { grid-template-columns:minmax(0,1fr)!important; }
 .hr-workspace .hr-directory-filters label { flex-basis:100%; }
 .hr-workspace .hr-directory-filters .button { flex:1 1 120px; }
 .hr-workspace .employee-form-actions .button { flex:1 1 130px; }
 .hr-list-heading { align-items:flex-start; flex-direction:column; gap:2px; }
 .hr-workspace .hr-table-scroll { overflow:visible; }
 .hr-employee-table,.hr-employee-table tbody,.hr-employee-table tr,.hr-employee-table td { display:block; min-width:0; width:100%; box-sizing:border-box; }
 .hr-employee-table thead { display:none; }
 .hr-employee-table tbody { display:grid; gap:12px; }
 .hr-employee-table tbody tr { padding:14px; border:1px solid #e8e3ef; border-radius:14px; background:#fff; box-shadow:0 6px 18px rgba(48,29,74,.035); }
 .hr-employee-table tbody td { display:flex; align-items:center; justify-content:space-between; gap:16px; min-height:38px; padding:8px 0!important; border-bottom:1px solid #f0edf3!important; text-align:right; }
 .hr-employee-table tbody td::before { content:attr(data-label); color:#7a7084; font-size:11px; font-weight:750; text-align:left; text-transform:uppercase; }
 .hr-employee-table tbody td:first-child { padding-top:0!important; }
 .hr-employee-table tbody td:first-child::before { display:none; }
 .hr-employee-table tbody td:last-child { padding-bottom:0!important; border-bottom:0!important; }
 .hr-person { width:100%; }
 .hr-actions-cell { width:100%!important; }
 .employee-row-actions { width:auto; }
 .employee-actions-menu > div { right:0; }
 .hr-empty-row { padding:0!important; }
 .hr-empty-row td { display:block!important; padding:30px 14px!important; border:0!important; text-align:center!important; }
 .hr-empty-row td::before { display:none; }
}
