/* CRM inside Pay (JZ_CRM_INLINE). Loaded by index.html and crm/index.html; every rule is scoped to a class that exists only with the flag on. */

/* ---- Pay page: the warm CRM page covers Pay's work area; Pay's side menu and bottom bar stay */
#jzCrmFrame,#jzCrmSkel{display:none;position:fixed;top:0;left:0;width:100%;height:calc(100% - var(--nav-h) - var(--safe-b));
  border:0;margin:0;padding:0;z-index:42;background:var(--s-canvas,#f4f6f7);}
@media (min-width:1024px){
  #jzCrmFrame,#jzCrmSkel{height:100%;width:calc(100% - var(--side-w));}
}
body.jz-crm-on #jzCrmSkel{display:block;}
body.jz-crm-on.jz-crm-ready #jzCrmSkel{display:none;}
body.jz-crm-on #jzCrmFrame{display:block;visibility:hidden;}
body.jz-crm-on.jz-crm-ready #jzCrmFrame{visibility:visible;}
body.jz-crm-on{overflow:hidden;}
.jz-crm-skel__bar{height:var(--top-h,56px);background:var(--s-inverse,#152026);}
.jz-crm-skel__b{height:88px;margin:var(--sp-4,16px);border-radius:var(--r-lg,14px);background:linear-gradient(90deg,rgba(0,0,0,.05),rgba(0,0,0,.09),rgba(0,0,0,.05));background-size:200% 100%;animation:jzCrmSk 1.2s linear infinite;}
.jz-crm-skel__b--s{height:56px;width:60%;}
@keyframes jzCrmSk{to{background-position:-200% 0;}}

/* ---- CRM page inside the frame: Pay shows the menus, the frame shows only the screen */
html.crm-embed body.crm-embed{--side-w:0px;--nav-h:0px;}
body.crm-embed .jz-side,body.crm-embed .jz-bottom{display:none !important;}
body.crm-embed.jz-shell{padding:0 !important;}

/* X-1 (UX audit 30 Nov): while a sheet is open inside the CRM frame, Pay's bottom bar steps aside and the frame takes the full height,
   so the sheet's footer buttons (cancel / save) are never covered. --nav-h drives the frame height formula above. */
body.jz-crm-on.jz-modal-open{--nav-h:0px;}
body.jz-modal-open #jzBottom{display:none;}
