/* 2026-10-27 v16.4.27 - registration recovery and density. Scoped only to affected workspaces. */
#modal.employee-form-open .modal-card{width:min(1450px,calc(100vw - 26px))!important;height:min(94dvh,960px)!important;max-height:94dvh!important;}
#modal.employee-form-open .employee-form-head{padding:13px 22px!important;}
#modal.employee-form-open .employee-form-head h2{font-size:25px!important;}
#modal.employee-form-open .employee-form-head p{display:none!important;}
#modal.employee-form-open .employee-form-layout{grid-template-columns:190px minmax(0,1fr)!important;}
#modal.employee-form-open .employee-stepper{overflow-y:visible!important;display:flex;flex-direction:column;gap:7px;padding:16px 12px!important;}
#modal.employee-form-open .employee-stepper>button{min-height:49px!important;padding:8px 10px!important;font-size:12px!important;}
#modal.employee-form-open .employee-stepper .employee-privacy-note{display:none!important;}
#modal.employee-form-open .employee-form-main{padding:15px 24px 35px!important;overflow-y:auto!important;}
#modal.employee-form-open .employee-fields{gap:11px 15px!important;}
#modal.employee-form-open .employee-section-title{margin-bottom:13px!important;}
#modal.employee-form-open .employee-section-title p{display:none!important;}
#modal.employee-form-open .employee-subsection{margin-top:16px!important;}
#modal.employee-form-open .employee-subsection p{display:none!important;}
#modal.employee-form-open .employee-advanced-details{margin-top:15px;padding:0 12px 10px;border:1px solid #d4e5df;border-radius:12px;background:#fbfdfc;}
#modal.employee-form-open .employee-advanced-details summary{padding:14px 2px;font:750 12px 'DM Sans',sans-serif;color:#165f56;cursor:pointer;}
#modal.employee-form-open .employee-advanced-details[open]{padding-bottom:18px;}
#modal.employee-form-open .employee-advanced-details .employee-subsection{margin-top:10px!important;}
#modal.employee-form-open .employee-salary-primary{grid-column:1/-1;max-width:560px;}
#modal.employee-form-open .employee-salary-primary input{font-size:19px!important;font-weight:750!important;min-height:54px!important;border:2px solid #178b7b!important;background:#fff!important;}
#modal.employee-form-open .employee-salary-help:empty{display:none!important;}
#modal.employee-form-open .employee-form-foot{padding:10px 18px!important;gap:10px!important;}
#modal.employee-form-open .employee-form-foot .employee-save-draft{margin-right:auto!important;border:1px solid #77b8a9!important;background:#eef9f6!important;color:#155e54!important;}
#modal.employee-form-open .employee-form-error:not(:empty){position:sticky;bottom:0;background:#fff1ed;color:#842a20;border:1px solid #d38e7f;border-radius:10px;padding:12px!important;font:650 12px/1.5 'DM Sans',sans-serif;}
body:has(#modal.employee-form-open.open) :is(.support-live-chat,.chat-fab,.floating-help,.floating-support){display:none!important;}
body.server-authenticated #app .record-head-actions{flex:1 1 100%;justify-content:flex-start;align-items:center!important;gap:8px!important;}
body.server-authenticated #app .record-head-actions>.btn{min-height:40px;}
body.server-authenticated #app .record-more-actions{position:relative;z-index:12;}
body.server-authenticated #app .record-more-actions summary{cursor:pointer;list-style:none;border:1px solid #c7ded8;border-radius:11px;background:#fff;color:#195c52;font:750 12px 'DM Sans',sans-serif;padding:12px 17px;}
body.server-authenticated #app .record-more-actions-list{position:absolute;top:calc(100% + 7px);right:0;min-width:210px;padding:9px;display:grid;gap:8px;background:white;border:1px solid #d4e6e0;border-radius:13px;box-shadow:0 16px 32px #102b2730;}
body.server-authenticated #app .record-more-actions-list .btn{white-space:nowrap;width:100%;justify-content:flex-start;}
body.server-authenticated #app .record-savebar{z-index:5;max-width:100%;}
body.server-authenticated #app .record-page-form{padding-bottom:105px;}
@media(max-width:800px){#modal.employee-form-open .modal-card{width:100vw!important;height:100dvh!important;max-height:100dvh!important;}#modal.employee-form-open .employee-form-layout{display:flex!important;flex-direction:column!important;}#modal.employee-form-open .employee-stepper{flex-direction:row!important;overflow-x:auto!important;overflow-y:hidden!important;padding:8px!important;flex:none;}#modal.employee-form-open .employee-stepper>button{flex:0 0 145px!important;}#modal.employee-form-open .employee-form-main{flex:1;padding:12px!important;}#modal.employee-form-open .employee-salary-primary{max-width:100%;}body.server-authenticated #app .record-more-actions-list{right:auto;left:0;}}
@media(max-width:490px){#modal.employee-form-open .employee-form-foot .employee-save-draft{flex:1 0 100%;}#modal.employee-form-open .employee-form-foot{justify-content:flex-start!important;}}

@media(max-width:800px){#modal.employee-form-open .employee-stepper>button span{display:block!important;color:inherit!important;font-size:11px!important;white-space:normal!important;}#modal.employee-form-open .employee-stepper>button{grid-template-columns:26px 1fr 10px!important;min-width:155px!important;}}
/* v16.4.28 registration salary component workspace — additive, no global form overrides */
.employee-form-open .registration-pay-workspace{border:1px solid #d6e7e4;border-radius:16px;padding:18px 20px;margin:14px 0 20px;background:#fff}
.employee-form-open .registration-pay-heading{display:flex;flex-direction:column;gap:4px;margin-bottom:15px}
.employee-form-open .registration-pay-heading strong{font-family:inherit;font-size:1.12rem;font-weight:760;color:#17302e}
.employee-form-open .registration-pay-heading small,.employee-form-open .registration-pay-note{color:#526e70;font-size:.84rem;line-height:1.5}
.employee-form-open .registration-pay-mode{display:flex;flex-direction:column;gap:6px;max-width:450px;font-weight:650;margin-bottom:10px;color:#193b38}
.employee-form-open .registration-pay-mode select{min-height:46px;border-radius:9px;border:1px solid #d2dfe0;padding:10px 12px;background:white}
.employee-form-open .registration-pay-workspace h4{font-family:inherit;font-size:.95rem;color:#133f3c;margin:18px 0 9px}
.employee-form-open .registration-pay-items{display:grid;gap:6px}
.employee-form-open .registration-pay-row{display:grid;grid-template-columns:minmax(190px,1fr) minmax(140px,210px);gap:10px;align-items:end;border:1px solid #dfeae9;border-radius:10px;background:#f7fbfa;padding:10px 12px}
.employee-form-open .registration-pay-row:has([data-pay-consent]){grid-template-columns:minmax(180px,1fr) minmax(120px,180px) minmax(190px,1fr)}
.employee-form-open .registration-pay-row label{display:flex;flex-direction:column;gap:5px;font-family:inherit;font-size:.78rem;color:#405c5a;font-weight:620}
.employee-form-open .registration-pay-row .registration-pay-choice{display:flex;flex-direction:row;align-items:center;font-size:.9rem;color:#153c39;gap:9px;min-height:43px}
.employee-form-open .registration-pay-row input[type=checkbox]{width:18px;height:18px;accent-color:#008776;flex:none}
.employee-form-open .registration-pay-row input[type=number],.employee-form-open .registration-pay-row input[type=text]{width:100%;padding:10px;min-height:42px;border:1px solid #d0e0df;border-radius:8px;background:#fff;color:#163b39;font:inherit;font-weight:500}
.employee-form-open .registration-pay-row input:disabled{background:#f2f6f5;opacity:.72}
.employee-form-open .registration-pay-controls{margin:15px 0 5px;align-items:end}
.employee-form-open .registration-pay-total{background:#e5f6f1;border:1px solid #a9dcd1;padding:13px 16px;border-radius:10px;display:flex;justify-content:space-between;align-items:center;gap:12px;color:#12594f;margin-top:14px}
.employee-form-open .registration-pay-total strong{font-variant-numeric:tabular-nums;font-size:1.3rem;white-space:nowrap}
.employee-form-open .registration-statutory-control{padding:18px;border:1px solid #d9e7e5;border-radius:12px;background:#f8fbfa;margin:12px 0}
.employee-form-open .registration-statutory-control h4{margin:0 0 6px;font-family:inherit;font-size:1rem}
.employee-form-open .registration-statutory-control p{color:#526b69;line-height:1.5;font-size:.85rem;margin:0 0 10px}
.employee-form-open .registration-statutory-badges{display:flex;flex-wrap:wrap;gap:7px;margin-bottom:14px}
.employee-form-open .registration-statutory-badges span{border:1px solid #b9ded7;background:#e9f7f4;padding:6px 10px;border-radius:20px;font-size:.78rem;font-weight:650;color:#18584f}
.employee-form-open .registration-statutory-control>label:last-child{display:flex;flex-direction:column;margin-top:10px;max-width:550px;gap:6px}
.employee-form-open .registration-statutory-control>label:last-child input{min-height:42px;border-radius:9px;border:1px solid #d2e0de;padding:10px}
@media(max-width:1000px){.employee-form-open .registration-pay-row,.employee-form-open .registration-pay-row:has([data-pay-consent]){grid-template-columns:minmax(0,1fr) minmax(0,1fr)}.employee-form-open .registration-pay-choice{grid-column:1/-1}}
@media(max-width:590px){.employee-form-open .registration-pay-workspace{padding:12px}.employee-form-open .registration-pay-row,.employee-form-open .registration-pay-row:has([data-pay-consent]){grid-template-columns:minmax(0,1fr)}.employee-form-open .registration-pay-choice{grid-column:auto}.employee-form-open .registration-pay-total{align-items:flex-start;flex-direction:column}}

/* Final acceptance density pass: allowances stay compact and close to basic salary. */
@media(min-width:1120px){
.employee-form-open .registration-pay-items.allowance-list{grid-template-columns:repeat(2,minmax(0,1fr));column-gap:8px}
.employee-form-open .registration-pay-items.allowance-list .registration-pay-row{grid-template-columns:minmax(130px,1fr) minmax(120px,165px)}
}
.employee-form-open .registration-pay-row{padding:6px 9px;gap:7px}
.employee-form-open .registration-pay-row label{gap:3px;font-size:.73rem}
.employee-form-open .registration-pay-row .registration-pay-choice{min-height:36px;font-size:.86rem}
.employee-form-open .registration-pay-row input[type=number],.employee-form-open .registration-pay-row input[type=text]{min-height:36px;padding:7px 9px;font-size:.85rem}
.employee-form-open .registration-pay-workspace h4{margin:13px 0 7px}

/* v16.4.29: user-requested on-demand recurring component pickers */
.employee-form-open .registration-pay-add-head{display:flex;gap:16px;align-items:end;justify-content:space-between;flex-wrap:wrap;margin:10px 0 6px}
.employee-form-open .registration-pay-add-head h4{margin:0}
.employee-form-open .registration-pay-add-controls{display:flex;align-items:end;gap:8px;flex-wrap:wrap}
.employee-form-open .registration-pay-add-controls label{display:flex;flex-direction:column;gap:4px;color:#345e59;font-size:.76rem;font-weight:650}
.employee-form-open .registration-pay-add-controls select{min-height:38px;min-width:185px;max-width:260px;padding:6px 9px;border:1px solid #b7d5d1;border-radius:8px;background:white}
.employee-form-open .registration-pay-add-controls .registration-pay-add{background:#e9f8f3!important;color:#086a5f!important;border:1px solid #64b4a4!important;font-weight:750;min-height:38px}
.employee-form-open .registration-pay-add-controls button:disabled{opacity:.45!important;cursor:not-allowed}
.employee-form-open .registration-pay-empty{color:#627a76;font-size:.83rem;margin:7px 0 12px}
.employee-form-open .registration-pay-empty[hidden]{display:none}
.employee-form-open .registration-pay-items.allowance-list{grid-template-columns:1fr}
.employee-form-open .registration-pay-row,.employee-form-open .registration-pay-items.allowance-list .registration-pay-row{grid-template-columns:minmax(160px,1fr) minmax(125px,180px) auto;align-items:center;padding:8px 11px}
.employee-form-open .registration-pay-row:has([data-pay-consent]){grid-template-columns:minmax(150px,1fr) minmax(125px,175px) minmax(180px,1fr) auto}
.employee-form-open .registration-pay-item-name{font-size:.86rem;color:#183c38}
.employee-form-open .registration-pay-remove{border:1px solid #d6b6ac;border-radius:8px;padding:9px;background:#fff;color:#994c3e;cursor:pointer;font-weight:700;font-size:.8rem}
.employee-form-open .registration-statutory-checks{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;margin:12px 0}
.employee-form-open .registration-statutory-item{display:flex;align-items:flex-start;gap:9px;border:1px solid #d0e2df;border-radius:10px;background:white;padding:11px;font-weight:750;font-size:.85rem;color:#174a44}
.employee-form-open .registration-statutory-item input{margin:3px 0 0;width:17px;height:17px;accent-color:#078679}
.employee-form-open .registration-statutory-item small{display:block;color:#607e79;font-weight:500;margin-top:3px;font-size:.72rem}
.employee-form-open .registration-statutory-warning{background:#fff2d8;border:1px solid #dbb36c;color:#624317;padding:10px;border-radius:9px}
@media(max-width:850px){.employee-form-open .registration-pay-row,.employee-form-open .registration-pay-items.allowance-list .registration-pay-row,.employee-form-open .registration-pay-row:has([data-pay-consent]){grid-template-columns:minmax(0,1fr) auto}.employee-form-open .registration-pay-row>label{grid-column:1/-1}.employee-form-open .registration-pay-remove{grid-column:2;grid-row:1}.employee-form-open .registration-statutory-checks{grid-template-columns:1fr}}
.employee-form-open .registration-pay-row>*{min-width:0;box-sizing:border-box}
.employee-form-open .registration-pay-row label input{box-sizing:border-box;max-width:100%}
.employee-form-open .registration-pay-row .registration-pay-remove{min-width:70px;white-space:nowrap;align-self:center}

/* v16.4.30 presets: no extra form for unchecked deductions */
.employee-form-open .registration-pay-row[hidden],.employee-form-open .registration-pay-row label[hidden],.employee-form-open .registration-pay-custom[hidden]{display:none!important}
.employee-form-open .registration-pay-row.registration-deduction-preset{grid-template-columns:minmax(200px,1fr) minmax(155px,210px) minmax(155px,1fr);min-height:47px}
.employee-form-open .registration-deduction-preset:not(:has([data-pay-select]:checked)){display:flex!important;align-items:center;padding:9px 12px;background:#fff}
.employee-form-open .registration-pay-custom{display:flex;align-items:end;gap:9px;flex-wrap:wrap;margin:8px 0}
.employee-form-open .registration-pay-custom label{display:flex;flex-direction:column;gap:5px;min-width:min(100%,250px)}
.employee-form-open .registration-pay-custom input{min-height:40px;border:1px solid #bdd8d4;border-radius:8px;padding:8px}
.employee-form-open .registration-pay-choice{display:flex!important;align-items:center;gap:9px;cursor:pointer}
.employee-form-open .registration-pay-row input[type=checkbox]{appearance:auto!important}
.employee-form-open .registration-statutory-warning[hidden]{display:none!important}
@media(max-width:800px){.employee-form-open .registration-pay-row.registration-deduction-preset{grid-template-columns:minmax(0,1fr) auto}.employee-form-open .registration-pay-row.registration-deduction-preset>label:not(.registration-pay-choice){grid-column:1/-1}}
/* v16.4.30 compact two-column preset checklist, chosen item expands for amount */
@media(min-width:1050px){
 .employee-form-open .registration-pay-items.deduction-list{grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}
 .employee-form-open .registration-pay-items.deduction-list .registration-deduction-preset:has([data-pay-select]:checked){grid-column:1/-1}
 .employee-form-open .registration-pay-items.deduction-list .registration-pay-row:has([data-pay-remove]){grid-column:1/-1;grid-template-columns:minmax(160px,1fr) minmax(125px,175px) minmax(180px,1fr) auto}
}
.employee-form-open .registration-pay-items.deduction-list .registration-deduction-preset:not(:has([data-pay-select]:checked)){min-height:45px}
.employee-form-open .registration-pay-row:has([data-pay-remove]) .registration-pay-remove{align-self:center}

/* v16.4.32 approved recurring allowance presets: always visible, no dropdown. */
.employee-form-open .registration-pay-items.allowance-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}
.employee-form-open .registration-pay-items.allowance-list .registration-allowance-preset{grid-template-columns:minmax(0,1fr);min-height:44px;padding:9px 11px}
.employee-form-open .registration-pay-items.allowance-list .registration-allowance-preset:has([data-pay-select]:checked){grid-column:1/-1;grid-template-columns:minmax(220px,1fr) minmax(160px,230px)}
.employee-form-open .registration-pay-items.allowance-list .registration-custom-pay-row:has([data-pay-select]:checked){grid-template-columns:minmax(200px,1fr) minmax(140px,200px) auto}
.employee-form-open .registration-pay-row .registration-pay-label{display:block;min-width:0;flex:1}
.employee-form-open .registration-pay-row [data-pay-custom-name]{width:100%;min-width:120px;background:#fff;border:1px solid #c8dad7;border-radius:7px;padding:8px;font-size:.86rem}
.employee-form-open .registration-pay-row label[hidden]{display:none!important}
.employee-form-open .registration-pay-items.allowance-list .registration-allowance-preset:not(:has([data-pay-select]:checked)) .registration-pay-amount{display:none!important}
.employee-form-open .registration-pay-items.allowance-list .registration-allowance-preset:has([data-pay-select]:checked) .registration-pay-amount{display:flex;min-width:0}
.employee-form-open .registration-pay-items.allowance-list .registration-pay-row .registration-pay-choice{grid-column:auto;min-width:0}
.employee-form-open .registration-pay-add-controls{margin-top:9px}
.employee-form-open .registration-pay-add-controls .registration-pay-add{width:auto;min-width:178px}
@media(max-width:840px){.employee-form-open .registration-pay-items.allowance-list{grid-template-columns:1fr}.employee-form-open .registration-pay-items.allowance-list .registration-allowance-preset:has([data-pay-select]:checked),.employee-form-open .registration-pay-items.allowance-list .registration-custom-pay-row:has([data-pay-select]:checked){grid-template-columns:minmax(0,1fr)}.employee-form-open .registration-pay-items.allowance-list .registration-custom-pay-row .registration-pay-remove{grid-column:auto;grid-row:auto;justify-self:end}}
/* Profile status and actions stay compact; editing actions never overlay record fields. */
.record-page-head{padding:16px 20px!important;gap:10px!important}
.record-page-head .record-title h1{font-size:clamp(18px,1.5vw,24px)!important;line-height:1.14!important}
.record-page-head .record-head-actions{gap:6px!important}
.record-page-head .record-head-actions .btn{font-size:11px!important;padding:9px 11px!important}
#employeeRecordForm:not(.editing) .record-savebar,#employeeRecordForm .record-savebar[hidden]{display:none!important}
#employeeRecordForm.editing .record-savebar{position:sticky!important;bottom:8px!important;max-width:100%!important}
