.engineering-routing-editor { min-width: 0; margin-top: 1.5rem; }
.engineering-routing-editor fieldset, .engineering-routing-editor section { min-width: 0; max-width: 100%; box-sizing: border-box; }
.engineering-routing-editor .routing-operations-scroll { max-width: 100%; overflow-x: auto; border: 1px solid #cfdbeb; border-radius: 12px; margin: 1rem 0; background: #fff; }
.engineering-routing-editor .routing-operations-table { width: 100%; min-width: 640px; table-layout: fixed; border-collapse: collapse; text-align: left; color: #17354c; }
.routing-operations-table th, .routing-operations-table td { padding: 8px; vertical-align: top; border-bottom: 1px solid #e0e8f2; }
.routing-operations-table thead th { background: #edf3f9; font-size: .8rem; }
.routing-operations-table tbody th { color: #aa5700; width: 48px; }
.engineering-routing-editor .routing-operations-table input { min-width: 0; margin-top: .4rem; background: white; border: 1px solid #bfcee0; border-radius: 7px; }
.routing-operations-table thead th:nth-child(1) { width: 6%; }
.routing-operations-table thead th:nth-child(2) { width: 34%; }
.routing-operations-table thead th:nth-child(3) { width: 18%; }
.routing-operations-table thead th:nth-child(4) { width: 20%; }
.routing-operations-table thead th:nth-child(5) { width: 22%; }
.routing-summary-row td { overflow-wrap: anywhere; line-height: 1.6; padding: 18px 12px; }
.routing-summary-row td:nth-child(2) { font-weight: 600; }
.routing-summary-row td p { margin: 0 0 .4rem; }
.routing-editor-row > td { padding: 0 12px 16px; }
.engineering-routing-editor textarea { display: block; width: 100%; box-sizing: border-box; min-height: 90px; resize: vertical; padding: 12px; margin-top: .4rem; font: inherit; line-height: 1.6; color: inherit; background: white; border: 1px solid #bfcee0; border-radius: 7px; }
.routing-operations-table label { font-size: .75rem; line-height: 1.4; }
.routing-operations-table summary { cursor: pointer; font-weight: 600; padding: .4rem 0; }
.routing-operations-table details fieldset { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem 1.25rem; border: 0; padding: 16px; background: #f6f9fc; }
.routing-operations-table .routing-wide-field { grid-column: 1 / -1; }
.routing-operations-table details fieldset > p { grid-column: 1 / -1; }
.engineering-routing-area { grid-column: 1 / -1; min-width: 0; padding: 24px; border: 1px solid #cfdbeb; border-radius: 14px; background: #fff; }
.engineering-routing-area:empty { display: none; }
#engineering-assembly-tree details:not([open]) > :not(summary) { display: none !important; }
.engineering-readiness nav { display: flex; gap: 12px; margin: 16px 0; }
#engineering-view > [hidden] { display: none !important; }
.engineering-section-nav { display:flex; flex-wrap:wrap; gap:4px; border-bottom:1px solid #cfdbeb; margin:0 0 16px; background:#fff; }
#engineering-view .engineering-section-nav button { border:0; border-radius:0; border-bottom:3px solid transparent; background:transparent; box-shadow:none; color:#526981; padding:16px 20px; margin:0; }
#engineering-view .engineering-section-nav button[aria-pressed=true] { color:#17354c; border-bottom-color:#ff8900; font-weight:700; }
.engineering-section-help { color:#526981; line-height:1.6; }
#engineering-tools-panel { padding:24px; background:#fff; border:1px solid #cfdbeb; border-radius:14px; }
#engineering-tools-panel > details { margin:12px 0; border:1px solid #cfdbeb; border-radius:10px; padding:16px; }
#engineering-tools-panel summary { cursor:pointer; color:#17354c; font-weight:600; }
#engineering-tools-panel details:not([open]) > :not(summary) { display:none !important; }
.engineering-part-layout > [hidden] { display:none !important; }
.engineering-part-actions { display:flex; flex-wrap:wrap; gap:8px; margin:12px 0 20px; scroll-margin-top:24px; }
.engineering-part-actions button[aria-pressed=true] { background:#17354c; color:#fff; }
.engineering-selected-label { font-weight:600; color:#17354c; margin-top:16px; }
.engineering-part-layout > .engineering-selected-cost { grid-column:1 / -1; min-width:0; padding:20px; border:1px solid #cfdbeb; border-radius:14px; }
.engineering-part-layout > .engineering-part-detail { max-height:520px; overflow:auto; }
.engineering-part-layout > .engineering-part-list { max-height:520px; }
.cost-entry-guide { padding:16px 20px; margin:12px 0 20px; background:#f3f7fb; border:1px solid #cfdbeb; border-left:4px solid #ff8900; border-radius:10px; }
.cost-entry-guide h5 { margin:0 0 8px; font-size:1rem; }
.engineering-capture-compare-controls { display:flex; align-items:center; gap:12px; flex-wrap:wrap; margin:12px 0; }
.engineering-capture-compare-controls select { flex:1 1 300px; min-width:0; margin:0; }
.engineering-capture-compare-controls button { flex:0 0 auto; margin:0; }
@media (max-width:600px) { .engineering-capture-compare-controls select, .engineering-capture-compare-controls button { flex:1 1 100%; width:100%; } }
.cost-entry-guide li { margin:7px 0; line-height:1.5; }
.engineering-cost-sheet .cost-entry-guide button { border:0; padding:4px 0; margin:0; background:transparent; color:#174c77; text-align:left; text-decoration:none; box-shadow:none; }
.engineering-cost-sheet .cost-entry-guide button:hover { text-decoration:none; background:#e8f0f8; }
.engineering-cost-sheet .cost-entry-guide button:focus-visible { outline:2px solid #174c77; outline-offset:3px; }
.engineering-cost-sheet details:not([open]) > :not(summary) { display:none !important; }
.engineering-cost-sheet summary { cursor:pointer; font-weight:600; padding:10px 0; }
.engineering-cost-sheet .cost-checklist-return { position:sticky; top:12px; z-index:5; display:flex; justify-content:flex-end; padding:8px; margin:12px 0; background:#f3f7fb; border:1px solid #cfdbeb; border-radius:8px; }
.engineering-cost-sheet .cost-entry-guide { scroll-margin-top:20px; }
.engineering-cost-sheet .cost-entry-guide:focus-visible { outline:2px solid #174c77; outline-offset:3px; }
