.personnel-batch-editor,.personnel-batch-history{box-sizing:border-box;padding:0;border:0;border-radius:0;background:#fff;color:#333;font:14px "Microsoft YaHei",sans-serif;box-shadow:0 5px 30px #0003;width:min(780px,calc(100vw - 24px));max-height:calc(100vh - 32px)}
.personnel-batch-editor::backdrop,.personnel-batch-history::backdrop{background:#0006}
.personnel-batch-editor header,.personnel-batch-history header{height:50px;display:flex;align-items:center;justify-content:space-between;padding:0 20px;border-bottom:1px solid #ddd}
.personnel-batch-editor h2,.personnel-batch-history h2{font-size:16px;font-weight:400;margin:0}
.personnel-batch-editor button,.personnel-batch-history button{font:inherit;cursor:pointer;background:#fff;border:1px solid #ddd;padding:5px 18px;color:#666}
.personnel-batch-editor header button,.personnel-batch-history header button{border:0;padding:0 4px;font-size:21px;color:#999}
.personnel-batch-body{display:grid;grid-template-columns:55% 45%;height:310px;min-height:0;overflow:hidden}
.personnel-batch-body aside{border-right:1px solid #ddd;min-width:0;overflow:auto;scrollbar-gutter:stable}
.personnel-batch-search{height:30px;display:flex;align-items:center;gap:5px;padding:0 12px;border-bottom:1px solid #ddd}
.personnel-batch-search svg{width:14px;height:14px;color:#999}
.personnel-batch-search input{border:0;min-width:0;width:100%;outline:none;font:inherit}
.personnel-batch-body details{margin-left:18px}.personnel-batch-body summary{line-height:30px;cursor:pointer}.personnel-batch-body input[type=checkbox]{accent-color:#5582f3;vertical-align:middle;margin-right:5px}
.personnel-batch-body [data-node]{display:block;line-height:30px;padding-left:30px;cursor:pointer}.personnel-batch-body [data-node][hidden]{display:none}.personnel-batch-body [data-node]:has(input:checked){background:#e6efff}
.personnel-batch-body [data-fields]{overflow:auto;min-width:0;padding:16px 24px 16px 20px;scrollbar-gutter:stable}
.personnel-batch-field{display:grid;grid-template-columns:minmax(0,1fr) 30px;gap:24px;margin-bottom:22px;align-items:end}.personnel-batch-field label{display:block;font-size:13px;color:#666;min-width:0}.personnel-batch-field b{color:#e44;font-weight:400}
.personnel-batch-field input[type=text]{display:block;height:26px;width:100%;box-sizing:border-box;border:1px solid #d9d9d9;margin-top:4px;border-radius:0;font:inherit;padding:0 5px;background:white;color:#333}
.personnel-batch-field button[data-remove]{border:0;padding:3px 5px;height:26px}.personnel-batch-field svg{height:16px;width:16px}
.personnel-batch-field input[role=switch]{appearance:none;display:block;width:32px;height:16px;border-radius:12px;background:#ccc;position:relative;cursor:pointer;margin-top:5px}.personnel-batch-field input[role=switch]:before{content:"";position:absolute;left:1px;top:1px;width:14px;height:14px;border-radius:50%;background:#fff}.personnel-batch-field input[role=switch]:checked{background:#5582f3}.personnel-batch-field input[role=switch]:checked:before{left:17px}
.personnel-batch-field .directory-reference-cell{display:flex;position:relative;align-items:center}.personnel-batch-field .directory-reference-cell input{padding-right:26px}.personnel-batch-field .directory-reference-cell button{position:absolute;right:1px;bottom:1px;padding:0;width:24px;height:24px;border:0;font-size:18px;background:transparent}
.personnel-batch-field .directory-reference-cell button[title="F7"]::before,.personnel-batch-field .directory-reference-cell button[title="F7"]::after{display:none}
.personnel-batch-notes{height:72px;overflow:auto;border-top:1px solid #ddd;padding:0 10px;font-size:12px;line-height:18px;color:#222}.personnel-batch-editor [data-message]{margin:0;padding:0 10px;color:#c22;font-size:12px;max-height:46px;overflow:auto}.personnel-batch-editor [data-message]:empty{display:none}
.personnel-batch-editor footer{display:flex;justify-content:center;gap:16px;border-top:1px solid #eee;padding:10px}.personnel-batch-editor [data-submit]{background:#5582f3;color:white;border-color:#5582f3}.personnel-batch-editor :disabled{cursor:wait;opacity:.6}
.personnel-batch-history{width:min(1050px,calc(100vw - 24px))}.personnel-batch-history nav{display:flex;gap:8px;padding:12px}.personnel-batch-log-table{overflow:auto;max-height:60vh}.personnel-batch-log-table table{width:100%;border-collapse:collapse;white-space:nowrap}.personnel-batch-log-table th,.personnel-batch-log-table td{padding:8px 12px;border:1px solid #ddd;text-align:left;font-weight:400}.personnel-batch-log-table th{background:#f5f5f5}.personnel-batch-log-table p{text-align:center;color:#999;padding:50px}
.reference-batch-actions{display:flex;position:relative}.reference-batch-actions>button,.reference-batch-actions summary{border:0;padding:6px 12px;color:white;background:#5582e8;font:inherit;cursor:pointer}.reference-batch-actions summary{list-style:none;border-left:1px solid #ffffff50;padding:6px}.reference-batch-actions details>button{position:absolute;top:100%;left:0;white-space:nowrap;background:white;color:#333;border:1px solid #ddd;padding:8px 16px;box-shadow:0 2px 6px #0002;z-index:5}
@media(max-width:650px){.personnel-batch-body{grid-template-columns:48% 52%;height:50vh}.personnel-batch-field{gap:8px}.personnel-batch-body [data-fields]{padding:10px}.personnel-batch-body [data-node]{padding-left:0;font-size:12px}}
.personnel-usage-editor{width:min(480px,calc(100vw - 32px));max-height:calc(100vh - 48px);padding:0;border:1px solid #dce2e9;border-radius:3px;color:#333;font:14px Arial,"Microsoft YaHei",sans-serif;box-shadow:0 8px 30px #0003;overflow:auto}
.personnel-usage-editor::backdrop{background:#0004}
.personnel-usage-editor header{display:flex;align-items:center;justify-content:space-between;padding:12px 20px;border-bottom:1px solid #e5e8ec}
.personnel-usage-editor h2{margin:0;font-size:16px;font-weight:400}
.personnel-usage-editor header button{border:0;background:none;font-size:24px;cursor:pointer}
.personnel-usage-editor>p{margin:16px 20px}
.personnel-usage-people{max-height:220px;overflow:auto;margin:0 20px;background:#f7f9fb;padding:0 12px;scrollbar-gutter:stable}
.personnel-usage-editor [data-message]{color:#be3535;white-space:pre-wrap}
.personnel-usage-editor footer{display:flex;justify-content:center;gap:12px;border-top:1px solid #e5e8ec;padding:12px}
.personnel-usage-editor footer button{min-width:72px;height:30px;border:1px solid #ccc;background:white;border-radius:2px;cursor:pointer}
.personnel-usage-editor [data-submit]{background:#2686e8;color:#fff;border-color:#2686e8}
.personnel-usage-editor button:disabled{opacity:.55;cursor:wait}
