/* V4.2.33 - Configurator workspace: one panel with four steps, one unit control, the 3D preview always visible. */

/* ---- left panel: four steps instead of four tabs ---- */
#configuratorWorkspace248 .cfg-steps426 .config-category-tabs{display:none!important}
#configuratorWorkspace248 .cfg-steps426 .config-tab-panel{display:block;margin-top:8px;padding-top:2px;border-top:1px solid #e6edf2}
#configuratorWorkspace248 .cfg-steps426 .config-tab-panel[data-config-panel="screen"]{border-top:0;margin-top:2px}
#configuratorWorkspace248 .cfg-steps426 .config-tab-panel.cfg-collapsed426>:not(.cfg-step-head426){display:none!important}
.cfg-step-head426{display:flex;align-items:center;gap:10px;width:100%;padding:10px 2px;border:0;background:none;color:#0f2a3a;font:inherit;text-align:left;cursor:pointer}
.cfg-step-head426 b{flex:none;width:24px;height:24px;border-radius:50%;display:grid;place-items:center;background:#eef1ff;color:#4550d8;font-size:12px}
.cfg-step-head426 span{font-size:15px;font-weight:700}
.cfg-step-head426 i{margin-left:auto;font-style:normal;color:#7a8b95;transition:transform .15s}
.cfg-collapsed426 .cfg-step-head426 i{transform:rotate(180deg)}
.cfg-step-head426:focus-visible{outline:3px solid rgba(79,99,230,.35);outline-offset:2px;border-radius:8px}

/* Calculate is no longer needed: everything updates live */
#configuratorWorkspace248 .calculate-btn,#configuratorWorkspace248 .calculate-row{display:none!important}

/* one unit control for every shape */
.cfg-unitbar426{display:flex;align-items:center;flex-wrap:wrap;gap:10px;margin:2px 0 12px}
.cfg-unitbar426>span{font-size:12px;font-weight:700;color:#5b6f7a}
.cfg-unit-seg426{display:inline-flex;overflow:hidden;border:1px solid #dce4e7;border-radius:10px;background:#fff}
.cfg-unit-seg426 button{padding:7px 15px;border:0;background:transparent;color:#4a5d68;font-size:13px;font-weight:650;cursor:pointer}
.cfg-unit-seg426 button+button{border-left:1px solid #e6edf2}
.cfg-unit-seg426 button.active{background:var(--digix-brand-primary,#4f63e6);color:#fff}
.cfg-unit-seg426 button:disabled{opacity:.45;cursor:default}
.cfg-unitbar426 small{color:#6b7c86;font-size:12px}
.cfg-hide-unit426{display:none!important}

/* site survey block: one line when no survey is linked */
#surveySiteConditions198 .cfg-survey-empty426{display:none}
#surveySiteConditions198.cfg-empty426>:not(.cfg-survey-empty426){display:none!important}
#surveySiteConditions198.cfg-empty426 .cfg-survey-empty426{display:block;margin:4px 0 10px;padding:10px 12px;border:1px dashed #d5dde3;border-radius:10px;background:#fafbfc;color:#6b7c86;font-size:12.5px;line-height:1.45}

/* optional component details: Brand and Model no longer clipped */
#configuratorWorkspace248 .component-details-grid input{min-width:0;width:100%}
#configuratorWorkspace248 .component-details-grid>*{min-width:0}
#configuratorWorkspace248 .component-card{display:grid;grid-template-columns:1fr;gap:6px}
#configuratorWorkspace248 .component-card>b{font-size:12.5px}
#configuratorWorkspace248 .component-details-grid input::placeholder{font-size:12.5px;overflow:visible;text-overflow:clip}

/* ---- right column: the 3D preview sits under the summary ---- */
#configuratorWorkspace248 .stage426{padding:0;overflow:hidden}
.stage-bar426{display:flex;align-items:center;flex-wrap:wrap;gap:8px 14px;padding:12px 16px 8px}
.stage-bar426 h3{margin:0;font-size:15px}
.stage-fit426{display:inline-flex;flex-wrap:wrap;gap:6px;margin-left:auto}
.stage-fit426[hidden]{display:none}
.stage-fit426 button{padding:6px 12px;border:1px solid #dce4e7;border-radius:999px;background:#fff;color:#33464f;font-size:12.5px;font-weight:650;cursor:pointer}
.stage-fit426 button.active{border-color:var(--digix-brand-primary,#4f63e6);background:var(--digix-brand-primary,#4f63e6);color:#fff}
.stage-content426{display:flex;flex-wrap:wrap;align-items:flex-end;gap:8px 14px;padding:2px 16px 10px;border-bottom:1px solid #eef2f5}
.stage-content426 .field{margin:0;min-width:0;flex:0 1 240px}
.stage-content426 .field.full{flex-basis:240px}
.stage-content426 .field label{font-size:11.5px}
.stage-content426 .field.hidden,.stage-content426 .hidden{display:none!important}
.stage-content426 .media-preview-note{margin-top:4px;font-size:11.5px;max-width:420px}
/* V4.2.49 — switching Screen Content to Image/Video reveals the Upload/Content Fit/Video-controls
   fields (and Text reveals the Text-on-3D-Screen field), which used to collapse out of the flex row
   entirely (display:none) when not applicable, shrinking the row for DIGIX/Text and growing it for
   Image/Video — visibly resizing the "3D Preview" header band and shoving the 3D canvas up/down.
   Earlier attempts got this wrong: V4.2.47 reserved layout space for every field at once
   (visibility:hidden), which inflated ALL four states to the tallest one's size instead of matching
   the compact DIGIX size that was actually wanted. V4.2.48 kept display:none toggling but capped
   #stageContent426's height with overflow-y:auto — that stopped the resize but added a visible
   scrollbar to reach the Upload field's lower controls on Image/Video, which looked worse than the
   original bug. A follow-up widened the Upload field and put its input/button on one line, which
   helped, but at the app's real (narrower, ~990px) panel width the fields still auto-wrapped
   unpredictably — 3 fields fit on Image's row, but Video's 4th field spilled onto its own extra
   line, still needing a scrollbar.
   The real reason Image/Video needed more height at all: every file <input> in this app gets a
   "Paste Image" button auto-injected BELOW it app-wide (paste-file-tools109, added by
   019-v4109globalpatch.js), and the Upload field used to stack label -> input -> that button row ->
   a "Local preview only..." note vertically inside only a 240px-wide column — four block lines deep,
   ~170px tall on its own vs. ~61-74px for a plain select field (the note is now a title="" tooltip
   on the input instead, and the hint text is dropped, from an earlier pass of this same fix).
   Rather than let the flex row auto-wrap wherever the browser happens to run out of horizontal
   space (which is exactly what produced the scrollbar — different fields landing on 1 vs 2 lines
   depending on window width), this now RE-ARRANGES the fields into a fixed, deliberate two-line
   layout that no longer depends on container width: Screen Content + Content Fit + the Video
   controls (all short fields) are reordered onto line 1 via the CSS `order` property, and the
   Upload Image/Video field — the one field whose input+Paste-Image-button need real width — is
   forced onto its own full-width line 2 (flex-basis:100%), where it lays its input and button out
   side by side on one line rather than three stacked lines. This is the same total layout for both
   Image and Video (adding the Video-controls field to line 1 costs nothing extra), so switching
   between them causes no further resize, and — because the arrangement no longer depends on how
   much horizontal room happens to be available — no scrollbar is needed at any reasonable panel
   width; overflow is left visible rather than clipped/scrolled. DIGIX and Text are untouched (still
   a single compact line, unaffected by any of this) and stay at their original ~74px height; Image/
   Video now consistently land around ~140-150px in two clean rows instead of the previous scrollbar. */
#stageContent426 .field.full{order:1}
#stageContent426 .field.content-media-only:not(.full){order:2}
#stageContent426 .field.content-video-only{order:3}
#stageContent426 .field.content-media-only.full:not(.hidden){order:4;flex-basis:100%;display:flex!important;flex-wrap:wrap;align-items:center;column-gap:8px;row-gap:4px;margin-top:4px}
#stageContent426 .field.content-media-only.full>label{flex:0 0 100%}
#stageContent426 .field.content-media-only.full input[type=file]{flex:0 1 320px;width:auto;min-width:120px}
#stageContent426 .field.content-media-only.full .paste-file-tools109{margin-top:0!important;flex:0 0 auto}
#stageContent426 .field.content-media-only.full .paste-file-hint{display:none}
#stageContent426{overflow:visible}
.stage-content426 select,.stage-content426 input[type=text]{width:100%}
#configuratorWorkspace248 #layout.stage-pane426{display:block;margin:0}

/* summary tiles: long per-side resolutions stay compact */
#configuratorWorkspace248 .kpi b{overflow-wrap:anywhere}
#configuratorWorkspace248 .kpi b.kpi-long426{font-size:15px;line-height:1.3}

/* power strip: readable sizes (was 7-8px) */
#configuratorWorkspace248 .pe-strip span{font-size:11px!important}
#configuratorWorkspace248 .pe-strip b{font-size:13px!important}
#configuratorWorkspace248 .pe-strip-actions button{font-size:12.5px!important}

/* V4.2.36: BOM Inputs is always visible now (no longer gated by Advanced); keep its title above the rows */
#configuratorWorkspace248 .cfg-bom426{display:block}

/* Site & Power step: label and value on one line with room for the label; presets as pills */
#configuratorWorkspace248 .cfg-steps426 .technical-rule-row{display:grid;grid-template-columns:minmax(0,1fr) 108px;align-items:center;gap:6px 10px}
#configuratorWorkspace248 .cfg-steps426 .technical-rule-row:has(.power-preset-row){grid-template-columns:1fr}
#configuratorWorkspace248 .cfg-steps426 .technical-rule-row label small{display:block;margin-top:2px;font-weight:400;line-height:1.35}
#configuratorWorkspace248 .cfg-steps426 .power-preset-row{display:flex;flex-wrap:wrap;gap:6px}
#configuratorWorkspace248 .cfg-steps426 .power-preset-row button{padding:5px 11px;border:1px solid #dce4e7;border-radius:999px;background:#fff;color:#33464f;font-size:12px;font-weight:650;cursor:pointer}
#configuratorWorkspace248 .cfg-steps426 .power-preset-row button:hover{border-color:var(--digix-brand-primary,#4f63e6);color:var(--digix-brand-primary,#4f63e6)}
#configuratorWorkspace248 .cfg-steps426 .power-mode-options{display:grid;grid-template-columns:1fr 1fr;gap:8px}
#configuratorWorkspace248 .cfg-steps426 .power-mode-btn small{display:block;font-size:10.5px;white-space:nowrap}

/* Power & Energy: "Expected Energy & Cost" repeated the KPI cards and the Client Energy Estimate (same kW / kWh / cost three times) */
#configuratorWorkspace248 #power .pe-energy-main{display:none}
