/* =============================================================
   页面级样式：登录 / 工作台 / SPC / 能耗 / 组织 / 流程 / 报表
   ============================================================= */

/* ---------------- 登录 / 注册 ---------------- */
.auth {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1.08fr .92fr;
    background: #f4f7fb;
}
.auth-visual {
    position: relative;
    background:
        radial-gradient(120% 80% at 0% 0%, rgba(22, 201, 160, .18), transparent 55%),
        radial-gradient(80% 60% at 100% 100%, rgba(47, 107, 255, .18), transparent 60%),
        linear-gradient(160deg, #06101d 0%, #081a2b 48%, #061423 100%);
    color: #fff;
    padding: 42px 52px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
.auth-visual::before {
    content: "";
    position: absolute; inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px);
    background-size: 34px 34px;
    mask-image: radial-gradient(circle at 45% 45%, #000 20%, transparent 80%);
}
.auth-visual::after {
    content: "";
    position: absolute;
    width: 540px; height: 540px;
    border-radius: 50%;
    border: 1px solid rgba(22, 201, 160, .16);
    right: -190px; bottom: -160px;
    box-shadow: 0 0 0 60px rgba(22, 201, 160, .03), 0 0 0 120px rgba(22, 201, 160, .02);
}
.auth-brand { display: flex; align-items: center; gap: 12px; position: relative; z-index: 1; }
.auth-brand .mark {
    width: 44px; height: 44px; border-radius: 13px;
    background: linear-gradient(145deg, #1ad0ad, #0a8f78);
    display: grid; place-items: center;
    box-shadow: 0 10px 26px rgba(15, 168, 137, .4);
}
.auth-brand .mark svg { width: 26px; height: 26px; color: #fff; }
.auth-brand .b-name { font-size: 15px; font-weight: 700; letter-spacing: .5px; }
.auth-brand .b-sub { font-size: 10px; color: #7c9bb2; letter-spacing: .22em; margin-top: 2px; font-family: var(--font-num); }
.auth-hero { margin: auto 0; position: relative; z-index: 1; padding: 30px 0; }
.auth-kicker {
    display: inline-flex; align-items: center; gap: 7px;
    font-size: 10.5px; letter-spacing: .16em; color: #63dbbd;
    border: 1px solid rgba(22, 201, 160, .28);
    background: rgba(22, 201, 160, .08);
    padding: 5px 10px; border-radius: 20px;
    font-family: var(--font-num);
}
.auth-kicker i { width: 5px; height: 5px; border-radius: 50%; background: #2de0b4; animation: pulseDot 2s infinite; }
.auth-hero h1 {
    font-size: 42px;
    line-height: 1.22;
    letter-spacing: -1.2px;
    margin: 22px 0 14px;
    font-weight: 700;
}
.auth-hero h1 em {
    font-style: normal;
    background: linear-gradient(100deg, #7af0d2, #1ad0ad 55%, #5b8bff);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.auth-hero p { font-size: 13px; color: #8ba7bc; line-height: 1.9; max-width: 460px; }
.auth-metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 30px; max-width: 540px; }
.auth-metric {
    border: 1px solid rgba(255, 255, 255, .09);
    background: linear-gradient(145deg, rgba(255, 255, 255, .055), rgba(255, 255, 255, .015));
    border-radius: 12px;
    padding: 13px 14px;
    backdrop-filter: blur(6px);
}
.auth-metric .m-label { font-size: 10px; color: #7d9ab0; letter-spacing: .03em; }
.auth-metric .m-value { font-family: var(--font-num); font-size: 23px; font-weight: 600; margin-top: 5px; letter-spacing: -.5px; }
.auth-metric .m-value small { font-size: 10px; color: #6f8ca2; font-weight: 400; }
.auth-metric .m-bar { height: 3px; border-radius: 3px; background: rgba(255, 255, 255, .09); margin-top: 9px; overflow: hidden; }
.auth-metric .m-bar i { display: block; height: 100%; background: linear-gradient(90deg, #2de0b4, #0f9e86); }
.auth-orbit {
    position: absolute; right: 6%; top: 18%;
    width: 260px; height: 260px;
    opacity: .55;
    pointer-events: none;
}
.auth-orbit .ring { fill: none; stroke: rgba(110, 200, 255, .16); stroke-width: 1; }
.auth-orbit .ring2 { stroke: rgba(22, 201, 160, .28); stroke-dasharray: 4 7; transform-origin: 130px 130px; animation: spin 40s linear infinite; }
.auth-orbit .core { fill: rgba(22, 201, 160, .16); stroke: rgba(45, 224, 180, .5); stroke-width: 1; }
.auth-orbit .node { fill: #2de0b4; }
.auth-foot { position: relative; z-index: 1; font-size: 10.5px; color: #5c768b; display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; }

.auth-panel {
    display: flex; align-items: center; justify-content: center;
    padding: 40px 32px;
    background:
        radial-gradient(70% 50% at 100% 0%, rgba(15, 168, 137, .05), transparent 60%),
        #f7f9fc;
    position: relative;
}
.auth-card { width: 100%; max-width: 376px; animation: fadeUp .4s ease both; }
.auth-card .ac-eyebrow { font-family: var(--font-num); font-size: 10px; letter-spacing: .18em; color: var(--c-faint); }
.auth-card h2 { font-size: 25px; letter-spacing: -.6px; margin: 8px 0 6px; }
.auth-card .ac-sub { font-size: 12px; color: var(--c-muted); margin-bottom: 24px; line-height: 1.6; }
.auth-form .field { margin-bottom: 14px; }
.auth-form .field-label { font-size: 11.5px; }
.auth-input {
    height: 44px; border-radius: 10px;
    display: flex; align-items: center; gap: 9px;
    border: 1px solid #dfe7f0;
    background: #fff;
    padding: 0 12px;
    transition: .15s;
}
.auth-input:focus-within { border-color: #8ad3c1; box-shadow: 0 0 0 3px rgba(15, 168, 137, .1); }
.auth-input > svg { width: 16px; height: 16px; color: #9aabbc; flex: none; }
.auth-input input { flex: 1; border: 0; outline: 0; background: transparent; font-size: 13px; min-width: 0; }
.auth-input .toggle-pwd { color: #a4b3c2; display: grid; place-items: center; }
.auth-input .toggle-pwd:hover { color: var(--c-ink-2); }
.auth-row { display: flex; align-items: center; justify-content: space-between; margin: 2px 0 18px; }
.auth-link { font-size: 11.5px; color: #0b7a63; }
.auth-link:hover { text-decoration: underline; }
.auth-submit { height: 45px; border-radius: 10px; font-size: 13.5px; width: 100%; }
.auth-alt { margin-top: 18px; font-size: 11.5px; color: var(--c-muted); text-align: center; }
.auth-alt a { color: #0b7a63; font-weight: 600; }
.auth-err {
    display: none;
    margin-bottom: 14px;
    padding: 9px 11px;
    border-radius: 9px;
    background: var(--c-red-soft);
    border: 1px solid #f5d5d6;
    color: #b03438;
    font-size: 11.5px;
    line-height: 1.5;
}
.auth-err.show { display: block; animation: shake .3s; }
.auth-tips { margin-top: 22px; padding-top: 16px; border-top: 1px solid var(--c-line); font-size: 10.5px; color: var(--c-faint); line-height: 1.7; display: flex; gap: 6px; }
.auth-tips svg { width: 13px; height: 13px; flex: none; margin-top: 2px; }
.auth-register .form-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
.auth-register .field { margin-bottom: 0; }
.auth-register .auth-input { height: 41px; }
.auth-register .span-2 { grid-column: span 2; }
@keyframes shake { 0%, 100% { transform: none; } 25% { transform: translateX(-4px); } 75% { transform: translateX(4px); } }

@media (max-width: 980px) {
    .auth { grid-template-columns: 1fr; }
    .auth-visual { display: none; }
    .auth-panel { min-height: 100vh; background: #f4f7fb; }
    .auth-card { max-width: 360px; }
}

/* ---------------- 工作台 ---------------- */
.work-hero {
    position: relative;
    border-radius: 16px;
    padding: 20px 24px;
    background:
        radial-gradient(90% 130% at 100% 0%, rgba(22, 201, 160, .22), transparent 58%),
        radial-gradient(60% 120% at 0% 100%, rgba(47, 107, 255, .18), transparent 60%),
        linear-gradient(135deg, #071424, #0c2236 60%, #0a1b2d);
    color: #fff;
    display: flex; align-items: center; gap: 22px; flex-wrap: wrap;
    overflow: hidden;
    margin-bottom: 14px;
}
.work-hero::after {
    content: "";
    position: absolute; inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, .03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .03) 1px, transparent 1px);
    background-size: 28px 28px;
    mask-image: linear-gradient(90deg, #000, transparent 80%);
    pointer-events: none;
}
.wh-main { position: relative; z-index: 1; flex: 1; min-width: 260px; }
.wh-kicker { display: flex; align-items: center; gap: 8px; font-size: 10.5px; color: #7ddcc4; letter-spacing: .1em; font-family: var(--font-num); }
.wh-kicker .dot { background: #2de0b4; animation: pulseDot 2s infinite; }
.wh-title { font-size: 24px; font-weight: 700; letter-spacing: -.5px; margin: 9px 0 6px; }
.wh-title span { color: #7cf0d3; }
.wh-sub { font-size: 11.5px; color: #88a6bc; line-height: 1.6; }
.wh-actions { position: relative; z-index: 1; display: flex; gap: 8px; flex-wrap: wrap; }
.wh-actions .btn {
    background: rgba(255, 255, 255, .07);
    border-color: rgba(255, 255, 255, .13);
    color: #dcf0fa;
}
.wh-actions .btn:hover { background: rgba(255, 255, 255, .14); }
.wh-actions .btn-primary { background: linear-gradient(140deg, #18c7a5, #0b9b82); border-color: transparent; }
.wh-shift {
    position: relative; z-index: 1;
    padding-left: 22px;
    border-left: 1px solid rgba(255, 255, 255, .1);
    font-size: 10.5px; color: #7f9db3;
    line-height: 1.9;
}
.wh-shift b { color: #dff4ff; font-family: var(--font-num); font-size: 12px; font-weight: 600; }

.work-grid { display: grid; grid-template-columns: 1.7fr 1fr; gap: 13px; margin-top: 13px; }
.work-grid.even { grid-template-columns: 1fr 1fr; }
.work-grid.three { grid-template-columns: 1.35fr 1fr .92fr; }
@media (max-width: 1180px) {
    .work-grid, .work-grid.three, .work-grid.even { grid-template-columns: 1fr; }
    .wh-shift { display: none; }
}

.trend-chart-box { position: relative; height: 186px; }
.trend-chart-box.sm { height: 132px; }
.trend-chart-box svg { width: 100%; height: 100%; overflow: visible; }

.device-donut-wrap { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.donut { position: relative; width: 132px; height: 132px; flex: none; }
.donut svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.donut .donut-center { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.donut .dc-value { font-family: var(--font-num); font-size: 26px; font-weight: 600; letter-spacing: -1px; }
.donut .dc-label { font-size: 9.5px; color: var(--c-faint); margin-top: 2px; }
.legend-list { flex: 1; min-width: 130px; display: flex; flex-direction: column; gap: 8px; }
.legend-row { display: flex; align-items: center; gap: 7px; font-size: 11px; color: var(--c-muted); }
.legend-row .lr-bar { width: 26px; height: 4px; border-radius: 4px; }
.legend-row b { margin-left: auto; font-family: var(--font-num); color: var(--c-ink-2); font-weight: 600; }

.todo-list { display: flex; flex-direction: column; }
.todo-item {
    display: flex; gap: 10px; align-items: flex-start;
    padding: 10px 2px;
    border-bottom: 1px dashed var(--c-line);
    cursor: pointer;
}
.todo-item:last-child { border-bottom: 0; }
.todo-item:hover .ti-title { color: #0b7a63; }
.ti-icon {
    width: 30px; height: 30px; border-radius: 8px;
    display: grid; place-items: center;
    background: #f0f5fa; color: #6b859b; flex: none;
}
.ti-icon svg { width: 14px; height: 14px; }
.ti-main { flex: 1; min-width: 0; }
.ti-title { font-size: 12px; font-weight: 600; line-height: 1.4; transition: .14s; }
.ti-meta { font-size: 10px; color: var(--c-faint); margin-top: 3px; display: flex; gap: 9px; flex-wrap: wrap; }
.ti-time { font-size: 10px; color: var(--c-faint); white-space: nowrap; }
.severity-bar { width: 3px; border-radius: 3px; align-self: stretch; flex: none; }
.severity-bar.red { background: #e5484d; }
.severity-bar.amber { background: #f59e0b; }
.severity-bar.gray { background: #cbd5e1; }

.activity-list { display: flex; flex-direction: column; gap: 12px; }
.activity-item { display: flex; gap: 9px; font-size: 11.5px; color: var(--c-muted); line-height: 1.5; }
.activity-item .ai-dot { width: 7px; height: 7px; border-radius: 50%; background: #bfd0df; margin-top: 5px; flex: none; }
.activity-item .ai-dot.brand { background: var(--c-brand); }
.activity-item b { color: var(--c-ink-2); font-weight: 600; }
.activity-item .ai-time { margin-left: auto; font-size: 9.5px; color: var(--c-faint); white-space: nowrap; }

.notice-item { display: flex; gap: 10px; padding: 9px 0; border-bottom: 1px dashed var(--c-line); }
.notice-item:last-child { border-bottom: 0; }
.notice-tag { flex: none; font-size: 9.5px; padding: 2px 6px; border-radius: 5px; background: var(--c-brand-soft); color: #0b7a63; height: 18px; line-height: 14px; }
.notice-title { font-size: 11.5px; line-height: 1.45; }
.notice-time { font-size: 9.5px; color: var(--c-faint); margin-top: 3px; }
.workshop-bars { display: flex; flex-direction: column; gap: 11px; }
.wb-row { display: grid; grid-template-columns: 96px 1fr 46px; align-items: center; gap: 9px; font-size: 11px; }
.wb-name { color: var(--c-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wb-track { height: 6px; background: #eef2f7; border-radius: 6px; overflow: hidden; }
.wb-track i { display: block; height: 100%; border-radius: 6px; background: linear-gradient(90deg, #17c3a1, #0b9b82); }
.wb-val { text-align: right; font-family: var(--font-num); color: var(--c-ink-2); font-weight: 600; }

/* ---------------- SPC ---------------- */
.spc-picker { display: grid; grid-template-columns: repeat(auto-fill, minmax(198px, 1fr)); gap: 8px; margin-bottom: 12px; }
.spc-pick {
    background: #fff; border: 1px solid var(--c-line); border-radius: 11px;
    padding: 11px 12px; cursor: pointer; transition: .16s; position: relative; overflow: hidden;
}
.spc-pick:hover { border-color: #c6e5dc; transform: translateY(-1px); box-shadow: var(--shadow-sm); }
.spc-pick.active { border-color: #7fd2bd; background: linear-gradient(145deg, #f7fdfb, #fff); box-shadow: 0 0 0 3px rgba(15, 168, 137, .08); }
.spc-pick.active::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: linear-gradient(180deg, #2de0b4, #0b9b82); }
.spc-pick .sp-name { font-size: 11.5px; font-weight: 700; line-height: 1.35; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.spc-pick .sp-meta { font-size: 9.5px; color: var(--c-faint); margin-top: 4px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.spc-pick .sp-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 8px; font-size: 9.5px; color: var(--c-muted); }
.spc-pick .sp-foot .badge { height: 18px; font-size: 9px; padding: 0 6px; }
.spc-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 13px; }
.spc-chart-panel { position: relative; }
.spc-chart-wrap { position: relative; height: 360px; padding: 4px 2px 0; }
.spc-chart-wrap svg { width: 100%; height: 100%; }
.spc-stats { display: flex; flex-direction: column; gap: 12px; }
.spc-gauge {
    text-align: center; padding: 16px 10px 13px;
    border-radius: 12px; background: linear-gradient(145deg, #f4fbf9, #eef8f5);
    border: 1px solid #d8efe8;
}
.spc-gauge .sg-label { font-size: 10.5px; color: #4f7e72; }
.spc-gauge .sg-value { font-family: var(--font-num); font-size: 30px; font-weight: 600; color: #0b7a63; letter-spacing: -1px; margin: 5px 0 2px; }
.spc-gauge .sg-note { font-size: 10px; color: #7ba398; }
.spc-rule { font-size: 10.5px; color: var(--c-muted); line-height: 1.7; padding: 8px 0; border-bottom: 1px dashed var(--c-line); display: flex; justify-content: space-between; gap: 10px; }
.spc-rule:last-child { border-bottom: 0; }
.spc-rule b { font-family: var(--font-num); color: var(--c-ink-2); }
@media (max-width: 1100px) { .spc-layout { grid-template-columns: 1fr; } }

/* ---------------- 能耗 ---------------- */
.live-strip {
    display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
    padding: 11px 15px;
    background: linear-gradient(100deg, #0b1e30, #10293d);
    border-radius: 12px;
    color: #b4cede;
    font-size: 11.5px;
    margin-bottom: 13px;
}
.live-strip .ls-badge {
    display: flex; align-items: center; gap: 6px;
    color: #7df0d2; font-weight: 600; font-size: 11px;
    background: rgba(22, 201, 160, .12);
    border: 1px solid rgba(22, 201, 160, .22);
    padding: 4px 9px; border-radius: 20px;
}
.live-strip .ls-badge i { width: 5px; height: 5px; border-radius: 50%; background: #2de0b4; animation: pulseDot 1.8s infinite; }
.live-strip b { color: #e5f5ff; font-family: var(--font-num); font-weight: 600; }
.live-strip .spacer { flex: 1; }
.energy-rank { display: flex; flex-direction: column; gap: 11px; }
.er-row { display: grid; grid-template-columns: 22px 1fr 74px; gap: 9px; align-items: center; font-size: 11px; }
.er-no { width: 20px; height: 20px; border-radius: 6px; display: grid; place-items: center; background: #f2f6fa; color: var(--c-muted); font-family: var(--font-num); font-size: 9.5px; }
.er-row:nth-child(1) .er-no { background: #fdf1dc; color: #a76a00; }
.er-main { min-width: 0; }
.er-name { font-size: 11.5px; color: var(--c-ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin-bottom: 4px; }
.er-track { height: 5px; border-radius: 5px; background: #eff3f7; overflow: hidden; }
.er-track i { display: block; height: 100%; border-radius: 5px; background: linear-gradient(90deg, #6d9cff, #2f6bff); }
.er-row:nth-child(1) .er-track i { background: linear-gradient(90deg, #f7b84b, #e79a10); }
.er-val { text-align: right; font-family: var(--font-num); color: var(--c-ink-2); font-size: 11px; }
.er-val small { display: block; color: var(--c-faint); font-size: 9px; }
.energy-compare-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.ec-card { border: 1px solid var(--c-line); border-radius: 11px; padding: 13px; background: #fff; }
.ec-card.best { background: linear-gradient(145deg, #f2fbf8, #fff); border-color: #d3eee6; }
.ec-card.worst { background: linear-gradient(145deg, #fff7f7, #fff); border-color: #f3dddd; }
.ec-label { font-size: 10px; color: var(--c-faint); display: flex; align-items: center; gap: 5px; }
.ec-name { font-size: 12.5px; font-weight: 700; margin: 6px 0 4px; }
.ec-value { font-family: var(--font-num); font-size: 20px; font-weight: 600; letter-spacing: -.4px; }
.ec-value small { font-size: 9.5px; color: var(--c-muted); font-weight: 400; }

/* ---------------- 组织 / 权限 ---------------- */
.org-layout { display: grid; grid-template-columns: 268px minmax(0, 1fr); gap: 13px; align-items: start; }
.org-tree-panel { position: sticky; top: 0; }
.org-tree-head { padding: 14px 15px 10px; border-bottom: 1px solid var(--c-line-soft); }
.org-tree-body { padding: 8px 9px 12px; max-height: 620px; overflow-y: auto; }
.org-user-head { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-bottom: 1px solid var(--c-line-soft); flex-wrap: wrap; }
.role-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 11px; }
.role-card { border: 1px solid var(--c-line); border-radius: 12px; padding: 15px; background: #fff; position: relative; }
.role-card .rc-top { display: flex; align-items: center; gap: 9px; }
.role-icon { width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; background: var(--c-brand-soft); color: #0b7a63; }
.role-icon svg { width: 16px; height: 16px; }
.role-name { font-size: 12.8px; font-weight: 700; }
.role-code { font-family: var(--font-num); font-size: 9.5px; color: var(--c-faint); margin-top: 2px; }
.role-desc { font-size: 10.5px; color: var(--c-muted); line-height: 1.6; margin: 9px 0; min-height: 32px; }
.role-perms { display: flex; flex-wrap: wrap; gap: 4px; }
.perm-chip { font-size: 9.5px; padding: 2px 6px; border-radius: 4px; background: #f4f7fa; color: #6b7f93; }
.role-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 10px; padding-top: 9px; border-top: 1px dashed var(--c-line); font-size: 10.5px; color: var(--c-faint); }
@media (max-width: 1000px) { .org-layout { grid-template-columns: 1fr; } .org-tree-panel { position: static; } }

/* ---------------- 流程引擎 ---------------- */
.flow-layout { display: grid; grid-template-columns: 336px minmax(0, 1fr); gap: 13px; align-items: start; }
.template-list { display: flex; flex-direction: column; gap: 9px; }
.template-card {
    border: 1px solid var(--c-line); border-radius: 11px; padding: 13px;
    background: #fff; cursor: pointer; transition: .16s;
    position: relative;
}
.template-card:hover { border-color: #c6e5dc; }
.template-card.active { border-color: #8fd7c5; box-shadow: 0 0 0 3px rgba(15, 168, 137, .09); background: #fbfefd; }
.template-card .tc-row { display: flex; align-items: flex-start; gap: 9px; }
.template-card .tc-title { font-size: 12.5px; font-weight: 700; line-height: 1.4; }
.template-card .tc-sub { font-size: 10px; color: var(--c-faint); margin-top: 3px; font-family: var(--font-num); }
.template-card .tc-meta { display: flex; gap: 12px; margin-top: 9px; font-size: 10px; color: var(--c-muted); }
.template-card .tc-meta span { display: flex; align-items: center; gap: 4px; }
.flow-canvas {
    background: #fafcfe;
    border: 1px solid var(--c-line);
    border-radius: 12px;
    padding: 22px 18px;
    min-height: 220px;
    position: relative;
    overflow-x: auto;
    background-image: radial-gradient(#dbe5ef 1px, transparent 1px);
    background-size: 16px 16px;
}
.node-flow { display: flex; align-items: flex-start; gap: 0; min-width: max-content; padding: 8px 4px; }
.node-box {
    width: 176px;
    background: #fff;
    border: 1px solid var(--c-line);
    border-radius: 10px;
    padding: 11px 12px;
    position: relative;
    box-shadow: var(--shadow-xs);
}
.node-box::before {
    content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
    border-radius: 10px 0 0 10px; background: #c7d5e3;
}
.node-box.start::before { background: #2f6bff; }
.node-box.approve::before { background: #16c9a0; }
.node-box.end::before { background: #7358e8; }
.node-box .nb-type { font-size: 9px; color: var(--c-faint); letter-spacing: .06em; }
.node-box .nb-name { font-size: 11.5px; font-weight: 700; margin: 4px 0 5px; }
.node-box .nb-meta { font-size: 9.5px; color: var(--c-muted); display: flex; flex-direction: column; gap: 2px; }
.node-box .nb-seq {
    position: absolute; right: 9px; top: 9px;
    font-family: var(--font-num); font-size: 9px; color: var(--c-faint);
}
.node-arrow { width: 34px; display: flex; align-items: center; justify-content: center; padding-top: 22px; color: #c3d2e1; }
.node-arrow svg { width: 15px; height: 15px; }
.node-editor { border-top: 1px solid var(--c-line-soft); margin-top: 16px; padding-top: 15px; }
.node-edit-row {
    display: grid; grid-template-columns: 28px 1fr 120px 100px 70px 28px;
    gap: 7px; align-items: center; margin-bottom: 8px;
}
.node-seq {
    width: 24px; height: 24px; border-radius: 6px; background: #eef6f3;
    display: grid; place-items: center; font-family: var(--font-num); font-size: 10px; color: #0b7a63;
}
@media (max-width: 1100px) { .flow-layout { grid-template-columns: 1fr; } }

/* ---------------- 字典 ---------------- */
.dict-layout { display: grid; grid-template-columns: 274px minmax(0, 1fr); gap: 13px; align-items: start; }
.dict-list { max-height: 620px; overflow-y: auto; padding: 7px; }
.dict-item {
    display: flex; align-items: center; gap: 9px;
    padding: 9px 10px; border-radius: 8px; cursor: pointer;
    font-size: 12px;
}
.dict-item:hover { background: #f4f8fb; }
.dict-item.active { background: var(--c-brand-soft); color: #0b7a63; font-weight: 600; }
.dict-item .code { margin-left: auto; font-family: var(--font-num); font-size: 9px; color: var(--c-faint); }
.dict-item.active .code { color: #5fae9c; }
.dict-values { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 10px; }
.dict-value-tag {
    display: flex; align-items: center; gap: 6px;
    padding: 5px 9px; border-radius: 7px;
    border: 1px solid var(--c-line); background: #fff;
    font-size: 11px;
}
.dict-value-tag i { width: 7px; height: 7px; border-radius: 2px; }
@media (max-width: 1000px) { .dict-layout { grid-template-columns: 1fr; } }

/* ---------------- 报表 ---------------- */
.report-filter {
    display: flex; align-items: flex-end; gap: 10px; flex-wrap: wrap;
    padding: 14px 16px; background: #fff; border: 1px solid var(--c-line);
    border-radius: 12px; margin-bottom: 13px;
}
.report-filter .field { min-width: 140px; }
.report-filter .field-label { font-size: 10.5px; }
.report-filter .input, .report-filter .select { height: 34px; font-size: 12px; }
.report-chart-duo { display: grid; grid-template-columns: 1.55fr 1fr; gap: 13px; }
@media (max-width: 1100px) { .report-chart-duo { grid-template-columns: 1fr; } }
.report-table-note { font-size: 10.5px; color: var(--c-faint); padding: 0 2px 8px; }

/* ---------------- 二维码 / 详情 meta ---------------- */
.detail-hero-badges { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 9px; position: relative; z-index: 1; }
.detail-hero-badges .badge { background: rgba(255, 255, 255, .09); color: #cfe4f2; border: 1px solid rgba(255, 255, 255, .1); }
.sync-row { display: flex; gap: 6px; flex-wrap: wrap; }
.sync-btn { display: inline-flex; align-items: center; gap: 5px; font-size: 10.5px; padding: 4px 8px; border-radius: 6px; border: 1px solid var(--c-line); background: #fff; color: var(--c-muted); }
.sync-btn:hover { border-color: #c9d8e6; color: var(--c-ink-2); }
.sync-btn.feishu { color: #2f6bff; border-color: #d8e3ff; background: #f7f9ff; }
.sync-btn.dingtalk { color: #1677ff; border-color: #d6e6ff; background: #f6faff; }
.sync-btn.wecom { color: #0b9b82; border-color: #d3efe8; background: #f6fdfb; }
.qr-box { width: 74px; height: 74px; border: 1px solid var(--c-line); border-radius: 8px; padding: 5px; background: #fff; flex: none; }

/* ---------------- 设备状态矩阵 ---------------- */
.status-matrix { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 8px; }
.sm-item {
    border: 1px solid var(--c-line); border-radius: 9px;
    padding: 9px 10px; background: #fff; position: relative;
    font-size: 10.5px;
}
.sm-item .sm-code { font-family: var(--font-num); font-size: 9px; color: var(--c-faint); }
.sm-item .sm-name { font-size: 11px; font-weight: 600; margin: 3px 0 6px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sm-item .sm-status { display: flex; align-items: center; gap: 5px; font-size: 10px; }
.sm-item.online { border-color: #d4eee7; background: linear-gradient(145deg, #f5fdfa, #fff); }
.sm-item.fault { border-color: #f3d5d6; background: linear-gradient(145deg, #fff7f7, #fff); }

/* ---------------- 登录错误小提示 ---------------- */
.kv-inline { display: flex; gap: 18px; flex-wrap: wrap; font-size: 11.5px; color: var(--c-muted); }
.kv-inline b { color: var(--c-ink-2); font-weight: 600; }
.scroll-list { max-height: 420px; overflow-y: auto; }
