/* Engineering master routing detail (js/engdetail.js) — right-side drawer, one Eng #. Sits under the job modal (z 60) so a WO opened from here shows on top. */
.ed-bg{position:fixed;inset:0;background:var(--scrim,rgba(41,41,50,.35));z-index:55;display:flex;justify-content:flex-end}
.ed{width:min(1320px,97vw);height:100%;background:var(--paper);box-shadow:-12px 0 40px rgba(0,0,0,.22);display:flex;flex-direction:column;min-height:0}
.ed-loading{padding:40px;color:var(--ink2)}
.ed-head{padding:12px 18px 10px;border-bottom:1px solid var(--rule);background:var(--paper2)}
.ed-h1{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.ed-h1 h3{margin:0;font-size:19px;font-family:var(--mono)} .ed-acc{font-weight:700;color:var(--ink)} .ed-pt{font-size:12px;color:var(--ink2);background:var(--grey-l);border-radius:5px;padding:1px 7px}
.ed-h1 .mt-status{min-width:0;padding:3px 10px;font-size:12px;display:inline-block;border-radius:5px}
.ed-src{font-size:11px;color:var(--ink3);border:1px dashed var(--rule);border-radius:5px;padding:1px 6px} .ed-src.warn{color:var(--amber-t,#8a5a00);border-color:var(--amber-bd,var(--amber));background:var(--amber-l)}
.ed-h1 .sp,.ed-foot .sp,.ed-oph .sp{flex:1}
.ed-x{border:0;background:none;font-size:22px;line-height:1;cursor:pointer;color:var(--ink3);padding:0 4px;border-radius:6px;min-width:32px;height:32px} .ed-x:hover{color:var(--ink);background:var(--rule2)}
.ed-h2{display:flex;flex-wrap:wrap;gap:6px 16px;margin-top:8px;font-size:12.5px;align-items:center}
.ed-rev,.ed-kv{display:inline-flex;align-items:center;gap:5px} .ed-h2 .l{font-size:11px;font-weight:700;letter-spacing:.05em;text-transform:uppercase;color:var(--ink3)}
.ed-revwo{display:inline-flex;gap:3px;align-items:center;font-size:11px;color:var(--ink3)}
.ed-body{flex:1;min-height:0;display:grid;grid-template-columns:minmax(330px,390px) 1fr}
.ed-left{overflow:auto;padding:10px 14px 20px;border-right:1px solid var(--rule)}
.ed-right{overflow:auto;padding:10px 16px 20px;min-width:0}
.ed-sec{border:1px solid var(--rule);border-radius:10px;margin:0 0 8px;background:var(--paper)}
.ed-sec>summary{cursor:pointer;list-style:none;display:flex;align-items:center;gap:7px;padding:7px 10px;font-weight:700;font-size:12.5px;color:var(--ink)}
.ed-sec>summary::-webkit-details-marker{display:none} .ed-sec>summary::before{content:'▸';color:var(--ink3);font-size:11px;transition:transform .12s} .ed-sec[open]>summary::before{transform:rotate(90deg)}
.ed-sec>summary .faint{font-weight:500;margin-left:auto;text-align:right;max-width:60%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.ed-sec .dot{width:9px;height:9px;border-radius:50%;display:inline-block;flex:none}
.ed-sec .fields{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:6px 10px;padding:2px 10px 8px}
.ed-sec .fchks{display:flex;flex-wrap:wrap;gap:6px;padding:0 10px 8px}
.ed-sec .field{display:flex;flex-direction:column;gap:2px;font-size:11.5px;color:var(--ink2);font-weight:600;min-width:0}
.ed-sec .field input,.ed-sec .field select{height:28px;font-size:12.5px;width:100%} .ed-sec .field select{padding-top:0;padding-bottom:0}
.ed-sec .field small{font-weight:500;font-size:11px}
.ed-sec .fdims{grid-column:1/-1} .ed-sec .dims{display:flex;gap:4px;align-items:center} .ed-sec .dims input{width:64px} .ed-sec .dims select{width:62px}
.ed-sec textarea{width:calc(100% - 20px);margin:0 10px 10px;font-size:12.5px}
.ed-ro input{background:var(--grey-l);color:var(--ink);cursor:default}
.ed-match{display:flex;align-items:center;gap:6px;height:28px;font-family:var(--mono);font-size:12.5px;color:var(--ink)}
.ed-oph{display:flex;align-items:center;gap:8px;margin-bottom:6px} .ed-oph input[type=number]{width:84px;height:28px} .ed-oph input[type=checkbox]{width:14px;height:14px;margin:0 4px 0 0;vertical-align:-2px} .ed-oph label{display:inline-flex;align-items:center;white-space:nowrap}
.ed-opwrap{border:1px solid var(--rule);border-radius:10px}   /* round 10: no inner scroll box — every operation shows; the header sticks to the pane */
.ed-ops{width:100%;border-collapse:collapse;font-size:12.5px}
.ed-ops th{position:sticky;top:-10px;z-index:2;background:var(--paper2);padding:6px 7px;font-size:11px;box-shadow:0 1px 0 var(--rule)}
.ed-ops td{padding:3px 6px;border-bottom:1px solid var(--rule);vertical-align:middle;height:34px;box-sizing:border-box}
.ed-ops.active-only tr.na{display:none} .ed-ops tr.na td{opacity:.5} .ed-ops tr.na td:first-child{opacity:1}
.ed-ops tr.off td{opacity:.45} .ed-ops tr.off td:first-child{opacity:1} .ed-ops tr.fresh td{background:var(--green-l)}
.ed-ops tr.dragging{opacity:.5} .ed-ops tr.over td{box-shadow:inset 0 2px 0 var(--indigo)}
.ed-ops .grip{cursor:grab;color:var(--ink3);user-select:none;width:14px}
.ed-ops .ed-opn{max-width:210px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.ed-ops .tag{font-size:11px;font-weight:700;background:var(--grey-l);color:var(--ink2);border-radius:4px;padding:0 5px;margin-left:5px} .ed-ops .tag.chg{background:var(--amber-l);color:var(--amber-t,#8a5a00)}
.ed-ops select{height:26px;font-size:12px;max-width:150px;padding:1px 4px;line-height:1.2} .ed-ops .cellwrap{display:inline-flex;align-items:center;gap:5px} .ed-ops .cellwrap .dot{width:8px;height:8px;border-radius:50%;flex:none}
.ed-ops input[type=number]{width:58px;height:26px;text-align:right;font-size:12px;padding:1px 4px} .ed-ops input[type=text]{width:96px;height:26px;font-size:12px;padding:1px 5px} .ed-ops input[type=checkbox]{width:14px;height:14px;margin:0}
.ed-ops .drv{font-size:11.5px;color:var(--ink2);white-space:nowrap}
.ed-hrs{font-variant-numeric:tabular-nums;white-space:nowrap} .ed-hrs.est{color:var(--amber-t,#8a5a00)} .ed-hrs.est::after{content:' est.';font-size:11px}
.ed-bi{display:inline-block;width:15px;height:15px;border-radius:50%;background:var(--indigo-l);color:var(--link,var(--indigo));font-size:11px;font-style:normal;font-weight:700;text-align:center;line-height:15px;margin-left:4px;cursor:help}
.ed-ops tfoot td{position:sticky;bottom:-20px;background:var(--paper2);font-weight:700;font-variant-numeric:tabular-nums;white-space:nowrap}
.ed-h{margin:16px 0 6px;font-size:11.5px;letter-spacing:.05em;text-transform:uppercase;color:var(--ink2)}
.ed-wos{width:100%} .ed-wos .mt-status{min-width:0;padding:2px 8px;font-size:11px;display:inline-block;border-radius:5px}
.ed-log{margin:0;padding:0 0 0 16px;font-size:12.5px;line-height:1.6;max-height:180px;overflow:auto}
.ed-foot{display:flex;align-items:center;gap:8px;padding:10px 18px;border-top:1px solid var(--rule);background:var(--paper2)}
.ed-foot input[data-savenote]{flex:0 1 340px;height:32px}
.ed-dirty{font-size:11.5px;font-weight:700;color:var(--amber-t,#8a5a00);background:var(--amber-l);border-radius:5px;padding:2px 8px}
.ed-foot .btn.pulse{box-shadow:0 0 0 3px var(--amber-l)}
.ed-pick{position:fixed;inset:0;z-index:58;background:var(--scrim,rgba(41,41,50,.3));display:flex;align-items:center;justify-content:center}
.ed-pk{width:min(640px,92vw);max-height:80vh;display:flex;flex-direction:column;gap:8px;background:var(--paper);border-radius:12px;padding:12px 14px;box-shadow:0 20px 50px rgba(0,0,0,.25)}
.ed-pkh{display:flex;align-items:center;justify-content:space-between} .ed-pk input[type=search]{height:32px}
.ed-pkl{overflow:auto;border:1px solid var(--rule);border-radius:8px}
.ed-pkr{display:grid;grid-template-columns:12px 1fr auto auto;gap:8px;align-items:center;padding:6px 10px;border-bottom:1px solid var(--rule);cursor:pointer;font-size:12.5px}
.ed-pkr:hover{background:var(--hover)} .ed-pkr .dot{width:9px;height:9px;border-radius:50%} .ed-pkr .tag{font-size:11px;background:var(--grey-l);border-radius:4px;padding:0 4px}
/* WO drawer routing strip (app.js, round 5): admin hold pill + PIN / reason popover */
.pill.jhold{background:var(--jhold-bg,#6b5a5e);color:#fff;box-shadow:inset 0 0 0 1px var(--red);font-weight:700}
.jswitch.jheld span{color:var(--red-t,#b0303f)} [data-theme=dark] .jswitch.jheld span{color:var(--red-t,#ff8a9a)}
.jhold-pop{position:fixed;z-index:72;width:300px;background:var(--paper);border:1px solid var(--rule);border-radius:10px;box-shadow:0 12px 34px rgba(0,0,0,.22);padding:10px 12px;display:flex;flex-direction:column;gap:7px;font-size:12.5px}
.jhold-pop .t{font-weight:700;font-size:12.5px;color:var(--ink)} .jhold-pop .field{display:flex;flex-direction:column;gap:3px;font-size:11.5px;font-weight:600;color:var(--ink2)}
.jhold-pop input,.jhold-pop textarea{width:100%;font:inherit;font-size:12.5px}
/* round 10 (U6 #3): below ~1180 px the operations get the full width and the routing values stack under them (one scroll) */
@media (max-width:1180px){.ed-body{grid-template-columns:1fr;overflow:auto}.ed-left,.ed-right{overflow:visible}.ed-right{order:1}.ed-left{order:2;border-right:0;border-top:1px solid var(--rule)}.ed-ops th{top:0}.ed-ops tfoot td{position:static}}
/* Dawg Walk (tokens from css/theme-dawgwalk.css; Classic never sets --jhold-bg so it keeps #6b5a5e): the admin hold pill is scarlet folded into the
   neutral ink — a red-grey dark enough for white text in both modes, ringed in scarlet */
:root[data-skin="dawgwalk"]{--jhold-bg:color-mix(in srgb,var(--red) 24%,var(--ink2))}
:root[data-skin="dawgwalk"][data-theme="dark"]{--jhold-bg:color-mix(in srgb,var(--red) 26%,var(--dark))}
/* Dawg Walk dark: native scrollbars, checkboxes and select pop-ups follow the dark surfaces */
:root[data-skin="dawgwalk"][data-theme="dark"] .ed,:root[data-skin="dawgwalk"][data-theme="dark"] .ed-pk,:root[data-skin="dawgwalk"][data-theme="dark"] .jhold-pop{color-scheme:dark}
/* round 6 (R2): change-control mark in the change log (Q11) and the release gate note (Q12) */
.ed-logchg{display:inline-block;margin-left:4px;padding:0 6px;border-radius:4px;font-size:11px;font-weight:600;color:var(--red);border:1px solid var(--red);white-space:nowrap}
.ed-relno{align-self:center;font-size:12px;color:var(--ink3);padding:0 6px;white-space:nowrap}
/* round 6 (R1): placeholder standard on a master operation (Q9) */
.ed-ops .tag.std-ph{background:var(--amber-l);color:var(--amber-t,#8a5a00);border:1px solid var(--amber-bd,var(--amber))}
[data-theme="dark"] .ed-ops .tag.std-ph{color:var(--amber-t,var(--amber))}
/* round 10 (U6): compact operation rows (~34 px), icon buttons, routed-step numbers, one collapsed section for WOs / serials / history */
.ed-ops td.ed-notec{white-space:nowrap} .ed-ops td.ed-notec input[type=text]{width:88px}
.ed-ops td .btn.wi-edbtn{font-size:11px;font-weight:700;min-width:28px;height:26px;padding:0 5px;margin-left:4px;vertical-align:middle;border-radius:5px}
.ed-ib{border:1px solid var(--rule);background:var(--paper);border-radius:5px;width:24px;height:24px;line-height:20px;padding:0;cursor:pointer;font-size:14px;color:var(--ink2)} .ed-ib.danger{color:var(--red)} .ed-ib:hover{background:var(--hover)}
.ed-ops .ed-no{font-variant-numeric:tabular-nums;width:22px}
.ed-ops td.ed-sumlbl{font-size:12px;color:var(--ink2)}
.ed-ophelp{margin:6px 0 0}
.ed-more{margin-top:14px;border:1px solid var(--rule);border-radius:10px;padding:0 12px}
.ed-more>summary{cursor:pointer;list-style:none;padding:9px 0;font-weight:700;font-size:13px;color:var(--ink);display:flex;gap:8px;align-items:baseline}
.ed-more>summary::-webkit-details-marker{display:none} .ed-more>summary::before{content:'▸';color:var(--ink3);font-size:11px} .ed-more[open]>summary::before{content:'▾'}
.ed-more>summary .faint{font-weight:500}
.ed-more[open]{padding-bottom:10px}
.ed-foot .btn:disabled{cursor:not-allowed}
/* round 10: the operations table fits the pane at 1440 (the note column and its WI button stay in view) */
.ed-ops .tag{text-transform:none;letter-spacing:0}
.ed-ops .ed-opn{max-width:190px}
/* R10 QA4: the name ellipsises, its tags (side, changed, n/a) always show in full */
.ed-ops .ed-opw{display:flex;align-items:center;min-width:0;max-width:190px} .ed-ops .ed-opw b{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap} .ed-ops .ed-opw .tag{flex:none;white-space:nowrap}
.ed-ops select{max-width:150px}   /* R10 QA4: "Stock Room / Kitting" reads in full; option text is UI.cellShort (full name in title) */
.ed-ops td.ed-notec input[type=text]{width:64px}
.ed-ops input[type=number]{width:52px}
/* R11 (A7): header — Eng # big, account under it, a compact rev strip (current rev highlighted), open WOs as link pills */
.ed-h1{align-items:flex-start}
.ed-id{display:flex;flex-direction:column;gap:2px;min-width:0}
.ed-h1 h2.ed-eng{margin:0;font-family:var(--mono);font-size:var(--fs-26);line-height:1.1;font-weight:800;color:var(--ink);letter-spacing:-.01em}
.ed-idsub{display:flex;align-items:center;gap:8px;flex-wrap:wrap} .ed-idsub .ed-acc{font-size:var(--fs-14)} .ed-idsub .ed-pt{font-size:var(--fs-12)}
.ed-st{display:flex;align-items:center;gap:8px;flex-wrap:wrap;padding-top:4px}
.ed-st .mt-status{min-width:0;padding:3px 10px;font-size:var(--fs-12);display:inline-block;border-radius:5px}
.ed-h2{gap:8px 22px;margin-top:10px}
.ed-revs{display:inline-flex;align-items:center;gap:6px;flex-wrap:wrap}
.ed-rv{display:inline-flex;align-items:center;gap:4px;border:1px solid var(--rule);border-radius:999px;padding:1px 3px 1px 9px;background:var(--paper);font-size:var(--fs-12)}
.ed-rv .l{font-size:var(--fs-11)}
.ed-rvc{font-family:var(--mono);font-size:var(--fs-12);background:var(--indigo-l);color:var(--indigo);border-radius:999px;padding:0 8px;line-height:18px}
.ed-rv.none .ed-rvc{background:transparent;color:var(--ink3);font-weight:500}
.ed-rv.differ{border-color:var(--amber-bd,var(--amber))}
.ed-rvo{font-family:var(--mono);font-size:var(--fs-11);color:var(--ink3);border:1px dashed var(--rule);border-radius:999px;padding:0 6px;line-height:16px;cursor:help}
.ed-rvo i{font-style:normal;margin-left:2px;color:var(--ink3)}
.ed-wos-h{display:inline-flex;align-items:center;gap:5px;flex-wrap:wrap;min-width:0}
.ed-wos-h .l{margin-right:2px}
.ed-wop{display:inline-flex;align-items:center;gap:5px;height:22px;padding:0 9px;border:1px solid var(--rule);border-radius:999px;background:var(--paper);color:var(--ink);font-size:var(--fs-12);font-weight:600;text-decoration:none;white-space:nowrap;cursor:pointer;font-family:inherit}
.ed-wop:hover{background:var(--hover);border-color:var(--ink3)} .ed-wop .dot{width:8px;height:8px;border-radius:50%;flex:none}
.ed-wop.lk{color:var(--ink2)} .ed-wop.more{color:var(--link,var(--indigo));border-style:dashed}
.ed-h3{display:flex;flex-wrap:wrap;gap:4px 16px;margin-top:8px;font-size:var(--fs-12);color:var(--ink2);align-items:center}
.ed-h3 .l{font-size:var(--fs-11);font-weight:700;letter-spacing:.05em;text-transform:uppercase;color:var(--ink3);margin-right:5px}
.ed-rfi .pill{font-size:var(--fs-12)}
/* R11: an n/a step that engineering uses anyway */
.ed-ops .tag.na-on{background:var(--teal-l,var(--indigo-l));color:var(--teal-t,var(--indigo))}
.ed-ops tr.na td:first-child input{cursor:pointer}
/* R11: Engineering notes (monday, read + write) */
.ed-mn{border-color:color-mix(in srgb,var(--teal) 45%,var(--rule))}
.ed-mnb{padding:0 10px 10px;display:flex;flex-direction:column;gap:6px}
.ed-sec .ed-mnb textarea{width:100%;margin:0;font-size:var(--fs-13);min-height:84px;resize:vertical;box-sizing:border-box}
.ed-mnf{display:flex;align-items:center;gap:8px} .ed-mnf .sp{flex:1}
.ed-mnst{font-size:var(--fs-11);font-weight:700;color:var(--ink3);text-transform:uppercase;letter-spacing:.04em}
.ed-mnst.app{color:var(--amber-t,#8a5a00)} .ed-mnst.bad{color:var(--red)}
.ed-mnh{margin:0;line-height:1.4} .ed-mnns{color:var(--amber-t,#8a5a00)}
.ed-mnc{display:flex;align-items:flex-start;gap:8px;justify-content:space-between;background:var(--amber-l);border-radius:8px;padding:6px 8px;color:var(--ink)}
.ed-mno{border-top:1px solid var(--rule);padding-top:6px;font-size:var(--fs-12)}
.ed-mno>summary{cursor:pointer;font-weight:600;color:var(--ink2)}
.ed-mno-n{margin-top:6px} .ed-mno-n>b{font-size:var(--fs-11);text-transform:uppercase;letter-spacing:.04em;color:var(--ink3)}
.ed-mno-e{margin:3px 0 0;padding:4px 7px;border-left:3px solid var(--rule);white-space:pre-wrap;color:var(--ink)}
@media (max-width:1180px){.ed-h1 h2.ed-eng{font-size:var(--fs-19)}}
