/* Almajad CRM v3.6.40 — FULL-WIDTH BRANDED HERO ONLY
   Purely cosmetic. No change to authentication, accounting, clients or links.
   The original controls and Saudi-date output are left in place.
*/
body.app-body .v33-welcome,
body.app-body .v33-welcome.crm365-dashboard-welcome{
  position:relative!important;
  isolation:isolate!important;
  overflow:hidden!important;
  min-height:220px!important;
  display:flex!important;
  flex-wrap:wrap!important;
  align-items:center!important;
  justify-content:space-between!important;
  gap:18px 22px!important;
  padding:clamp(22px,3.0vw,42px)!important;
  background:#e9f2f5!important;
  border:1px solid #d7e5ec!important;
  border-radius:24px!important;
  box-shadow:0 12px 34px rgba(29,68,95,.095)!important;
}
/* Background covers THE WHOLE card, rather than being masked into an oval on the left. */
body.app-body .v33-welcome::before{
  content:""!important;
  position:absolute!important;
  inset:0!important;
  top:0!important;bottom:0!important;left:0!important;right:0!important;
  width:100%!important;height:100%!important;
  border:none!important;border-radius:0!important;
  background-image:url('/assets/img/tenant-login-bg.webp')!important;
  background-color:#e5f0f3!important;
  background-repeat:no-repeat!important;
  background-size:cover!important;
  background-position:center 44%!important;
  box-shadow:none!important;
  opacity:.78!important;
  transform:none!important;
  z-index:-2!important;
  pointer-events:none!important;
  mask:none!important;-webkit-mask:none!important;
}
/* High contrast: readable navy typography, while full-width photo stays visible. */
body.app-body .v33-welcome::after{
  content:""!important;
  position:absolute!important;
  inset:0!important;
  top:0!important;bottom:0!important;left:0!important;right:0!important;
  width:100%!important;height:100%!important;
  border:none!important;border-radius:0!important;
  background:linear-gradient(270deg,rgba(247,251,252,.96) 0%,rgba(246,251,252,.90) 39%,rgba(233,245,250,.65) 68%,rgba(233,245,250,.36) 100%)!important;
  box-shadow:none!important;
  opacity:1!important;
  transform:none!important;
  z-index:-1!important;
  pointer-events:none!important;
  mask:none!important;-webkit-mask:none!important;
}
body.app-body .v33-welcome > div:first-child,
body.app-body .v33-welcome .v33-welcome-buttons{
  position:relative!important;z-index:1!important;
}
body.app-body .v33-welcome > div:first-child{min-width:0!important;max-width:min(100%,940px)!important}
body.app-body .v33-welcome .crm365-spark,
body.app-body .v33-welcome .crm365-spark *{display:none!important}
body.app-body .v33-welcome h1,
body.app-body .v33-welcome h1 span,
body.app-body .v33-welcome h1 strong{
  color:#183f5c!important;
  -webkit-text-fill-color:#183f5c!important;
  text-shadow:none!important;
  filter:none!important;
}
body.app-body .v33-welcome h1{
  font-size:clamp(26px,2.8vw,38px)!important;
  line-height:1.45!important;
  font-weight:900!important;
  overflow-wrap:break-word!important;
  letter-spacing:0!important;
  margin:0 0 8px!important;
}
body.app-body .v33-welcome p{
  color:#3b5f77!important;
  font-size:clamp(14px,1.15vw,16px)!important;
  font-weight:700!important;
  line-height:1.85!important;
  text-shadow:none!important;
  margin:0 0 12px!important;
}
body.app-body .v33-welcome .v33-overline{
  background:rgba(255,255,255,.84)!important;
  border:1px solid rgba(199,220,231,.85)!important;
  color:#3e667c!important;
  border-radius:999px!important;
  font-size:11px!important;
  font-weight:800!important;
  padding:6px 12px!important;
}
body.app-body .v33-welcome .v33-date{
  display:inline-flex!important;
  align-items:center!important;
  flex-wrap:wrap!important;
  gap:7px!important;
  border-radius:12px!important;
  border:1px solid rgba(203,223,232,.9)!important;
  background:rgba(255,255,255,.86)!important;
  box-shadow:0 3px 14px rgba(25,65,90,.045)!important;
  padding:9px 13px!important;
  color:#2d5671!important;
  font-weight:800!important;
  font-size:12px!important;
}
body.app-body .v33-welcome .v33-welcome-buttons{display:flex!important;gap:11px!important;flex-wrap:wrap!important}
body.app-body .v33-welcome-buttons .btn{
  border-radius:12px!important;
  min-height:46px!important;
  font-size:13px!important;
  font-weight:850!important;
  box-shadow:0 5px 15px rgba(26,68,96,.095)!important;
}
body.app-body .v33-welcome-buttons .btn.btn-primary{
  color:white!important;background:#245c80!important;border:1px solid #245c80!important;
}
body.app-body .v33-welcome-buttons .btn.btn-subtle{
  color:#24516d!important;background:rgba(255,255,255,.95)!important;border:1px solid #c9dfe8!important;
}
@media(max-width:760px){
  body.app-body .v33-welcome,
  body.app-body .v33-welcome.crm365-dashboard-welcome{
    min-height:0!important;padding:22px 17px!important;gap:18px!important;
    align-items:stretch!important;border-radius:18px!important;
  }
  body.app-body .v33-welcome::before{background-position:40% center!important;opacity:.54!important}
  body.app-body .v33-welcome::after{background:linear-gradient(180deg,rgba(247,251,252,.94),rgba(241,249,252,.82) 57%,rgba(242,248,251,.78))!important}
  body.app-body .v33-welcome > div:first-child{flex:1 1 100%!important;width:100%!important}
  body.app-body .v33-welcome h1{font-size:clamp(24px,6.4vw,31px)!important;line-height:1.48!important}
  body.app-body .v33-welcome p{font-size:14px!important}
  body.app-body .v33-welcome .v33-welcome-buttons{width:100%!important;display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px!important}
  body.app-body .v33-welcome-buttons .btn{min-width:0!important;width:100%!important;font-size:12px!important;padding:10px 7px!important;justify-content:center!important}
  body.app-body .v33-welcome .v33-date{font-size:11px!important;line-height:1.7!important;max-width:100%!important}
}
@media(max-width:360px){
  body.app-body .v33-welcome .v33-welcome-buttons{grid-template-columns:minmax(0,1fr)!important}
}
@media(prefers-reduced-motion:reduce){body.app-body .v33-welcome-buttons .btn{transition:none!important;transform:none!important}}
