/* ALMAJAD CRM v3.6.38 | Visual greeting refinement + accessible remember-username row.
   NO server/session/auth, permission, financial or schema modifications. */
:root{--alm38-ink:#173c55;--alm38-mid:#42677f;--alm38-sky:#dceaf0;--alm38-stone:#fbfcfc;--alm38-outline:#d8e5eb;--alm38-copper:#a96a49}

/* Home welcome: clean editorial surface + a subtle environmental photo on the left.
   Right-aligned Arabic heading retains excellent readability and existing dynamic text. */
.app-body .v33-welcome,
.app-body .v33-welcome.crm365-dashboard-welcome{
 position:relative!important;isolation:isolate!important;overflow:hidden!important;
 border-radius:22px!important;
 min-height:200px!important;
 padding:clamp(22px,3.1vw,39px)!important;
 background:linear-gradient(116deg,#e9f2f6 0%,#f4f9fb 46%,#ffffff 100%)!important;
 border:1px solid #d7e5eb!important;
 box-shadow:0 13px 37px rgba(24,65,87,.075),0 2px 7px rgba(24,65,87,.026)!important;
 gap:clamp(12px,2vw,26px)!important;
}
/* Side photo always sits behind content; dark outlines and figures stay visible. */
.app-body .v33-welcome::after{
 content:""!important;position:absolute!important;z-index:-1!important;
 inset:0 auto 0 0!important;width:50%!important;height:100%!important;
 background:url('/assets/img/tenant-login-bg.webp') 34% center / cover no-repeat!important;
 opacity:.28!important;
 mask-image:linear-gradient(to left,transparent 0%,rgba(0,0,0,.34) 36%,#000 100%)!important;
 -webkit-mask-image:linear-gradient(to left,transparent 0%,rgba(0,0,0,.34) 36%,#000 100%)!important;
 pointer-events:none!important;
}
.app-body .v33-welcome::before{
 content:""!important;position:absolute!important;z-index:-1!important;
 inset:auto auto -114px -75px!important;
 width:240px!important;height:240px!important;
 border:36px solid rgba(47,107,138,.045)!important;border-radius:50%!important;
 background:none!important;box-shadow:none!important;opacity:1!important;pointer-events:none!important;
}
.app-body .v33-welcome>div:first-child{position:relative;z-index:1;min-width:0}
.app-body .v33-welcome .v33-overline{
 display:inline-flex!important;align-items:center!important;max-width:100%;
 background:#e8f1f5!important;color:#456d84!important;
 border:1px solid #d6e5eb!important;border-radius:8px!important;
 padding:5px 10px!important;margin:0 0 12px!important;
 font-size:11px!important;letter-spacing:0!important;font-weight:800!important;
 opacity:1!important;text-shadow:none!important;
}
.app-body .v33-welcome h1,
.app-body .v33-welcome h1 span,
.app-body .v33-welcome h1 strong,
.app-body .v33-welcome .crm365-spark{
 color:var(--alm38-ink)!important;-webkit-text-fill-color:var(--alm38-ink)!important;
 text-shadow:none!important;filter:none!important;
}
.app-body .v33-welcome h1{
 font-size:clamp(25px,2.7vw,35px)!important;line-height:1.48!important;
 font-weight:900!important;letter-spacing:0!important;
 margin:0 0 4px!important;
}
.app-body .v33-welcome .crm365-spark,
.app-body .v33-welcome .crm365-spark *{color:var(--alm38-copper)!important;-webkit-text-fill-color:var(--alm38-copper)!important}
.app-body .v33-welcome p{
 font-size:14px!important;font-weight:550!important;line-height:1.85!important;
 color:#577185!important;opacity:1!important;margin:0 0 12px!important;
}
.app-body .v33-welcome .v33-date{
 display:inline-flex!important;gap:7px!important;align-items:center!important;flex-wrap:wrap!important;
 color:#476d85!important;font-size:12px!important;font-weight:750!important;
 padding:7px 12px!important;margin-top:2px!important;
 border-radius:10px!important;background:rgba(255,255,255,.64)!important;
 border:1px solid #dce9ee!important;box-shadow:none!important;
}
.app-body .v33-welcome-buttons{position:relative;z-index:1;display:flex!important;gap:10px!important;flex-wrap:wrap!important;align-items:center!important}
.app-body .v33-welcome-buttons .btn{
 border-radius:12px!important;min-height:46px!important;padding:10px 18px!important;
 font-size:13px!important;font-weight:850!important;
 box-shadow:0 4px 10px rgba(34,83,111,.09)!important;
}
.app-body .v33-welcome-buttons .btn.btn-primary{background:#2b607f!important;color:#fff!important;border:1px solid #2b607f!important}
.app-body .v33-welcome-buttons .btn.btn-subtle{background:rgba(255,255,255,.96)!important;color:#235272!important;border:1px solid #c9dce6!important}
.app-body .v33-welcome-buttons .btn:hover{filter:brightness(.98)!important;transform:translateY(-1px)!important}

/* Login: a real, opt-in remember-username option just below the password box. */
.login-body .crm3638-remember-row{
 display:flex!important;align-items:center!important;justify-content:space-between!important;
 gap:8px 16px!important;flex-wrap:wrap!important;
 margin:2px 0 6px!important;direction:rtl!important;
}
.login-body .crm3638-remember-option{
 display:inline-flex!important;align-items:center!important;gap:9px!important;
 cursor:pointer!important;margin:0!important;color:#224b65!important;
 font-size:14px!important;font-weight:850!important;white-space:nowrap!important;
}
.login-body .crm3638-remember-option input{
 appearance:auto!important;-webkit-appearance:checkbox!important;
 width:19px!important;height:19px!important;min-width:19px!important;
 margin:0!important;cursor:pointer!important;
 accent-color:#2d6b8b!important;box-shadow:none!important;
}
.login-body .crm3638-remember-option input:focus-visible{outline:2px solid #3d8cac!important;outline-offset:3px!important}
.login-body .crm3638-remember-hint{font-size:11px!important;line-height:1.7!important;color:#738d9f!important;max-width:260px!important}
.login-body .crm3636-form .crm365-submit{margin-top:17px!important}
@media(max-width:760px){
 .app-body .v33-welcome,.app-body .v33-welcome.crm365-dashboard-welcome{min-height:0!important;padding:23px 19px!important;gap:20px!important}
 .app-body .v33-welcome::after{width:100%!important;opacity:.105!important;mask-image:linear-gradient(to left,transparent 5%,#000 100%)!important;-webkit-mask-image:linear-gradient(to left,transparent 5%,#000 100%)!important}
 .app-body .v33-welcome h1{font-size:clamp(24px,6vw,30px)!important}
 .app-body .v33-welcome-buttons .btn{flex:1 1 135px!important;justify-content:center!important}
 .login-body .crm3638-remember-row{align-items:flex-start!important}
}
@media(max-width:390px){
 .login-body .crm3638-remember-hint{width:100%!important;max-width:100%!important}
 .login-body .crm3638-remember-option{font-size:13px!important}
 .app-body .v33-welcome .v33-date{font-size:11px!important}
}
@media(prefers-reduced-motion:reduce){.app-body .v33-welcome-buttons .btn{transform:none!important;transition:none!important}}
