:root{color-scheme:light;font-family:Pretendard,Noto Sans KR,Apple SD Gothic Neo,system-ui,sans-serif;color:#20252d;background:#eceff2;font-synthesis:none}*{box-sizing:border-box}body{margin:0;min-width:320px;min-height:100vh;background:#eceff2}button,input,select,textarea{font:inherit}button{cursor:pointer}.app-header{height:64px;padding:0 28px;display:flex;align-items:center;justify-content:space-between;color:#fff;background:#243247;border-bottom:1px solid #182231}.brand-lockup{display:flex;align-items:baseline;gap:12px}.brand-lockup strong{font-size:20px;letter-spacing:-.04em}.brand-lockup span{color:#bdc7d4;font-size:13px}.header-status{color:#d6dde6;font-size:12px}.workspace{display:grid;grid-template-columns:minmax(430px,510px) minmax(680px,1fr);min-height:calc(100vh - 64px)}.editor-panel{padding:24px;background:#f5f6f7;border-right:1px solid #d6dbe1;overflow:auto}.preview-panel{min-width:0;padding:24px 30px 32px;overflow:auto}.panel-heading,.preview-toolbar{display:flex;justify-content:space-between;align-items:center;margin-bottom:16px}.panel-heading h2,.preview-toolbar h2{margin:0;font-size:19px;letter-spacing:-.03em}.zoom-note{color:#6f7782;font-size:12px}.form-section{margin-bottom:14px;padding:18px;background:#fff;border:1px solid #dce0e5;border-radius:5px}.profile-section{border-top:3px solid #243247}.profile-summary{display:flex;align-items:center;justify-content:space-between;cursor:pointer;list-style:none}.profile-summary::-webkit-details-marker{display:none}.profile-summary h3{margin:2px 0 0;font-size:14px}.profile-summary h3 small{color:#747c86;font-size:11px;font-weight:600}.profile-summary-action:before{content:"설정 펼치기";color:#31577f;font-size:11px;font-weight:700}.profile-section[open] .profile-summary-action:before{content:"접기"}.profile-body{margin-top:15px;padding-top:15px;border-top:1px solid #e0e4e8}.profile-section:not([open]) .profile-body{display:none}.profile-management{justify-content:flex-end;margin-bottom:12px}.ledger-section{border-left:3px solid #566b83}.section-title-row{display:flex;align-items:center;justify-content:space-between;margin-bottom:14px}.section-title-row h3{margin:2px 0 0;font-size:14px}.section-kicker{color:#7a828d;font-size:10px;font-weight:700;letter-spacing:.08em}.profile-actions{display:flex;gap:12px}.form-grid{display:grid;gap:12px}.form-grid.two{grid-template-columns:repeat(2,minmax(0,1fr))}.field{display:flex;min-width:0;flex-direction:column;gap:6px}.field.full{grid-column:1 / -1}.field span{color:#555d68;font-size:11px;font-weight:700}.field small{color:#9097a0;font-size:10px;font-weight:500}.field input,.field select,.field textarea{width:100%;min-height:40px;padding:9px 10px;color:#20252d;background:#fff;border:1px solid #cfd5dc;border-radius:3px;outline:none;transition:border-color .15s,box-shadow .15s}.field textarea{resize:vertical}.field input:focus,.field select:focus,.field textarea:focus{border-color:#4a607e;box-shadow:0 0 0 2px #364c6a1a}.file-field input{padding:7px;font-size:11px}.ghost-button,.text-button,.secondary-button,.primary-button{border-radius:3px;font-weight:700;transition:background .15s}.ghost-button{padding:8px 11px;color:#344254;background:#fff;border:1px solid #ccd2d9;font-size:11px}.text-button{padding:0;color:#31577f;background:transparent;border:0;font-size:11px}.text-button.danger,.remove-item{color:#a84a52}.secondary-button{padding:10px 14px;color:#2f3d4e;background:#fff;border:1px solid #c5ccd4}.primary-button{padding:11px 19px;color:#fff;background:#243247;border:1px solid #243247}.full-button{width:100%;margin-top:13px}.ghost-button:hover,.secondary-button:hover{background:#f0f2f4}.primary-button:hover{background:#172334}button:disabled{cursor:wait;opacity:.6}.client-search-wrap{position:relative;margin-bottom:14px;padding-bottom:13px;border-bottom:1px solid #e3e6e9}.sync-note{margin:7px 0 0;color:#737b85;font-size:10px}.ledger-help{margin:12px 0 8px;color:#6a727d;font-size:10px;line-height:1.55}.ledger-help a{color:#31577f;font-weight:700}.ledger-status{display:flex;justify-content:space-between;gap:10px;padding:10px 11px;color:#69717c;background:#f4f6f8;border:1px solid #dce1e6;border-radius:3px;font-size:10px}.ledger-status.complete{color:#285b40;background:#edf7f1;border-color:#bed8c8}.ledger-status strong{font-size:11px}.client-results{position:absolute;z-index:20;top:61px;right:0;left:0;max-height:300px;overflow:auto;background:#fff;border:1px solid #aeb8c5;box-shadow:0 8px 20px #1a243124}.client-result{display:grid;width:100%;gap:3px;padding:11px 12px;text-align:left;color:#232a33;background:#fff;border:0;border-bottom:1px solid #e2e5e9}.client-result:hover{background:#f1f4f7}.client-result strong{font-size:12px}.client-result span{color:#525c68;font-size:10px}.client-result small{color:#808892;font-size:9px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.client-empty{margin:0;padding:14px;color:#6f7781;font-size:11px}.item-editor{display:flex;flex-direction:column;gap:9px}.item-card{padding:12px;background:#f7f8f9;border:1px solid #dfe3e7;border-radius:3px}.item-card-header{display:flex;justify-content:space-between;margin-bottom:9px;font-size:11px}.remove-item{padding:0;background:transparent;border:0;font-size:10px}.item-grid{grid-template-columns:1fr 1.45fr .55fr .85fr}.paper-stage{display:flex;justify-content:center;padding:24px;min-width:680px;background:#d6dbe1;border:1px solid #cbd1d8}.estimate-paper{position:relative;width:794px;height:1123px;flex:0 0 auto;padding:42px 48px 38px;overflow:hidden;color:#20242a;background:#fff;box-shadow:0 8px 24px #171f2a2e;font-family:Noto Sans KR,Apple SD Gothic Neo,Arial,sans-serif}.quotation-header{display:flex;min-height:72px;align-items:center;justify-content:space-between;padding:14px 0 16px;border-top:6px solid;border-bottom:1px solid #20242a}.quotation-title span{color:#68717c;font-size:8px;font-weight:800;letter-spacing:.18em}.quotation-title h2{margin:0;font-size:30px;line-height:1;letter-spacing:-.06em}.quotation-title p{margin:7px 0 0;color:#5f6670;font-size:10px}.quotation-brand{display:flex;align-items:flex-start;gap:14px}.paper-logo{width:50px;height:50px;padding:3px;object-fit:contain;border:1px solid #e0e3e6}.document-meta{width:196px;margin:0;border-top:1px solid #8b929a}.document-meta div{display:grid;grid-template-columns:58px 1fr;min-height:26px;border-bottom:1px solid #d9dde1}.document-meta dt,.document-meta dd{display:flex;align-items:center;margin:0;padding:5px 7px;font-size:8px}.document-meta dt{color:#68717c;background:#f5f6f7;font-weight:700}.document-meta dd{justify-content:flex-end;font-weight:700}.business-parties{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-top:18px}.business-card{overflow:hidden;border:1px solid #b9bec5;border-top:3px solid #7a838d}.business-card-heading{display:flex;min-height:44px;align-items:center;justify-content:space-between;gap:10px;padding:9px 11px;background:#f4f5f6;border-bottom:1px solid #cbd0d5}.business-card-heading span{color:#68717c;font-size:8px;font-weight:800;letter-spacing:.06em}.business-card-heading strong{max-width:220px;text-align:right;font-size:13px;line-height:1.35;overflow-wrap:anywhere}.business-info{display:grid;grid-template-columns:1fr 1fr;margin:0}.business-info div{display:grid;grid-template-columns:64px 1fr;min-height:31px;border-right:1px solid #e0e3e6;border-bottom:1px solid #e0e3e6}.business-info div:nth-child(2n),.business-info .wide{border-right:0}.business-info .wide{grid-column:1 / -1}.business-info div:last-child,.business-info .bank-row{border-bottom:0}.business-info dt,.business-info dd{display:flex;align-items:center;margin:0;padding:5px 7px;font-size:8px;line-height:1.35;overflow-wrap:anywhere}.business-info dt{color:#68717c;background:#fafafa;font-weight:700}.business-info dd{font-weight:600}.quotation-terms{display:grid;grid-template-columns:1.5fr .75fr;margin-top:12px;border:1px solid #c4c9cf}.quotation-terms div{min-height:49px;padding:8px 10px;border-right:1px solid #d8dce0}.quotation-terms div:last-child{border-right:0}.quotation-terms span,.quotation-terms strong{display:block}.quotation-terms span{margin-bottom:4px;color:#747c86;font-size:7px;font-weight:700}.quotation-terms strong{font-size:8px;line-height:1.35}.quotation-total{display:flex;min-height:56px;align-items:center;justify-content:space-between;margin:12px 0 14px;padding:10px 15px;color:#fff}.quotation-total div{display:flex;flex-direction:column;gap:3px}.quotation-total span{font-size:9px;font-weight:800}.quotation-total small{color:#ffffffc7;font-size:8px}.quotation-total>strong{font-size:22px;letter-spacing:-.04em}.paper-table{width:100%;border-collapse:collapse;table-layout:fixed;font-size:9px}.paper-table th{height:30px;padding:6px 4px;color:#31363d;background:#eef0f2;border-top:1px solid #333941;border-right:1px solid #c7ccd1;border-bottom:1px solid #8f969e;font-size:8px}.paper-table th:first-child{border-left:1px solid #c7ccd1}.paper-table th:nth-child(1){width:5%}.paper-table th:nth-child(2){width:15%}.paper-table th:nth-child(3){width:29%}.paper-table th:nth-child(4){width:8%}.paper-table th:nth-child(5){width:14%}.paper-table th:nth-child(6),.paper-table th:nth-child(7){width:14.5%}.paper-table td{height:34px;padding:6px;text-align:right;border:1px solid #c7ccd1;overflow-wrap:anywhere}.paper-table td:nth-child(1),.paper-table td:nth-child(2),.paper-table td:nth-child(4){text-align:center}.paper-table .detail-cell{text-align:left;color:#4f5660}.paper-table .line-number{color:#7d858e}.paper-table .empty-row td{color:transparent}.paper-footer-grid{display:grid;grid-template-columns:1fr 250px;gap:20px;margin-top:16px}.paper-note{min-height:92px;padding:11px 12px;color:#535b65;background:#fafafa;border:1px solid #c7ccd1;font-size:8px;line-height:1.6}.paper-note strong{color:#24282e;font-size:9px}.paper-note p{margin:7px 0 0;white-space:pre-wrap}.paper-totals{border-top:2px solid #333941}.paper-totals>div{display:flex;justify-content:space-between;padding:7px 3px;border-bottom:1px solid #c7ccd1;font-size:9px}.paper-totals .grand-total{padding-top:10px;font-size:13px;font-weight:800}.paper-bottom{position:absolute;right:48px;bottom:30px;left:48px;display:flex;align-items:flex-end;padding-top:10px;color:#747b84;border-top:1px solid #c7ccd1;font-size:8px}.paper-bottom div{display:flex;align-items:baseline;gap:9px}.paper-bottom strong{color:#292e34;font-size:10px}.paper-bottom p{margin:0}.export-bar{display:flex;align-items:center;justify-content:space-between;min-width:680px;padding:16px 18px;background:#fff;border:1px solid #cbd1d8;border-top:0}.export-summary{display:flex;flex-direction:column;gap:2px}.export-summary span{color:#707883;font-size:10px}.export-summary strong{font-size:19px}.export-actions{display:flex;gap:7px}.toast{position:fixed;z-index:100;bottom:25px;left:50%;padding:11px 17px;color:#fff;background:#243247;border-radius:3px;box-shadow:0 8px 24px #141e2d40;font-size:12px;opacity:0;transform:translate(-50%,10px);pointer-events:none;transition:.2s}.toast.show{opacity:1;transform:translate(-50%)}.toast.error{background:#943f47}@media(max-width:1180px){.workspace{grid-template-columns:460px minmax(680px,1fr)}.preview-panel{padding-right:20px;padding-left:20px}}@media(max-width:900px){.app-header{height:auto;min-height:60px;padding:14px 18px}.header-status{display:none}.workspace{display:block}.editor-panel,.preview-panel{padding:18px 14px;border:0}.item-grid{grid-template-columns:1fr 1fr}.paper-stage,.export-bar{min-width:0;overflow-x:auto;justify-content:flex-start}.estimate-paper{transform-origin:top left}.export-bar{align-items:flex-start;gap:14px}.export-actions{flex-wrap:wrap;justify-content:flex-end}}@media(max-width:520px){.form-grid.two{grid-template-columns:1fr}.field.full{grid-column:auto}.item-grid{grid-template-columns:1fr}.export-bar{flex-direction:column}.export-actions{width:100%;display:grid;grid-template-columns:1fr 1fr}.primary-button{grid-column:1 / -1}}
