/* ============ 工序中心：工艺路线 / 工序编辑器 / 出货检测 ============ */
.pr-layout { display: grid; grid-template-columns: 290px minmax(0, 1fr); gap: 16px; align-items: start; }
.pr-list { max-height: calc(100vh - 230px); overflow-y: auto; margin: 0 -6px; }
.pr-item { padding: 10px 12px; border-radius: 6px; cursor: pointer; border: 1px solid transparent; margin: 0 6px 6px; }
.pr-item:hover { background: #F7F9FB; }
.pr-item.active { background: var(--c-primary-light); border-color: #A7F3D0; }
.pr-item .t1 { font-weight: 600; font-size: 13px; display: flex; align-items: center; gap: 6px; }
.pr-item .t1 span:first-child { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pr-item .t2 { font-size: 12px; color: var(--c-text2); margin-top: 4px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pr-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; }
.pr-head .grow { flex: 1; }
.pe-note { background: #FFFBEB; border: 1px solid #FDE68A; color: #92400E; font-size: 12px; border-radius: 6px; padding: 8px 12px; margin-bottom: 10px; line-height: 1.7; }
.pe-ring { background: #FAFBFC; border: 1px solid var(--c-border); border-radius: 8px; padding: 10px 12px; margin-bottom: 12px; overflow-x: auto; }
.pe-tbl td { white-space: nowrap; }
.pe-tbl tr.hi td { background: #EFF6FF; }
.pe-tbl tr.locked td { background: #FAFAFA; }
.pe-tbl .link-btn + .link-btn { margin-left: 8px; }
.pe-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 6px; }
.pr-pct { font-size: 12px; color: var(--c-text2); }
.pr-pct b { font-size: 18px; color: var(--c-primary-dark); margin: 0 2px; }
.wo-ring { padding: 4px 0 2px; overflow-x: auto; }

/* 出货检测录入 */
.si-tbl { width: 100%; border-collapse: collapse; font-size: 12px; }
.si-tbl th, .si-tbl td { border: 1px solid var(--c-border); padding: 4px; text-align: center; }
.si-tbl th { background: #F7F9FB; color: var(--c-text2); }
.si-tbl input { width: 100%; min-width: 54px; height: 26px; border: 1px solid #DCDFE6; border-radius: 3px; text-align: center; font-size: 12px; outline: none; }
.si-tbl input:focus { border-color: var(--c-primary); }
.si-tbl input.ng { border-color: var(--c-red); background: #FEF2F2; color: var(--c-red); font-weight: 600; }
.si-tbl input.ok { border-color: #A7F3D0; background: #F0FDF4; }
.si-tbl .rg { font-size: 11px; color: #9CA3AF; }
.si-row { display: flex; gap: 22px; align-items: center; flex-wrap: wrap; font-size: 13px; margin: 10px 0; }
.si-row label { display: inline-flex; align-items: center; gap: 4px; cursor: pointer; }
.si-res { font-size: 15px; font-weight: 700; }

/* 刀具档案只显示工艺顺序，圆环内是工序序号。 */
.route-picker { color:var(--c-text2); font-size:13px; }
.route-library, .route-flow { display:flex; flex-wrap:wrap; gap:10px; margin:7px 0 12px; padding:12px; border:1px solid var(--c-border); border-radius:8px; }
.route-library { max-height:240px; overflow:auto; }
.route-choice, .route-node { width:90px; text-align:center; overflow-wrap:anywhere; }
.route-choice { padding:7px 3px; background:white; font:inherit; color:inherit; cursor:pointer; border:1px solid transparent; border-radius:6px; }
.route-choice:hover, .route-choice[aria-pressed="true"] { background:#f2f7fc; border-color:#cedbe9; }
.route-choice-ring, .route-position { display:grid; place-items:center; border-radius:50%; margin:0 auto 4px; background:white; color:var(--step-color); font-weight:700; }
.route-choice-ring { width:42px; height:42px; border:4px solid color-mix(in srgb, var(--step-color) 24%, white); font-size:20px; }
.route-choice[aria-pressed="true"] .route-choice-ring { border-style:solid; background:var(--step-color); color:white; }
.route-choice b, .route-node b { display:block; color:var(--c-text); }
.route-picker small { display:block; color:var(--step-color); }
.route-hint { margin-left:8px; }
.route-flow { padding:16px 12px; background:#f8fafc; align-items:flex-start; gap:16px 28px; }
.route-chain { display:flex; flex-wrap:wrap; gap:16px 28px; max-width:100%; margin:0; padding:0; list-style:none; }
.route-chain:empty::before { content:'尚未选择工序'; line-height:64px; }
.route-add { width:64px; height:64px; margin:3px 12px; border:2px dashed #94a3b8; border-radius:50%; background:transparent; color:#64748b; font:inherit; font-size:26px; cursor:pointer; }
.route-add:hover, .route-add:focus-visible, .route-choice:focus-visible { outline:2px solid var(--c-primary-dark); outline-offset:2px; }
.route-outsourced { outline:2px dashed var(--step-color); outline-offset:2px; }
.route-node { position:relative; cursor:grab; }
.route-node:not(:last-child)::after { content:'→'; position:absolute; right:-24px; top:20px; font-size:22px; color:#94a3b8; }
.route-position { width:66px; height:66px; border:6px solid color-mix(in srgb, var(--step-color) 25%, white); font-size:22px; }
.route-remove { position:absolute; top:-4px; left:calc(50% + 19px); border:0; border-radius:50%; width:20px; height:20px; background:#d93939; color:white; line-height:1; cursor:pointer; }
.route-controls { display:flex; justify-content:center; gap:4px; margin-top:4px; }
.route-shift { background:white; border:1px solid var(--c-border); border-radius:4px; color:var(--c-text2); font:inherit; font-size:12px; padding:3px 5px; cursor:pointer; }
.route-shift:disabled { opacity:.42; cursor:default; }
.qc-report-actions { display:flex; flex-wrap:wrap; align-items:center; gap:6px 12px; }
.qc-report-actions .link-btn { margin:0; }
.qc-report-status { display:inline-flex; flex-wrap:wrap; gap:6px; }
.qc-report-pending { border:1px solid var(--c-primary-dark); border-radius:4px; padding:3px 8px; background:white; color:var(--c-primary-dark); font:inherit; white-space:nowrap; cursor:pointer; }
.qc-report-pending:hover { background:var(--c-primary-light); }
