/* KZ Global First Paint Stability V1.0.1
   Visual-only internal ERP navigation stabilization.
   No business/data/component behavior is changed. */
:root{
  color-scheme:light;
  --kz-first-paint-bg:#f4f7fb;
}
html,body{
  background-color:var(--kz-first-paint-bg);
}
#sidebar-container:empty{
  visibility:hidden!important;
  background:transparent!important;
  box-shadow:none!important;
  border-color:transparent!important;
}
@supports selector(#sidebar-container:has(*)){
  #sidebar-container:not(:has(*)){
    visibility:hidden!important;
    background:transparent!important;
    box-shadow:none!important;
    border-color:transparent!important;
  }
}

/* __KZ_FP_STABLE_GATE_VISUAL_V1__
   Present the same neutral app shell during the server authorization check.
   IMPORTANT: does NOT override visibility of the protected body, tamper with
   /auth/me, or remove the identity gate. Avoids the full-screen text flash.
*/
html.kz-identity-server-pending::after,
html.az-language-first-paint:not(.kz-identity-server-pending)::after{
  content:""!important;
  visibility:visible!important;
  position:fixed!important;
  inset:0!important;
  z-index:2147483647!important;
  display:block!important;
  padding:0!important;
  color:transparent!important;
  background-color:#f4f7fb!important;
  background-image:
    linear-gradient(#ffffff,#ffffff),
    linear-gradient(#e9eef6,#e9eef6),
    linear-gradient(#ffffff,#ffffff),
    linear-gradient(#ffffff,#ffffff),
    linear-gradient(#ffffff,#ffffff),
    linear-gradient(#ffffff,#ffffff),
    linear-gradient(#eef2f8,#eef2f8),
    linear-gradient(#eef2f8,#eef2f8)!important;
  background-position:
    right top,
    right 22px top 24px,
    left 24px top 24px,
    left 24px top 156px,
    left 24px top 290px,
    left 24px top 430px,
    right 32px top 124px,
    right 32px top 192px!important;
  background-size:
    286px 100%,
    242px 68px,
    calc(100% - 350px) 92px,
    calc(100% - 350px) 114px,
    calc(100% - 350px) 114px,
    calc(100% - 350px) 150px,
    215px 38px,
    215px 38px!important;
  background-repeat:no-repeat!important;
  box-shadow:none!important;
  font-size:0!important;
  line-height:0!important;
  pointer-events:auto!important;
}
@media (max-width:1024px){
  html.kz-identity-server-pending::after,
  html.az-language-first-paint:not(.kz-identity-server-pending)::after{
    background-image:
      linear-gradient(#fff,#fff),
      linear-gradient(#fff,#fff),
      linear-gradient(#fff,#fff),
      linear-gradient(#fff,#fff)!important;
    background-position:
      12px 15px,
      12px 100px,
      12px 226px,
      12px 350px!important;
    background-size:
      calc(100% - 24px) 70px,
      calc(100% - 24px) 108px,
      calc(100% - 24px) 108px,
      calc(100% - 24px) 138px!important;
  }
}
