/* E-commerce Sales Analysis V20 — mobile top/header layout repair.
   Keeps the V17 base, restores the mobile top area, and prevents the app header from overflowing. */
:root{--top-green:#39ff14;--top-cyan:#26e6ff;--top-bg:#050506;}
body[data-project-key="ECOMMERCE_SALES_ANALYSIS"] .neon-statusbar,
body[data-project-key="ECOMMERCE_SALES_ANALYSIS"] #root header,
body[data-project-key="ECOMMERCE_SALES_ANALYSIS"] #root header *{box-sizing:border-box;}
body[data-project-key="ECOMMERCE_SALES_ANALYSIS"] .neon-statusbar{
  width:100%!important;
  max-width:100vw!important;
  min-height:52px!important;
  padding:8px max(10px,env(safe-area-inset-left)) 8px max(10px,env(safe-area-inset-right))!important;
  display:grid!important;
  grid-template-columns:auto auto minmax(0,1fr) auto!important;
  align-items:center!important;
  gap:8px!important;
  overflow:hidden!important;
  background:linear-gradient(90deg,rgba(0,0,0,.98),rgba(0,26,7,.96),rgba(0,0,0,.98))!important;
  border-bottom:1px solid rgba(57,255,20,.75)!important;
}
body[data-project-key="ECOMMERCE_SALES_ANALYSIS"] .neon-statusbar strong{
  min-width:0!important;
  max-width:100%!important;
  white-space:nowrap!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
  color:var(--top-green)!important;
  font-size:clamp(.82rem,3.8vw,1rem)!important;
  line-height:1!important;
  letter-spacing:.08em!important;
}
body[data-project-key="ECOMMERCE_SALES_ANALYSIS"] .neon-status-copy{
  min-width:0!important;
  white-space:nowrap!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
  opacity:.86!important;
}
body[data-project-key="ECOMMERCE_SALES_ANALYSIS"] .neon-install{
  justify-self:end!important;
  min-width:0!important;
  min-height:38px!important;
  padding:.48rem .68rem!important;
  white-space:nowrap!important;
  border-radius:0!important;
  background:#06130a!important;
  box-shadow:0 0 0 1px rgba(57,255,20,.25),0 0 15px rgba(57,255,20,.18)!important;
}
body[data-project-key="ECOMMERCE_SALES_ANALYSIS"] #root header{
  max-width:100vw!important;
  overflow:hidden!important;
}
body[data-project-key="ECOMMERCE_SALES_ANALYSIS"] #root header .container{
  width:100%!important;
  max-width:100%!important;
  padding-inline:clamp(.7rem,2.6vw,1.5rem)!important;
}
body[data-project-key="ECOMMERCE_SALES_ANALYSIS"] #root header .container>div{
  width:100%!important;
  max-width:100%!important;
  min-width:0!important;
}
body[data-project-key="ECOMMERCE_SALES_ANALYSIS"] #root header h1{
  max-width:100%!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
}
@media(max-width:900px){
  body[data-project-key="ECOMMERCE_SALES_ANALYSIS"] .neon-statusbar{display:grid!important;position:relative!important;top:auto!important;z-index:80!important;}
  body[data-project-key="ECOMMERCE_SALES_ANALYSIS"] .neon-brand-icon{width:26px!important;height:26px!important;flex-basis:26px!important;}
  body[data-project-key="ECOMMERCE_SALES_ANALYSIS"] .neon-status-copy{display:none!important;}
  body[data-project-key="ECOMMERCE_SALES_ANALYSIS"] .neon-live-dot{width:9px!important;height:9px!important;}
  body[data-project-key="ECOMMERCE_SALES_ANALYSIS"] .neon-install{font-size:.56rem!important;letter-spacing:.08em!important;}
  body[data-project-key="ECOMMERCE_SALES_ANALYSIS"] .orb-v11-shell{margin-top:8px!important;}
  body[data-project-key="ECOMMERCE_SALES_ANALYSIS"] #root header{
    position:sticky!important;
    top:0!important;
    z-index:70!important;
    background:linear-gradient(135deg,rgba(3,3,4,.98),rgba(2,28,8,.96))!important;
  }
  body[data-project-key="ECOMMERCE_SALES_ANALYSIS"] #root header .container{padding:.72rem .7rem!important;}
  body[data-project-key="ECOMMERCE_SALES_ANALYSIS"] #root header .container>div{
    display:grid!important;
    grid-template-columns:minmax(0,1fr)!important;
    gap:.55rem!important;
  }
  body[data-project-key="ECOMMERCE_SALES_ANALYSIS"] #root header h1{
    font-size:clamp(1.05rem,6vw,1.45rem)!important;
    line-height:1.06!important;
    white-space:nowrap!important;
  }
  body[data-project-key="ECOMMERCE_SALES_ANALYSIS"] #root header h1 + p{
    display:none!important;
  }
  body[data-project-key="ECOMMERCE_SALES_ANALYSIS"] #root header [class*="items-center"][class*="gap-4"]{
    width:100%!important;
    display:grid!important;
    grid-template-columns:minmax(0,1fr) auto!important;
    align-items:center!important;
    gap:.5rem!important;
  }
  body[data-project-key="ECOMMERCE_SALES_ANALYSIS"] #root header [class*="items-center"][class*="gap-3"]{
    min-width:0!important;
    display:flex!important;
    align-items:center!important;
    gap:.45rem!important;
  }
  body[data-project-key="ECOMMERCE_SALES_ANALYSIS"] #root header [class*="text-right"]{
    min-width:0!important;
    text-align:left!important;
  }
  body[data-project-key="ECOMMERCE_SALES_ANALYSIS"] #root header [class*="text-right"] p:first-child{
    max-width:54vw!important;
    white-space:nowrap!important;
    overflow:hidden!important;
    text-overflow:ellipsis!important;
    font-size:.78rem!important;
  }
  body[data-project-key="ECOMMERCE_SALES_ANALYSIS"] #root header [class*="text-right"] p:not(:first-child),
  body[data-project-key="ECOMMERCE_SALES_ANALYSIS"] #root header [class*="text-right"] .text-xs{
    display:none!important;
  }
  body[data-project-key="ECOMMERCE_SALES_ANALYSIS"] #root header button{
    min-height:40px!important;
    max-width:38vw!important;
    overflow:hidden!important;
    text-overflow:ellipsis!important;
    white-space:nowrap!important;
    padding-inline:.65rem!important;
  }
  body[data-project-key="ECOMMERCE_SALES_ANALYSIS"] #root [role="tablist"]{
    flex-wrap:nowrap!important;
    overflow-x:auto!important;
    overflow-y:hidden!important;
    -webkit-overflow-scrolling:touch!important;
    scroll-snap-type:x proximity!important;
    padding:.45rem!important;
  }
  body[data-project-key="ECOMMERCE_SALES_ANALYSIS"] #root [role="tab"]{
    flex:0 0 58px!important;
    width:58px!important;
    min-width:58px!important;
    min-height:46px!important;
    scroll-snap-align:start!important;
  }
}
@media(max-width:420px){
  body[data-project-key="ECOMMERCE_SALES_ANALYSIS"] .neon-statusbar{
    grid-template-columns:auto auto minmax(0,1fr)!important;
    row-gap:6px!important;
  }
  body[data-project-key="ECOMMERCE_SALES_ANALYSIS"] .neon-install{
    grid-column:1 / -1!important;
    justify-self:stretch!important;
    width:100%!important;
  }
  body[data-project-key="ECOMMERCE_SALES_ANALYSIS"] #root header [class*="text-right"] p:first-child{max-width:48vw!important;}
}
