:root {
  --bg: #f4f6fa;
  --panel: #ffffff;
  --line: #e6e9f0;
  --text: #1f2937;
  --muted: #6b7280;
  --primary: #2563eb;
  --primary-soft: #eff4ff;
  --ok: #16a34a;
  --warn: #d97706;
  --bad: #dc2626;
  --el-color-primary: #2563eb;
  --el-font-size-base: 14px;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: var(--bg); color: var(--text);
  font-family: -apple-system, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif; }

.layout { display: flex; height: 100vh; }
.aside { width: 216px; flex: none; background: var(--panel); border-right: 1px solid var(--line);
  display: flex; flex-direction: column; }
.brand { height: 60px; display: flex; align-items: center; gap: 10px; padding: 0 20px;
  border-bottom: 1px solid var(--line); font-weight: 700; font-size: 16px; }
.brand-mark { width: 28px; height: 28px; border-radius: 7px; background: var(--primary); color: #fff;
  display: grid; place-items: center; font-size: 14px; }
.aside .el-menu { border-right: none; flex: 1; padding-top: 8px; }
.aside .el-menu-item { height: 44px; margin: 2px 10px; border-radius: 8px; }
.aside .el-menu-item.is-active { background: var(--primary-soft); color: var(--primary); font-weight: 600; }
.aside-foot { padding: 14px 20px; font-size: 12px; color: var(--muted); border-top: 1px solid var(--line); }

.main { flex: 1; overflow: auto; }
.topbar { height: 60px; background: var(--panel); border-bottom: 1px solid var(--line); display: flex;
  align-items: center; justify-content: space-between; padding: 0 28px; position: sticky; top: 0; z-index: 10; }
.topbar h1 { font-size: 18px; margin: 0; font-weight: 600; }
.page { padding: 22px 28px 40px; max-width: 1360px; }
.topbar-right { display: flex; align-items: center; gap: 16px; }
.user-chip { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; color: var(--text); font-size: 14px; outline: none; }

.login-wrap { min-height: 100vh; display: grid; place-items: center; padding: 16px; }
.login-card { width: 100%; max-width: 380px; background: var(--panel); border: 1px solid var(--line); border-radius: 14px;
  padding: 8px 28px 28px; box-shadow: 0 8px 30px rgba(15, 23, 42, .06); }
.login-brand { border-bottom: none; padding: 0; height: 72px; justify-content: center; }

.card { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 20px 22px; margin-bottom: 18px; }
.card h3 { margin: 0 0 14px; font-size: 15px; font-weight: 600; }
.card .sub { color: var(--muted); font-size: 13px; margin: -8px 0 14px; }

.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 14px; margin-bottom: 18px; }
.kpi { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; }
.kpi .label { color: var(--muted); font-size: 13px; }
.kpi .value { font-size: 24px; font-weight: 700; margin-top: 6px; font-variant-numeric: tabular-nums; }
.kpi .hint { color: var(--muted); font-size: 12px; margin-top: 4px; }
.kpi.pos .value { color: var(--warn); }
.kpi.ok .value { color: var(--ok); }

.steps-card { padding: 22px 26px 14px; }
.steps-card .el-step__title { cursor: pointer; }
.steps-card .el-step.locked .el-step__title { cursor: not-allowed; }
.step-body { min-height: 300px; }
.footer-bar { display: flex; justify-content: space-between; align-items: center; margin-top: 18px; }

.hero { display: flex; justify-content: space-between; align-items: center; background: linear-gradient(120deg, #eff4ff, #ffffff);
  border: 1px solid #dbe5ff; border-radius: 14px; padding: 26px 28px; margin-bottom: 18px; }
.hero h2 { margin: 0 0 6px; font-size: 20px; }
.hero p { margin: 0; color: var(--muted); }

.num { font-variant-numeric: tabular-nums; }
.pos { color: var(--warn); }
.neg { color: var(--primary); }
.muted { color: var(--muted); }
.tag-row { display: flex; gap: 6px; flex-wrap: wrap; }
.cust-card { border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px; margin-bottom: 10px;
  display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.cust-card .name { font-weight: 600; }
.cust-card .effect { color: var(--muted); font-size: 12px; margin-top: 4px; }
.alert-list .el-alert { margin-bottom: 8px; }
.note-cell { white-space: pre-wrap; color: var(--muted); font-size: 12px; line-height: 1.6; }
.el-table { --el-table-header-bg-color: #f8fafc; }
.el-table th.el-table__cell { font-weight: 600; color: #374151; }
.upload-zone .el-upload-dragger { padding: 28px; border-radius: 12px; background: #fafbff; }

a.el-button { text-decoration: none; }
.disp-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; }
.disp-card { border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; cursor: pointer; background: #fff; }
.disp-card:hover { border-color: #b9c8f5; }
.disp-card.on { border-color: var(--primary); background: var(--primary-soft); }
.disp-head { display: flex; justify-content: space-between; align-items: center; font-size: 12px; color: var(--muted); }
.disp-amt { font-size: 18px; font-weight: 700; margin: 6px 0 4px; }
.disp-who { font-size: 12px; color: var(--text); }
.disp-done { font-size: 12px; color: var(--muted); margin-top: 2px; }
