.staff-page{width:min(100%,1080px);box-sizing:border-box;margin:0 auto 0 0;padding:16px clamp(12px,2vw,24px) 28px;color:var(--ink,#172e35)}
.staff-page header,.staff-toolbar,.staff-summary,#staff-selects,.staff-period{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.staff-page header{justify-content:space-between;margin-bottom:12px}
.staff-page h1{font-size:clamp(20px,2vw,26px);margin:0}
.staff-toolbar{gap:6px}.staff-toolbar input,.staff-toolbar select{max-width:100%;min-width:0;min-height:34px}
.staff-toolbar input,.staff-toolbar select,.staff-form input,.staff-form select{box-sizing:border-box;border:1px solid var(--line);border-radius:7px;background:var(--surface,#fff);color:var(--ink);padding:5px 8px;font:inherit;font-size:13px}
.staff-toolbar :is(input,select,button):focus-visible,.staff-form :is(input,select):focus-visible{outline:2px solid var(--green,#147746);outline-offset:1px}
.staff-period{flex-wrap:nowrap;gap:0;border:1px solid var(--line);background:var(--surface,#fff);border-radius:7px}
.staff-period #staff-month{border:0;border-radius:4px;padding-inline:3px;min-height:32px}
.staff-period .icon-btn{width:26px;height:32px;font-size:18px}
#staff-query{width:15em}#staff-department,#staff-subset{max-width:220px}
.staff-note,.staff-table small,.staff-empty{font-size:.84em;color:var(--muted,#506567)}
.staff-note{margin:8px 0}.staff-summary{font-size:.91em;gap:8px 22px;margin:12px 0 8px}.staff-summary b{margin-left:4px;font-variant-numeric:tabular-nums}
.staff-table-wrap{border:1px solid var(--line,#d6e3df);border-radius:8px;overflow:hidden;background:var(--card,#fff)}
.staff-table{width:100%;border-collapse:collapse;font-size:.94em;font-variant-numeric:tabular-nums}
.staff-table th,.staff-table td{height:auto;line-height:1.35;font-size:13px;padding:7px 10px;text-align:left;border-bottom:1px solid var(--line,#d6e3df);overflow-wrap:anywhere;vertical-align:middle}
.staff-table thead th{font-size:.85em;background:var(--soft,#eff5f2);font-weight:600}.staff-table tr:last-child>*{border-bottom:0}
.staff-table thead tr:last-child>*{border-bottom:1px solid var(--line,#d6e3df)}.staff-table small{display:block;font-weight:400;margin-top:1px}
.staff-actual{font-weight:650}.staff-table .staff-row-action{width:1%;white-space:nowrap}.staff-empty{margin:18px 0}
.staff-form>label{display:grid;gap:4px;margin:0 0 10px;font-weight:600}.staff-form input,.staff-form select{width:100%;min-width:0;box-sizing:border-box}
.staff-person{margin:0 0 14px}
@media(max-width:680px){
 .staff-page{padding:12px 10px 24px}.staff-page header{margin-bottom:8px}.staff-toolbar{align-items:stretch}
 #staff-query{flex:1 1 125px;width:0}#staff-selects{flex:1 1 180px;flex-wrap:nowrap;min-width:0}#staff-selects select{flex:1;width:0}
 .staff-table-wrap{border:0;background:transparent;overflow:visible}.staff-table,.staff-table tbody{display:block}
 .staff-table thead{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
 .staff-table tbody tr{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:5px 12px;border:1px solid var(--line,#d6e3df);border-radius:7px;margin-bottom:5px;padding:8px 10px;background:var(--card,#fff)}
 .staff-table tbody th,.staff-table tbody td{display:block;padding:0;border:0;min-width:0}
 .staff-table tbody th,.staff-table tbody td{height:auto;min-height:0;background:transparent}
 .staff-table th[scope="row"]{grid-column:1/-1;align-self:center}
 .staff-table tr:has(.staff-row-action) th[scope="row"]{grid-column:1;grid-row:1}.staff-table th[scope="row"] small{display:inline;margin-left:6px}
 .staff-table td[data-label]::before{content:attr(data-label);display:block;font-size:.79em;font-weight:400;color:var(--muted,#506567)}
 .staff-table .staff-row-action{width:auto;grid-column:2;grid-row:1;align-self:center;justify-self:end;text-align:right}.staff-table .staff-row-action button{min-height:32px}
 .staff-table small{font-size:.8em}.staff-summary{gap:3px 12px}
}

.staff-open-card{display:inline-flex;align-items:baseline;gap:4px;max-width:100%;padding:2px 0;border:0;background:transparent;color:var(--green,#146448);font:inherit;font-weight:650;text-align:left;overflow-wrap:anywhere;cursor:pointer}
.staff-open-card:hover{text-decoration:underline}.staff-open-card:focus-visible{outline:2px solid currentColor;outline-offset:2px}.staff-open-card span{font-weight:400}
/* Employee card and editor share the portal dialog and its scrollable body. */
#form-dialog:has(>.hr-card-head,>.hr-editor) { width:min(580px,calc(100% - 24px)); }
#form-dialog>.hr-card-head,#form-dialog>.hr-editor>.dialog-head { background:linear-gradient(110deg,var(--green-soft),var(--surface) 80%); }
#form-dialog>.hr-card-head { padding:12px 15px; }
.hr-card-identity { display:flex; flex:1; align-items:center; min-width:0; gap:10px; }
.hr-card-identity .hr-monogram { width:38px; height:38px; border-radius:10px; font-size:15px; }
.hr-card-head h2 { margin:0; }
.hr-card-meta { display:flex; flex-wrap:wrap; align-items:baseline; gap:2px 5px; margin-top:2px; color:var(--muted); font-size:12px; line-height:1.35; overflow-wrap:anywhere; }
.hr-card-location { padding:0 6px; border:1px solid var(--line); border-radius:4px; background:var(--surface); color:var(--ink); }
.hr-card-tabs { display:flex; flex:none; gap:4px; margin:0; padding:0 12px; border-bottom:1px solid var(--line); background:var(--surface); }
.hr-card-tabs button { display:inline-flex; align-items:center; justify-content:center; gap:4px; min-width:0; min-height:36px; margin-bottom:-1px; padding:4px 8px; border:0; border-bottom:2px solid transparent; background:transparent; color:var(--muted); font:inherit; font-size:12px; font-weight:600; cursor:pointer; }
.hr-card-tabs button[aria-selected=true] { border-bottom-color:var(--green); color:var(--green-hover); }
.hr-card-tabs b { min-width:1.35em; padding:1px 3px; border-radius:4px; background:var(--canvas); font-size:10px; font-variant-numeric:tabular-nums; }
.hr-card-tabs[hidden],.hr-card-tabs [hidden],.staff-card [hidden],#form-dialog .dialog-footer [data-hr-edit][hidden] { display:none!important; }
.staff-card dl { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); margin:0; }
.staff-card dl>div { min-width:0; }
.staff-card dt { color:var(--muted); font-size:12px; line-height:1.3; }
.staff-card dd { margin:3px 0 0; overflow-wrap:anywhere; font-weight:600; line-height:1.35; font-variant-numeric:tabular-nums; }
.staff-card .hr-profile-facts { grid-template-columns:repeat(3,minmax(0,1fr)); gap:8px 12px; padding:4px 0 12px; border-bottom:1px solid var(--line); }
.staff-card h4 { margin:12px 0 6px; font-size:14px; }
.staff-card .staff-appointments { list-style:none; margin:0; padding:0; }
.staff-appointments li { position:relative; display:grid; grid-template-columns:6.7em minmax(0,1fr) auto; gap:2px 8px; align-items:baseline; margin-left:3px; padding:6px 0 6px 12px; border-left:1px solid var(--green-line); font-size:12px; }
.staff-appointments li::before { content:""; position:absolute; top:12px; left:-3px; width:5px; height:5px; border-radius:50%; background:var(--green); }
.staff-appointments time { color:var(--muted); white-space:nowrap; font-variant-numeric:tabular-nums; }
.staff-appointments strong { font-weight:600; overflow-wrap:anywhere; }
.staff-appointments li span { color:var(--muted); font-variant-numeric:tabular-nums; }
.hr-editor-fields,.staff-appointment { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px 12px; }
.hr-editor-fields label,.staff-appointment label { display:grid; gap:3px; align-content:start; min-width:0; font-size:12px; color:var(--muted); font-weight:600; }
.hr-editor-fields input,.hr-editor-fields select,.staff-appointment input { min-height:33px; font-weight:400; }
.hr-editor .staff-person { margin:0 0 8px; font-size:12px; color:var(--muted); }
.hr-editor .staff-person strong { color:var(--ink); }
.staff-appointment { position:relative; min-width:0; margin:8px 0; padding:8px 10px 10px; border:1px solid var(--line); border-radius:7px; background:var(--surface-soft); }
.staff-appointment legend { padding:0 4px; font-weight:600; font-size:12px; }
.staff-appointment button { align-self:end; justify-self:start; }
@media(min-width:551px){
 .staff-appointment { grid-template-columns:minmax(8.5em,1fr) minmax(0,1.5fr) minmax(7em,.85fr); }
 .staff-appointment [data-staff-remove] { grid-column:1/-1; }
}
.hr-editor [data-staff-appointment],.hr-doc-tools .btn { display:inline-flex; align-items:center; gap:5px; }
.hr-editor [data-staff-appointment] .icon,.hr-doc-tools .icon { width:14px; height:14px; }
.hr-analytics-period,.hr-upload-actions,.hr-doc-tools,.hr-doc-actions,.hr-employment { display:flex; align-items:center; flex-wrap:wrap; gap:6px 8px; }
.hr-analytics-period { margin:0 0 7px; color:var(--muted); font-size:12px; }
.hr-analytics-period input,.hr-file-fields :is(input,select),#hr-upload input[type=file] { min-width:0; max-width:100%; min-height:32px; border:1px solid var(--line); border-radius:6px; background:var(--surface); color:var(--ink); font:inherit; padding:4px 6px; }
.hr-employment { justify-content:space-between; align-items:baseline; margin:0 0 8px; gap:2px 6px; font-size:12px; }
.hr-employment strong { margin-inline-start:2px; }
.hr-employment small { color:var(--muted); }
.staff-card .hr-metrics { gap:8px; }
.hr-metrics>div { padding:3px 8px; }
.hr-metrics>div:nth-child(-n+2) { border-radius:6px; padding:6px 8px; }
.hr-metrics>div:first-child { background:var(--green-soft); }
.hr-metrics>div:nth-child(2) { background:var(--blue-soft); }
.hr-metrics>div:nth-child(-n+2) dd { font-size:clamp(16px,2.4vw,20px); }
.hr-metrics>div:nth-child(n+3) { border-inline-start:2px solid var(--line); }
.hr-series { width:100%; border-collapse:collapse; table-layout:fixed; font-size:12px; font-variant-numeric:tabular-nums; }
.hr-series th,.hr-series td { height:auto; min-width:0; padding:5px 5px; line-height:1.32; border-bottom:1px solid var(--line); text-align:right; font-size:inherit; vertical-align:middle; overflow-wrap:anywhere; }
.hr-series th:first-child { text-align:left; width:21%; font-weight:550; }
.hr-series th:last-child { width:13%; }
.hr-series thead th { background:var(--surface-soft); color:var(--muted); font-weight:550; }
.hr-series .hr-current { background:var(--green-soft); }
.hr-no-value { color:var(--muted); }
.hr-month-value { display:block; }
.hr-chart-bar { display:block; width:100%; height:3px; box-sizing:border-box; margin:2px 0 0; padding:0; border:0; border-radius:2px; overflow:hidden; background:transparent; appearance:none; direction:rtl; }
.hr-salary { --hr-bar:#4c8975; }
.hr-work { --hr-bar:#618bab; }
.hr-chart-bar::-webkit-progress-bar { background:transparent; }
.hr-chart-bar::-webkit-progress-value { background:var(--hr-bar); border-radius:2px; }
.hr-chart-bar::-moz-progress-bar { background:var(--hr-bar); border-radius:2px; }
.staff-card .hint,.hr-empty,.hr-review,[data-hr-message] { margin:7px 0; font-size:12px; line-height:1.4; color:var(--muted); }
.hr-review { padding:5px 8px; border-radius:5px; color:#704a0d; background:var(--amber-soft); }
[data-hr-message]:empty,.hr-doc-tools:empty { display:none; }
.hr-doc-tools { margin-bottom:6px; }
#hr-upload { display:grid; gap:7px; min-width:0; margin:6px 0 10px; padding:9px; border:1px solid var(--green-line); border-radius:7px; background:var(--surface-soft); }
#hr-upload label { display:grid; gap:3px; min-width:0; font-size:12px; font-weight:600; }
#hr-upload small,.hr-doc small { display:block; color:var(--muted); font-size:11.5px; }
.hr-file-fields { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:7px; }
#hr-upload progress { width:100%; }
.hr-doc { display:grid; grid-template-columns:auto minmax(0,1fr) auto; align-items:center; gap:3px 8px; padding:7px 0; border-bottom:1px solid var(--line); }
.hr-doc-info { min-width:0; overflow-wrap:anywhere; }
.hr-doc strong { display:block; font-size:13px; }
.hr-file-type { display:grid; place-items:center; min-width:34px; min-height:29px; padding:1px 3px; box-sizing:border-box; border-radius:6px; font-size:10px; font-weight:650; background:var(--canvas); color:var(--muted); }
.hr-file-type[data-format=pdf] { background:var(--red-soft); color:#914839; }
.hr-file-type[data-format=excel] { background:var(--green-soft); color:var(--green-hover); }
.hr-file-type[data-format=word] { background:var(--blue-soft); color:var(--blue); }
.hr-doc-actions { gap:2px 8px; justify-content:flex-end; font-size:12px; }
.hr-doc-actions :is(a,button) { display:inline-flex; align-items:center; min-height:30px; font:inherit; white-space:nowrap; color:var(--green-hover); }
.hr-doc-actions .text-btn { padding:0 2px; color:var(--muted); }
.hr-removed { margin-top:8px; font-size:12px; }
.hr-removed summary { cursor:pointer; color:var(--muted); }
@media(max-width:550px){
 #form-dialog:has(>.hr-card-head,>.hr-editor) { width:calc(100% - 16px); }
 #form-dialog>.hr-card-head { padding:9px 11px; }
 .hr-card-identity { gap:8px; }
 .hr-card-identity .hr-monogram { width:33px; height:33px; font-size:13px; }
 .hr-card-tabs { padding-inline:6px; }
 .hr-card-tabs button { flex:1; min-height:38px; }
 .staff-card .hr-profile-facts { grid-template-columns:repeat(2,minmax(0,1fr)); }
 .staff-appointments li { grid-template-columns:6.2em minmax(0,1fr); gap:1px 6px; }
 .staff-appointments li span { grid-column:2; }
 .hr-doc { grid-template-columns:auto minmax(0,1fr); }
 .hr-doc-actions { grid-column:2; justify-content:flex-start; gap:0 12px; }
 .hr-doc-actions :is(a,button) { min-height:36px; }
 .hr-editor-fields .hr-editor-name { grid-column:1/-1; }
 .hr-series th,.hr-series td { padding-inline:2px; }
}
@media(max-width:370px){
 .hr-file-fields,.staff-appointment { grid-template-columns:1fr; }
 .hr-series { font-size:11px; }
 .hr-card-tabs { gap:0; }
 .hr-editor-fields { grid-template-columns:1fr; }
}

/* Personnel register */
.hr-register { max-width:1060px; padding-top:12px; }
.hr-register [hidden] { display:none!important; }
.hr-register .hr-register-heading { margin:0 0 9px; gap:6px; }
.hr-register-heading h1,.hr-heading-icon,.hr-register-nav,.hr-register-nav button,.hr-register-tools,
.hr-person-line,.hr-register-actions>div,.hr-register-actions button,.hr-match,#hr-extra-filters { display:flex; align-items:center; }
.hr-register-heading h1 { gap:9px; }
.hr-heading-icon { width:32px; height:32px; justify-content:center; border-radius:9px; background:var(--dark,#153b34); color:#f1faf5; }
.hr-heading-icon .icon { width:19px; height:19px; }
.hr-register-heading .btn { min-height:32px; gap:5px; padding:4px 11px; }
.hr-heading-actions,.hr-dept-actions,.hr-dept-bar { display:flex; align-items:center; gap:6px; }
.hr-heading-actions { flex-wrap:wrap; }
#form-dialog:has(.hr-departments) { width:min(550px,calc(100% - 16px)); }
.hr-departments [hidden] { display:none!important; }
.hr-dept-form { display:flex; flex-wrap:wrap; align-items:flex-end; gap:5px; margin:0 0 10px; }
.hr-dept-form label { display:grid; gap:3px; flex:1 1 165px; min-width:0; color:var(--muted); font-size:12px; font-weight:600; }
.hr-dept-form input { width:100%; min-width:0; height:34px; padding:4px 8px; border:1px solid var(--line); border-radius:6px; background:var(--surface); color:var(--ink); font:inherit; font-size:14px; }
.hr-dept-form :is(.btn,.text-btn) { min-height:34px; }
.hr-dept-form .btn.primary:not(:disabled):is(:hover,:active) { transform:none; }
.hr-dept-bar { justify-content:space-between; padding-bottom:4px; border-bottom:1px solid var(--line); }
.hr-dept-message { margin:6px 0; color:var(--green-hover); font-size:12px; }
.hr-dept-message:empty { display:none; }
.hr-dept-message.form-error { color:var(--red); }
.hr-dept-list { list-style:none; padding:0; margin:0; }
.hr-dept-list li { display:flex; align-items:center; flex-wrap:wrap; justify-content:space-between; gap:2px 6px; padding:4px 0; border-bottom:1px solid var(--line); }
.hr-dept-list li>div:first-child,.hr-dept-list li>strong { flex:1 1 130px; min-width:0; overflow-wrap:anywhere; }
.hr-dept-list strong { font-size:13px; }
.hr-dept-list small,.hr-dept-empty { display:block; font-size:12px; color:var(--muted); }
.hr-dept-actions { flex-wrap:wrap; gap:2px 6px; }
.hr-dept-actions .text-btn { min-height:28px; padding:2px 4px; font-size:12px; }
.hr-dept-actions [data-dept-action=delete],.hr-dept-actions [data-dept-action=confirm] { color:var(--red); }
.hr-departments :is(input,button):focus-visible { outline:2px solid var(--green); outline-offset:-2px; }
@media(max-width:550px){
 .hr-heading-actions:has(#hr-departments:not([hidden])) .hr-add-noun { display:none; }
 .hr-dept-actions .text-btn { min-height:36px; }
}
.hr-register-heading .btn .icon,.hr-register .staff-toolbar .icon { width:15px; height:15px; flex:none; }
.hr-register-panel { min-width:0; border:1px solid var(--line); border-radius:10px; background:var(--surface,#fff); }
.hr-register-tools { justify-content:space-between; gap:6px; padding:4px 8px; border-bottom:1px solid var(--line); }
.hr-register-nav { gap:3px; }
.hr-register-nav button,.hr-register-table button,.hr-filter-toggle { font:inherit; cursor:pointer; }
.hr-register-nav button { gap:5px; padding:3px 8px; min-height:28px; border:1px solid transparent; border-radius:6px; background:transparent; color:var(--muted); font-size:12px; font-weight:600; white-space:nowrap; }
.hr-register-nav button:hover { color:var(--ink); background:var(--surface-soft); }
.hr-register-nav button[aria-pressed=true] { color:var(--green-hover); background:var(--green-soft); border-color:var(--green-line); }
.hr-register-nav b,.hr-filter-toggle b { padding:0 4px; min-width:1.35em; box-sizing:border-box; border-radius:4px; background:var(--canvas); color:inherit; font-size:10.5px; line-height:1.45; font-variant-numeric:tabular-nums; text-align:center; }
.hr-register-nav [aria-pressed=true] b { background:var(--surface); }
.hr-register .staff-toolbar { gap:6px; margin:0; padding:6px 8px; }
.hr-register .staff-toolbar :is(input,select) { min-height:29px; height:29px; font-size:12px; padding:3px 6px; }
.hr-register-search { position:relative; flex:0 1 210px; min-width:105px; }
.hr-register-search>.icon { position:absolute; top:50%; left:8px; transform:translateY(-50%); color:var(--muted); pointer-events:none; }
.hr-register-search #staff-query { width:100%; padding-inline-start:29px; }
.hr-register .staff-period #staff-month,.hr-register .staff-period .icon-btn { min-height:27px; height:27px; }
.hr-register .staff-period #staff-month { border:0; }
#hr-extra-filters { flex-wrap:wrap; gap:5px; }
.hr-register #staff-selects { gap:5px; }
.hr-register .staff-toolbar #staff-refresh { width:30px; min-width:30px; height:29px; min-height:29px; margin-inline-start:auto; border:1px solid var(--line); border-radius:6px; color:var(--muted); background:var(--surface); }
.hr-mobile-sort,.hr-filter-toggle,.hr-register-table .hr-mobile-info { display:none; }
.hr-register-wrap { overflow:hidden; border-radius:0 0 9px 9px; }
.hr-register-table { width:100%; margin:0; border-collapse:collapse; table-layout:auto; font-variant-numeric:tabular-nums; }
.hr-register-table th,.hr-register-table td { min-width:0; height:auto; padding:2px 8px; border:0; border-bottom:1px solid var(--line); background:transparent; text-align:left; vertical-align:middle; line-height:1.25; font-size:12.5px; overflow-wrap:anywhere; }
.hr-register-table thead th { padding-block:2px; background:var(--surface-soft); border-block:1px solid var(--line); color:var(--muted); font-size:11.5px; }
.hr-register-table thead button { display:inline-flex; align-items:center; gap:4px; min-height:23px; border:0; background:transparent; color:inherit; padding:0; text-align:left; font-weight:600; }
.hr-register-table thead button span { font-size:11px; opacity:.65; }
.hr-register-table thead :is([aria-sort=ascending],[aria-sort=descending]) button { color:var(--green-hover); }
.hr-register-table thead :is([aria-sort=ascending],[aria-sort=descending]) span { opacity:1; }
.hr-register-table tbody tr { cursor:pointer; }
.hr-register-table tbody tr:is(:hover,:focus-within) { background:var(--green-soft); }
.hr-register-table tbody tr:last-child>* { border-bottom:0; }
.hr-person-line { gap:8px; min-width:0; }
.hr-register-table th[scope=row],.hr-person-text .staff-open-card,.hr-person-text .hr-mobile-info { white-space:normal; }
.hr-person-text,.hr-card-person { min-width:0; }
.hr-monogram { display:inline-grid; place-items:center; flex:none; box-sizing:border-box; width:23px; height:23px; border:1px solid #163b3710; border-radius:6px; background:#e6f1e9; color:#2b6049; font-size:10px; line-height:1; font-weight:700; letter-spacing:.015em; }
.hr-monogram[data-tone="1"] { background:#e9eff7; color:#395777; }
.hr-monogram[data-tone="2"] { background:#f3ecdf; color:#745735; }
.hr-monogram[data-tone="3"] { background:#efeaf3; color:#664f74; }
.hr-register-table .staff-open-card { display:inline-block; min-height:25px; height:auto; padding:2px 0; line-height:1.25; color:var(--ink); font-weight:650; }
.hr-register-date,.hr-status,.hr-register-actions { white-space:nowrap; }
.hr-register-date { color:var(--muted); }
.hr-status { display:inline-flex; align-items:center; gap:4px; padding:2px 6px; border-radius:9px; font-size:11px; line-height:1.35; color:var(--muted); background:var(--canvas); }
.hr-status::before { content:""; width:5px; height:5px; border-radius:50%; background:currentColor; }
.hr-status[data-status=working] { color:var(--green-hover); background:var(--green-soft); }
.hr-status[data-status=unknown] { background:transparent; padding-inline:0; }
.hr-status[data-status=unknown]::before { background:transparent; outline:1px solid currentColor; outline-offset:-1px; }
.hr-register-table .hr-register-actions { width:1%; padding:0 6px; }
.hr-register-actions>div { justify-content:flex-end; gap:3px; }
.hr-register-actions button,.hr-filter-toggle { justify-content:center; gap:4px; border:1px solid var(--line); background:var(--surface); border-radius:5px; color:var(--ink); }
.hr-register-actions button { min-height:24px; padding:1px 6px; font-size:11.5px; font-weight:550; line-height:1.2; }
.hr-register-actions .icon { width:12px; height:12px; }
.hr-register-actions .hr-register-more { min-width:25px; font-size:17px; padding:0 3px; }
.hr-register-actions button:hover,.hr-register .staff-toolbar #staff-refresh:hover { color:var(--green-hover); border-color:var(--green-line); }
.hr-register :is(button,input,select):focus-visible,.hr-card-tabs button:focus-visible { outline:2px solid var(--green); outline-offset:-2px; }
.hr-match { justify-content:space-between; padding:1px 9px; border-top:1px solid var(--line); font-size:12px; color:var(--muted); }
.hr-match .text-btn { min-height:26px; font-size:inherit; }
.hr-register .staff-empty { margin:0; padding:16px 10px; border-top:1px solid var(--line); text-align:center; }
.hr-action-person { display:flex; align-items:center; gap:7px; margin:0 0 7px; padding-bottom:7px; border-bottom:1px solid var(--line); overflow-wrap:anywhere; }
.hr-register-dialog>div { display:grid; grid-template-columns:8em minmax(0,1fr); gap:10px; align-items:center; padding:6px 0; }
.hr-register-dialog>div>span { font-size:.92em; color:var(--muted); }
.hr-register-dialog [data-hr-do=remove] { color:var(--red); border-color:var(--red-line); background:var(--red-soft); }
@media(prefers-reduced-motion:no-preference){
 .hr-register-nav button,.hr-register-actions button,.hr-card-tabs button { transition:background-color .12s,border-color .12s,color .12s; }
}
@media(max-width:680px){
 .hr-register { padding:9px 8px 22px; }
 .hr-heading-icon { width:29px; height:29px; border-radius:7px; }
 .hr-register-heading h1 { gap:6px; }
 .hr-register-heading .btn { min-height:36px; }
 .hr-register-tools { padding:3px 5px; gap:3px; }
 .hr-register-nav { gap:1px; }
 .hr-register-nav button { min-height:36px; padding:3px 5px; gap:3px; }
 .hr-mobile-sort { display:block; min-width:0; }
 .hr-mobile-sort select { max-width:100px; width:100%; min-height:34px; padding:2px 3px; border:1px solid var(--line); border-radius:5px; background:var(--surface); color:var(--ink); font:inherit; font-size:11px; }
 .hr-register .staff-toolbar { padding:4px 5px; gap:4px; align-items:center; }
 .hr-register-search { flex:1 1 90px; min-width:70px; }
 .hr-register .staff-toolbar #staff-query { width:100%; height:34px; }
 .hr-filter-toggle { display:inline-flex; align-items:center; min-height:34px; padding:3px 7px; font-size:12px; }
 .hr-filter-toggle[aria-expanded=true],.hr-filter-toggle:has(b:not([hidden])) { color:var(--green-hover); background:var(--green-soft); border-color:var(--green-line); }
 .hr-register .staff-toolbar #staff-refresh { width:34px; height:34px; }
 #hr-extra-filters { display:none; order:5; flex:1 0 100%; min-width:0; }
 .hr-show-filters #hr-extra-filters { display:flex; }
 #hr-extra-filters #staff-selects { flex:1 1 120px; }
 .hr-register .staff-toolbar #hr-extra-filters :is(input,select) { font-size:12px; }
 .hr-register-table,.hr-register-table tbody { display:block; }
 .hr-register-table thead { position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); }
 .hr-register-table tbody tr { display:grid; grid-template-columns:minmax(0,1fr) auto; gap:4px; align-items:center; min-height:43px; padding:2px 5px 2px 7px; box-sizing:border-box; border-top:1px solid var(--line); }
 .hr-register-table tbody th,.hr-register-table tbody td { border:0; padding:0; }
 .hr-register-table tbody th { display:block; line-height:1.22; }
 .hr-person-line { gap:6px; }
 .hr-register-table .staff-open-card { min-height:0; padding:2px 0; font-size:13px; }
 .hr-register-table .hr-mobile-info { display:block; margin:0; color:var(--muted); font-size:11px; font-weight:400; line-height:1.25; overflow-wrap:anywhere; }
 .hr-register-table .hr-desktop-cell { display:none; }
 .hr-register-table .hr-register-actions { width:auto; padding:0; }
 .hr-register-actions button { min-height:36px; }
 .hr-register-actions .hr-register-more { min-width:32px; }
}
@media(max-width:420px){
 .hr-register-actions [data-staff-edit] { min-width:36px; padding:0; }
 .hr-register-actions [data-staff-edit] .icon { width:16px; height:16px; }
 .hr-register-actions [data-staff-edit] span { display:none; }
}
@media(max-width:370px){
 .hr-register-nav button { padding-inline:3px; }
}
