/* Signed-in customer footer — shared, centered and content-sized.
   Isolated to .msh-customer-footer; never modifies public footer, Master
   Admin, sidebar Support rail, Back to Top, or fixed mobile dock. */
html[data-msh-surface="customer"] body footer.msh-customer-footer{
 display:block!important;
 width:100%;
 height:auto!important;
 min-height:0!important;
 max-height:none!important;
 box-sizing:border-box;
 margin:0!important;
 padding:0!important;
 background:linear-gradient(180deg,#f9fcfe 0%,#fff 100%)!important;
 border-top:1px solid #dce8ef!important;
 color:#2b4455!important;
 text-align:center!important;
 overflow:visible;
 box-shadow:none!important;
}
html[data-msh-surface="customer"] body footer.msh-customer-footer .msh-customer-footer-inner{
 width:min(calc(100% - 40px),960px);
 max-width:960px;
 margin-inline:auto;
 padding:29px 0 26px;
 display:flex;
 flex-direction:column;
 align-items:center;
 justify-content:flex-start;
 gap:0;
 box-sizing:border-box;
 min-height:0;
 text-align:center;
}
html[data-msh-surface="customer"] body footer.msh-customer-footer .msh-customer-footer-logo{
 display:inline-block;
 margin:0 auto!important;
 font:850 clamp(24px,3.3vw,30px)/1.15 var(--msh-heading-font,Inter,"Segoe UI",Arial,sans-serif)!important;
 letter-spacing:-.06em!important;
 color:#182c3b!important;
 text-decoration:none!important;
 white-space:nowrap;
}
html[data-msh-surface="customer"] body footer.msh-customer-footer .msh-customer-footer-logo span{
 color:#0caef0!important;
}
html[data-msh-surface="customer"] body footer.msh-customer-footer .msh-customer-footer-tagline{
 display:block;
 margin:10px 0 0!important;
 padding:0!important;
 width:100%;
 color:#6c8294!important;
 font:450 13px/1.55 var(--msh-interface-font,ui-sans-serif,Arial,sans-serif)!important;
 letter-spacing:0!important;
 text-align:center!important;
}
html[data-msh-surface="customer"] body footer.msh-customer-footer .msh-customer-footer-tagline span{
 display:block;
 text-align:center;
}
html[data-msh-surface="customer"] body footer.msh-customer-footer .msh-customer-footer-share{
 display:block;
 width:100%;
 margin:19px 0 0;
 padding:0;
 text-align:center;
}
html[data-msh-surface="customer"] body footer.msh-customer-footer .msh-customer-footer-share .msh-direct-share{
 display:flex!important;
 flex-wrap:wrap!important;
 justify-content:center!important;
 align-items:center!important;
 width:100%!important;
 max-width:100%!important;
 min-width:0!important;
 gap:6px!important;
 margin:0!important;
 padding:0!important;
 overflow:visible!important;
 white-space:normal!important;
 box-sizing:border-box;
}
html[data-msh-surface="customer"] body footer.msh-customer-footer .msh-customer-footer-share .msh-direct-share button{
 display:inline-flex;
 align-items:center;
 justify-content:center;
 flex:0 1 auto;
 min-height:36px;
 color:#516b7d;
 font-size:11px!important;
 gap:5px;
 padding:7px 8px;
 max-width:100%;
}
html[data-msh-surface="customer"] body footer.msh-customer-footer .msh-customer-footer-links{
 display:flex!important;
 align-items:center!important;
 justify-content:center!important;
 flex-wrap:wrap!important;
 gap:10px 24px!important;
 border-top:1px solid #e1ebf1;
 width:100%;
 margin:17px auto 0!important;
 padding:17px 0 0!important;
 text-align:center!important;
 box-sizing:border-box;
}
html[data-msh-surface="customer"] body footer.msh-customer-footer .msh-customer-footer-links a{
 display:inline-block;
 color:#455d70!important;
 font-size:12px!important;
 font-weight:600!important;
 line-height:1.5;
 padding:4px 0!important;
 margin:0!important;
 text-decoration:none!important;
 white-space:normal!important;
}
html[data-msh-surface="customer"] body footer.msh-customer-footer .msh-customer-footer-links a:hover{
 color:#078fbe!important;
}
html[data-msh-surface="customer"] body footer.msh-customer-footer :is(a,button):focus-visible{
 outline:3px solid #9bdcf4!important;
 outline-offset:3px;
 border-radius:5px;
}
html[data-msh-surface="customer"] body footer.msh-customer-footer .msh-customer-footer-copyright{
 display:block;
 width:100%;
 margin:16px auto 0!important;
 color:#8a9ba9!important;
 font:450 12px/1.5 var(--msh-interface-font,ui-sans-serif,Arial,sans-serif)!important;
 text-align:center!important;
}
html[data-msh-surface="customer"] body footer.msh-customer-footer .msh-customer-footer-account-note{
 color:#8393a3!important;
 font-size:11px!important;
 margin:8px auto 0!important;
 text-align:center!important;
}
/* Prevent the old full-viewport dashboard main from creating the large gap
   under a short Reading History / empty data panel on small phones. */
@media(max-width:860px){
 html[data-msh-surface="customer"] body.msh-dashboard-page .msh-customer-workspace .dashboard-main{
  min-height:0!important;
  height:auto!important;
  padding-bottom:18px!important;
 }
 html[data-msh-surface="customer"] body.msh-dashboard-page #dashboardRoot #msh-command{
  margin-bottom:0!important;
 }
 html[data-msh-surface="customer"] body.msh-dashboard-page footer.msh-customer-footer .msh-customer-footer-inner{
  padding-bottom:calc(112px + env(safe-area-inset-bottom,0px));
 }
 html[data-msh-surface="customer"] body footer.msh-customer-footer .msh-customer-footer-links{
  column-gap:19px!important;
  row-gap:9px!important;
 }
 html[data-msh-surface="customer"] body footer.msh-customer-footer .msh-customer-footer-share .msh-direct-share button{
  font-size:10px!important;
  flex-direction:column;
  gap:2px;
  min-width:44px;
  max-width:85px;
  padding:6px 3px;
 }
 html[data-msh-surface="customer"] body footer.msh-customer-footer .msh-customer-footer-inner{
  width:calc(100% - 36px);
  padding-top:25px;
 }
}
@media(max-width:380px){
 html[data-msh-surface="customer"] body footer.msh-customer-footer .msh-customer-footer-links{
  column-gap:12px!important;
 }
 html[data-msh-surface="customer"] body footer.msh-customer-footer .msh-customer-footer-links a{font-size:11px!important;}
}
@media(prefers-reduced-motion:reduce){
 html[data-msh-surface="customer"] body footer.msh-customer-footer *{transition:none!important;}
}

/* Back to Top dock layering repair (customer dashboard phones only).
   The global scroll-progress button has z-index:27, while the fixed
   Home/Tanks/Usage/Alarms/More dock is z-index:90. Raise it just above
   the dock and offset it vertically; preserve all existing visuals,
   scroll threshold, opacity, click behavior, and the public/admin UI. */
@media(max-width:860px){
 html[data-msh-surface="customer"] body.msh-dashboard-page > #mshBackToTop{
  z-index:95!important;
  bottom:calc(92px + env(safe-area-inset-bottom,0px))!important;
 }
}
