/* Editors live in the main application viewport and share its ribbon and history. */
.center-area{position:relative;min-width:0}.nx-module-open #viewGrid,.nx-module-open .view-tabs,.nx-module-open .viewport-toolbar{display:none!important}.nx-module-workspace{display:flex;flex-direction:column;flex:1;min-height:0;overflow:hidden;background:#f7f6f9;color:#32283c}.nx-module-workspace.hidden{display:none}.nx-module-workspace>header{display:flex;align-items:center;gap:14px;padding:12px 16px;border-bottom:1px solid #d9d4e0;background:#fff}.nx-module-workspace>header strong{font-size:14px;white-space:nowrap}.nx-module-workspace>header span{flex:1;font-size:11px;color:#4c7458}.nx-module-workspace .error{color:#a42e36}.nx-module-workspace button{padding:8px 11px;border:1px solid #d2c8dc;background:white;color:#4e3963;border-radius:5px;font:600 12px system-ui;cursor:pointer}.nx-module-workspace button:hover{background:#eae1f2}.nx-module-workspace .primary{background:#704694;color:white}.nx-module-workspace input,.nx-module-workspace select{width:100%;min-width:0;padding:8px;border:1px solid #d7d0df;border-radius:4px;font:12px system-ui;background:white;color:#292033;box-sizing:border-box}.nx-module-workspace input[type=checkbox]{width:auto}.nx-module-workspace label{display:flex;flex-direction:column;gap:5px;font:12px system-ui;color:#584961;margin:8px 0}.nx-module-workspace fieldset{border:1px solid #ded6e7;padding:10px;margin:12px 0;border-radius:5px}.nx-module-workspace p,.nx-module-workspace small{font:12px/1.6 system-ui}.nx-module-workspace #nxModuleBody{padding:14px;overflow:auto;min-height:0;flex:1}.nx-module-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-bottom:14px}.nx-module-actions select{width:auto;max-width:260px}.nx-module-grid{display:grid;grid-template-columns:260px minmax(250px,1fr);gap:22px;align-items:start}.nx-module-preview{background:#fff;border:1px solid #ded6e7;border-radius:6px;min-height:360px;overflow:hidden}.nx-module-preview svg{width:100%;height:400px}.nx-module-preview.compact{min-height:180px}.nx-module-preview.compact svg{height:220px}.nx-module-preview.sheet svg{height:auto;min-height:400px;touch-action:none}.nx-family-canvas{border:1px solid #ded6e7;background:repeating-linear-gradient(0deg,#fff,#fff 19px,#eee 20px);height:310px;margin-bottom:14px}.nx-family-canvas svg{width:100%;height:100%;touch-action:none}.nx-family-canvas [data-shape]{cursor:move}.nx-schedule-settings{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:10px;align-items:end}.nx-table-scroll{overflow:auto;margin-top:14px}.nx-module-workspace td input{min-width:90px}.nx-module-workspace th{white-space:nowrap}.tool[hidden]{display:none!important}.nx-module-workspace [data-placement]{cursor:move}
@media(max-width:1100px){.nx-module-grid{grid-template-columns:210px minmax(150px,1fr);gap:12px}.nx-module-workspace>header{flex-wrap:wrap}}@media(max-width:700px){.nx-module-grid{grid-template-columns:1fr}.nx-module-workspace>header strong{white-space:normal}.nx-module-preview{min-height:220px}.nx-module-preview svg{height:260px}}

.nx-module-grid.inspector-external{grid-template-columns:minmax(0,1fr)}.nx-module-inspector label{display:flex;flex-direction:column;gap:5px;margin:10px 0;font:12px system-ui}.nx-module-inspector input,.nx-module-inspector select{box-sizing:border-box;width:100%;padding:8px;border:1px solid #d7d0df;border-radius:4px;font:12px system-ui}.nx-module-inspector input[type=checkbox]{width:auto}.nx-module-inspector fieldset{margin:12px 0;padding:10px;border:1px solid #ded6e7}.nx-module-inspector button{padding:7px 10px;border:1px solid #d2c8dc;border-radius:5px;background:white;font:600 12px system-ui;cursor:pointer}.nx-module-inspector .primary{background:#704694;color:white}.nx-module-inspector small,.nx-module-inspector p{font:12px/1.5 system-ui}.nx-module-workspace .nx-module-preview>svg{display:block} .nx-module-workspace .nx-module-actions{position:sticky;top:-14px;z-index:1;background:#f7f6f9;padding:6px 0}

@media(min-width:1025px){#app{display:flex;flex-direction:column}.topbar,.ribbon,.context-bar{flex-shrink:0}.workspace{flex:1;height:auto;min-height:0}}

/* Specialist workspaces: keep diagrams and input disciplines in one main surface. */
.nx-module-workspace label:has(>input[type=checkbox]){flex-direction:row;align-items:center;gap:8px}
.nx-module-workspace label>input[type=checkbox]{flex:0 0 auto;width:16px;height:16px;margin:0}
.nx-module-workspace .nx-frame-selectors{grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.structural-shell:has([data-str-pane="analysis"].active)>.metric-cards{display:none}
.structural-output:has(#nxFramePlot){white-space:normal;font:13px/1.5 system-ui}
[data-mep-pane][hidden]{display:none!important}
@media(max-width:850px){.nx-module-workspace .nx-frame-selectors{grid-template-columns:1fr}}

/* Connected MEP path editing in the existing workspace. */
.nx-mep-editor{margin-top:18px;border-top:1px solid var(--line,#d8dce5);padding-top:14px}.nx-mep-editor form>label,.nx-mep-editor [data-mep-fields]>label{display:block;margin:9px 0}.nx-mep-editor label input[type=number],.nx-mep-editor label select{width:100%;max-width:100%;box-sizing:border-box}.nx-mep-selection{max-height:250px;overflow:auto;border:1px solid var(--line,#d8dce5);margin:12px 0}.nx-mep-selection th{position:sticky;top:0;background:var(--panel,#fff);z-index:1}.nx-mep-selection small,.nx-mep-audit-table small{display:block;color:#697386;overflow-wrap:anywhere}.nx-mep-diagram{width:100%;height:160px;border:1px solid #ddd5e8;background:#faf8fd}.nx-mep-preview,.nx-mep-editor form{min-width:0}.nx-mep-preview figure{margin:12px 0}.nx-mep-preview figcaption{font-size:12px;margin:4px 0}.nx-mep-coordinate-table,.nx-mep-audit-table{max-height:360px;overflow:auto}.nx-mep-editor .nx-module-grid{grid-template-columns:minmax(220px,1fr) minmax(0,1.6fr)}.nx-mep-editor .data-table{font-size:12px}.nx-mep-editor .data-table input[type=checkbox]{min-width:20px;width:20px;height:20px}@media(max-width:900px){.nx-mep-editor .nx-module-grid{grid-template-columns:minmax(0,1fr)}.nx-mep-selection{max-height:210px}}

.nx-work-template-editor .data-table input,.nx-work-template-editor .data-table select{box-sizing:border-box;max-width:100%;width:100%;min-width:75px}.nx-work-template-editor .data-table td:first-child{min-width:260px}.nx-work-template-editor .data-table td:nth-child(2){min-width:150px}.nx-wt-selection{max-height:260px;overflow:auto;margin:12px 0}.nx-wt-assignments{max-height:440px;overflow:auto}.nx-wt-assignments details{padding:10px;border:1px solid #ddd;margin:8px 0}.nx-wt-assignments label{display:block;margin:8px 0}.nx-wt-selection input[type=checkbox],.nx-wt-assignments input[type=checkbox]{width:20px;height:20px;min-width:20px}#nxWTEditor{min-width:0}#nxWTEditor select[multiple]{min-height:100px}#nxWTPreviewResult .nx-table-scroll{max-height:400px}

.nx-index-table input{box-sizing:border-box;width:100%;min-width:100px}.nx-index-table td:first-child input,.nx-index-table td:nth-child(5) input,.nx-index-table td:nth-child(6) input{min-width:180px}

/* R36: CAD editors and command forms use the same inspector dock; canvas stays live. */
.right-panel.nx-cad-workspace-open{display:flex!important;flex-direction:column;min-height:0;overflow:hidden}
.right-panel.nx-cad-workspace-open>:not(#moduleWorkspace){display:none!important}
.nx-cad-docked{width:100%;min-width:0;height:100%;container-type:inline-size}
.nx-cad-docked>header{flex-wrap:wrap;gap:6px;padding:8px}.nx-cad-docked>header strong{white-space:normal;flex:1 1 180px}
.nx-cad-docked #nxModuleBody{padding:10px;overflow:auto}.nx-cad-docked table{display:block;overflow-x:auto;max-width:100%}
.nx-cad-docked .nx-module-grid,.nx-cad-docked .nx-auto-grid,.nx-cad-docked .nx-pro-grid{grid-template-columns:minmax(0,1fr)!important}
.nx-cad-docked nav{display:flex;flex-wrap:wrap;gap:5px}.nx-cad-docked pre{white-space:pre-wrap;overflow-wrap:anywhere}
.nx-cad-picking{visibility:hidden!important;pointer-events:none!important}
@media(min-width:1025px){body.nx-cad-workspace-active .workspace{grid-template-columns:var(--nx-left-width,220px) minmax(0,1fr) min(440px,40vw)!important}}
@media(max-width:1024px){.right-panel.nx-cad-workspace-open{transform:none!important;z-index:80;width:min(440px,94vw)}}

@media (max-width: 600px) {
  #nxMepPane_paths .nx-module-actions { position: static; }
}
