.estimate-fieldwork-dialog{max-width:1100px;width:min(1100px,calc(100vw - 24px));max-height:93vh;position:fixed;top:3vh;bottom:auto;margin:0 auto}
.estimate-fieldwork-dialog>.panel-head{position:sticky;top:0;z-index:4;background:var(--panel,#fffefa);border-bottom:1px solid var(--line,#dce3d5)}
.estimate-fieldwork{display:grid;gap:16px;min-width:0}
.estimate-fieldwork p{line-height:1.55}
.estimate-fieldwork-tabs{display:flex;gap:8px;flex-wrap:wrap;border-bottom:1px solid var(--line,#dce3d5);padding-bottom:14px}
.estimate-fieldwork [data-fw-body]{display:grid;gap:16px;min-width:0}
.estimate-fieldwork h3,.estimate-fieldwork h4{margin:8px 0 12px}
.estimate-fieldwork fieldset{padding:0;border:0;margin:0;min-width:0}
.estimate-fieldwork-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.estimate-fieldwork-grid .field{margin:0;min-width:0}
.estimate-fieldwork-grid .full{grid-column:1/-1}
.estimate-fieldwork .field input,.estimate-fieldwork .field select,.estimate-fieldwork .field textarea{font:inherit}
.estimate-fieldwork .field textarea{min-height:76px;max-height:400px;line-height:1.5}
.estimate-fieldwork-section-head{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap;margin:22px 0 12px}
.estimate-fieldwork-card{border:1px solid var(--line,#dce3d5);border-radius:9px;padding:16px;margin:12px 0;background:var(--panel,#fffefa);min-width:0}
.estimate-fieldwork-actions,.estimate-fieldwork-apply{display:flex;align-items:center;flex-wrap:wrap;gap:12px;margin-top:16px}
.estimate-fieldwork-apply{padding:14px;background:#edf4f0;border:1px solid #d8e5db;border-radius:8px}
.estimate-fieldwork-apply .field{flex:1;min-width:180px}
.estimate-fieldwork .check{align-items:start;font-size:13px;line-height:1.5}
.estimate-fieldwork .check input{flex:none;margin-top:3px}
.estimate-fieldwork-save{display:flex;align-items:center;justify-content:space-between;gap:12px;position:sticky;bottom:-24px;background:var(--panel,#fffefa);padding:14px 0;border-top:1px solid var(--line,#dce3d5);z-index:2;margin-top:18px}
.estimate-fieldwork-upload{display:grid;grid-template-columns:200px minmax(180px,1fr) auto;gap:14px;align-items:end;border-bottom:1px solid var(--line,#dce3d5);padding-bottom:18px}
.estimate-fieldwork-upload .field{min-width:0;margin:0}
.estimate-fieldwork-upload .full{grid-column:1/-1;margin:0}
.estimate-fieldwork-file{display:grid;grid-template-columns:120px minmax(0,1fr);gap:16px;align-items:start}
.estimate-fieldwork-file img{width:120px;height:120px;object-fit:contain;border:1px solid var(--line,#dce3d5);border-radius:6px;background:#f4f6f1}
.estimate-fieldwork-file strong{overflow-wrap:anywhere}
.estimate-fieldwork-file .btn{margin:4px 7px 4px 0}
.estimate-fieldwork-file-icon{height:100px;display:grid;place-items:center;background:#edf4f0;border-radius:6px}
.estimate-fieldwork-file-icon svg{width:32px;height:32px;fill:none;stroke:currentColor;stroke-width:1.4}
.estimate-fieldwork-transcript{white-space:pre-wrap;max-height:260px;overflow:auto;border:1px solid var(--line,#dce3d5);padding:12px}
.estimate-fieldwork-canvas-wrap{max-height:65vh;overflow:auto;border:1px solid var(--line,#dce3d5);background:#eee;margin-top:14px}
.estimate-fieldwork canvas{display:block;max-width:100%;height:auto;cursor:crosshair;touch-action:manipulation}
.estimate-fieldwork [data-fw-point-help]{min-height:100px;display:flex;align-items:center}
.estimate-fieldwork pre{white-space:pre-wrap;overflow-wrap:anywhere;font-size:12px;max-height:260px;overflow:auto}
.estimate-fieldwork-statistics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;padding:16px;background:#edf4f0;border-radius:8px}
.estimate-fieldwork-statistics div{display:grid;gap:8px}
.estimate-fieldwork-statistics span{font-size:12px;color:var(--muted,#74816f)}
.estimate-fieldwork-statistics strong{font-size:22px}
.estimate-fieldwork table{min-width:780px}
.estimate-fieldwork table td small{display:block;margin-top:5px}
.estimate-fieldwork-real-lines{display:grid;gap:9px;max-height:280px;overflow:auto;border-bottom:1px solid var(--line,#dce3d5);padding-bottom:14px;margin-bottom:14px}
.estimate-fieldwork-real-lines .check{padding:7px;background:#f4f7f2;border-radius:5px}
.estimate-fieldwork [data-kit-search]{grid-template-columns:minmax(200px,1fr) auto}
.estimate-fieldwork [data-proposals] .badge{white-space:normal}
@media(max-width:650px){.estimate-fieldwork-dialog{width:calc(100vw - 12px);max-height:96vh}.estimate-fieldwork-dialog>.panel-body{padding:16px}.estimate-fieldwork-tabs{display:grid;grid-template-columns:1fr 1fr}.estimate-fieldwork-tabs .btn{font-size:12px;padding:10px 8px;justify-content:center}.estimate-fieldwork-grid,.estimate-fieldwork-upload,.estimate-fieldwork [data-kit-search]{grid-template-columns:1fr}.estimate-fieldwork-grid .full,.estimate-fieldwork-upload .full{grid-column:auto}.estimate-fieldwork-card{padding:13px}.estimate-fieldwork-save{bottom:-16px;align-items:stretch;flex-direction:column}.estimate-fieldwork-save .btn{justify-content:center}.estimate-fieldwork-apply{align-items:stretch;flex-direction:column}.estimate-fieldwork-apply .field{width:100%;min-width:0}.estimate-fieldwork-file{grid-template-columns:75px minmax(0,1fr);gap:12px}.estimate-fieldwork-file img{width:75px;height:90px}.estimate-fieldwork-file .btn{font-size:12px;padding:8px}.estimate-fieldwork-statistics{grid-template-columns:1fr;gap:12px}.estimate-fieldwork-statistics div{display:flex;justify-content:space-between;align-items:center}.estimate-fieldwork-statistics strong{font-size:20px}.estimate-fieldwork-canvas-wrap{max-height:50vh}}
