/* GZ-BOTTOM-ALL-PAGES: existing navigation belongs to the viewport, not a card. */
@media screen {
 :root { --gazali-bottom-inset:max(8px,env(safe-area-inset-bottom,0px)); }
 html { scroll-padding-bottom:calc(100px + env(safe-area-inset-bottom,0px)); }
 body :is(.pm-bottom,.pmr-bottom,.mdb-bottom,.manager-service-nav,.manager-report-nav,.approval-bottom-nav,.approval-mobile-nav,.bottom-nav,.candidate-preview-bottom,[data-gazali-bottom]) {
  position:fixed!important;top:auto!important;bottom:var(--gazali-bottom-inset)!important;margin-block:0!important;flex-shrink:0;box-sizing:border-box;
 }
 /* Relative manager footers need a viewport anchor as well as a fixed bottom. */
 body .dp-shell>.pm-bottom {
  left:50%!important;right:auto!important;transform:translateX(-50%)!important;width:min(760px,calc(100% - 24px))!important;height:auto!important;
 }
 body .app>nav[data-gazali-bottom] {
  left:50%;right:auto;transform:translateX(-50%);width:min(560px,calc(100% - 24px));z-index:19;
 }
 body .app:has(>nav[data-gazali-bottom]) { padding-bottom:calc(104px + env(safe-area-inset-bottom,0px)); }
 /* Full-width docks already own their safe-area padding. Do not count it twice. */
 body [data-gazali-bottom="edge"] { bottom:0!important; }
 body :is(.manager-service-nav,.pm-bottom,.pmr-bottom,.mdb-bottom,.approval-bottom-nav,.approval-mobile-nav,.bottom-nav,.candidate-preview-bottom,[data-gazali-bottom])[hidden] { display:none!important; }
 /* The fleet has its own header and footer inside one full-height frame. */
 html body.department-portal .dp-shell.is-gazali-car {
  height:100dvh!important;max-height:100dvh!important;padding:0!important;margin:0!important;
 }
 html body.department-portal .dp-shell.is-gazali-car>#manager-bottom-nav { display:none!important; }
 html body.department-portal .dp-shell.is-gazali-car #content { scrollbar-gutter:auto!important; }
 html body.department-portal .dp-shell.is-gazali-car .cg { width:100%!important;height:100%!important;margin:0!important;padding:0!important; }
}
@media print { [data-gazali-bottom] { display:none!important; } }
