@import "https://cdn.jsdelivr.net/gh/orioncactus/pretendard/dist/web/static/pretendard.css";:root{color:#17212b;font-synthesis:none;--canvas:#f4f6f8;--surface:#fff;--surface-muted:#f8fafb;--border:#dde3e8;--border-strong:#b8c3cc;--ink:#17212b;--muted:#687581;--primary:#176b5b;--primary-hover:#105247;--primary-soft:#e5f2ef;--danger:#b83232;--danger-soft:#fbeaea;--warning:#9a620a;--warning-soft:#fff3da;--success:#167646;--success-soft:#e8f5ed;background:#f4f6f8;font-family:Pretendard,Apple SD Gothic Neo,Noto Sans KR,sans-serif}*{box-sizing:border-box}body{min-width:320px;min-height:100vh;margin:0}button,input,select,textarea{font:inherit}button{cursor:pointer}kbd{border:1px solid var(--border);border-bottom-color:var(--border-strong);color:#6c7780;background:#fff;border-radius:4px;padding:2px 5px;font-family:Inter,ui-monospace,monospace;font-size:10px}.app-shell{min-height:100vh;display:flex}.sidebar{color:#fff;z-index:20;background:#112c28;flex-direction:column;width:224px;display:flex;position:fixed;inset:0 auto 0 0}.brand{border-bottom:1px solid #ffffff1a;align-items:center;gap:10px;height:64px;padding:0 17px;display:flex}.brand-mark{color:#12372f;background:#eaf4f1;border-radius:7px;place-items:center;width:35px;height:35px;display:grid}.brand>div:nth-child(2){flex-direction:column;line-height:1.1;display:flex}.brand strong{letter-spacing:.04em;font-size:15px}.brand span{color:#a7beb8;margin-top:4px;font-size:11px}.nav-list{flex-direction:column;gap:3px;padding:16px 10px;display:flex}.nav-item{color:#bdd0cc;text-align:left;background:0 0;border:0;border-radius:6px;align-items:center;gap:10px;height:40px;padding:0 11px;display:flex}.nav-item:hover{color:#fff;background:#ffffff12}.nav-item.active{color:#fff;background:#21584e}.nav-item span{flex:1;font-size:13px;font-weight:600}.nav-item kbd{color:#a7beb8;background:#00000021;border-color:#ffffff26}.sidebar-foot{border-top:1px solid #ffffff1a;margin-top:auto;padding:14px}.company-lockup{flex-direction:column;gap:3px;padding:4px 3px 12px;display:flex}.company-lockup span{color:#8eaaa4;font-size:10px}.company-lockup strong{font-size:12px}.local-badge{color:#a7cfc5;align-items:center;gap:5px;font-size:11px;display:flex}.main-stage{width:calc(100% - 224px);min-height:100vh;margin-left:224px}.topbar{z-index:10;border-bottom:1px solid var(--border);background:#fffffff5;align-items:center;gap:16px;height:64px;padding:0 24px;display:flex;position:sticky;top:0}.page-heading{flex:1;min-width:180px}.page-heading h1{letter-spacing:-.02em;margin:0;font-size:17px}.page-heading p{color:var(--muted);margin:3px 0 0;font-size:11px}.top-search{border:1px solid var(--border);background:var(--surface-muted);width:290px;height:35px;color:var(--muted);border-radius:6px;align-items:center;gap:8px;padding:0 10px;display:flex}.top-search span{text-align:left;flex:1;font-size:12px}.content{max-width:1600px;margin:0 auto;padding:22px 24px 40px}.stack{flex-direction:column;gap:18px;display:flex}.button{white-space:nowrap;border:1px solid #0000;border-radius:6px;justify-content:center;align-items:center;gap:7px;min-height:36px;padding:0 13px;font-size:12px;font-weight:700;display:inline-flex}.button.primary{background:var(--primary);color:#fff}.button.primary:hover{background:var(--primary-hover)}.button.secondary{border-color:var(--border);color:var(--ink);background:#fff}.button.secondary:hover{background:var(--surface-muted);border-color:var(--border-strong)}.button.compact{min-height:34px}.icon-button{width:32px;height:32px;color:var(--muted);background:0 0;border:0;border-radius:5px;flex:none;place-items:center;padding:0;display:inline-grid}.icon-button:hover{color:var(--ink);background:#0000000d}.text-button{color:var(--primary);background:0 0;border:0;align-items:center;gap:3px;font-size:12px;font-weight:700;display:inline-flex}.metric-strip{background:var(--surface);border:1px solid var(--border);border-radius:7px;grid-template-columns:repeat(4,1fr);display:grid;overflow:hidden}.metric{border-right:1px solid var(--border);flex-direction:column;min-width:0;padding:18px 20px;display:flex}.metric:last-child{border-right:0}.metric>span{color:var(--muted);font-size:11px;font-weight:600}.metric strong{letter-spacing:-.04em;font-variant-numeric:tabular-nums;margin-top:8px;font-size:22px}.metric small{color:var(--muted);margin-top:5px;font-size:11px}.danger-text{color:var(--danger)!important}.work-grid{grid-template-columns:minmax(0,1fr) 280px;gap:18px;display:grid}.panel{background:var(--surface);border:1px solid var(--border);border-radius:7px;min-width:0}.full-panel{overflow:hidden}.panel-header{border-bottom:1px solid var(--border);justify-content:space-between;align-items:center;gap:15px;min-height:66px;padding:13px 17px;display:flex}.panel-header h2{margin:0;font-size:14px}.panel-header p{color:var(--muted);margin:4px 0 0;font-size:11px}.quick-panel{overflow:hidden}.quick-action{border:0;border-bottom:1px solid var(--border);width:100%;height:67px;color:var(--ink);text-align:left;background:#fff;align-items:center;gap:11px;padding:0 14px;display:flex}.quick-action:last-child{border-bottom:0}.quick-action:hover{background:var(--surface-muted)}.quick-action>span:nth-child(2){flex-direction:column;flex:1;gap:4px;display:flex}.quick-action strong{font-size:12px}.quick-action small{color:var(--muted);font-size:10px}.quick-icon{background:var(--primary-soft);width:34px;height:34px;color:var(--primary);border-radius:6px;place-items:center;display:grid}.table-wrap{overflow:auto}table{border-collapse:collapse;width:100%;font-size:12px}th{z-index:1;height:36px;color:var(--muted);background:var(--surface-muted);border-bottom:1px solid var(--border);text-align:left;white-space:nowrap;padding:0 12px;font-size:10px;font-weight:700;position:sticky;top:0}td{white-space:nowrap;border-bottom:1px solid #edf0f2;height:47px;padding:6px 12px}tr:last-child td{border-bottom:0}tbody tr:hover{background:#fbfcfc}td strong{font-size:11px;display:block}td small{color:var(--muted);margin-top:3px;font-size:10px;display:block}.right{text-align:right}.money,.mono{font-variant-numeric:tabular-nums}.mono{font-family:Inter,ui-monospace,monospace;font-size:11px}.strong{font-weight:700}.empty{height:120px;color:var(--muted);text-align:center}.status{border-radius:4px;align-items:center;height:23px;padding:0 7px;font-size:10px;font-weight:700;display:inline-flex}.status-draft{color:#5d6871;background:#eef1f3}.status-confirmed{color:#165b9b;background:#e6f1fb}.status-invoiced{color:#6c4ba0;background:#f0eafb}.status-partial{color:var(--warning);background:var(--warning-soft)}.status-paid{color:var(--success);background:var(--success-soft)}.entry-layout{grid-template-columns:minmax(680px,1fr) 300px;align-items:start;gap:18px;display:grid}.entry-stage{background:var(--surface);border:1px solid var(--border);border-radius:7px;min-width:0}.entry-progress{border-bottom:1px solid var(--border);color:#7b8791;align-items:center;gap:9px;height:45px;padding:0 20px;font-size:10px;font-weight:700;display:flex}.entry-progress span.done{color:var(--primary)}.entry-progress i{background:var(--border);width:30px;height:1px}.form-section{border-bottom:1px solid var(--border);padding:19px 20px 21px}.section-title{align-items:flex-start;gap:10px;margin-bottom:18px;display:flex}.section-title>span{background:var(--primary);color:#fff;border-radius:50%;place-items:center;width:23px;height:23px;font-size:11px;font-weight:800;display:grid}.section-title h2{margin:1px 0 0;font-size:14px}.section-title p{color:var(--muted);margin:4px 0 0;font-size:10px}.form-grid{gap:15px 12px;display:grid}.form-grid.three{grid-template-columns:repeat(3,minmax(0,1fr))}.form-grid.five{grid-template-columns:repeat(5,minmax(100px,1fr))}.field{flex-direction:column;gap:6px;min-width:0;display:flex}.field.wide{grid-column:span 4}.field>span{align-items:center;gap:4px;min-height:13px;font-size:11px;font-weight:700;display:flex}.field em{color:var(--danger);font-style:normal}.field small{color:var(--muted);margin-left:auto;font-size:9px;font-weight:400}.field input,.field select,.field textarea{border:1px solid var(--border-strong);width:100%;height:40px;color:var(--ink);background:#fff;border-radius:5px;outline:none;padding:0 10px;font-size:12px}.field input::placeholder{color:#a2abb2}.field input:focus,.field select:focus,.field textarea:focus{border-color:var(--primary);box-shadow:0 0 0 2px #176b5b24}.money-input{position:relative}.money-input input{text-align:right;font-variant-numeric:tabular-nums;padding-right:28px}.money-input span{color:var(--muted);font-size:10px;position:absolute;top:50%;right:10px;transform:translateY(-50%)}.company-picker{position:relative}.company-picker>input{padding-right:30px}.company-picker>svg{color:var(--muted);pointer-events:none;position:absolute;top:50%;right:10px;transform:translateY(-50%)}.form-notice{color:var(--danger);background:var(--danger-soft);border-radius:5px;margin:15px 20px 0;padding:10px 12px;font-size:11px}.sticky-actions{z-index:3;background:#fffffff7;border-radius:0 0 7px 7px;justify-content:space-between;align-items:center;gap:15px;min-height:66px;padding:12px 20px;display:flex;position:sticky;bottom:0}.sticky-actions>span{color:var(--muted);font-size:9px}.sticky-actions>div{gap:7px;display:flex}.entry-summary{color:#fff;background:#173d36;border-radius:7px;position:sticky;top:86px;overflow:hidden}.summary-head{border-bottom:1px solid #ffffff21;justify-content:space-between;align-items:center;padding:17px;display:flex}.summary-head div{flex-direction:column;gap:5px;display:flex}.summary-head span{color:#a9c6c0;text-transform:uppercase;letter-spacing:.08em;font-size:9px}.summary-head strong{font-size:14px}.calculation{margin:0;padding:10px 17px 13px}.calculation div{justify-content:space-between;align-items:center;gap:10px;min-height:34px;display:flex}.calculation dt{color:#b6cac6;font-size:10px}.calculation dd{font-variant-numeric:tabular-nums;margin:0;font-size:11px}.calculation .subtotal{border-top:1px solid #ffffff21;margin-top:6px;padding-top:8px}.calculation .grand-total{border-top:1px solid #ffffff38;min-height:54px;margin-top:7px;padding-top:8px}.calculation .grand-total dt{color:#fff;font-size:12px;font-weight:700}.calculation .grand-total dd{color:#bcebdc;letter-spacing:-.03em;font-size:20px;font-weight:800}.summary-info{background:#00000021;flex-direction:column;gap:8px;padding:14px 17px 16px;display:flex}.summary-info strong{margin-bottom:3px;font-size:10px}.summary-info span{color:#b9ccc8;align-items:center;gap:6px;font-size:9px;display:flex}.toolbar-actions{gap:8px;display:flex}.search-input{border:1px solid var(--border);width:270px;height:36px;color:var(--muted);background:#fff;border-radius:5px;align-items:center;gap:7px;padding:0 10px;display:flex}.search-input input{border:0;outline:0;width:100%;font-size:11px}.notice-strip{background:var(--warning-soft);border:1px solid #ecd5a4;border-radius:7px;justify-content:space-between;align-items:center;gap:20px;padding:14px 16px;display:flex}.notice-strip>div{color:var(--warning);align-items:center;gap:12px;display:flex}.notice-strip span{flex-direction:column;gap:3px;display:flex}.notice-strip strong{font-size:13px}.notice-strip small{color:#79633c;font-size:10px}.payment-list{flex-direction:column;display:flex}.payment-row{border-bottom:1px solid var(--border);grid-template-columns:36px minmax(220px,1fr) 130px 80px;align-items:center;gap:11px;min-height:59px;padding:7px 16px;font-size:11px;display:grid}.payment-row:last-child{border-bottom:0}.payment-row div{flex-direction:column;gap:3px;display:flex}.payment-row small{color:var(--muted);font-size:9px}.payment-icon{background:var(--success-soft);width:32px;height:32px;color:var(--success);border-radius:50%;place-items:center;display:grid}.payment-row>strong{text-align:right;font-variant-numeric:tabular-nums}.inline-form{background:var(--surface-muted);border-bottom:1px solid var(--border);grid-template-columns:2fr 1fr auto auto;align-items:end;gap:10px;padding:14px 17px;display:grid}.company-grid{grid-template-columns:repeat(3,1fr);gap:12px;padding:16px;display:grid}.company-card{border:1px solid var(--border);border-radius:6px;padding:14px}.company-card-head{border-bottom:1px solid var(--border);align-items:center;gap:10px;padding-bottom:12px;display:flex}.company-card-head>div{flex-direction:column;flex:1;gap:4px;display:flex}.company-card-head strong{font-size:12px}.company-card-head div span{color:var(--muted);font-size:9px}.company-avatar{background:var(--primary-soft);width:34px;height:34px;color:var(--primary);border-radius:5px;place-items:center;font-size:13px;font-weight:800;display:grid}.company-card dl{margin:11px 0 0}.company-card dl div{justify-content:space-between;align-items:center;gap:10px;min-height:27px;font-size:10px;display:flex}.company-card dt{color:var(--muted)}.company-card dd{margin:0;font-weight:600}.company-card dd.truncate{text-overflow:ellipsis;white-space:nowrap;max-width:165px;overflow:hidden}.company-search{width:320px}.company-result-note{color:var(--muted);background:var(--surface-muted);border-top:1px solid var(--border);text-align:center;padding:13px 16px;font-size:10px}.report-grid{grid-template-columns:repeat(3,1fr);gap:15px;display:grid}.report-card{border:1px solid var(--border);background:#fff;border-radius:7px;flex-direction:column;align-items:flex-start;min-height:295px;padding:22px;display:flex}.report-icon{background:var(--primary-soft);width:45px;height:45px;color:var(--primary);border-radius:7px;place-items:center;display:grid}.report-card h2{margin:20px 0 8px;font-size:16px}.report-card p{color:var(--muted);margin:0;font-size:11px;line-height:1.7}.report-meta{color:var(--muted);margin-top:auto;margin-bottom:13px;font-size:10px}.report-card .button{width:100%}.modal-backdrop{z-index:100;background:#0e181bb3;place-items:center;padding:24px;display:grid;position:fixed;inset:0}.detail-modal{background:#fff;border-radius:8px;flex-direction:column;width:min(760px,100%);max-height:calc(100vh - 48px);display:flex;overflow:hidden;box-shadow:0 24px 70px #00000040}.detail-modal-head{border-bottom:1px solid var(--border);justify-content:space-between;align-items:center;min-height:66px;padding:10px 18px;display:flex}.detail-modal-head>div{flex-direction:column;gap:4px;display:flex}.detail-modal-head span{color:var(--muted);font-size:10px}.detail-modal-head h2{margin:0;font-family:Inter,ui-monospace,monospace;font-size:15px}.detail-summary{background:var(--surface-muted);border-bottom:1px solid var(--border);grid-template-columns:repeat(4,1fr);display:grid}.detail-summary>div{border-right:1px solid var(--border);flex-direction:column;justify-content:center;gap:7px;min-height:73px;padding:10px 16px;display:flex}.detail-summary>div:last-child{border-right:0}.detail-summary>div>span{color:var(--muted);font-size:9px}.detail-summary strong{font-variant-numeric:tabular-nums;font-size:14px}.detail-body{padding:4px 18px 18px;overflow:auto}.detail-section{padding-top:17px}.detail-section h3{margin:0 0 9px;font-size:11px}.detail-section dl{border:1px solid var(--border);border-radius:6px;grid-template-columns:repeat(3,1fr);margin:0;display:grid;overflow:hidden}.detail-section dl>div{border-right:1px solid var(--border);border-bottom:1px solid var(--border);flex-direction:column;justify-content:center;gap:5px;min-height:57px;padding:8px 11px;display:flex}.detail-section dl>div:nth-child(3n){border-right:0}.detail-section dl>div:nth-last-child(-n+3){border-bottom:0}.detail-section dt{color:var(--muted);font-size:9px}.detail-section dd{margin:0;font-size:11px;font-weight:650}.detail-memo{background:var(--surface-muted);border-radius:6px;margin-top:16px;padding:12px}.detail-memo span{color:var(--muted);font-size:9px}.detail-memo p{margin:5px 0 0;font-size:11px}.detail-actions{border-top:1px solid var(--border);justify-content:flex-end;align-items:center;gap:7px;min-height:64px;padding:10px 18px;display:flex}.button:disabled{cursor:not-allowed;opacity:.5}.report-modal{background:var(--canvas);border-radius:8px;flex-direction:column;width:min(1120px,100%);max-height:calc(100vh - 48px);display:flex;overflow:hidden;box-shadow:0 24px 70px #00000040}.report-modal-head{border-bottom:1px solid var(--border);background:#fff;justify-content:space-between;align-items:center;gap:20px;min-height:64px;padding:10px 16px;display:flex}.report-modal-head h2{margin:0;font-size:14px}.report-modal-head p{color:var(--muted);margin:4px 0 0;font-size:10px}.report-modal-head>div:last-child{align-items:center;gap:8px;display:flex}.report-modal-head select{border:1px solid var(--border);background:#fff;border-radius:5px;min-width:220px;height:36px;padding:0 8px;font-size:11px}.print-canvas{padding:28px;overflow:auto}.paper{color:#111;background:#fff;width:210mm;min-height:297mm;margin:0 auto;padding:16mm;font-family:Batang,AppleMyungjo,serif;box-shadow:0 2px 12px #0000001f}.paper h1{text-align:center;letter-spacing:.15em;margin:0 0 8mm;font-size:23px}.paper h2{margin:10mm 0 3mm;font-size:14px}.paper-meta{justify-content:space-between;align-items:center;margin-bottom:4mm;font-size:10px;display:flex}.paper table{table-layout:fixed;border:1px solid #222;font-size:9px}.paper th,.paper td{color:#111;white-space:normal;background:#fff;border:1px solid #444;height:8mm;padding:1.5mm 2mm;position:static}.paper th{text-align:center;font-weight:700}.paper tfoot th,.paper tfoot td,.paper .group-total th{text-align:right;background:#f2f2f2;font-weight:800}.document-lines{margin-top:5mm}.statement-paper .document-lines th:first-child{width:28mm}.statement-paper .document-lines th:last-child{width:38mm}.report-company{justify-content:space-between;align-items:flex-start;display:flex}.report-company h1{text-align:left;letter-spacing:0}.approval{border:1px solid #222;grid-template-columns:repeat(2,25mm);display:grid}.approval span{text-align:center;border-right:1px solid #222;height:22mm;padding-top:2mm;font-size:9px}.approval span:last-child{border-right:0}.receivables-paper{width:297mm;min-height:210mm;padding:11mm}.receivables-paper h1{margin-bottom:5mm;font-size:20px}.integration-list{flex-direction:column;gap:10px;display:flex}.integration-card{border:1px solid var(--border);background:#fff;border-radius:7px;grid-template-columns:44px minmax(300px,1fr) 80px 110px;align-items:center;gap:14px;min-height:100px;padding:15px 18px;display:grid}.integration-icon{background:var(--primary-soft);width:40px;height:40px;color:var(--primary);border-radius:6px;place-items:center;display:grid}.integration-card h2{margin:0;font-size:13px}.integration-card p{color:var(--muted);margin:4px 0 6px;font-size:10px}.integration-card code{color:#5b6872;font-size:9px}.mobile-only{display:none}@media (width<=1100px){.entry-layout{grid-template-columns:1fr}.entry-summary{order:-1;position:static}.form-grid.five{grid-template-columns:repeat(3,1fr)}.metric-strip{grid-template-columns:repeat(2,1fr)}.metric:nth-child(2){border-right:0}.metric:nth-child(-n+2){border-bottom:1px solid var(--border)}.company-grid,.report-grid{grid-template-columns:repeat(2,1fr)}}@media (width<=760px){.mobile-only{display:inline-grid}.sidebar{transition:transform .2s;transform:translate(-100%);box-shadow:10px 0 30px #0003}.sidebar.sidebar-open{transform:translate(0)}.main-stage{width:100%;margin-left:0}.topbar{padding:0 12px}.page-heading p,.top-search{display:none}.content{padding:14px 12px 30px}.work-grid,.form-grid.three,.form-grid.five,.company-grid,.report-grid{grid-template-columns:1fr}.field.wide{grid-column:auto}.entry-layout{display:block}.entry-summary{margin-bottom:12px}.sticky-actions{flex-direction:column;align-items:stretch;position:static}.sticky-actions>div{grid-template-columns:1fr;display:grid}.toolbar{flex-direction:column;align-items:flex-start}.toolbar-actions,.search-input{width:100%}.search-input{flex:1}.payment-row{grid-template-columns:36px 1fr auto}.payment-row>.status{display:none}.inline-form{grid-template-columns:1fr}.integration-card{grid-template-columns:44px 1fr}.integration-card>.status,.integration-card>.button{grid-column:2}.detail-summary{grid-template-columns:repeat(2,1fr)}.detail-summary>div:nth-child(2){border-right:0}.detail-summary>div:nth-child(-n+2){border-bottom:1px solid var(--border)}.detail-section dl{grid-template-columns:1fr}.detail-section dl>div{border-right:0}.detail-section dl>div:nth-last-child(-n+3){border-bottom:1px solid var(--border)}.detail-section dl>div:last-child{border-bottom:0}.detail-actions{flex-wrap:wrap}}@media print{.sidebar,.topbar,.sticky-actions,.button,.report-modal-head{display:none!important}.main-stage{width:100%;margin:0}.content{max-width:none;padding:0}.content>:not(.modal-backdrop){display:none!important}.modal-backdrop{background:0 0;padding:0;display:block;position:static}.report-modal,.print-canvas{width:auto;max-height:none;box-shadow:none;background:0 0;padding:0;overflow:visible}.paper{box-shadow:none;margin:0;padding:10mm}.panel,.report-card{border-color:#666}}
