/* Final uniform Back/Home + mobile flicker/performance fix */
html.zv-final-mobile-fix *{transition:none!important;animation:none!important}
.zv-back-home-row,.top.zv-back-home-row,.zv-deny-actions.zv-back-home-row{display:grid!important;grid-template-columns:1fr 1fr!important;gap:6px!important;width:100%!important;margin:0!important;padding:0!important;box-sizing:border-box!important;align-items:stretch!important}
.zv-back-home-row>a,.zv-back-home-row>button,.top.zv-back-home-row>a,.top.zv-back-home-row>button,.zv-deny-actions.zv-back-home-row>a{width:100%!important;max-width:none!important;margin:0!important;display:flex!important;align-items:center!important;justify-content:center!important;box-sizing:border-box!important;min-height:38px!important;padding:9px 8px!important;border-radius:12px!important;font-size:13px!important;font-weight:900!important;text-decoration:none!important;line-height:1.1!important}
.zv-back-home-row+*,.top.zv-back-home-row+*{margin-top:4px!important}
.wrap>.zv-back-home-row:first-child,.container>.zv-back-home-row:first-child,.main>.zv-back-home-row:first-child{margin-bottom:4px!important}
@media(max-width:700px){body{overflow-x:hidden}.wrap,.container,.page,.main{padding-top:6px!important}.card:first-of-type{margin-top:4px!important}.zv-back-home-row+ .card,.top.zv-back-home-row+ .card{margin-top:4px!important}}


/* ZV FINAL BACK/HOME UNIFORM COMPACT - 20260617 */
.zv-back-home-row,.top.zv-back-home-row,.zv-deny-actions.zv-back-home-row,
.wrap>.top,.container>.top,.page>.top,.main>.top{
  display:grid!important;
  grid-template-columns:1fr 1fr!important;
  gap:6px!important;
  width:100%!important;
  margin:0 0 2px 0!important;
  padding:0!important;
  box-sizing:border-box!important;
  align-items:stretch!important;
}
.zv-back-home-row>a,.zv-back-home-row>button,.top.zv-back-home-row>a,.top.zv-back-home-row>button,
.wrap>.top>a,.wrap>.top>button,.container>.top>a,.container>.top>button,.page>.top>a,.page>.top>button,.main>.top>a,.main>.top>button{
  width:100%!important;
  max-width:none!important;
  min-width:0!important;
  min-height:30px!important;
  height:30px!important;
  padding:5px 8px!important;
  margin:0!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  border-radius:10px!important;
  font-size:12px!important;
  line-height:1!important;
  font-weight:900!important;
  box-sizing:border-box!important;
  text-decoration:none!important;
  white-space:nowrap!important;
}
.zv-back-home-row+*,.top.zv-back-home-row+*,.wrap>.top+*,.container>.top+*,.page>.top+*,.main>.top+*{margin-top:2px!important;}
@media(max-width:768px){
  .wrap,.container,.page,.main,.content,.main-content{padding-top:4px!important;}
  .card:first-of-type,.hero:first-of-type,.page-head:first-of-type,h1:first-child,h2:first-child{margin-top:2px!important;}
}


/* ZV PROJECT WIDE FLICKER LOCK - 20260619
   Design/layout untouched: only disables delayed animations/transitions and old fake select flash. */
html.zv-final-mobile-fix *,
html.zv-ui-stable-ready *,
body.zv-ui-stable-ready *{
  transition:none!important;
  animation:none!important;
  scroll-behavior:auto!important;
}
html.zv-final-mobile-fix .wrap,
html.zv-final-mobile-fix .container,
html.zv-final-mobile-fix .card,
html.zv-final-mobile-fix .page,
html.zv-final-mobile-fix .main,
html.zv-final-mobile-fix form{
  transform:none!important;
  zoom:1!important;
}
select.select2-hidden-accessible{
  position:absolute!important;
  width:1px!important;
  height:1px!important;
  opacity:0!important;
  pointer-events:none!important;
}
.select2-container,
.select2-dropdown,
.select2-results,
.select2-selection{
  transition:none!important;
  animation:none!important;
  transform:none!important;
}
.zv-toolbar-prep{visibility:visible!important;}


/* ZV READABLE FONT LOCK - 20260619
   Only readability: no position/box/layout changes, no animations, no print impact. */
@media screen{
  html{font-size:15px!important;-webkit-text-size-adjust:100%!important;text-size-adjust:100%!important;}
  body{font-size:14px!important;line-height:1.36!important;}
  body, input, select, textarea, button, .btn, a.btn, label, .card, .box, .panel, .section, .wrap{font-family:Arial,sans-serif;}
  input,select,textarea,.select2-container .select2-selection__rendered,.select2-results__option{font-size:14px!important;line-height:1.28!important;}
  button,.btn,a.btn,input[type=button],input[type=submit],.zv-common-btn,.navbtn{font-size:13.2px!important;line-height:1.16!important;}
  .zv-back-home-row>a,.zv-back-home-row>button,.top.zv-back-home-row>a,.top.zv-back-home-row>button,.wrap>.top>a,.wrap>.top>button,.container>.top>a,.container>.top>button,.page>.top>a,.page>.top>button,.main>.top>a,.main>.top>button{font-size:13px!important;line-height:1.12!important;}
  table,th,td{font-size:12.6px!important;line-height:1.28!important;}
  .muted,.hint,small,.mini,.pill,.badge,.tag,.status,.subtitle{font-size:12.2px!important;line-height:1.25!important;}
  h1{font-size:21px!important;line-height:1.18!important;}
  h2{font-size:19px!important;line-height:1.18!important;}
  h3{font-size:17px!important;line-height:1.2!important;}
  h4{font-size:15.5px!important;line-height:1.2!important;}
}
@media screen and (max-width:700px){
  html{font-size:14.5px!important;}
  body{font-size:13.6px!important;line-height:1.35!important;}
  input,select,textarea,.select2-container .select2-selection__rendered,.select2-results__option{font-size:13.6px!important;line-height:1.24!important;}
  button,.btn,a.btn,input[type=button],input[type=submit],.zv-common-btn,.navbtn{font-size:12.8px!important;line-height:1.14!important;}
  .zv-back-home-row>a,.zv-back-home-row>button,.top.zv-back-home-row>a,.top.zv-back-home-row>button,.wrap>.top>a,.wrap>.top>button,.container>.top>a,.container>.top>button,.page>.top>a,.page>.top>button,.main>.top>a,.main>.top>button{font-size:12.8px!important;line-height:1.1!important;}
  table,th,td{font-size:12px!important;line-height:1.24!important;}
  .muted,.hint,small,.mini,.pill,.badge,.tag,.status,.subtitle{font-size:11.8px!important;line-height:1.22!important;}
  h1{font-size:19px!important;}
  h2{font-size:17.5px!important;}
  h3{font-size:16px!important;}
}

/* ZV V486 BACKHOME GAP CLEAN */
.zv-back-home-row+*,.top.zv-back-home-row+*,.wrap>.top+*,.container>.top+*,.page>.top+*,.main>.top+*,.zv-common-backhome+*{margin-top:0!important}.zv-back-home-row,.top.zv-back-home-row,.zv-common-backhome{margin-bottom:1px!important}
@media(max-width:700px){.zv-back-home-row,.top.zv-back-home-row,.zv-common-backhome{margin-bottom:0!important}.wrap,.container,.page,.main{padding-top:3px!important}}


/* ZV V523 LIGHT READABILITY BOOST - font only, no layout change */
@media screen{
  body{font-size:14.4px!important;}
  input,select,textarea,.select2-container .select2-selection__rendered,.select2-results__option{font-size:14.2px!important;}
  button,.btn,a.btn,input[type=button],input[type=submit],.zv-common-btn,.navbtn{font-size:13.4px!important;}
  table,th,td{font-size:12.9px!important;}
  .muted,.hint,small,.mini,.pill,.badge,.tag,.status,.subtitle{font-size:12.5px!important;}
}
@media screen and (max-width:700px){
  body{font-size:14px!important;}
  input,select,textarea,.select2-container .select2-selection__rendered,.select2-results__option{font-size:14px!important;}
  button,.btn,a.btn,input[type=button],input[type=submit],.zv-common-btn,.navbtn{font-size:13.1px!important;}
  table,th,td{font-size:12.35px!important;}
  .muted,.hint,small,.mini,.pill,.badge,.tag,.status,.subtitle{font-size:12px!important;}
}
