/* DSSM NEXT · Navy Desk. Local fonts only; no external assets or CDN. */
:root {
  --navy:#111f35; --nav-active:#243d64; --brand:#2c5ad8;
  --text:#172b4d; --muted:#66778f; --line:#e3e8ef;
  --bg:#f2f5fa; --surf:#fff; --tint:#e9f0ff; --preview:#e9eef5;
}
*{box-sizing:border-box}
body{margin:0;background:var(--bg);color:var(--text);font:13px/1.5 'Malgun Gothic','Noto Sans KR','Noto Sans CJK KR',Arial,sans-serif}
button,input,select,textarea{font:inherit}
button{cursor:pointer}
button:focus-visible,a:focus-visible,summary:focus-visible{outline:3px solid #8daef2;outline-offset:3px}
button:disabled{cursor:not-allowed}
.app{display:grid;grid-template-columns:220px minmax(0,1fr);min-height:100vh}
.sidebar{background:var(--navy);color:#b9c6d8;padding:28px 18px 18px;display:flex;flex-direction:column;position:sticky;top:0;height:100vh;overflow-y:auto;scrollbar-width:thin}
.brand{padding:0 8px 18px}
.brand strong{display:block;font-size:28px;letter-spacing:.4px;color:#fff;line-height:1.2}
.brand .brand-word{font-size:10px;letter-spacing:1.4px;color:#9baec8;margin:9px 0 12px}
.brand span{display:block;font-size:10px;color:#aebdd1}
.group-name{padding:20px 12px 7px;letter-spacing:1.2px;color:#8e9fb9;font-size:10px;font-weight:600}
.sidebar nav button{display:flex;align-items:center;gap:11px;width:100%;min-height:40px;padding:10px 12px;margin:4px 0;background:transparent;border:0;color:inherit;text-align:left;border-radius:8px;font-size:12px;white-space:nowrap}
.nav-icon{width:16px;height:16px;flex-shrink:0;opacity:.85}
.sidebar nav button.current{background:var(--nav-active);color:#fff}
.sidebar nav button:hover{background:#ffffff12}
.sidebar nav button.current:hover{background:#2a4774}
.nav-pending{margin-left:auto;font-size:9px;color:#afbdd0;border:1px solid #ffffff24;border-radius:4px;padding:1px 4px}
.sidebar-foot{margin-top:auto;padding:16px 10px 2px;color:#a9bad1;font-size:9px;line-height:1.8}
.sidebar-foot strong{display:block;color:#e5edf9;font-size:11px;margin-bottom:5px}
.workspace{min-width:0}
.topbar{background:var(--surf);border-bottom:1px solid #eaf0f7;min-height:52px;display:flex;align-items:center;justify-content:space-between;padding:9px 32px;gap:20px}
.breadcrumb{display:flex;align-items:center;gap:12px;color:var(--muted);font-size:11px}
.breadcrumb strong{font-weight:500;color:var(--text)}
.breadcrumb-divider{color:#c0cbda}
.db-state{text-align:right;min-width:0}
.db-state small{display:block;font-size:9px;color:var(--muted);margin-top:4px;max-width:460px;overflow-wrap:anywhere}
.badge{display:inline-flex;align-items:center;gap:7px;font-size:10px;color:#316751;background:#edf6f1;padding:5px 11px;border-radius:20px}
.badge:before{content:'';width:5px;height:5px;background:currentColor;border-radius:50%}
.badge.error{color:#a14836;background:#fff0eb}
.content{max-width:1720px;margin:auto;padding:20px 32px 24px}
.view{display:none}
.view.active{display:block}
.view-head{display:flex;justify-content:space-between;align-items:center;gap:24px;margin-bottom:20px}
.eyebrow{color:var(--muted);font-size:9px;font-weight:600;letter-spacing:1.4px}
.view h1{font-size:27px;line-height:1.3;letter-spacing:-.8px;margin:5px 0 9px}
.view p{color:var(--muted);line-height:1.8;margin:5px 0 14px}
.view-head p{font-size:12px;margin:0}
.toolbar{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.btn{border:1px solid var(--line);background:var(--surf);border-radius:8px;min-height:39px;padding:9px 15px;color:var(--text);font-size:12px;font-weight:500;white-space:nowrap}
.btn:hover{background:#f5f8fe;border-color:#c9d7ee}
.btn.blue{color:#fff;background:var(--brand);border-color:var(--brand)}
.btn.blue:hover{background:#234dc0}
.btn:disabled{opacity:.45}
.cards{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin-bottom:24px}
.metric,.card{border:1px solid var(--line);border-radius:12px;background:var(--surf)}
.metric{padding:24px}
.metric small{color:var(--muted);display:block;margin-bottom:12px;font-size:12px}
.metric strong{font-size:29px;letter-spacing:-.8px;color:var(--text)}
.card{padding:24px;margin-bottom:20px}
.card h2{font-size:16px;letter-spacing:-.3px;margin:0 0 16px}
.muted,.sub{color:var(--muted);font-size:12px;line-height:1.8}
input,select,textarea{border:1px solid var(--line);background:var(--surf);border-radius:6px;padding:10px 12px;max-width:100%;min-width:0;color:var(--text)}
input::placeholder,textarea::placeholder{color:#8391a6;opacity:1}
input:focus,select:focus,textarea:focus{outline:2px solid #8daef2;outline-offset:1px}
.table-scroll{overflow:auto;margin:18px 0;max-height:540px;border:1px solid var(--line);border-radius:8px}
table{border-collapse:collapse;width:100%;min-width:800px;font-size:12px}
th,td{text-align:left;padding:13px 14px;border-bottom:1px solid #eaf0f5;vertical-align:top}
th{background:#f5f7fb;position:sticky;top:0;color:#5f718c;font-weight:600;font-size:11px}
tr:last-child td{border-bottom:0}
tbody tr:hover{background:#f8faff}
td.title-cell{max-width:450px;line-height:1.7;overflow-wrap:anywhere}
td button{white-space:nowrap}
.pagination{display:flex;gap:12px;align-items:center;justify-content:center;font-size:12px;color:var(--muted)}
.report-result,pre{white-space:pre-wrap;overflow-wrap:anywhere;border:1px solid var(--line);background:#f8faff;padding:16px;border-radius:8px;margin-top:16px}
.status-tag{display:inline-block;vertical-align:middle;font-size:10px;font-weight:500;padding:5px 10px;border-radius:20px;background:var(--bg);color:var(--muted);white-space:nowrap}
.ready-tag{color:#266854;background:#edf8f3}
.formula-notice{padding:16px 20px;margin-bottom:20px;border:1px solid #eadfc6;border-radius:8px;background:#fffcf4;color:#705c35;font-size:12px;line-height:1.8}
.formula-notice p{margin:8px 0 0;color:inherit}
/* Record entry: keep the 44/49 field structure and input contract. */
.modal{display:none;position:fixed;inset:0;background:#071627b8;z-index:500;align-items:center;justify-content:center;padding:15px}
.modal.open{display:flex}
.modal-panel{width:min(1370px,98vw);height:min(92vh,980px);display:flex;flex-direction:column;background:var(--surf);box-shadow:0 18px 65px #071b2c66;border-radius:12px;overflow:hidden}
.modal-head{padding:20px 26px;background:var(--navy);color:#fff;display:flex;align-items:center;justify-content:space-between}
.modal-head small{color:#b5c6df;font-size:11px}
.modal-head h2{margin:4px 0 0;font-size:22px}
.close{background:none;border:0;color:#fff;font-size:29px;padding:0 8px}
.close:disabled{opacity:.4;cursor:wait}
.modal-body{overflow-y:auto;padding:22px 27px;flex:1;background:var(--bg)}
.notice{background:#eaf0fc;padding:12px 16px;color:#4b6387;margin-bottom:20px;border-radius:8px;font-size:12px;line-height:1.8}
.form-row{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin-bottom:14px}
.field{background:var(--surf);padding:12px;border-radius:8px;border:1px solid var(--line);min-width:0}
.field.span2{grid-column:span 2}.field.span3{grid-column:span 3}
.field label{display:block;font-size:12px;color:#526681;font-weight:600;margin-bottom:8px}
.field input,.field textarea{width:100%;min-width:0}
.field textarea{min-height:90px;resize:vertical}
.field-hint{display:block;color:var(--muted);font-size:10px;margin-top:7px}
.field [aria-invalid=true]{border-color:#b14431;background:#fff8f5}
.extra{border-top:1px solid #cad6e8;margin-top:24px;padding-top:16px}
.extra h3{color:var(--text);font-size:15px}
.modal-foot{display:flex;justify-content:space-between;align-items:center;gap:16px;padding:16px 26px;border-top:1px solid var(--line)}
.editor-error:empty{display:none}
.editor-error{margin-bottom:14px;padding:12px;border:1px solid #e6bbae;border-radius:7px;background:#fff2ed;color:#983d29;line-height:1.7}
.toast{display:none;position:fixed;right:20px;bottom:20px;padding:14px 18px;border-radius:8px;background:#172b4d;color:#fff;z-index:700;max-width:min(500px,calc(100vw - 40px));line-height:1.8}
.toast.show{display:block}code{font-family:Consolas,monospace}
.field select{width:100%;min-height:40px}.lookup-input{display:flex;gap:6px;align-items:center}.lookup-input input{min-width:0;flex:1}.lookup-input .btn{white-space:nowrap;padding:8px 10px;font-size:11px}
.itsm-panel{border:1px solid #c7d5e7;background:#f4f7fc;border-radius:9px;padding:16px;margin:12px 0 18px}.itsm-panel[hidden],.itsm-detail[hidden]{display:none}
.itsm-panel h3{font-size:14px;margin:0}.itsm-panel .toolbar{margin:12px 0;flex-wrap:wrap}.itsm-panel .toolbar input{flex:1;min-width:160px}.itsm-panel p{font-size:11px;line-height:1.8}.itsm-panel .table-scroll{max-height:220px;overflow:auto}.itsm-panel table{font-size:11px}.itsm-panel td{overflow-wrap:anywhere;white-space:normal}.itsm-detail{margin-top:14px}.itsm-detail .btn{margin-top:10px}
.schema-evidence{padding:14px 18px;background:#eaf0f7;border-radius:8px;color:#344966;margin-bottom:14px;font-size:12px;line-height:1.8}
.schema-evidence p{margin:5px 0 0}.schema-card{margin-bottom:14px}.schema-card h2{margin:0 0 8px;font-size:16px}
.schema-card summary{cursor:pointer;font-size:14px;font-weight:600}.schema-card[open] summary{margin-bottom:12px}
.schema-controls{display:flex;align-items:end;gap:12px;flex-wrap:wrap;margin:14px 0}
.schema-controls label{display:flex;flex-direction:column;gap:6px;font-size:11px;color:var(--muted);flex:1;min-width:180px}
.schema-controls input,.schema-controls select{width:100%;min-width:0;font-size:12px}.schema-controls>.sub{padding-bottom:10px}
.schema-table{max-height:350px;overflow:auto;scrollbar-width:thin}.schema-table table{font-size:11px;min-width:830px}
.schema-table th{position:sticky;top:0;z-index:1;background:#f4f7fb}.schema-table td{white-space:normal;min-width:75px;max-width:290px;overflow-wrap:anywhere}
.schema-footnote{font-size:10px;line-height:1.8;color:var(--muted);margin:10px 0 0}.schema-match{display:block;white-space:pre-line;line-height:1.8;color:var(--muted);margin-top:6px}
/* Report workspace: compact controls and bounded, independently scrolling panels. */
.report-view .view-head{margin-bottom:12px;min-height:40px}
.report-view h1{font-size:24px;margin:0}
.report-query-card{padding:12px 14px;border-radius:8px;margin-bottom:10px}
.report-filters{display:flex;align-items:end;gap:12px;flex-wrap:wrap}
.report-filter{display:flex;flex:1;flex-direction:column;gap:5px;color:#526581;font-size:11px;min-width:135px}
.report-filter input,.report-filter select{font-size:12px;width:100%;min-height:36px;padding:7px 10px}
.report-filters .btn{min-height:36px;min-width:102px;padding:7px 12px}
.draft-toolbar{display:flex;gap:8px;flex-wrap:wrap;align-items:center;margin-bottom:12px}
.draft-toolbar select{max-width:min(330px,100%);min-width:220px;font-size:12px;background:transparent;padding:6px 10px;min-height:34px}
.draft-toolbar .btn{background:transparent;min-height:34px;padding:6px 12px}
.draft-status{font-size:10px;color:var(--muted);margin-left:auto;max-width:470px;overflow-wrap:anywhere;line-height:1.8}
.report-writing{display:grid;grid-template-columns:minmax(0,1.08fr) minmax(0,1fr);align-items:stretch;gap:18px;margin-bottom:12px;height:calc(100vh - 400px);min-height:400px;max-height:680px}
.document-editor{margin:0;padding:18px;min-width:0;display:flex;flex-direction:column;overflow:hidden}
.editor-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:8px}
.editor-heading h2{font-size:17px;margin:0}
.document-editor>p.sub{font-size:10px;margin:0 0 14px}
.document-form{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:14px 12px;overflow:auto;min-height:0;align-content:start;padding:2px 6px 4px 2px;scrollbar-width:thin;scrollbar-color:#b5c4d9 transparent}
.document-field{grid-column:span 3;display:flex;flex-direction:column;gap:8px;font-size:11px;font-weight:500;color:#526581;min-width:0}
.document-field:first-child,.document-field.wide{grid-column:1/-1}
.document-field.document-basic{grid-column:span 2}
.document-field.document-compact{grid-column:span 3}
.document-field input,.document-field textarea{width:100%;font-size:12px;font-weight:400}
.document-field input{min-height:36px;padding:7px 10px}
.document-field textarea{line-height:1.8;resize:vertical;min-height:72px;height:84px;padding:8px 10px}
.document-field[data-key=work_details] textarea{min-height:84px}
.document-preview-shell{background:var(--preview);border-radius:12px;padding:16px;min-width:0;display:flex;flex-direction:column;overflow:hidden}
.preview-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;color:var(--muted);font-size:10px;margin-bottom:12px;flex-shrink:0}
.preview-toolbar strong{font-size:12px;font-weight:500}
.document-preview{background:var(--surf);border:1px solid #e1e6ee;border-radius:3px;box-shadow:0 1px 4px #172b4d05;padding:24px;min-height:0;overflow:auto;flex:1;scrollbar-width:thin;scrollbar-color:#b5c4d9 transparent}
.document-caption{display:flex;align-items:center;justify-content:space-between;gap:12px;font-size:9px;letter-spacing:.6px;color:var(--brand)}
.document-draft-mark{color:#7a899e;border:1px solid var(--line);border-radius:3px;padding:4px 6px;font-size:9px;letter-spacing:0;white-space:nowrap}
.document-preview .document-title{font-size:23px;line-height:1.6;text-align:left;letter-spacing:-.6px;margin:22px 0;color:#202f47;overflow-wrap:anywhere}
.document-meta{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));border-top:1px solid var(--line);border-bottom:1px solid var(--line);padding:14px 0;gap:12px}
.document-meta small{display:block;color:#8390a2;font-size:9px;margin-bottom:6px}
.document-meta strong{font-size:11px;font-weight:500;overflow-wrap:anywhere}
.document-source{background:#f4f7fb;padding:14px;margin:20px 0;border-radius:6px}
.document-source strong{font-size:10px;font-weight:600}
.document-source p{font-size:10px;margin:6px 0;line-height:1.8}
.document-source small{font-size:9px;display:block;color:#8a7653;margin-top:8px}
.document-count{display:inline-block;margin:4px 6px 0 0;font-size:10px;background:var(--surf);padding:4px 8px;border:1px solid var(--line);border-radius:4px}
.document-section{margin:22px 0}
.document-section h3{font-size:11px;font-weight:600;color:#344966;margin:0 0 9px}
.document-section p{font-size:11px;color:#415672;white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.9;min-height:24px;margin:0}
.document-section .empty-content{color:#8d9aab;font-size:10px}
.document-footer{border-top:1px solid var(--line);padding-top:15px;margin-top:24px;font-size:9px;color:#8390a2;line-height:1.8}
.report-notice{background:#eaf0f7;color:#5e7089;border:0;padding:10px 14px;font-size:11px;margin-bottom:12px}
.report-notice summary{cursor:pointer;font-weight:500}
.report-notice p{font-size:11px}
.source-heading{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:16px}
.report-card{padding:13px 18px;margin-bottom:0}
.report-card .source-heading{cursor:pointer;margin:0}
.report-card[open] .source-heading{margin-bottom:16px}
.report-card .source-heading:before{content:"›";font-size:20px;line-height:1;color:var(--muted)}
.report-card[open] .source-heading:before{transform:rotate(90deg)}
.source-heading h2{margin:0;font-size:13px;margin-right:auto}.source-heading .sub{font-size:10px}
.report-output-bar{display:flex;justify-content:space-between;align-items:center;gap:12px}
.report-output-bar strong{font-size:16px;font-weight:600}
.report-feedback{margin-top:12px;color:var(--muted);font-size:11px;line-height:1.8}
.report-feedback.error{color:#a4412e}
.status-chips{display:flex;gap:8px;flex-wrap:wrap;margin-top:16px}
.status-chips:empty{display:none}
.status-chip{border:1px solid var(--line);background:#f6f8fc;border-radius:6px;padding:8px 12px;display:flex;gap:16px;align-items:center;font-size:11px}
.status-chip strong{color:var(--brand)}
.report-missing{margin-top:18px;border-top:1px solid var(--line);padding-top:14px;font-size:11px;line-height:1.8;color:var(--muted)}
.report-missing:empty{display:none}
.report-table td{max-width:340px;white-space:pre-wrap;overflow-wrap:anywhere}.report-table th{white-space:nowrap}
@media(min-width:1800px){.content{padding-left:42px;padding-right:42px}.document-field textarea{min-height:84px}.document-preview{padding:36px}}
@media(max-width:1200px){.app{grid-template-columns:200px minmax(0,1fr)}.sidebar{padding-left:12px;padding-right:12px}.content{padding:24px}.report-actions{gap:6px}.report-actions .btn{padding:9px 12px}.report-writing{grid-template-columns:1fr;height:auto;max-height:none}.document-form{max-height:540px}.document-preview{max-height:540px}.document-preview-shell{position:static}.document-preview{min-height:0}.document-basic input{min-width:0}.cards{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:800px){.app{display:block}.sidebar{position:static;height:auto;padding:18px 16px 10px;overflow:visible}.brand{padding:0 6px 12px;display:flex;align-items:baseline;gap:12px;flex-wrap:wrap}.brand strong{font-size:22px}.brand .brand-word{margin:0}.brand span{display:none}.sidebar>.group-name,.sidebar nav .group-name,.sidebar-foot{display:none}.sidebar nav{display:flex;overflow-x:auto;gap:6px;padding:4px 0}.sidebar nav button{width:auto;flex-shrink:0;padding:9px 12px;margin:0}.nav-pending{display:none}.topbar{padding:12px 20px;gap:12px;flex-wrap:wrap}.db-state small{max-width:100%;font-size:9px}.content{padding:24px 20px}.view-head{align-items:flex-start;flex-wrap:wrap;gap:16px}.view h1{font-size:25px}.view-head .toolbar{width:100%}.report-actions .btn{flex:1}.report-filter{min-width:135px}.draft-status{width:100%;max-width:none;margin-left:0}.form-row{grid-template-columns:1fr}.field.span2,.field.span3{grid-column:auto}.document-form{grid-template-columns:repeat(2,minmax(0,1fr))}.document-field,.document-field.document-basic,.document-field.document-compact{grid-column:span 1}.document-field:first-child,.document-field.wide{grid-column:1/-1}.document-field.document-compact{grid-column:span 1}.modal-body{padding:18px}.modal-foot{padding:14px;flex-wrap:wrap}.source-heading{flex-wrap:wrap}}
@media(max-width:480px){.content{padding:20px 14px}.db-state{text-align:left}.breadcrumb{font-size:10px}.cards{gap:10px}.metric{padding:18px}.metric strong{font-size:24px}.card{padding:18px}.report-query-card{padding:14px}.report-filters .btn{width:100%}.report-tabs{gap:4px}.report-tab{min-width:0;flex:1;padding:8px 10px}.draft-toolbar select{width:100%;max-width:100%}.document-editor{padding:18px}.document-preview-shell{padding:12px}.document-preview{padding:18px}.preview-toolbar{gap:8px;font-size:9px}.document-form{gap:16px 10px}.document-field.document-basic{grid-column:1/-1}.document-field.document-compact{grid-column:1/-1}.document-preview .document-title{font-size:21px}.document-meta{gap:6px}.report-output-bar{align-items:flex-start;flex-wrap:wrap}}
@media print{.sidebar,.topbar,.view-head,.report-tabs,.formula-notice,.draft-toolbar,.document-editor,.report-card,.report-query-card,.preview-toolbar{display:none!important}.report-writing{display:block;height:auto;max-height:none;min-height:0}.document-preview-shell{position:static;background:none;padding:0}.document-preview{border:0;box-shadow:none;padding:0;min-height:0;max-height:none;overflow:visible}.app{display:block}.content{padding:0;max-width:none}body{background:white}.document-section{break-inside:avoid}}

/* Source report grids retain their merged cells without extending the page. */
.report-numbers{padding:18px;margin-bottom:12px;min-width:0}
.number-table-heading{display:flex;justify-content:space-between;align-items:center;gap:16px;margin-bottom:12px}
.number-table-heading h2{margin:0;font-size:17px}.number-table-heading .sub{margin:6px 0 0;font-size:11px}
.number-table-controls{display:flex;gap:8px;align-items:center}.number-table-controls select{max-width:250px;font-size:12px;min-height:36px}.number-table-controls .btn{white-space:nowrap;font-size:11px;min-height:36px}
.number-table-status{background:#f2f5fa;color:#5d6d83;border-radius:6px;padding:9px 12px;font-size:11px;margin-bottom:12px}
.number-table-scroll{max-height:380px;overflow:auto;border:1px solid #dce3ec;border-radius:6px;scrollbar-width:thin;scrollbar-color:#aebed4 transparent}
.number-table{border-collapse:separate;border-spacing:0;width:100%;font-size:11px;min-width:720px;table-layout:fixed}
.number-table caption{font-size:10px;padding:8px;color:#697b93;text-align:left;caption-side:bottom}
.number-table th,.number-table td{border-right:1px solid #e1e7ef;border-bottom:1px solid #e1e7ef;text-align:center;padding:9px 6px;white-space:normal;line-height:1.5;min-width:0;overflow-wrap:anywhere}
.number-table thead{position:sticky;top:0;z-index:1}.number-table thead th{background:#263e61;color:#fff;font-weight:500}
.number-table tbody th{background:#f3f6fa;color:#304967;font-weight:500}.number-table .value{color:#8b7959;background:#fffdf8;font-size:10px}
.number-table-source{font-size:10px;color:#728198;margin-top:12px;line-height:1.8}.number-table-source summary{cursor:pointer}.number-table-source p{margin:6px 0}
.report-numbers.unavailable{padding:14px 18px}.report-numbers.unavailable p{font-size:11px;color:#73829a;margin:6px 0 0}
.report-authored>summary{cursor:pointer;color:#304967;font-weight:500;padding:12px 2px;font-size:12px}.report-authored[open]>summary{margin-bottom:8px}
@media(max-width:900px){.number-table-heading{align-items:flex-start;flex-direction:column}.number-table-controls{width:100%;flex-wrap:wrap}.number-table-controls select{flex:1;min-width:160px}.number-table-scroll{max-height:350px}}
@media print{.report-numbers,.report-authored>summary{display:none!important}}
/* Report calculations share compact filters and one table selector. */
.analytics{display:grid;gap:12px;margin-bottom:16px}.analytics-filters{display:flex;align-items:end;gap:9px;flex-wrap:wrap;padding:14px;background:#fff;border:1px solid #dce3ed;border-radius:10px}.analytics-filters label{display:grid;gap:5px;font-size:11px;color:#607089}.analytics-filters input,.analytics-filters select,.analytics-table-head select{height:34px;border:1px solid #d5deea;border-radius:6px;background:#fff;padding:0 8px;max-width:220px;color:#233958}.analytics-state{margin:0;font-size:12px;color:#596c88}.analytics-kpis{display:grid;grid-template-columns:repeat(4,1fr);gap:12px}.analytics-kpi{display:flex;align-items:center;justify-content:space-between;background:#fff;padding:14px 18px;border-radius:10px;border:1px solid #dce3ed}.analytics-kpi small{color:#63728b}.analytics-number{border:0;background:transparent;color:#204c82;font:inherit;font-weight:650;cursor:pointer;padding:3px 5px;text-decoration:underline;text-decoration-color:#adc2dc;text-underline-offset:4px}.analytics-kpi .analytics-number{font-size:25px;text-decoration:none}.analytics-table-head{display:flex;align-items:center;justify-content:space-between;gap:12px}.analytics-grid{max-height:370px;overflow:auto;border:1px solid #dce3ed;border-radius:8px;background:#fff}.analytics-grid table{width:100%;border-collapse:separate;border-spacing:0;font-size:12px}.analytics-grid th{position:sticky;top:0;background:#ecf1f7;color:#475b76;z-index:1;white-space:nowrap}.analytics-grid th,.analytics-grid td{padding:9px 12px;border-bottom:1px solid #edf1f6;text-align:left;white-space:nowrap}.analytics-grid tbody tr:hover{background:#f5f8fc}.analytics-note{margin:0;color:#718097;font-size:11px}.analytics-unavailable{color:#8b6b41}.analytics-warnings,.analytics-audit{font-size:12px;color:#685b48;background:#faf7f1;border:1px solid #eae0cf;padding:10px 13px;border-radius:8px}.analytics-warnings summary,.analytics-audit summary{cursor:pointer}.analytics-warnings p{margin:8px 0}.analytics-detail{display:grid;gap:10px;padding:14px;background:#eaf0f7;border-radius:10px}.analytics-detail[hidden]{display:none}.analytics-detail pre{white-space:pre-wrap;max-width:700px;font:inherit}.analytics-detail td{white-space:normal}.analytics-inspection:empty{display:none}.analytics-inspection{padding:12px 16px;border:1px solid #cbd8e9;border-radius:8px;background:#edf3fb;color:#1c3456}.analytics-inspection strong{display:block;margin-bottom:6px}.analytics-audit .analytics-grid{margin-top:10px}.analytics-audit button{margin-top:10px}@media(max-width:900px){.analytics-kpis{grid-template-columns:repeat(2,1fr)}}
.analytics-mapping{padding:10px 13px;border:1px solid #c9d8ea;border-radius:8px;background:#f5f8fc;font-size:12px;color:#23446d}.analytics-mapping summary{cursor:pointer}.analytics-mapping .analytics-filters{margin-top:10px}.analytics-mapping>.analytics-note{margin-top:9px}
.ci-editor{display:grid;gap:10px;margin-top:16px;padding-top:14px;border-top:1px solid #d6e0ed}.ci-search,.ci-entry-form{display:flex;gap:8px;align-items:center;flex-wrap:wrap}.ci-search input{min-width:230px}.ci-entry-form>strong,.ci-entry-form>p{flex-basis:100%}.ci-editor input,.ci-editor select{height:34px;border:1px solid #cfdaea;border-radius:6px;padding:0 9px;background:#fff;color:#233958}.ci-entry-form input[aria-label="예산구분 값"]{min-width:270px}.ci-editor>.analytics-grid{max-height:250px}

/* SC-016: compact report template manager */
.template-columns{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(320px,1fr);gap:20px;align-items:start}
.template-columns .card{min-width:0;padding:22px}.template-notice{padding:10px 14px;border-left:3px solid #c9973c;background:#fff8e9;color:#614a21;font-size:13px}
.template-fields{display:grid;grid-template-columns:1fr 1fr;gap:12px}.template-editor label,.template-fields label{display:flex;flex-direction:column;gap:6px;font-size:12px;color:#53647c;margin-bottom:14px}
.template-editor input,.template-editor select,.template-editor textarea,.template-fields input{min-width:0;width:100%;box-sizing:border-box}
.template-editor .toolbar{margin:12px 0}.template-binding{display:grid;grid-template-columns:minmax(120px,1.3fr) minmax(90px,1fr) 74px 32px;gap:6px;margin:8px 0;align-items:center}.template-binding input,.template-binding select{padding:7px 5px;font-size:12px}.template-binding .btn{padding:5px}.template-blocks .template-binding{grid-template-columns:100px minmax(90px,1fr) 110px;font-size:12px}
.template-advanced{margin:18px 0}.template-advanced textarea{font-family:Consolas,monospace;font-size:12px;margin:10px 0}.template-versions>select{width:100%;margin:12px 0;padding:6px}.template-versions option{padding:8px}.template-active{background:#edf2f9;padding:12px;color:#233c62;font-size:13px}.template-versions .toolbar{margin:12px 0}.template-value{font-size:12px;padding:8px 0;margin:0;border-bottom:1px solid #e6ebf2;overflow-wrap:anywhere}.template-results{max-height:290px;overflow:auto;margin:12px 0}
@media(max-width:1150px){.template-columns{grid-template-columns:1fr}.template-binding{grid-template-columns:minmax(120px,1fr) minmax(80px,1fr) 70px 32px}}
