.payroll-filter-toolbar{margin-top:18px;align-items:end}
.payroll-filter-toolbar label{display:flex;flex-direction:column;gap:7px;min-width:160px}
.payroll-review-reason{white-space:normal;line-height:1.45;margin-top:4px;color:var(--muted)}
.payroll-unsaved-estimate{white-space:normal;line-height:1.5;margin-top:8px;color:#e0b968}
.payroll-unsaved-estimate[hidden]{display:none}
#payrollFormEstimate{padding:12px 15px;border:1px solid var(--line);border-radius:8px}
.staff-planned-aid{padding:12px 0}
.staff-planned-aid small{display:inline-block;margin-left:12px;color:var(--muted)}
.staff-planned-aid p{margin-bottom:0}
.staff-overtime-aid{border:1px solid var(--line);border-radius:8px;padding:14px;margin:8px 0}
.staff-overtime-aid legend{font-size:12px;padding:0 7px}
.staff-overtime-aid>small{display:block;color:var(--muted);margin-top:10px}
#staffAttendanceDuration{line-height:1.6}
@media(max-width:740px){.payroll-filter-toolbar label{flex:1}.staff-planned-aid small{display:block;margin:10px 0 0}}
.staff-profile-controls{flex-wrap:wrap;align-items:flex-start}.staff-profile-controls>.staff-tabs{display:flex;flex:1 1 500px;flex-wrap:wrap;gap:4px}.staff-tabs button{min-height:40px;white-space:normal}.staff-overview-heading h3{margin:0 0 8px}.staff-overview-heading p,.staff-overview-help{color:var(--muted);line-height:1.6}.staff-overview-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(210px,1fr));gap:12px;margin:20px 0}.staff-overview-card{display:flex;flex-direction:column;gap:10px;text-align:left;white-space:normal;padding:18px;min-width:0;width:100%;border:1px solid var(--line);border-radius:10px;background:var(--soft);color:var(--ink);box-sizing:border-box}.staff-overview-card>span,.staff-overview-card small{font-size:12px;color:var(--muted);line-height:1.5}.staff-overview-card strong{font-size:19px;line-height:1.4;overflow-wrap:anywhere}.staff-overview-card:hover{border-color:var(--blue,#4a87d5)}.staff-overview-card:focus-visible{outline:2px solid var(--blue,#4a87d5);outline-offset:2px}.staff-attention{margin:20px 0;padding:16px;border:1px solid var(--line);border-radius:10px}.staff-attention>summary{cursor:pointer;font-weight:600}.staff-attention.has-alerts>summary{color:var(--warning,#e0b968)}.staff-attention ul{list-style:none;padding:0;max-height:300px;overflow:auto}.staff-attention li{display:grid;gap:6px;padding:12px 0;border-bottom:1px solid var(--line)}.staff-attention li:last-child{border-bottom:0}.staff-attention li small{color:var(--muted);line-height:1.5}
@media(max-width:700px){.staff-profile-controls>.staff-tabs{flex-basis:auto}.staff-tabs button{flex:1 1 130px}.staff-overview-grid{grid-template-columns:minmax(0,1fr)}}
.modal-head:has(.staff-profile-header-action){flex-wrap:wrap;gap:12px}.modal-head:has(.staff-profile-header-action) .modal-heading{flex:1 1 260px;max-width:100%}.modal-head:has(.staff-profile-header-action) .modal-heading h2{white-space:normal;overflow-wrap:anywhere}.modal-head:has(.staff-profile-header-action) .modal-head-actions{margin-left:auto;max-width:100%}.staff-profile-header-action{display:flex;align-items:center}.staff-profile-header-action>button{white-space:nowrap;font-size:12px}

.attendance-export{display:flex;align-items:center;flex-wrap:wrap;gap:8px;margin:10px 0}.attendance-export small{color:var(--muted);margin-right:4px}.attendance-export-link{display:inline-flex;align-items:center;justify-content:center;border:1px solid var(--line,#344050);border-radius:8px;padding:9px 14px;text-decoration:none;min-height:38px}.attendance-export-link:focus-visible{outline:2px solid var(--accent,#4c9aff);outline-offset:3px}
