.document-dialog{width:min(1100px,calc(100% - 30px));max-height:92vh;overflow:auto}
.document-fields{display:grid;grid-template-columns:2fr 1fr 1fr 1fr;gap:12px}
.document-dialog select{width:100%;margin-top:6px;padding:10px;border:1px solid #ced7e1;border-radius:7px;background:#fff}
.item-row{display:grid;grid-template-columns:3fr .6fr .6fr 1fr 1fr 32px;gap:8px;align-items:center;padding:10px 0;border-bottom:1px solid #e5ebf0}
.item-row input,.item-row textarea{margin:0}.item-row .item-name{margin-bottom:6px}.item-row .line-total{text-align:right}
.remove-line{border:0;background:#fff0f0;color:#b42318;border-radius:6px;height:34px;cursor:pointer}
.totals-fields{display:flex;justify-content:flex-end;align-items:end;gap:15px;margin:20px 0}.totals-fields label{width:110px}
.total-preview{background:#eef5fc;padding:13px 18px;border-radius:8px}.total-preview strong{display:block;font-size:18px;color:var(--blue)}
.new-actions{display:flex;gap:8px;flex-wrap:wrap;justify-content:flex-end}.source-note{padding:10px 12px;background:#eef5fc;border-left:3px solid var(--blue);margin:8px 0 15px}
.technician-fields{display:grid;grid-template-columns:1.3fr 1fr 1.3fr;gap:12px;background:#f5f9fd;border:1px solid #dce8f2;border-radius:9px;padding:14px;margin:12px 0 20px}
@media(max-width:800px){.document-fields,.technician-fields{grid-template-columns:1fr 1fr}.item-row{grid-template-columns:1fr 1fr}.item-row>div{grid-column:1/-1}.totals-fields{flex-wrap:wrap}}
