#hr .hr-toolbar { display:flex; flex-wrap:wrap; align-items:center; gap:10px; margin-bottom:12px; }
#hr .hr-toolbar h3 { margin:0; }
#hr .hr-toolbar input { width:290px; max-width:100%; border:1px solid var(--line); border-radius:5px; padding:8px 10px; font:inherit; }
.hr-sort-control { display:flex; align-items:center; gap:7px; color:var(--muted); font-size:11px; }
.hr-sort-control select { min-width:150px; border:1px solid var(--line); border-radius:5px; padding:8px 28px 8px 9px; background:#fff; color:var(--text); font:inherit; }
.hr-management-tabs { margin:0 0 12px; border-bottom:1px solid var(--line); }
.hr-management-tabs button { display:inline-flex; align-items:center; gap:7px; }
.hr-management-tabs button span { min-width:20px; padding:2px 5px; border-radius:10px; background:#eef1f3; color:var(--muted); font-size:10px; text-align:center; }
.hr-management-tabs button.active span { background:#fff0e9; color:#c7471b; }
.hr-subtitle { display:block; color:var(--muted); margin-top:2px; }
.hr-layout { display:grid; grid-template-columns:275px minmax(0,1fr); gap:16px; min-height:560px; }
.hr-people { border:1px solid var(--line); background:#fff; overflow:auto; max-height:calc(100vh - 235px); }
.hr-person { display:block; width:100%; text-align:left; padding:9px 10px; border:0; border-bottom:1px solid var(--line); background:transparent; color:inherit; border-radius:0; }
.hr-person[aria-current=true] { background:#edf5f3; box-shadow:inset 3px 0 #237b66; }
.hr-person:hover { background:#f6f8f8; }
.hr-person small { display:block; margin:3px 0 0; color:var(--muted); }
.hr-person-line { display:flex; align-items:center; justify-content:space-between; gap:6px; }
.hr-person-line b { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.hr-person-line .badge { flex:none; font-size:10px; padding:2px 5px; }
.hr-record-head { display:flex; align-items:center; gap:10px; padding:4px 0 10px; }
.hr-record-head h3 { margin:0; }
.hr-record-title { display:flex; align-items:center; gap:8px; }
.hr-record-head small { display:block; color:var(--muted); margin-top:3px; }
.hr-status-dot { font-size:12px; color:var(--muted); }
.hr-status-dot::before { content:""; display:inline-block; width:7px; height:7px; margin-right:5px; border-radius:50%; background:#9ca4aa; }
.hr-status-dot.active::before { background:#24835f; }
.hr-record-tabs { margin-bottom:0; }
.hr-alert { padding:7px 10px; border-left:3px solid #b92635; background:#fff0f1; color:#92212b; margin:6px 0; font-size:12px; overflow-wrap:anywhere; }
.hr-probation { border-color:#ba8300; background:#fff5d2; color:#775300; }
.hr-reminder-summary { display:grid; grid-template-columns:170px minmax(0,1fr); gap:12px; align-items:start; padding:10px 12px; margin:0 0 12px; border:1px solid #e4cf91; background:#fffaf0; }
.hr-reminder-summary > b { padding-top:7px; }
.hr-reminder-summary > div { display:flex; flex-wrap:wrap; gap:7px; }
.hr-reminder-summary button { display:flex; align-items:center; gap:8px; padding:6px 8px; border:1px solid #d9b861; background:#fff; color:inherit; border-radius:5px; text-align:left; }
.hr-reminder-summary button.danger { border-color:#d98990; background:#fff3f4; }
.hr-reminder-summary button span { font-weight:700; }
.hr-reminder-summary button small { color:var(--muted); }
.hr-year-end-summary { margin:0 0 10px; border:1px solid #e0b786; background:#fff8ef; }
.hr-year-end-summary > summary { display:flex; align-items:center; gap:10px; min-height:34px; padding:5px 10px; cursor:pointer; list-style:none; }
.hr-year-end-summary > summary::-webkit-details-marker { display:none; }
.hr-year-end-summary > summary::before { content:"▸"; color:#8b6110; font-size:12px; }
.hr-year-end-summary[open] > summary::before { content:"▾"; }
.hr-year-end-summary > summary b { margin-right:auto; }
.hr-year-end-summary > summary span { padding:2px 7px; border-radius:10px; background:#fff0bd; color:#775300; font-size:10px; }
.hr-year-end-summary > summary small { color:var(--muted); }
.hr-year-end-summary > div { display:flex; flex-wrap:wrap; gap:6px; max-height:92px; overflow:auto; padding:7px 10px 9px 30px; border-top:1px solid #ead6ad; }
.hr-year-end-summary button { display:flex; align-items:center; gap:6px; padding:4px 7px; border:1px solid #d9b861; border-radius:5px; background:#fff; color:inherit; text-align:left; }
.hr-year-end-summary button.danger { border-color:#d98990; background:#fff3f4; }
.hr-year-end-summary button span { font-weight:700; }
.hr-year-end-summary button small { color:var(--muted); }
.hr-metrics { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:7px; padding:8px 0; border-top:1px solid var(--line); }
.hr-metric { min-width:0; padding:8px 10px; border:1px solid var(--line); border-left:4px solid #24835f; border-radius:6px; background:#f2faf6; }
.hr-metric.warning { border-left-color:#ba8300; background:#fff8df; }
.hr-metric.danger { border-left-color:#b92635; background:#fff0f1; }
.hr-metric.neutral { border-left-color:#7b8794; background:#f5f7f9; }
.vacation-indicator.danger { border-left:4px solid #b92635; background:#fff0f1; }
.vacation-indicator.warning { border-left:4px solid #ba8300; background:#fff8df; }
.vacation-indicator.ok { border-left:4px solid #24835f; background:#f2faf6; }
.hr-carryover { margin:10px 0 14px; padding:12px; border:1px solid var(--line); border-radius:7px; background:#fff; }
.hr-carryover h4 { margin:0 0 8px; }
.hr-carryover form { display:flex; align-items:end; flex-wrap:wrap; gap:8px; }
.hr-carryover .field { flex:1 1 120px; margin:0; }
.hr-carryover-history { margin:8px 0 0; padding-left:20px; }
.hr-metric small, .hr-metric strong, .hr-metric span { display:block; }
.hr-metric small { color:var(--muted); font-size:10px; }
.hr-metric strong { margin-top:2px; font-size:17px; line-height:1.15; }
.hr-metric span { margin-top:2px; color:var(--muted); font-size:10px; line-height:1.25; }
.hr-section-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); border-top:1px solid var(--line); }
.hr-data { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:7px 14px; margin:8px 0 0; }
.hr-data dt { color:var(--muted); font-size:11px; margin-bottom:2px; }
.hr-data dd { margin:0; overflow-wrap:anywhere; white-space:pre-line; }
.hr-section { padding:10px 12px 12px 0; border-bottom:1px solid var(--line); }
.hr-section:nth-child(even) { padding-left:12px; border-left:1px solid var(--line); }
.hr-section h4 { margin:0; }
.hr-upload { display:flex; align-items:end; flex-wrap:wrap; gap:12px; padding:16px 0; }
.hr-upload .field { margin:0; flex:1 1 180px; }
.hr-visibility-note, .personal-document-note { padding:9px 11px; margin:0 0 12px; border-left:3px solid #d65b2b; background:#fff7f2; color:#5b514c; font-size:12px; }
.hr-signature { display:grid;grid-template-columns:minmax(400px,1.25fr) minmax(320px,1fr);gap:24px;align-items:start;width:100%; }
.hr-signature-request,.hr-signature-history { min-width:0; }
.hr-signature-history { border-left:1px solid var(--line);padding-left:20px; }
.hr-signature-history h4 { margin-top:1.33em; }
@media(max-width:1000px){.hr-signature{grid-template-columns:1fr}.hr-signature-history{border-left:0;border-top:1px solid var(--line);padding:14px 0 0}.hr-signature-history h4{margin-top:0}}
.hr-notice { padding:12px; background:#f4f6f8; color:#4e5862; line-height:1.5; }
.hr-history { list-style:none; margin:16px 0; padding:0; }
.hr-history li { border-bottom:1px solid var(--line); padding:14px 0; overflow-wrap:anywhere; }
.hr-history small { display:block; color:var(--muted); margin-top:6px; }
.hr-file-list td { overflow-wrap:anywhere; }
#employeeModal .tabs { margin-bottom:20px; }
#employeeModal .hr-edit-pane[hidden] { display:none; }
.hr-file-actions { display:flex; align-items:center; gap:8px; flex-wrap:wrap; }
.hr-file-actions .file-actions { margin:0; }
.hr-folder-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; align-items:start; }
.hr-folder { border:1px solid var(--line); background:#fff; min-width:0; }
.hr-folder-head { display:flex; align-items:center; gap:8px; padding:7px 9px; border-bottom:1px solid var(--line); background:#f7f8f9; }
.hr-folder-head h4 { margin:0; font-size:12px; }
.hr-folder-head small { color:var(--muted); }
.hr-folder-head > div { min-width:0; }
.hr-add-subfolder { margin-left:auto; white-space:nowrap; padding:3px 6px; font-size:10px; }
.hr-folder-icon { display:grid; place-items:center; width:24px; height:24px; border-radius:5px; background:#fff0e9; color:#c7471b; font-weight:700; }
.hr-folder-files { padding:2px 8px; max-height:300px; overflow:auto; }
.hr-subfolder { margin:4px 0; border:1px solid var(--line); border-radius:5px; background:#fafbfc; }
.hr-subfolder > summary { display:flex; align-items:center; justify-content:space-between; gap:6px; padding:4px 7px; cursor:pointer; font-weight:600; font-size:11px; }
.hr-subfolder > summary::marker { content:''; }
.hr-subfolder-actions { display:flex; gap:4px; margin-left:auto; }
.hr-subfolder-actions .btn { min-width:24px; min-height:22px; padding:1px 4px; font-size:13px; }
.hr-subfolder-files { padding:0 9px; background:#fff; }
.hr-document-row { display:flex; justify-content:space-between; align-items:center; gap:10px; padding:10px 0; border-bottom:1px solid var(--line); }
.hr-document-controls { display:flex; align-items:center; justify-content:flex-end; gap:6px; flex-wrap:wrap; }
.hr-document-controls select { max-width:150px; min-height:28px; padding:3px 5px; font-size:11px; }
.hr-document-row:last-child { border-bottom:0; }
.hr-document-row > div:first-child { min-width:0; }
.hr-document-row b, .hr-document-row small { display:block; overflow-wrap:anywhere; }
.hr-document-row small { color:var(--muted); margin-top:3px; }
.hr-document-row .badge { display:inline-block; margin-top:5px; font-size:10px; }
.hr-document-row .btn { padding:5px 7px; font-size:11px; }
.hr-empty { color:var(--muted); margin:6px 0; font-size:11px; }
.hr-contacts{max-width:980px}.hr-contacts-head h4,.hr-contact-list h4{margin:0 0 5px}.hr-contacts-head p{margin:0 0 16px;color:var(--muted)}
.hr-contact-form{display:grid;grid-template-columns:minmax(150px,220px) minmax(220px,1fr);gap:12px;padding:16px;border:1px solid var(--line);border-radius:10px;background:#fff}
.hr-contact-form .field{min-width:0;margin:0}.hr-contact-form .field input,.hr-contact-form .field textarea{width:100%}.hr-contact-text,.hr-contact-files,.hr-contact-submit{grid-column:1/-1}.hr-contact-text textarea{resize:vertical;min-height:105px}.hr-contact-submit{display:flex;justify-content:flex-end}
.hr-contact-list{margin-top:22px}.hr-contact-list h4 span{font-weight:normal;color:var(--muted)}.hr-contact-note{margin:10px 0;padding:15px;border:1px solid var(--line);border-radius:10px;background:#fff}.hr-contact-note-head{display:flex;justify-content:space-between;gap:12px;align-items:baseline}.hr-contact-note-head time,.hr-contact-note>small{color:var(--muted)}.hr-contact-note p{line-height:1.5;overflow-wrap:anywhere}.hr-contact-attachment{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:8px 0;border-top:1px solid var(--line);overflow-wrap:anywhere}.hr-contact-attachment>div{display:flex;gap:6px}
@media(max-width:600px){.hr-contact-form{grid-template-columns:1fr}.hr-contact-note-head,.hr-contact-attachment{align-items:flex-start;flex-direction:column}.hr-contact-submit .btn{width:100%}}
.hr-folder-dialog { width:min(420px,94vw); }
.hr-folder-dialog h2 { font-size:17px; margin-bottom:5px; }
.hr-folder-dialog .field { margin-top:14px; }
.hr-empty-state { padding:45px 24px; text-align:center; border:1px dashed var(--line); background:#fff; }
.hr-empty-state h3 { margin:0 0 6px; }
.hr-empty-state p { margin:0; color:var(--muted); }
.bem-summary { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); border:1px solid var(--line); background:#fff; }
.bem-summary > div { padding:10px 12px; border-right:1px solid var(--line); }
.bem-summary > div:last-child { border-right:0; }
.bem-summary small,.bem-summary b,.bem-summary span { display:block; }
.bem-summary small,.bem-summary span { color:var(--muted); font-size:11px; }
.bem-summary b { margin:3px 0; font-size:15px; }
.bem-privacy { display:grid; grid-template-columns:170px minmax(0,1fr); gap:12px; margin:9px 0; padding:10px 12px; border-left:4px solid #c7471b; background:#fff7f2; line-height:1.45; }
.bem-privacy span { color:#5b514c; font-size:12px; }
.bem-workspace { display:grid; grid-template-columns:240px minmax(0,1fr); min-height:520px; border:1px solid var(--line); background:#fff; }
.bem-case-list { border-right:1px solid var(--line); background:#f7f8f9; }
.bem-case-list > .bem-section-head { padding:10px; border-bottom:1px solid var(--line); }
.bem-case-list > button[data-bem-case] { display:flex; width:100%; align-items:flex-start; justify-content:space-between; gap:6px; padding:10px; border:0; border-bottom:1px solid var(--line); background:transparent; text-align:left; cursor:pointer; }
.bem-case-list > button[data-bem-case]:hover,.bem-case-list > button[aria-current="true"] { background:#fff; box-shadow:inset 3px 0 #e75b24; }
.bem-case-list button span:first-child { min-width:0; }
.bem-case-list b,.bem-case-list small { display:block; overflow-wrap:anywhere; }
.bem-case-list small { margin-top:3px; color:var(--muted); }
.bem-detail { min-width:0; padding:14px; }
.bem-detail-head,.bem-section-head,.bem-record-head { display:flex; align-items:flex-start; justify-content:space-between; gap:12px; }
.bem-detail-head { padding-bottom:12px; border-bottom:1px solid var(--line); }
.bem-detail-head h3 { display:inline; margin:0 0 0 7px; font-size:18px; }
.bem-detail-head small,.bem-section-head small,.bem-record-head small { display:block; margin-top:4px; color:var(--muted); }
.bem-facts { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); margin:0; border-bottom:1px solid var(--line); }
.bem-facts > div { padding:10px 12px 10px 0; }
.bem-facts dt { color:var(--muted); font-size:10px; text-transform:uppercase; }
.bem-facts dd { margin:3px 0 0; white-space:pre-line; overflow-wrap:anywhere; }
.bem-section { padding:14px 0; border-bottom:1px solid var(--line); }
.bem-section:last-child { border-bottom:0; }
.bem-section h4,.bem-form h4 { margin:0; }
.bem-form { padding:12px; border:1px solid var(--line); background:#fafbfc; }
.bem-inline-form { margin:10px 0; }
.bem-form-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:9px 12px; margin-top:10px; }
.bem-form-grid .field { margin:0; }
.bem-wide { grid-column:1/-1; }
.bem-form .actions { margin-top:12px; }
.bem-record-list { display:grid; gap:8px; margin-top:10px; }
.bem-record { padding:10px 12px; border:1px solid var(--line); background:#fff; }
.bem-record p { margin:7px 0; line-height:1.4; white-space:pre-line; }
.bem-record > small { display:block; padding-top:7px; border-top:1px solid var(--line); color:var(--muted); }
.bem-document-form { display:grid; grid-template-columns:180px minmax(0,1fr) auto; gap:8px; margin:10px 0; }
.bem-document-list { display:grid; gap:5px; }
.bem-document { display:flex; align-items:center; gap:7px; min-width:0; padding:7px 0; border-bottom:1px solid var(--line); }
.bem-document > div,.bem-document > span { min-width:0; margin-right:auto; overflow-wrap:anywhere; }
.bem-document b,.bem-document small { display:block; }
.bem-document small { margin-top:2px; color:var(--muted); }
.bem-consent-warning,.bem-empty { padding:16px; border:1px dashed #d5a03a; background:#fffaf0; color:#67532c; }
.bem-empty h4 { margin:0 0 5px; }
.bem-timeline { margin:10px 0 0 6px; padding-left:19px; border-left:2px solid #d9dee2; }
.bem-timeline li { padding:0 0 12px 7px; }
.bem-timeline b,.bem-timeline span,.bem-timeline small { display:block; }
.bem-timeline span,.bem-timeline small { margin-top:2px; color:var(--muted); }
.hr-template-library { padding-bottom:16px; }
.hr-template-library .hr-upload { padding-top:4px; }
.hr-template-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; }
.hr-change-list { overflow:auto; border:1px solid var(--line); background:#fff; }
.hr-change-table { width:100%; min-width:940px; border-collapse:collapse; }
.hr-change-table th { position:sticky; top:0; z-index:1; padding:9px 10px; border-bottom:1px solid var(--line); background:#f4f6f7; color:var(--muted); font-size:11px; text-align:left; text-transform:uppercase; }
.hr-change-table td { padding:10px; border-bottom:1px solid var(--line); vertical-align:top; }
.hr-change-table tbody tr:last-child td { border-bottom:0; }
.hr-change-before { color:#92212b; text-decoration:line-through; }
.hr-change-after { font-weight:700; }
.personal-workspace { border:1px solid var(--line); background:#fff; margin-bottom:16px; }
.personal-workspace-head { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:14px 16px; border-bottom:1px solid var(--line); }
.personal-workspace-head h3 { margin:0; }
.personal-workspace-head p { margin:3px 0 0; color:var(--muted); font-size:12px; }
.personal-contract-strip { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); border-bottom:1px solid var(--line); }
.personal-contract-strip > div { padding:11px 16px; border-right:1px solid var(--line); }
.personal-contract-strip > div:last-child { border-right:0; }
.personal-contract-strip small, .personal-contract-strip b { display:block; }
.personal-contract-strip small { color:var(--muted); margin-bottom:4px; }
.personal-folders { padding:12px; }
.personal-document-note { margin:12px 12px 0; }
.personal-change-panel { display:grid; grid-template-columns:220px minmax(0,1fr); gap:18px; padding:14px 16px; border-top:1px solid var(--line); }
.personal-change-panel h4 { margin:0 0 4px; }
.personal-change-panel small { color:var(--muted); }
.personal-change-row { display:grid; grid-template-columns:155px minmax(0,1fr); gap:12px; padding:5px 0; border-bottom:1px solid var(--line); }
.personal-change-row:last-child { border-bottom:0; }
.personal-change-row time { color:var(--muted); font-size:12px; }
.strauss-profile-panel { margin-top:16px; }
.strauss-section { margin:12px 0 14px; padding:14px; border:1px solid var(--line); border-radius:7px; background:#fff; }
.strauss-section-head { display:flex; align-items:flex-start; justify-content:space-between; gap:14px; margin-bottom:12px; }
.strauss-section-head h4,.strauss-profile-panel h3 { margin:0; }
.strauss-section-head p { margin:4px 0 0; color:var(--muted); font-size:12px; }
.strauss-section-controls { display:flex; align-items:flex-end; justify-content:flex-end; gap:8px; flex-wrap:wrap; }
.strauss-section-controls .field { margin:0; }
.strauss-report-actions { display:flex; gap:6px; flex-wrap:wrap; }
.strauss-year-select { min-width:105px; border:1px solid var(--line); border-radius:5px; padding:7px 28px 7px 9px; background:#fff; color:inherit; font:inherit; }
.strauss-balance { display:grid; grid-template-columns:minmax(150px,1fr) minmax(240px,1.35fr); gap:8px 18px; padding:13px 14px; border-left:5px solid #24835f; background:#f2faf6; }
.strauss-balance.warning { border-left-color:#ba8300; background:#fff8df; }
.strauss-balance.danger { border-left-color:#b92635; background:#fff0f1; }
.strauss-balance small,.strauss-balance strong { display:block; }
.strauss-balance small { color:var(--muted); }
.strauss-balance strong { margin-top:3px; font-size:22px; }
.strauss-balance-facts { display:flex; align-items:center; justify-content:flex-end; gap:22px; text-align:right; }
.strauss-balance-facts span,.strauss-balance-facts b { display:block; }
.strauss-balance-facts span { color:var(--muted); font-size:11px; }
.strauss-balance-facts b { margin-bottom:2px; color:var(--text); font-size:13px; }
.strauss-progress { grid-column:1/-1; height:7px; overflow:hidden; background:#dfe9e5; border-radius:4px; }
.strauss-progress span { display:block; height:100%; background:#24835f; border-radius:inherit; }
.strauss-balance.warning .strauss-progress span { background:#ba8300; }
.strauss-balance.danger .strauss-progress span { background:#b92635; }
.strauss-entry-form { display:grid; grid-template-columns:145px minmax(180px,1fr) 130px minmax(150px,.8fr) minmax(150px,.8fr) minmax(190px,1fr); gap:10px; align-items:end; padding:14px 0; border-bottom:1px solid var(--line); }
.strauss-entry-form .field { margin:0; }
.strauss-entry-form .actions { grid-column:1/-1; margin:0; }
.strauss-payout-field > span { display:block; margin-bottom:5px; font-size:12px; font-weight:650; }
.strauss-payout-toggle { display:flex; min-height:36px; align-items:center; gap:7px; padding:7px 9px; border:1px solid var(--line); border-radius:5px; background:#fff; cursor:pointer; font-size:12px; }
.strauss-payout-toggle input { width:16px; height:16px; margin:0; accent-color:#e85c2a; }
.strauss-form-note { grid-column:1/-1; margin:0; color:var(--muted); font-size:11px; }
.strauss-year-list { margin-top:12px; border-top:1px solid var(--line); }
.strauss-year { border-bottom:1px solid var(--line); }
.strauss-year > summary { display:flex; align-items:center; gap:12px; min-height:42px; padding:8px 2px; cursor:pointer; list-style:none; }
.strauss-year > summary::-webkit-details-marker { display:none; }
.strauss-year > summary::before { content:"▸"; color:#c7471b; }
.strauss-year[open] > summary::before { content:"▾"; }
.strauss-year > summary span { font-weight:750; }
.strauss-year > summary small { margin-left:auto; color:var(--muted); text-align:right; }
.strauss-year-body { padding:0 2px 8px 18px; }
.strauss-history-row { display:grid; grid-template-columns:minmax(170px,1fr) minmax(150px,auto) auto; align-items:center; gap:12px; padding:9px 0; border-top:1px solid #edf0f2; }
.strauss-history-row > div:first-child { min-width:0; }
.strauss-history-row time,.strauss-history-row strong { display:block; }
.strauss-history-row time { margin-bottom:2px; color:var(--muted); font-size:11px; }
.strauss-history-row strong { overflow-wrap:anywhere; }
.strauss-amount { text-align:right; }
.strauss-amount > b { display:block; white-space:nowrap; }
.strauss-payout-status { display:block; margin-top:3px; font-size:11px; white-space:nowrap; }
.strauss-payout-status.paid { color:#197341; }
.strauss-payout-status.open { color:#a15c00; }
.strauss-receipt-actions,.strauss-admin-actions { display:flex; align-items:center; justify-content:flex-end; gap:5px; flex-wrap:wrap; }
.strauss-no-receipt,.strauss-empty { color:var(--muted); font-size:11px; }
.strauss-empty { margin:8px 0; }
.strauss-current-receipt { grid-column:1/-1; display:flex; align-items:center; gap:8px; min-width:0; color:var(--muted); font-size:11px; }
.strauss-current-receipt span { overflow-wrap:anywhere; }
.signature-placement-modal { width:min(1180px,96vw); max-width:none; height:min(900px,94vh); display:flex; flex-direction:column; overflow:hidden; }
.signature-placement-head { display:flex; align-items:flex-start; justify-content:space-between; gap:16px; }
.signature-placement-head h2 { margin:0; }
.signature-placement-head p { margin:4px 0 0; color:var(--muted); }
.signature-placement-toolbar { display:flex; gap:8px; flex-wrap:wrap; padding:12px 0; border-bottom:1px solid var(--line); }
.signature-tool.employee { border-left:3px solid #e75b24; }
.signature-tool.manager { border-left:3px solid #2878b8; }
.signature-placement-workspace { min-height:0; flex:1; display:grid; grid-template-columns:minmax(0,1fr) 230px; grid-template-rows:auto minmax(0,1fr); gap:0 14px; }
.signature-page-nav { grid-column:1; display:flex; align-items:center; justify-content:center; gap:12px; padding:8px; }
.signature-page-scroll { grid-column:1; min-height:0; overflow:auto; padding:12px; background:#dfe3e7; border:1px solid #c9d0d6; }
.signature-page-stage { position:relative; margin:0 auto; background:#fff; box-shadow:0 2px 10px #0003; }
.signature-page-stage canvas { display:block; width:100%; height:100%; }
#signatureFieldLayer { position:absolute; inset:0; }
.signature-placement-help { grid-column:2; grid-row:1/3; border-left:1px solid var(--line); padding:12px 0 0 14px; overflow:auto; }
.signature-placement-help p { color:var(--muted); font-size:12px; line-height:1.5; }
.signature-placement-help ul { list-style:none; padding:0; margin:14px 0; }
.signature-placement-help li { display:flex; gap:7px; padding:7px 0; border-bottom:1px solid var(--line); font-size:12px; }
.signature-placement-help li.ready { color:#23743b; font-weight:700; }
.signature-placement-field { position:absolute; display:flex; align-items:center; justify-content:center; min-width:42px; min-height:22px; border:2px solid; background:#fff8; cursor:move; touch-action:none; user-select:none; }
.signature-placement-field.employee { border-color:#e75b24; background:#fff2ebd9; }
.signature-placement-field.manager { border-color:#2878b8; background:#eef6fcd9; }
.signature-placement-field span { padding:3px 19px 3px 5px; font-size:11px; font-weight:700; text-align:center; overflow:hidden; }
.signature-placement-field button { position:absolute; top:1px; right:1px; width:17px; height:17px; padding:0; border:0; background:#fff; color:#991f2b; cursor:pointer; line-height:1; }
.signature-placement-field i { position:absolute; right:-3px; bottom:-3px; width:12px; height:12px; border:2px solid #fff; background:currentColor; cursor:nwse-resize; }
#signaturePlacementStatus.ready, #hr-sign-placement-note.ready { color:#23743b; }
@media screen and (max-width:800px) {
  .hr-layout { grid-template-columns:1fr; }
  .hr-people { display:flex; overflow:auto; max-height:170px; }
  .hr-person { min-width:190px; }
  .hr-record-head { align-items:flex-start; flex-wrap:wrap; }
  .hr-record-head > div:first-child { flex:1 1 100%; }
  .hr-record-head .spacer { display:none; }
  .hr-record-tabs { overflow-x:auto; white-space:nowrap; }
  .hr-data, .hr-folder-grid, .hr-section-grid, .hr-template-grid { grid-template-columns:1fr; }
  .hr-metrics { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .hr-section, .hr-section:nth-child(even) { padding:14px 0; border-left:0; }
  .personal-contract-strip { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .personal-change-panel { grid-template-columns:1fr; }
  .strauss-section-head { flex-wrap:wrap; }
  .strauss-section-controls { width:100%; justify-content:flex-start; }
  .strauss-balance { grid-template-columns:1fr; }
  .strauss-balance-facts { justify-content:flex-start; text-align:left; }
  .strauss-progress { grid-column:1; }
  .strauss-entry-form { grid-template-columns:1fr 1fr; }
  .strauss-history-row { grid-template-columns:minmax(0,1fr) auto; }
  .strauss-amount { text-align:right; }
  .strauss-history-row .strauss-receipt-actions,.strauss-history-row .strauss-admin-actions { grid-column:1/-1; justify-content:flex-start; }
  .hr-reminder-summary { grid-template-columns:1fr; }
  .hr-document-row { align-items:flex-start; flex-direction:column; }
  .bem-summary,.bem-facts,.bem-form-grid { grid-template-columns:1fr; }
  .bem-summary > div { border-right:0; border-bottom:1px solid var(--line); }
  .bem-privacy,.bem-workspace { grid-template-columns:1fr; }
  .bem-case-list { border-right:0; border-bottom:1px solid var(--line); }
  .bem-detail { padding:10px; }
  .bem-section-head,.bem-detail-head { flex-wrap:wrap; }
  .bem-document-form { grid-template-columns:1fr; }
  .signature-placement-modal { width:98vw; height:96vh; }
  .signature-placement-workspace { grid-template-columns:1fr; }
  .signature-placement-help { grid-column:1; grid-row:auto; max-height:130px; border-left:0; border-top:1px solid var(--line); padding:10px 0; }
}
@media screen and (max-width:520px) {
  .strauss-entry-form { grid-template-columns:1fr; }
  .strauss-history-row { grid-template-columns:1fr; gap:5px; }
  .strauss-amount { text-align:left; }
  .strauss-payout-status { white-space:normal; }
  .strauss-year > summary { align-items:flex-start; }
}

/* Approved HR refresh. Metric severity backgrounds and calculation remain unchanged. */
.hr-toolbar{padding:8px 0 18px;gap:16px}.hr-toolbar h3{font-size:25px;margin:0 0 6px}.hr-subtitle{font-size:13px}
.hr-management-tabs{margin-bottom:20px}.hr-year-end-summary{border-radius:10px;margin-bottom:20px;padding:6px 12px}
.hr-layout{grid-template-columns:285px minmax(0,1fr);gap:22px;align-items:start}
.hr-sidebar{border:1px solid #dce4e9;border-radius:12px;background:white;overflow:hidden}
.hr-sidebar-search{padding:18px;border-bottom:1px solid #e7ecf0}.hr-sidebar-search h4{margin:0 0 14px;font-size:14px}.hr-sidebar-search #hr-search{width:100%;min-width:0}.hr-sidebar-search .hr-sort-control{margin-top:12px;display:flex;flex-wrap:wrap;gap:7px;font-size:12px}
.hr-sidebar .hr-people{border:0;max-height:calc(100vh - 340px)}
.hr-person{position:relative;padding:17px 15px 17px 62px;min-height:74px;border-bottom:1px solid #edf1f4}
.hr-person-avatar{position:absolute;left:15px;top:18px;width:35px;height:35px;display:grid;place-items:center;border-radius:50%;background:#edf3f6;color:#647d8b;font-size:12px;font-weight:700}
.hr-person[aria-current=true]{background:#fff3ed;box-shadow:inset 3px 0 #ed592a}.hr-person[aria-current=true] .hr-person-avatar{background:#fce1d4;color:#c45229}.hr-person small{font-size:11px;margin-top:6px}.hr-person-line{flex-wrap:wrap}.hr-person-line b{font-size:13px;white-space:normal}
#hr-record{background:white;border:1px solid #dce4e9;border-radius:12px;min-width:0;overflow:hidden}
.hr-record-head{padding:22px;flex-wrap:wrap;gap:10px}.hr-record-head h3{font-size:22px}.hr-record-head small{font-size:12px;margin-top:7px}
.hr-record-tabs{padding:0 22px;gap:18px;overflow-x:auto;white-space:nowrap;border-bottom:1px solid #e2e8ed}
#hr-tab-content{padding:22px}.hr-metrics{gap:12px;padding:0 0 18px;border-top:0}.hr-metric{padding:17px 14px;border-radius:9px}.hr-metric small{font-size:11px}.hr-metric strong{font-size:25px;margin:10px 0 8px}.hr-metric span{font-size:11px;line-height:1.5}
.hr-section-grid{gap:18px}.hr-section{border:1px solid #dfe6ec;border-radius:10px;padding:19px;background:white}.hr-section h4{font-size:15px;margin:0 0 18px}.hr-data>div{padding:9px 0;gap:16px}.hr-data dt{font-size:12px;color:#718592}.hr-data dd{font-size:13px;overflow-wrap:anywhere}
.hr-folder,.strauss-section,.hr-carryover{border-radius:10px}.hr-upload{gap:14px}.hr-record-head+.hr-alert{margin:0 22px 16px}
@media(max-width:1100px){.hr-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.hr-layout{grid-template-columns:245px minmax(0,1fr)}}
@media(max-width:800px){.hr-layout{grid-template-columns:1fr}.hr-sidebar .hr-people{max-height:190px}.hr-person{min-width:235px}.hr-sidebar-search{padding:14px}.hr-record-head{padding:16px}#hr-tab-content{padding:16px}.hr-record-tabs{padding:0 16px}.hr-section-grid{grid-template-columns:1fr}.hr-metric strong{font-size:22px}}
.hr-section .hr-data{display:block}.hr-section .hr-data>div{display:flex;justify-content:space-between;align-items:baseline}.hr-section .hr-data dd{text-align:right;max-width:65%}.hr-section-grid>.hr-section{min-width:0}
/* Compact HR spacing; severity colors and data remain unchanged. */
.hr-toolbar{padding:4px 0 12px;gap:12px}.hr-toolbar h3{font-size:23px;margin-bottom:4px}
.hr-management-tabs{margin-bottom:14px}.hr-year-end-summary{margin-bottom:14px;padding:4px 10px}
.hr-layout{grid-template-columns:250px minmax(0,1fr);gap:16px}
.hr-sidebar-search{padding:14px}.hr-sidebar-search h4{margin-bottom:10px}.hr-sidebar-search .hr-sort-control{margin-top:8px}
.hr-person{padding:12px 12px 12px 53px;min-height:62px}.hr-person-avatar{left:12px;top:14px;width:30px;height:30px;font-size:11px}.hr-person small{margin-top:4px}
.hr-record-head{padding:16px;gap:8px}.hr-record-head h3{font-size:20px}.hr-record-head small{margin-top:5px}.hr-record-head .btn{padding:7px 10px}
.hr-record-tabs{padding:0 16px;gap:14px}.hr-record-tabs button{padding:9px 10px}
#hr-tab-content{padding:16px}.hr-metrics{gap:9px;padding-bottom:13px}.hr-metric{padding:12px 11px}.hr-metric strong{font-size:22px;margin:6px 0 5px}
.hr-section-grid{gap:12px}.hr-section{padding:14px}.hr-section h4{font-size:14px;margin-bottom:12px}.hr-data>div{padding:6px 0;gap:12px}
.hr-record-head+.hr-alert{margin:0 16px 12px}
@media(max-width:1100px){.hr-layout{grid-template-columns:225px minmax(0,1fr)}}
@media(max-width:800px){.hr-layout{grid-template-columns:1fr}.hr-person{min-width:215px}.hr-sidebar-search{padding:12px}.hr-record-head{padding:13px}#hr-tab-content{padding:13px}.hr-record-tabs{padding:0 13px}.hr-metric strong{font-size:21px}}

/* Show more employees while retaining independent list scrolling. */
@media(min-width:801px){.hr-sidebar .hr-people{max-height:calc(100vh - 190px);max-height:calc(100dvh - 190px);min-height:420px}}

/* Employee search with an accessible clear action. */
.hr-search-box{position:relative;display:flex;align-items:center;border:1px solid #d6e1e9;border-radius:9px;background:#f7f9fb;transition:border-color .15s,box-shadow .15s}
.hr-search-box:focus-within{border-color:#ed592a;box-shadow:0 0 0 3px #ed592a18;background:#fff}
.hr-search-icon{position:absolute;left:11px;width:17px;height:17px;color:#7a8d99;pointer-events:none}
.hr-sidebar-search .hr-search-box #hr-search{border:0;background:transparent;box-shadow:none;outline:none;padding:11px 37px 11px 35px;min-width:0;width:100%;font-size:13px;border-radius:9px}
.hr-search-clear{position:absolute;right:5px;top:50%;transform:translateY(-50%);display:grid;place-items:center;width:29px;height:29px;padding:0;border:0;border-radius:6px;background:#e9eef3;color:#526a79;font-size:23px;line-height:1;cursor:pointer}
.hr-search-clear:hover{background:#ffe5d9;color:#bd4a23}.hr-search-clear:focus-visible{outline:2px solid #ed592a;outline-offset:1px}.hr-search-clear[hidden]{display:none!important}
@media(min-width:801px){.hr-sidebar .hr-people{max-height:calc(100vh + 30px);max-height:calc(100dvh + 30px);min-height:640px}}

/* Personalakten: Dokumentbereiche erst auf ausdrücklichen Klick öffnen. */
.hr-folder > summary.hr-folder-head { cursor:pointer; list-style:none; }
.hr-folder > summary.hr-folder-head::-webkit-details-marker,
.hr-subfolder > summary::-webkit-details-marker { display:none; }
.hr-folder > summary.hr-folder-head::before,
.hr-subfolder > summary::before { content:'▸'; flex:0 0 auto; color:var(--muted); }
.hr-folder[open] > summary.hr-folder-head::before,
.hr-subfolder[open] > summary::before { content:'▾'; }
.hr-folder:not([open]) > summary.hr-folder-head { border-bottom:0; }
.hr-folder > summary:focus-visible,.hr-subfolder > summary:focus-visible { outline:2px solid #f4512a; outline-offset:2px; }

.strauss-import-dialog{width:min(900px,94vw);max-height:90dvh;overflow:auto;border:1px solid #dce4e7;border-radius:14px;padding:24px;color:#17343d}.strauss-import-dialog::backdrop{background:#0007}.strauss-import-dialog input:not([type=checkbox]){display:block;width:100%;box-sizing:border-box;padding:9px;border:1px solid #dce4e7;border-radius:7px}.strauss-import-dialog label{display:block;margin:12px 0}.si-row{display:grid;grid-template-columns:minmax(0,1fr) 130px auto;gap:8px;margin:8px 0}.strauss-import-dialog pre{white-space:pre-wrap;max-height:220px;overflow:auto}.strauss-entry-form[hidden]{display:none}@media(max-width:600px){.si-row{grid-template-columns:1fr 100px}.si-row button{grid-column:1/-1}.strauss-import-dialog{padding:14px}}

/* Breitere, übersichtliche Mitarbeiterliste */
@media(min-width:1101px){.hr-layout{grid-template-columns:330px minmax(0,1fr)}}
@media(min-width:801px) and (max-width:1100px){.hr-layout{grid-template-columns:300px minmax(0,1fr)}}
.hr-sidebar .hr-person{padding:14px 14px 14px 56px;min-height:72px;text-align:left}
.hr-sidebar .hr-person-line{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:start;gap:10px}
.hr-sidebar .hr-person-line b{font-size:13px;line-height:1.45;white-space:normal;overflow-wrap:anywhere}
.hr-sidebar .hr-person-line .badge{margin-top:2px;white-space:nowrap}
.hr-sidebar .hr-person small{display:block;line-height:1.5;margin-top:4px}
.hr-sidebar .hr-person .hr-alert{padding:6px 8px;line-height:1.45;margin-top:8px;white-space:normal}
.hr-sidebar .hr-person-avatar{top:16px}
@media(max-width:800px){.hr-sidebar .hr-person{min-width:280px;max-width:330px}}

/* Compact, clearly nested template folders. */
.hr-template-library .hr-template-grid{gap:10px;align-items:start}
.hr-template-category{border-radius:9px;overflow:hidden}
.hr-template-category>summary,.hr-template-subfolder>summary{display:flex;align-items:center;gap:8px;cursor:pointer;list-style:none;font-size:12px;min-height:38px;padding:7px 10px;box-sizing:border-box;border:0}
.hr-template-category>summary::-webkit-details-marker,.hr-template-subfolder>summary::-webkit-details-marker{display:none}
.hr-template-category>summary::before,.hr-template-subfolder>summary::before{content:"";width:6px;height:6px;border-right:1.5px solid #71828c;border-bottom:1.5px solid #71828c;transform:rotate(-45deg);flex:none;transition:transform .15s}
.hr-template-category[open]>summary::before,.hr-template-subfolder[open]>summary::before{transform:rotate(45deg)}
.hr-template-category>summary:hover,.hr-template-subfolder>summary:hover{background:#fff3ed}
.hr-template-category>summary:focus-visible,.hr-template-subfolder>summary:focus-visible{outline:2px solid #f65b27;outline-offset:-2px}
.hr-template-folder-icon{color:#e85b27;font-size:22px;line-height:20px;flex:none}
.hr-template-folder-name,.hr-template-category>summary strong{min-width:0;overflow-wrap:anywhere}
.hr-template-count{margin-left:auto;white-space:nowrap;font-size:10px;font-weight:500;background:#edf1f4;color:#617481;padding:3px 7px;border-radius:12px}
.hr-template-category>.hr-folder-files{padding:8px;max-height:480px}
.hr-template-category [data-template-folder]{font-size:11px;padding:5px 8px;min-height:28px;margin-bottom:6px}
.hr-template-subfolder{margin:5px 0 5px 10px;border:1px solid #dfe6eb;border-left:3px solid #f7ab87;border-radius:7px;background:#f8fafb;overflow:hidden}
.hr-template-subfolder>summary{min-height:34px;padding:5px 8px;font-size:12px}
.hr-template-subfolder-content{background:#fff;padding:0 9px;border-top:1px solid #e8edf0}
.hr-template-library .hr-document-row{padding:8px 2px;gap:6px;flex-wrap:wrap}
.hr-template-library .hr-document-row>div:first-child{min-width:0;flex:1 1 180px;overflow-wrap:anywhere}
.hr-template-library .hr-file-actions{gap:4px}
.hr-template-library .hr-file-actions .btn,.hr-template-library .hr-file-actions select{font-size:11px;padding:4px 7px;min-height:27px;max-width:180px}
.hr-template-library .hr-empty{padding:8px 0;margin:0;font-size:11px;color:#74838d}

.hr-folder-grid .hr-template-category .hr-add-subfolder{margin-left:4px;font-size:10px;padding:4px 6px}.hr-folder-grid .hr-template-subfolder .hr-subfolder-actions{margin-left:0;flex:none}.hr-folder-grid .hr-template-category>summary{flex-wrap:wrap}.hr-folder-grid .hr-template-subfolder>summary{justify-content:flex-start}.hr-folder-grid .hr-document-row{padding:8px 2px;gap:6px}.hr-folder-grid .hr-template-subfolder-content{padding:0 9px}

.hr-editor-save{border:1px solid #dce4e8;border-radius:12px;width:min(480px,90vw);max-height:85vh;overflow:auto;padding:22px;color:#263b45}.hr-editor-save label{display:block;margin:10px 0;font-size:12px;font-weight:600}.hr-editor-save input,.hr-editor-save select{display:block;width:100%;padding:9px;margin-top:4px;border:1px solid #dce4e8;border-radius:6px;box-sizing:border-box}.hr-editor-save::backdrop,.hr-word-editor::backdrop{background:#172d4270}.hr-word-editor{border:0;border-radius:12px;width:94vw;height:90vh;max-width:1500px;padding:18px;box-sizing:border-box;color:#263b45}.hr-word-editor header,.hr-word-editor nav{display:flex;gap:8px;align-items:center;flex-wrap:wrap;margin-bottom:12px}.hr-word-editor header strong{flex:1}.hr-word-editor>p{font-size:12px;color:#60717c}.hr-word-columns{display:grid;grid-template-columns:minmax(240px,1fr) minmax(400px,2fr);height:calc(100% - 155px);gap:16px}.hr-word-columns>section{overflow:auto;background:#f3f5f7;border:1px solid #dce4e8;border-radius:8px;padding:12px}.hr-word-paragraph{padding:10px;margin:8px 0;border:1px solid #dce4e8;background:white;border-radius:6px;font:14px/1.6 sans-serif;white-space:pre-wrap}.hr-word-paragraph [contenteditable]{outline:none;min-width:8px;display:inline-block}.hr-word-paragraph [contenteditable]:focus{background:#fff1e7;outline:1px solid #f3a47f}.hr-word-columns .docx-wrapper{padding:12px}@media(max-width:800px){.hr-word-columns{grid-template-columns:1fr;height:auto}.hr-word-columns>section{max-height:65vh}}

.hr-word-editor,.hr-editor-save{font-family:system-ui,-apple-system,sans-serif}.hr-word-editor nav .btn{border-radius:6px}.hr-word-editor nav{padding-bottom:10px;border-bottom:1px solid #e3e8ed}

.hr-word-columns{display:block}.hr-word-columns>[data-preview-host]{height:100%;box-sizing:border-box}.hr-word-inline{white-space:pre-wrap;cursor:text;outline:none;min-width:2px}.hr-word-inline:hover{background:#fff4e8}.hr-word-inline:focus{background:#fff8ee;box-shadow:0 1px 0 #ef6c35}.hr-word-inline:empty::after{content:"\200b"}.hr-word-editor .docx-wrapper{padding:20px;min-height:100%;box-sizing:border-box}@media print{.hr-word-inline{background:transparent!important;box-shadow:none!important}}

/* HR search and sort stay directly above the employee list. */
.hr-people-panel { min-width:0; align-self:start; }
.hr-people-controls { display:grid; gap:9px; }
.hr-people-controls #hr-search { width:100%; min-width:0; box-sizing:border-box; padding:9px 10px; border:1px solid #d6e1e9; border-radius:7px; background:#fff; color:var(--text); font:inherit; }
.hr-people-controls .hr-sort-control { display:flex; align-items:center; justify-content:space-between; gap:8px; margin:0; }
.hr-people-controls .hr-sort-control select { width:70%; min-width:0; }
.hr-person-info { display:block; min-width:0; }
.hr-sidebar .hr-person-avatar { top:50%; transform:translateY(-50%); display:grid; place-items:center; overflow:hidden; border:1px solid #d8e3e8; background:#edf3f6; }
.hr-person-avatar svg { width:24px; height:24px; fill:#93a5ae; }
.hr-person-avatar img { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; background:#fff; }
.hr-sidebar .hr-person[aria-current=true] .hr-person-avatar { border-color:#f3c6b2; background:#fce8de; }
.hr-sidebar .hr-person[aria-current=true] .hr-person-avatar svg { fill:#c78264; }
.hr-people-empty { padding:0 14px; color:var(--muted); }
@media(max-width:800px){.hr-people-controls{padding:12px}.hr-sidebar .hr-people{max-height:190px}}

/* Compact, accessible document actions */
.hr-file-actions{gap:5px;align-items:center;flex-wrap:wrap}
button[data-hr-icon-action]{display:inline-flex;align-items:center;justify-content:center;width:34px;height:34px;padding:7px;border-radius:9px;flex:0 0 34px}
button[data-hr-icon-action] svg{pointer-events:none}
button[data-hr-icon-action]:hover{background:#fff0e9;color:#f4511e}
button[data-hr-icon-action]:focus-visible{outline:2px solid #f4511e;outline-offset:2px}
#hr-sign-counter-person{margin-bottom:8px}
