/* R6.17.7.5 - product BOM builder and edit-drawer usability closure */
.r610-builder{width:min(97vw,1900px)!important;height:min(95vh,1080px)!important;border-radius:18px!important}
.r610-builder>header{padding:16px 22px 12px!important}
.r610-builder>header>div>span{display:none!important}
.r610-builder>header h2{font-size:21px!important;margin:0 0 5px!important}
.r610-builder>header p{font-size:13px!important;max-width:900px}
.r610-tabs{padding:7px 18px!important;background:#fff!important}
.r610-tabs button,.r610-tabs a{padding:8px 12px!important}

.r61775-builder-steps{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:0;padding:10px 28px 11px;border-bottom:1px solid #e8edf5;background:#fbfcff}
.r61775-builder-steps>div{display:flex;align-items:center;gap:10px;position:relative;min-width:0;color:#94a3b8}
.r61775-builder-steps>div:not(:last-child)::after{content:"";position:absolute;height:1px;background:#e2e8f0;left:calc(100% - 22px);right:18px;top:18px;transform:translateX(-50%);width:calc(100% - 68px)}
.r61775-builder-steps b{width:34px;height:34px;border-radius:11px;background:#f1f5f9;display:grid;place-items:center;flex:0 0 34px;font-size:13px;color:#64748b}
.r61775-builder-steps span{display:grid;gap:1px;min-width:0}.r61775-builder-steps strong{font-size:13px;color:#64748b}.r61775-builder-steps small{font-size:11px;color:#94a3b8;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.r61775-builder-steps>div.active b{background:linear-gradient(135deg,#6366f1,#4f46e5);color:#fff;box-shadow:0 6px 14px rgba(79,70,229,.22)}
.r61775-builder-steps>div.active strong{color:#4338ca}.r61775-builder-steps>div.done b{background:#eef2ff;color:#4f46e5}.r61775-builder-steps>div.done strong{color:#475569}

.r61775-new-layout{display:grid;grid-template-columns:minmax(250px,320px) minmax(680px,1fr);gap:0;min-height:0;flex:1;overflow:auto;background:#fff}
.r61775-create-method{padding:22px 18px;border-right:1px solid #e7ebf2;background:#fbfcff;display:grid;align-content:start;gap:10px}
.r61775-create-method>div{display:grid;gap:3px;margin-bottom:4px}.r61775-create-method>div strong{font-size:15px}.r61775-create-method>div small{color:#64748b}
.r61775-create-method>button{display:grid;grid-template-columns:1fr;gap:3px;text-align:left;border:1px solid #e2e8f0;background:#fff;border-radius:13px;padding:14px 15px;color:#334155}
.r61775-create-method>button b{font-size:13px}.r61775-create-method>button span{font-size:11px;color:#64748b}.r61775-create-method>button.active{border-color:#a5b4fc;background:#f7f7ff;box-shadow:0 0 0 2px rgba(99,102,241,.05)}
.r61775-create-method>button.active b{color:#4f46e5}.r61775-create-method>button:disabled{opacity:.62}
.r61775-create-method>p{margin:8px 0 0;padding:11px 12px;border-radius:11px;background:#f8fafc;color:#64748b;font-size:12px;line-height:1.55}
.r61775-new-card{max-width:1120px!important;margin:20px auto!important;padding:20px 22px!important;border:0!important;box-shadow:none!important;align-self:start}
.r61775-new-card>header{display:flex;justify-content:space-between;align-items:flex-start;margin-bottom:4px}.r61775-new-card>header span{font-size:12px;color:#4f46e5;font-weight:800}.r61775-new-card>header h3{font-size:18px;margin:3px 0}.r61775-new-card>header p{font-size:12px;margin:0}
.r61775-new-card form{gap:12px 16px!important;margin-top:14px!important}.r61775-new-card form label>span{font-size:12px;font-weight:700;color:#334155}
.r61775-new-card form input,.r61775-new-card form select,.r61775-process-create input,.r61775-process-create select,.r61775-process-create textarea{min-height:40px;border-radius:9px}
.r61775-more-data{border:1px solid #e2e8f0;border-radius:12px;background:#fbfcff;overflow:hidden}
.r61775-more-data summary{cursor:pointer;list-style:none;padding:11px 13px;font-weight:700;color:#475569}.r61775-more-data summary::-webkit-details-marker{display:none}.r61775-more-data summary::after{content:"⌄";float:right;color:#64748b}
.r61775-more-data[open] summary{border-bottom:1px solid #e2e8f0}.r61775-more-data>div{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;padding:12px}
.r61775-new-card form>footer{padding-top:4px}.r61775-new-card form>footer .btn-primary{min-width:190px}
.r61775-new-card .r61649-match-review{border-color:#c7d2fe!important;background:#fafaff!important;padding:10px 12px!important;border-radius:12px!important}
.r61775-new-card .r61649-match-card{padding:9px 8px!important}.r61775-new-card .r61649-match-card span,.r61775-new-card .r61649-match-card small{font-size:11px!important}

.r61775-part-toolbar{display:grid!important;grid-template-columns:minmax(360px,1fr) auto auto auto;align-items:center!important;gap:8px!important}
.r61775-part-toolbar [data-only-common].is-active{background:#eef2ff;color:#4338ca;border-color:#c7d2fe}
.r61775-more-filters{position:relative}.r61775-more-filters>summary{list-style:none;cursor:pointer;border:1px solid #dbe2ea;background:#fff;border-radius:9px;padding:9px 12px;font-size:13px;color:#475569}.r61775-more-filters>summary::-webkit-details-marker{display:none}
.r61775-more-filters>div{position:absolute;right:0;top:44px;z-index:20;width:320px;padding:10px;background:#fff;border:1px solid #dbe2ea;border-radius:12px;box-shadow:0 16px 38px rgba(15,23,42,.14);display:grid;gap:8px}.r61775-more-filters>div>*{width:100%}
.r61775-selected-count{font-size:12px;color:#64748b;white-space:nowrap}
.r61775-select-shell .r610-pick-layout{grid-template-columns:minmax(220px,17%) minmax(620px,1fr) minmax(300px,24%)!important}
.r61775-select-shell .r610-pick-layout.no-detail{grid-template-columns:minmax(220px,18%) minmax(720px,1fr) 0!important}
.r61775-select-shell .r610-list>div{padding:2px 8px 8px!important}.r61775-select-shell .r610-part{border-radius:8px!important;margin:0!important;min-height:58px}.r61775-select-shell .r610-part>button{grid-template-columns:44px minmax(0,1fr) 100px!important;padding:7px 8px 7px 0!important}.r61775-select-shell .r610-part img,.r61775-select-shell .r610-part i{width:44px!important;height:38px!important}.r61775-select-shell .r610-part strong{font-size:13px}.r61775-select-shell .r610-part small,.r61775-select-shell .r610-part em{font-size:11px!important}.r61775-select-shell .r610-part>button>b{text-align:right;font-size:11px!important;color:#4f46e5!important}.r61775-code{display:inline!important;font-weight:500!important;color:#94a3b8!important;margin-left:5px}
.r61775-detail-head{font-size:13px;font-weight:800;color:#334155;padding-bottom:10px;margin-bottom:10px;border-bottom:1px solid #e2e8f0}

.r61775-process-shell{overflow:auto!important}.r61775-process-shell>.r610-toolbar{position:sticky;top:0;z-index:5;background:#fff}
.r61775-process-shell .r61688-process-toolbar{grid-template-columns:minmax(330px,1fr) minmax(220px,.45fr) auto auto!important}
.r61775-process-groups{padding:8px 14px 18px;display:grid;gap:10px}
.r61775-process-group{display:grid;gap:7px}.r61775-process-group>header{display:flex;justify-content:space-between;align-items:center;padding:5px 2px}.r61775-process-group>header h3{font-size:13px;margin:0;color:#334155}.r61775-process-group>header span{font-size:11px;color:#94a3b8}
.r61775-process-group .r610-process-grid{padding:0!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;overflow:visible!important}
.r61775-process-group .r610-process{min-height:72px!important;padding:9px!important;background:#fff}
.r61775-process-group .r610-process>button strong{font-size:13px}.r61775-process-group .r610-process>button small{display:flex!important;gap:5px;margin:4px 0!important}.r61775-process-group .r610-process>button small i{font-style:normal;font-size:10px;padding:2px 6px;border-radius:999px;background:#eef2ff;color:#4f46e5}.r61775-process-group .r610-process>button em{font-size:11px!important;line-height:1.45}
.r61775-process-create{margin:10px 14px 4px;border:1px solid #dbe5f1;border-radius:14px;background:#fbfcff;padding:14px;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:11px 14px}
.r61775-process-create-head{grid-column:1/-1;display:flex;justify-content:space-between}.r61775-process-create-head>div{display:grid;gap:2px}.r61775-process-create-head b{font-size:14px}.r61775-process-create-head span{font-size:11px;color:#64748b}
.r61775-process-create label{display:grid;gap:5px;font-size:12px;font-weight:700;color:#475569}.r61775-process-create textarea{resize:vertical;min-height:72px}
.r61775-process-create footer{grid-column:1/-1;display:flex;justify-content:flex-end}.r61775-category-inline{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:7px}
.r61775-process-category-form{margin:8px 14px!important;background:#fff!important;border-style:dashed!important}.r61775-process-category-form>div span{font-size:11px!important}

/* Product BOM edit drawer: one master summary + one editable product scope. */
.r61775-master-summary{display:grid;gap:10px;padding:13px 14px;margin:8px 0 12px;border:1px solid #bfdbfe;background:#f8fbff;border-radius:13px}
.r61775-master-summary>header{display:flex;justify-content:space-between;align-items:center;gap:10px}.r61775-master-summary>header strong{font-size:13px}.r61775-master-summary>header span{font-size:10px;font-weight:800;color:#4f46e5;background:#eef2ff;padding:3px 7px;border-radius:999px}
.r61775-master-summary dl{display:grid;grid-template-columns:70px minmax(100px,.7fr) 52px minmax(120px,1fr);gap:7px 9px;margin:0;align-items:center}.r61775-master-summary dt{font-size:11px;color:#64748b}.r61775-master-summary dd{margin:0;font-size:12px;font-weight:650;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.r61775-master-summary small{color:#64748b;font-size:11px}
.r61775-bom-scope{display:flex!important;justify-content:space-between!important;align-items:flex-end!important;gap:10px!important;padding:0 0 9px!important;margin:12px 0 10px!important;background:transparent!important;border:0!important;border-bottom:1px solid #e2e8f0!important;border-radius:0!important}.r61775-bom-scope strong{font-size:14px}.r61775-bom-scope span{font-size:11px!important;max-width:70%;text-align:right}
[data-bom-workspace-root] .bom-simple-grid{gap:12px 14px!important}
[data-bom-workspace-root] .bom-simple-grid>.field>label{font-size:12px!important}
[data-bom-workspace-root] .bom-primary-actions{position:sticky;bottom:0;background:#fff;border-top:1px solid #e2e8f0;margin:14px -18px -18px!important;padding:12px 18px!important;z-index:4}

@media(max-width:1200px){.r61775-process-group .r610-process-grid{grid-template-columns:repeat(3,minmax(0,1fr))!important}.r61775-new-layout{grid-template-columns:250px 1fr}.r61775-select-shell .r610-pick-layout{grid-template-columns:220px 1fr!important}.r61775-select-shell .r610-detail{display:none!important}.r61775-part-toolbar{grid-template-columns:1fr auto auto!important}.r61775-selected-count{display:none}}
@media(max-width:820px){.r61775-builder-steps{padding:8px 12px}.r61775-builder-steps small{display:none}.r61775-new-layout{grid-template-columns:1fr}.r61775-create-method{display:none}.r61775-more-data>div,.r61775-process-create{grid-template-columns:1fr}.r61775-process-group .r610-process-grid{grid-template-columns:1fr!important}.r61775-part-toolbar{grid-template-columns:1fr 1fr!important}.r61775-part-toolbar input{grid-column:1/-1}.r61775-master-summary dl{grid-template-columns:70px 1fr}}
