/* V17.7.4.343 — Unified Right Context Drawer width + inside-open-handle position.
   Scope: the physical context drawer and its edge handle only.
   This intentionally does not redefine unrelated reserved-zone geometry. */

/* V17.7.4.556 — one authoritative shell colour for every physical context drawer. */
html body .side-panels,
html body .overview-context,
html body .steel-context-drawer,
html body .single-parts-context-drawer,
html body .cold-rolled-context-drawer,
html body .fasteners-context-drawer,
html body .labels-context-drawer,
html body .production-context-drawer,
html body .loads-context-drawer,
html body .reports-context-drawer,
html body .support-context-drawer,
html body .about-context-drawer,
html body .download-context-drawer,
html body .setout-context,
html body .ar-view-side-panels,
html body .assembly-drawing-side-panels,
html body .labels-preview-context{
  background:var(--v17-bg,#0B1723)!important;
  background-image:none!important;
}

html body.v17-right-drawer-page .side-panels{
  width:var(--v594-drawer-w,264.207px)!important;
  min-width:var(--v594-drawer-w,264.207px)!important;
  max-width:var(--v594-drawer-w,264.207px)!important;
}
html body.v17-right-drawer-page.v17-right-open > button.v17-edge-handle.v17-right-handle,
html body.v17-right-drawer-page.v17-right-open button.v17-edge-handle.v17-right-handle{
  right:calc(var(--v594-drawer-w,264.207px) - var(--structune-drawer-opener-width,27px))!important;
}

/* AR View uses its own drawer selector inside the main SPA. */
html body.v17-ar-active #view-ar-view .ar-view-side-panels{
  width:var(--v594-drawer-w,264.207px)!important;
  min-width:var(--v594-drawer-w,264.207px)!important;
  max-width:var(--v594-drawer-w,264.207px)!important;
}
html body.v17-ar-active.v17-right-open > button.v17-edge-handle.v17-right-handle{
  right:calc(var(--v594-drawer-w,264.207px) - var(--structune-drawer-opener-width,27px))!important;
}

/* Installation Plans owns a dedicated fixed context drawer. */
html body.v17-installation-plans-fixed-layout.v17-right-drawer-page .side-panels{
  width:var(--v594-drawer-w,264.207px)!important;
  min-width:var(--v594-drawer-w,264.207px)!important;
  max-width:var(--v594-drawer-w,264.207px)!important;
}
html body.v17-installation-plans-fixed-layout.v17-right-drawer-page.v17-right-open > button.v17-edge-handle.v17-right-handle,
html body.v17-installation-plans-fixed-layout.v17-right-drawer-page.v17-right-open button.v17-edge-handle.v17-right-handle{
  right:calc(var(--v594-drawer-w,264.207px) - var(--structune-drawer-opener-width,27px))!important;
}

/* V17.7.4.344 — Assembly Drawing right opener must remain above the portaled context drawer.
   The drawing portal is z-index:3200; keep the existing handle as the single close/open control. */
html body.v17-drawing-stage button.v17-edge-handle.v17-right-handle{
  z-index:3201!important;
}
html body.v17-drawing-stage.v17-right-open button.v17-edge-handle.v17-right-handle{
  right:calc(var(--v594-drawer-w,264.207px) - var(--structune-drawer-opener-width,27px))!important;
}
