.bom-view-switcher{display:inline-flex;align-items:center;background:rgba(15,23,42,.4);border:1px solid rgba(255,255,255,.1);border-radius:12px;padding:4px;margin-bottom:20px;gap:4px}.bom-view-tab{padding:8px 16px;font-size:.85rem;font-weight:600;color:#94a3b8;background:transparent;border:0;border-radius:8px;cursor:pointer;display:inline-flex;align-items:center;gap:8px;transition:all .2s ease}.bom-view-tab:hover{color:#f8fafc}.bom-view-tab.active{background:linear-gradient(135deg,#0ea5e9,#6366f1);color:#fff;box-shadow:0 4px 14px rgba(99,102,241,.35)}.bom-tree-workbench{background:rgba(30,41,59,.75);backdrop-filter:blur(16px);-webkit-backdrop-filter:blur(16px);border:1px solid rgba(255,255,255,.1);border-radius:20px;box-shadow:0 10px 40px rgba(0,0,0,.25);overflow:hidden;position:relative;margin-bottom:24px}.tree-toolbar{padding:12px 20px;background:rgba(15,23,42,.6);border-bottom:1px solid rgba(255,255,255,.08);display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:12px;min-height:60px;box-sizing:border-box}.tree-toolbar-left{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.tree-toolbar-right{display:flex;align-items:center;gap:8px}.batch-scaler-box{display:inline-flex;align-items:center;justify-content:center;background:rgba(255,255,255,.06);border:1px solid rgba(255,255,255,.15);border-radius:10px;height:38px;padding:0 12px;gap:8px;font-size:.82rem;color:#cbd5e1;box-sizing:border-box;vertical-align:middle}.batch-scaler-box label{margin:0;padding:0;font-weight:600;color:#38bdf8;display:inline-flex;align-items:center;gap:6px;line-height:1;font-size:.82rem}.batch-scaler-box input{width:80px;height:28px;line-height:28px;background:rgba(15,23,42,.9);border:1px solid rgba(56,189,248,.3);border-radius:6px;color:#fff;font-weight:700;padding:0 8px;font-size:.85rem;text-align:center;outline:0;box-sizing:border-box;display:inline-block;vertical-align:middle;margin:0}.batch-scaler-box input:focus{border-color:#38bdf8;box-shadow:0 0 0 2px rgba(56,189,248,.2)}.batch-scaler-unit{font-weight:600;color:#94a3b8;line-height:1;display:inline-flex;align-items:center;margin:0;font-size:.82rem}.tree-btn{background:rgba(255,255,255,.08);border:1px solid rgba(255,255,255,.12);color:#cbd5e1;font-size:.82rem;font-weight:600;height:38px;padding:0 14px;border-radius:10px;cursor:pointer;display:inline-flex;align-items:center;justify-content:center;gap:6px;line-height:1;margin:0;box-sizing:border-box;vertical-align:middle;transition:all .2s}.tree-btn:hover{background:rgba(56,189,248,.2);border-color:rgba(56,189,248,.4);color:#fff;transform:translateY(-1px)}.tree-toolbar-right .tree-btn:not(#btnTreeFit){width:38px;padding:0}.tree-canvas-viewport{width:100%;height:650px;cursor:grab;position:relative;overflow:hidden;background:radial-gradient(circle,rgba(255,255,255,.03) 1px,transparent 1px);background-size:24px 24px}.tree-canvas-viewport:active{cursor:grabbing}.tree-link{fill:none;stroke:rgba(148,163,184,.3);stroke-width:2px;transition:stroke .3s ease}.tree-link.highlighted{stroke:#38bdf8;stroke-width:2.5px;filter:drop-shadow(0 0 4px rgba(56,189,248,.6))}.tree-node{cursor:pointer}.tree-node-card{fill:rgba(30,41,59,.95);stroke:rgba(255,255,255,.15);stroke-width:1.5px;rx:12px;ry:12px;transition:all .25s ease;filter:drop-shadow(0 4px 12px rgba(0,0,0,.35))}.tree-node:hover .tree-node-card{stroke:#38bdf8;stroke-width:2px;filter:drop-shadow(0 8px 24px rgba(56,189,248,.35))}.node-kind-material .tree-node-card{stroke-left:4px solid #10b981}.node-kind-component .tree-node-card{stroke-left:4px solid #0ea5e9}.node-kind-packaging .tree-node-card{stroke-left:4px solid #f59e0b}.node-title{font-size:12px;font-weight:700;fill:#f8fafc;font-family:inherit}.node-subtitle{font-size:10px;fill:#94a3b8;font-family:inherit}.node-percentage-badge{font-size:10px;font-weight:700;fill:#38bdf8}.node-toggle-circle{fill:#0ea5e9;stroke:#fff;stroke-width:1.5px;transition:transform .2s}.node-toggle-circle:hover{fill:#38bdf8;transform:scale(1.2)}.node-toggle-text{font-size:11px;font-weight:800;fill:#fff;text-anchor:middle;dominant-baseline:central;pointer-events:none}.tree-details-drawer{position:absolute;bottom:20px;right:20px;width:340px;max-width:calc(100% - 40px);background:rgba(15,23,42,.95);backdrop-filter:blur(20px);-webkit-backdrop-filter:blur(20px);border:1px solid rgba(56,189,248,.3);border-radius:16px;padding:18px;box-shadow:0 15px 40px rgba(0,0,0,.6),0 0 20px rgba(56,189,248,.2);z-index:100;display:none;animation:drawerSlideUp .3s cubic-bezier(.16,1,.3,1)}.tree-details-drawer.show{display:block}@keyframes drawerSlideUp{from{opacity:0;transform:translateY(20px)}to{opacity:1;transform:translateY(0)}}.drawer-header{display:flex;justify-content:space-between;align-items:flex-start;margin-bottom:12px}.drawer-header h5{margin:0;font-size:1rem;font-weight:700;color:#fff}.drawer-close{background:transparent;border:0;color:#94a3b8;font-size:1rem;cursor:pointer;padding:0}.drawer-close:hover{color:#ef4444}.drawer-badges{display:flex;gap:6px;flex-wrap:wrap;margin-bottom:14px}.drawer-metrics{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-bottom:16px;background:rgba(255,255,255,.04);padding:10px;border-radius:10px;border:1px solid rgba(255,255,255,.06)}.metric-item{display:flex;flex-direction:column}.metric-label{font-size:.72rem;color:#94a3b8}.metric-value{font-size:.95rem;font-weight:700;color:#38bdf8}.btn-drawer-suppliers{width:100%;background:linear-gradient(135deg,#0ea5e9,#6366f1);color:#fff;border:0;border-radius:10px;padding:10px;font-size:.85rem;font-weight:700;display:flex;align-items:center;justify-content:center;gap:8px;text-decoration:none;box-shadow:0 4px 14px rgba(99,102,241,.4);transition:all .2s}.btn-drawer-suppliers:hover{color:#fff;transform:translateY(-2px);box-shadow:0 8px 20px rgba(99,102,241,.6)}