/* FabForge Nesting styles (Build 6). Written from scratch. Builds on the shared app styles and the Laser lp-* card styles. */
.nb-svg .nb-part { fill-opacity: .22; stroke: none; }
.nb-svg #nbSvg .nb-part, #nbSvg .nb-part { fill-opacity: .55; }
.nb-rem { fill: rgba(70,194,90,.07); stroke: #46c25a; stroke-width: 1.2; stroke-dasharray: 8 5; vector-effect: non-scaling-stroke; }
.nb-rem-t { fill: #46c25a; font-family: var(--sans); font-weight: 800; text-anchor: middle; dominant-baseline: middle; opacity: .8; letter-spacing: .06em; }
.nb-rem-cut { fill: none; stroke: #46c25a; stroke-width: 1.6; vector-effect: non-scaling-stroke; }
.nb-common { fill: none; stroke: #c792ea; stroke-width: 2.4; stroke-dasharray: 4 3; vector-effect: non-scaling-stroke; }
#nbBp path { fill: none; vector-effect: non-scaling-stroke; }
#nbBp .bp-cut { stroke: #ffffff; stroke-width: 2.2; }
#nbBp .bp-rapid { stroke: #f0605a; stroke-width: 1; stroke-dasharray: 2 3; }
#nbBp .bp-travel { stroke: #c792ea; stroke-width: 1.4; }
.lg-common { background: repeating-linear-gradient(90deg, #c792ea 0 4px, transparent 4px 7px); }
.lg-rem { background: repeating-linear-gradient(90deg, #46c25a 0 6px, transparent 6px 9px); }
.lg-keep { background: #46c25a; } .lg-scrap { background: #6b737d; }
.nb-stock, .nb-row { display: flex; gap: 8px; align-items: flex-end; border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; background: var(--bg); min-width: 0; }
.nb-stock .fx-in, .nb-row .fx-in { flex: 1; min-width: 0; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); }
.nb-stock + .nb-stock, .nb-row + .nb-row { margin-top: 8px; }
.nb-stock > .btn, .nb-row > .btn { margin-bottom: 4px; flex: none; }
.nb-2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; }
.nb-bars { display: flex; flex-direction: column; gap: 8px; }
.nb-barrow { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.nb-barrow > span { overflow-wrap: anywhere; }
.nb-barsvg { display: block; width: 100%; height: 26px; }
.nb-bar { fill: #16191d; stroke: #5a616a; stroke-width: 1; vector-effect: non-scaling-stroke; }
.nb-piece { fill-opacity: .75; stroke: #0d0f12; stroke-width: 1; vector-effect: non-scaling-stroke; }
.nb-keep { fill: rgba(70,194,90,.45); } .nb-scrap { fill: rgba(107,115,125,.55); }
.nb-bt { fill: #0d0f12; font: 700 12px var(--sans); text-anchor: middle; }
.nb-chart tr.on td { background: var(--amberbg); color: var(--text); font-weight: 700; }
.nb-chart td, .nb-chart th { white-space: nowrap; }
.linkbtn { background: none; border: 0; padding: 0; color: var(--amber2); text-decoration: underline; cursor: pointer; font: inherit; min-height: 0; }
@media (max-width: 760px) {
  .nb-2 { grid-template-columns: 1fr; }
  .nb-stock, .nb-row { flex-direction: column; align-items: stretch; }
  .nb-stock > .btn, .nb-row > .btn { align-self: flex-end; }
  .nb-stock .fx-in, .nb-row .fx-in { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media print { .nb-stock > .btn, .nb-row > .btn, .lp-add { display: none !important; } }
/* Build 6 gap audit: process compare cards */
.nb-cmp { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 10px; margin: 8px 0 12px; }
.nb-cmp-i { border: 1px solid var(--line, #333a42); border-radius: 10px; padding: 10px 12px; background: rgba(255, 255, 255, 0.02); min-width: 0; }
.nb-cmp-i.best { border-color: var(--good, #5ccf7a); }
.nb-cmp-i.off { opacity: 0.72; }
.nb-cmp-h { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-bottom: 6px; }
.nb-cmp-n { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 10px; }
.nb-cmp-n span { display: flex; flex-direction: column; min-width: 0; }
.nb-cmp-n i { font-style: normal; font-size: 0.78em; text-transform: uppercase; letter-spacing: 0.04em; opacity: 0.7; }
.nb-cmp-n b { font-size: 1.05em; overflow-wrap: anywhere; }
.nb-cmp-n em { font-style: normal; font-size: 0.8em; opacity: 0.75; }
.nb-cmp-i p { margin: 6px 0 0; }
