.customer-editor,.customer-detail{width:min(960px,calc(100vw - 40px))}
.contact-editor{border-top:1px solid var(--border,#e3e7eb);padding:18px 0}
.contact-editor-heading,.customer-detail-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:14px}
.customer-detail-heading h3{font-size:20px;margin:0;overflow-wrap:anywhere}
.contact-fields{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}
.checkbox-label{display:flex;align-items:center;gap:8px;font-size:13px;color:#52616b}
.checkbox-label input{width:16px;height:16px;flex:none;accent-color:#167b66}
.customer-email,.customer-document-fields{overflow-wrap:anywhere}
.customer-document-fields{border-top:1px solid #e3e7eb;padding-top:16px;margin-top:16px}
.customer-editor input[readonly]{background:#f0f3f5}
.toolbar:has(#customer-owner) .toolbar-controls{flex-wrap:wrap}
.customer-detail .detail-grid,.customer-document-fields{grid-template-columns:repeat(2,minmax(0,1fr))}
.customer-detail .detail-grid .wide,.customer-document-fields .wide{grid-column:1/-1}
@media(max-width:650px){.customer-editor,.customer-detail{width:calc(100vw - 16px)}.contact-fields{grid-template-columns:minmax(0,1fr)}.customer-detail .detail-grid,.customer-document-fields{grid-template-columns:minmax(0,1fr)}.customer-detail table{min-width:600px}.customer-detail-heading h3{font-size:18px}.toolbar:has(#customer-owner){display:flex;flex-direction:column;align-items:stretch}.toolbar:has(#customer-owner) .search{width:100%}.toolbar:has(#customer-owner) .toolbar-controls{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));width:100%}.toolbar:has(#customer-owner) select{width:100%;min-width:0;padding-left:8px}}
