.ob-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin:8px 0}
.ob-fields label,.ob-text-label{display:flex;flex-direction:column;gap:4px;min-width:0}
.ob-fields input,.ob-text-label textarea{width:100%;box-sizing:border-box}
.ob-equipment{overflow:auto;max-height:300px}.ob-equipment table{min-width:620px;width:100%;font-size:12px}
.ob-equipment th,.ob-equipment td{padding:5px;vertical-align:middle}.ob-equipment td:nth-child(n+5){text-align:right}
.ob-equipment input{width:85px;text-align:right}.ob-equipment td:nth-child(4){min-width:160px}
.ob-totals{margin:10px 0;text-align:right}.ob-totals table{width:100%;margin-bottom:8px}.ob-totals input{width:90px;text-align:right}
.ob-totals td{padding:5px}.ob-extra{background:#fff5d9}.ob-error,.ob-dialog-error{color:#ae2121;white-space:pre-wrap}
.ob-commercial{margin:10px 0}.ob-commercial .grid-wrap{max-height:180px}.ob-preview textarea{line-height:1.5;min-height:260px}
.ob-history{max-height:180px;overflow:auto}.ob-history p{display:flex;align-items:center;gap:6px;flex-wrap:wrap}
#ob-dialog{width:min(900px,92vw);max-height:85vh;background:#edf1f5;color:inherit;border:1px solid #a8b7c4;border-radius:5px;padding:16px}
#ob-dialog header,#ob-dialog footer{display:flex;align-items:center;gap:8px;margin-bottom:12px}#ob-dialog header strong{flex:1}#ob-dialog footer{margin:12px 0 0;justify-content:flex-end}
#ob-dialog .grid-wrap{max-height:55vh;overflow:auto}#ob-dialog details{padding:8px}#ob-dialog::backdrop{background:rgb(30 40 55 / 30%)}
@media(max-width:1100px){.ob-fields{grid-template-columns:1fr}}

.os-flow fieldset.ob-section{max-height:none;overflow:visible}
.ob-recipient{display:grid;grid-template-columns:repeat(12,minmax(0,1fr));gap:5px 8px;margin:8px 0}
.ob-recipient .ob-span12{grid-column:span 12}.ob-recipient .ob-span7{grid-column:span 7}.ob-recipient .ob-span6{grid-column:span 6}.ob-recipient .ob-span5{grid-column:span 5}.ob-recipient .ob-span3{grid-column:span 3}.ob-recipient .ob-span2{grid-column:span 2}
.ob-recipient label{display:flex;flex-direction:column;gap:2px;min-width:0}.ob-recipient input{width:100%;box-sizing:border-box}
.ob-preview h2{text-align:center;font-size:20px;margin:10px 0}.ob-preview .ob-text-label{margin-top:10px}
.ob-preview textarea{font:inherit;line-height:1.35;min-height:320px;white-space:pre-wrap}
.ob-summary{display:flex;justify-content:space-between;gap:8px;flex-wrap:wrap;padding:10px 0;border-bottom:1px solid #bac5cf}
.ob-legacy .ob-section{margin:8px 0;padding:8px}.ob-legacy legend{font-size:15px;font-weight:600;color:#1e5286}
.ob-legacy .fieldgrid{gap:5px 8px}.ob-legacy .ob-fields{gap:5px 8px;margin:5px 0}
.ob-legacy p{margin:6px 0}.ob-legacy .ob-text-label{margin:6px 0}
.ob-return{display:grid;grid-template-columns:1fr 1fr;gap:10px;align-items:center}
.ob-certificate-delivery{display:flex;flex-direction:column;text-align:center;gap:10px;padding:12px;border:1px solid #bac5cf}
.ob-certificate-delivery strong{font-size:18px;color:#1e5286}
@media(min-width:1500px){.ob-invoice-head{grid-template-columns:1fr 1.8fr 1fr 1.2fr}.ob-payment{grid-template-columns:1fr 1fr}}
