feat(tools): STMATE 계산 사슬 및 제어 옵션 독립 테스트 웹앱 추가 (tools/stmate-test)

This commit is contained in:
2026-11-04 22:08:28 +09:00
parent 9f6b7de26f
commit a56da7bb2b
6 changed files with 2178 additions and 0 deletions
+419
View File
@@ -0,0 +1,419 @@
/* -*- coding: utf-8 -*- */
* {
box-sizing: border-box;
}
body {
margin: 0;
background: #f1f5f9;
color: #0f172a;
font:
14px/1.5 system-ui,
-apple-system,
"Malgun Gothic",
sans-serif;
}
.topbar {
background: #0f172a;
color: #f8fafc;
padding: 24px max(20px, calc((100% - 1440px) / 2));
display: flex;
justify-content: space-between;
align-items: center;
gap: 20px;
border-bottom: 3px solid #0284c7;
}
.badges {
display: flex;
gap: 8px;
flex-wrap: wrap;
margin-bottom: 8px;
}
.badge {
display: inline-block;
padding: 3px 9px;
border-radius: 4px;
font-size: 11px;
font-weight: 700;
background: #1e293b;
color: #cbd5e1;
border: 1px solid #334155;
}
.badge.accent {
background: #0284c7;
color: #ffffff;
border-color: #0369a1;
}
.topbar h1 {
margin: 0 0 6px;
font-size: 22px;
letter-spacing: -0.02em;
}
.topbar p {
margin: 0;
color: #94a3b8;
font-size: 13px;
}
.top-actions {
display: flex;
gap: 8px;
flex-wrap: wrap;
}
.btn {
border: 1px solid transparent;
border-radius: 6px;
padding: 9px 14px;
font: inherit;
font-weight: 700;
cursor: pointer;
white-space: nowrap;
display: inline-flex;
align-items: center;
justify-content: center;
}
.btn.primary {
background: #0284c7;
color: #ffffff;
}
.btn.primary:hover {
background: #0369a1;
}
.btn.secondary {
background: #1e293b;
color: #e2e8f0;
border-color: #475569;
}
.btn.secondary:hover {
background: #334155;
}
.panel-card .btn.secondary {
background: #e2e8f0;
color: #1e293b;
border-color: #cbd5e1;
}
.btn-del {
border: 1px solid #fecaca;
background: #fef2f2;
color: #b91c1c;
border-radius: 5px;
padding: 5px 9px;
font-size: 12px;
font-weight: 600;
cursor: pointer;
}
.btn-del:hover {
background: #fee2e2;
}
.container {
max-width: 1440px;
margin: 0 auto;
padding: 20px;
}
.alert-banner {
background: #fffbeb;
border: 1px solid #fde68a;
color: #92400e;
border-radius: 8px;
padding: 12px 16px;
display: flex;
gap: 10px;
align-items: baseline;
flex-wrap: wrap;
margin-bottom: 16px;
}
.kpi-grid {
display: grid;
grid-template-columns: repeat(4, 1fr);
gap: 12px;
margin-bottom: 18px;
}
.kpi-card {
background: #ffffff;
border: 1px solid #cbd5e1;
border-radius: 8px;
padding: 14px 16px;
box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}
.kpi-label {
display: block;
font-size: 12px;
color: #64748b;
font-weight: 600;
}
.kpi-value {
display: block;
font-size: 20px;
color: #0f172a;
margin: 4px 0;
font-variant-numeric: tabular-nums;
}
.kpi-sub {
display: block;
font-size: 11px;
color: #475569;
}
.tab-nav {
display: flex;
gap: 4px;
border-bottom: 2px solid #cbd5e1;
overflow-x: auto;
margin-bottom: 16px;
}
.tab-nav button {
border: 0;
background: transparent;
color: #475569;
font: inherit;
font-weight: 700;
padding: 12px 16px;
cursor: pointer;
border-bottom: 3px solid transparent;
margin-bottom: -2px;
white-space: nowrap;
}
.tab-nav button:hover {
color: #0f172a;
background: #e2e8f0;
}
.tab-nav button.active {
color: #0284c7;
border-bottom-color: #0284c7;
background: #ffffff;
}
.panel-card {
background: #ffffff;
border: 1px solid #cbd5e1;
border-radius: 8px;
margin-bottom: 18px;
overflow: hidden;
}
.card-header {
padding: 16px 20px;
border-bottom: 1px solid #e2e8f0;
display: flex;
justify-content: space-between;
align-items: center;
gap: 16px;
flex-wrap: wrap;
background: #f8fafc;
}
.card-header h2 {
margin: 0;
font-size: 16px;
color: #0f172a;
}
.card-header p {
margin: 4px 0 0;
font-size: 12.5px;
color: #475569;
}
.control-grid {
padding: 16px 20px;
display: grid;
grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
gap: 14px;
background: #ffffff;
border-bottom: 1px solid #e2e8f0;
}
.ctrl-item {
display: flex;
flex-direction: column;
gap: 5px;
font-size: 12.5px;
font-weight: 600;
color: #334155;
}
.ctrl-item.checkbox-row {
flex-direction: row;
align-items: center;
gap: 8px;
padding-top: 20px;
}
.ctrl-item.checkbox-row input {
width: auto;
}
.sub-toolbar {
padding: 12px 20px;
background: #f0f9ff;
border-bottom: 1px solid #bae6fd;
display: flex;
justify-content: space-between;
align-items: center;
gap: 12px;
flex-wrap: wrap;
font-size: 13px;
color: #0369a1;
}
.table-scroll {
overflow-x: auto;
}
.data-table {
width: 100%;
border-collapse: collapse;
min-width: 920px;
}
.data-table th,
.data-table td {
padding: 8px 10px;
border-bottom: 1px solid #e2e8f0;
text-align: left;
vertical-align: middle;
font-size: 13px;
}
.data-table th {
background: #f1f5f9;
color: #334155;
font-weight: 700;
font-size: 12px;
white-space: nowrap;
}
.data-table td.money-col {
text-align: right;
font-variant-numeric: tabular-nums;
white-space: nowrap;
}
.data-table td.num-col {
width: 105px;
}
.data-table td.center-col {
text-align: center;
white-space: nowrap;
}
.data-table td.highlight-col {
background: #f8fafc;
}
.data-table tr.sub-row {
background: #f8fafc;
}
.data-table tr.total-row {
background: #e0f2fe;
font-weight: 700;
}
.data-table tr.excl-row {
background: #fffbeb;
}
input[type="text"],
input[type="number"],
select {
width: 100%;
padding: 6px 8px;
border: 1px solid #cbd5e1;
border-radius: 5px;
font: inherit;
font-size: 13px;
color: #0f172a;
background: #ffffff;
}
input[type="number"] {
text-align: right;
font-variant-numeric: tabular-nums;
}
input.code-input {
width: 86px;
font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
}
input.short-input {
width: 72px;
}
.sub-hint {
font-size: 11px;
color: #475569;
margin-top: 3px;
}
.tiny-tag {
font-size: 11px;
color: #64748b;
font-weight: 500;
}
.diff-warn {
color: #dc2626;
font-weight: 700;
font-size: 11px;
}
.formula-tag {
display: inline-block;
padding: 2px 6px;
background: #f1f5f9;
border: 1px solid #cbd5e1;
border-radius: 4px;
font-size: 11.5px;
color: #334155;
}
.empty-box {
padding: 24px;
text-align: center;
color: #64748b;
}
.footer-note {
margin-top: 16px;
padding: 12px 4px;
font-size: 12px;
color: #64748b;
text-align: center;
}
@media (max-width: 900px) {
.topbar {
flex-direction: column;
align-items: flex-start;
}
.kpi-grid {
grid-template-columns: repeat(2, 1fr);
}
}