#estimate-workspace .estimate-panel{padding:22px;margin:16px 0;min-width:0}
#estimate-workspace .estimate-totals{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px}
#estimate-workspace .estimate-layout{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:20px}
#estimate-workspace .estimate-heading,#estimate-workspace .estimate-actions{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}
#estimate-workspace label{display:grid;gap:6px;margin-bottom:14px}
#estimate-workspace input,#estimate-workspace select,#estimate-workspace textarea{width:100%;box-sizing:border-box;padding:10px;border:1px solid var(--line);border-radius:6px;font:inherit}
#estimate-workspace .estimate-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
#estimate-workspace .estimate-table{overflow:auto}
#estimate-workspace .estimate-notes{white-space:pre-wrap;overflow-wrap:anywhere}
#estimate-workspace .estimate-service{border-top:1px solid var(--line);padding:14px 0;overflow-wrap:anywhere}
#estimate-workspace .estimate-totals h2{font-size:1.25rem;overflow-wrap:anywhere}
@media(max-width:800px){#estimate-workspace .estimate-layout{grid-template-columns:1fr}#estimate-workspace .estimate-totals{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:450px){#estimate-workspace .estimate-fields{grid-template-columns:1fr}}
#rfq-estimates .estimate-panel{padding:22px;margin:16px 0;min-width:0}
#rfq-estimates .estimate-totals{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px}
#rfq-estimates .estimate-layout{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:20px}
#rfq-estimates .estimate-heading,#rfq-estimates .estimate-actions{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}
#rfq-estimates label{display:grid;gap:6px;margin-bottom:14px}
#rfq-estimates input,#rfq-estimates select,#rfq-estimates textarea{width:100%;box-sizing:border-box;padding:10px;border:1px solid var(--line);border-radius:6px;font:inherit}
#rfq-estimates .estimate-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
#rfq-estimates .estimate-table{overflow:auto}
#rfq-estimates .estimate-notes{white-space:pre-wrap;overflow-wrap:anywhere}
#rfq-estimates .estimate-service{border-top:1px solid var(--line);padding:14px 0;overflow-wrap:anywhere}
#rfq-estimates .estimate-totals h2{font-size:1.25rem;overflow-wrap:anywhere}
@media(max-width:800px){#rfq-estimates .estimate-layout{grid-template-columns:1fr}#rfq-estimates .estimate-totals{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:450px){#rfq-estimates .estimate-fields{grid-template-columns:1fr}}

.estimate-handover .estimate-table{overflow-x:auto;max-width:100%}
.estimate-handover td{overflow-wrap:anywhere}
.estimate-handover .module-table{min-width:560px}

#rfq-estimates .estimate-steps{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:20px 0}
#rfq-estimates .estimate-steps button{white-space:normal;text-align:left;padding:16px}
#rfq-estimates .estimate-steps [aria-pressed="true"]{background:var(--primary,#174e79);color:white;border-color:var(--primary,#174e79)}
#rfq-estimates .estimate-next{background:#eef5fa;padding:12px 16px;border-radius:8px;color:#16334b}
#rfq-estimates summary{cursor:pointer;font-weight:600}
#rfq-estimates .estimate-missing{background:#fff7e8;border-radius:8px;padding:12px;margin:12px 0}
#rfq-estimates .estimate-actions{justify-content:flex-start;margin:20px 0}
#rfq-estimates [data-settings],#rfq-estimates [data-legacy]{margin-top:24px}
@media(max-width:620px){#rfq-estimates .estimate-steps{grid-template-columns:1fr;gap:6px}#rfq-estimates .estimate-steps button{padding:10px 14px}}

#rfq-estimates .estimate-layout{align-items:start}

#rfq-estimates .estimate-entry-layout:has([data-editor] form){display:grid;grid-template-columns:minmax(0,1.2fr) minmax(320px,1fr);gap:24px;align-items:start}
#rfq-estimates .estimate-entry-layout>*{min-width:0}
#rfq-estimates [data-action-message]:not(:empty){padding:12px 16px;background:#eef5fa;border-left:4px solid var(--primary,#174e79);border-radius:6px}
@media(max-width:1000px){#rfq-estimates .estimate-entry-layout:has([data-editor] form){grid-template-columns:1fr}#rfq-estimates .estimate-entry-layout [data-editor]{grid-row:1}}

/* Guided commercial workflow */
#rfq-estimates .estimate-context{display:flex;align-items:center;gap:24px;justify-content:space-between;padding:16px 20px}
#rfq-estimates .estimate-context h2{margin:4px 0;font-size:1.25rem}
#rfq-estimates .estimate-context p{margin:4px 0}
#rfq-estimates .estimate-context-stat{display:grid;text-align:center;flex-shrink:0;color:var(--muted)}
#rfq-estimates .estimate-context-stat strong{font-size:1.6rem;color:var(--ink,#18334b)}
#rfq-estimates .estimate-steps{gap:8px;margin:16px 0}
#rfq-estimates .estimate-steps button{display:grid;gap:5px;border-radius:10px;font-weight:400}
#rfq-estimates .estimate-steps strong{font-size:.95rem}
#rfq-estimates .estimate-steps span{font-size:.82rem}
#rfq-estimates .estimate-steps small{justify-self:start;border:1px solid currentColor;border-radius:20px;padding:2px 8px;font-size:.72rem;margin-top:4px}
#rfq-estimates .estimate-action-dock{position:sticky;bottom:0;background:#fff;border:1px solid var(--line);border-radius:10px;padding:12px 16px;box-shadow:0 -4px 20px #16334b0d;z-index:3}
#rfq-estimates .estimate-action-dock .estimate-actions{margin:0;justify-content:space-between}
#rfq-estimates .estimate-main-actions{display:flex;gap:8px;flex-wrap:wrap;align-items:center}
#rfq-estimates .estimate-action-dock [data-action-message]:empty{display:none}
#rfq-estimates [name="currencyCode"]{max-width:220px}
@media(max-width:620px){#rfq-estimates .estimate-context{flex-wrap:wrap}#rfq-estimates .estimate-steps button{grid-template-columns:1fr auto;align-items:center}#rfq-estimates .estimate-steps span{display:none}#rfq-estimates .estimate-steps small{margin:0}#rfq-estimates .estimate-action-dock{position:static}#rfq-estimates .estimate-main-actions{width:100%}}

.estimate-wbs-stage{background:#e8f0f7}.estimate-wbs-discipline{background:#f5f8fb}.estimate-table .estimate-notes{display:block;max-width:42rem;white-space:pre-wrap;overflow-wrap:anywhere}
