/* RIDO v0.48.8 — customer-portal UI polish.
   Scope: presentation only. RIDO Order business logic is intentionally untouched. */

html body.rido-portal-body.rido-ui-v0488{
  --rido-0488-ink:#0b2f43;
  --rido-0488-text:#405f70;
  --rido-0488-muted:#617a89;
  --rido-0488-line:#d5e3ea;
  --rido-0488-soft:#eef7fa;
  --rido-0488-active:#084b66;
  --rido-0488-primary:#0b86b6;
  --rido-0488-focus:#f0a22e;
}

/* 1. One strong, readable RIDO brand in every business customer page. */
html body.rido-portal-body.rido-ui-v0488 .portal-app-brand{
  display:flex!important;
  align-items:center!important;
  gap:12px!important;
  min-width:238px!important;
  text-decoration:none!important;
}
html body.rido-portal-body.rido-ui-v0488 .portal-app-brand>.brand-mark{
  display:grid!important;
  place-items:center!important;
  width:44px!important;
  height:44px!important;
  min-width:44px!important;
  border-radius:13px!important;
  background:linear-gradient(145deg,#07506e 0%,#0a94c8 100%)!important;
  color:#fff!important;
  -webkit-text-fill-color:#fff!important;
  font-size:17px!important;
  line-height:1!important;
  font-weight:950!important;
  letter-spacing:0!important;
  opacity:1!important;
  text-shadow:0 1px 1px rgba(0,0,0,.12)!important;
  box-shadow:0 7px 18px rgba(7,80,110,.18)!important;
}
html body.rido-portal-body.rido-ui-v0488 .portal-app-brand>span:last-child{
  display:grid!important;
  gap:1px!important;
  min-width:0!important;
}
html body.rido-portal-body.rido-ui-v0488 .portal-app-brand>span:last-child>strong{
  color:#092a3d!important;
  font-size:15px!important;
  line-height:1.2!important;
  font-weight:900!important;
  letter-spacing:-.01em!important;
}
html body.rido-portal-body.rido-ui-v0488 .portal-app-brand>span:last-child>small{
  color:#315a70!important;
  font-size:10.5px!important;
  line-height:1.25!important;
  font-weight:850!important;
  letter-spacing:.055em!important;
  text-transform:uppercase!important;
  opacity:1!important;
}

/* 2. Shared visual language for customer-management components. */
html body.rido-portal-body.rido-ui-v0488 :where(
  .signage-panel,.signage-launcher-panel,.signage-kpi,.signage-step,
  .menu-customer-card,.menu-summary-grid>*,.menu-setup-guide,
  .customer-screen-launcher-card,.workspace-card,.portal-card,.order-admin-card
){
  border-color:var(--rido-0488-line)!important;
  border-radius:16px!important;
  box-shadow:0 8px 24px rgba(10,47,67,.045)!important;
}
html body.rido-portal-body.rido-ui-v0488 :where(
  .signage-workspace-nav,.portal-subnav,.customer-commerce-nav,.menu-tabs
){
  border-color:var(--rido-0488-line)!important;
  border-radius:14px!important;
  box-shadow:0 6px 18px rgba(10,47,67,.035)!important;
}
html body.rido-portal-body.rido-ui-v0488 :where(
  .signage-workspace-nav a,.portal-subnav a,.customer-commerce-nav a,.menu-tabs a
){
  min-height:40px!important;
  display:inline-flex!important;
  align-items:center!important;
  color:#274b60!important;
  font-weight:800!important;
  opacity:1!important;
}
html body.rido-portal-body.rido-ui-v0488 :where(
  .signage-workspace-nav a.active,.portal-subnav a.active,.customer-commerce-nav a.active,.menu-tabs a.active
){
  background:#eaf6fa!important;
  color:#075f83!important;
}
html body.rido-portal-body.rido-ui-v0488 :where(input:not([type=checkbox]):not([type=radio]),select,textarea){
  min-height:44px!important;
  border-radius:11px!important;
  border-color:#adc2cf!important;
  color:#102f42!important;
}
html body.rido-portal-body.rido-ui-v0488 :where(a.btn,button.btn,.mini-btn,.customer-screen-open-btn,.customer-screen-manage-btn){
  min-height:42px!important;
  border-radius:10px!important;
  font-weight:850!important;
}
html body.rido-portal-body.rido-ui-v0488 :where(a,button,input,select,textarea,summary):focus-visible{
  outline:3px solid var(--rido-0488-focus)!important;
  outline-offset:3px!important;
}

/* 3. RIDO Signage: monitor icon must be immediately recognizable. */
html body.rido-portal-body.rido-ui-v0488 .customer-screen-visual{
  position:relative!important;
  display:block!important;
  width:54px!important;
  height:54px!important;
  min-width:54px!important;
  flex:0 0 54px!important;
  border-radius:14px!important;
  border:1px solid #19789b!important;
  background:linear-gradient(145deg,#07536f 0%,#0b8fba 100%)!important;
  color:transparent!important;
  font-size:0!important;
  box-shadow:inset 0 0 0 3px rgba(255,255,255,.14),0 6px 16px rgba(7,76,102,.13)!important;
}
html body.rido-portal-body.rido-ui-v0488 .customer-screen-visual::before{
  content:""!important;
  position:absolute!important;
  left:10px!important;
  top:10px!important;
  width:32px!important;
  height:23px!important;
  border:3px solid #fff!important;
  border-radius:5px!important;
  background:rgba(255,255,255,.08)!important;
  box-sizing:border-box!important;
  opacity:1!important;
}
html body.rido-portal-body.rido-ui-v0488 .customer-screen-visual::after{
  content:""!important;
  position:absolute!important;
  left:17px!important;
  top:37px!important;
  width:20px!important;
  height:3px!important;
  border-radius:3px!important;
  background:#fff!important;
  box-shadow:0 -5px 0 -1px #fff!important;
  opacity:1!important;
}
html body.rido-portal-body.rido-ui-v0488 .signage-device-icon{
  border:3px solid #0d5d7a!important;
  background:#f2fbfe!important;
}
html body.rido-portal-body.rido-ui-v0488 .signage-device-icon::after{background:#0d5d7a!important}

/* Keep Signage heading and controls in normal document flow on desktop. */
@media(min-width:861px){
  html body.rido-portal-body.rido-ui-v0488 .signage-workspace-nav{
    position:static!important;
    top:auto!important;
    z-index:auto!important;
  }
  html body.rido-portal-body.rido-ui-v0488 .signage-workspace-head{
    position:relative!important;
    z-index:1!important;
    margin-top:2px!important;
  }
}

/* 4. RIDO Menu: true two-column workspace, never overlay content. */
@media(min-width:861px){
  html body.rido-portal-body.rido-ui-v0488 .menu-customer-shell{
    display:grid!important;
    grid-template-columns:220px minmax(0,1fr)!important;
    gap:20px!important;
    align-items:start!important;
    position:relative!important;
    isolation:isolate!important;
  }
  html body.rido-portal-body.rido-ui-v0488 .menu-customer-nav{
    position:sticky!important;
    top:86px!important;
    z-index:5!important;
    width:220px!important;
    min-width:220px!important;
    margin:0!important;
    align-self:start!important;
  }
  html body.rido-portal-body.rido-ui-v0488 .menu-customer-main{
    position:relative!important;
    z-index:1!important;
    min-width:0!important;
    width:100%!important;
    margin:0!important;
  }
}
html body.rido-portal-body.rido-ui-v0488 .menu-customer-nav>a{
  color:#183b4e!important;
  opacity:1!important;
}
html body.rido-portal-body.rido-ui-v0488 .menu-customer-nav>a.active{
  background:var(--rido-0488-active)!important;
  color:#fff!important;
}
html body.rido-portal-body.rido-ui-v0488 .menu-customer-nav>a.active :where(span,strong,b,small,em){
  color:#fff!important;
  -webkit-text-fill-color:#fff!important;
  opacity:1!important;
}
html body.rido-portal-body.rido-ui-v0488 .menu-customer-nav>a.active b{
  background:rgba(255,255,255,.18)!important;
}

/* 5. Status/text contrast: no disabled-looking labels without actual disabled state. */
html body.rido-portal-body.rido-ui-v0488 :where(.pill,.badge,.status-chip,.setup-state,.order-step-state){opacity:1!important}
html body.rido-portal-body.rido-ui-v0488 :where(.muted,.subtle,.helper-text){color:var(--rido-0488-muted)!important;opacity:1!important}
html body.rido-portal-body.rido-ui-v0488 [aria-disabled="true"],
html body.rido-portal-body.rido-ui-v0488 :disabled{opacity:.62!important}

@media(max-width:860px){
  html body.rido-portal-body.rido-ui-v0488 .portal-app-brand{min-width:0!important;gap:9px!important}
  html body.rido-portal-body.rido-ui-v0488 .portal-app-brand>.brand-mark{width:40px!important;height:40px!important;min-width:40px!important}
  html body.rido-portal-body.rido-ui-v0488 .menu-customer-shell{display:block!important}
  html body.rido-portal-body.rido-ui-v0488 .menu-customer-nav{
    position:sticky!important;
    top:62px!important;
    width:auto!important;
    min-width:0!important;
    display:flex!important;
    overflow-x:auto!important;
  }
  html body.rido-portal-body.rido-ui-v0488 .customer-screen-visual{
    width:50px!important;height:50px!important;min-width:50px!important;flex-basis:50px!important;
  }
  html body.rido-portal-body.rido-ui-v0488 .customer-screen-visual::before{
    left:9px!important;top:9px!important;width:30px!important;height:22px!important;
  }
  html body.rido-portal-body.rido-ui-v0488 .customer-screen-visual::after{
    left:15px!important;top:35px!important;
  }
}
