.reg-overlay{position:fixed;inset:0;z-index:1000;background:rgba(15,28,58,.48);backdrop-filter:blur(5px);display:flex;align-items:center;justify-content:center;padding:24px;box-sizing:border-box;animation:reg-fade .16s ease-out;font-family:Inter,Arial,sans-serif;color:#142b50}
.reg-overlay *{box-sizing:border-box}.reg-dialog{width:min(1080px,100%);max-height:calc(100dvh - 48px);border:1px solid #dfe5f1;border-radius:24px;background:#fff;box-shadow:0 30px 90px #0a1b3c40;display:flex;flex-direction:column;overflow:hidden;animation:reg-enter .2s ease-out;outline:none}.reg-header{display:flex;align-items:center;gap:15px;padding:25px 28px 20px;border-bottom:1px solid #e9edf5;flex-shrink:0}.reg-header-icon{width:48px;height:48px;background:#edf1ff;color:#3044b1;display:grid;place-items:center;border-radius:15px}.reg-eyebrow{font-size:10px;font-weight:800;letter-spacing:1.6px;color:#3e52b8;margin:0 0 7px}.reg-header h2{font-size:24px;letter-spacing:-.6px;line-height:1.15;margin:0 0 6px;font-weight:750}.reg-header p:last-child{font-size:12px;line-height:1.45;color:#75839b;margin:0}.reg-close{margin-left:auto;flex-shrink:0;width:38px;height:38px;border:1px solid #e5e9f2;border-radius:12px;background:#fff;color:#526581;display:grid;place-items:center;cursor:pointer}.reg-close:hover{background:#f4f6fb;color:#293fac}.reg-identity{display:flex;align-items:center;gap:12px;padding:15px 28px;background:#fafbfe;border-bottom:1px solid #e9edf5;flex-shrink:0}.reg-avatar{width:39px;height:39px;background:#e8edff;color:#3044ad;border-radius:13px;display:grid;place-items:center;font-size:12px;font-weight:800;flex-shrink:0}.reg-identity>div{min-width:0}.reg-identity strong{display:block;font-size:13px;line-height:1.4}.reg-identity>div>span{display:block;font-size:11px;color:#7a88a0;margin-top:3px}.reg-competence{margin-left:auto;display:flex;flex-direction:column;gap:3px;font-size:10px;color:#75839b;white-space:nowrap}.reg-competence b{font-size:12px;color:#213964}.reg-form{display:flex;flex-direction:column;min-height:0;flex:1;margin:0}.reg-workarea{display:grid;grid-template-columns:minmax(0,1fr) 264px;min-height:0;flex:1;overflow-y:auto;overscroll-behavior:contain;scrollbar-gutter:stable}.reg-main{padding:22px 28px 28px;min-width:0}.reg-note{display:flex;gap:10px;align-items:flex-start;padding:12px 14px;border:1px solid #e3e9f6;background:#f8faff;border-radius:12px;color:#6d7d98;font-size:11px;line-height:1.6;margin-bottom:18px}.reg-note svg{color:#4864bb;flex-shrink:0;margin-top:2px}.reg-note strong{font-weight:650}.reg-section-nav{display:flex;gap:5px;flex-wrap:wrap;margin-bottom:22px;padding:5px;background:#f4f6fb;border-radius:12px}.reg-section-nav button{flex:1;border:0;background:transparent;border-radius:8px;padding:9px 8px;font-size:11px;font-weight:650;color:#6b7b94;cursor:pointer;transition:background .15s,color .15s}.reg-section-nav .reg-current{background:#fff;color:#2d43b2;box-shadow:0 2px 7px #2337660d}.reg-section{scroll-margin-top:20px;padding-top:5px;margin-bottom:28px}.reg-section:last-child{margin-bottom:0}.reg-section-title{display:flex;gap:11px;align-items:center;margin-bottom:18px}.reg-section-title>svg{color:#4158b1;flex-shrink:0}.reg-section-title h3{font-size:14px;margin:0 0 4px;font-weight:750}.reg-section-title p{font-size:10px;color:#8a96ab;margin:0}.reg-count{margin-left:auto;font-size:10px;color:#218561;background:#eaf8f0;padding:5px 8px;border-radius:20px;white-space:nowrap}.reg-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:15px 18px}.reg-field{display:flex;flex-direction:column;gap:7px;font-size:11px;min-width:0}.reg-field>span,.reg-label-row label{font-weight:650;color:#365074;font-size:11px}.reg-field em{font-style:normal;color:#8995ac}.reg-field input,.reg-field select,.reg-money-input input{font-family:inherit;font-size:13px;color:#182f54;min-width:0;outline:none}.reg-field input,.reg-field select{width:100%;min-height:43px;padding:10px 12px;background:#fff;border:1px solid #dce3ef;border-radius:10px;transition:border-color .15s,box-shadow .15s}.reg-field input:focus,.reg-field select:focus{border-color:#4961c9;box-shadow:0 0 0 3px #425ace12}.reg-wide{grid-column:1/-1}.reg-money-item{min-width:0;animation:reg-fade .16s ease-out}.reg-label-row{display:flex;align-items:center;gap:6px;min-height:22px;margin-bottom:5px}.reg-change-mark{font-size:8px;font-weight:700;color:#237858;background:#e7f6ee;padding:3px 5px;border-radius:5px;margin-left:auto}.reg-remove{margin-left:auto;border:0;background:transparent;color:#8d9bb0;width:23px;height:23px;display:grid;place-items:center;cursor:pointer;border-radius:6px}.reg-remove:hover{background:#fff0f0;color:#ac394a}.reg-change-mark+.reg-remove{margin-left:0}.reg-money-input{display:flex;align-items:center;border:1px solid #dce3ef;border-radius:10px;background:#fff;min-height:45px;transition:border-color .15s,box-shadow .15s;overflow:hidden}.reg-money-input:focus-within{border-color:#4961c9;box-shadow:0 0 0 3px #425ace12}.reg-money-input>span{padding-left:13px;color:#8795aa;font-size:11px;font-weight:650;user-select:none}.reg-money-input input{width:100%;border:0;background:transparent;height:43px;padding:10px 12px;text-align:right;font-variant-numeric:tabular-nums;font-weight:650;box-shadow:none!important}.reg-edited .reg-money-input{border-color:#83c7ad;background:#fcfffd}.reg-invalid{border-color:#d87880!important}.reg-field-error{font-size:10px;color:#ab3946;display:block;margin-top:5px;line-height:1.4}.reg-subheading{display:flex;align-items:center;justify-content:space-between;gap:8px;margin:22px 0 12px}.reg-subheading h4{font-size:11px;margin:0;font-weight:650;color:#73829b}.reg-text-button{background:transparent;border:0;color:#4258b3;font:600 10px inherit;cursor:pointer;padding:3px 0}.reg-add-button{display:inline-flex;gap:6px;align-items:center;margin-top:13px;background:#f5f7fd;color:#3f56b2;font-family:inherit;font-size:11px;font-weight:650;border:1px dashed #cdd7ee;border-radius:9px;padding:9px 12px;cursor:pointer}.reg-add-button:hover{background:#edf1ff;border-color:#879cd3}.reg-picker{margin-top:12px;animation:reg-fade .15s}.reg-empty,.reg-help{font-size:11px;line-height:1.55;color:#8190a7;margin:10px 0}.reg-no-discount{display:flex;flex-direction:column;justify-content:center;align-items:flex-start;gap:5px;padding:8px 12px;border:1px dashed #dee5ef;border-radius:10px}.reg-no-discount span{color:#8794a8;font-size:10px}.reg-no-discount strong{font-size:12px;color:#536785}.reg-summary{align-self:start;position:sticky;top:0;background:#f6f8fc;border-left:1px solid #e9edf5;padding:26px 22px;min-height:100%}.reg-summary-icon{width:42px;height:42px;display:grid;place-items:center;background:#e8edff;border-radius:13px;color:#3950b4;margin-bottom:18px}.reg-summary h3{font-size:16px;margin:0 0 20px;letter-spacing:-.25px}.reg-summary .reg-eyebrow{font-size:9px;letter-spacing:1.15px}.reg-remuneration{border-bottom:1px solid #dfe6f2;padding-bottom:20px}.reg-remuneration span{display:block;font-size:11px;color:#7d8ba2;margin-bottom:8px}.reg-remuneration strong{display:block;font-size:25px;letter-spacing:-.6px;font-weight:750;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}.reg-summary dl{margin:22px 0}.reg-summary dl div{display:flex;align-items:baseline;justify-content:space-between;gap:8px;margin-bottom:15px}.reg-summary dt{font-size:10px;color:#7e8ca3;line-height:1.4}.reg-summary dd{margin:0;font-size:12px;font-weight:650;white-space:nowrap;font-variant-numeric:tabular-nums}.reg-summary .reg-discounts{border-top:1px solid #e0e6f0;padding-top:16px;margin-top:17px}.reg-summary .reg-discounts dd{color:#b26b51}.reg-summary>p:not(.reg-eyebrow){font-size:10px;line-height:1.7;color:#8996ab}.reg-summary-status{display:flex;gap:8px;align-items:flex-start;border-radius:10px;background:#eaf5ef;padding:11px;color:#43846b;font-size:10px;line-height:1.5;margin-top:22px}.reg-summary-status svg{flex-shrink:0}.reg-footer{display:flex;gap:12px;align-items:center;justify-content:space-between;padding:17px 28px;border-top:1px solid #e5eaf3;background:#fff;flex-shrink:0}.reg-save-state{font-size:10px;color:#8a97ac}.reg-footer-actions{display:flex;gap:9px}.reg-secondary,.reg-primary,.reg-danger{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:42px;padding:11px 16px;border-radius:11px;font-family:inherit;font-size:11px;font-weight:700;cursor:pointer;transition:background .15s,transform .15s}.reg-secondary{background:#fff;color:#475e81;border:1px solid #dce3ef}.reg-primary{background:#2e42b1;color:#fff;border:1px solid #2e42b1;box-shadow:0 5px 12px #2c42a922}.reg-primary:hover:not(:disabled){background:#243895;transform:translateY(-1px)}.reg-danger{background:#ad3f50;color:#fff;border:1px solid #ad3f50}.reg-dialog button:disabled{opacity:.5;cursor:not-allowed}.reg-dialog button:focus-visible{outline:3px solid #8598e0;outline-offset:3px}.reg-discard{display:flex;gap:9px;align-items:center;width:100%;animation:reg-fade .15s}.reg-discard>span{margin-right:auto;line-height:1.4}.reg-discard strong{font-size:12px;color:#9f3d4c;display:block}.reg-discard small{font-size:10px;color:#8c98aa}.reg-error{font-size:12px;padding:12px 14px;color:#aa3b4e;border:1px solid #f0d7dc;background:#fff7f8;border-radius:10px;line-height:1.5}.reg-review{padding:6px 0 15px}.reg-review h3{font-size:21px;margin:10px 0;outline:none;letter-spacing:-.3px}.reg-review>p:not(.reg-eyebrow){font-size:11px;color:#8390a6;line-height:1.7}.reg-review-head,.reg-review-row{display:grid;grid-template-columns:1.05fr 1fr 1fr;gap:14px;padding:14px 0;border-bottom:1px solid #e7ecf4;font-size:12px;overflow-wrap:anywhere}.reg-review-head{font-size:9px;color:#91a0b6;text-transform:uppercase;letter-spacing:1px;margin-top:24px}.reg-review-row strong{font-size:11px;font-weight:650}.reg-review-row>span{color:#8492a7}.reg-review-row b{font-size:12px;font-weight:650;color:#277e5f}.reg-review-foot{margin-top:24px}.reg-spinner{width:13px;height:13px;border:2px solid #ffffff55;border-top-color:#fff;border-radius:50%;animation:reg-spin .7s linear infinite}
@keyframes reg-fade{from{opacity:0}to{opacity:1}}@keyframes reg-enter{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none}}@keyframes reg-spin{to{transform:rotate(360deg)}}
@media(max-width:800px){.reg-workarea{grid-template-columns:minmax(0,1fr)}.reg-summary{position:static;min-height:auto;border-left:0;border-top:1px solid #e5eaf3;margin:0 24px 24px;border-radius:14px;padding:20px}.reg-summary dl{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px 20px;margin-bottom:8px}.reg-summary dl div{margin:0}.reg-summary .reg-discounts{margin:0;padding:0;border:0}.reg-summary-icon{display:none}.reg-summary h3{margin-bottom:12px}.reg-remuneration{padding-bottom:12px}.reg-summary-status{margin-top:12px}.reg-summary dl div{flex-direction:column;gap:5px}}
@media(max-width:560px){.reg-overlay{padding:0;background:#fff;backdrop-filter:none}.reg-dialog{width:100%;height:100dvh;max-height:100dvh;border:0;border-radius:0}.reg-header{padding:19px 18px 16px;gap:10px}.reg-header-icon{width:38px;height:38px;border-radius:12px}.reg-header h2{font-size:19px}.reg-header p:last-child{font-size:10px}.reg-header .reg-eyebrow{font-size:8px;letter-spacing:1.1px}.reg-close{width:33px;height:33px}.reg-identity{padding:12px 18px;gap:10px}.reg-identity strong{font-size:11px}.reg-identity>div>span{font-size:10px}.reg-competence{font-size:9px}.reg-competence b{font-size:10px}.reg-avatar{width:33px;height:33px;font-size:10px}.reg-main{padding:17px 18px 24px}.reg-note{padding:10px;font-size:10px}.reg-fields{grid-template-columns:minmax(0,1fr);gap:13px}.reg-field input,.reg-field select,.reg-money-input input{font-size:16px}.reg-wide{grid-column:auto}.reg-section-nav{flex-wrap:nowrap;gap:2px;padding:4px}.reg-section-nav button{padding:9px 5px;font-size:10px}.reg-section-title{margin-bottom:14px}.reg-summary{margin:0 18px 18px}.reg-footer{padding:13px 18px calc(13px + env(safe-area-inset-bottom));flex-wrap:wrap;gap:8px}.reg-save-state{width:100%;font-size:9px}.reg-footer-actions{width:100%}.reg-footer-actions>button{flex:1;padding:11px 9px;font-size:10px}.reg-discard{flex-wrap:wrap}.reg-discard>span{width:100%}.reg-discard>button{flex:1;padding:10px;font-size:10px}.reg-review-head,.reg-review-row{font-size:10px;gap:9px}.reg-review-row strong,.reg-review-row b{font-size:10px}.reg-review h3{font-size:19px}}
@media(prefers-reduced-motion:reduce){.reg-overlay,.reg-overlay *{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
.reg-month-notice{display:flex;align-items:baseline;gap:12px;margin:18px 36px 0;padding:12px 16px;border:1px solid #dce5f4;border-radius:12px;background:#f5f8ff;color:#7083a3;font-size:11px;line-height:1.6}.reg-month-notice strong{color:#3a55a6;font-size:11px;white-space:nowrap}@media(max-width:560px){.reg-month-notice{margin:12px 16px 0;padding:10px 12px;flex-direction:column;gap:3px}}
/* Keep the sticky summary shorter than the scrolling grid row. */
@media(min-width:801px){.reg-summary{min-height:0;max-height:max(180px,calc(100dvh - 300px));overflow-y:auto}}
