.order-workspace-page .estimate-output-section { grid-column: 1 / -1; min-width: 0; border-top: 1px solid var(--line); padding-top: 24px; }
.estimate-output-section > * { max-width: 820px; margin-inline: auto; }
.order-workspace-page .estimate-output-section > h2 { max-width: 820px; margin: 0 auto 12px; }
.estimate-output-section .button-row { display: flex; flex-wrap: wrap; gap: 8px; }
.estimate-output-section .button-row button { flex: 1 1 160px; }
.estimate-preview { container-type: inline-size; margin-top: 20px; }
.estimate-preview .customer-estimate {
  padding: 28px;
  background: #fff;
  color: #20292c;
  border: 1px solid #d2dada;
  border-radius: 2px;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 12px;
  line-height: 1.5;
  letter-spacing: 0;
  overflow-wrap: anywhere;
  color-scheme: light;
}
.customer-estimate .estimate-document-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; border-bottom: 1px solid #ccd6d6; padding-bottom: 20px; margin-bottom: 20px; }
.customer-estimate .estimate-document-heading img { width: 200px; max-width: 40%; height: auto; object-fit: contain; }
.customer-estimate .estimate-document-heading > div { text-align: right; min-width: 0; }
.customer-estimate h3 { margin: 0 0 4px; font-size: 28px; color: #2e6659; line-height: 1.2; letter-spacing: 0; }
.customer-estimate .estimate-document-heading span { color: #5c696e; font-size: 11px; }
.customer-estimate .estimate-parties { display: grid; grid-template-columns: minmax(0, 1fr) minmax(170px, 0.8fr); gap: 24px; }
.customer-estimate .estimate-label { color: #5c696e; font-size: 10px; font-weight: 700; text-transform: uppercase; }
.customer-estimate h4 { margin: 4px 0 5px; color: #20292c; font-size: 18px; line-height: 1.35; }
.customer-estimate p { margin: 0; font-size: inherit; color: inherit; }
.customer-estimate .estimate-parties p { color: #5c696e; }
.customer-estimate dl { margin: 0; }
.customer-estimate .estimate-parties dl > div { display: flex; justify-content: space-between; gap: 12px; padding: 2px 0; }
.customer-estimate dt { color: #5c696e; }
.customer-estimate dd { margin: 0; font-weight: 600; text-align: right; }
.customer-estimate .estimate-event { margin: 20px 0 12px; font-size: 13px; font-weight: 700; }
.customer-estimate .estimate-item-table { border-collapse: collapse; table-layout: fixed; width: 100%; min-width: 0; margin: 20px 0 0; }
.customer-estimate .estimate-item-table th { background: #edf2f2; color: #5c696e; font-size: 9px; text-transform: uppercase; font-weight: 700; }
.customer-estimate .estimate-item-table :is(th, td) { padding: 10px 6px; text-align: right; border: 0; border-bottom: 1px solid #d2dada; vertical-align: top; font-size: 11px; }
.customer-estimate .estimate-item-table :is(th, td):first-child { width: 49%; text-align: left; }
.customer-estimate .estimate-item-table :is(th, td):nth-child(2) { width: 9%; }
.customer-estimate .estimate-item-table :is(th, td):nth-child(3) { width: 21%; }
.customer-estimate .estimate-item-table :is(th, td):nth-child(4) { width: 21%; }
.customer-estimate .estimate-item-table td strong { display: block; color: #20292c; font-size: 13px; font-weight: 700; }
.customer-estimate .estimate-item-table td p { margin-top: 3px; color: #5c696e; white-space: pre-line; font-size: 11px; }
.customer-estimate .estimate-item-table tbody tr { background: #fff; }
.customer-estimate .estimate-item-table td:last-child { font-weight: 700; }
.customer-estimate .estimate-totals { margin: 18px 0 24px auto; width: 290px; max-width: 100%; }
.customer-estimate .estimate-totals > div { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; padding: 5px 10px; }
.customer-estimate .estimate-total-primary { background: #ebf5f0; margin: 4px 0; }
.customer-estimate .estimate-total-primary dt { color: #2e6659; font-weight: 700; }
.customer-estimate .estimate-total-primary dd { color: #2e6659; font-size: 22px; }
.customer-estimate .estimate-pricing-note { color: #5c696e; font-size: 11px; margin-top: 10px; }
.customer-estimate .estimate-document-footer { border-top: 1px solid #ccd6d6; padding-top: 16px; }
.customer-estimate .estimate-document-footer h4 { color: #2e6659; font-size: 11px; text-transform: uppercase; margin: 0 0 6px; }
.customer-estimate .estimate-document-footer > div { margin: 12px 0; font-size: 10px; color: #5c696e; }
.customer-estimate .estimate-document-footer strong { color: #2e6659; font-size: 11px; }
@container (max-width: 520px) {
  .estimate-preview .customer-estimate { padding: 18px; }
  .customer-estimate .estimate-document-heading { gap: 12px; }
  .customer-estimate h3 { font-size: 20px; }
  .customer-estimate .estimate-parties { grid-template-columns: 1fr; gap: 14px; }
  .customer-estimate .estimate-item-table thead { display: none; }
  .customer-estimate .estimate-item-table :is(tbody, tr) { display: block; }
  .customer-estimate .estimate-item-table tr { display: grid; grid-template-columns: minmax(0, 0.6fr) repeat(2, minmax(0, 1fr)); border-bottom: 1px solid #d2dada; padding: 10px 0; }
  .customer-estimate .estimate-item-table td { width: auto !important; padding: 4px 0; border: 0; }
  .customer-estimate .estimate-item-table td:first-child { grid-column: 1 / -1; }
  .customer-estimate .estimate-item-table td:nth-child(2) { text-align: left; }
  .customer-estimate .estimate-item-table td[data-label]::before { display: block; content: attr(data-label); color: #5c696e; font-size: 10px; font-weight: 400; }
}
