.proforma-form{display:grid;gap:22px}.proforma-form .panel{margin-bottom:0}.proforma-form label,.proforma-client-fields label{display:grid;gap:6px;font-size:12px;font-weight:800;color:#4e574b}.proforma-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin-top:16px}.proforma-fields:first-of-type{margin-top:0}.proforma-fields .span-2{grid-column:1/-1}.proforma-fields small{display:flex;align-items:center;flex-wrap:wrap;gap:9px;margin-top:8px;color:var(--muted);font-size:12px}.proforma-items{display:grid;gap:10px}.proforma-item{display:grid;grid-template-columns:minmax(190px,2fr) minmax(120px,1fr) 115px 140px 130px 28px;align-items:end;gap:10px;padding:16px;border:1px solid var(--line);border-radius:17px;background:#fff}.proforma-item>*{min-width:0}.proforma-item-total{padding:0 2px 10px}.proforma-item-total span{display:block;font-size:11px;color:var(--muted)}.proforma-item-total strong{font-size:14px;overflow-wrap:anywhere}.proforma-item .icon-button{min-height:40px}.proforma-totals{display:grid;grid-template-columns:repeat(2,minmax(150px,1fr)) minmax(150px,.8fr) minmax(180px,1fr);align-items:end;gap:12px;margin-top:20px}.proforma-totals>label{display:grid;gap:5px;font-size:12px;font-weight:800;color:var(--muted)}.proforma-totals>div{padding:11px 13px}.proforma-totals span,.proforma-totals strong{display:block}.proforma-totals span{font-size:11px;color:var(--muted)}.proforma-totals strong{overflow-wrap:anywhere}.proforma-grand-total{border-radius:13px;background:var(--lime)}.proforma-grand-total span{color:var(--ink)}.proforma-actions{display:flex;gap:8px;flex-wrap:wrap}.proforma-status-options{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:0 0 20px}.proforma-status-options label{display:flex;align-items:center;gap:7px;border:1px solid var(--line);border-radius:12px;padding:10px;background:#fff;font-weight:700}.proforma-status-options input{width:auto}.status-modal>div:last-child{display:flex;justify-content:flex-end;gap:9px}
@media(max-width:1100px){.proforma-item{grid-template-columns:repeat(2,minmax(0,1fr))}.proforma-item-total{padding:9px 0}.proforma-item .icon-button{justify-self:end}.proforma-totals{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:640px){.proforma-fields,.proforma-item,.proforma-totals{grid-template-columns:1fr}.proforma-fields .span-2{grid-column:auto}.proforma-item{gap:12px;padding:15px}.proforma-item-total{padding:4px 0}.proforma-item .icon-button{position:absolute;right:16px;top:12px}.proforma-item{position:relative;padding-top:40px}.proforma-actions{display:grid!important;grid-template-columns:1fr 1fr;width:100%}.proforma-actions>*{min-width:0}.proforma-actions .btn,.proforma-actions .inline-form{width:100%}.proforma-actions .inline-form .btn{width:100%}.proforma-status-options{grid-template-columns:1fr}.section-head:has([data-proforma-add]){align-items:flex-start;flex-direction:column}.section-head [data-proforma-add]{width:100%}}
