/* Scoped layout: calculations, hidden states and print templates stay intact. */
html body.estimate-page .quote-flow{grid-template-columns:repeat(6,minmax(0,1fr))!important;gap:6px!important}
.quote-flow a{display:block;padding:11px 7px;border:1px solid #c6d6e7;border-radius:8px;background:#fff;color:#24435e;text-decoration:none;text-align:center;font-size:13px;font-weight:700;line-height:1.5}
.quote-flow a.active{background:#1267a8;color:#fff;border-color:#1267a8}
.quote-flow a:focus-visible{outline:3px solid #76b7ec;outline-offset:2px}
#isuWorkflowSections{min-width:0}
#isuWorkflowSections .isu-workflow-section{margin:0 0 38px;scroll-margin-top:var(--isu-scroll59,160px);min-width:0}
#isuWorkflowSections .isu-workflow-heading{font-size:24px;line-height:1.5;color:#153e61;margin:0 0 8px}
#isuWorkflowSections .isu-workflow-help{font-size:14px;line-height:1.7;margin:0 0 16px;color:#52687d}
#isuWorkflowSections [hidden]{display:none!important}
#isuWorkflowSections .function-card{margin-bottom:14px}
#isuWorkflowSections .analysis-model-row{margin:0 0 18px!important}
#isuWorkflowSections .ai-reanalysis-panel{margin:12px 0!important;width:100%!important;box-sizing:border-box}
#isuWorkflowSections #isuOperatingSimulation{margin:14px 0!important}
#isuWorkflowSections #isuWorkflowToolDock #isuTurret12{margin:0!important;padding-top:0!important;border-top:0!important}
#isuWorkflowSections #productQuoteList{width:100%;margin:18px 0;box-sizing:border-box}
#isuWorkflowSections #kgPriceGroup{margin:16px 0;width:100%;box-sizing:border-box}
#isuWorkflowSections #analysisStatus{white-space:normal}
html.isu-customer-mode #isuWorkflowStep3,html.isu-customer-mode #isuWorkflowStep4,html.isu-customer-mode #isuWorkflowStep5,html.isu-customer-mode #isuWorkflowStep6,html.isu-customer-mode .quote-flow{display:none!important}
@media(max-width:1000px){html body.estimate-page .quote-flow{grid-template-columns:repeat(3,minmax(0,1fr))!important}.quote-flow a{font-size:12px;padding:7px 5px}}
@media(max-width:600px){#isuWorkflowSections .isu-workflow-heading{font-size:20px}#isuWorkflowSections .grid3{grid-template-columns:1fr!important}.quote-flow a{font-size:11px}}
@media print{.quote-flow,.isu-workflow-heading,.isu-workflow-help,#isuWorkflowResultHelp{display:none!important}}
/* Compact flow: remove vacant grid tracks after panels move, without limiting results. */
html body.estimate-page .function-main{padding:16px 0 28px!important}
html body.estimate-page #isuWorkflowSections .isu-workflow-section{margin-bottom:16px}
html body.estimate-page #isuWorkflowSections .isu-workflow-heading{font-size:20px;margin:0 0 4px;line-height:1.35}
html body.estimate-page #isuWorkflowSections .isu-workflow-help{margin:0 0 8px;font-size:12px;line-height:1.5}
html body.estimate-page #isuWorkflowSections .function-card{padding:12px!important;margin:0 0 8px!important;border-radius:10px!important;min-height:0!important;height:auto!important}
html body.estimate-page #isuWorkflowSections .grid3{gap:8px 12px!important;align-items:start}
html body.estimate-page #isuWorkflowSections .drawing-analysis-row{display:flex!important;flex-direction:column;gap:8px!important;min-height:0!important;height:auto!important}
html body.estimate-page #isuWorkflowSections .drawing-analysis-row>*{grid-area:auto!important;width:100%!important;min-width:0;box-sizing:border-box}
html body.estimate-page #isuWorkflowSections .drawing-upload-panel,
html body.estimate-page #isuWorkflowSections .ai-analysis-panel,
html body.estimate-page #isuWorkflowSections .ai-analysis-result-panel,
html body.estimate-page #isuWorkflowSections .ai-reanalysis-panel{padding:10px 12px!important;margin:0 0 8px!important;min-height:0!important;height:auto!important}
html body.estimate-page #isuWorkflowSections .analysis-model-row{align-items:start!important;min-height:0!important;height:auto!important;margin-bottom:8px!important}
html body.estimate-page #isuWorkflowSections .analysis-model-row:has(>#isuPart3D[hidden]){grid-template-columns:minmax(0,1fr)!important}
html body.estimate-page #isuWorkflowSections .analysis-model-row>*{grid-area:auto!important;min-height:0!important;align-self:start!important}
html body.estimate-page #isuWorkflowSections #isuOperatingSimulation,
html body.estimate-page #isuWorkflowSections #kgPriceGroup,
html body.estimate-page #isuWorkflowSections #productQuoteList{margin:8px 0!important}
html body.estimate-page #isuWorkflowSections .function-card:empty,
html body.estimate-page #isuWorkflowSections .drawing-analysis-row:empty{display:none!important}
html body.estimate-page #isuWorkflowSections .isu-estimate-intro-layout{margin:0 0 8px!important;min-height:0!important;height:auto!important;grid-template-columns:1fr!important}
html body.estimate-page #isuWorkflowSections .isu-estimate-intro-layout>*{grid-area:auto!important;min-height:0!important;height:auto!important}
html body.estimate-page .quote-flow a{padding:7px 5px}
@media(min-width:1100px){html body.estimate-page #isuWorkflowSections .grid3{grid-template-columns:repeat(4,minmax(0,1fr))!important}}
@media(max-width:600px){html body.estimate-page #isuWorkflowSections .grid3{grid-template-columns:repeat(2,minmax(0,1fr))!important}html body.estimate-page #isuWorkflowSections .grid3>div{min-width:0}html body.estimate-page #isuWorkflowSections input,html body.estimate-page #isuWorkflowSections select{max-width:100%;box-sizing:border-box}html body.estimate-page #isuWorkflowSections button{min-height:44px!important}}
@media(max-width:380px){html body.estimate-page #isuWorkflowSections .grid3{grid-template-columns:1fr!important}}

/* Keep account controls below the sticky header even when child assets set a high z-index. */
@media screen {
 html body.estimate-page #isu-account-dock59{position:relative!important;inset:auto!important;z-index:0!important;isolation:isolate}
 html body.estimate-page #isu-account-dock59 .isu-member-account,
 html body.estimate-page #isu-account-dock59 .isu-workflow-bar{position:static!important;inset:auto!important;z-index:auto!important;transform:none!important}
 html body.estimate-page>.quote-flow{top:var(--isu-header59,64px)!important;z-index:990!important}
 html body.estimate-page #isuWorkflowSections .isu-workflow-section{scroll-margin-top:var(--isu-scroll59,160px)!important}
}
