/**
 * JujuyConectado Pro 2026 · 9.5.55.531
 * APP-FIRST FOOTER STRUCTURAL REPAIR V1
 * Authority: APP/PWA. Browser mobile derives from it. Windows mirrors it at 768px.
 */

/* Shared physical contract. One fixed bar only. */
html.jc-pwa-standalone,
html.jc-pwa-standalone body,
body.jc-native-app,
body.jc-windows-tablet-v469{
  --jc-tabbar-v2-base-height:60px!important;
  --jc-app-fixed-footer-height:60px!important;
  --jc-footer-real-height:calc(60px + env(safe-area-inset-bottom,0px))!important;
}

/* APP/PWA + native + browser mobile: body owns the one-and-only reserve. */
@media(max-width:760px){
  html.jc-pwa-standalone body:not(.cjrd-mini-app):not(.jc-ccj-floating-frame),
  html body.jc-native-app:not(.cjrd-mini-app):not(.jc-ccj-floating-frame),
  html:not(.jc-pwa-standalone) body:not(.jc-native-app):not(.jc-ccj-route):not(.cjrd-mini-app):not(.jc-ccj-floating-frame){
    padding-bottom:calc(60px + env(safe-area-inset-bottom,0px))!important;
    margin-bottom:0!important;
  }

  /* V512 principle: never reserve the footer a second time inside content shells. */
  html.jc-pwa-standalone body:not(.cjrd-mini-app):not(.jc-ccj-floating-frame) #jc-content-shell,
  html.jc-pwa-standalone body:not(.cjrd-mini-app):not(.jc-ccj-floating-frame) .jc-main,
  html body.jc-native-app:not(.cjrd-mini-app):not(.jc-ccj-floating-frame) #jc-content-shell,
  html body.jc-native-app:not(.cjrd-mini-app):not(.jc-ccj-floating-frame) .jc-main,
  html:not(.jc-pwa-standalone) body:not(.jc-native-app):not(.jc-ccj-route):not(.cjrd-mini-app):not(.jc-ccj-floating-frame) #jc-content-shell,
  html:not(.jc-pwa-standalone) body:not(.jc-native-app):not(.jc-ccj-route):not(.cjrd-mini-app):not(.jc-ccj-floating-frame) .jc-main{
    padding-bottom:0!important;
    margin-bottom:0!important;
  }

  html.jc-pwa-standalone body:not(.cjrd-mini-app):not(.jc-ccj-floating-frame) .jc-web-footer-v2,
  html body.jc-native-app:not(.cjrd-mini-app):not(.jc-ccj-floating-frame) .jc-web-footer-v2,
  html:not(.jc-pwa-standalone) body:not(.jc-native-app):not(.jc-ccj-route):not(.cjrd-mini-app):not(.jc-ccj-floating-frame) .jc-web-footer-v2{
    position:fixed!important;
    left:0!important;right:0!important;bottom:0!important;
    z-index:10030!important;
    width:100%!important;max-width:none!important;
    height:calc(60px + env(safe-area-inset-bottom,0px))!important;
    min-height:calc(60px + env(safe-area-inset-bottom,0px))!important;
    margin:0!important;
    padding:0 0 env(safe-area-inset-bottom,0px)!important;
    transform:none!important;
    overflow:visible!important;
    border:0!important;border-top:1px solid rgba(23,105,224,.12)!important;
    background:rgba(255,255,255,.985)!important;
    color:#8e8e93!important;
    box-shadow:0 -6px 22px rgba(18,48,82,.09)!important;
    backdrop-filter:saturate(1.2) blur(12px)!important;
    -webkit-backdrop-filter:saturate(1.2) blur(12px)!important;
  }
}

/* Windows: same APP TabBar, centered in the approved 768px frame. */
@media(min-width:901px){
  html body.jc-windows-tablet-v469:not(.cjrd-mini-app):not(.jc-ccj-floating-frame){
    padding-bottom:60px!important;
    margin-bottom:0!important;
  }
  html body.jc-windows-tablet-v469:not(.cjrd-mini-app):not(.jc-ccj-floating-frame) #jc-content-shell,
  html body.jc-windows-tablet-v469:not(.cjrd-mini-app):not(.jc-ccj-floating-frame) .jc-main{
    padding-bottom:0!important;
    margin-bottom:0!important;
  }
  html body.jc-windows-tablet-v469:not(.cjrd-mini-app):not(.jc-ccj-floating-frame) .jc-web-footer-v2{
    display:block!important;
    position:fixed!important;
    left:50%!important;right:auto!important;bottom:0!important;
    z-index:10030!important;
    width:768px!important;max-width:768px!important;
    height:60px!important;min-height:60px!important;
    margin:0!important;padding:0!important;
    transform:translateX(-50%)!important;
    overflow:visible!important;
    border:0!important;border-top:1px solid rgba(23,105,224,.12)!important;
    background:rgba(255,255,255,.985)!important;
    color:#8e8e93!important;
    box-shadow:0 -6px 22px rgba(18,48,82,.09)!important;
  }
}

/* Tablet browser: derive from APP, centered and capped at 768px. */
@media(min-width:761px) and (max-width:900px){
  html body:not(.jc-native-app):not(.cjrd-mini-app):not(.jc-ccj-floating-frame){padding-bottom:60px!important;margin-bottom:0!important}
  html body:not(.jc-native-app):not(.cjrd-mini-app):not(.jc-ccj-floating-frame) #jc-content-shell,
  html body:not(.jc-native-app):not(.cjrd-mini-app):not(.jc-ccj-floating-frame) .jc-main{padding-bottom:0!important;margin-bottom:0!important}
  html body:not(.jc-native-app):not(.cjrd-mini-app):not(.jc-ccj-floating-frame) .jc-web-footer-v2{
    display:block!important;position:fixed!important;left:50%!important;right:auto!important;bottom:0!important;
    z-index:10030!important;width:min(100%,768px)!important;max-width:768px!important;height:60px!important;min-height:60px!important;
    margin:0!important;padding:0!important;transform:translateX(-50%)!important;overflow:visible!important;
    border:0!important;border-top:1px solid rgba(23,105,224,.12)!important;background:rgba(255,255,255,.985)!important;
    color:#8e8e93!important;box-shadow:0 -6px 22px rgba(18,48,82,.09)!important;
  }
}

/* Strip all historical web/footer rows everywhere this contract is active. */
html body:not(.cjrd-mini-app):not(.jc-ccj-floating-frame) .jc-web-footer-v2__main{display:block!important;width:100%!important;max-width:none!important;height:60px!important;min-height:60px!important;margin:0!important;padding:0!important;text-align:center!important}
html body:not(.cjrd-mini-app):not(.jc-ccj-floating-frame) .jc-web-footer-v2__brand,
html body:not(.cjrd-mini-app):not(.jc-ccj-floating-frame) .jc-web-footer-v2__menu,
html body:not(.cjrd-mini-app):not(.jc-ccj-floating-frame) .jc-web-footer-v2__bottom,
html body:not(.cjrd-mini-app):not(.jc-ccj-floating-frame) .jc-web-footer-v2__mobile-meta,
html body:not(.cjrd-mini-app):not(.jc-ccj-floating-frame) .jc-footer-nav-webwin,
html body:not(.cjrd-mini-app):not(.jc-ccj-floating-frame) .jc-footer-webwin-install{display:none!important}

/* Beat the historical Windows/native selectors that hid or reshaped the APP TabBar. */
html body:not(.cjrd-mini-app):not(.jc-ccj-floating-frame) .jc-footer-nav-mobile-app,
html body:not(.cjrd-mini-app):not(.jc-ccj-floating-frame) .jc-mobile-tabbar-v2,
html body.jc-windows-tablet-v469:not(.cjrd-mini-app):not(.jc-ccj-floating-frame) .jc-footer-nav-mobile-app,
html body.jc-windows-tablet-v469:not(.cjrd-mini-app):not(.jc-ccj-floating-frame) .jc-mobile-tabbar-v2,
html body.jc-native-app:not(.cjrd-mini-app):not(.jc-ccj-floating-frame) .jc-footer-nav-mobile-app,
html body.jc-native-app:not(.cjrd-mini-app):not(.jc-ccj-floating-frame) .jc-mobile-tabbar-v2,
html.jc-pwa-standalone body:not(.cjrd-mini-app):not(.jc-ccj-floating-frame) .jc-footer-nav-mobile-app,
html.jc-pwa-standalone body:not(.cjrd-mini-app):not(.jc-ccj-floating-frame) .jc-mobile-tabbar-v2{
  display:grid!important;grid-template-columns:repeat(5,minmax(0,1fr))!important;align-items:center!important;
  width:100%!important;height:60px!important;min-height:60px!important;gap:0!important;margin:0!important;padding:0 4px!important;
  overflow:visible!important;background:transparent!important;
}
html body .jc-mobile-tabbar-v2>.jc-tabbar-item{position:relative!important;display:flex!important;align-items:center!important;justify-content:center!important;width:100%!important;min-width:0!important;height:60px!important;min-height:60px!important;margin:0!important;padding:0!important;gap:0!important;border:0!important;border-radius:0!important;background:transparent!important;color:#8e8e93!important;box-shadow:none!important;font-size:0!important;line-height:1!important;text-decoration:none!important;transform:none!important;-webkit-tap-highlight-color:transparent!important;touch-action:manipulation!important}
html body .jc-mobile-tabbar-v2>.jc-tabbar-item.is-current{color:#1769e0!important}
html body .jc-tabbar-icon{position:relative!important;display:grid!important;place-items:center!important;width:44px!important;height:44px!important;flex:0 0 44px!important;margin:0!important;color:inherit!important}
html body .jc-tabbar-icon svg{display:block!important;width:24px!important;height:24px!important;overflow:visible!important}
html body .jc-tabbar-outline{display:block!important;fill:none!important;stroke:currentColor!important;stroke-width:2!important;stroke-linecap:round!important;stroke-linejoin:round!important}
html body .jc-tabbar-filled{display:none!important;fill:currentColor!important;stroke:none!important}
html body .jc-tabbar-item.is-current .jc-tabbar-outline{display:none!important}
html body .jc-tabbar-item.is-current .jc-tabbar-filled{display:block!important}
html body .jc-tabbar-badge{position:absolute!important;top:3px!important;right:2px!important;display:grid!important;place-items:center!important;min-width:16px!important;height:16px!important;padding:0 4px!important;border:2px solid #fff!important;border-radius:999px!important;background:#ef3f37!important;color:#fff!important;font-size:8px!important;font-weight:900!important;line-height:1!important;letter-spacing:-.15px!important;box-shadow:0 2px 5px rgba(90,20,20,.16)!important}
html body .jc-tabbar-badge[hidden],html body .jc-tabbar-channel-probe{display:none!important}
html body .jc-tabbar-publish{overflow:visible!important;z-index:2!important}
html body .jc-tabbar-fab{position:relative!important;top:-8px!important;display:grid!important;place-items:center!important;width:52px!important;height:52px!important;min-width:52px!important;min-height:52px!important;border:3px solid #fff!important;border-radius:50%!important;background:#ff8500!important;color:#fff!important;box-shadow:0 7px 18px rgba(255,133,0,.30),0 2px 7px rgba(13,43,75,.12)!important}
html body .jc-tabbar-fab svg{width:25px!important;height:25px!important;fill:none!important;stroke:currentColor!important;stroke-width:2.8!important;stroke-linecap:round!important}

@media(max-width:360px){html body .jc-mobile-tabbar-v2{padding-inline:1px!important}html body .jc-tabbar-fab{width:50px!important;height:50px!important;min-width:50px!important;min-height:50px!important}}

/* Specialized shells keep their own navigation. */
body.cjrd-mini-app .jc-web-footer-v2,body.jc-ccj-floating-frame .jc-web-footer-v2,
body.cjrd-mini-app .jc-footer-nav-mobile-app,body.jc-ccj-floating-frame .jc-footer-nav-mobile-app{display:none!important}
body.cjrd-mini-app,body.jc-ccj-floating-frame{padding-bottom:0!important}

@media(prefers-reduced-motion:reduce){.jc-mobile-tabbar-v2 *,.jc-mobile-tabbar-v2 *::before,.jc-mobile-tabbar-v2 *::after{transition:none!important;animation:none!important}}


/* ================================================================
 * TUCUMÁN MASTER 1.0.36 · FOOTER + USER PANEL NAV ISOLATION
 * Changes only geometry; reuses the palette already present in 1.0.35.
 * ================================================================ */
@media (max-width:900px){
 html body:not(.cjrd-mini-app):not(.jc-ccj-floating-frame) .jc-web-footer-v2{
   display:block!important;position:fixed!important;bottom:0!important;left:50%!important;right:auto!important;
   width:min(100%,768px)!important;max-width:768px!important;
   height:calc(60px + env(safe-area-inset-bottom,0px))!important;
   min-height:calc(60px + env(safe-area-inset-bottom,0px))!important;
   padding:0 0 env(safe-area-inset-bottom,0px)!important;
   transform:translateX(-50%)!important;margin:0!important;z-index:10030!important;
 }
 html body:not(.cjrd-mini-app):not(.jc-ccj-floating-frame){
   padding-bottom:calc(60px + env(safe-area-inset-bottom,0px))!important;
   margin-bottom:0!important;
 }
}
@media (min-width:901px){
 html body:not(.cjrd-mini-app):not(.jc-ccj-floating-frame) .jc-web-footer-v2{
   display:block!important;position:fixed!important;bottom:0!important;left:50%!important;right:auto!important;
   width:min(768px,100vw)!important;max-width:768px!important;height:60px!important;min-height:60px!important;
   padding:0!important;transform:translateX(-50%)!important;margin:0!important;z-index:10030!important;
 }
 html body:not(.cjrd-mini-app):not(.jc-ccj-floating-frame){padding-bottom:60px!important;margin-bottom:0!important}
}
/* Neutralize any inherited oversized web footer rows; App tabbar is the only global footer. */
html body:not(.cjrd-mini-app):not(.jc-ccj-floating-frame) .jc-web-footer-v2__main{
  display:block!important;width:100%!important;max-width:none!important;height:60px!important;
  min-height:60px!important;margin:0!important;padding:0!important;
}
html body:not(.cjrd-mini-app):not(.jc-ccj-floating-frame) .jc-web-footer-v2 :is(
  .jc-footer-nav-webwin,.jc-web-footer-v2__brand,.jc-web-footer-v2__bottom,
  .jc-web-footer-v2__menu,.jc-web-footer-v2__mobile-meta,.jc-footer-webwin-install
){display:none!important}
html body:not(.cjrd-mini-app):not(.jc-ccj-floating-frame) .jc-web-footer-v2 .jc-mobile-tabbar-v2{
  display:grid!important;width:100%!important;min-height:60px!important;height:60px!important;
  grid-template-columns:repeat(5,minmax(0,1fr))!important;padding:0 4px!important;gap:0!important;
}
/* The existing panel's five user links stay available, but as in-content tabs,
   NOT as a second floating footer. This overrides V498's Windows !important rules. */
@media(max-width:900px),(min-width:901px){
 html body:not(.cjrd-mini-app):not(.jc-ccj-floating-frame) .jc-mobile-panel-nav,
 html body.jc-windows-tablet-v469.jc-windows-tablet-semantics-v498:not(.cjrd-mini-app):not(.jc-ccj-floating-frame) .jc-mobile-panel-nav,
 html.jc-pwa-standalone body.jc-windows-tablet-v469.jc-windows-tablet-semantics-v498:not(.cjrd-mini-app):not(.jc-ccj-floating-frame) .jc-mobile-panel-nav,
 html.jc-native-app body.jc-windows-tablet-v469.jc-windows-tablet-semantics-v498:not(.cjrd-mini-app):not(.jc-ccj-floating-frame) .jc-mobile-panel-nav{
   position:relative!important;display:grid!important;left:auto!important;right:auto!important;bottom:auto!important;
   top:auto!important;z-index:auto!important;transform:none!important;
   box-sizing:border-box!important;width:100%!important;max-width:100%!important;
   margin:12px auto 18px!important;padding:7px!important;
   grid-template-columns:repeat(5,minmax(0,1fr))!important;
   border:1px solid var(--jc-border)!important;border-radius:14px!important;
   background:var(--jc-white,#fff)!important;box-shadow:none!important;
 }
}
/* V498 reserves space for the former floating panel bar; now only the global footer needs it. */
@media(min-width:901px){
 html body.jc-windows-tablet-v469.jc-windows-tablet-semantics-v498 .jc-dashboard-page{padding-bottom:26px!important}
}


/* =======================================================================
   TC MASTER v1.0.46 | PANEL NAVIGATION INLINE WIDTH + ICON SAFETY
   Anula las reglas V498 que mostraban una segunda barra fija. Los cinco
   accesos del panel permanecen navegables, como pestañas dentro del flujo.
   APP movil manda; Windows limita la vista a 768px sin depender del UA.
   No modifica la TabBar global .jc-mobile-tabbar-v2 ni los motores.
   ======================================================================= */
html body:not(.cjrd-mini-app):not(.jc-ccj-floating-frame) nav.jc-mobile-panel-nav,
html body.jc-windows-tablet-v469.jc-windows-tablet-semantics-v498:not(.cjrd-mini-app):not(.jc-ccj-floating-frame) nav.jc-mobile-panel-nav{
  position:relative!important;
  inset:auto!important;
  left:auto!important;right:auto!important;top:auto!important;bottom:auto!important;
  z-index:auto!important;
  transform:none!important;
  box-sizing:border-box!important;
  display:grid!important;
  grid-template-columns:repeat(5,minmax(0,1fr))!important;
  align-items:stretch!important;
  width:calc(100% - 20px)!important;
  max-width:744px!important;
  min-width:0!important;
  height:auto!important;min-height:0!important;
  margin:12px auto 18px!important;
  padding:6px!important;
  gap:2px!important;
  overflow:hidden!important;
  background:#fff!important;
  border:1px solid var(--jc-border,#dfe5eb)!important;
  border-radius:14px!important;
  box-shadow:0 4px 14px rgba(20,35,55,.07)!important;
  -webkit-backdrop-filter:none!important;backdrop-filter:none!important;
}
html body:not(.cjrd-mini-app):not(.jc-ccj-floating-frame) nav.jc-mobile-panel-nav > a,
html body.jc-windows-tablet-v469.jc-windows-tablet-semantics-v498:not(.cjrd-mini-app):not(.jc-ccj-floating-frame) nav.jc-mobile-panel-nav > a{
  box-sizing:border-box!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  flex-direction:column!important;
  flex-wrap:nowrap!important;
  min-width:0!important;max-width:100%!important;
  min-height:52px!important;height:auto!important;
  margin:0!important;padding:7px 2px!important;
  gap:4px!important;
  border:0!important;border-radius:9px!important;
  box-shadow:none!important;transform:none!important;
  background:transparent!important;
  color:var(--jc-muted,#66717d)!important;
  text-decoration:none!important;
  text-align:center!important;
  font-size:11px!important;font-weight:750!important;line-height:1.2!important;
}
html body:not(.cjrd-mini-app):not(.jc-ccj-floating-frame) nav.jc-mobile-panel-nav > a svg,
html body.jc-windows-tablet-v469.jc-windows-tablet-semantics-v498:not(.cjrd-mini-app):not(.jc-ccj-floating-frame) nav.jc-mobile-panel-nav > a svg{
  display:block!important;
  box-sizing:border-box!important;
  width:21px!important;min-width:21px!important;max-width:21px!important;
  height:21px!important;min-height:21px!important;max-height:21px!important;
  flex:0 0 21px!important;
  margin:0!important;padding:0!important;
  overflow:visible!important;
}
html body:not(.cjrd-mini-app):not(.jc-ccj-floating-frame) nav.jc-mobile-panel-nav > a span,
html body.jc-windows-tablet-v469.jc-windows-tablet-semantics-v498:not(.cjrd-mini-app):not(.jc-ccj-floating-frame) nav.jc-mobile-panel-nav > a span{
  display:block!important;
  box-sizing:border-box!important;
  min-width:0!important;max-width:100%!important;
  margin:0!important;padding:0!important;
  white-space:normal!important;overflow-wrap:anywhere!important;
  font-size:11px!important;font-weight:750!important;line-height:1.2!important;
}
html body:not(.cjrd-mini-app):not(.jc-ccj-floating-frame) nav.jc-mobile-panel-nav > a.is-active,
html body.jc-windows-tablet-v469.jc-windows-tablet-semantics-v498:not(.cjrd-mini-app):not(.jc-ccj-floating-frame) nav.jc-mobile-panel-nav > a.is-active{
  background:var(--jc-primary-soft,#eaf3ff)!important;
  color:var(--jc-primary,#1769e0)!important;
}
