/* RXOPD and RX Billing module switch */
.rxopd-module-switch{display:grid;grid-template-columns:repeat(2,minmax(92px,1fr));align-items:center;gap:4px;padding:4px;border:1px solid #d6e2ec;border-radius:12px;background:#f6faff;box-shadow:0 3px 12px rgba(20,63,101,.07)}
.rxopd-module-switch a{display:flex;align-items:center;justify-content:center;min-height:36px;padding:0 12px;border-radius:9px;color:#225077;font-size:12px;font-weight:800;text-decoration:none;white-space:nowrap}
.rxopd-module-switch a.active,.rxopd-module-switch a[aria-current="page"]{background:linear-gradient(135deg,#0f72ca,#064c99);color:#fff;box-shadow:0 5px 14px rgba(6,76,153,.24)}
.rxopd-module-switch a:focus-visible{outline:3px solid rgba(15,114,202,.28);outline-offset:2px}
@media(max-width:760px){.rxopd-module-switch{order:3;grid-column:1/-1;width:100%;max-width:310px;margin:5px auto 0}.rxopd-module-switch a{min-height:34px;font-size:11px}.rx-role-topbar{flex-wrap:wrap}}

/* Production header placement */
.rx-role-topbar{display:flex;align-items:center;gap:10px;min-width:0}
.rxopd-module-switch{flex:0 0 auto}
@media(min-width:761px){.rxopd-module-switch{margin-left:auto}.rx-role-top-actions{margin-left:0!important}}
@media(max-width:760px){.rx-role-topbar{display:grid!important;grid-template-columns:minmax(0,1fr) auto!important}.rxopd-module-switch{grid-column:1/-1!important;max-width:none!important;margin:4px 0 0!important}.rx-role-top-actions{grid-column:2;grid-row:1}}
