.fast-invoice{min-width:0;max-width:1500px;margin:0 auto}.fast-invoice *{min-width:0}.fi-heading{justify-content:space-between;align-items:center;gap:12px;display:flex}.fi-heading h1{margin:4px 0}.fi-heading p{margin:4px 0 12px}.fi-scope{background:var(--surface,#1c1d20);border-left:2px solid #b7342e;padding:10px;font-size:.85rem}.fi-editor{border:0;margin:0;padding:0}.fast-invoice section{padding:12px 0}.fast-invoice h2{margin:0 0 10px;font-size:1.05rem}.fi-parties{grid-template-columns:1fr 1fr;gap:20px;display:grid}.fi-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:9px;margin-bottom:10px;display:grid}.fast-invoice label{flex-direction:column;gap:4px;font-size:.82rem;display:flex}.fast-invoice input,.fast-invoice select,.fast-invoice textarea{width:100%;max-width:100%;min-height:38px}.fast-invoice label.fi-check{flex-direction:row;align-items:center}.fi-check input{flex:0 0 18px;width:18px}.fi-row{border-top:1px solid var(--border,#37383b);grid-template-columns:minmax(150px,2fr) repeat(6,minmax(65px,1fr)) auto;align-items:end;gap:8px;padding:10px 0;display:grid}.fi-row-total{grid-column:1/-1;margin:0;font-size:.8rem}.fi-actions{flex-wrap:wrap;align-items:center;gap:8px;margin:10px 0;display:flex}.fi-totals{border-block:1px solid var(--border,#37383b);flex-wrap:wrap;justify-content:space-between;gap:20px;display:flex}.fi-totals p{font-size:.82rem}.fi-totals dl{min-width:260px;margin:0}.fi-totals dl div{justify-content:space-between;gap:24px;padding:4px 0;display:flex}.fi-totals dd{font-variant-numeric:tabular-nums;margin:0}.fi-totals dl div:last-child{border-top:1px solid #b7342e;font-weight:700}.fi-preview{border:1px solid var(--border,#37383b);width:100%;height:700px}.fi-credit{flex-wrap:wrap;align-items:end;gap:8px;display:flex}.fi-credit label{flex:1}.fi-history article{border-top:1px solid var(--border,#37383b);overflow-wrap:anywhere;flex-wrap:wrap;align-items:center;gap:8px 16px;padding:10px 0;font-size:.85rem;display:flex}.fi-history article strong{min-width:140px}@media (max-width:1200px){.fi-row{grid-template-columns:repeat(4,minmax(0,1fr))}.fi-row>label:first-child{grid-column:1/-1}.fi-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media (max-width:767px){.fi-parties{grid-template-columns:1fr;gap:0}.fi-row{grid-template-columns:repeat(2,minmax(0,1fr))}.fi-heading{align-items:start}.fi-actions .btn{flex:1;min-height:44px}.fi-preview{height:480px}.fi-totals dl{width:100%;min-width:0}}
