:root{--ehp-orange:#f58220;--ehp-orange-dark:#d9690c;--ehp-ink:#202124;--ehp-muted:#6f747b;--ehp-line:#ece8e3;--ehp-soft:#fff8f2}
.ehp-header-account,.ehp-auth-modal{font-family:IRANYekanX,"IRANYekan X","IranYekanX",Tahoma,Arial,sans-serif}
.ehp-header-account{position:relative;display:inline-flex;align-items:center;z-index:1002}
.ehp-header-login{height:44px;border:1px solid #e8e3de;background:#fff;border-radius:12px;padding:0 16px;display:inline-flex;align-items:center;gap:8px;color:var(--ehp-ink);font:600 13px/1.2 inherit;cursor:pointer;transition:.2s ease;white-space:nowrap;box-shadow:0 3px 12px rgba(38,33,27,.04)}
.ehp-header-login:hover{border-color:#f6b77f;background:#fffaf6;transform:translateY(-1px);box-shadow:0 8px 22px rgba(245,130,32,.10)}
.ehp-header-login b{color:#c8c4bf;font-weight:400}.ehp-header-login__icon{width:25px;height:25px;border-radius:8px;background:#fff0e3;color:var(--ehp-orange);display:grid;place-items:center;font-weight:800}
.ehp-header-userbtn{border:0;background:transparent;display:flex;align-items:center;gap:9px;padding:5px 7px;border-radius:13px;cursor:pointer;font-family:inherit;transition:.2s ease}
.ehp-header-userbtn:hover,.ehp-header-account--user.is-open .ehp-header-userbtn{background:#fff7f0}
.ehp-header-avatar{width:42px;height:42px;border-radius:12px;overflow:hidden;box-shadow:0 0 0 2px #fff,0 0 0 3px #f3d0b1;background:#f7f2ed;display:grid;place-items:center;flex:0 0 auto}
.ehp-header-avatar-img{width:100%!important;height:100%!important;object-fit:cover;border-radius:inherit!important;margin:0!important}
.ehp-header-usercopy{display:flex;flex-direction:column;text-align:right;min-width:78px}.ehp-header-usercopy strong{font-size:12px;max-width:120px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#252525}.ehp-header-usercopy small{font-size:10px;color:var(--ehp-orange);margin-top:2px}.ehp-header-chevron{font-size:16px;color:#888;transition:.2s}.ehp-header-account--user.is-open .ehp-header-chevron{transform:rotate(180deg)}
.ehp-header-dropdown{position:absolute;left:0;top:calc(100% + 12px);width:245px;background:#fff;border:1px solid #eee7e0;border-radius:18px;box-shadow:0 20px 55px rgba(36,30,23,.14);padding:9px;opacity:0;visibility:hidden;transform:translateY(-7px);transition:.18s ease;z-index:1005}.ehp-header-account--user.is-open .ehp-header-dropdown{opacity:1;visibility:visible;transform:none}
.ehp-header-dropdown:before{content:"";position:absolute;left:25px;top:-6px;width:11px;height:11px;background:#fff;border-left:1px solid #eee7e0;border-top:1px solid #eee7e0;transform:rotate(45deg)}
.ehp-header-dropdown__head{display:flex;gap:10px;align-items:center;padding:9px 9px 12px;border-bottom:1px solid #f0ece8;margin-bottom:5px}.ehp-header-dropdown__head>span{width:39px;height:39px;border-radius:11px;overflow:hidden;display:block}.ehp-header-dropdown__head div{display:flex;flex-direction:column;min-width:0}.ehp-header-dropdown__head strong{font-size:12px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ehp-header-dropdown__head small{font-size:10px;color:var(--ehp-orange);margin-top:2px}
.ehp-header-dropdown>a{display:flex;align-items:center;gap:10px;text-decoration:none!important;color:#343434!important;border-radius:10px;padding:9px 10px;font-size:11.5px;transition:.15s}.ehp-header-dropdown>a span{width:22px;text-align:center;color:#a16b3d;font-size:14px}.ehp-header-dropdown>a:hover{background:#fff7f0;color:#c35f0a!important}.ehp-header-dropdown>a.ehp-header-logout{border-top:1px solid #f0ece8;margin-top:5px;padding-top:10px;color:#b6422f!important}
.ehp-auth-modal{position:fixed;inset:0;z-index:999999;display:none}.ehp-auth-modal.is-open{display:block}.ehp-auth-backdrop{position:absolute;inset:0;background:rgba(25,22,19,.58);backdrop-filter:blur(5px)}
.ehp-auth-dialog{position:relative;width:min(540px,calc(100vw - 28px));max-height:calc(100vh - 34px);overflow:auto;margin:17px auto;background:#fff;border-radius:24px;padding:28px 30px 22px;box-shadow:0 30px 100px rgba(0,0,0,.28);animation:ehpAuthIn .22s ease both}
@keyframes ehpAuthIn{from{opacity:0;transform:translateY(14px) scale(.985)}to{opacity:1;transform:none}}
.ehp-auth-close{position:absolute;left:17px;top:15px;width:35px;height:35px;border:1px solid #eee7e1;border-radius:10px;background:#fff;color:#777;font-size:24px;line-height:1;cursor:pointer}.ehp-auth-close:hover{background:#fff6ee;color:var(--ehp-orange)}
.ehp-auth-brandline{display:flex;align-items:center;gap:8px;color:#4e4a46;font-size:12px;margin-bottom:20px}.ehp-auth-brandline span{width:24px;height:6px;border-radius:99px;background:var(--ehp-orange)}.ehp-auth-brandline b{font-weight:800}
.ehp-auth-head{text-align:right;padding-left:35px}.ehp-auth-kicker{font-size:11px;color:var(--ehp-orange);font-weight:700}.ehp-auth-head h2{font-family:inherit!important;font-size:21px!important;line-height:1.55!important;margin:5px 0 6px!important;color:#202020!important;font-weight:800!important}.ehp-auth-head p{font-size:12px;color:#777;margin:0 0 17px}
.ehp-auth-role-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px}.ehp-auth-role{position:relative;border:1px solid #e9e3dd;background:#fff;border-radius:16px;padding:13px;display:flex;align-items:center;gap:10px;text-align:right;cursor:pointer;font-family:inherit;transition:.18s}.ehp-auth-role:hover{border-color:#f4bb89;background:#fffaf6}.ehp-auth-role.is-selected{border-color:var(--ehp-orange);background:#fff7f0;box-shadow:0 0 0 3px rgba(245,130,32,.09)}.ehp-auth-role-icon{width:40px;height:40px;border-radius:12px;display:grid;place-items:center;background:#f7f4f0;color:#75675a;font-size:15px;font-weight:900;flex:0 0 auto}.ehp-auth-role.is-selected .ehp-auth-role-icon{background:var(--ehp-orange);color:#fff}.ehp-auth-role>span:nth-child(2){display:flex;flex-direction:column}.ehp-auth-role strong{font-size:13px;color:#292929}.ehp-auth-role small{font-size:10px;color:#85817c;margin-top:4px;line-height:1.5}.ehp-auth-role i{position:absolute;left:10px;top:9px;width:19px;height:19px;border-radius:50%;background:var(--ehp-orange);color:#fff;font-style:normal;font-size:11px;display:none;place-items:center}.ehp-auth-role.is-selected i{display:grid}
.ehp-auth-hint{font-size:10.5px;color:#8a7462;background:#fff9f4;border:1px dashed #f1c7a2;border-radius:11px;padding:9px 11px;margin:12px 0}.ehp-auth-digits{position:relative;opacity:.44;pointer-events:none;filter:grayscale(.1);transition:.2s}.ehp-auth-modal.has-role .ehp-auth-digits{opacity:1;pointer-events:auto;filter:none}.ehp-auth-modal.has-role .ehp-auth-hint{color:#4e6d54;background:#f5faf5;border-color:#cae4cf}
.ehp-auth-digits .dig-content,.ehp-auth-digits .dig_maindiv,.ehp-auth-digits .dig-box,.ehp-auth-digits .digits-form_container{max-width:none!important;width:100%!important;box-shadow:none!important;margin:0!important;background:transparent!important}.ehp-auth-digits input,.ehp-auth-digits select{font-family:inherit!important}.ehp-auth-digits button,.ehp-auth-digits .dig_login_btn,.ehp-auth-digits input[type=submit]{font-family:inherit!important;border-radius:11px!important}.ehp-auth-foot{text-align:center;color:#9a948e;font-size:9.5px;border-top:1px solid #f0ece8;margin-top:11px;padding-top:11px}.ehp-auth-unavailable{padding:18px;border-radius:12px;background:#fff4f1;color:#a54233;font-size:12px}
body.ehp-auth-lock{overflow:hidden!important}
@media(max-width:767px){.ehp-header-usercopy{display:none}.ehp-header-userbtn{padding:4px}.ehp-header-avatar{width:38px;height:38px;border-radius:11px}.ehp-header-dropdown{left:-5px;width:230px}.ehp-header-login{height:40px;padding:0 11px;font-size:11px;border-radius:10px}.ehp-header-login__icon{display:none}.ehp-auth-dialog{padding:23px 18px 18px;border-radius:20px;margin:12px auto;max-height:calc(100vh - 24px)}.ehp-auth-role-grid{grid-template-columns:1fr}.ehp-auth-head h2{font-size:18px!important}.ehp-auth-role{padding:11px}}

/* eHesab default avatar */
.ehp-default-logo-avatar{object-fit:contain!important;background:#fff8f1!important;padding:13%!important;box-sizing:border-box!important}
.ehp-default-logo-mark{display:grid!important;place-items:center!important;color:#f58220!important;font-weight:900!important;font-size:1.15em!important}

/* Keep the eHesab default profile mark orange inside the header. */
.ehp-header-account img.ehp-default-logo-avatar{filter:none!important;}

/* v0.4.7: cache-safe dynamic header account */
.ehp-header-account-mount{display:inline-flex;align-items:center;min-height:42px;min-width:44px}
.ehp-header-account--loading{width:42px;height:42px;border-radius:12px;background:#fff7f0;border:1px solid #f3dfce;display:grid;place-items:center}
.ehp-header-loading-dot{width:9px;height:9px;border-radius:50%;background:var(--ehp-orange);box-shadow:-14px 0 0 rgba(245,130,32,.28),14px 0 0 rgba(245,130,32,.28);animation:ehpHeaderPulse 1s infinite ease-in-out}
@keyframes ehpHeaderPulse{0%,100%{transform:scale(.78);opacity:.65}50%{transform:scale(1);opacity:1}}
.ehp-header-completion{padding:8px 10px 10px;margin:2px 0 4px;border-bottom:1px solid #f0ece8;display:grid;grid-template-columns:1fr auto;gap:5px 8px;align-items:center}
.ehp-header-completion span{font-size:9px;color:#88817a}.ehp-header-completion b{font-size:10px;color:var(--ehp-orange)}
.ehp-header-completion i{grid-column:1/-1;height:5px;border-radius:999px;background:#f2ebe5;overflow:hidden}.ehp-header-completion i em{display:block;height:100%;background:var(--ehp-orange);border-radius:inherit}
.ehp-default-logo-avatar{display:block!important;width:100%!important;height:100%!important;object-fit:contain!important;background:#fff8f1!important;padding:12%!important;box-sizing:border-box!important}
.ehp-user-avatar-custom{display:block!important;width:100%!important;height:100%!important;object-fit:cover!important;padding:0!important;filter:none!important}

/* v0.6.1 — circular eHesab logo avatars + compact notification badge */
.ehp-header-avatar{border-radius:50%!important;background:#fff!important;box-shadow:0 0 0 2px #fff,0 0 0 3px #f1d4bb!important}
.ehp-header-avatar-img{border-radius:50%!important}
.ehp-header-avatar img.ehp-default-logo-avatar,
.ehp-header-dropdown__head img.ehp-default-logo-avatar{
  object-fit:contain!important;
  padding:8%!important;
  background:#fff!important;
  filter:none!important;
}
.ehp-header-dropdown__head>span{border-radius:50%!important;overflow:hidden!important;background:#fff!important}
.ehp-header-unread{margin-right:auto;min-width:20px;height:20px;padding:0 5px;border-radius:999px;background:#f58220;color:#fff!important;display:inline-flex;align-items:center;justify-content:center;font-size:9px;line-height:1}
@media(max-width:767px){.ehp-header-avatar{width:36px!important;height:36px!important;border-radius:50%!important}.ehp-header-userbtn{min-height:38px!important;align-items:center!important}.ehp-header-login{margin:0!important;align-self:center!important}}

/* eHesab 0.6.2 — preserve the real brand logo inside default avatars */
img.ehp-default-logo-avatar,
.ehp-header-avatar img.ehp-default-logo-avatar,
.ehp-header-dropdown__head img.ehp-default-logo-avatar,
.ehp-sidebar-avatar img.ehp-default-logo-avatar,
.ehp-profile-avatar img.ehp-default-logo-avatar{
  filter:none!important;
  background:#fff!important;
  object-fit:contain!important;
  padding:8%!important;
}
.ehp-sidebar-avatar,
.ehp-sidebar-avatar img,
.ehp-profile-avatar,
.ehp-profile-avatar img,
.ehp-workspace-user-mini>div,
.ehp-workspace-user-mini>div img{
  border-radius:50%!important;
}
.ehp-sidebar-avatar{background:#fff!important;overflow:hidden!important}
.ehp-profile-avatar{background:#fff!important;overflow:hidden!important}
.ehp-user-avatar-custom{padding:0!important;object-fit:cover!important;background:#fff!important;filter:none!important}


/* eHesab 0.6.8 — rounded auth UI */
.ehp-auth-modal__dialog,
.ehp-auth-choice,
.ehp-header-dropdown,
.ehp-header-menu,
.ehp-header-login{
  border-radius:18px!important;
}

.ehp-auth-modal input:not([type="checkbox"]):not([type="radio"]),
.ehp-auth-modal select,
.ehp-auth-modal textarea{
  border-radius:12px!important;
}

.ehp-auth-modal button,
.ehp-auth-modal .ehp-btn,
.ehp-header-login{
  border-radius:12px!important;
}

/* eHesab 0.7.3 - allow status Note to escape avatar clipping */
.ehp-profile-avatar,
.ehp-sidebar-avatar{overflow:visible!important}


/* eHesab 0.9.1 - immediate header account state */
.ehp-header-account-mount{display:contents}
.ehp-header-account--loading{display:none!important}
.ehp-header-account--guest,
.ehp-header-account--user{visibility:visible;opacity:1}
