.consultation-review-outputs { display:flex; flex-wrap:wrap; gap:8px; margin-bottom:12px; }
.consultation-review-outputs button { min-height:44px; }
.consultation-quote {
  width:min(900px, calc(100vw - 20px)); max-height:92dvh; padding:0;
  color:#24352d; background:#fffefa; border:1px solid #d4ddd2; border-radius:16px;
}
.consultation-quote[open] { display:grid; grid-template-rows:auto minmax(0,1fr) auto; }
.consultation-quote::backdrop { background:#1a2b23b8; }
.consultation-quote header,.consultation-quote footer { display:flex; align-items:center; justify-content:space-between; gap:8px; padding:12px 16px; }
.consultation-quote header { border-bottom:1px solid #dce2d7; }
.consultation-quote header > div:last-child { display:flex; flex-wrap:wrap; justify-content:flex-end; gap:6px; }
.consultation-quote h2 { margin:0; font-size:1.27rem; }
.consultation-quote p { margin:4px 0; font-size:.8rem; line-height:1.45; }
.consultation-quote .quote-body { overflow:auto; min-height:0; padding:12px 16px; }
.consultation-quote button,.consultation-quote select,.consultation-quote input {
  box-sizing:border-box; max-width:100%; min-height:36px; border:1px solid #c9d6cc; border-radius:7px;
  padding:6px 8px; color:inherit; background:white; font:inherit;
}
.consultation-quote button { cursor:pointer; font-weight:650; }
.consultation-quote :is([aria-pressed=true],[data-quote-print]) { background:#344f41; color:white; border-color:#344f41; }
.quote-options { display:grid; grid-template-columns:1.35fr .7fr .95fr auto; align-items:end; gap:6px; margin-bottom:9px; }
.quote-options label { display:grid; gap:3px; font-size:.8rem; font-weight:650; min-width:0; }
.quote-options .quote-check { display:flex; gap:4px; align-items:center; }
.quote-options .quote-check input { min-height:0; }
.quote-tabs,.quote-labor-actions,.quote-labor-actions form { display:flex; flex-wrap:wrap; gap:6px; margin:8px 0; }
.quote-labor-actions[hidden] { display:none; }
.quote-labor-actions form { margin:0; }
.quote-labor-actions [name=quantity] { width:75px; }
.consultation-quote table,.consultation-quote-paper table { width:100%; table-layout:fixed; border-collapse:collapse; font-size:.83rem; }
.consultation-quote :is(td,th),.consultation-quote-paper :is(td,th) { padding:6px 5px; border-bottom:1px solid #e0e5dc; text-align:right; overflow-wrap:anywhere; }
.consultation-quote :is(td,th):first-child,.consultation-quote-paper :is(td,th):first-child { text-align:left; width:44%; }
.consultation-quote td small,.consultation-quote-paper td small { display:block; font-size:.71rem; font-weight:400; opacity:.8; }
.consultation-quote footer { border-top:1px solid #dce2d7; background:#eef2ea; font-size:.79rem; }
.consultation-quote footer span { display:grid; gap:2px; }
.consultation-quote footer strong { font-size:1.15rem; white-space:nowrap; }
.consultation-quote-paper header,.quote-grand-total { display:flex; align-items:center; justify-content:space-between; }
.consultation-quote-paper h2 small { margin-inline-start:10px; }
.consultation-quote-paper section { margin-block:14px; }
.consultation-quote-paper .quote-grand-total { border-top:2px solid #344f41; padding:12px 0; }
@media(max-width:570px) {
  .consultation-quote header,.consultation-quote footer,.consultation-quote .quote-body { padding:9px; }
  .quote-options { grid-template-columns:1fr 1fr; }
  .consultation-quote :is(td,th):first-child { width:34%; }
  .consultation-quote :is(td,th):nth-child(2) { width:16%; }
  .consultation-quote [data-quote-price] { padding-inline:4px; appearance:textfield; font-variant-numeric:tabular-nums; }
  .consultation-quote [data-quote-price]::-webkit-inner-spin-button { appearance:none; margin:0; }
}
@media print {
  html:has(body.printing-consultation .consultation-quote-paper),
  body.printing-consultation:has(.consultation-quote-paper),
  body.printing-consultation #printArea:has(.consultation-quote-paper) { background:white!important; }
  #printArea .consultation-quote-paper h1 { text-align:left; letter-spacing:0; }
  #printArea .consultation-quote-paper :is(td,th) { padding:5px; border:0; border-bottom:1px solid #dce2d7; }
  #printArea .consultation-quote-paper .quote-grand-total { break-inside:avoid; }
}
