/* Business-only Android-inspired hero header; Admin navigation remains untouched. */
body.rb-business-portal{--sidebar:300px}
.rb-business-portal .sidebar{padding:11px 11px 14px;gap:0}
.rb-business-portal .sidebar .nav{flex:1;min-height:0;align-content:start;padding:13px 1px 6px;scrollbar-width:thin;scrollbar-color:rgba(152,108,224,.55) transparent}
.rb-business-portal .sidebar .nav button{min-width:0}
.rb-business-portal .sidebar .nav .nav-ai-badge{flex:0 0 auto;margin-left:auto}
.rb-business-portal .sidebar .help{margin-top:0}
.rb-sidebar-hero{position:relative;isolation:isolate;display:flex;flex:none;flex-direction:column;justify-content:space-between;min-height:250px;padding:15px 14px 17px;border-radius:17px;background:linear-gradient(90deg,#7738F4 0%,#FF4F8F 52%,#FF8C26 100%);color:#fff;overflow:visible;box-shadow:inset 0 0 0 1px rgba(255,255,255,.12)}
.rb-sidebar-hero::before{content:"";position:absolute;inset:0;border-radius:inherit;pointer-events:none;z-index:1;background:linear-gradient(0deg,rgba(8,11,24,.76),rgba(8,11,24,.46) 50%,rgba(8,11,24,.32))}
.rb-sidebar-hero::after{content:"";position:absolute;inset:0;border-radius:inherit;pointer-events:none;z-index:1;background:linear-gradient(90deg,rgba(8,11,24,.2),transparent 65%)}
/* The selected branch image fills the hero; merchant logo is a contain-sized fallback.
   The Rafiyki mark is deliberately NOT used as the background. */
.rb-sidebar-hero-artwork{position:absolute;inset:0;overflow:hidden;pointer-events:none;z-index:0;border-radius:17px;clip-path:inset(0 round 17px)}
.rb-sidebar-hero-artwork img{display:block;width:100%;height:100%;opacity:0;transition:opacity .22s ease;object-position:center;object-fit:cover}
.rb-sidebar-hero-artwork.has-image img{opacity:.95}
.rb-sidebar-hero-artwork.is-merchant img{object-fit:cover;padding:0;opacity:.82}
@media(prefers-reduced-motion:reduce){.rb-sidebar-hero-artwork img{transition:none}}
.rb-sidebar-hero-top{display:flex;align-items:flex-start;gap:9px;position:relative;z-index:3}
.rb-sidebar-brand{display:flex;align-items:center;gap:9px;min-width:0;flex:1;padding:8px 10px;border-radius:13px;border:1px solid rgba(255,255,255,.20);background:linear-gradient(120deg,rgba(125,45,229,.38),rgba(222,65,170,.24));-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px);box-shadow:0 4px 14px rgba(54,13,96,.13)}
.rb-sidebar-brand>img{width:44px;height:44px;flex:none;object-fit:contain;border:0;background:transparent;border-radius:0;box-shadow:none;padding:0;filter:drop-shadow(0 2px 8px rgba(0,0,0,.22))}
.rb-sidebar-brand-title{display:grid;gap:1px;line-height:1.05;min-width:0;white-space:nowrap}
.rb-sidebar-brand-title strong{font-size:16px;font-weight:900;color:#fff;-webkit-text-fill-color:#fff;text-shadow:0 1px 5px rgba(0,0,0,.45)}
.rb-sidebar-brand-title span{font-size:19px;font-weight:900;letter-spacing:-.04em;line-height:1.07;color:#f9ecff;-webkit-text-fill-color:#f9ecff;text-shadow:0 1px 6px rgba(0,0,0,.5)}
.rb-sidebar-notify-holder,.rb-sidebar-branch-holder{position:relative}
.rb-sidebar-notify{border:0!important;background:transparent!important;min-height:32px;width:32px;padding:4px;display:grid;place-items:center;color:#fff;cursor:pointer;box-shadow:none!important;border-radius:8px}
.rb-sidebar-notify:hover,.rb-sidebar-notify:focus-visible{background:rgba(255,255,255,.12)!important}
.rb-sidebar-notify-panel{position:absolute;z-index:6;right:0;top:40px;min-width:210px;max-width:245px;padding:11px 13px;border-radius:12px;background:#161327;color:#eae2f8;border:1px solid rgba(221,181,255,.28);box-shadow:0 14px 35px rgba(0,0,0,.4);font-size:12px;line-height:1.5}
.rb-sidebar-hero-bottom{position:relative;z-index:2;display:grid;gap:5px;min-width:0}
.rb-sidebar-greeting{margin:0;font-size:13px;font-weight:700;color:#fff8eb;text-shadow:0 2px 10px rgba(0,0,0,.35);white-space:normal;overflow-wrap:anywhere;line-height:1.45}
.rb-sidebar-branch-btn{display:inline-flex;align-items:center;gap:8px;justify-content:flex-start;max-width:100%;width:fit-content;min-height:38px;padding:2px 0 3px;border:0;background:transparent;color:#fff;cursor:pointer;font-size:19px;letter-spacing:-.035em;line-height:1.2;font-weight:850;text-shadow:0 2px 12px rgba(0,0,0,.42);text-align:left}
.rb-sidebar-branch-btn:disabled{cursor:default;opacity:.8}
.rb-sidebar-branch-btn span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;display:block;padding-bottom:1px}
.rb-sidebar-branch-btn svg{flex:none}
.rb-sidebar-branch-menu{position:absolute;z-index:6;left:0;bottom:calc(100% + 5px);width:100%;min-width:180px;max-height:230px;overflow-y:auto;padding:5px;border:1px solid rgba(218,173,254,.3);border-radius:12px;background:#171329;box-shadow:0 16px 35px rgba(0,0,0,.4)}
.rb-sidebar-branch-option{display:block;width:100%;min-height:34px;text-align:left;border:0;border-radius:8px;background:transparent;color:#eee5ff;padding:7px 9px;font-size:12px;cursor:pointer;overflow-wrap:anywhere}
.rb-sidebar-branch-option:hover,.rb-sidebar-branch-option.selected{background:rgba(129,69,239,.35);color:white}
.rb-sidebar-weather{display:inline-flex;align-items:center;gap:8px;margin-top:6px;min-height:22px;font-weight:700;font-size:13px;color:#fff;text-shadow:0 2px 10px rgba(0,0,0,.34);line-height:1.2}
.rb-sidebar-weather svg,.rb-sidebar-weather-emoji{flex:0 0 16px;font-size:16px;width:16px;height:16px;display:inline-grid;place-items:center}
.rb-sidebar-weather-dot{display:none}
.rb-business-portal .nav button[data-page="inventory"] .nav-ai-badge{margin-left:auto}
.rb-sidebar-hero button:focus-visible{outline:2px solid #fff;outline-offset:4px}
@media(max-width:850px){.rb-business-portal .sidebar:not(.open){left:-330px}.rb-business-portal .sidebar.open{left:10px}}
@media(max-width:400px){.rb-business-portal .sidebar{width:min(300px,calc(100vw - 18px));left:10px}.rb-business-portal .sidebar:not(.open){left:-330px}}

/* V36.2: the bottom profile identity is the Account control, independent of Sign out. */
.profile .profile-account-trigger{display:flex;align-items:center;gap:9px;flex:1;min-width:0;padding:3px 5px;border:0;border-radius:10px;background:transparent;color:inherit;text-align:left;cursor:pointer}
.profile .profile-account-trigger:hover,.profile .profile-account-trigger:focus-visible{background:rgba(169,94,251,.13);outline-offset:2px}
.profile .profile-account-trigger .profile-info{display:grid;gap:3px;min-width:0;flex:1}
.profile .profile-account-trigger .profile-info strong{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:.7rem}
.profile .profile-account-trigger .profile-info span{display:block;color:var(--muted);font-size:.61rem}
.profile .profile-account-trigger .avatar{flex:0 0 34px}
.profile #logoutBtn{flex:0 0 30px;min-height:33px;border-radius:8px}
.profile #logoutBtn:hover,.profile #logoutBtn:focus-visible{color:white;background:rgba(169,94,251,.13)}
.rb-business-portal .sidebar .nav .ico svg{display:block;width:19px;height:19px;stroke:currentColor}

/* Exact Android outline icons: vector assets and native bell. */
.rb-business-portal .sidebar .nav .ico svg{width:20px;height:20px;display:block;stroke:currentColor}
.rb-sidebar-notify svg{fill:currentColor;stroke:none}

/* V36.4: match the original Android brand header and dark image scrim.
   Android colors: rb_purple #7738F4, rb_pink #FF4F8F, rb_orange #FF8C26.
   Android rb_hero_scrim: #F0080B18 / #CC080B18 / #76080B18. */
.rb-business-portal .rb-sidebar-hero{background:linear-gradient(90deg,#7738F4 0%,#FF4F8F 50%,#FF8C26 100%);border-radius:17px}
.rb-business-portal .rb-sidebar-hero::before{background:linear-gradient(180deg,rgba(8,11,24,.9412) 0%,rgba(8,11,24,.80) 50%,rgba(8,11,24,.4627) 100%);border-radius:inherit}
.rb-business-portal .rb-sidebar-hero::after{background:none}
.rb-business-portal .rb-sidebar-hero-artwork{border-radius:17px;clip-path:inset(0 round 17px)}
.rb-business-portal .rb-sidebar-brand{padding:5px 2px 4px;border:0;background:transparent;box-shadow:none;-webkit-backdrop-filter:none;backdrop-filter:none;align-items:flex-start;gap:7px}
.rb-business-portal .rb-sidebar-brand>img{display:none}
.rb-business-portal .rb-sidebar-brand-title{display:block;white-space:nowrap;line-height:1.2;min-width:0;letter-spacing:-.025em;font-size:18px;font-weight:750;color:#fff;text-shadow:0 2px 9px rgba(0,0,0,.5)}
.rb-business-portal .rb-sidebar-brand-title strong,.rb-business-portal .rb-sidebar-brand-title span{display:inline;font-size:inherit;font-weight:inherit;color:inherit;-webkit-text-fill-color:currentColor;letter-spacing:inherit;line-height:inherit;text-shadow:inherit}
.rb-business-portal .rb-sidebar-brand-title span{white-space:pre}
@media(max-width:370px){.rb-business-portal .rb-sidebar-brand-title{font-size:16px}.rb-business-portal .rb-sidebar-brand>img{width:36px;height:36px}}

/* V36.6: remove the standalone R mark and keep Android-style gradient brand text only. */
.rb-business-portal .rb-sidebar-hero-top .rb-sidebar-brand{
  flex-direction:column;align-items:flex-start;justify-content:flex-start;gap:4px;
  min-width:0;flex:1;padding:0;background:transparent;border:0;box-shadow:none;
}
.rb-business-portal .rb-sidebar-hero-top .rb-sidebar-brand>img{display:none!important}
.rb-business-portal .rb-sidebar-hero-top .rb-sidebar-brand-title{
  display:block;max-width:100%;font-size:19px;font-weight:850;line-height:1.18;
  letter-spacing:-.035em;white-space:nowrap;
  background:linear-gradient(90deg,#A06BFF 0%,#FF75B1 54%,#FFAF4A 100%);
  -webkit-background-clip:text;background-clip:text;color:transparent;-webkit-text-fill-color:transparent;
  text-shadow:none;filter:drop-shadow(0 1px 5px rgba(0,0,0,.85));padding-bottom:1px;
}
@media(max-width:370px){.rb-business-portal .rb-sidebar-hero-top .rb-sidebar-brand-title{font-size:17px}}

/* V36.7: fully clipped hero artwork and smooth top edges across all overlay layers. */
.rb-business-portal .rb-sidebar-hero{overflow:hidden;border-radius:18px;isolation:isolate}
.rb-business-portal .rb-sidebar-hero-artwork{inset:0;border-radius:inherit;clip-path:none;overflow:hidden}
.rb-business-portal .rb-sidebar-hero::before,.rb-business-portal .rb-sidebar-hero::after{border-radius:inherit;inset:0}
.rb-business-portal .rb-sidebar-brand-title{font-weight:850}
.rb-business-portal .rb-sidebar-weather{font-size:13px;font-weight:700;letter-spacing:-.01em;white-space:nowrap}
.rb-business-portal .rb-sidebar-weather-emoji{font-size:17px;line-height:1;flex-basis:22px;width:22px;height:22px}
.rb-business-portal .rb-sidebar-branch-btn{line-height:1.32;min-height:42px;padding:3px 0 4px}
.rb-business-portal .rb-sidebar-branch-btn span{line-height:1.32;padding-bottom:2px}
/* Keep branch/notification menus clickable even though hero artwork is clipped. */
.rb-business-portal .rb-sidebar-branch-menu{max-height:185px}
/* Keep branch and bell popovers accessible outside the hero while masking image corners. */
.rb-business-portal .rb-sidebar-hero{overflow:visible;border-radius:18px;background-clip:padding-box}
.rb-business-portal .rb-sidebar-hero-artwork{overflow:hidden;clip-path:inset(0 round 18px);border-radius:18px}
.rb-business-portal .rb-sidebar-hero::before,.rb-business-portal .rb-sidebar-hero::after{border-radius:18px}

/* V36.8: one aligned corner mask on artwork and gradient overlays; popovers remain visible. */
.rb-business-portal .rb-sidebar-hero{--rb-hero-corner:18px;border-radius:var(--rb-hero-corner);overflow:visible;border:0;background-clip:padding-box;box-shadow:none}
.rb-business-portal .rb-sidebar-hero-artwork,.rb-business-portal .rb-sidebar-hero-artwork img{border-radius:var(--rb-hero-corner);overflow:hidden}
.rb-business-portal .rb-sidebar-hero-artwork{clip-path:inset(0 round var(--rb-hero-corner))}
.rb-business-portal .rb-sidebar-hero::before,.rb-business-portal .rb-sidebar-hero::after{inset:0;border-radius:var(--rb-hero-corner);clip-path:inset(0 round var(--rb-hero-corner))}

/* V40: compact, permission-scoped internal notifications in the sidebar bell. */
.rb-sidebar-notify-panel{max-height:330px;overflow-y:auto;min-width:255px;max-width:min(320px,90vw)}
.rb-sidebar-alert-row{font-size:12px;line-height:1.4;margin:8px 0;padding:8px;border-radius:8px;background:rgba(119,56,244,.16);overflow-wrap:anywhere}
.rb-sidebar-alert-open{width:100%;border:1px solid rgba(202,160,249,.30);border-radius:8px;background:linear-gradient(90deg,#7738f4,#ff4f8f);color:#fff;padding:9px;cursor:pointer;margin-top:5px;font-weight:700}

/* V49 profile labels always align immediately to the right of the avatar. */
.sidebar .profile .profile-account-trigger{display:flex;justify-content:flex-start;align-items:center;gap:7px}.sidebar .profile .profile-account-trigger .profile-info{display:flex;flex-direction:column;align-items:flex-start;justify-content:center;text-align:left;gap:2px;margin:0;flex:1 1 auto;min-width:0}.sidebar .profile .profile-account-trigger .profile-info strong,.sidebar .profile .profile-account-trigger .profile-info span{text-align:left;align-self:flex-start;margin:0}.sidebar .profile .profile-account-trigger .avatar{margin:0;flex:0 0 34px}
