.hrm-worksheet-modal{width:min(98vw,1800px)!important;max-width:98vw!important}.hrm-worksheet-modal .modal-body{overflow:auto;max-height:76vh}.hrm-ws-controls{display:flex;align-items:end;flex-wrap:wrap;gap:12px;margin-bottom:16px}.hrm-ws-controls label{display:flex;flex-direction:column;gap:6px;min-width:180px}.hrm-ws-controls .hrm-ws-search{flex:1;min-width:260px}.hrm-ws-scroll{max-height:52vh;overflow:auto;border:1px solid var(--line,#476458);border-radius:10px}.hrm-ws-table{border-collapse:separate;border-spacing:0;width:max-content;min-width:100%}.hrm-ws-table th{position:sticky;top:0;z-index:3;min-width:135px;max-width:180px;white-space:normal;padding:12px;text-align:right;background:var(--bg,#f3f6f4)}.hrm-ws-table td{padding:7px;border-bottom:1px solid var(--line,#476458);text-align:right;white-space:nowrap}.hrm-ws-table td input{display:block;box-sizing:border-box;width:135px!important;min-width:135px!important;height:38px;border:1px solid var(--line,#476458);border-radius:6px;padding:8px;text-align:right;background:var(--surface,#142b23);color:inherit;font:inherit}.hrm-ws-table td:nth-child(2),.hrm-ws-table th:nth-child(2){text-align:left;min-width:220px}.hrm-ws-auto{background:rgba(65,150,120,.08);font-weight:600;min-width:135px}.hrm-ws-total{display:flex;gap:24px;justify-content:flex-end;flex-wrap:wrap;padding:16px 0;font-weight:600}.hrm-ws-note{font-size:13px;line-height:1.6;opacity:.8}.hrm-ws-status{min-height:24px;margin:8px 0}.hrm-ws-table tfoot td{position:sticky;bottom:0;background:var(--bg,#f3f6f4);font-weight:700;z-index:2}.hrm-ws-import{display:flex;gap:8px;flex-wrap:wrap;align-items:center;margin:12px 0}.hrm-ws-import textarea{width:100%;height:100px;box-sizing:border-box;padding:10px;font:inherit}.hrm-ws-table th:first-child,.hrm-ws-table td:first-child{position:sticky;left:0;background:var(--bg,#f3f6f4);z-index:2;min-width:80px;text-align:left}.hrm-ws-table th:first-child{z-index:4}

.hrm-ws-controls input{padding:10px 12px;min-height:40px;border:1px solid var(--line,#dfe6e2);border-radius:8px;background:var(--surface,#fff);color:inherit;box-sizing:border-box}.hrm-ws-table th{color:inherit}.hrm-ws-table tfoot td{color:inherit}

.hrm-ws-groups{display:flex;gap:8px;flex-wrap:wrap;margin:14px 0}.hrm-ws-groups .btn{padding:10px 14px}.hrm-ws-help,.hrm-ws-bulk{margin:8px 0;font-size:13px}.hrm-ws-help summary,.hrm-ws-bulk summary{cursor:pointer;color:var(--muted)}
.hrm-ws-editor .hrm-ws-table{width:100%;min-width:900px;table-layout:fixed}.hrm-ws-editor .hrm-ws-table th{min-width:0;max-width:none;font-size:10px;line-height:1.45;padding:11px 8px;overflow-wrap:anywhere}.hrm-ws-editor .hrm-ws-table td{padding:8px 6px;font-size:12px;min-width:0;white-space:normal}.hrm-ws-editor .hrm-ws-table td input{width:100%!important;min-width:0!important;max-width:100%;padding:8px 6px;font-size:12px}.hrm-ws-editor .hrm-ws-table th:first-child,.hrm-ws-editor .hrm-ws-table td:first-child{width:65px;min-width:0}.hrm-ws-editor .hrm-ws-table th:nth-child(2),.hrm-ws-editor .hrm-ws-table td:nth-child(2){width:210px;min-width:0;text-align:left}.hrm-ws-editor .hrm-ws-table th:last-child,.hrm-ws-editor .hrm-ws-table td:last-child{width:44px}.hrm-ws-editor .hrm-ws-table .hrm-ws-auto{min-width:0;white-space:nowrap}.hrm-ws-name,.hrm-ws-meta{display:block;max-width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.hrm-ws-name{font-weight:600}.hrm-ws-meta{margin-top:5px;opacity:.65;font-size:10px}.hrm-ws-editor .hrm-ws-table [data-ws-remove]{padding:5px 9px}.hrm-ws-editor .hrm-ws-scroll{max-height:48vh}.hrm-ws-editor .hrm-ws-status{font-size:12px;opacity:.8}.hrm-ws-editor .hrm-ws-total{font-size:14px;padding:18px 0}

/* Compact roster and single employee editor. Full inputs remain in memory. */
.hrm-ws-master .hrm-ws-master-detail{display:grid;grid-template-columns:minmax(360px,.9fr) minmax(480px,1.2fr);gap:18px;align-items:start}
.hrm-ws-master .hrm-ws-roster,.hrm-ws-master .hrm-ws-detail{min-width:0;border:1px solid var(--line);border-radius:12px;background:var(--surface);overflow:hidden}
.hrm-ws-master .hrm-ws-roster-head{display:grid;gap:5px;padding:15px}.hrm-ws-master .hrm-ws-roster-head small{color:var(--muted)}
.hrm-ws-master .hrm-ws-roster-columns,.hrm-ws-master .hrm-ws-person{display:grid;grid-template-columns:minmax(130px,1.7fr) repeat(3,minmax(66px,1fr));gap:9px;align-items:center;padding:13px 12px}
.hrm-ws-master .hrm-ws-roster-columns{font-size:9px;text-transform:uppercase;letter-spacing:.04em;color:var(--muted);background:var(--mint);border-block:1px solid var(--line)}
.hrm-ws-master [data-ws-roster]{max-height:420px;overflow:auto}.hrm-ws-master .hrm-ws-person{width:100%;text-align:right;border:0;border-bottom:1px solid var(--line);border-radius:0;background:transparent;color:var(--ink);font:inherit;font-size:11px;cursor:pointer;box-sizing:border-box}
.hrm-ws-master .hrm-ws-person>span:first-child{text-align:left;min-width:0}.hrm-ws-master .hrm-ws-person b{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.hrm-ws-master .hrm-ws-person small{display:block;margin-top:5px;color:var(--muted);font-size:10px}.hrm-ws-master .hrm-ws-person.is-selected{background:var(--mint);box-shadow:inset 3px 0 #36ad85}.hrm-ws-master .hrm-ws-person:hover{background:var(--mint)}.hrm-ws-master .hrm-ws-person:focus-visible{outline:2px solid #36ad85;outline-offset:-2px}
.hrm-ws-master .hrm-ws-detail{padding:16px}.hrm-ws-master .hrm-ws-person-title{display:flex;align-items:start;justify-content:space-between;gap:12px;margin-bottom:14px}.hrm-ws-master .hrm-ws-person-title h3{font-size:16px;line-height:1.5;margin:4px 0;overflow-wrap:anywhere}.hrm-ws-master .hrm-ws-person-title small{color:var(--muted);font-size:11px}
.hrm-ws-master .hrm-ws-groups{display:flex;gap:6px;flex-wrap:wrap;margin:0 0 16px!important}.hrm-ws-master .hrm-ws-groups .btn{font-size:10px;padding:8px 10px;min-height:34px}
.hrm-ws-master .hrm-ws-scroll{overflow:visible;border:0;max-height:none}.hrm-ws-master .hrm-ws-table{display:block;width:100%!important;min-width:0!important;table-layout:auto}.hrm-ws-master .hrm-ws-table :is(thead,tfoot){display:none}.hrm-ws-master .hrm-ws-table tbody{display:block}.hrm-ws-master .hrm-ws-table tbody tr{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;background:transparent!important}
.hrm-ws-master .hrm-ws-table tbody td.hrm-ws-field{display:block!important;position:static!important;left:auto!important;width:auto!important;min-width:0!important;padding:0!important;border:0!important;background:transparent!important;box-shadow:none!important;white-space:normal;text-align:left!important}
.hrm-ws-master .hrm-ws-caption{display:block;margin-bottom:6px;color:var(--muted);font-size:11px;font-weight:700;line-height:1.5}.hrm-ws-master .hrm-ws-field input[type=number]{width:100%!important;min-width:0!important;height:42px;padding:9px 11px!important;box-sizing:border-box}.hrm-ws-master .hrm-ws-field input[type=checkbox]{width:17px!important;min-width:17px!important;height:17px;vertical-align:middle;margin-right:6px}.hrm-ws-master .hrm-ws-field small{display:block;color:var(--muted);font-size:10px;line-height:1.5;margin-top:5px}.hrm-ws-master .hrm-ws-value{display:block;padding:11px;background:var(--mint);border-radius:8px;font-size:14px}.hrm-ws-master .hrm-ws-empty{padding:15px;color:var(--muted)}
@media(max-width:1100px){.hrm-ws-master .hrm-ws-master-detail{grid-template-columns:1fr}.hrm-ws-master [data-ws-roster]{max-height:240px}}@media(max-width:600px){.hrm-ws-master .hrm-ws-table tbody tr{grid-template-columns:1fr}.hrm-ws-master .hrm-ws-roster-columns,.hrm-ws-master .hrm-ws-person{grid-template-columns:minmax(110px,1.5fr) repeat(3,minmax(54px,1fr));gap:5px;font-size:9px}}
