/* RXOPD Command Header / CTAs — 2026-11-03, scoped component repair.
   No auth changes, no new navigation destinations, no form behavior changes. */
:root{--rxuc-header-h:64px;--rxuc-ink:#164569;--rxuc-border:#dce6ee;--rxuc-blue:#0876c9;--rxuc-white:#fff}
/* OPD + Pharmacy + Owner: keep existing menu, routes, bell and account behavior. */
body.rx-role-shell .rx-role-topbar.rx-auth-unified-topbar{
  display:grid!important;grid-template-columns:minmax(0,1fr) auto auto!important;
  grid-template-rows:1fr!important;align-items:center!important;column-gap:10px!important;
  position:fixed!important;top:8px!important;left:10px!important;right:10px!important;
  width:auto!important;min-width:0!important;height:var(--rxuc-header-h)!important;min-height:var(--rxuc-header-h)!important;
  padding:7px 11px!important;overflow:visible!important;box-sizing:border-box!important;
  background:rgba(255,255,255,.99)!important;border:1px solid var(--rxuc-border)!important;
  border-radius:17px!important;box-shadow:0 7px 24px rgba(15,57,89,.08)!important;z-index:2600!important
}
body.rx-role-shell .rx-role-topbar>.rx-role-header-left{grid-column:1!important;grid-row:1!important;display:flex!important;flex-direction:row!important;align-items:center!important;gap:9px!important;min-width:0!important;width:auto!important;max-height:44px!important;height:44px!important;overflow:hidden!important}
body.rx-role-shell .rx-role-topbar .rx-role-menu-button{position:relative!important;inset:auto!important;flex:0 0 40px!important;width:40px!important;height:40px!important;min-width:40px!important;min-height:40px!important;margin:0!important}
body.rx-role-shell .rx-role-topbar .rx-role-top-brand-inline{display:flex!important;align-items:center!important;justify-content:center!important;flex:0 0 auto!important;width:41px!important;height:41px!important;margin:0!important;padding:0!important}
body.rx-role-shell .rx-role-topbar .rx-role-top-brand-inline img{display:block!important;max-width:100%!important;max-height:100%!important;width:100%!important;height:100%!important;object-fit:contain!important}
body.rx-role-shell .rx-role-topbar .rx-role-page-title{display:flex!important;flex-flow:column nowrap!important;justify-content:center!important;min-width:0!important;width:auto!important;max-width:100%!important;overflow:hidden!important}
body.rx-role-shell .rx-role-topbar .rx-role-page-title small{display:block!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;letter-spacing:.05em!important;font-size:9px!important;line-height:1.25!important;color:#71849a!important}
body.rx-role-shell .rx-role-topbar .rx-role-page-title strong{display:block!important;max-width:100%!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;font-size:13px!important;line-height:1.25!important;color:var(--rxuc-ink)!important}
body.rx-role-shell .rx-role-topbar>.rxopd-module-switch{grid-column:2!important;grid-row:1!important;position:relative!important;inset:auto!important;transform:none!important;align-self:center!important;justify-self:end!important;display:flex!important;flex-flow:row nowrap!important;align-items:center!important;min-width:0!important;width:auto!important;max-width:min(450px,48vw)!important;min-height:40px!important;height:40px!important;margin:0!important;padding:2px!important;gap:2px!important;border:1px solid var(--rxuc-border)!important;border-radius:11px!important;background:#f7fafc!important;overflow-x:auto!important;overflow-y:hidden!important;scrollbar-width:none!important}
body.rx-role-shell .rx-role-topbar>.rxopd-module-switch::-webkit-scrollbar{display:none!important}
body.rx-role-shell .rx-role-topbar>.rxopd-module-switch a{display:inline-flex!important;align-items:center!important;justify-content:center!important;flex:0 0 auto!important;white-space:nowrap!important;min-width:55px!important;min-height:34px!important;height:34px!important;padding:0 10px!important;margin:0!important;font-size:10px!important;line-height:1!important;font-weight:800!important;border-radius:9px!important;text-decoration:none!important;position:relative!important;inset:auto!important;transform:none!important}
body.rx-role-shell .rx-role-topbar>.rx-role-top-actions{grid-column:3!important;grid-row:1!important;display:flex!important;flex-flow:row nowrap!important;align-items:center!important;justify-content:flex-end!important;gap:6px!important;min-width:0!important;width:auto!important;max-width:none!important;margin:0!important}
body.rx-role-shell .rx-role-topbar .rx-role-top-actions .rxopd-bell-button,body.rx-role-shell .rx-role-topbar .rx-auth-account-menu>summary{display:inline-flex!important;align-items:center!important;justify-content:center!important;flex:0 0 38px!important;min-width:38px!important;width:38px!important;height:38px!important;min-height:38px!important;padding:0!important;box-sizing:border-box!important}
/* Show all four modules when access permits; never add unauthorized links. */
@media(max-width:860px){
 body.rx-role-shell .rx-role-topbar.rx-auth-unified-topbar{column-gap:5px!important;padding:6px 7px!important;height:58px!important;min-height:58px!important;grid-template-columns:minmax(0,1fr) auto auto!important;grid-template-rows:1fr!important}
 body.rx-role-shell .rx-role-topbar>.rx-role-header-left{gap:5px!important}
 body.rx-role-shell .rx-role-topbar .rx-role-menu-button{flex-basis:36px!important;width:36px!important;height:36px!important;min-width:36px!important;min-height:36px!important}
 body.rx-role-shell .rx-role-topbar .rx-role-top-brand-inline{flex-basis:36px!important;width:36px!important;height:36px!important}
 body.rx-role-shell .rx-role-topbar>.rxopd-module-switch{max-width:min(60vw,315px)!important;min-height:36px!important;height:36px!important}
 body.rx-role-shell .rx-role-topbar>.rxopd-module-switch a{min-width:41px!important;height:30px!important;min-height:30px!important;padding:0 6px!important;font-size:9px!important}
 body.rx-role-shell .rx-role-topbar .rx-role-top-actions .rxopd-bell-button,body.rx-role-shell .rx-role-topbar .rx-auth-account-menu>summary{flex-basis:34px!important;min-width:34px!important;width:34px!important;height:34px!important;min-height:34px!important}
}
@media(max-width:560px){
 body.rx-role-shell .rx-role-topbar .rx-role-page-title{display:none!important}
 body.rx-role-shell .rx-role-topbar>.rx-role-header-left{flex:0 1 84px!important}
 body.rx-role-shell .rx-role-topbar>.rxopd-module-switch{max-width:calc(100vw - 184px)!important}
 body.rx-role-shell .rx-role-topbar>.rxopd-module-switch a{min-width:37px!important;padding:0 4px!important;font-size:8px!important}
 body.rx-role-shell .rx-role-topbar>.rx-role-top-actions{gap:3px!important}
}
@media(max-width:360px){body.rx-role-shell .rx-role-topbar .rx-role-top-brand-inline{display:none!important}body.rx-role-shell .rx-role-topbar>.rx-role-header-left{flex-basis:40px!important}body.rx-role-shell .rx-role-topbar>.rxopd-module-switch{max-width:calc(100vw - 140px)!important}}
/* RX Billing's independent Laravel header; do not restyle the transaction form. */
body.rx-v32:has(.rx41-topbar-has-modules) .rx-billing-app{padding-top:var(--rxuc-header-h)!important}
body.rx-v32 .rx41-topbar-has-modules{
 position:fixed!important;top:0!important;left:0!important;right:0!important;z-index:2800!important;
 display:grid!important;grid-template-columns:minmax(0,1fr) auto auto!important;grid-template-rows:1fr!important;align-items:center!important;
 column-gap:10px!important;width:100%!important;min-width:0!important;height:var(--rxuc-header-h)!important;min-height:var(--rxuc-header-h)!important;
 padding:0 13px!important;box-sizing:border-box!important;overflow:visible!important;background:#fff!important;border-bottom:1px solid var(--rxuc-border)!important;border-radius:0!important;box-shadow:0 5px 18px rgba(15,57,89,.07)!important
}
body.rx-v32 .rx41-topbar-has-modules>.rx41-topbar-brand{
 grid-column:1!important;grid-row:1!important;display:grid!important;grid-template-columns:40px 42px minmax(0,1fr)!important;align-items:center!important;gap:7px!important;width:100%!important;min-width:0!important;overflow:hidden!important
}
body.rx-v32 .rx41-topbar-has-modules .rx41-page-context{min-width:0!important;width:auto!important;max-width:100%!important;overflow:hidden!important}
body.rx-v32 .rx41-topbar-has-modules .rx41-page-context strong,body.rx-v32 .rx41-topbar-has-modules .rx41-page-context small{white-space:nowrap!important;text-overflow:ellipsis!important;overflow:hidden!important;max-width:100%!important}
body.rx-v32 .rx41-topbar-has-modules>.rx41-runtime-context{display:none!important}
body.rx-v32 .rx41-topbar-has-modules>.rx41-ecosystem-nav{
 grid-column:2!important;grid-row:1!important;position:relative!important;inset:auto!important;transform:none!important;align-self:center!important;justify-self:end!important;display:flex!important;flex-flow:row nowrap!important;min-height:40px!important;height:40px!important;max-width:min(450px,47vw)!important;width:auto!important;margin:0!important;padding:2px!important;gap:2px!important;overflow-x:auto!important;overflow-y:hidden!important;white-space:nowrap!important;border:1px solid var(--rxuc-border)!important;border-radius:11px!important;background:#f7fafc!important;scrollbar-width:none!important
}
body.rx-v32 .rx41-topbar-has-modules>.rx41-ecosystem-nav a{position:relative!important;inset:auto!important;transform:none!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;flex:0 0 auto!important;min-width:55px!important;min-height:34px!important;height:34px!important;padding:0 10px!important;font-size:10px!important;line-height:1!important;margin:0!important}
body.rx-v32 .rx41-topbar-has-modules>.rx41-topbar-actions{grid-column:3!important;grid-row:1!important;display:flex!important;align-items:center!important;gap:5px!important;width:auto!important;min-width:0!important;max-width:none!important;margin:0!important}
body.rx-v32 .rx41-topbar-has-modules .rx-settings-quick,body.rx-v32 .rx41-topbar-has-modules .rx-quick-logout{display:none!important} /* Available in existing account dropdown. */
body.rx-v32 .rx41-topbar-has-modules .rx41-page-context .rx42-inline-context{display:none!important}
body.rx-v32 .rx41-topbar-has-modules .rx-user-button{height:38px!important;min-height:38px!important;padding:0 5px!important}
body.rx-v32 .rx41-topbar-has-modules .rx-user-copy{max-width:110px!important;overflow:hidden!important}
body.rx-v32 .rx41-topbar-has-modules .rx-user-copy b,body.rx-v32 .rx41-topbar-has-modules .rx-user-copy small{display:block!important;overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important}
@media(max-width:960px){
 body.rx-v32:has(.rx41-topbar-has-modules) .rx-billing-app{padding-top:58px!important}
 body.rx-v32 .rx41-topbar-has-modules{height:58px!important;min-height:58px!important;padding:0 7px!important;column-gap:5px!important}
 body.rx-v32 .rx41-topbar-has-modules>.rx41-topbar-brand{grid-template-columns:36px 35px minmax(0,1fr)!important;gap:4px!important}
 body.rx-v32 .rx41-topbar-has-modules>.rx41-ecosystem-nav{max-width:min(59vw,320px)!important;height:36px!important;min-height:36px!important}
 body.rx-v32 .rx41-topbar-has-modules>.rx41-ecosystem-nav a{min-width:42px!important;min-height:30px!important;height:30px!important;padding:0 5px!important;font-size:9px!important}
 body.rx-v32 .rx41-topbar-has-modules .rx-user-copy{display:none!important}
}
@media(max-width:600px){
 body.rx-v32 .rx41-topbar-has-modules .rx41-page-context{display:none!important}
 body.rx-v32 .rx41-topbar-has-modules>.rx41-topbar-brand{grid-template-columns:36px 35px!important;width:77px!important}
 body.rx-v32 .rx41-topbar-has-modules>.rx41-ecosystem-nav{max-width:calc(100vw - 178px)!important}
 body.rx-v32 .rx41-topbar-has-modules>.rx41-ecosystem-nav a{min-width:38px!important;padding:0 4px!important;font-size:8px!important}
 body.rx-v32 .rx41-topbar-has-modules .rx-topbar-quick-actions{gap:3px!important}
}
/* Pharmacy command cards: preserve <a> navigation and permissions; visual CTA within existing <em>. */
body.rx-role-shell .rx-pharmacy-ops .rx-pharmacy-first-steps>a{
 display:grid!important;grid-template-columns:44px minmax(0,1fr)!important;grid-template-rows:auto auto!important;gap:10px!important;align-items:center!important;min-width:0!important;min-height:152px!important;padding:15px!important;background:linear-gradient(160deg,#fff,#f5faff)!important;border:1px solid #dce7ee!important;border-radius:17px!important;box-shadow:0 7px 24px rgba(13,57,88,.08)!important;text-decoration:none!important
}
body.rx-role-shell .rx-pharmacy-ops .rx-pharmacy-first-steps>a>div{min-width:0!important;grid-column:2!important;grid-row:1!important}
body.rx-role-shell .rx-pharmacy-ops .rx-pharmacy-first-steps>a>span{grid-column:1!important;grid-row:1!important}
body.rx-role-shell .rx-pharmacy-ops .rx-pharmacy-first-steps>a>em{display:inline-flex!important;grid-column:1 / -1!important;grid-row:2!important;align-items:center!important;justify-content:center!important;min-height:40px!important;width:100%!important;margin:0!important;padding:9px 12px!important;background:linear-gradient(135deg,#0878c3,#0866a9)!important;color:#fff!important;border:1px solid #0868ab!important;border-radius:10px!important;font-size:13px!important;font-weight:800!important;text-decoration:none!important;letter-spacing:0!important;font-style:normal!important;box-sizing:border-box!important}
body.rx-role-shell .rx-pharmacy-ops .rx-pharmacy-first-steps>a:focus-visible{outline:3px solid #2b92de!important;outline-offset:3px!important}
body.rx-role-shell .rx-pharmacy-ops .rx-pharmacy-first-steps>a:hover>em{background:#055996!important}
body.rx-role-shell .rx-pharmacy-ops .rx-pharmacy-first-steps{gap:12px!important}
@media(max-width:860px){body.rx-role-shell .rx-pharmacy-ops .rx-pharmacy-first-steps,body.rx-role-shell .rx-pharmacy-ops .rx-pharmacy-first-steps.billing{grid-template-columns:repeat(2,minmax(0,1fr))!important}}
@media(max-width:470px){body.rx-role-shell .rx-pharmacy-ops .rx-pharmacy-first-steps,body.rx-role-shell .rx-pharmacy-ops .rx-pharmacy-first-steps.billing{grid-template-columns:1fr!important}body.rx-role-shell .rx-pharmacy-ops .rx-pharmacy-first-steps>a{min-height:132px!important}}
@media(prefers-reduced-motion:reduce){body.rx-role-shell .rx-pharmacy-ops .rx-pharmacy-first-steps>a{transition:none!important}}


/* RXOPD UI System V2 — surgical visual correction. Applies on top of the
 * installed Unified Header CSS. These rules change presentation only.
 * Canonical desktop: 64px fixed header. Handset: 108px, accessible two-row header.
 */
:root{--rxuc-v2-h:64px;--rxuc-v2-brand:#0f4266;--rxuc-v2-focus:#0a7dcb;--rxuc-v2-line:#d8e4ed}
/* Keep the OPD/Pharmacy logo + workspace labels; correct the fixed header spacing. */
body.rx-role-shell .rx-role-topbar.rx-auth-unified-topbar{top:0!important;left:0!important;right:0!important;border-radius:0!important;height:var(--rxuc-v2-h)!important;min-height:var(--rxuc-v2-h)!important;box-shadow:0 3px 16px rgba(12,48,77,.08)!important}
body.rx-role-shell .rx-role-topbar .rx-role-page-title{display:flex!important}
body.rx-role-shell .rx-role-topbar .rx-role-page-title small{font-size:10px!important;letter-spacing:.035em!important}
body.rx-role-shell .rx-role-topbar .rx-role-page-title strong{font-size:13px!important}
body.rx-role-shell .rx-role-topbar .rx-role-menu-button{border-radius:10px!important}
body.rx-role-shell .rx-role-topbar .rxopd-module-switch a,
body.rx-v32 .rx41-topbar-has-modules .rx41-ecosystem-nav a{min-height:35px!important;line-height:1.2!important;font-size:11px!important}
body.rx-role-shell .rx-role-topbar a:focus-visible,
body.rx-role-shell .rx-role-topbar button:focus-visible,
body.rx-role-shell .rx-role-topbar summary:focus-visible,
body.rx-v32 .rx41-topbar a:focus-visible,
body.rx-v32 .rx41-topbar button:focus-visible{outline:3px solid var(--rxuc-v2-focus)!important;outline-offset:2px!important}
/* Billing: accessible user controls; logout remains in existing dropdown. */
body.rx-v32 .rx41-topbar-has-modules{height:var(--rxuc-v2-h)!important;min-height:var(--rxuc-v2-h)!important;grid-template-columns:minmax(180px,1fr) auto auto!important}
body.rx-v32 .rx41-topbar-has-modules>.rx41-topbar-brand{min-width:0!important}
body.rx-v32 .rx41-topbar-has-modules .rx41-page-context{display:block!important}
body.rx-v32 .rx41-topbar-has-modules .rx41-page-context strong{font-size:13px!important;line-height:1.25!important}
body.rx-v32 .rx41-topbar-has-modules .rx41-page-context small{font-size:9px!important;line-height:1.25!important}
body.rx-v32 .rx41-topbar-has-modules>.rx41-topbar-actions{justify-self:end!important}
body.rx-v32 .rx41-topbar-has-modules .rx-user-button,
body.rx-v32 .rx41-topbar-has-modules .rx-incoming-invoice-bell{min-height:40px!important}
body.rx-v32 .rx41-topbar-has-modules .rx-user-dropdown{max-width:calc(100vw - 24px)!important;max-height:75dvh!important;overflow-y:auto!important}
/* Preserve the menu's original click/close mechanics. Do not force it open. */
body.rx-v32 .rx-sidebar-scrim:not([hidden]){background:rgba(14,35,53,.37)!important}
/* Pharmacy dashboard CTA has a visible tappable action within the existing link. */
body.rx-role-shell .rx-pharmacy-ops .rx-pharmacy-first-steps>a{min-width:0!important;box-sizing:border-box!important}
body.rx-role-shell .rx-pharmacy-ops .rx-pharmacy-first-steps>a>em{min-height:44px!important;background:#087c84!important;border-color:#06727b!important;font-size:13px!important;line-height:1.25!important}
body.rx-role-shell .rx-pharmacy-ops .rx-pharmacy-first-steps>a:hover>em{background:#05666d!important}
body.rx-role-shell .rx-pharmacy-ops .rx-pharmacy-first-steps>a:focus-visible{outline:3px solid var(--rxuc-v2-focus)!important;outline-offset:2px!important}
/* Larger tablets: protect all three header zones without clipping account/actions. */
@media (min-width:701px) and (max-width:1060px){
 body.rx-role-shell .rx-role-topbar.rx-auth-unified-topbar{grid-template-columns:minmax(135px,1fr) minmax(240px,auto) auto!important;column-gap:6px!important}
 body.rx-role-shell .rx-role-topbar.rx-role-topbar-has-modules>.rxopd-module-switch{max-width:42vw!important}
 body.rx-v32 .rx41-topbar-has-modules{grid-template-columns:minmax(150px,1fr) minmax(245px,auto) auto!important;column-gap:6px!important}
 body.rx-v32 .rx41-topbar-has-modules>.rx41-ecosystem-nav{max-width:42vw!important}
}
/* Handsets: a real two-row header, not 8px micro-tabs; title retained. */
@media(max-width:700px){
 :root{--rxuc-v2-h:116px}
 body.rx-role-shell .rx-role-topbar.rx-auth-unified-topbar{
  top:0!important;left:0!important;right:0!important;height:116px!important;min-height:116px!important;
  border-radius:0!important;padding:6px 10px 7px!important;
  grid-template-columns:minmax(0,1fr) auto!important;grid-template-rows:43px 48px!important;
  gap:5px 6px!important;align-content:center!important}
 body.rx-role-shell .rx-role-topbar.rx-role-topbar-has-modules>.rx-role-header-left{
  grid-column:1!important;grid-row:1!important;width:100%!important;max-height:43px!important;
  min-width:0!important;flex:1 1 auto!important;gap:7px!important;overflow:hidden!important}
 body.rx-role-shell .rx-role-topbar .rx-role-menu-button{
  flex:0 0 40px!important;width:40px!important;height:40px!important;min-width:40px!important;min-height:40px!important}
 body.rx-role-shell .rx-role-topbar .rx-role-top-brand-inline{
  display:flex!important;flex:0 0 39px!important;width:39px!important;height:39px!important;min-width:39px!important}
 body.rx-role-shell .rx-role-topbar .rx-role-page-title{display:flex!important;flex:1 1 auto!important;min-width:0!important;max-width:100%!important}
 body.rx-role-shell .rx-role-topbar .rx-role-page-title small{font-size:9px!important}
 body.rx-role-shell .rx-role-topbar .rx-role-page-title strong{font-size:12px!important}
 body.rx-role-shell .rx-role-topbar.rx-role-topbar-has-modules>.rx-role-top-actions{
  grid-column:2!important;grid-row:1!important;justify-self:end!important;gap:5px!important;width:auto!important}
 body.rx-role-shell .rx-role-topbar.rx-role-topbar-has-modules>.rxopd-module-switch{
  grid-column:1/-1!important;grid-row:2!important;justify-self:stretch!important;align-self:stretch!important;
  display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:3px!important;
  width:100%!important;max-width:none!important;min-width:0!important;height:48px!important;min-height:48px!important;
  overflow:hidden!important;padding:2px!important;border-radius:11px!important}
 body.rx-role-shell .rx-role-topbar.rx-role-topbar-has-modules>.rxopd-module-switch a{
  display:flex!important;min-width:0!important;width:auto!important;min-height:44px!important;height:44px!important;
  font-size:11px!important;padding:0 2px!important;justify-content:center!important;white-space:nowrap!important}
 body.rx-role-shell .rx-role-main{padding-top:calc(116px + 16px)!important}
 body.rx-v32 .rx41-topbar-has-modules{
  display:grid!important;top:0!important;left:0!important;right:0!important;
  height:116px!important;min-height:116px!important;border-radius:0!important;
  padding:6px 10px 7px!important;grid-template-columns:minmax(0,1fr) auto!important;
  grid-template-rows:43px 48px!important;gap:5px 6px!important;align-content:center!important}
 body.rx-v32 .rx41-topbar-has-modules>.rx41-topbar-brand{
  grid-column:1!important;grid-row:1!important;grid-template-columns:40px 38px minmax(0,1fr)!important;
  display:grid!important;align-items:center!important;width:100%!important;min-width:0!important;gap:5px!important}
 body.rx-v32 .rx41-topbar-has-modules .rx41-page-context{display:flex!important;flex-direction:column!important;justify-content:center!important;min-width:0!important;max-width:100%!important}
 body.rx-v32 .rx41-topbar-has-modules>.rx41-topbar-actions{
  grid-column:2!important;grid-row:1!important;justify-self:end!important;min-width:0!important;gap:5px!important}
 body.rx-v32 .rx41-topbar-has-modules>.rx41-ecosystem-nav{
  grid-column:1/-1!important;grid-row:2!important;justify-self:stretch!important;
  display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;
  gap:3px!important;width:100%!important;max-width:none!important;min-width:0!important;
  padding:2px!important;height:48px!important;min-height:48px!important;overflow:hidden!important}
 body.rx-v32 .rx41-topbar-has-modules>.rx41-ecosystem-nav a{
  display:flex!important;min-width:0!important;width:auto!important;min-height:44px!important;height:44px!important;
  font-size:11px!important;padding:0 2px!important;justify-content:center!important;white-space:nowrap!important}
 body.rx-v32 .rx41-topbar-has-modules .rx41-page-context strong{font-size:12px!important}
 body.rx-v32 .rx41-topbar-has-modules .rx41-page-context small{font-size:9px!important}
 body.rx-v32 .rx41-topbar-has-modules .rx-user-copy{display:none!important}
 body.rx-v32:has(.rx41-topbar-has-modules) .rx-billing-app{padding-top:116px!important}
 body.rx-v32 .rx-sidebar{max-width:calc(100vw - 48px)!important}
 body.rx-v32 .rx-sidebar-scrim:not([hidden]){z-index:2350!important}
 /* Content and toolbar must remain accessible after the fixed header. */
 body.rx-role-shell .rx-role-main,body.rx-v32 .rx-billing-app{scroll-margin-top:124px!important}
}
@media(max-width:355px){
 body.rx-role-shell .rx-role-topbar.rx-auth-unified-topbar{padding-left:5px!important;padding-right:5px!important;gap:4px!important}
 body.rx-role-shell .rx-role-topbar .rx-role-menu-button{flex-basis:36px!important;width:36px!important;min-width:36px!important}
 body.rx-role-shell .rx-role-topbar .rx-role-top-brand-inline{flex-basis:32px!important;width:32px!important;min-width:32px!important}
 body.rx-v32 .rx41-topbar-has-modules{padding-left:5px!important;padding-right:5px!important}
 body.rx-v32 .rx41-topbar-has-modules>.rx41-topbar-brand{grid-template-columns:36px 30px minmax(0,1fr)!important;gap:3px!important}
 body.rx-role-shell .rx-role-topbar.rx-role-topbar-has-modules>.rxopd-module-switch a,body.rx-v32 .rx41-topbar-has-modules>.rx41-ecosystem-nav a{font-size:10px!important}
}
@media(prefers-reduced-motion:reduce){
 body.rx-role-shell .rx-role-topbar.rx-auth-unified-topbar,
 body.rx-v32 .rx41-topbar-has-modules{transition:none!important}
}

@media(max-width:700px){
 body.rx-role-shell .rx-role-topbar.rx-role-topbar-has-modules>.rx-role-header-left{
  display:flex!important;flex-direction:row!important;align-items:center!important;justify-content:flex-start!important;
  grid-template-columns:none!important;gap:6px!important;overflow:hidden!important}
 body.rx-role-shell .rx-role-topbar.rx-role-topbar-has-modules .rx-role-page-title{
  display:flex!important;flex-direction:column!important;flex:1 1 auto!important;min-width:0!important;
  position:relative!important;left:auto!important;top:auto!important;transform:none!important}
 body.rx-v32 .rx41-topbar-has-modules>.rx41-topbar-brand{display:grid!important;
  grid-template-columns:40px 34px minmax(0,1fr)!important;gap:5px!important;align-items:center!important}
 body.rx-v32 .rx41-topbar-has-modules .rx41-brand-link{display:inline-flex!important;grid-column:2!important;
  width:34px!important;height:34px!important;align-items:center!important;justify-content:center!important;min-width:34px!important}
 body.rx-v32 .rx41-topbar-has-modules .rx41-brand-link img{display:block!important;width:100%!important;height:100%!important;object-fit:contain!important}
 body.rx-v32 .rx41-topbar-has-modules .rx41-page-context{display:flex!important;grid-column:3!important;
  width:auto!important;min-width:0!important;position:relative!important;inset:auto!important;transform:none!important}
}
@media(max-width:355px){body.rx-v32 .rx41-topbar-has-modules>.rx41-topbar-brand{
  grid-template-columns:36px 30px minmax(0,1fr)!important;gap:3px!important}
 body.rx-v32 .rx41-topbar-has-modules .rx41-brand-link{width:30px!important;min-width:30px!important}}


/* RXOPD UI SYSTEM V3 — last loaded scoped stylesheet. UI only: no routes, auth, data or purchase forms.
   Baseline: V2 deployed CSS.  All original rules kept intact above this block. */
:root{--rxuc3-header:64px;--rxuc3-header-compact:116px;--rxuc3-focus:#0878c3;--rxuc3-outline:#dce6ed}
@media(min-width:981px){
 body.rx-v32 .rx41-topbar.rx41-topbar-has-modules{
  position:sticky!important;top:0!important;display:grid!important;
  grid-template-columns:minmax(225px,1fr) auto minmax(135px,auto)!important;
  grid-template-rows:64px!important;height:64px!important;min-height:64px!important;
  align-items:center!important;gap:0 12px!important;padding:0 12px!important;overflow:visible!important}
 body.rx-v32 .rx41-topbar.rx41-topbar-has-modules>.rx41-topbar-brand{
  min-width:225px!important;display:grid!important;grid-template-columns:40px 40px minmax(0,1fr)!important;align-items:center!important;gap:8px!important}
 body.rx-v32 .rx41-topbar.rx41-topbar-has-modules .rx41-page-context{
  display:flex!important;flex-direction:column!important;min-width:0!important;max-width:none!important;align-self:center!important;
  position:static!important;inset:auto!important;transform:none!important;overflow:hidden!important}
 body.rx-v32 .rx41-topbar.rx41-topbar-has-modules .rx41-page-context strong{
  display:block!important;font-size:14px!important;font-weight:800!important;line-height:1.25!important;white-space:normal!important;overflow-wrap:break-word!important}
 body.rx-v32 .rx41-topbar.rx41-topbar-has-modules .rx41-page-context small{font-size:10px!important;line-height:1.3!important}
 body.rx-v32 .rx41-topbar.rx41-topbar-has-modules>.rx41-ecosystem-nav{grid-column:2!important;grid-row:1!important;max-width:unset!important}
 body.rx-v32 .rx41-topbar.rx41-topbar-has-modules>.rx41-topbar-actions{grid-column:3!important;grid-row:1!important;justify-self:end!important;min-width:0!important}
}
/* Tablet and Android "Desktop site" widths use the same readable two-row header as phones. */
@media(max-width:980px){
 :root{--rxuc-v2-h:116px}
 body.rx-role-shell .rx-role-topbar.rx-auth-unified-topbar.rx-role-topbar-has-modules{
  position:fixed!important;top:0!important;left:0!important;right:0!important;
  display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;grid-template-rows:43px 48px!important;
  align-content:center!important;align-items:center!important;gap:5px 6px!important;
  height:116px!important;min-height:116px!important;padding:6px 10px 7px!important;
  border-radius:0!important;overflow:visible!important;box-sizing:border-box!important}
 body.rx-role-shell .rx-role-topbar.rx-role-topbar-has-modules>.rx-role-header-left{
  display:flex!important;grid-column:1!important;grid-row:1!important;flex-direction:row!important;
  align-items:center!important;gap:7px!important;min-width:0!important;max-width:100%!important;overflow:hidden!important}
 body.rx-role-shell .rx-role-topbar.rx-role-topbar-has-modules>.rx-role-header-left>.rx-role-menu-button{
  position:static!important;flex:0 0 40px!important;width:40px!important;height:40px!important;min-width:40px!important;min-height:40px!important}
 body.rx-role-shell .rx-role-topbar.rx-role-topbar-has-modules>.rx-role-header-left>.rx-role-top-brand-inline{
  display:flex!important;flex:0 0 38px!important;width:38px!important;height:38px!important;min-width:38px!important}
 body.rx-role-shell .rx-role-topbar.rx-role-topbar-has-modules .rx-role-page-title{
  display:flex!important;position:static!important;flex-direction:column!important;justify-content:center!important;
  flex:1 1 auto!important;min-width:0!important;max-width:none!important;overflow:hidden!important;transform:none!important}
 body.rx-role-shell .rx-role-topbar.rx-role-topbar-has-modules .rx-role-page-title strong{font-size:12px!important;line-height:1.25!important}
 body.rx-role-shell .rx-role-topbar.rx-role-topbar-has-modules .rx-role-page-title small{font-size:9px!important;line-height:1.2!important}
 body.rx-role-shell .rx-role-topbar.rx-role-topbar-has-modules>.rx-role-top-actions{
  display:flex!important;grid-column:2!important;grid-row:1!important;justify-self:end!important;gap:4px!important;min-width:0!important;width:auto!important}
 body.rx-role-shell .rx-role-topbar.rx-role-topbar-has-modules>.rxopd-module-switch{
  display:grid!important;grid-column:1/-1!important;grid-row:2!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;
  justify-self:stretch!important;width:100%!important;max-width:none!important;min-width:0!important;
  height:48px!important;min-height:48px!important;gap:3px!important;overflow:hidden!important;padding:2px!important}
 body.rx-role-shell .rx-role-topbar.rx-role-topbar-has-modules>.rxopd-module-switch a{
  display:flex!important;min-width:0!important;width:auto!important;min-height:44px!important;height:44px!important;
  align-items:center!important;justify-content:center!important;padding:0 3px!important;font-size:11px!important;white-space:nowrap!important}
 body.rx-role-shell:has(.rx-role-topbar-has-modules) main.rx-role-main{padding-top:calc(116px + 16px)!important;scroll-margin-top:130px!important}
 /* Billing header with scoped title repair. No routing, logout or permission changes. */
 body.rx-v32 .rx41-topbar.rx41-topbar-has-modules{
  position:sticky!important;top:0!important;left:0!important;right:0!important;
  display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;grid-template-rows:43px 48px!important;
  align-content:center!important;align-items:center!important;gap:5px 6px!important;
  height:116px!important;min-height:116px!important;padding:6px 10px 7px!important;
  border-radius:0!important;overflow:visible!important;box-sizing:border-box!important}
 body.rx-v32 .rx41-topbar.rx41-topbar-has-modules>.rx41-topbar-brand{
  display:grid!important;grid-column:1!important;grid-row:1!important;
  grid-template-columns:40px 38px minmax(0,1fr)!important;gap:6px!important;
  align-items:center!important;width:100%!important;min-width:0!important;overflow:hidden!important}
 body.rx-v32 .rx41-topbar.rx41-topbar-has-modules .rx41-page-context{
  display:flex!important;flex-direction:column!important;justify-content:center!important;
  position:static!important;inset:auto!important;transform:none!important;
  grid-column:3!important;min-width:0!important;max-width:none!important;overflow:hidden!important}
 body.rx-v32 .rx41-topbar.rx41-topbar-has-modules .rx41-page-context strong{
  display:block!important;max-width:none!important;white-space:normal!important;
  overflow-wrap:break-word!important;font-size:12px!important;line-height:1.25!important;max-height:32px!important}
 body.rx-v32 .rx41-topbar.rx41-topbar-has-modules .rx41-page-context small{font-size:9px!important;line-height:1.25!important}
 body.rx-v32 .rx41-topbar.rx41-topbar-has-modules>.rx41-topbar-actions{
  display:flex!important;grid-column:2!important;grid-row:1!important;justify-self:end!important;
  min-width:0!important;gap:4px!important}
 body.rx-v32 .rx41-topbar.rx41-topbar-has-modules .rx-topbar-quick-actions{gap:4px!important}
 body.rx-v32 .rx41-topbar.rx41-topbar-has-modules>.rx41-ecosystem-nav{
  display:grid!important;grid-column:1/-1!important;grid-row:2!important;
  grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:3px!important;
  min-width:0!important;width:100%!important;max-width:none!important;
  height:48px!important;min-height:48px!important;padding:2px!important;overflow:hidden!important}
 body.rx-v32 .rx41-topbar.rx41-topbar-has-modules>.rx41-ecosystem-nav a{
  display:flex!important;min-width:0!important;width:auto!important;min-height:44px!important;height:44px!important;
  align-items:center!important;justify-content:center!important;padding:0 3px!important;font-size:11px!important;white-space:nowrap!important}
 body.rx-v32:has(.rx41-topbar-has-modules) .rx-billing-app{padding-top:0!important}
 body.rx-v32 .rx-sidebar{max-width:min(350px,calc(100vw - 48px))!important}
 body.rx-v32 .rx-sidebar-scrim:not([hidden]){background:rgba(9,30,52,.52)!important;pointer-events:auto!important}
}
@media(max-width:355px){
 body.rx-role-shell .rx-role-topbar.rx-role-topbar-has-modules>.rx-role-header-left>.rx-role-menu-button{flex-basis:36px!important;min-width:36px!important;width:36px!important}
 body.rx-role-shell .rx-role-topbar.rx-role-topbar-has-modules>.rx-role-header-left>.rx-role-top-brand-inline{flex-basis:30px!important;min-width:30px!important;width:30px!important}
 body.rx-v32 .rx41-topbar.rx41-topbar-has-modules>.rx41-topbar-brand{grid-template-columns:36px 30px minmax(0,1fr)!important;gap:4px!important}
 body.rx-v32 .rx41-topbar.rx41-topbar-has-modules>.rx41-topbar-actions{gap:2px!important}
}
/* Pharmacy dashboard: actual SVG icons and visible primary graphical CTA (single <a> per card). */
.rx-pharmacy-ops .rx-pharmacy-first-steps{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:14px!important}
.rx-pharmacy-ops .rx-pharmacy-first-steps.billing{grid-template-columns:repeat(3,minmax(0,1fr))!important}
.rx-pharmacy-ops .rx-pharmacy-first-steps>a.rx-pharmacy-card{
 display:grid!important;grid-template-columns:52px minmax(0,1fr)!important;grid-template-rows:auto 46px!important;
 gap:12px!important;align-items:center!important;min-width:0!important;min-height:168px!important;
 padding:16px!important;text-decoration:none!important;border:1px solid #d6e3ed!important;border-radius:18px!important;
 background:#fff!important;box-shadow:0 9px 28px rgba(14,55,83,.07)!important;box-sizing:border-box!important}
.rx-pharmacy-ops .rx-pharmacy-first-steps>a.rx-pharmacy-card>.rx-pharmacy-card-icon{
 display:grid!important;place-items:center!important;grid-column:1!important;grid-row:1!important;
 width:52px!important;height:52px!important;min-width:52px!important;border-radius:15px!important;
 background:#e9f4ff!important;color:#0874bc!important}
.rx-pharmacy-ops .rx-pharmacy-first-steps>a.rx-pharmacy-card.purchase>.rx-pharmacy-card-icon{background:#e9f8ef!important;color:#14865c!important}
.rx-pharmacy-ops .rx-pharmacy-first-steps>a.rx-pharmacy-card.stock>.rx-pharmacy-card-icon{background:#e8f7f5!important;color:#078579!important}
.rx-pharmacy-ops .rx-pharmacy-first-steps>a.rx-pharmacy-card.product>.rx-pharmacy-card-icon{background:#f2edff!important;color:#7253b5!important}
.rx-pharmacy-ops .rx-pharmacy-first-steps>a.rx-pharmacy-card>.rx-pharmacy-card-icon svg{display:block!important;width:27px!important;height:27px!important;flex:none!important}
.rx-pharmacy-ops .rx-pharmacy-first-steps>a.rx-pharmacy-card>div{
 grid-column:2!important;grid-row:1!important;min-width:0!important;overflow-wrap:break-word!important}
.rx-pharmacy-ops .rx-pharmacy-first-steps>a.rx-pharmacy-card>div>b{
 font-size:16px!important;line-height:1.35!important;text-decoration:none!important;color:#193c54!important}
.rx-pharmacy-ops .rx-pharmacy-first-steps>a.rx-pharmacy-card>div>small{font-size:12px!important;line-height:1.45!important}
.rx-pharmacy-ops .rx-pharmacy-first-steps>a.rx-pharmacy-card>em.rx-pharmacy-card-cta{
 display:flex!important;grid-column:1/-1!important;grid-row:2!important;align-items:center!important;
 justify-content:center!important;gap:8px!important;width:100%!important;height:46px!important;min-height:46px!important;
 padding:8px 15px!important;margin:0!important;font-size:13px!important;font-weight:800!important;
 font-style:normal!important;text-decoration:none!important;color:#fff!important;
 background:#087d79!important;border:1px solid #087d79!important;border-radius:11px!important;box-sizing:border-box!important}
.rx-pharmacy-ops .rx-pharmacy-first-steps>a.rx-pharmacy-card:hover{transform:translateY(-1px)!important;box-shadow:0 12px 30px rgba(14,55,83,.13)!important}
.rx-pharmacy-ops .rx-pharmacy-first-steps>a.rx-pharmacy-card:hover>em.rx-pharmacy-card-cta{background:#075d61!important}
.rx-pharmacy-ops .rx-pharmacy-first-steps>a.rx-pharmacy-card:focus-visible{outline:3px solid #0878c3!important;outline-offset:3px!important}
@media(max-width:1050px){.rx-pharmacy-ops .rx-pharmacy-first-steps,.rx-pharmacy-ops .rx-pharmacy-first-steps.billing{grid-template-columns:repeat(2,minmax(0,1fr))!important}}
@media(max-width:580px){.rx-pharmacy-ops .rx-pharmacy-first-steps,.rx-pharmacy-ops .rx-pharmacy-first-steps.billing{grid-template-columns:1fr!important}
 .rx-pharmacy-ops .rx-pharmacy-first-steps>a.rx-pharmacy-card{min-height:138px!important;padding:13px!important;gap:9px!important}}
@media(prefers-reduced-motion:reduce){.rx-pharmacy-ops .rx-pharmacy-first-steps>a.rx-pharmacy-card{transition:none!important}}


/* RXOPD Header Alignment + Four Product Brands / 2026-11-03 / scoped V4.
   Preserve all links, roles, events and main transaction code. */
:root{--rx-header-brand-height:42px}
/* Full-width fixed headers: bypass earlier max-width / centered-shell assumptions. */
body.rx-role-shell>.rx-role-topbar.rx-auth-unified-topbar,
body.rx-v32 .rx-billing-app>.rx41-topbar.rx41-topbar-has-modules{
 position:fixed!important;top:0!important;left:0!important;right:0!important;
 width:100%!important;max-width:none!important;min-width:0!important;
 margin:0!important;transform:none!important;border-radius:0!important;
 box-sizing:border-box!important;z-index:1100!important;background:#fff!important;
 border-bottom:1px solid #dde8ee!important;box-shadow:0 2px 12px rgba(15,54,83,.08)!important;
}
/* Hamburger > individual app logo > page context, no arbitrary absolute offsets. */
body.rx-role-shell .rx-role-topbar .rx-role-header-left{
 display:flex!important;flex-direction:row!important;align-items:center!important;
 justify-content:flex-start!important;min-width:0!important;gap:8px!important;
 position:static!important;transform:none!important;
}
body.rx-role-shell .rx-role-topbar .rx-role-header-left>.rx-role-menu-button{
 display:inline-flex!important;flex:0 0 40px!important;width:40px!important;height:40px!important;
 min-height:40px!important;min-width:40px!important;position:static!important;transform:none!important;
}
body.rx-role-shell .rx-role-topbar .rx-role-header-left>.rx-role-top-brand-inline{
 position:relative!important;display:flex!important;align-items:center!important;
 justify-content:center!important;flex:0 0 118px!important;width:118px!important;
 max-width:118px!important;height:42px!important;min-height:42px!important;
 overflow:hidden!important;margin:0!important;padding:0!important;
}
body.rx-role-shell .rx-role-topbar .rx-role-header-left>.rx-role-top-brand-inline img{
 display:block!important;width:100%!important;height:100%!important;
 max-width:100%!important;max-height:100%!important;object-fit:contain!important;
}
body.rx-role-shell .rx-role-topbar .rx-role-header-left>.rx-role-page-title{
 display:flex!important;flex-direction:column!important;justify-content:center!important;
 position:static!important;transform:none!important;min-width:0!important;
 overflow:hidden!important;max-width:none!important;
}
body.rx-role-shell .rx-role-topbar .rx-role-page-title strong,
body.rx-role-shell .rx-role-topbar .rx-role-page-title small{
 overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important;
}
/* Pharmacy route uses its own official RX E-PHARM logo; header href remains unchanged. */
body.rx-role-shell[data-rx-route="/pharmacy"] .rx-role-topbar .rx-role-top-brand-inline,
body.rx-role-shell[data-rx-route^="/pharmacy/"] .rx-role-topbar .rx-role-top-brand-inline{
 background:transparent url('/assets/img/rxpharmacy-onboarding-mark.svg') center/contain no-repeat!important;
}
body.rx-role-shell[data-rx-route="/pharmacy"] .rx-role-topbar .rx-role-top-brand-inline img,
body.rx-role-shell[data-rx-route^="/pharmacy/"] .rx-role-topbar .rx-role-top-brand-inline img{opacity:0!important}
/* Billing: original RX Billing full wordmark is never reduced to a square thumbnail. */
body.rx-v32 .rx-billing-app>.rx41-topbar .rx41-topbar-brand{
 display:grid!important;grid-template-columns:40px 126px minmax(0,1fr)!important;
 align-items:center!important;gap:8px!important;min-width:0!important;max-width:none!important;
 position:static!important;transform:none!important;
}
body.rx-v32 .rx-billing-app>.rx41-topbar .rx-menu-toggle{
 position:static!important;display:inline-flex!important;width:40px!important;height:40px!important;
 min-width:40px!important;min-height:40px!important;align-items:center!important;justify-content:center!important;
}
body.rx-v32 .rx-billing-app>.rx41-topbar .rx41-brand-link{
 display:flex!important;align-items:center!important;justify-content:center!important;
 width:126px!important;max-width:126px!important;min-width:0!important;
 height:40px!important;min-height:40px!important;margin:0!important;overflow:hidden!important;
}
body.rx-v32 .rx-billing-app>.rx41-topbar .rx41-brand-link img{
 width:100%!important;height:100%!important;max-width:100%!important;
 max-height:100%!important;object-fit:contain!important;
}
body.rx-v32 .rx-billing-app>.rx41-topbar .rx41-page-context{
 display:flex!important;position:static!important;transform:none!important;
 flex-direction:column!important;justify-content:center!important;
 min-width:0!important;max-width:none!important;overflow:hidden!important;
}
body.rx-v32 .rx-billing-app>.rx41-topbar .rx41-page-context strong{
 white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;
 max-width:100%!important;line-height:1.2!important;
}
/* Desktop single-row bar and correct offset below fixed Billing header. */
@media(min-width:981px){
 body.rx-role-shell>.rx-role-topbar.rx-auth-unified-topbar,
 body.rx-v32 .rx-billing-app>.rx41-topbar.rx41-topbar-has-modules{
  height:68px!important;min-height:68px!important;padding:7px 16px!important;
  display:grid!important;grid-template-rows:1fr!important;
  grid-template-columns:minmax(0,1fr) auto minmax(145px,1fr)!important;
  align-items:center!important;column-gap:12px!important;
 }
 body.rx-role-shell>.rx-role-topbar>.rx-role-header-left{grid-column:1!important;grid-row:1!important}
 body.rx-role-shell>.rx-role-topbar>.rxopd-module-switch{grid-column:2!important;grid-row:1!important;justify-self:center!important}
 body.rx-role-shell>.rx-role-topbar>.rx-role-top-actions{grid-column:3!important;grid-row:1!important;justify-self:end!important}
 body.rx-v32 .rx-billing-app>.rx41-topbar>.rx41-topbar-brand{grid-column:1!important;grid-row:1!important}
 body.rx-v32 .rx-billing-app>.rx41-topbar>.rx41-ecosystem-nav{grid-column:2!important;grid-row:1!important;justify-self:center!important}
 body.rx-v32 .rx-billing-app>.rx41-topbar>.rx41-topbar-actions{grid-column:3!important;grid-row:1!important;justify-self:end!important}
 body.rx-v32:has(.rx41-topbar-has-modules) .rx-billing-app{padding-top:68px!important}
}
/* Android responsive: 116px two-row bar, not one compressed line. */
@media(max-width:980px){
 body.rx-role-shell>.rx-role-topbar.rx-auth-unified-topbar.rx-role-topbar-has-modules,
 body.rx-v32 .rx-billing-app>.rx41-topbar.rx41-topbar-has-modules{
   height:116px!important;min-height:116px!important;padding:6px 9px!important;
   display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;
   grid-template-rows:43px 48px!important;align-content:center!important;
   align-items:center!important;gap:5px 5px!important;
 }
 body.rx-role-shell .rx-role-topbar .rx-role-header-left>.rx-role-top-brand-inline{
   flex:0 0 76px!important;width:76px!important;max-width:76px!important;
   min-width:76px!important;height:40px!important;min-height:40px!important;
 }
 body.rx-role-shell .rx-role-topbar>.rx-role-header-left{grid-column:1!important;grid-row:1!important;gap:5px!important}
 body.rx-role-shell .rx-role-topbar>.rx-role-top-actions{grid-column:2!important;grid-row:1!important;justify-self:end!important}
 body.rx-role-shell .rx-role-topbar>.rxopd-module-switch{
   grid-column:1/-1!important;grid-row:2!important;width:100%!important;min-width:0!important;
   display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;
   height:48px!important;min-height:48px!important;gap:3px!important;
 }
 body.rx-role-shell .rx-role-topbar>.rxopd-module-switch>a{
   min-height:44px!important;height:44px!important;display:flex!important;
   align-items:center!important;justify-content:center!important;
 }
 body.rx-v32 .rx-billing-app>.rx41-topbar>.rx41-topbar-brand{
   grid-column:1!important;grid-row:1!important;
   grid-template-columns:40px 78px minmax(0,1fr)!important;gap:5px!important;
 }
 body.rx-v32 .rx-billing-app>.rx41-topbar>.rx41-topbar-brand>.rx41-brand-link{
   width:78px!important;max-width:78px!important;height:38px!important;
 }
 body.rx-v32 .rx-billing-app>.rx41-topbar>.rx41-topbar-brand>.rx41-page-context{display:flex!important}
 body.rx-v32 .rx-billing-app>.rx41-topbar>.rx41-ecosystem-nav{
   grid-column:1/-1!important;grid-row:2!important;display:grid!important;
   grid-template-columns:repeat(4,minmax(0,1fr))!important;
   gap:3px!important;width:100%!important;min-width:0!important;max-width:none!important;
   height:48px!important;min-height:48px!important;
 }
 body.rx-v32 .rx-billing-app>.rx41-topbar>.rx41-ecosystem-nav>a{
   height:44px!important;min-height:44px!important;display:flex!important;
   align-items:center!important;justify-content:center!important;
 }
 body.rx-v32 .rx-billing-app>.rx41-topbar>.rx41-topbar-actions{grid-column:2!important;grid-row:1!important;justify-self:end!important}
 body.rx-v32:has(.rx41-topbar-has-modules) .rx-billing-app{padding-top:116px!important}
}
@media(max-width:375px){
 body.rx-v32 .rx-billing-app>.rx41-topbar .rx41-topbar-brand{grid-template-columns:36px 64px minmax(0,1fr)!important;gap:4px!important}
 body.rx-v32 .rx-billing-app>.rx41-topbar .rx41-brand-link{width:64px!important;max-width:64px!important}
 body.rx-role-shell .rx-role-topbar .rx-role-header-left>.rx-role-top-brand-inline{
  flex-basis:65px!important;width:65px!important;min-width:65px!important;max-width:65px!important}
}

/* Exact specificity match for legacy mobile rules that otherwise shrink logos to 30–38px. */
@media(max-width:980px){
 body.rx-role-shell .rx-role-topbar.rx-role-topbar-has-modules>.rx-role-header-left>.rx-role-top-brand-inline{
  display:flex!important;flex:0 0 76px!important;width:76px!important;min-width:76px!important;max-width:76px!important;
  height:40px!important;min-height:40px!important;max-height:40px!important;
 }
}
@media(max-width:355px){
 body.rx-role-shell .rx-role-topbar.rx-role-topbar-has-modules>.rx-role-header-left>.rx-role-top-brand-inline{
  display:flex!important;flex:0 0 65px!important;width:65px!important;min-width:65px!important;max-width:65px!important;
 }
}


/* RXOPD V5 — user-supplied originals, image src is now set by the actual PHP/Blade template.
   No CSS background-image substitution; never hide the real app logo. */
body.rx-role-shell[data-rx-route="/pharmacy"] .rx-role-topbar .rx-role-top-brand-inline,
body.rx-role-shell[data-rx-route^="/pharmacy/"] .rx-role-topbar .rx-role-top-brand-inline{
  background:none!important;
}
body.rx-role-shell[data-rx-route="/pharmacy"] .rx-role-topbar .rx-role-top-brand-inline img,
body.rx-role-shell[data-rx-route^="/pharmacy/"] .rx-role-topbar .rx-role-top-brand-inline img{
  opacity:1!important;visibility:visible!important;
}
body.rx-role-shell .rx-role-topbar .rx-role-header-left>.rx-role-top-brand-inline img,
body.rx-v32 .rx-billing-app>.rx41-topbar .rx41-brand-link img{
  display:block!important;opacity:1!important;visibility:visible!important;
  width:100%!important;height:100%!important;object-fit:contain!important;
}
/* Keep all four app headers fixed to the viewport, not centered page containers. */
body.rx-role-shell>.rx-role-topbar.rx-auth-unified-topbar,
body.rx-v32 .rx-billing-app>.rx41-topbar.rx41-topbar-has-modules{
  position:fixed!important;left:0!important;right:0!important;top:0!important;
  width:100%!important;max-width:none!important;margin:0!important;
  transform:none!important;box-sizing:border-box!important;
}
/* User supplied full-width logo + independently readable workspace title. */
@media(min-width:981px){
 body.rx-role-shell .rx-role-topbar .rx-role-header-left>.rx-role-top-brand-inline{
  flex:0 0 154px!important;width:154px!important;max-width:154px!important;height:46px!important;
 }
 body.rx-v32 .rx-billing-app>.rx41-topbar .rx41-topbar-brand{
  grid-template-columns:40px 148px minmax(0,1fr)!important;
 }
 body.rx-v32 .rx-billing-app>.rx41-topbar .rx41-brand-link{
  width:148px!important;max-width:148px!important;height:46px!important;
 }
}
@media(max-width:980px){
 body.rx-role-shell .rx-role-topbar.rx-role-topbar-has-modules>.rx-role-header-left>.rx-role-top-brand-inline{
  flex:0 0 98px!important;width:98px!important;min-width:98px!important;max-width:98px!important;height:41px!important;
 }
 body.rx-v32 .rx-billing-app>.rx41-topbar>.rx41-topbar-brand{
  grid-template-columns:40px 98px minmax(0,1fr)!important;
 }
 body.rx-v32 .rx-billing-app>.rx41-topbar .rx41-brand-link{
  width:98px!important;max-width:98px!important;height:41px!important;
 }
}
@media(max-width:374px){
 body.rx-role-shell .rx-role-topbar.rx-role-topbar-has-modules>.rx-role-header-left>.rx-role-top-brand-inline{
  flex:0 0 76px!important;width:76px!important;min-width:76px!important;max-width:76px!important;
 }
 body.rx-v32 .rx-billing-app>.rx41-topbar>.rx41-topbar-brand{
  grid-template-columns:36px 76px minmax(0,1fr)!important;
 }
 body.rx-v32 .rx-billing-app>.rx41-topbar .rx41-brand-link{
  width:76px!important;max-width:76px!important;
 }
}
