/* BOM products carry the color; the popover keeps the meeting list intact. */
.compact-center-popover:has(.product-structure-scroll){width:min(1600px,calc(100vw - 32px));overflow:hidden;max-height:calc(100dvh - 40px)}
.product-structure-guide{display:flex;gap:12px;align-items:center;flex-wrap:wrap;padding:8px 16px;font-size:12px;color:#667b8b;border-bottom:1px solid #e1e7ec}
.product-structure-guide b{font-weight:500;color:#35566c}.product-structure-warning{padding:8px 16px;background:#fff7eb;color:#9b672c;font-size:12px}
.product-structure-scroll{max-height:calc(100dvh - 168px);overflow:auto;overscroll-behavior:contain;padding:0 0 4px;background:#f8fafb;scrollbar-width:thin}
.product-structure-canvas{position:relative;isolation:isolate}.product-structure-lines{position:absolute;inset:0;pointer-events:none;z-index:0;overflow:visible}
.product-structure-edge{fill:none;stroke:#9aafbe;stroke-width:1.5;stroke-dasharray:4 3}.product-structure-edge.potential{stroke:#c58a36;stroke-width:2;stroke-dasharray:none}.product-structure-edge.confirmed{stroke:#b75353;stroke-width:2;stroke-dasharray:none}
.product-structure-column{position:absolute;top:8px;font-size:12px;line-height:18px;text-align:center;color:#667f91}
.product-structure-node{position:absolute;z-index:1;padding:8px 10px;border:1px solid #cedbe5;border-radius:6px;background:#fff;color:#3f6178;overflow:hidden;display:flex;flex-direction:column;gap:4px;font-size:12px;line-height:18px}
.product-structure-node.is-current{border-color:#7fa8c6;background:#edf6fc}.product-structure-node.is-connector{border-style:dashed;background:#f5f7f9}.product-structure-node.stock,.product-structure-node.issued{border-color:#9ec5b0;background:#f0f8f3}.product-structure-node.potential{border-color:#d6b27c;background:#fff8ee}.product-structure-node.confirmed{border-color:#d79b95;background:#fff2ef}.product-structure-node.paused,.product-structure-node.notice{border-color:#b99bcf;background:#f7f0fb}
.product-structure-name{display:flex;gap:6px;align-items:center;min-width:0;height:20px;flex:none}.product-structure-name>b{font-size:14px;font-weight:500;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;flex:1;min-width:0}.product-structure-name>em{flex:none;font-size:11px;font-style:normal;color:#748796}.product-structure-name .completion-dot{position:static;flex:none;width:8px;height:8px;margin:0}
.product-structure-code{font-family:Consolas,"Microsoft YaHei",monospace;font-size:12px;color:#436b87;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;flex:none}
.product-structure-center{display:flex;align-items:center;gap:4px;width:100%;padding:2px 0;border:0;border-bottom:1px solid #d9e4ed;background:transparent;font-size:12px;line-height:20px;color:#386b8d;text-align:left;flex:none;min-width:0}
.product-structure-center>span:first-child{font-weight:500;max-width:106px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.product-structure-center>small{margin-left:auto;font-size:11px;color:#607e92;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:0}.product-structure-center>span:last-child{flex:none;color:#7a9bb1}.product-structure-center:hover{color:#194d71;background:#e9f2f8}.product-structure-center:focus-visible{outline:2px solid #639dc0;outline-offset:2px}
.product-structure-connector{padding:3px 0;color:#8293a0;font-size:12px}.product-structure-quantities{display:flex;justify-content:space-between;gap:6px;min-width:0;font-variant-numeric:tabular-nums}.product-structure-quantities>span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:0}.product-structure-state{display:block;margin-top:auto;line-height:17px;min-height:17px;font-size:11px;color:#7b8d9a;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.product-structure-node.potential .product-structure-state{color:#9f702b}.product-structure-node.paused .product-structure-state,.product-structure-node.notice .product-structure-state{color:#7f5294}
.product-structure-shipment{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:12px;line-height:20px}.product-structure-shipment.notice{color:#784398;background:#f0e3f9;border-radius:2px;padding:0 4px}.product-structure-empty{padding:24px;text-align:center;color:#7a8c9b}
.product-structure-node.has-order-summary{gap:2px}.has-order-summary .product-structure-code{font-size:11px;line-height:14px}.has-order-summary .product-structure-center{line-height:18px}.has-order-summary .product-structure-quantities{font-size:11px;line-height:14px;flex:none}.has-order-summary .product-structure-state{font-size:10px;line-height:14px;min-height:14px}.product-structure-order{display:flex;align-items:baseline;gap:6px;min-width:0;line-height:12px;font-size:10px;white-space:nowrap;flex:none;font-variant-numeric:tabular-nums}.product-structure-order>span{flex:none;color:#748796}.product-structure-order>b{font-weight:400;font-family:Consolas,"Microsoft YaHei",monospace;overflow:hidden;text-overflow:ellipsis}.product-structure-order-summary{flex:none;white-space:nowrap;line-height:16px;font-size:11px;font-variant-numeric:tabular-nums;color:#496578}.product-structure-node.potential .product-structure-order-summary{color:#9f702b}
@media(max-width:760px){.compact-center-popover:has(.product-structure-scroll){width:calc(100vw - 20px);max-height:calc(100dvh - 24px)}.product-structure-guide{padding:8px 12px;gap:2px}.product-structure-guide>span{flex-basis:100%}.product-structure-scroll{max-height:calc(100dvh - 184px)}}

.product-structure-controls{display:flex;align-items:center;gap:8px;padding:6px 16px;border-bottom:1px solid #dfe6ec;font-size:12px;color:#647d8f;background:#fff}
.product-structure-controls>span:first-child{margin-right:auto}.product-structure-controls button{height:26px;min-width:28px;padding:0 8px;border:1px solid #d4dfe7;border-radius:4px;background:#f8fafb;color:#42657f;font-size:12px;white-space:nowrap}.product-structure-controls button:hover{background:#eaf2f8}.product-structure-controls [data-structure-scale]{min-width:36px;text-align:center;font-variant-numeric:tabular-nums}
.product-structure-scroll{max-height:calc(100dvh - 212px)}
@media(max-width:760px){.product-structure-controls{padding:6px 12px;gap:6px;flex-wrap:wrap}.product-structure-controls>span:first-child{flex-basis:100%}.product-structure-scroll{max-height:calc(100dvh - 236px)}}
