.document-editor-dialog{width:min(900px,calc(100vw - 32px));max-height:94svh}.document-editor-dialog .dialog-body{padding:24px 30px}.document-help{font-size:12px;color:var(--muted);line-height:1.8;margin-bottom:22px}.document-editor-dialog form{display:grid;gap:20px}.document-editor-dialog section{display:grid;gap:20px}.document-editor-dialog [hidden]{display:none!important}.document-party-grid{display:grid;grid-template-columns:1fr 1fr;gap:20px}.document-party-form,.offer-line{border:1px solid var(--line);padding:17px;border-radius:10px;display:grid;gap:13px;min-width:0}.document-party-form legend,.offer-line legend{padding:0 7px;font-size:12px;font-weight:600}.offer-line{margin-bottom:15px}.offer-line textarea{min-height:70px}.offer-line-fields{display:grid;grid-template-columns:1fr 1fr 1.3fr 1fr;gap:12px}.offer-line .danger{font-size:11px;justify-self:start;color:#925344}.offer-tax-block{border-radius:10px;background:#f1f5f2;padding:18px;display:grid;gap:13px}.offer-tax-block p{font-size:11px;line-height:1.8;color:var(--muted)}.offer-live-total{padding:18px;border:1px solid #afc8b8;border-radius:10px;background:#f4f8f5;font-size:14px;font-weight:600;line-height:1.8}.document-view-dialog{width:min(1020px,calc(100vw - 32px));max-height:95svh;background:#f2f5f3}.document-version-bar{display:flex;justify-content:space-between;gap:20px;align-items:end;margin-bottom:20px}.document-version-bar label{font-size:11px;display:grid;gap:6px}.document-version-bar select{min-width:250px;padding:11px;background:white;border:1px solid var(--line);border-radius:7px}.one-document{background:white;border:1px solid #e0e8e2;box-shadow:0 8px 25px #14291e08;border-radius:4px;overflow:hidden;color:#1e3028}.one-document>header{background:#234b3b;color:white;padding:24px 36px;display:flex;align-items:center;justify-content:space-between;gap:20px}.one-document>header strong{font-size:15px}.one-document>header span{font-size:14px;color:#cfe2d4}.one-document-body{padding:32px 36px}.document-eyebrow{display:flex;justify-content:space-between;gap:20px;color:#64746c;font-size:10px;letter-spacing:.06em}.one-document h2{font-size:30px;line-height:1.35;letter-spacing:-1px;max-width:90%;margin:22px 0 28px}.document-parties{display:grid;grid-template-columns:1fr 1fr;gap:30px;background:#f0f5f1;border-radius:6px;padding:22px;margin-bottom:25px}.document-parties div{display:grid;align-content:start;gap:5px;min-width:0;overflow-wrap:anywhere}.document-parties small{font-size:9px;color:#64746c;margin-bottom:7px}.document-parties strong{font-size:12px}.document-parties span{font-size:11px}.document-copy{white-space:pre-wrap;overflow-wrap:anywhere;font-size:12px;line-height:1.9;margin-bottom:24px}.offer-preview-table{overflow-x:auto}.offer-preview-table table{width:100%;border-collapse:collapse;font-size:11px;margin:18px 0}.offer-preview-table th{background:#234b3b;color:white;padding:13px 10px;font-size:9px;font-weight:500;white-space:nowrap}.offer-preview-table td{padding:15px 10px;vertical-align:top;border-bottom:1px solid #e1e8e3;white-space:nowrap}.offer-preview-table th:first-child,.offer-preview-table td:first-child{width:50%;white-space:pre-wrap;text-align:left;min-width:180px}.offer-preview-table th:not(:first-child),.offer-preview-table td:not(:first-child){text-align:right}.offer-preview-table td small{display:block;font-size:9px;color:#64746c;margin-top:5px}.offer-preview-table tr:nth-child(even){background:#f7f9f7}.offer-totals{max-width:355px;margin:22px 0 25px auto}.offer-totals>div{display:flex;justify-content:space-between;gap:30px;padding:9px 0;font-size:12px}.offer-totals dd{margin:0;white-space:nowrap}.offer-totals .grand-total{border-top:1px solid #c7d7cd;margin-top:8px;padding-top:17px;font-size:17px;font-weight:600;color:#234b3b}.one-document footer{border-top:1px solid #dbe4de;margin-top:30px;padding-top:16px;font-size:10px;line-height:1.8;color:#64746c}.one-document h3{font-size:15px;margin:25px 0 12px}.one-document.compact>header{padding-top:15px;padding-bottom:15px}.one-document.compact h2{font-size:24px}.document-controls{display:flex;flex-wrap:wrap;gap:10px;margin:22px 0}.document-controls .button{font-size:12px}.document-approval{background:#fff;border:1px solid #c8d9ce;border-radius:9px;padding:20px;display:grid;gap:14px;margin:20px 0}.document-approval h3{font-size:15px}.document-approval p,.document-approval-note,.document-history-warning{font-size:12px;line-height:1.8}.approval-checkbox{display:flex;align-items:start;gap:11px;font-size:12px!important;line-height:1.8}.approval-checkbox input{width:17px!important;height:17px;margin-top:2px;flex-shrink:0}.document-history-warning{padding:12px 15px;background:#fff9eb;border:1px solid #ead7ad;border-radius:8px;margin-bottom:18px}.document-approval-note{padding:14px;border:1px solid #bed4c5;background:#edf5ef;border-radius:8px}.file-title .document-state{font-size:10px;font-weight:500;color:#567b64;margin-left:10px;white-space:nowrap}@media(max-width:760px){.document-editor-dialog,.document-view-dialog{width:calc(100vw - 16px);max-height:96svh}.document-editor-dialog .dialog-body,.document-view-dialog .dialog-body{padding:17px 14px}.document-party-grid{grid-template-columns:1fr}.offer-line-fields{grid-template-columns:1fr 1fr}.document-version-bar{flex-direction:column;align-items:stretch;gap:12px}.document-version-bar select{min-width:0;width:100%}.one-document>header{padding:18px}.one-document-body{padding:22px 16px}.one-document h2{font-size:22px;max-width:100%;letter-spacing:-.6px}.document-parties{padding:15px;gap:18px;grid-template-columns:1fr}.document-eyebrow{font-size:8px}.document-controls{display:grid;grid-template-columns:1fr}.document-controls .button{justify-content:center}.offer-totals .grand-total{font-size:15px}.document-approval{padding:15px}.document-approval .button{font-size:12px}.file-title .document-state{display:block;margin-left:0;margin-top:5px}}

.one-document h2{overflow-wrap:anywhere}.offer-line-fields>label,.document-party-grid label{min-width:0}.document-editor-dialog input,.document-editor-dialog select,.document-editor-dialog textarea{min-width:0;box-sizing:border-box;width:100%}@media(max-width:420px){.document-editor-dialog .two-inputs{grid-template-columns:1fr}}
