.erp68-contract-template-settings{grid-column:1/-1}.erp68-kind-tabs{display:flex;gap:8px;margin:12px 0}.erp68-upload-box{display:grid;grid-template-columns:minmax(180px,1fr) minmax(280px,2fr) auto;gap:10px;align-items:end;margin:10px 0 12px}.erp68-upload-box label{display:flex;flex-direction:column;gap:6px}.erp68-upload-box label span{font-size:12px;font-weight:700;color:#526173}.erp68-upload-box input{width:100%;box-sizing:border-box}.erp68-template-help{display:flex;gap:10px;align-items:flex-start;padding:10px 12px;border-radius:10px;background:#f5f7fb;color:#445166;font-size:12px;margin-bottom:10px}.erp68-template-help b{white-space:nowrap}.erp68-template-list{display:flex;flex-direction:column;gap:8px}.erp68-template-row{display:flex;gap:14px;justify-content:space-between;align-items:center;border:1px solid #d9e0ea;border-radius:12px;padding:12px;background:#fff}.erp68-template-row.active{border-color:#7887db;box-shadow:0 0 0 2px rgba(100,115,210,.08)}.erp68-template-row>div:first-child{display:flex;flex-direction:column;gap:3px;min-width:0}.erp68-template-row b{font-size:14px}.erp68-template-row span,.erp68-template-row small{color:#69778a;font-size:12px}.erp68-template-actions{display:flex;gap:6px;flex-wrap:wrap;justify-content:flex-end}.erp68-empty{display:flex;flex-direction:column;gap:4px;padding:16px;border:1px dashed #cbd3df;border-radius:12px;color:#647186}.erp68-template-editor-overlay{z-index:99992!important;align-items:flex-start!important;padding:16px!important;overflow:auto}.erp68-template-editor{width:min(1500px,98vw);max-height:calc(100vh - 32px);display:flex;flex-direction:column;background:#fff;border-radius:14px;box-shadow:0 20px 60px rgba(0,0,0,.24);overflow:hidden}.erp68-editor-head{display:flex;align-items:center;justify-content:space-between;padding:14px 16px;border-bottom:1px solid #e1e6ef}.erp68-editor-head h2{margin:0 0 3px;font-size:19px}.erp68-editor-head p{margin:0;color:#6f7a8b;font-size:12px}.erp68-editor-toolbar{display:flex;gap:8px;align-items:end;flex-wrap:wrap;padding:10px 12px;background:#f7f9fc;border-bottom:1px solid #e1e6ef}.erp68-draw-modes{display:flex;gap:6px}.erp68-editor-toolbar label{display:flex;flex-direction:column;gap:3px;font-size:11px;font-weight:700;color:#5d6878}.erp68-editor-toolbar input,.erp68-editor-toolbar select{height:34px;min-width:105px}.erp68-editor-toolbar .erp68-required{flex-direction:row;align-items:center;height:34px}.erp68-editor-toolbar .erp68-required input{height:auto;min-width:auto}.erp68-editor-body{display:grid;grid-template-columns:150px minmax(420px,1fr) 240px;gap:0;min-height:0;flex:1;overflow:hidden}.erp68-page-list,.erp68-field-list{padding:10px;background:#f8fafc;overflow:auto}.erp68-page-list{border-right:1px solid #e3e8f0}.erp68-field-list{border-left:1px solid #e3e8f0}.erp68-page-list button,.erp68-field-list button{display:flex;width:100%;text-align:left;justify-content:space-between;gap:6px;padding:9px;border:1px solid transparent;border-radius:8px;background:transparent;margin-bottom:5px;color:#354154}.erp68-page-list button.active,.erp68-field-list button.selected{background:#eef2ff;border-color:#b9c2f2}.erp68-page-list small,.erp68-field-list small{display:block;color:#7d8794;font-size:10px;margin-top:2px}.erp68-field-list h3{margin:4px 2px 8px;font-size:13px}.erp68-field-list button>span{display:block}.erp68-template-stage-wrap{overflow:auto;padding:12px;background:#e9edf3;text-align:center}.erp68-template-stage-wrap>p{font-size:11px;color:#667386;margin:8px 0 0}.erp68-template-stage{position:relative;display:inline-block;line-height:0;max-width:100%;box-shadow:0 3px 18px rgba(0,0,0,.16);background:white;touch-action:none;user-select:none}.erp68-template-stage>img{display:block;max-width:100%;width:auto;height:auto;max-height:calc(100vh - 265px)}.erp68-map-box,.erp68-draw-box{position:absolute;box-sizing:border-box;z-index:4;line-height:normal}.erp68-map-box.signature,.erp68-draw-box.signature{border:2px solid #e03838;background:rgba(235,54,54,.10)}.erp68-map-box.text,.erp68-draw-box.text{border:2px solid #1e73d8;background:rgba(30,115,216,.10)}.erp68-draw-box{display:none;pointer-events:none}.erp68-map-box{cursor:move;min-width:12px;min-height:10px}.erp68-map-box.selected{box-shadow:0 0 0 2px rgba(255,255,255,.95),0 0 0 4px rgba(28,39,61,.45)}.erp68-map-box>span{position:absolute;left:0;top:-21px;height:18px;padding:1px 4px;border-radius:4px;background:rgba(20,27,38,.88);color:#fff;font-size:10px;white-space:nowrap;line-height:16px}.erp68-map-delete{position:absolute!important;right:-10px;top:-10px!important;width:20px!important;height:20px!important;min-width:0!important;padding:0!important;border-radius:50%!important;background:#fff!important;border:1px solid #bdc6d4!important;color:#a51d1d!important;line-height:18px!important;font-size:14px!important}.erp68-map-resize{position:absolute;right:-4px;bottom:-4px;width:10px;height:10px;border-radius:2px;background:#26344b;border:2px solid #fff;cursor:nwse-resize}.erp68-template-worker-input{position:absolute;z-index:8;box-sizing:border-box;border:1.5px solid #1d6fd4;background:rgba(255,255,255,.88);padding:0 3px;color:#111;font-family:"Malgun Gothic","맑은 고딕",sans-serif;font-weight:600;min-width:25px}.erp68-template-worker-input:focus{outline:2px solid rgba(29,111,212,.28);background:#fff}.erp68-template-worker-input.invalid{border-color:#d63535;background:#fff0f0}.erp68-contract-linked{display:block;margin-top:5px;color:#657188;font-weight:400;font-size:11px}.erp68-template-editor>.modal-actions{padding:10px 14px;border-top:1px solid #e2e7ef;background:#fff}
@media(max-width:900px){.erp68-upload-box{grid-template-columns:1fr}.erp68-template-row{align-items:flex-start;flex-direction:column}.erp68-template-actions{width:100%;justify-content:flex-start}.erp68-editor-body{grid-template-columns:95px minmax(320px,1fr)}.erp68-field-list{grid-column:1/-1;border-left:0;border-top:1px solid #e3e8f0;max-height:150px}.erp68-template-stage>img{max-height:none}.erp68-editor-toolbar{align-items:stretch}.erp68-editor-toolbar label{min-width:120px}.erp68-template-editor-overlay{padding:4px!important}.erp68-template-editor{width:100%;max-height:calc(100vh - 8px)}}

/* v0.68 FIX1: 위치 설정 계약서 페이지 확대/축소 */
.erp68-zoom-controls{display:flex;align-items:center;gap:4px;height:34px;margin-right:2px}
.erp68-zoom-controls button{height:34px!important;min-width:36px!important;padding:0 9px!important;font-weight:800}
.erp68-zoom-controls .erp68-zoom-reset{min-width:64px!important;font-variant-numeric:tabular-nums}
.erp68-template-stage-wrap{overscroll-behavior:contain;scroll-behavior:auto}
.erp68-template-stage-wrap>p b{color:#263f77}
