/* Yellow ERP v51.454 · anclaje inferior estable con área segura visualmente independiente */
:root{
  --yds-bottom-nav-button-height:64px;
  --yds-bottom-nav-core-height:78px;
  --yds-bottom-nav-safe:clamp(18px, env(safe-area-inset-bottom, 0px), 32px);
  --yds-bottom-nav-reserve:calc(var(--yds-bottom-nav-core-height) + var(--yds-bottom-nav-safe));
  --yds-bottom-nav-height:var(--yds-bottom-nav-reserve);
}

html,
body{
  min-height:100%!important;
  overflow-x:hidden!important;
  background:#fff!important;
}
body{padding-bottom:0!important}
main{padding-bottom:calc(var(--yds-bottom-nav-reserve) + 16px)!important}

body > nav.app-bottom-nav{
  position:fixed!important;
  top:auto!important;
  right:0!important;
  bottom:0!important;
  left:0!important;
  inset:auto 0 0 0!important;
  width:100%!important;
  max-width:100%!important;
  height:var(--yds-bottom-nav-reserve)!important;
  min-height:var(--yds-bottom-nav-reserve)!important;
  max-height:var(--yds-bottom-nav-reserve)!important;
  margin:0!important;
  padding:5px 4px calc(5px + var(--yds-bottom-nav-safe))!important;
  box-sizing:border-box!important;
  z-index:2147483640!important;
  transform:none!important;
  -webkit-transform:none!important;
  will-change:auto!important;
  translate:none!important;
  contain:none!important;
  filter:none!important;
  perspective:none!important;
  isolation:isolate!important;
  overflow:hidden!important;
  background:linear-gradient(to bottom,#050505 0,#050505 var(--yds-bottom-nav-core-height),#fff var(--yds-bottom-nav-core-height),#fff 100%)!important;
  border:0!important;
  border-top:4px solid var(--yellow,#fdc90f)!important;
  box-shadow:none!important;
  transition:none!important;
}
body > nav.app-bottom-nav button{
  position:relative!important;
  z-index:1!important;
  min-height:var(--yds-bottom-nav-button-height)!important;
  height:var(--yds-bottom-nav-button-height)!important;
  max-height:var(--yds-bottom-nav-button-height)!important;
  margin:0!important;
  padding:5px 2px!important;
  transform:none!important;
  -webkit-transform:none!important;
  will-change:auto!important;
  translate:none!important;
}
body > nav.app-bottom-nav button svg{
  width:25px!important;
  height:25px!important;
  flex:0 0 25px!important;
}

html.yellow-catalog-modal-open body > nav.app-bottom-nav,
body.yellow-catalog-modal-open > nav.app-bottom-nav,
body.yellow-catalog-modal-open nav.app-bottom-nav{
  display:grid!important;
  visibility:visible!important;
  opacity:1!important;
  pointer-events:auto!important;
  position:fixed!important;
  bottom:0!important;
  inset:auto 0 0 0!important;
  z-index:2147483646!important;
  filter:none!important;
}

body::after{content:none!important;display:none!important}

html.profitability-modal-open body>nav.app-bottom-nav,
body.profitability-modal-open>nav.app-bottom-nav,
body.profitability-modal-open nav.app-bottom-nav{
  visibility:hidden!important;
  opacity:0!important;
  pointer-events:none!important;
}
