:root{
  --navy-950:#071d47;--navy-900:#0a2c60;--navy-800:#103a78;--blue-700:#174ea6;--blue-600:#2563eb;--blue-500:#3b82f6;--blue-50:#eff6ff;
  --bg:#f3f5f9;--card:#fff;--text:#1f2937;--text-2:#4b5563;--muted:#8a94a6;--line:#e5e9f2;--green:#16a34a;--amber:#d97706;--red:#dc2626;--purple:#7c3aed;
  --radius:12px;--shadow:0 1px 2px rgba(16,24,40,.05),0 1px 3px rgba(16,24,40,.06);--shadow-lg:0 20px 55px rgba(15,35,80,.18)
}
*{box-sizing:border-box}
html,body{height:100%}
body{margin:0;font-family:"Microsoft YaHei","PingFang SC","Segoe UI",system-ui,sans-serif;color:var(--text);background:var(--bg);font-size:14px;-webkit-font-smoothing:antialiased}
button,input,select,textarea{font-family:inherit;font-size:14px;color:inherit}
button{cursor:pointer;border:0;background:none}
svg{width:18px;height:18px;fill:currentColor;flex:none}
h1,h2,h3,h4,p{margin:0}
.hidden{display:none!important}.muted{color:var(--muted)}
.app-shell{height:100%;display:flex;min-width:1040px}
.sidebar{width:216px;flex:none;background:linear-gradient(180deg,#0b356f 0%,#071d47 100%);color:#fff;display:flex;flex-direction:column;box-shadow:8px 0 24px rgba(7,29,71,.12);z-index:20}
.side-brand{height:92px;display:flex;align-items:center;gap:11px;padding:18px 18px;border-bottom:1px solid rgba(255,255,255,.09)}
.side-logo{width:42px;height:42px;border-radius:12px;background:#fff;display:flex;align-items:center;justify-content:center;flex:none;box-shadow:0 5px 14px rgba(0,0,0,.16)}
.side-logo img{width:32px;height:32px;object-fit:contain}
.side-brand-text{min-width:0}
.side-brand-text strong{display:block;font-size:15px;letter-spacing:.06em}
.side-brand-text span{display:block;margin-top:5px;font-size:9.5px;line-height:1.45;color:rgba(255,255,255,.52);letter-spacing:.03em}
.side-nav{padding:14px 12px;display:flex;flex-direction:column;gap:5px;flex:1}
.nav-item{position:relative;display:flex;align-items:center;gap:11px;min-height:44px;padding:0 13px;border-radius:9px;color:rgba(255,255,255,.67);text-align:left;font-size:13.5px;transition:.16s}
.nav-item svg{width:17px;height:17px;opacity:.8}
.nav-item em{font-style:normal;margin-left:auto;min-width:22px;height:19px;padding:0 6px;border-radius:10px;background:rgba(255,255,255,.1);font-size:10.5px;line-height:19px;text-align:center;color:rgba(255,255,255,.72)}
.nav-item:hover{background:rgba(255,255,255,.07);color:#fff}
.nav-item.active{background:linear-gradient(90deg,rgba(59,130,246,.3),rgba(255,255,255,.08));color:#fff;box-shadow:inset 0 0 0 1px rgba(147,197,253,.15)}
.nav-item.active::before{content:"";position:absolute;left:-12px;top:10px;bottom:10px;width:3px;border-radius:0 4px 4px 0;background:#60a5fa;box-shadow:0 0 12px rgba(96,165,250,.7)}
.side-foot{padding:14px 16px;border-top:1px solid rgba(255,255,255,.09);display:flex;align-items:center;gap:8px}
.side-user{display:flex;align-items:center;gap:9px;min-width:0;flex:1}
.avatar{width:32px;height:32px;border-radius:50%;display:flex;align-items:center;justify-content:center;background:linear-gradient(145deg,#60a5fa,#2563eb);font-weight:700;font-size:13px;flex:none}
.side-user-words strong{display:block;font-size:12.5px}.side-user-words span{display:block;font-size:10.5px;color:rgba(255,255,255,.45);margin-top:2px}
.version{font-size:9.5px;color:rgba(255,255,255,.35)}
.main{flex:1;min-width:0;display:flex;flex-direction:column;height:100%}
.topbar{height:64px;flex:none;background:#fff;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;padding:0 24px;box-shadow:0 1px 3px rgba(16,24,40,.03);z-index:5}
.topbar-left{display:flex;align-items:center;gap:11px}
.top-logo{width:34px;height:34px;border-radius:9px;background:#f0f6ff;border:1px solid #dbe9ff;display:flex;align-items:center;justify-content:center}
.top-logo img{width:24px;height:24px;object-fit:contain}
.top-company strong{display:block;font-size:14px;color:#173a75;letter-spacing:.03em}.top-company span{display:block;margin-top:2px;color:#8391a8;font-size:10.5px;letter-spacing:.05em}
.topbar-right{display:flex;align-items:center;gap:20px}
.plant-switch{display:flex;padding:3px;background:#f0f4fa;border:1px solid #e0e7f1;border-radius:9px}
.plant-switch button{height:30px;padding:0 14px;border-radius:7px;font-size:12.5px;color:#6b7789;font-weight:600;transition:.16s}
.plant-switch button:hover{color:#2563eb}.plant-switch button.active{background:#fff;color:#1d4ed8;box-shadow:0 1px 4px rgba(30,64,175,.14)}
.top-clock{font-size:12.5px;color:#7b8798;font-variant-numeric:tabular-nums;min-width:145px;text-align:right}
.content{flex:1;overflow:auto;padding:22px 24px 40px}
.page{display:none;animation:fadeUp .25s ease both}.page.active{display:block}
@keyframes fadeUp{from{opacity:0;transform:translateY(5px)}to{opacity:1;transform:none}}
.page-head{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;margin-bottom:18px}
.page-head h2{font-size:21px;line-height:1.3;letter-spacing:.03em;color:#12213d}
.page-head p{margin-top:6px;color:#8a94a6;font-size:12.5px;line-height:1.6}
.page-actions{display:flex;align-items:center;gap:9px;flex-wrap:wrap}
.btn{display:inline-flex;align-items:center;justify-content:center;gap:7px;height:38px;padding:0 16px;border-radius:9px;font-weight:600;font-size:13.5px;border:1px solid transparent;transition:.16s;white-space:nowrap}
.btn svg{width:16px;height:16px}.btn-primary{background:linear-gradient(180deg,#2f6ff0,#1d5ce0);color:#fff;box-shadow:0 4px 12px rgba(37,99,235,.25)}.btn-primary:hover{filter:brightness(1.05);transform:translateY(-1px)}
.btn-ghost{background:#fff;border-color:#d8e0ee;color:#334155}.btn-ghost:hover{border-color:#9db8ea;color:#2563eb;background:#f8fbff}.btn-block{width:100%;height:46px;font-size:14.5px}.btn:disabled{opacity:.55;cursor:not-allowed;transform:none}
.text-link{color:#1d4ed8;font-size:12.5px;font-weight:600}.text-link:hover{text-decoration:underline}
.source-chip{display:inline-flex;align-items:center;gap:7px;height:30px;padding:0 11px;border-radius:20px;background:#edf7f1;color:#15803d;font-size:11.5px;font-weight:600;border:1px solid #d4efdf}.source-chip i{width:6px;height:6px;border-radius:50%;background:#22c55e;box-shadow:0 0 0 4px rgba(34,197,94,.12)}
.stat-row{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin-bottom:16px}.stat-row.four{grid-template-columns:repeat(4,minmax(0,1fr))}
.stat-card{display:flex;align-items:center;gap:13px;background:#fff;border:1px solid var(--line);border-radius:var(--radius);padding:16px 17px;box-shadow:var(--shadow);min-width:0}
.stat-icon{width:40px;height:40px;border-radius:11px;display:flex;align-items:center;justify-content:center;flex:none}.stat-icon svg{width:20px;height:20px}.stat-icon.blue{background:#e8f0ff;color:#2563eb}.stat-icon.teal{background:#e3f7f4;color:#0d9488}.stat-icon.amber{background:#fdf1dc;color:#d97706}.stat-icon.purple{background:#f1e9fe;color:#7c3aed}
.stat-card>div:last-child{min-width:0}.stat-card span{display:block;color:#8a94a6;font-size:11.5px}.stat-card strong{display:inline-block;font-size:23px;line-height:1.3;margin-top:3px;color:#16233f;font-variant-numeric:tabular-nums}.stat-card em{font-style:normal;margin-left:4px;font-size:11px;color:#98a2b3}.stat-card strong.date-value{font-size:15px;line-height:1.6;white-space:nowrap}
.card{background:#fff;border:1px solid var(--line);border-radius:var(--radius);box-shadow:var(--shadow);margin-bottom:16px;overflow:hidden}
.card-head{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:15px 19px;border-bottom:1px solid #eef1f7}.card-head h3{font-size:14.5px;color:#1b2944}.card-head>span{font-size:11.5px;color:#98a2b3}.card-body{padding:18px 20px}
.overview-grid{display:grid;grid-template-columns:1.1fr .9fr;gap:16px;margin-bottom:16px}
.plant-overview{display:grid;grid-template-columns:1fr 1fr;gap:14px}.plant-box{border:1px solid #e5eaf3;border-radius:11px;padding:16px;background:linear-gradient(155deg,#f8fbff,#fff)}.plant-box .plant-label{display:flex;align-items:center;justify-content:space-between;color:#64748b;font-size:12.5px}.plant-box .plant-label span:last-child{font-size:11px;color:#94a3b8}.plant-box strong{display:inline-block;margin-top:12px;font-size:30px;color:#173a75}.plant-box em{font-style:normal;color:#94a3b8;font-size:11px;margin-left:4px}.plant-box .bar{height:5px;background:#e9eef7;border-radius:5px;margin-top:12px;overflow:hidden}.plant-box .bar i{display:block;height:100%;border-radius:5px;background:linear-gradient(90deg,#60a5fa,#2563eb)}.plant-box.gaonan .bar i{background:linear-gradient(90deg,#2dd4bf,#0d9488)}
.dist-list{display:flex;flex-direction:column;gap:11px}.dist-item{display:grid;grid-template-columns:100px 1fr 34px;align-items:center;gap:10px;font-size:12px;color:#5b677c}.dist-item .bar{height:6px;border-radius:5px;background:#edf1f7;overflow:hidden}.dist-item .bar i{display:block;height:100%;border-radius:5px;background:linear-gradient(90deg,#93c5fd,#2563eb)}.dist-item strong{color:#334155;text-align:right;font-variant-numeric:tabular-nums}
.compact-table{min-width:820px}.table-wrap{overflow:auto}.table{width:100%;border-collapse:collapse;font-size:13px;min-width:760px}.table thead th{position:sticky;top:0;background:#f7f9fc;color:#6b7789;font-weight:600;font-size:11.5px;text-align:left;padding:11px 13px;border-bottom:1px solid #e8edf5;white-space:nowrap;z-index:2}.table tbody td{padding:12px 13px;border-bottom:1px solid #f0f3f8;color:#334155;vertical-align:middle}.table tbody tr:last-child td{border-bottom:0}.table tbody tr:hover{background:#f8fbff}.empty{padding:38px 20px;text-align:center;color:#a3adbd;font-size:13px}.badge{display:inline-block;padding:3px 8px;border-radius:20px;font-size:11px;line-height:17px;font-weight:600;white-space:nowrap;background:#eef3fb;color:#4b5b73}.badge.A{background:#e7f8ee;color:#15803d}.badge.plant-pinghe{background:#e6efff;color:#1d4ed8}.badge.plant-gaonan{background:#e3f7f4;color:#0f766e}.badge.on{background:#e7f8ee;color:#15803d}.badge.off{background:#f1f3f7;color:#6b7280}
.archive-card{overflow:hidden}.archive-table-wrap{max-height:calc(100vh - 260px);min-height:280px}.archive-table{min-width:1560px;table-layout:fixed}.archive-table th,.archive-table td{white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.archive-table .name-col{width:260px}.archive-table th:nth-child(3){width:170px}.archive-table th:nth-child(4){width:260px}.archive-table th:nth-child(7){width:210px}.archive-table th:nth-child(11){width:220px}.archive-table .sticky-index{position:sticky;left:0;z-index:3;background:#f7f9fc;width:52px}.archive-table td.sticky-index{background:#fff;z-index:1}.archive-table tbody tr:hover td.sticky-index{background:#f8fbff}
.link-name{display:block;max-width:100%;overflow:hidden;text-overflow:ellipsis;text-align:left;color:#1d4ed8;font-weight:600;font-size:13px;white-space:nowrap}.link-name:hover{text-decoration:underline;color:#1e40af}
.toolbar-filters{display:flex;align-items:center;gap:9px;flex-wrap:wrap}.card-toolbar{display:flex;align-items:center;gap:10px;padding:14px 18px;border-bottom:1px solid #eef1f7;flex-wrap:wrap}.card-toolbar.spread{justify-content:space-between}.toolbar-count{color:#98a2b3;font-size:12px}.search-box{position:relative;width:310px}.search-box svg{position:absolute;left:11px;top:50%;transform:translateY(-50%);width:15px;height:15px;color:#9aa8bf}.search-box input{width:100%;height:36px;border:1px solid #dbe3ef;border-radius:8px;padding:0 12px 0 34px;background:#f9fbfe;outline:none;transition:.16s}.search-box input:focus{border-color:#7ea6ef;background:#fff;box-shadow:0 0 0 3px rgba(37,99,235,.1)}.select,.input-inline{height:36px;border:1px solid #dbe3ef;border-radius:8px;background:#f9fbfe;padding:0 10px;outline:none;color:#334155;transition:.16s;min-width:128px}.select:focus{border-color:#7ea6ef;background:#fff;box-shadow:0 0 0 3px rgba(37,99,235,.1)}
.table-footer{display:flex;align-items:center;justify-content:space-between;gap:15px;padding:12px 18px;background:#fafbfd;border-top:1px solid #eef1f7;color:#8a94a6;font-size:12px}.pager{display:flex;align-items:center;gap:5px}.pager button,.pager span button{min-width:29px;height:29px;padding:0 7px;border-radius:6px;color:#64748b;background:#fff;border:1px solid #e0e6f0;font-size:12px}.pager button:hover:not(:disabled),.pager span button:hover{color:#2563eb;border-color:#a9c4f5}.pager button:disabled{opacity:.4;cursor:not-allowed}.pager span{display:flex;gap:4px}.pager span button.active{background:#2563eb;border-color:#2563eb;color:#fff}
.drawer-mask{position:fixed;inset:0;background:rgba(8,22,48,.38);opacity:0;visibility:hidden;transition:.25s;z-index:40}.drawer-mask.show{opacity:1;visibility:visible}.detail-drawer{position:fixed;right:0;top:0;bottom:0;width:min(790px,92vw);background:#fff;z-index:41;box-shadow:-18px 0 55px rgba(7,29,71,.22);transform:translateX(102%);transition:transform .28s cubic-bezier(.22,.8,.3,1);display:flex;flex-direction:column}.detail-drawer.open{transform:none}.drawer-head{padding:22px 24px 17px;border-bottom:1px solid #eef1f7;display:flex;align-items:flex-start;justify-content:space-between;gap:15px;background:linear-gradient(180deg,#f8fbff,#fff)}.drawer-eyebrow{font-size:10.5px;color:#2563eb;font-weight:700;letter-spacing:.12em;margin-bottom:6px}.drawer-head h2{font-size:20px;color:#12213d;line-height:1.4}.drawer-badges{display:flex;gap:5px;flex-wrap:wrap;margin-top:9px}.drawer-close{width:34px;height:34px;border-radius:8px;font-size:25px;line-height:1;color:#7b8798;flex:none}.drawer-close:hover{background:#eef3fb;color:#1f2937}.drawer-body{flex:1;overflow:auto;padding:20px 24px 34px;background:#fbfcfe}
.detail-hero{display:flex;gap:16px;align-items:center;padding:16px;border:1px solid #e5ebf5;border-radius:12px;background:#fff;margin-bottom:16px}.detail-image{width:92px;height:72px;border-radius:9px;background:#f3f6fb;display:flex;align-items:center;justify-content:center;color:#9aa8bf;font-size:11px;overflow:hidden}.detail-image img{width:100%;height:100%;object-fit:cover}.detail-hero-main strong{display:block;color:#16233f;font-size:16px}.detail-hero-main span{display:block;color:#8a94a6;font-size:12px;margin-top:5px}.detail-section{background:#fff;border:1px solid #e5ebf5;border-radius:12px;margin-bottom:14px;overflow:hidden}.detail-section-head{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:13px 16px;border-bottom:1px solid #eef1f7}.detail-section-head h3{font-size:13.5px;color:#1b2944}.detail-section-head span{font-size:11px;color:#98a2b3}.detail-grid{display:grid;grid-template-columns:1fr 1fr;gap:0 24px;padding:4px 16px 10px}.detail-field{display:flex;justify-content:space-between;gap:16px;padding:9px 0;border-bottom:1px dashed #eef1f7;font-size:12.5px}.detail-field span{color:#8a94a6;flex:none}.detail-field strong{font-weight:600;color:#334155;text-align:right;word-break:break-all}.detail-field.full{grid-column:1/-1}.detail-table{width:100%;border-collapse:collapse;font-size:12px}.detail-table th{background:#f7f9fc;color:#6b7789;text-align:left;padding:9px 11px;border-bottom:1px solid #e8edf5;white-space:nowrap}.detail-table td{padding:9px 11px;border-bottom:1px solid #f0f3f8;color:#475569;vertical-align:top}.detail-tabs{display:flex;gap:4px;padding:4px;background:#f0f4fa;border-radius:9px;margin-bottom:14px}.detail-tabs button{flex:1;height:34px;border-radius:7px;font-size:12px;color:#64748b;font-weight:600}.detail-tabs button.active{background:#fff;color:#1d4ed8;box-shadow:0 1px 4px rgba(30,64,175,.12)}.detail-pane{display:none}.detail-pane.active{display:block}.empty-mini{padding:24px 15px;text-align:center;color:#a3adbd;font-size:12px}
.sync-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px}.connection-card .card-body,.sync-start-card .card-body{padding:20px}.status-pill{display:inline-flex;align-items:center;gap:5px;padding:3px 9px;border-radius:20px;font-size:11px;font-weight:600;background:#f1f3f7;color:#6b7280}.status-pill.ok{background:#e7f8ee;color:#15803d}.status-pill.warn{background:#fdf3df;color:#b45309}.status-pill.err{background:#fee2e2;color:#b91c1c}.conn-row{display:flex;align-items:center;gap:13px;padding-bottom:16px;border-bottom:1px solid #eef1f7}.conn-icon{width:44px;height:44px;border-radius:12px;background:#e8f0ff;color:#2563eb;display:flex;align-items:center;justify-content:center;flex:none}.conn-icon svg{width:22px;height:22px}.conn-main strong{display:block;color:#1b2944;font-size:14px}.conn-main span{display:block;margin-top:5px;color:#8a94a6;font-size:11.5px;line-height:1.6}.sync-actions{display:flex;gap:8px;margin-top:16px}.readonly-note{display:flex;gap:10px;margin-top:16px;padding:11px 12px;border-radius:9px;background:#f0f9ff;border:1px solid #cfe8ff;color:#47718d;font-size:11.5px;line-height:1.6}.readonly-note strong{color:#1d4ed8;white-space:nowrap}.plant-counts{display:grid;grid-template-columns:1fr 1fr 1fr;gap:8px;margin-bottom:16px}.plant-counts>div{padding:12px;border-radius:9px;background:#f8fafd;border:1px solid #e9eef6}.plant-counts span{display:block;color:#8a94a6;font-size:11px}.plant-counts strong{display:block;margin-top:5px;font-size:22px;color:#173a75}.plant-counts .total{background:#eff6ff;border-color:#d8e7ff}.plant-counts .total strong{color:#1d4ed8}.sync-main-btn{margin-bottom:16px}.sync-progress{padding:12px 13px;border-radius:9px;background:#f8fafd;border:1px solid #e9eef6}.progress-head{display:flex;align-items:center;justify-content:space-between;gap:10px;font-size:11.5px;color:#64748b}.progress-head strong{color:#1d4ed8;font-size:12px}.progress-bar{height:7px;background:#e8edf5;border-radius:6px;overflow:hidden;margin:9px 0 7px}.progress-bar i{display:block;height:100%;width:0;background:linear-gradient(90deg,#60a5fa,#2563eb);border-radius:6px;transition:width .25s}.progress-meta{display:flex;justify-content:space-between;font-size:10.5px;color:#98a2b3}.sync-log{max-height:310px;overflow:auto;padding:12px 18px;background:#0b1e3c;color:#c9d8ee;font-family:Consolas,"Microsoft YaHei",monospace;font-size:11.5px;line-height:1.75}.log-line{padding:2px 0;border-bottom:1px solid rgba(255,255,255,.04);word-break:break-all}.log-line.error{color:#fca5a5}.log-line .log-time{color:#7891b6;margin-right:8px}
.export-grid{display:grid;grid-template-columns:1fr .85fr;gap:16px}.export-plant-options{display:grid;grid-template-columns:1fr 1fr 1fr;gap:9px;margin-bottom:16px}.check-card{display:flex;align-items:center;gap:9px;padding:12px;border:1px solid #e2e8f2;border-radius:9px;background:#fbfcfe;cursor:pointer;transition:.15s}.check-card:hover{border-color:#a9c4f5;background:#f8fbff}.check-card input{accent-color:#2563eb;width:15px;height:15px;flex:none}.check-card strong{display:block;font-size:12.5px;color:#334155}.check-card em{display:block;font-style:normal;margin-top:2px;font-size:10.5px;color:#98a2b3}.export-sheets{display:flex;flex-wrap:wrap;gap:6px;margin-bottom:18px}.export-sheets span{padding:4px 9px;border-radius:6px;background:#eef3fb;color:#4b5b73;font-size:11px}.export-stats{display:grid;grid-template-columns:1fr 1fr;gap:10px}.export-stats>div{padding:12px;border-radius:9px;background:#f8fafd;border:1px solid #e9eef6}.export-stats>div:first-child{grid-column:1/-1;background:#eff6ff;border-color:#d8e7ff}.export-stats span{display:block;color:#8a94a6;font-size:11px}.export-stats strong{display:block;margin-top:4px;font-size:22px;color:#173a75}.export-stats>div:first-child strong{color:#1d4ed8}.muted-note{margin-top:14px;color:#8a94a6;font-size:11.5px;line-height:1.7}
.help-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px}.step-card{display:flex;gap:14px;align-items:flex-start;padding:20px}.step-no{width:32px;height:32px;border-radius:9px;background:#e8f0ff;color:#1d4ed8;display:flex;align-items:center;justify-content:center;font-weight:800;flex:none}.step-card h3{font-size:14px;color:#1b2944;margin-bottom:6px}.step-card p{font-size:12px;color:#8a94a6;line-height:1.75}.help-note .card-body{padding-top:8px}.rule-list{display:flex;flex-direction:column}.rule-list>div{display:grid;grid-template-columns:120px 1fr;gap:14px;padding:11px 0;border-bottom:1px dashed #eef1f7;font-size:12.5px;line-height:1.65}.rule-list>div:last-child{border-bottom:0}.rule-list strong{color:#1b2944}.rule-list span{color:#64748b}
.toast{position:fixed;left:50%;bottom:28px;transform:translate(-50%,20px);min-width:260px;max-width:660px;padding:11px 16px;border-radius:9px;background:rgba(13,42,94,.94);color:#fff;font-size:12.5px;box-shadow:0 12px 30px rgba(7,29,71,.22);opacity:0;visibility:hidden;transition:.22s;z-index:60;text-align:center}.toast.show{opacity:1;visibility:visible;transform:translate(-50%,0)}.toast.error{background:#9f1d1d}
@media(max-width:1280px){.stat-row.four{grid-template-columns:repeat(2,minmax(0,1fr))}.overview-grid,.sync-grid,.export-grid{grid-template-columns:1fr}.archive-table-wrap{max-height:none}}
@media(max-width:1100px){.sidebar{width:190px}.side-brand-text span{display:none}.content{padding:18px}.top-clock{display:none}.help-grid{grid-template-columns:1fr}}

/* ============ 工单详情 ============ */
.order-detail-table td:last-child{white-space:nowrap}
.order-toggle{color:#1d4ed8;font-size:12px;font-weight:600;padding:3px 7px;border-radius:6px;background:#eef4ff}
.order-toggle:hover{background:#dfeaff;color:#1e40af}
.order-detail-row.hidden{display:none}
.order-detail-row>td{padding:0!important;background:#f8fbff!important;border-bottom:1px solid #dce8f8!important}
.workorder-detail{padding:15px 16px 17px;border-left:3px solid #60a5fa}
.wo-summary{display:grid;grid-template-columns:1fr 1fr;gap:0 24px;background:#fff;border:1px solid #e4ebf5;border-radius:9px;padding:6px 13px}
.wo-summary-item{display:flex;justify-content:space-between;gap:14px;padding:8px 0;border-bottom:1px dashed #edf1f6;font-size:12px}
.wo-summary-item span{color:#8a94a6;flex:none}.wo-summary-item strong{font-weight:600;color:#334155;text-align:right;word-break:break-all;white-space:pre-wrap}
.wo-flow-title{margin:16px 0 9px;padding-left:8px;border-left:3px solid #2563eb;font-size:12.5px;font-weight:700;color:#1b2944}
.wo-flow{display:flex;flex-direction:column;gap:9px}
.wo-node{background:#fff;border:1px solid #e4ebf5;border-radius:9px;overflow:hidden}
.wo-node-head{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:9px 12px;background:#f5f9ff;border-bottom:1px solid #e8eef8}
.wo-node-head strong{font-size:12.5px;color:#1d4ed8}.wo-node-head span{font-size:10.5px;color:#8a94a6}
.wo-node-grid{display:grid;grid-template-columns:1fr 1fr;gap:0 20px;padding:3px 12px 9px}
.wo-node-field{display:flex;justify-content:space-between;gap:14px;padding:7px 0;border-bottom:1px dashed #eef1f7;font-size:11.5px}
.wo-node-field span{color:#8a94a6;flex:none}.wo-node-field strong{font-weight:600;color:#475569;text-align:right;word-break:break-all;white-space:pre-wrap}
.wo-node .empty-mini{padding:15px}
@media(max-width:760px){.wo-summary,.wo-node-grid{grid-template-columns:1fr}}
.wo-node-field{align-items:flex-start}
.wo-node-value{flex:1;min-width:0;text-align:right;color:#475569;font-size:11.5px;line-height:1.7;word-break:break-word}
.wo-node-value em{font-style:normal;color:#8a94a6;margin-left:3px}
.wo-empty-value{color:#a3adbd}
.wo-json-text{white-space:pre-wrap;word-break:break-word;max-height:260px;overflow:auto;text-align:left}
.wo-rich-list{margin:0;padding-left:18px;text-align:left;max-height:320px;overflow:auto}
.wo-rich-list li{padding:5px 0;border-bottom:1px dashed #eef1f7}
.wo-rich-list li:last-child{border-bottom:0}
.wo-rich-list li strong{display:block;color:#334155;font-size:11.5px}
.wo-rich-list li em{display:block;margin-top:2px;color:#8a94a6;font-size:10.5px}
.wo-rich-list li p{margin-top:3px;color:#7b8798;font-size:10.5px;line-height:1.6}
.wo-rich-list.plain{list-style:none;padding-left:0}
.wo-rich-list.plain li{display:flex;justify-content:space-between;gap:12px}
.wo-rich-list.plain li span{color:#8a94a6;flex:none}.wo-rich-list.plain li strong{text-align:right;font-weight:600}
.wo-file-list{display:flex;flex-direction:column;gap:3px;text-align:left;max-height:200px;overflow:auto}
.wo-file-list a{color:#1d4ed8;font-size:11px;text-decoration:none;word-break:break-all}.wo-file-list a:hover{text-decoration:underline}

/* ============ 二维码标签 ============ */
.qr-tool-card{margin-bottom:16px}
.qr-address{display:flex;align-items:center;gap:9px;flex-wrap:wrap;padding:11px 18px;border-top:1px solid #eef1f7;background:#f8fbff;font-size:11.5px;color:#6b7789}
.qr-address code{padding:4px 8px;border-radius:6px;background:#fff;border:1px solid #dbe5f3;color:#1d4ed8;font-family:Consolas,monospace;font-size:11px;word-break:break-all}
.qr-address button{color:#1d4ed8;font-size:11.5px;font-weight:600;padding:3px 7px;border-radius:6px}
.qr-address button:hover{background:#e8f0ff}
.qr-address em{margin-left:auto;font-style:normal;color:#98a2b3}
.qr-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:13px}
.qr-card{background:#fff;border:1px solid var(--line);border-radius:12px;box-shadow:var(--shadow);padding:14px;text-align:center;min-width:0}
.qr-card img{display:block;width:150px;height:150px;object-fit:contain;margin:0 auto 9px}
.qr-card .qr-name{font-size:12.5px;font-weight:700;color:#1b2944;line-height:1.5;min-height:38px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.qr-card .qr-code{font-size:10.5px;color:#1d4ed8;margin-top:4px;word-break:break-all}
.qr-card .qr-meta{display:flex;justify-content:center;gap:5px;margin-top:7px}
.qr-card .qr-print{margin-top:9px;width:100%;height:30px;border-radius:7px;background:#eef4ff;color:#1d4ed8;font-size:11.5px;font-weight:600}
.qr-card .qr-print:hover{background:#dfeaff}
.print-sheet{display:none}
@media(max-width:1280px){.qr-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:900px){.qr-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media print{
  @page{size:A4;margin:8mm}
  body{background:#fff!important}
  .app-shell,.toast,.drawer-mask,.detail-drawer{display:none!important}
  .print-sheet{display:grid!important;grid-template-columns:repeat(3,1fr);gap:4mm}
  .print-label{height:58mm;border:1px solid #555;border-radius:2mm;padding:3mm;text-align:center;display:flex;flex-direction:column;align-items:center;justify-content:space-between;break-inside:avoid;page-break-inside:avoid;overflow:hidden}
  .print-label img{width:35mm;height:35mm;object-fit:contain}
  .print-label .p-name{font-size:9pt;font-weight:700;line-height:1.3;max-height:9mm;overflow:hidden}
  .print-label .p-code{font-size:7pt;color:#333;word-break:break-all}
  .print-label .p-plant{font-size:7pt;color:#666}
}

/* ============ 一键更新 ============ */
.oneclick-card{max-width:900px}
.oneclick-card .card-body{padding:22px 24px 20px}
.oneclick-actions{display:flex;gap:9px;align-items:center;flex-wrap:wrap;margin:18px 0 16px}
.oneclick-main-btn{height:48px;min-width:260px;font-size:15px;flex:1;max-width:420px}
.oneclick-card .readonly-note{margin-top:16px}
