/* ALMAJAD CRM 3.6.37 | Calmer accessible visual polish ONLY.
   This stylesheet affects presentation, not session/login/forms permissions, data, SQL or finance.
   Load after crm3636.css. */
:root{
  --alm37-navy:#203f57;
  --alm37-deep:#183951;
  --alm37-blue:#3a6886;
  --alm37-link:#275f86;
  --alm37-teal:#3a8185;
  --alm37-accent:#a9633f;
  --alm37-gray:#657e8b;
  --alm37-text:#243f51;
  --alm37-line:#dce7ec;
  --alm37-wash:#f5f8f9;
  --alm37-paper:#fff;
  --alm37-shadow:0 7px 24px rgba(27,65,85,.055);
}
/* Readability and quieter visual hierarchy across ALL existing pages. */
body.app-body{
  background:linear-gradient(160deg,#f6f9fa,#eef4f6 66%,#f7fafb)!important;
  color:var(--alm37-text)!important;
}
.app-body .main-content,
.app-body .workspace,
.app-body .app-layout{min-width:0;max-width:100%}
.app-body :is(h1,h2,h3){color:var(--alm37-navy)}
.app-body .main-content :is(.panel,.card,.v33-kpi,.v33-queue-card,
 .crm3618-panel,.crm3618-kpi,.crm3618-staff-card,.crm3620-finance-kpi,
 .crm3620-finance-chart,.crm3620-finance-rank,.crm3626-month-card){
  border-color:var(--alm37-line)!important;
  box-shadow:var(--alm37-shadow)!important;
}
.app-body .main-content :is(.panel,.card,.crm3618-panel,.crm3618-kpi,.crm3620-finance-kpi){background:#fff!important}
.app-body .main-content :is(.v33-kpi,.v33-queue-card,.crm3618-staff-card,.crm3620-finance-rank){background:linear-gradient(135deg,#fff,#fbfdfe)!important}
.app-body :is(.btn-primary,button.btn-primary,a.btn-primary){
  background:linear-gradient(110deg,#24516e,#346d89)!important;
  border-color:transparent!important;color:#fff!important;
  box-shadow:0 6px 16px rgba(34,78,106,.14)!important;
}
.app-body :is(.btn-primary,button.btn-primary,a.btn-primary):hover{filter:brightness(1.03)!important;box-shadow:0 8px 19px rgba(34,78,106,.18)!important}
.app-body :is(input,textarea,select){accent-color:var(--alm37-blue)}
.app-body :is(input,textarea,select):focus-visible{outline-color:#6e9fb9!important}
.app-body .topbar{background:rgba(255,255,255,.97)!important;border-bottom:1px solid #e1e9ed!important}

/* Sidebar: FULL viewport height, one clean scroll, no empty portion below menu. */
.app-body .sidebar{
  box-sizing:border-box!important;
  height:100vh!important;height:100dvh!important;
  min-height:100vh!important;min-height:100dvh!important;
  max-height:100dvh!important;
  display:flex!important;flex-direction:column!important;
  overflow-x:hidden!important;overflow-y:auto!important;
  overscroll-behavior-y:contain;
  -webkit-overflow-scrolling:touch;
  background:linear-gradient(180deg,#244a64 0%,#1e415b 58%,#193a53 100%)!important;
  border-color:#35586e!important;
  color:#f7fbfd!important;
  box-shadow:-4px 0 18px rgba(25,61,84,.08)!important;
  scrollbar-color:#6589a0 transparent;
  scrollbar-width:thin;
}
@media(min-width:901px){.app-body .sidebar{position:sticky!important;top:0!important;align-self:start!important}}
.app-body .side-brand{flex:0 0 auto;}
.app-body .side-nav{flex:0 0 auto;min-height:0;}
.app-body .sidebar-bottom{flex:0 0 auto;margin-top:auto!important;background:transparent!important;border-color:rgba(255,255,255,.15)!important}
.app-body .side-nav .nav-link{color:#e3eef4!important;background:transparent;border-radius:12px!important}
.app-body .side-nav .nav-link .icon{color:#cadfe9!important}
.app-body .side-nav .nav-link:hover{background:rgba(255,255,255,.11)!important;color:#fff!important;transform:none!important}
.app-body .side-nav .nav-link.active{
  background:rgba(219,237,247,.17)!important;color:#fff!important;
  border:1px solid rgba(226,245,250,.16)!important;
  box-shadow:inset -3px 0 #e1a67c!important;
}
.app-body .side-nav .nav-link.active .icon{color:#fff!important}
.app-body .sidebar-profile strong{color:#fff!important}
.app-body .sidebar-profile small,.app-body .sidebar-caption,.app-body .side-brand small{color:#c0d4df!important}
.app-body .signout{background:rgba(255,255,255,.075)!important;color:#edf5f8!important}

/* Home hero: warm off-white with genuinely dark title, NO pale orange on pale blue. */
.app-body .v33-welcome,
.app-body .v33-welcome.crm365-dashboard-welcome{
  isolation:isolate!important;
  background:linear-gradient(115deg,#f4f8fa 0%,#e8f1f5 55%,#f8fafb 100%)!important;
  color:var(--alm37-deep)!important;
  border:1px solid #d6e5eb!important;
  border-radius:22px!important;
  box-shadow:0 8px 23px rgba(25,69,94,.067)!important;
}
.app-body .v33-welcome::before{content:""!important;position:absolute!important;top:-96px!important;left:-70px!important;right:auto!important;width:300px!important;height:270px!important;border:45px solid rgba(255,255,255,.18)!important;box-shadow:none!important;opacity:.55!important;border-radius:50%!important}
.app-body .v33-welcome::after{opacity:.035!important;background:url('/assets/img/tenant-logo.png') left 4% center / 120px auto no-repeat!important}
.app-body .v33-welcome :is(h1,p,.v33-date,.v33-overline){text-shadow:none!important;opacity:1!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:#244c66!important;text-shadow:none!important;
  -webkit-text-fill-color:#244c66!important;
  filter:none!important;
}
.app-body .v33-welcome h1{font-weight:900!important;font-size:clamp(26px,3vw,38px)!important;line-height:1.5!important;letter-spacing:0!important}
.app-body .v33-welcome p{color:#526f80!important;font-size:14px!important;line-height:1.9!important}
.app-body .v33-welcome .v33-date{color:#325d78!important}
.app-body .v33-welcome .v33-overline{color:#587587!important}
.app-body .v33-welcome-buttons .btn.btn-primary{background:#2f6485!important;color:#fff!important;border:1px solid #2f6485!important}
.app-body .v33-welcome-buttons .btn.btn-subtle{background:#fff!important;color:#2d5873!important;border:1px solid #d3e0e7!important}
.app-body .v33-kpi strong{color:#264f6b!important}
.app-body .v33-queue-card strong,.app-body .v33-queue-card b{color:#285371!important}

/* Analysis: accessible navy hero and readable title; flat bars, no chunky 3D. */
.app-body .crm3618-hero{
  background:linear-gradient(112deg,#254f6a,#346c84)!important;
  color:white!important;
  border:1px solid #315c74!important;
  box-shadow:0 11px 27px rgba(23,62,87,.13)!important;
}
.app-body .crm3618-hero::before{background:radial-gradient(circle at 10% 20%,rgba(255,255,255,.11),transparent 40%)!important;opacity:1!important}
.app-body .crm3618-hero h1,
.app-body .crm3618-hero h1 *,
.app-body .crm3618-overline,
.app-body .crm3618-hero p{color:#fff!important;-webkit-text-fill-color:#fff!important;text-shadow:none!important}
.app-body .crm3618-hero p{color:#e9f2f6!important;-webkit-text-fill-color:#e9f2f6!important}
.app-body .crm3618-month{background:rgba(255,255,255,.11)!important;border-color:rgba(255,255,255,.25)!important}
.app-body .crm3618-month label{color:#f3f8fa!important}
.app-body .crm3618-month input{background:#fff!important;color:#24475e!important}
.app-body .crm3618-month .btn{background:#fff!important;color:#244c67!important;border-color:#dce8ee!important}
.app-body .crm3618-kpi{border-radius:17px!important}
.app-body .crm3618-kpi::before{height:3px!important;background:#739eb3!important}
.app-body .crm3618-kpi:nth-child(3n)::before{background:#d3a487!important}
.app-body .crm3618-kpi>span{color:#607c8b!important}
.app-body .crm3618-kpi strong{color:#274d67!important}
.app-body .crm3618-panel-heading h2{color:#244b64!important}
.app-body .crm3618-panel-heading p{color:#718b98!important}
.app-body .crm3618-bars{background:repeating-linear-gradient(0deg,transparent 0,transparent 43px,rgba(129,163,177,.12) 44px)!important;border-color:#dde8ed!important}
.app-body .crm3618-bar-fill{
  background:linear-gradient(0deg,#608aa8,#78a5be)!important;
  border-radius:8px 8px 2px 2px!important;
  box-shadow:none!important;
  transform:none!important;
  animation:none!important;
  transition:filter .2s ease!important;
}
.app-body .crm3618-bar-fill::after{display:none!important}
.app-body .crm3618-bar-fill.crm3618-tone-1,.app-body .crm3618-tone-1{background:linear-gradient(0deg,#4a8586,#72abad)!important}
.app-body .crm3618-bar-fill.crm3618-tone-2,.app-body .crm3618-tone-2{background:linear-gradient(0deg,#b5848b,#d3a4a8)!important}
.app-body .crm3618-bar-entry:hover .crm3618-bar-fill{filter:brightness(.97)!important}
.app-body .crm3618-staff-card{border-radius:18px!important}
.app-body .crm3618-staff-card:first-child{background:linear-gradient(145deg,#f2f8f8,#fff)!important;border-color:#c8dede!important}
.app-body .crm3618-rank{background:#e8f1f5!important;color:#305f79!important}
.app-body .crm3618-score{background:#2e5976!important}
.app-body .crm3618-staff-facts span{background:#f0f6f8!important;color:#567487!important}
.app-body .crm3618-score-track i,
.app-body .crm3618-fill{background:linear-gradient(90deg,#5487a2,#6d9cad)!important}
.app-body .crm3618-source{background:#fcfdfe!important;border-color:#e1e9ee!important}

/* Finance: style-only polish including its graph widgets. */
.app-body .crm3620-finance-hero{background:linear-gradient(113deg,#264c68,#376d81)!important;box-shadow:0 9px 25px rgba(26,67,92,.13)!important}
.app-body .crm3620-finance-hero h1{color:#fff!important}
.app-body .crm3620-finance-hero p{color:#e9f4f6!important}
.app-body .crm3620-finance-kpi strong{color:#274c66!important}
.app-body .crm3626-chart-bar{background:linear-gradient(0deg,#6d95aa,#85adbe)!important;box-shadow:none!important;border-radius:6px 6px 2px 2px!important}
.app-body .crm3626-tint-1{background:linear-gradient(0deg,#597ea2,#7299bb)!important}
.app-body .crm3626-tint-2{background:linear-gradient(0deg,#578e91,#7eb3b4)!important}
.app-body .crm3626-archive-hero{background:linear-gradient(112deg,#2d5670,#4a7787)!important}
.app-body .crm3626-archive-hero h2{color:#fff!important}
.app-body .crm362-customers thead th{background:#285165!important}
.app-body .crm362-customers .crm362-data-row:hover{background:#f3f8f9!important}
.app-body .crm362-phone{background:#eef5f7!important;color:#2b5c74!important}

/* Login: keep full high-quality lobby photograph; make editorial copy contrast reliable. */
body.login-body{
  background-image:url('/assets/img/tenant-login-bg.webp')!important;
  background-size:cover!important;
  background-position:center center!important;
}
body.login-body::before{
  background:linear-gradient(90deg,rgba(13,38,56,.47),rgba(12,43,62,.22) 35%,transparent 62%)!important;
  backdrop-filter:none!important;-webkit-backdrop-filter:none!important;
}
.login-body .crm3636-aside-content{
  position:relative!important;
  border-radius:22px!important;
  padding:27px 27px 28px!important;
  background:linear-gradient(120deg,rgba(17,44,62,.66),rgba(24,60,77,.43))!important;
  border:1px solid rgba(255,255,255,.18)!important;
  backdrop-filter:blur(7px)!important;
  -webkit-backdrop-filter:blur(7px)!important;
  box-shadow:0 13px 30px rgba(10,30,45,.09)!important;
}
.login-body .crm3636-aside-content h2,
.login-body .login-aside .crm3636-aside-content h2 em{color:#fff!important;text-shadow:0 2px 8px rgba(0,0,0,.17)!important}
.login-body .crm3636-aside-content p{color:#f2f7f9!important;text-shadow:0 1px 5px rgba(0,0,0,.25)!important}
.login-body .crm3636-aside-content .crm365-aside-metrics span{background:rgba(13,41,58,.43)!important;border-color:rgba(255,255,255,.27)!important}
.login-body .crm3636-glass-card{
  background:rgba(249,252,255,.88)!important;
  border-color:rgba(255,255,255,.94)!important;
}
.login-body .crm3636-intro h1{color:#1c486b!important}
.login-body .crm3636-intro p{color:#5a788e!important}
.login-body .crm3636-form .crm365-submit{background:linear-gradient(110deg,#24577c,#34738f)!important}

/* Mobile: the photo is visible ABOVE the card and INSIDE a branded photo band.
   True form controls remain real HTML elements for easy iOS input. */
@media(max-width:900px){
 .app-body .sidebar{
   height:100dvh!important;min-height:100dvh!important;max-height:100dvh!important;
   overflow-y:auto!important;
   position:fixed!important;
 }
 .app-body .sidebar-bottom{margin-top:auto!important}
 body.login-body{
   background-attachment:scroll!important;
   background-position:22% top!important;
 }
 .login-body .login-wrap.crm3636-login-page{margin-top:clamp(95px,18vh,175px)!important}
 .login-body .login-card.crm365-login-card.crm3636-glass-card{overflow:hidden!important;padding:148px clamp(19px,5vw,36px) 28px!important}
 .login-body .login-card.crm3636-glass-card::before{
   content:""!important;display:block!important;
   position:absolute!important;inset:0 0 auto 0!important;height:125px!important;
   background:
     linear-gradient(180deg,rgba(8,43,69,.02),rgba(14,51,72,.2)),
     url('/assets/img/tenant-login-bg.webp') 18% 31% / cover no-repeat!important;
   border-radius:25px 25px 0 0!important;pointer-events:none!important;
 }
 .login-body .crm3636-login-brand{position:relative!important;z-index:1!important}
 .app-body .v33-welcome h1{font-size:clamp(23px,6vw,29px)!important}
 .app-body .crm3618-maincharts,.app-body .crm3618-secondary{grid-template-columns:minmax(0,1fr)!important}
 .app-body .crm3618-hero h1{font-size:clamp(25px,7vw,33px)!important}
}
@media(max-width:450px){
 .app-body .sidebar{height:100dvh!important;min-height:100dvh!important}
 .login-body .login-wrap.crm3636-login-page{margin-top:clamp(70px,14vh,120px)!important}
 .login-body .login-card.crm365-login-card.crm3636-glass-card{padding:139px 19px 26px!important}
 .login-body .login-card.crm3636-glass-card::before{height:116px!important}
 .app-body .crm3618-kpi strong{font-size:clamp(21px,5vw,26px)!important}
}
@media(prefers-reduced-motion:reduce){
 .app-body .crm3618-bar-fill,.app-body .crm3626-chart-bar{animation:none!important;transition:none!important}
}
