
/* TABLEZAPP v0.11 hard logo/footer fix - must be loaded LAST */
:root{--tz-navy:#071426;--tz-orange:#f59e0b}

/* Adaptive logo */
html[data-theme="dark"] img.adaptive-logo,
body.dark img.adaptive-logo{
  content:url("/static/img/tablezapp-logo-dark.png")!important;
}
html[data-theme="light"] img.adaptive-logo,
body:not(.dark) img.adaptive-logo{
  content:url("/static/img/tablezapp-logo-light.png")!important;
}

/* Top/sidebar logo size */
.sidebar img.adaptive-logo,
.sidebar .brand-logo img,
.sidebar .side-logo img{
  width:170px!important;
  max-width:170px!important;
  height:auto!important;
  max-height:58px!important;
  object-fit:contain!important;
  background:transparent!important;
  padding:0!important;
  border-radius:0!important;
}

.app-main .app-top-logo img,
.main .top-logo img,
.app-top-logo img,
.top-logo img{
  width:240px!important;
  max-width:240px!important;
  height:auto!important;
  max-height:76px!important;
  object-fit:contain!important;
  background:transparent!important;
  padding:0!important;
  border-radius:0!important;
}

/* Footer: absolute hard limit */
footer.footer,
footer.tz-footer,
.footer.tz-footer,
.tz-footer,
.footer{
  min-height:54px!important;
  max-height:76px!important;
  height:auto!important;
  overflow:hidden!important;
  padding:8px 14px!important;
  margin-top:auto!important;
  border-radius:12px!important;
  background:#071426!important;
  display:flex!important;
  align-items:center!important;
  justify-content:space-between!important;
  gap:12px!important;
  flex-wrap:nowrap!important;
  font-size:12px!important;
  line-height:1.1!important;
}

footer.footer img,
footer.tz-footer img,
.footer.tz-footer img,
.tz-footer img,
.footer img,
.footer img.adaptive-logo,
.tz-footer img.adaptive-logo{
  display:block!important;
  width:150px!important;
  min-width:150px!important;
  max-width:150px!important;
  height:auto!important;
  max-height:42px!important;
  object-fit:contain!important;
  background:transparent!important;
  padding:0!important;
  margin:0!important;
  border-radius:0!important;
  transform:none!important;
}

.footer div,
.tz-footer div{
  margin:0!important;
  padding:0!important;
}

.footer-links{
  display:flex!important;
  align-items:center!important;
  justify-content:flex-end!important;
  gap:10px!important;
  white-space:nowrap!important;
}

.footer-links a{
  color:#fff!important;
  text-decoration:none!important;
  font-weight:800!important;
}

.footer-phone-text,
.tz-footer-phone-text{
  display:none!important;
}

.whatsapp-icon{
  display:inline-flex!important;
  width:28px!important;
  height:28px!important;
  min-width:28px!important;
  border-radius:50%!important;
  background:#25D366!important;
  color:#fff!important;
  align-items:center!important;
  justify-content:center!important;
  font-size:15px!important;
  text-decoration:none!important;
  line-height:1!important;
}

@media(max-width:950px){
  footer.footer,
  footer.tz-footer,
  .footer.tz-footer,
  .tz-footer,
  .footer{
    max-height:none!important;
    flex-wrap:wrap!important;
    justify-content:center!important;
    text-align:center!important;
    padding:10px!important;
  }
  footer.footer img,
  footer.tz-footer img,
  .footer img,
  .tz-footer img{
    width:130px!important;
    min-width:130px!important;
    max-width:130px!important;
    max-height:38px!important;
  }
}
