*{box-sizing:border-box}
body{margin:0;font:13px Calibri,"Segoe UI",sans-serif;background:#e6e6e6;display:flex;flex-direction:column;height:100vh}
#bar{background:#217346;color:#fff;padding:6px;display:flex;flex-wrap:wrap;gap:6px}
.grp{background:#1a5c38;border-radius:6px;padding:4px 8px;display:flex;align-items:center;gap:5px;flex-wrap:wrap}
.grp b{font-size:11px;opacity:.85}
button{border:0;border-radius:4px;padding:4px 8px;cursor:pointer;background:#fff;color:#111}
button.pri{background:#ffc000;font-weight:700}
button.on{background:#c6efce}
input,select{border:0;border-radius:4px;padding:3px 5px}
input[type=number]{width:62px}
input[type=checkbox]{margin:0 3px 0 0}
label{font-size:12px}
#fx{display:flex;align-items:center;background:#fff;border-bottom:1px solid #bbb;height:24px}
#nm{width:64px;text-align:center;border-right:1px solid #bbb}
.f{padding:0 8px;font-style:italic;color:#217346}
#fv{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#wrap{flex:1;overflow:auto;background:#fff}
table{border-collapse:collapse;table-layout:fixed}
th{background:#f0f0f0;font-weight:400;border:1px solid #d0d0d0;position:sticky;top:0;z-index:2;cursor:pointer;user-select:none}
th i{display:block;font-size:10px;color:#217346;font-style:normal;min-height:12px}
th.rh{left:0;top:auto;width:44px;z-index:1}
th.corner{left:0;z-index:3;width:44px}
td{border:1px solid #e0e0e0;width:140px;height:22px;padding:0 4px;white-space:nowrap;overflow:hidden;outline:0}
td[data-z=sc]{background:#f7f3e3;font-weight:600}
td[data-z=hd]{background:#d9e8dd;font-weight:700}
td.sel{outline:2px solid #217346;outline-offset:-2px;background-color:#e8f2ec}
td[data-s=ok]{background:#c6efce}
td[data-s=bad]{background:#ffc7ce}
#dlg{position:fixed;inset:0;background:#0008;display:flex;align-items:center;justify-content:center;z-index:9}
#dlg[hidden]{display:none}
#dlg>div{background:#fff;padding:12px;border-radius:8px;width:min(680px,94vw)}
textarea{width:100%;height:50vh;font:14px monospace}
