/* HR Bundle workflow — four explicit steps, built for operational review */
.hb-layout{display:grid;grid-template-columns:minmax(0,1fr);gap:18px;margin-top:16px}
.hb-step{min-width:0;padding:22px 24px}
.hb-step[hidden]{display:none!important}
.hb-step-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:14px}
.hb-step h2{font-size:19px;line-height:1.3;margin:0 0 10px}
.hb-subheading{font-size:15px;margin:22px 0 10px}
.hb-muted,.hb-note{color:#526475;font-size:13px;line-height:1.55}
.hb-note{margin:7px 0}
.hb-actions{display:flex;flex-wrap:wrap;align-items:center;gap:12px;margin:14px 0}
.hb-actions button{cursor:pointer}
.hb-clear{background:transparent!important;color:#40536c!important;border:1px solid #b7c5d5!important}
.hb-global-status{font-size:13px;min-height:22px;margin:12px 2px 0;color:#53657a}
.hb-status-ok{color:#13795b}.hb-status-warn{color:#9a6300}.hb-status-err{color:#b42318}
.hb-naming-help{border:1px solid #e0e8f2;background:#f7fafc;color:#4c5d71;border-radius:9px;padding:12px 14px;font-size:13px;line-height:1.6;margin:10px 0 13px}
.hb-naming-help code,.hb-example,.hb-prefix{font-family:ui-monospace,SFMono-Regular,Menlo,monospace;color:#163f83}
.hb-employee-list,.hb-file-list{min-width:0}
.hb-employee-row{display:grid;grid-template-columns:minmax(180px,1.2fr) minmax(165px,1.1fr) 78px minmax(170px,1fr) auto;align-items:center;gap:10px;border-bottom:1px solid #e5eaef;padding:11px 0}
.hb-employee-ident{display:flex;flex-wrap:wrap;gap:7px;align-items:center}
.hb-employee-ident strong{font-size:14px}
.hb-employee-ident small{flex-basis:100%}
.hb-prefix{font-size:12px;padding:4px 6px;border:1px solid #d4ddea;background:#f3f7fc;border-radius:5px;white-space:nowrap}
.hb-employee-row select{font-size:13px;min-width:0;width:100%;border:1px solid #cfd9e4;border-radius:7px;padding:8px 6px;background:#fff;color:#23334b}
.hb-example{font-size:12px;overflow-wrap:anywhere}
.hb-copy{background:#e5edfa!important;color:#123d83!important;font-size:12px!important;white-space:nowrap;padding:9px 12px!important}
.hb-file-list{max-height:240px;overflow:auto;border-top:1px solid #e5eaef}
.hb-file{padding:9px 0;border-bottom:1px solid #e5eaef;font-size:13px;overflow-wrap:anywhere}
.hb-assignment-list{border-top:1px solid #e6ebef}
.hb-assignment{display:grid;grid-template-columns:minmax(180px,2fr) minmax(130px,1fr) minmax(170px,1.4fr) minmax(88px,.5fr);align-items:center;gap:10px;border-bottom:1px solid #e5eaef;padding:10px 0}
.hb-assignment select{width:100%;min-width:0;background:#fff;border:1px solid #cdd8e6;padding:8px 5px;border-radius:7px;font-size:13px;color:#27354d}
.hb-file-title{display:flex;flex-wrap:wrap;align-items:center;gap:7px;min-width:0}
.hb-filename{font-size:13px;overflow-wrap:anywhere}
.hb-match-label{font-size:11px;padding:3px 7px;border-radius:20px;white-space:nowrap}
.hb-flag-warning{color:#8b5613;background:#fff2da}
.hb-flag-ok{color:#18674a;background:#e7f7ef}
.hb-check{font-size:12px;white-space:nowrap;display:flex;gap:6px;align-items:center}
.hb-person-review{border:1px solid #e0e8f0;border-radius:9px;margin:9px 0;background:#fff}
.hb-person-review>summary{padding:13px 14px;font-size:14px;font-weight:600;cursor:pointer}
.hb-section-list{padding:0 13px 13px;border-top:1px solid #e9edf2}
.hb-section-row{display:grid;grid-template-columns:minmax(180px,1fr) 125px;gap:5px;padding:7px 2px;border-bottom:1px solid #f0f2f5;font-size:12px;align-items:center}
.hb-received{color:#13795b}.hb-missing{color:#a25412}
.hb-section-files{grid-column:1/-1;color:#64748b;overflow-wrap:anywhere}
.hb-toggle{font-size:13px;display:flex;gap:8px;align-items:center}
.module-tabs a{text-decoration:none;display:inline-flex;align-items:center;justify-content:center}
.hb-layout button:disabled{opacity:.5;cursor:not-allowed}
@media(max-width:950px){
 .hb-employee-row{grid-template-columns:1fr 1fr}
 .hb-employee-ident{grid-column:1/-1}.hb-example{grid-column:1}.hb-copy{grid-column:2;justify-self:start}
 .hb-assignment{grid-template-columns:1fr 1fr}
 .hb-file-title{grid-column:1/-1}
}
@media(max-width:560px){
 .hb-step{padding:17px 14px}.hb-step-heading{flex-direction:column}
 .hb-employee-row{grid-template-columns:1fr 105px}
 .hb-doc-select{grid-column:1}.hb-extension{grid-column:2}
 .hb-example{grid-column:1/-1}.hb-copy{grid-column:1/-1}
 .hb-assignment{grid-template-columns:1fr}
 .hb-file-title{grid-column:1}
 .hb-section-row{grid-template-columns:minmax(0,1fr) 110px}
}

/* Excel-first naming panel: show all 15 extensionless document names per employee. */
.hb-name-group{padding:0 0 18px;margin:0 0 20px;border-bottom:1px solid #e3eaf1}
.hb-name-group-header{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:11px 0}
.hb-name-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}
.hb-name-item{display:flex;align-items:center;gap:10px;min-width:0;width:100%;border:1px solid #e1e8f0;border-radius:8px;background:#fff;color:#1d3555;padding:9px 12px;text-align:left;cursor:pointer;font:inherit;min-height:43px;transition:background .13s ease,border-color .13s ease}
.hb-name-item:hover{background:#f2f7ff;border-color:#adc7ea}
.hb-name-item:focus-visible,.hb-copy-all:focus-visible{outline:2px solid #2057ad;outline-offset:2px}
.hb-name-code{font-size:12px;color:#194982;font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-weight:650;white-space:nowrap}
.hb-name-label{font-size:12px;color:#5b6f85;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.hb-name-copy{font-size:11px;color:#386bab;margin-left:auto;white-space:nowrap}
.hb-copy-all{border:1px solid #c8d8ec!important;background:#eff5fd!important;color:#174a8b!important;font-size:12px!important;padding:7px 12px!important;cursor:pointer}
@media(max-width:740px){.hb-name-grid{grid-template-columns:minmax(0,1fr)}.hb-name-label{white-space:normal}}


/* Filename preparation: one selected employee, compact and accessible. */
.hb-name-group{margin:0;padding:0;border-bottom:0}
.hb-name-group-header{display:flex;flex-wrap:wrap;align-items:end;justify-content:flex-start;gap:14px;padding:12px 0 15px}
.hb-name-selector{display:flex;flex:1 1 300px;flex-direction:column;min-width:0;max-width:520px;gap:6px}
.hb-employee-label{color:#526475;font-size:12px;font-weight:600}
.hb-employee-picker{display:block;width:100%;min-width:0;min-height:42px;border:1px solid #c5d4e8;border-radius:8px;background:#fff;color:#162f50;padding:9px 12px;font:inherit;font-size:14px;cursor:pointer}
.hb-employee-picker:focus-visible{outline:2px solid #2358a3;outline-offset:2px}
.hb-employee-metadata{display:flex;align-items:center;gap:9px;flex-wrap:wrap;min-height:42px}
.hb-name-group-header .hb-copy-all{margin-left:auto;min-height:40px}
@media(max-width:620px){
 .hb-name-group-header{gap:10px}
 .hb-name-selector{flex-basis:100%;max-width:none}
 .hb-employee-metadata{min-height:32px}
 .hb-name-group-header .hb-copy-all{margin-left:auto}
}

/* No placeholder whitespace when status and file counters are empty. */
.hb-global-status:empty,.hb-note:empty{display:none}
.hb-step-heading h2{margin-bottom:4px}
.hb-employee-list{margin-top:10px}
