:root{color-scheme:light;--ink:#122033;--muted:#64748b;--line:#afc0d4;--paper:#f4f7fa;--panel:#fff;--header:#172033;--primary:#0f766e;--primary-dark:#0b5e58;--danger:#b91c1c;--success:#21784b;--shadow: none;font-family:"Microsoft YaHei UI","Noto Sans CJK SC",sans-serif}
*{box-sizing:border-box}html,body{min-height:100%}body{margin:0;color:var(--ink);background:var(--paper)}button,input{font:inherit}button{cursor:pointer}button:disabled{cursor:not-allowed;opacity:.6}
.production-shell{width:min(1920px,100%);min-height:100vh;display:grid;grid-template-rows:auto auto minmax(760px,1fr)}
.production-header{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:14px 18px;color:#fff;background:var(--header);border-bottom:4px solid var(--primary)}
.production-header h1{margin:2px 0 4px;font-family:Georgia,"Microsoft YaHei UI",serif;font-size:28px}.production-header p{margin:0;color:#b8c5d6}.production-header .eyebrow{color:#80d7ce;font-size:11px;font-weight:800;letter-spacing:.18em}.header-actions,.panel-heading,.scan-toolbar{display:flex;align-items:center;gap:9px}.header-actions{justify-content:flex-end;flex-wrap:wrap}.version-chip{padding:7px 10px;border:1px solid #4f6077;border-radius:4px;color:#dce8f5;background:#253149;font-weight:800}
.status-bar{display:block;min-height:40px;padding:10px 16px;border-left:5px solid var(--primary);color:#155e59;background:#e6f4f2;font-size:13px}.status-bar.error{border-left-color:var(--danger);color:#78231c;background:#fde8e6}.status-bar.success{border-left-color:var(--success);color:#175637;background:#e5f4eb}
.production-workspace{min-height:760px;padding:14px;display:grid;grid-template-columns:minmax(440px,1.05fr) minmax(620px,1.2fr);gap:12px}.left-stack{min-height:0;display:grid;grid-template-rows:minmax(300px,.9fr) minmax(360px,1.1fr);gap:12px}.panel{min-width:0;border:1px solid var(--line);border-radius:6px;background:var(--panel);box-shadow:var(--shadow)}.fill-panel{min-height:0;padding:12px;display:grid;grid-template-rows:auto minmax(240px,1fr)}
.panel-heading{min-height:48px;justify-content:space-between;margin-bottom:10px}.panel-heading h2{margin:0;font-family:Georgia,"Microsoft YaHei UI",serif;font-size:18px}.panel-heading p{margin:3px 0 0;color:var(--muted);font-size:12px}
.right-workbench{min-height:0;padding:12px;display:grid;grid-template-rows:auto minmax(270px,.95fr) auto minmax(310px,1.05fr)}.table-wrap{min-width:0;min-height:0;overflow:auto;border:1px solid var(--line);background:#fff}table{width:100%;border-collapse:collapse;font-size:13px}th,td{padding:8px 9px;border-bottom:1px solid #e8eef5;text-align:left;vertical-align:top;white-space:nowrap}th{position:sticky;top:0;z-index:1;color:#fff;background:#334155;font-size:12px}tbody tr:nth-child(even){background:#fafcff}tbody tr[data-row-type]:hover{background:#e7f4f2}tbody tr.selected{background:#cfece8}.empty-row td{height:92px;color:var(--muted);text-align:center;vertical-align:middle}
.scan-toolbar{margin:12px 0 10px;align-items:flex-end}.field{display:grid;gap:4px}.field span,.detail-grid span{color:var(--muted);font-size:12px;font-weight:700}.field.grow{flex:1 1 320px}.field.employee{flex:0 1 180px}.input{width:100%;min-height:34px;padding:7px 9px;border:1px solid var(--line);border-radius:4px;color:var(--ink);background:#fff}
.instruction-panel{min-height:0;padding:12px;border:1px solid var(--line);border-radius:4px;background:#f8fafc;display:grid;grid-template-rows:auto minmax(230px,1fr);gap:12px}.detail-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.detail-grid>div{display:grid;gap:4px}.instruction-box{min-height:230px;margin:0;padding:14px;overflow:auto;border:1px solid #cbd5e1;color:#1e293b;background:#fff;font:13px/1.65 Consolas,"Microsoft YaHei UI",monospace;white-space:pre-wrap;word-break:break-word}
@media(max-width:1180px){.production-workspace{grid-template-columns:1fr}.left-stack{grid-template-rows:repeat(2,minmax(360px,1fr))}.right-workbench{min-height:760px}}@media(max-width:760px){.production-header{align-items:flex-start;flex-direction:column}.production-workspace{padding:8px}.scan-toolbar{align-items:stretch;flex-direction:column}.field.employee{width:100%}.detail-grid{grid-template-columns:1fr}}

/* === 桌面版DataGrid对齐 === */
thead tr { background: #f3f7fc; }
th { color: #435166; font-weight: 600; text-align: left; padding: 0 8px; height: 34px; border-bottom: 1px solid #afc0d4; }
td { padding: 0 8px; height: 25px; border-bottom: 1px solid #e8eef5; }
tbody tr:nth-child(even) { background: #fafcff; }
tbody tr:hover { background: #f4f8ff; }
