.staff-wizard{width:min(820px,100%)}
.staff-wizard .sw-progress{display:flex;gap:8px;margin:0 0 24px;padding:0;list-style:none}
.staff-wizard .sw-progress button{display:flex;flex-direction:column;align-items:center;gap:7px;flex:1;width:100%;border:0;background:transparent;color:#84949d;font:600 12px var(--ui-font);cursor:pointer}
.staff-wizard .sw-progress li{flex:1;position:relative}
.staff-wizard .sw-progress span{display:grid;place-items:center;width:30px;height:30px;border-radius:50%;background:#edf1f4}
.staff-wizard .sw-progress [aria-current=step]{color:#163c4a}
.staff-wizard .sw-progress [aria-current=step] span,.staff-wizard .sw-progress .done span{background:#0ab3a3;color:white}
.staff-wizard .sw-step[hidden],.staff-wizard [hidden]{display:none!important}
.staff-wizard .sw-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px}
.staff-wizard .sw-grid>.full,.staff-wizard .sw-section{grid-column:1/-1}
.staff-wizard .sw-section{border-top:1px solid #e7edef;padding-top:18px;margin-top:4px}
.staff-wizard h3{font:650 15px var(--ui-font);color:#183b4b;margin:0 0 12px}
.staff-wizard label{display:block;margin-bottom:7px}
.staff-wizard input,.staff-wizard select{width:100%}
.staff-wizard .sw-inline{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.staff-wizard .sw-inline label{display:flex;align-items:center;gap:8px;margin:0}
.staff-wizard input[type=checkbox],.staff-wizard input[type=radio]{width:18px;height:18px;min-height:18px;flex:none}
.staff-wizard .sw-options{display:flex;gap:10px;flex-wrap:wrap}
.staff-wizard .sw-options label{display:flex;align-items:center;gap:8px;border:1px solid #dfe8eb;border-radius:8px;padding:12px;margin:0;cursor:pointer}
.staff-wizard .sw-options label:has(input:checked){background:#e7f8f4;border-color:#0ab3a3}
.staff-wizard .sw-exception{border:1px solid #e1eaed;border-radius:9px;padding:16px;margin:12px 0;background:#fbfdfd}
.staff-wizard .sw-exception-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:14px}
.staff-wizard .sw-preview{padding:16px;border:1px solid #dce9ed;background:#f7fbfc;border-radius:9px;margin-top:16px}
.staff-wizard .sw-preview dl{display:grid;grid-template-columns:1fr auto;gap:10px;margin:14px 0 0;font-size:13px}
.staff-wizard .sw-preview dd{margin:0;text-align:right;font-variant-numeric:tabular-nums}
.staff-wizard .sw-preview .sw-answer{grid-column:1/-1;background:#e1f5ef;padding:12px;border-radius:6px;display:flex;justify-content:space-between;font-weight:700}
.staff-wizard .sw-note{font-size:12px;color:#607d89;line-height:1.5;margin:10px 0}
.staff-wizard .sw-history{border-bottom:1px solid #e6edef;padding:9px 0;font-size:12px;display:flex;justify-content:space-between;gap:10px}
.staff-wizard .sw-footer{display:flex;gap:10px;align-items:center;position:sticky;bottom:-24px;background:white;border-top:1px solid #e8eef0;margin:24px -24px -24px;padding:16px 24px;z-index:3}
.staff-wizard .sw-footer .btn{margin-left:auto;min-width:170px}
.staff-wizard .sw-permissions{max-height:300px;overflow:auto;border:1px solid #e5edef;border-radius:8px;padding:12px;margin-top:12px}
.staff-wizard .sw-permissions label{display:flex;align-items:center;gap:8px;padding:7px;font-size:12px}
.staff-wizard .sw-permissions summary{cursor:pointer;font-weight:600;padding:10px}
.staff-wizard .sw-error{color:#b3261e;margin:12px 0;line-height:1.5;font-size:13px}
@media(max-width:640px){.staff-wizard .sw-grid{grid-template-columns:1fr}.staff-wizard .sw-footer{margin:20px -16px -16px;padding:14px 16px;bottom:-16px}.staff-wizard .body{padding:20px 16px}.staff-wizard .sw-footer .btn{min-width:0;flex:1}.staff-wizard .sw-progress{gap:4px}.staff-wizard .sw-options label{padding:10px}.staff-wizard .sw-exception{padding:12px}}

.shared-pay-report{overflow-x:auto;border:1px solid #e6edef;border-radius:8px}
.shared-pay-report table{display:table;min-width:540px;width:100%;border-collapse:collapse}
.shared-pay-report thead{display:table-header-group}.shared-pay-report tbody{display:table-row-group}.shared-pay-report tfoot{display:table-footer-group}
.shared-pay-report tr,.shared-pay-report tbody tr,.shared-pay-report tfoot tr{display:table-row;background:transparent;border:0;padding:0;margin:0}
.shared-pay-report th,.shared-pay-report td,.shared-pay-report tbody td,.shared-pay-report tfoot td{display:table-cell;text-align:right;padding:12px;white-space:nowrap;border-bottom:1px solid #e6edef}
.shared-pay-report th:first-child,.shared-pay-report td:first-child{text-align:left}
.shared-pay-report td::before{display:none!important}

.staff-wizard .sw-branch-picker{padding:16px;border:1px solid #dce9ed;border-radius:9px;background:#f7fbfc}
.staff-wizard .sw-branch-picker button[aria-pressed=true]{background:#e1f5ef;border-color:#0ab3a3;color:#087e76}

.staff-wizard .sw-agreement-toolbar{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap}
.staff-agreement-date{font-weight:600;color:#087e76}
.staff-agreement-history-dialog{box-sizing:border-box;width:min(680px,calc(100% - 24px));max-height:90vh;max-height:90dvh;margin:auto;padding:0;border:1px solid #dfe8eb;border-radius:16px;background:#fff;color:#264653;font:14px/1.5 var(--ui-font,Arial,sans-serif);overflow:auto;overscroll-behavior:contain}
.staff-agreement-history-dialog::backdrop{background:rgba(13,33,42,.5)}
.staff-agreement-history-head{position:sticky;top:0;z-index:1;display:flex;justify-content:space-between;align-items:center;gap:12px;padding:20px 24px;border-bottom:1px solid #e7edef;background:#fff}
.staff-agreement-history-head h2{margin:0;font-size:21px;color:#183b4b}
.staff-agreement-history-head p{margin:4px 0 0;color:#607d89}
.staff-agreement-history-head button{flex:none}
.staff-agreement-history-body{padding:20px 24px;overflow-wrap:anywhere}
.staff-agreement-history-note,.staff-agreement-history-status{color:#607d89}
.staff-agreement-history-note{margin:0 0 18px}
.staff-agreement-history-entry{padding:16px;border:1px solid #e1eaed;border-radius:10px;margin:0 0 14px;background:#fbfdfd}
.staff-agreement-history-entry h3{margin:0 0 6px;font-size:16px;color:#183b4b}
.staff-agreement-history-entry h4{margin:16px 0 8px;font-size:14px}
.staff-agreement-history-entry p{margin:6px 0}
.staff-agreement-history-entry .staff-exception{display:grid;gap:4px;padding:10px 0;border-top:1px solid #e7edef}
.staff-agreement-history-entry .staff-exception span{color:#607d89}
.staff-agreement-revisions-heading{margin:26px 0 12px;font-size:16px}
.staff-agreement-revision{background:#fff}
@media(max-width:600px){.staff-agreement-history-head{padding:16px}.staff-agreement-history-head h2{font-size:19px}.staff-agreement-history-body{padding:16px}.staff-agreement-history-entry{padding:12px}}
