/* Shared presentation for Profile EM, MBFk and standalone service forms. */
@font-face{font-family:ProfileDesign;src:url('../Frm/Fonts/IrSans/woff2/IRANSansWeb.woff2') format('woff2');font-weight:400;font-display:swap}
@font-face{font-family:ProfileDesign;src:url('../Frm/Fonts/IrSans/woff2/IRANSansWeb_Bold.woff2') format('woff2');font-weight:700;font-display:swap}
body.profile-design{--pd-canvas:#f3f6fa;--pd-surface:#fff;--pd-soft:#f7f9fc;--pd-ink:#203650;--pd-muted:#52657d;--pd-border:#dce4ef;--pd-primary:#235eb5;--pd-hover:#194b94;--pd-focus:#96b9ec;--pd-danger:#b52e42;--pd-radius:16px;--pd-shadow:0 16px 56px #172f501c;font-family:ProfileDesign,Tahoma,sans-serif;color:var(--pd-ink);background-color:var(--pd-canvas)}
.profile-design :is(input,textarea,select,button){font-family:inherit}
.profile-design :is(.form,.formHeader,.formheader,.formfooter,.panel,.profile-service-view,.profile-tabs,.payment-brand,.payment-intro,.payment-note){box-sizing:border-box}
.profile-design :is(.pd-form,.profile-service-view){color:var(--pd-ink);font-family:ProfileDesign,Tahoma,sans-serif!important;direction:rtl}
.profile-design .pd-form{background:var(--pd-surface)!important;border:1px solid var(--pd-border)!important;border-radius:var(--pd-radius)!important;box-shadow:var(--pd-shadow)!important}
.profile-design .profile-em-tab .pd-form{border:0!important;border-radius:0!important;box-shadow:none!important}
/* Header height remains compatible with the existing grid viewport calculation. */
.profile-design .pd-form .formheader{background:var(--pd-surface)!important;background-image:none!important;border-bottom:1px solid var(--pd-border)!important;height:59px;box-shadow:none!important}
.profile-design .pd-form .formlabletext{display:block;position:static!important;padding:0 22px 0 70px!important;font-family:inherit!important;font-size:16px!important;font-weight:700!important;color:var(--pd-ink)!important;line-height:58px!important;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;text-shadow:none!important}
.profile-design .pd-form .formheader .formclose{position:absolute!important;inset:auto!important;left:16px!important;top:11px!important;width:36px!important;height:36px!important;border:1px solid var(--pd-border)!important;border-radius:10px!important;background-color:var(--pd-soft)!important;transform:none!important}
.profile-design .pd-form .formclose:hover{background-color:#e8eef8!important;border-color:#bbcde6!important}
.profile-design .pd-form .formclose:focus-visible,.profile-design [role=button]:focus-visible{outline:3px solid var(--pd-focus)!important;outline-offset:3px}
.profile-design .pd-form .formclose:before{content:''!important;position:absolute;inset:0;background:var(--pd-close-icon) center/18px no-repeat!important}
.profile-design .pd-form .formcloseglow{background:none!important;inset:0!important;width:100%!important;height:100%!important}
.profile-design .pd-form :is(.innerformcontent,.panelcontent,.panelcontentnoheader,.innerpanelcontent){background:var(--pd-surface)!important}
.profile-design .pd-form .panel{border:1px solid var(--pd-border)!important;border-radius:12px!important;box-shadow:none!important;background:var(--pd-surface)!important}
.profile-design .pd-form .panelheader{background:var(--pd-soft)!important;border-bottom:1px solid var(--pd-border)!important;box-shadow:none!important}
.profile-design .pd-form :is(.panelGridLable,.panelheaderlable){color:var(--pd-ink)!important;font-weight:700!important;font-size:12px!important;text-shadow:none!important}
/* Form controls across the two existing frameworks. */
.profile-design :is(.textBox,.select,.fTb,.fSelect,.login-input){border:1px solid var(--pd-border)!important;border-radius:10px!important;background:var(--pd-surface)!important;color:var(--pd-ink)!important;box-shadow:none;min-height:44px;padding:10px 12px;font-size:13px!important;line-height:1.7;transition:border-color .15s,box-shadow .15s}
.profile-design :is(.textBox,.select,.fTb,.fSelect,.login-input):focus{outline:0!important;border-color:var(--pd-primary)!important;box-shadow:0 0 0 3px #235eb51c!important}
.profile-design :is(.textBox,.select,.fTb,.fSelect,.login-input):is(:disabled,[readonly]){background:var(--pd-soft)!important;color:var(--pd-muted)!important;-webkit-text-fill-color:var(--pd-muted);opacity:1}
.profile-design :is(.textBox,.fTb)::placeholder{color:#68788e;opacity:1}
.profile-design :is(.textBoxLable,.selectLable,.fLbl,.fRLbl){color:var(--pd-muted)!important;font-size:12px!important;font-weight:400!important;text-align:start;line-height:1.8;text-shadow:none!important}
.profile-design .pd-required:after{content:' *';color:var(--pd-danger);font-size:13px}
.profile-design textarea:is(.textBox,.fTb){min-height:112px;line-height:2;resize:vertical}
.profile-design :is(.textBox,.fTb,.select,.fSelect)[aria-invalid=true]{border-color:var(--pd-danger)!important;box-shadow:0 0 0 3px #b52e4212!important}
.profile-design :is(input,textarea,select).error,.profile-design :is(.textBoxWrapper,.selectWrapper).error :is(input,textarea,select){border-color:var(--pd-danger)!important;background:#fff8f9!important;box-shadow:0 0 0 3px #b52e4212!important}
.profile-design :is(.textBoxWrapper,.selectWrapper).error{background-image:none!important}
.profile-design :is(input[type=checkbox],input[type=radio]){accent-color:var(--pd-primary);width:17px;height:17px;vertical-align:middle}
/* Editor-only flow: list/grid sizing remains owned by the framework. */
.profile-design .pd-editor{float:none!important;width:min(720px,calc(100vw - 32px))!important;height:auto!important;max-height:calc(100dvh - 40px)!important;margin-inline:auto!important;overflow:auto!important;scrollbar-gutter:stable;overscroll-behavior:contain}
.profile-design>.overlayblockercontainer:not(.profile-service-scope) .inneroverlayblockercontainer{display:flex;align-items:flex-start;justify-content:center;box-sizing:border-box;width:100%!important;max-width:none!important;min-height:100%;height:auto!important;padding:24px 16px!important}
.profile-design .pd-editor>.innerformcontainer{height:auto!important;min-height:0!important;overflow:visible!important;padding:0!important;float:none}
.profile-design .pd-editor>.innerformcontainer>.formcontent{position:relative!important;inset:auto!important;width:100%!important;height:auto!important;min-height:0!important;overflow:visible!important}
.profile-design .pd-editor>.innerformcontainer>.formcontent>.innerformcontent{height:auto!important;min-height:0!important;padding:20px!important;overflow:visible!important;display:flow-root}
.profile-design .pd-editor>.innerformcontainer>.formcontent>.innerformcontent>:is(.textBoxWrapper,.selectWrapper){position:relative!important;inset:auto!important;max-width:100%;height:auto!important;min-height:80px}
.profile-design .pd-editor :is(.innerTextBoxWrapper,.innerSelectWrapper){padding:6px!important}
.profile-design .pd-editor .innerformcontent>:is(.lable,.rawlable){position:relative!important;inset:auto!important;width:100%!important;height:auto!important;min-height:0;padding:10px 12px!important;margin:0 0 12px!important;line-height:2!important;color:var(--pd-muted);background:var(--pd-soft);border-radius:10px;box-sizing:border-box}
.profile-design .pd-editor .innerformcontent>.btn{position:relative!important;inset:auto!important;margin:16px 6px 0!important;max-width:calc(100% - 12px);min-width:144px}
.profile-design .pd-form .formfooter{height:auto!important;min-height:64px!important;padding:10px 16px!important;background:var(--pd-soft)!important;border-top:1px solid var(--pd-border)!important;box-shadow:none!important;overflow:visible!important}
.profile-design .pd-form .innerformfooter{height:auto!important;min-height:44px;display:flex;align-items:center;justify-content:flex-start;flex-wrap:wrap;gap:8px;overflow:visible!important}
.profile-design .pd-form:not(.pd-editor) .formfooter{height:60px!important;min-height:60px!important;padding-block:8px!important}
.profile-design .pd-form:not(.pd-editor) .innerformfooter{flex-wrap:nowrap;overflow-x:auto!important;overflow-y:hidden!important}
.profile-design .pd-form:not(.pd-editor)>.innerformcontainer:has(>.formheader)>.formcontent{height:calc(100% - 59px)!important}
.profile-design .pd-form:not(.pd-editor)>.innerformcontainer:has(>.formfooter)>.formcontent{height:calc(100% - 60px)!important}
.profile-design .pd-form:not(.pd-editor)>.innerformcontainer:has(>.formheader):has(>.formfooter)>.formcontent{height:calc(100% - 119px)!important}
.profile-design .pd-form .footerbtn{position:relative!important;inset:auto!important;flex:0 0 auto;width:44px!important;height:44px!important;border:1px solid var(--pd-border)!important;border-radius:10px!important;background-color:var(--pd-surface)!important;background-size:20px!important;cursor:pointer}
.profile-design .pd-form .footerbtn[data-pd-caption]{width:auto!important;min-width:112px;padding:0 42px 0 16px;display:flex;align-items:center;background-position:right 14px center!important;color:var(--pd-primary);font-size:13px;font-weight:700}
.profile-design .pd-form .footerbtn[data-pd-caption]:after{content:attr(data-pd-caption);white-space:nowrap}
.profile-design .pd-form .footerbtnglow{position:absolute!important;inset:0!important;width:100%!important;height:100%!important;background:none!important;border-radius:inherit}
.profile-design.profile-modern :is(.btn_universal,.btnUniversal,.btnSave,.native-service-add),.profile-design :is(.btn_universal,.btnUniversal,.btnSave,.native-service-add){background:var(--pd-primary)!important;color:#fff!important;border:1px solid var(--pd-primary)!important;border-radius:10px!important;min-height:44px;box-shadow:none!important;text-shadow:none!important}
.profile-design :is(.btn_universal,.btnUniversal,.btnSave,.native-service-add):hover{background:var(--pd-hover)!important}
.profile-design :is(.btn_universaltwo,.btnUniversalTwo){background:var(--pd-surface)!important;color:var(--pd-ink)!important;border:1px solid var(--pd-border)!important;border-radius:10px!important;min-height:44px;box-shadow:none!important;text-shadow:none!important}
.profile-design :is(.btn,.fBtn,button):focus-visible{outline:3px solid var(--pd-focus);outline-offset:3px}
.profile-design :is(.btn,.fBtn,button):disabled{opacity:.6;cursor:not-allowed;box-shadow:none!important}
/* Native MBFk forms and their shared templates. */
.profile-design .fBtn{background:var(--pd-primary)!important;color:#fff!important;border:1px solid var(--pd-primary)!important;border-radius:10px!important;min-height:44px;padding:10px 18px!important;box-shadow:none!important;text-shadow:none!important}
.profile-design .fBtn:hover{background:var(--pd-hover)!important;box-shadow:none!important}
.profile-design .fBtn.btnUniversalTwo,.profile-design.profile-modern .pd-form .native-form-actions .btnUniversalTwo{background:var(--pd-surface)!important;border-color:var(--pd-border)!important;color:var(--pd-ink)!important}
.profile-design .fBtn.honorariumdelete{background:#fff1f3!important;border-color:#efc7ce!important;color:var(--pd-danger)!important}
.profile-design.profile-modern .pd-form .formHeader{background:var(--pd-surface)!important}
.profile-design .pd-form .formHeader,.profile-design.pd-standalone #platform>.formHeader{position:relative;min-height:72px;height:auto!important;padding:18px 24px!important;background:var(--pd-surface)!important;background-image:none!important;border-bottom:1px solid var(--pd-border)!important;text-align:start;box-shadow:none!important}
.profile-design .pd-form .formHeader :is(h2,.fHeaderLbl),.profile-design.pd-standalone #platform>.formHeader>label{margin:0!important;padding:0!important;color:var(--pd-ink)!important;font:700 17px/1.9 ProfileDesign,Tahoma,sans-serif!important;text-shadow:none!important}
.profile-design .pd-form .formHeader:has(.profile-dialog-close){padding-inline-end:72px!important}
.profile-design .pd-form .formGrp{box-sizing:border-box;padding:10px 20px!important;margin:0!important;max-width:100%}
.profile-design .pd-form :is(.grpBox,.native-letter-fields){margin:0!important;padding:14px 20px!important;background:var(--pd-surface)!important;border:0!important}
.profile-design .pd-form :is(.native-form-actions,.native-letter-actions){display:flex;flex-wrap:wrap;gap:10px;justify-content:flex-start;padding:16px 24px!important;border-top:1px solid var(--pd-border);background:var(--pd-soft)!important}
.profile-design .pd-form .profile-dialog-close{inset:auto!important;left:18px!important;top:18px!important;width:36px!important;height:36px!important;border:1px solid var(--pd-border)!important;border-radius:10px!important;background-color:var(--pd-soft)!important;color:var(--pd-ink)!important}
.profile-design .pd-form .profile-dialog-close:hover{background-color:#e8eef8!important}
/* Unified grid surfaces; keep the legacy 35px row and header geometry. */
.profile-design :is(.dataGridContainer,.mbfk-modern-grid){border:1px solid var(--pd-border)!important;border-radius:12px!important;background:var(--pd-surface);box-shadow:none!important}
.profile-design :is(.dataGridheaderContainer,.columnfinder,.columnheader,.columnheadericon,.columnheadercheckbox){background:var(--pd-soft)!important;background-image:none!important;color:var(--pd-muted)!important;border-color:var(--pd-border)!important;text-shadow:none!important;box-shadow:none!important}
.profile-design .columnheadertext{color:var(--pd-muted)!important;font-family:inherit!important;font-weight:700!important;font-size:12px!important}
.profile-design :is(.gridrow,.gridrowicon,.gridrowcheckbox){background:var(--pd-surface)!important;color:var(--pd-ink)!important;border-color:#e5ebf3!important}
.profile-design :is(.gridrowalternate,.gridrowiconalternate,.gridrowcheckboxalternate){background:#f8fafd!important;color:var(--pd-ink)!important;border-color:#e5ebf3!important}
.profile-design .celltext{font-family:inherit!important;font-size:12px!important}
.profile-design :is(.gridrow,.gridrowalternate,.gridrowicon,.gridrowiconalternate):hover{background:#eaf1fc!important}
.profile-design :is(.gridnodata,.profile-grid-empty){color:var(--pd-muted)!important;font-size:13px!important;line-height:2}
.profile-design .gridbtn{border-radius:7px!important;background-size:18px!important}
.profile-design .gridbtn:hover{background-color:#e4edfb!important;box-shadow:0 0 0 3px #e4edfb!important}
/* Workspace chrome follows the same surfaces without changing navigation. */
.profile-design .native-service-header{border-bottom:1px solid var(--pd-border)!important;padding-bottom:20px!important}
.profile-design .native-service-header h1{font-size:22px!important;font-weight:700!important;color:var(--pd-ink)!important}
.profile-design .profile-service-view{background:var(--pd-surface)!important;border-radius:14px}
.profile-design .profile-tabs{border-bottom:1px solid var(--pd-border)!important;background:var(--pd-surface)!important;min-height:50px}
.profile-design .profile-tabs .profile-tab-wrapper:has([aria-selected=true]){background:#edf3fd!important;box-shadow:inset 0 -3px var(--pd-primary)!important}
.profile-design .profile-tab[aria-selected=true]{color:var(--pd-primary)!important;font-weight:700!important}
.profile-design .profile-tab-close{border-radius:8px!important}
.profile-design .feedback-dialog{border-radius:var(--pd-radius);border-color:var(--pd-border);color:var(--pd-ink);font-family:inherit}
.profile-design .feedback-dialog-footer{background:var(--pd-soft)}
/* Standalone screens share the same page card and field surfaces. */
body.profile-design.pd-standalone{height:auto!important;min-height:100vh;margin:0!important;padding:28px 20px!important;direction:rtl;background:var(--pd-canvas)!important;box-sizing:border-box;overflow:auto}
.profile-design.pd-standalone>.mainContainer{width:100%!important;max-width:1120px!important;height:auto!important;min-height:0;margin:0 auto!important;padding:0!important;position:relative!important;inset:auto!important}
.profile-design.pd-standalone #platform{background:var(--pd-surface)!important;border:1px solid var(--pd-border);border-radius:var(--pd-radius);box-shadow:var(--pd-shadow)!important;height:auto!important;min-height:calc(100dvh - 56px);overflow:visible}
.profile-design.pd-standalone #platform>.row{padding:12px 20px;box-sizing:border-box}
.profile-design.pd-standalone #platform .formGrp{padding:10px 6px!important;box-sizing:border-box}
.profile-design.pd-standalone #platform>.formHeader{border-inline-start:0!important;border-radius:16px 16px 0 0!important}
.profile-design.pd-standalone #platform .line{height:1px;margin-block:16px;border-top:1px solid var(--pd-border);border-bottom:0;box-shadow:none}
.profile-design.pd-standalone :is(#lblRecoupment,#lblHonorium){text-align:start!important;font-size:14px!important;font-weight:700!important;color:var(--pd-ink)!important;line-height:2;padding:0 8px!important}
.profile-design.pd-standalone :is(#RecoupmentContanier,#HonoriumContanier){border:1px solid var(--pd-border)!important;border-radius:12px;padding:16px;box-sizing:border-box;background:var(--pd-soft)!important}
.profile-design.pd-standalone :is(#RecoupmentContanier,#HonoriumContanier)>.line{display:none}
.profile-design.pd-standalone :is(.NumberBox,.MoneyBox,.DateBox){direction:ltr;text-align:right;font-variant-numeric:tabular-nums}
.profile-design.pd-standalone .fBtn{margin-block:6px;min-height:44px}
/* Login and bank screens retain their functional markup and adopt the same tokens. */
.profile-design.profile-login{background:var(--pd-canvas)!important}
.profile-design.profile-login .login-layout{border:1px solid var(--pd-border)!important;border-radius:20px!important;box-shadow:var(--pd-shadow)!important;background:var(--pd-surface)!important}
.profile-design.profile-login .login-submit{background:var(--pd-primary)!important;border-radius:10px!important;min-height:46px}
.profile-design.payment-ui{background:var(--pd-canvas)!important;font-family:ProfileDesign,Tahoma,sans-serif!important;color:var(--pd-ink)!important}
.profile-design.payment-ui :is(.container,#mainontainer){border:1px solid var(--pd-border)!important;border-radius:var(--pd-radius)!important;box-shadow:var(--pd-shadow)!important}
.profile-design.payment-ui :is(.payment-brand-mark,#backToDefault){background:var(--pd-primary)!important}
.profile-design.payment-ui #paymentInfo{border-color:var(--pd-border)!important;border-radius:12px!important}
.profile-design.payment-ui #paymentInfo tr:first-child :is(td,th){background:var(--pd-soft)!important;color:var(--pd-muted)!important}
.profile-design.payment-ui #paymentInfo td:last-child{color:var(--pd-ink)!important}
@media(max-width:720px){body.profile-design.pd-standalone{padding:12px!important}.profile-design.pd-standalone #platform{min-height:calc(100dvh - 24px)}.profile-design .pd-editor{max-height:calc(100dvh - 24px)!important}.profile-design .pd-editor>.innerformcontainer>.formcontent>.innerformcontent{padding:12px!important}.profile-design .pd-editor>.innerformcontainer>.formcontent>.innerformcontent>:is(.textBoxWrapper,.selectWrapper){width:100%!important;float:none!important}.profile-design .pd-form .formlabletext{font-size:14px!important;padding-inline-start:16px!important}.profile-design .pd-form .formHeader{padding:16px!important}.profile-design .pd-form :is(.grpBox,.native-letter-fields){padding:12px!important}.profile-design .pd-form .formGrp{padding:8px 12px!important}.profile-design .pd-form .formfooter{padding:10px 12px!important}.profile-design .native-service-header h1{font-size:18px!important}.profile-design :is(.textBox,.fTb,.select,.fSelect){font-size:14px!important}.profile-design .pd-form .footerbtn[data-pd-caption]{min-width:100px}}
@media(prefers-reduced-motion:reduce){.profile-design *{scroll-behavior:auto!important}.profile-design :is(.textBox,.fTb,.select,.fSelect,.btn,.fBtn){transition:none!important}}

/* Keep overlay close controls inside the header, away from its lower border. */
.profile-service-scope .formHeader{position:relative!important;}
.profile-service-scope .formHeader .profile-dialog-close{position:absolute!important;top:50%!important;left:18px!important;right:auto!important;transform:translateY(-50%)!important;width:36px!important;height:36px!important;margin:0!important;z-index:5!important;}


/* Normalize legacy and modern request headers. */
.profile-design :is(.formHeader,.formheader){position:relative!important;}
.profile-design :is(.formHeader,.formheader) :is(.profile-dialog-close,.formclose){top:50%!important;bottom:auto!important;transform:translateY(-50%)!important;margin:0!important;z-index:5!important;}


/* 3D fade-in for every overlay form, including legacy views. */
body.profile-modern>.overlayblockercontainer{perspective:1400px!important;}
body.profile-modern>.overlayblockercontainer .overlaycontainer{perspective:1400px!important;}
65%{opacity:1;transform:translate3d(0,-2px,0) scale(1.005) rotateX(0)}100%{opacity:1;transform:translate3d(0,0,0) scale(1) rotateX(0)}}
@media(prefers-reduced-motion:reduce){body.profile-modern>.overlayblockercontainer .overlaycontainer>.form{animation:none!important;opacity:1!important;transform:none!important}}

/* Fix invisible overlay: animation must reach visible final state. */
body.profile-modern>.overlayblockercontainer .overlaycontainer>.form{opacity:0;transform:translate3d(0,20px,0) scale(.96) rotateX(2deg);animation:profileFormShowVisible .42s cubic-bezier(.16,1,.3,1) .04s forwards;will-change:transform,opacity}
@keyframes profileFormShowVisible{0%{opacity:0;transform:translate3d(0,20px,0) scale(.96) rotateX(2deg)}100%{opacity:1;transform:translate3d(0,0,0) scale(1) rotateX(0)}}

