.invoice-modal{width:min(1000px,calc(100% - 30px))}.invoice-meta{display:grid;grid-template-columns:repeat(4,1fr);gap:10px}.catalog-add{display:grid;grid-template-columns:2fr 90px 130px auto;gap:10px;align-items:end;background:#edf6fb;border:1px solid #d8e8f1;border-radius:8px;padding:14px;margin:15px 0}.catalog-add button{height:36px;margin-bottom:13px}.invoice-lines{border:1px solid #dce5ea;border-radius:8px;overflow:auto}.invoice-lines input{margin:0}.invoice-lines .line-description{min-width:240px}.invoice-lines .line-qty{width:55px}.remove-line{border:0;background:#f5e2df;color:#a54d44;border-radius:50%;width:24px;height:24px}.empty-lines{text-align:center;color:#8798a3;padding:28px}.invoice-bottom{display:grid;grid-template-columns:1fr 330px;gap:25px;margin-top:18px}.invoice-totals{background:#f4f7f9;border-radius:8px;padding:12px 17px}.invoice-totals p{display:flex;align-items:center;justify-content:space-between;margin:8px 0;font-size:10px}.invoice-totals input{width:100px;margin:0;text-align:right}.invoice-totals .grand{border-top:2px solid #267aa8;border-bottom:1px solid #d7e1e6;padding:11px 0;font-size:14px}.record-summary{display:grid;grid-template-columns:repeat(auto-fit,minmax(105px,1fr));gap:8px;margin-bottom:18px}.record-summary span{background:#edf5f9;border-radius:7px;padding:12px;font-weight:800;color:#1f668f}.record-summary small{display:block;color:#6f8492;font-weight:500;font-size:8px;margin-top:4px}.related-section{border-top:1px solid #dce5ea;margin-top:18px;padding-top:12px}.related-section h3{font:700 11px Manrope;margin:13px 0 7px}.related-section>button:not(.primary):not(.secondary):not(.link-button){width:100%;display:flex;justify-content:space-between;align-items:center;border:1px solid #dce5ea;background:#f8fafb;border-radius:6px;padding:10px;margin-bottom:6px;text-align:left;cursor:pointer}.related-section button span b,.related-section button span small{display:block}.related-section button span b{font-size:9px}.related-section button span small{font-size:8px;color:#758995;margin-top:3px}.related-section button i{font-style:normal;font-size:8px;color:#277ba8}.related-section .primary{margin-top:10px}.related-followup{display:grid;gap:3px;border:1px solid #dce5ea;border-left:3px solid #2a85b1;border-radius:6px;background:#f8fbfd;padding:10px;margin-bottom:6px}.related-followup strong{font-size:10px;color:#173247}.related-followup small,.related-followup p{margin:0;font-size:9px;color:#607583}.link-button{border:0;background:none;color:#176ca4;font-weight:700;font-size:9px;margin-left:10px;cursor:pointer}.related-line{display:flex;justify-content:space-between;background:#f5f8f9;padding:8px;margin:4px 0;font-size:9px}.answer-detail{background:#f4f7f9;border-left:3px solid #3d91bd;padding:8px 10px;margin-bottom:6px}.answer-detail b{font-size:8px;color:#5c7484}.answer-detail p{font-size:9px;margin:4px 0 0}@media(max-width:800px){.invoice-meta,.catalog-add{grid-template-columns:1fr 1fr}.invoice-bottom{grid-template-columns:1fr}.record-summary{grid-template-columns:1fr}}
.preset-editor-panel{margin-bottom:16px}.preset-editor-rows{padding:12px;display:grid;gap:8px}.preset-row{display:grid;grid-template-columns:150px 1fr 120px 150px auto;gap:8px;align-items:end;background:#f6fafc;border:1px solid #dce8ef;border-radius:8px;padding:10px}.preset-row label{font-size:8px;font-weight:800;color:#607687}.preset-row input{width:100%;border:1px solid #d4dfe5;border-radius:6px;padding:8px;margin-top:4px}.preset-calcs{display:grid;gap:3px;font-size:8px;color:#617687}.remove-preset{border:1px solid #f0c9c5;background:#fff0ee;color:#a54d44;border-radius:6px;padding:8px;font-size:8px;font-weight:800;cursor:pointer}@media(max-width:900px){.preset-row{grid-template-columns:1fr 1fr}.preset-calcs{grid-column:1/-1}}
