@font-face{font-family:"Workbench Sans";src:url("/assets/deng.ttf") format("truetype");font-style:normal;font-weight:400;font-display:swap}
@font-face{font-family:"Workbench Sans";src:url("/assets/deng-bold.ttf") format("truetype");font-style:normal;font-weight:600 700;font-display:swap}
:root{--ui-font:Arial,"Workbench Sans","Microsoft YaHei",sans-serif;--ink:#303642;--muted:#687382;--line:#dce1e8;--sidebar-width:176px}
html,body{font-family:var(--ui-font);font-size:13px;line-height:1.5;font-weight:400;font-synthesis:none;color:var(--ink)}
button,input,select,textarea{font-family:var(--ui-font);font-size:13px;line-height:1.4;font-weight:400}
header{height:54px;padding:0 18px}.brand{font-family:var(--ui-font);font-size:18px}.brandmark{font-size:18px}.brand strong{font-weight:600}
.sidebar{top:54px;padding:16px 10px}.sidebar nav{gap:4px}.sidebar nav button{font-size:13px;min-height:40px;padding:10px 12px;gap:10px}.sidebar nav button.active{font-weight:400}.side-caption{font-size:12px;padding:0 12px 12px}.side-foot{padding:10px 8px 0;font-size:12px}.side-foot .link{font-size:12px;padding-left:0}
.tabbar{height:34px}.tabbar>span#currentTab{padding:6px 20px}.tabbar button{font-size:12px;padding:5px 14px}
main{padding:14px 18px 20px}.pagehead{margin-bottom:12px;gap:12px;align-items:center}h1{font-size:20px;line-height:1.4;font-weight:600;margin:0 0 3px}h2{font-size:14px;font-weight:600}h3{font-size:13px}.sub,.note{font-size:12px}.pagehead>.actions{flex-shrink:0}.pagehead .sub{max-width:75ch}
.panel{padding:12px;margin-bottom:12px}.panelhead{margin-bottom:10px;gap:12px}.note{padding:8px 10px;margin-bottom:10px}.actions{gap:8px}button{padding:5px 11px;min-height:30px;border-radius:3px}button.link{padding:2px 5px;min-height:22px}input,select,textarea{padding:5px 8px;min-height:30px;border-radius:3px}input[type=checkbox]{min-height:auto;width:14px;height:14px;accent-color:#0075df;vertical-align:middle}input[type=month]{width:133px}
.filters{margin:4px 0 10px;gap:10px}.filters label{display:flex;gap:7px;align-items:center}.filters input{width:190px}.top-filters{border-bottom:1px solid var(--line);padding-bottom:10px;margin-bottom:10px}.top-filters select{min-width:155px}.top-filters input{width:215px}
.tablewrap{border:1px solid #d4dbe5;max-height:calc(100vh - 290px);min-height:100px;overflow:auto;background:#fff}
table{font-family:var(--ui-font);font-size:12px;border-collapse:separate;border-spacing:0;width:100%;table-layout:auto}
td,th{font-family:var(--ui-font);font-size:12px;line-height:18px;font-weight:400;padding:4px 8px;height:28px;min-height:28px;border-right:1px solid #dce1e8;border-bottom:1px solid #dce1e8;vertical-align:middle!important;color:#303642}
td:last-child,th:last-child{border-right:0}tbody tr:last-child td{border-bottom:0}
th{background:#f4f6f9;font-weight:400;position:sticky;top:0;z-index:2;height:30px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;text-align:left}
tbody tr:nth-child(even){background:#fff}tbody tr:hover{background:#f2f7ff}.grid{table-layout:fixed;width:max-content;min-width:100%}
.grid td{min-width:0;max-width:none;white-space:nowrap!important;overflow:hidden;text-overflow:ellipsis;word-break:normal;padding:4px 8px;font-size:12px;line-height:18px;height:28px;vertical-align:middle!important;font-weight:400}
.grid td:focus{outline:2px solid #4a97ed;outline-offset:-2px;background:#fff;white-space:nowrap!important}.grid td.active-cell{outline:2px solid #4a97ed;outline-offset:-2px;background:#f0f7ff}
.grid td.num,.num{text-align:right;font-variant-numeric:tabular-nums}.grid td.calculated{color:#2466a8}.grid td.merge-child{background:#fafbfd}.grid .rownum,.rownum{width:38px;min-width:38px!important;text-align:center;color:#8290a0;background:#f6f8fa;position:sticky;left:0;z-index:1}.grid thead .rownum{z-index:4}.grid td.cell-error{color:#ad3e35;background:#fff2ef}
.kpi-wrap{max-height:calc(100vh - 355px);min-height:230px}.kpi-grid{font-size:12px}
.cellbar{display:flex;align-items:center;gap:8px;margin:0 0 8px;font-size:12px}.cellbar>span{min-width:72px;color:#667487}.cellbar input{flex:1;width:0;font-size:12px;min-height:28px}.cellbar button{font-size:12px;min-height:28px}
.finalscore{gap:10px;padding-top:10px;margin-top:0;align-items:center}.finalscore strong{font-size:13px;font-weight:600}.finalscore input{width:92px;font-size:16px;min-height:32px;padding:4px 8px}.finalscore .save-state{margin-left:auto;color:#647180;font-size:12px}
.sheetTabs{gap:18px;margin:-2px 0 10px}.sheetTabs button{padding:7px 1px;font-size:13px;min-height:34px}.sheetTabs button.active{font-weight:400}
.footerline{margin-top:8px;gap:10px;align-items:center;font-size:12px}.template-notes,.original-sheet,.reference-editor{font-size:12px;margin:8px 0}.template-notes summary,.original-sheet summary,.reference-editor summary{cursor:pointer;color:#3472ac;padding:5px 0}.template-notes p{white-space:pre-wrap;margin:5px 0}.reference-editor[open]{padding:8px 10px;background:#f7f9fc;border:1px solid #dce1e8}.reference-editor .formgrid{margin:6px 0 8px}.formgrid{gap:10px;grid-template-columns:repeat(4,minmax(0,1fr));margin-bottom:12px}.formgrid label{font-size:12px;gap:5px}.formgrid input{width:100%}.align-end{display:flex;align-items:flex-end}.link-list{max-height:160px;overflow:auto}.link-list>div{border-top:1px solid var(--line);padding:5px 0}.link-list .link{margin-left:10px}
.manager-grid{min-width:1100px}.manager-grid td{vertical-align:middle!important;text-align:center}.manager-grid td.num{text-align:right}.manager-grid td:first-child{width:160px}.manager-grid th{white-space:nowrap}.selected-row{background:#edf5ff!important}.member-section{margin-top:14px}.member-input{width:160px;min-height:24px;height:24px;border:0;padding:1px 3px;background:transparent;font-size:12px}.member-input:focus{background:#fff}.center{text-align:center}.empty{padding:24px;font-size:12px}
.compact-overview{display:grid;grid-template-columns:repeat(4,1fr);gap:0;padding:12px 8px}.compact-overview>div{display:flex;align-items:center;gap:12px;padding:4px 16px;border-right:1px solid var(--line)}.compact-overview>div:last-child{border:0}.compact-overview b{font-size:24px;font-weight:600;line-height:32px}.compact-overview span{font-size:12px;color:var(--muted)}
.permission-grid{min-width:480px}.permission-grid th:not(:first-child){text-align:center}.permission-grid td{height:32px}.setup-panel{max-width:1000px}.setup-panel h2{margin-bottom:14px}
.login-mode header,.login-mode .sidebar,.login-mode .tabbar{display:none}.login-mode main{margin:0;min-height:100vh;display:flex;align-items:center;justify-content:center;padding:24px}.login-panel{width:360px;background:white;padding:28px;border:1px solid var(--line)}.login-panel>.brandmark{display:inline-block;margin-bottom:14px}.login-panel h1{font-size:21px}.login-panel label{display:flex;flex-direction:column;gap:5px;margin:16px 0 0}.login-panel button{width:100%;margin-top:20px}.login-panel #loginError{color:#b43e33;min-height:18px}
@media(max-width:1000px){.pagehead{align-items:flex-start}.pagehead>.actions{flex-wrap:wrap;justify-content:flex-end}.formgrid{grid-template-columns:repeat(2,minmax(0,1fr))}.compact-overview>div{gap:8px;padding:4px 10px}.compact-overview b{font-size:20px}.compact-overview span{font-size:11px}}
@media(max-width:700px){:root{--sidebar-width:66px}.side-caption,.side-foot{display:none}.sidebar{padding:12px 7px}.sidebar nav button{justify-content:center;padding:10px 8px}.sidebar nav button span{display:none}main{padding:12px 10px}.pagehead{flex-wrap:wrap}.pagehead>.actions{justify-content:flex-start}.filters label{flex-wrap:wrap}.cellbar{flex-wrap:wrap}.cellbar>span{min-width:54px}.cellbar input{min-width:140px}.formgrid{grid-template-columns:1fr}.compact-overview{grid-template-columns:repeat(2,1fr);gap:10px}.compact-overview>div:nth-child(2){border:0}.finalscore{flex-wrap:wrap}.finalscore .sub{width:100%}.tablewrap{max-height:60vh}.kpi-wrap{max-height:55vh}.footerline{flex-wrap:wrap}}

.kpi-wrap:not(.show-meta) .kpi-grid col:nth-child(4),.kpi-wrap:not(.show-meta) .kpi-grid col:nth-child(5),.kpi-wrap:not(.show-meta) .kpi-grid th:nth-child(4),.kpi-wrap:not(.show-meta) .kpi-grid th:nth-child(5),.kpi-wrap:not(.show-meta) .kpi-grid td:nth-child(4),.kpi-wrap:not(.show-meta) .kpi-grid td:nth-child(5){display:none}.kpi-wrap{max-height:calc(100vh - 390px);min-height:220px}.metadata-toggle{font-size:12px;color:#687382;white-space:nowrap}.top-filters .sub{font-size:12px}.rownum{width:32px;min-width:32px!important}

.kpi-grid{width:598px;min-width:100%;table-layout:fixed}.kpi-wrap.show-meta .kpi-grid{width:858px}.kpi-grid td,.kpi-grid th{min-width:0!important}.top-filters .metadata-toggle input[type=checkbox]{width:14px;min-width:14px;height:14px;min-height:0}.metadata-toggle{gap:5px!important}
