.finance-filters{display:grid;grid-template-columns:2fr 1fr 1fr;gap:18px;margin:24px 0}.finance-filters .crm-field{margin:0}.finance-status-accepted,.finance-status-paid{background:#efe3ba;color:#4a3914}.finance-status-overdue,.finance-status-rejected,.finance-status-cancelled{background:#e8e6e0;color:#514e43}.finance-status-expired{background:#eee;color:#666}.finance-status-viewed,.finance-status-partial{background:#f9efca;color:#6f571e}.finance-quote-summary{display:flex;align-items:center;justify-content:space-between;gap:16px}.finance-quote-summary strong{font-size:24px;text-align:right}.finance-quote-summary small{display:block;font-size:12px;font-weight:400;margin-top:6px}.finance-table small{display:block;margin-top:5px;line-height:1.5;font-weight:400;color:#686655}.finance-editor h4{font-size:18px;margin:26px 0 16px}.finance-reference{font-size:13px;color:#66634e}.finance-catalogue{display:grid;grid-template-columns:1fr 1fr;gap:16px}.finance-line{display:grid;grid-template-columns:minmax(160px,2fr) minmax(80px,.7fr) minmax(100px,1fr) 36px;align-items:start;gap:12px;padding:18px 14px;background:#f6f5f0;border:1px solid #e9e5d6;border-radius:8px;margin:10px 0}.finance-line .crm-field{margin:0;font-size:12px}.finance-line textarea{min-height:78px}.finance-remove-line{margin-top:25px;font-size:22px!important;min-width:36px;min-height:44px}.finance-totals{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;background:#f8f4e5;padding:20px!important;border:1px solid #ece3c4;border-radius:10px;margin:22px 0;color:#29271d}.finance-totals div{display:flex;justify-content:space-between;gap:8px;font-size:13px}.finance-totals div:last-child{grid-column:1/-1;font-size:20px;border-top:1px solid #d9c98d;padding-top:14px}.finance-totals strong{white-space:nowrap}.finance-detail-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:18px}.finance-detail-heading h3{font-size:24px;line-height:1.35;margin:8px 0;overflow-wrap:anywhere}.finance-detail-heading p{overflow-wrap:anywhere}.finance-meta{display:flex;flex-wrap:wrap;gap:24px;font-size:13px;margin:24px 0}.finance-meta dt{color:#77735d}.finance-meta dd{margin:6px 0;font-weight:600}.finance-detail-lines{border-top:1px solid #e8e4d7;border-bottom:1px solid #e8e4d7;padding:8px 0}.finance-detail-lines p{display:flex;justify-content:space-between;gap:16px;line-height:1.5}.finance-detail-lines small{white-space:nowrap}.finance-text{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.6}.finance-detail section{margin-top:28px}.finance-detail h4{font-size:17px}.finance-confirm{display:flex;align-items:flex-start;gap:12px;line-height:1.6;margin:24px 0}.finance-confirm input{width:20px;height:20px;flex:0 0 20px;margin-top:2px;accent-color:#9e741c}.finance-payment-row{display:flex;justify-content:space-between;gap:16px;padding:16px 0;border-bottom:1px solid #e9e4d7}.finance-payment-row small{display:block;margin-top:6px;font-size:12px;color:#77735d}.finance-history{margin-top:26px;border-top:1px solid #e9e4d7;padding-top:20px;font-size:13px}.finance-history summary{cursor:pointer;font-weight:600}.finance-history p{color:#77735d;line-height:1.5}#finance-signature{width:100%;height:160px;background:#fff;border:1px solid #d6cfb9;border-radius:6px;touch-action:none}.finance-detail .crm-record-actions{margin-top:24px;gap:10px}.finance-editor .crm-fields{align-items:start}
@media(max-width:800px){.finance-filters{grid-template-columns:1fr 1fr}.finance-filters .crm-field:first-child{grid-column:1/-1}.finance-catalogue{grid-template-columns:1fr}.finance-line{grid-template-columns:1fr 1fr 36px;gap:10px}.finance-line .crm-field:first-child{grid-column:1/-1}.finance-remove-line{margin-top:22px}.finance-totals{grid-template-columns:1fr;gap:16px}.finance-detail-heading{display:block}.finance-detail-heading .crm-status{display:inline-block;margin:10px 0}.finance-detail-lines p{display:block}.finance-detail-lines small{display:block;margin-top:6px}.finance-quote-summary strong{font-size:20px}.finance-detail .crm-record-actions button{min-height:44px}.finance-table{min-width:720px}}

.finance-status-overdue{background:#211f18;color:#eec65d;font-weight:600}
@media(max-width:700px){.finance-table{min-width:0;width:100%;border-collapse:separate;border-spacing:0}.finance-table thead{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.finance-table tbody{display:grid;gap:14px}.finance-table tbody tr{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);background:#fff;border:1px solid #e8e3d7;border-radius:9px;padding:16px}.finance-table tbody th{grid-column:1/-1;border:0;padding:0 0 10px}.finance-table tbody td{display:block;border:0;padding:10px 8px 10px 0;text-align:left;white-space:normal;overflow-wrap:anywhere}.finance-table tbody td::before{content:attr(data-label);display:block;font-size:11px;font-weight:400;line-height:1.5;color:#77735d;margin-bottom:7px}.finance-table tbody td:nth-child(2),.finance-table tbody td:nth-child(5),.finance-table tbody td:last-child{grid-column:1/-1}.finance-table .crm-small{min-height:44px}.finance-table .dash-record-title{font-size:16px;line-height:1.5}}
