/* Sales viewer structure; no changes to printed document layouts. */
.document-register-view{min-width:0}
.document-register-view .doc-top{gap:1rem;margin-bottom:.75rem}
.document-register-view .doc-top h3{margin:0;overflow-wrap:anywhere}
.document-register-view .doc-top p{margin:.4rem 0 0}
.document-register-view .document-pdf-actions{display:flex;gap:.6rem;flex-wrap:wrap;margin:.5rem 0 1rem}
.document-register-view .document-pdf-actions button{white-space:normal}
.document-contact-details{border-block:1px solid var(--line);padding:.8rem 0;margin:.75rem 0 1rem}
.document-contact-details summary,.document-cost-details summary{cursor:pointer;font-weight:600;color:var(--muted)}
.document-contact-details .customer-document-snapshot{margin-bottom:0}
.document-contact-details .customer-document-snapshot>h3{display:none}
.document-family{margin:1rem 0}
.document-family h3{font-size:.8rem;color:var(--muted);margin:0 0 .6rem}
.document-family>div{display:flex;align-items:stretch;gap:.7rem;flex-wrap:wrap}
.document-family-stage{display:flex;flex-direction:column;gap:.3rem;min-width:0;max-width:100%;border:1px solid var(--line);border-radius:.5rem;padding:.65rem .85rem;overflow-wrap:anywhere}
.document-family-stage[aria-current=page]{border-color:var(--green);background:var(--soft)}
.document-family-stage small{color:var(--muted);font-size:.7rem}
.document-family-stage button{padding:0;border:0;background:transparent;text-align:left;white-space:normal;overflow-wrap:anywhere}
.document-reference-value{font-size:.75rem;color:var(--muted);line-height:1.5}
.document-register-view .totals .total-row small{display:block;color:var(--muted);font-size:.7rem}
.document-register-view .totals .total-row button{max-width:100%;white-space:normal;overflow-wrap:anywhere}
.document-cost-details{min-width:0}
.document-cost-details>summary{padding:.3rem 0}
.document-cost-details>summary+div{margin-top:1rem}
.document-register-view .document-secondary .doc-actions{display:flex;gap:.5rem;flex-wrap:wrap;margin-top:1rem}
.document-register-view .document-secondary button{white-space:normal}
@media(max-width:600px){
 .document-register-view .doc-top{display:flex;flex-direction:column;align-items:flex-start}
 .document-family-stage{flex:1 1 135px}
 .document-register-view .document-next{margin:1rem 0;padding:.85rem}
 .document-register-view .document-next .doc-actions{display:flex;gap:.5rem;flex-wrap:wrap}
 .document-register-view .document-next button{max-width:100%;white-space:normal}
}

.customer-return-steps{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.customer-return-steps>div{padding:13px;border:1px solid var(--line);border-radius:8px;min-width:0;overflow-wrap:anywhere}.customer-return-steps dl{display:grid;gap:8px}.customer-return-steps dl>div{display:flex;justify-content:space-between;gap:8px;flex-wrap:wrap}.customer-return-steps dd{margin:0;font-weight:600}.customer-return-capacity{margin-top:16px}.customer-return-capacity summary{cursor:pointer;font-weight:600}.customer-return-capacity td{overflow-wrap:anywhere}
@media(max-width:700px){.customer-return-steps{grid-template-columns:minmax(0,1fr)}.customer-return-workflow .panel-title{flex-wrap:wrap;gap:10px}.customer-return-capacity table,.customer-return-capacity tbody,.customer-return-capacity tr,.customer-return-capacity td{display:block;min-width:0;width:100%}.customer-return-capacity thead{display:none}.customer-return-capacity tr{border-bottom:1px solid var(--line);padding-block:9px}.customer-return-capacity td[data-label]::before{content:attr(data-label);display:block;color:var(--muted);font-size:.8rem}.customer-return-capacity .table-wrap{overflow:visible}}
