.receipt-proofs-section{margin-top:24px;padding-top:24px;border-top:1px solid var(--border)}
.receipt-proofs{min-width:0;color:var(--text)}
.receipt-proofs [hidden]{display:none}
.receipt-proofs-heading h3{margin:0 0 6px;font-size:16px;font-weight:600}
.receipt-proofs-heading p{margin:0 0 16px;line-height:1.5}
.receipt-proof-upload{display:flex;align-items:flex-end;gap:12px;flex-wrap:wrap;margin:16px 0}
.receipt-proof-upload .field{flex:1;min-width:220px;gap:7px}
.receipt-proof-upload .button{min-height:40px;margin-bottom:23px;white-space:nowrap}
.receipt-proof-upload input{width:100%;min-height:40px;padding:8px;border:1px solid var(--border);background:var(--surface);color:var(--text)}
.receipt-proof-workspace{display:grid;grid-template-columns:minmax(160px,220px) minmax(0,1fr);gap:16px;align-items:start}
.receipt-proof-workspace:has(.receipt-proof-list[hidden]){grid-template-columns:minmax(0,1fr)}
.receipt-proof-list{display:flex;flex-direction:column;gap:8px;min-width:0}
.receipt-proof-file{display:flex;align-items:flex-start;gap:9px;width:100%;padding:12px;text-align:left;border:1px solid var(--border);background:var(--surface);color:var(--text);font:inherit;cursor:pointer}
.receipt-proof-file[aria-pressed=true]{border-color:var(--text);background:var(--surface-2)}
.receipt-proof-file>svg{flex:none;width:16px;height:16px;margin-top:2px}
.receipt-proof-file>span{min-width:0}.receipt-proof-file strong{font-size:12px;font-weight:500;overflow-wrap:anywhere;display:block}.receipt-proof-file small{display:block;margin-top:6px;font-size:11px;color:var(--muted)}
.receipt-proof-viewer{min-width:0;border:1px solid var(--border);background:var(--surface-2);padding:12px}
.receipt-proof-viewer>p{margin:8px;line-height:1.5}
.receipt-proof-preview-head{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:12px}
.receipt-proof-preview-head>strong{font-size:12px;font-weight:500;overflow-wrap:anywhere;min-width:0}
.receipt-proof-preview-head .icon-button{flex:none}
.receipt-proof-pdf{display:block;width:100%;height:560px;max-height:65vh;min-height:320px;border:0;background:#fff}
.receipt-proof-image{display:block;width:100%;max-height:65vh;object-fit:contain;background:#fff}
.receipt-proof-feedback{font-size:12px;line-height:1.5}.receipt-proof-feedback:empty{display:none}.receipt-proof-feedback.error{color:var(--danger)}
.crm-payment-receipt-tools{display:flex;gap:10px;align-items:center;min-width:0}.crm-payment-receipt-tools select{flex:1;min-width:0}.crm-payment-receipt-tools .button{white-space:nowrap;min-height:40px}
.crm-payment-receipt-proofs{padding-top:20px;border-top:1px solid var(--border)}
.receipt-create-dialog{width:min(720px,calc(100% - 32px));max-height:calc(100vh - 32px);padding:24px;overflow:auto}
.receipt-create-dialog>header{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin-bottom:20px}.receipt-create-dialog h2{margin:0}.receipt-create-dialog header .help{margin:8px 0 0;line-height:1.5}
.receipt-create-client{display:flex;flex-direction:column;gap:6px;margin:0 0 20px;padding:14px;background:var(--surface-2);border:1px solid var(--border)}.receipt-create-client span{font-size:12px;color:var(--muted)}
.receipt-create-dialog .hr-form-actions{margin-top:24px;padding-top:18px;border-top:1px solid var(--border)}
.receipt-create-proof input{width:100%;padding:8px;border:1px solid var(--border);background:var(--surface);color:var(--text)}
.receipt-create-proof .help{line-height:1.5;color:var(--muted)}
.customer-fiscal{display:block;white-space:normal;overflow-wrap:anywhere}
.cell-sub.customer-fiscal{overflow:visible;text-overflow:clip}
.selected-client .customer-name{display:block}
@media(max-width:680px){.receipt-proof-workspace{grid-template-columns:minmax(0,1fr)}.receipt-proof-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(140px,1fr))}.receipt-proof-upload .button{margin-bottom:0}.receipt-proof-pdf{height:440px}.crm-payment-receipt-tools{flex-wrap:wrap}.crm-payment-receipt-tools select{flex-basis:100%}.receipt-create-dialog{padding:18px}}
