/* 2026-09-18: approved estimate changes only. Header and other pages unchanged. */
.estimate-page .ai-analysis-panel{height:314px!important;min-height:0!important;padding:12px!important;display:flex;flex-direction:column;gap:6px;overflow:hidden}
.estimate-page .ai-analysis-panel>label{font-size:16px!important;margin:0!important}
.estimate-page .ai-analysis-controls{gap:6px!important;flex-shrink:0}
.estimate-page .ai-analysis-controls input,.estimate-page .ai-analysis-controls button,.estimate-page .ai-analysis-controls .ai-analysis-elapsed{min-height:36px!important;height:36px!important;padding:5px 8px!important;font-size:12px!important;margin:0!important}
.estimate-page .ai-analysis-controls .ai-analysis-elapsed:before{width:16px;height:16px;font-size:16px;margin-right:4px}
.estimate-page .ai-analysis-result-panel{padding:0!important;border:0!important;background:none!important;margin:0!important;min-height:0;flex:1;display:flex;flex-direction:column;overflow:hidden}
.estimate-page .ai-analysis-result-panel>strong{font-size:13px!important;margin:0!important;letter-spacing:0!important}
.estimate-page .ai-analysis-result-panel .ai-analysis-status{font-size:12px;max-height:28px;overflow:auto;flex-shrink:0}
.estimate-page .ai-analysis-overview{display:grid;grid-template-columns:repeat(6,minmax(0,1fr))!important;grid-template-rows:minmax(46px,1fr) minmax(46px,1fr) minmax(40px,.85fr);gap:5px!important;margin-top:4px!important;min-height:0;flex:1}
.estimate-page .ai-analysis-overview[hidden]{display:none}
.estimate-page .ai-analysis-overview .analysis-item{grid-column:span 2!important;min-height:0!important;padding:5px 7px!important;overflow:auto;word-break:normal;overflow-wrap:anywhere}
.estimate-page .ai-analysis-overview .analysis-item:nth-child(4),.estimate-page .ai-analysis-overview .analysis-item:nth-child(5){grid-column:span 3!important}
.estimate-page .ai-analysis-overview .analysis-item:last-child{grid-column:1/-1!important}
.estimate-page .ai-analysis-overview b{font-size:12px!important;margin:0 0 2px!important}
.estimate-page .ai-analysis-overview span,.estimate-page .ai-analysis-overview ul{font-size:12px!important;line-height:1.35!important;max-height:none!important;white-space:pre-line}
.estimate-page .ai-analysis-overview ul{padding-left:16px;margin:0}
.estimate-page .ai-reanalysis-panel{grid-row:2!important;height:314px;box-sizing:border-box;overflow:auto}
.estimate-page .drawing-thumb{overflow:hidden!important;display:flex!important;align-items:center;justify-content:center;background:#fff}
.estimate-page .drawing-thumb canvas,.estimate-page .drawing-thumb img{width:100%;height:100%;object-fit:contain;display:block}
.estimate-page #pendingDrawingCard[hidden]{display:none!important}
.estimate-page .drawing-thumb-placeholder{font-size:12px}
.isu-workflow-bar{bottom:calc(var(--isu-account-height,42px) + 28px)!important;max-width:calc(100vw - 36px);box-sizing:border-box}
.isu-member-account{max-width:calc(100vw - 36px);box-sizing:border-box}
.isu-workflow-message{bottom:calc(var(--isu-account-height,42px) + 100px)!important}
#isuReanalysisProposal{padding:8px;background:#fff5d9;border:1px solid #e7b755;font-size:12px}
#isuReanalysisProposal button{min-height:28px;font-size:12px;margin:4px}
@media(max-width:760px){.estimate-page .ai-analysis-controls{grid-template-columns:minmax(0,1fr) 110px!important}.estimate-page .ai-analysis-controls button{grid-column:1/-1}.estimate-page .ai-reanalysis-panel{grid-row:auto!important;height:auto}.estimate-page .ai-analysis-panel{height:350px!important}}

.estimate-page #confirmSelectedDrawingButton{min-height:26px;height:26px;padding:3px 8px;font-size:12px;flex-shrink:0}

/* Fit all reanalysis controls inside the agreed desktop height. */
.estimate-page .ai-reanalysis-panel{min-height:0!important;height:314px!important;padding:12px!important;overflow:auto;display:flex;flex-direction:column;gap:6px}
.estimate-page .ai-reanalysis-panel>strong{font-size:16px!important;margin:0!important;line-height:22px!important;flex-shrink:0}
.estimate-page .reanalysis-options{gap:3px!important}
.estimate-page .reanalysis-options label{font-size:13px!important;min-height:25px!important;line-height:20px!important;gap:8px!important}
.estimate-page .reanalysis-options input[type="checkbox"]{width:20px!important;height:20px!important}
.estimate-page .ai-reanalysis-panel input[type="text"]{height:34px!important;min-height:34px!important;margin:0!important;padding:5px 8px!important;font-size:12px!important;box-sizing:border-box}
.estimate-page .ai-reanalysis-panel button{height:36px!important;min-height:36px!important;margin:0!important;padding:5px!important;font-size:13px!important;flex-shrink:0}
@media(max-width:760px){.estimate-page .ai-reanalysis-panel{height:auto!important;min-height:280px!important}}
