/* Full-width management workspaces, preserving the existing mobile menu. */
html body.opd-body:has(>main .qd124-workspace-shell.qd124-management-sidebar)>header{display:none!important}
html body.opd-body>main:has(.qd124-workspace-shell.qd124-management-sidebar){box-sizing:border-box;width:100%!important;max-width:none!important;margin:16px 0 0!important;padding:0!important}
html body.opd-body>main .qd124-workspace-shell.qd124-management-sidebar .qd124-workspace-content>main.opd-wrap{box-sizing:border-box;width:100%!important;max-width:none!important;margin:0!important;padding:10px 0 20px!important}
@media(min-width:1000px){
 html body.opd-body>main .qd124-workspace-shell.qd124-management-sidebar.qdc-clinic-workspace,
 html body.opd-body>main .qd124-workspace-shell.qd124-management-sidebar.qd124-embedded-admin:has(main.opd-wrap){box-sizing:border-box;width:100%!important;max-width:none!important;grid-template-columns:230px minmax(0,1fr)!important;padding-inline:14px!important}
 html body.qd-unified-dashboard .qduni-shell.qd-department-shell{width:100%;max-width:none}
}

/* qd-clinic-single-scroll: the page owns scrolling on desktop. */
@media(min-width:1000px){
 html body.opd-body>main .qd124-workspace-shell.qd124-management-sidebar.qdc-clinic-workspace{height:auto!important;max-height:none!important;overflow:visible!important;padding-inline:0!important;align-items:start!important}
 html body.opd-body>main .qd124-workspace-shell.qd124-management-sidebar.qdc-clinic-workspace>.qd124-workspace-sidebar,
 html body.opd-body>main .qd124-workspace-shell.qd124-management-sidebar.qdc-clinic-workspace>.qd124-workspace-content{height:auto!important;max-height:none!important;overflow:visible!important;position:static!important}
 html body.opd-body>main .qd124-workspace-shell.qd124-management-sidebar.qdc-clinic-workspace>.qd124-workspace-content{min-width:0;padding-inline:clamp(12px,1vw,20px)!important}
}

html body.opd-body>main:has(.qd124-workspace-shell.qd124-management-sidebar.qdc-clinic-workspace){margin-top:0!important}

html:has(body.opd-body .qdc-clinic-workspace){background:#061732!important}

/* Clinic-based dashboard frame for authenticated workspaces. */
html:has(body.opd-body .qd124-workspace-shell.qd124-management-sidebar),
html:has(.qduni-shell),html:has(.qd113-doctor-layout),html:has(#qd113-center){background:#061732!important}
html body:has(>main .qduni-shell,>main .qd113-doctor-layout)>main{width:100%!important;max-width:none!important;margin:0!important;padding:0!important}
html body .qduni-shell>.qduni-sidebar,html body .qd113-doctor-layout>.qd113-doctor-sidebar,html body #qd113-center>.qd113-sidebar{background:linear-gradient(165deg,#052355,#061a3d 68%,#09102c)!important;padding:11px 9px!important}
html body .qduni-nav .qduni-nav-link,html body .qd113-doctor-nav a,html body #qd113-center .qd-admin-portal-nav a{border-radius:8px!important;min-height:36px;gap:10px;justify-content:flex-start!important;text-align:left;padding:7px 8px!important}
html body .qduni-nav .qduni-nav-link[aria-current=page],html body .qd113-doctor-nav a.selected{background:linear-gradient(110deg,#f50065,#b80055)!important;color:#fff!important}
@media(min-width:1000px){
 html body.opd-body>main:has(.qd124-workspace-shell.qd124-management-sidebar){margin-top:0!important}
 html body.opd-body>main .qd124-workspace-shell.qd124-management-sidebar.qd124-embedded-admin:has(main.opd-wrap){height:auto!important;max-height:none!important;overflow:visible!important;padding-inline:0!important;align-items:start!important}
 html body.opd-body>main .qd124-workspace-shell.qd124-management-sidebar.qd124-embedded-admin>.qd124-workspace-sidebar,
 html body.opd-body>main .qd124-workspace-shell.qd124-management-sidebar.qd124-embedded-admin>.qd124-workspace-content{height:auto!important;max-height:none!important;overflow:visible!important;position:static!important}
 html body.opd-body>main .qd124-workspace-shell.qd124-management-sidebar.qd124-embedded-admin>.qd124-workspace-content{min-width:0;padding-inline:clamp(12px,1vw,20px)!important}
 html body .qduni-shell,html body .qd113-doctor-layout,html body.qd113-standalone #qd113-center{display:grid!important;grid-template-columns:230px minmax(0,1fr)!important;width:100%!important;max-width:none!important;height:auto!important;max-height:none!important;margin:0!important;overflow:visible!important;align-items:start!important;border-radius:0!important}
 html body .qduni-shell>.qduni-sidebar,html body .qd113-doctor-layout>.qd113-doctor-sidebar,html body.qd113-standalone #qd113-center>.qd113-sidebar,
 html body .qduni-shell>.qduni-content,html body .qd113-doctor-layout>.qd113-doctor-main,html body.qd113-standalone #qd113-center>.qd113-boardmain{width:auto!important;min-width:0!important;height:auto!important;max-height:none!important;overflow:visible!important;position:static!important}
 html body .qduni-shell>.qduni-content,html body .qd113-doctor-layout>.qd113-doctor-main,html body #qd113-center .qd113-boardcontent{width:auto!important;max-width:none!important}
}

@media(min-width:1000px){
 html body.qd113-standalone:has(#qd113-center){padding:0!important;margin:0!important}
 html body.qd113-standalone #qd113-center.qd113-board{width:100%!important;max-width:none!important;margin:0!important}
}

/* Consistent Super Admin chrome across the home and selected workspaces. */
html body:has(.qduni-shell[data-qd-admin-frame]),html body.qd113-standalone:has(#qd113-center){background:#061732!important;color:#eff8ff!important}
html body:has(.qduni-shell[data-qd-admin-frame])>header,
html body:has(.qduni-shell[data-qd-admin-frame]) .qd113-back-to-center{display:none!important}
html body .qduni-shell[data-qd-admin-frame],html body.qd113-standalone #qd113-center{background:#061732!important;color:#eff8ff!important;border-color:#315579!important}
html body .qduni-shell[data-qd-admin-frame]>.qduni-sidebar,html body.qd113-standalone #qd113-center>.qd113-sidebar{border-right:1px solid #315579!important;color:#eff8ff!important}
html body .qduni-shell[data-qd-admin-frame]>.qduni-content,html body.qd113-standalone #qd113-center>.qd113-boardmain{background:#071a34!important;color:#eff8ff!important}
html body .qduni-shell[data-qd-admin-frame] .qduni-topline,html body.qd113-standalone #qd113-center .qd113-boardtop{background:#102d51!important;border:0!important;border-bottom:1px solid #315579!important;border-radius:0!important;color:#eff8ff!important;min-height:68px;box-sizing:border-box}
html body .qduni-shell[data-qd-admin-frame] .qduni-topline{margin:0 -20px 18px!important;padding-inline:18px!important}
html body .qduni-shell[data-qd-admin-frame] .qduni-content{padding:0 20px 24px!important}
html body .qduni-shell[data-qd-admin-frame] .qduni-content :is(.card,.opd-card):not(.warning,.err,.ok),
html body.qd113-standalone #qd113-center .qd113-boardpanel{background:#0d2a50!important;border:1px solid #315579!important;border-radius:14px!important;color:#eff8ff!important;box-shadow:none!important}
html body .qduni-shell[data-qd-admin-frame] .qduni-nav-link[aria-current=page]{background:#1c4979!important;color:#fff!important}
