/* /full-ui-closure-r61683.css */
/* R6.16.83 full-site interaction + visual closure.  Keep this file last in head. */
:root{--r61683-gap:12px;--r61683-soft:#f6f8fc;--r61683-border:#e1e6ef;--r61683-text:#172033}
html,body{max-width:100%;overflow-x:hidden}
.cui-wrapper,.cui-main,.container,.page-shell,.content-shell,main{min-width:0;max-width:100%}
.card,.panel,.section-card,form,fieldset,label{min-width:0}
input,select,textarea{max-width:100%;min-width:0}
img{max-width:100%;height:auto}
.actions,.toolbar,.filter-row,.form-actions,.page-actions,.r61623-template-actions{flex-wrap:wrap;min-width:0}
.table-wrap,.table-responsive,[data-table-scroll]{max-width:100%;overflow-x:auto;overscroll-behavior-inline:contain;scrollbar-gutter:stable}
.table-wrap[data-r61683-wide]:not(.is-at-end)::after,.table-responsive[data-r61683-wide]:not(.is-at-end)::after{content:'横向滚动查看更多 →';position:sticky;right:8px;bottom:6px;float:right;margin-top:-30px;padding:5px 9px;border:1px solid #dfe5ef;border-radius:999px;background:rgba(255,255,255,.94);box-shadow:0 4px 12px rgba(20,35,65,.08);font-size:11px;color:#65718a;pointer-events:none;z-index:6}
/* Side bar geometry.  v070 full nav is 232px, collapsed is 76px. */
@media(min-width:821px){
 body.cui-app:not(.template-studio-page){--sidebar-width:232px}
 .cui-shell{width:100%;max-width:100%;min-width:0}
 .cui-wrapper{width:calc(100% - var(--sidebar-width));max-width:calc(100% - var(--sidebar-width));min-width:0}
 .sidebar-collapsed body.cui-app:not(.template-studio-page){--sidebar-width:76px}
 .sidebar-collapsed body.cui-app:not(.template-studio-page) .cui-wrapper{margin-left:76px;width:calc(100% - 76px);max-width:calc(100% - 76px)}
}
/* Dense list/filter pages */
@media(max-width:1180px){
 .filter-grid,.search-filter-grid,.r61674-product-filter-grid,.customer-filter-grid,.supplier-filter-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}
 .filter-grid>* ,.search-filter-grid>*{min-width:0}
}
@media(max-width:760px){.filter-grid,.search-filter-grid,.r61674-product-filter-grid,.customer-filter-grid,.supplier-filter-grid{grid-template-columns:1fr!important}}
/* Customers / suppliers: keep identity visible and actions reachable */
#customerTable th:last-child,#customerTable td:last-child,.supplier-table th:last-child,.supplier-table td:last-child{position:sticky;right:0;background:inherit;z-index:2}
@media(max-width:1100px){
 .customer-list-page .table,.supplier-list-page .table{min-width:900px}
 .customer-list-page .table-wrap,.supplier-list-page .table-wrap{border-radius:12px}
}
/* Company / brand / logo */
@media(max-width:1100px){
 .brand-assets-layout,.brand-identity-grid,.company-profile-grid,.r61655-brand-grid{grid-template-columns:1fr!important}
 .brand-assets-layout>* ,.brand-identity-grid>* ,.company-profile-grid>*{min-width:0!important}
 .brand-assets-page .actions,.brand-assets-page .page-actions{justify-content:flex-start!important}
}
/* Organization / permission manager */
@media(max-width:1180px){
 .organization-layout,.permission-layout,.role-permission-grid,.r61638-permission-grid{grid-template-columns:1fr!important}
 .permission-summary,.permission-panel{position:static!important;max-width:100%!important}
}
/* Product tabs and context */
.product-tabs,.product-context-tabs,.r61674-product-tabs{max-width:100%;overflow-x:auto;white-space:nowrap;scrollbar-width:thin}
/* Document studio: preview must not push editor out of viewport */
@media(max-width:1280px){
 .document-studio-layout,.document-workspace,.r6159-studio-layout{grid-template-columns:1fr!important}
 .document-preview-pane,.r6159-preview-pane{position:static!important;max-height:none!important;min-width:0!important}
}
/* Total template preview: paper itself may be wide, but page may not be */
.template-total-editor .paper-stage,.total-template-editor .paper-stage,.r6144-total-paper-wrap{max-width:100%;overflow:auto!important}
.template-total-editor .paper,.total-template-editor .paper,.r6144-total-paper{max-width:none;transform-origin:top left}
/* Template field usability */
.template-field-quick-filter{display:flex;gap:7px;align-items:center;padding:10px;margin:8px 0 10px;border:1px solid var(--r61683-border);border-radius:12px;background:#fff;position:sticky;top:0;z-index:4}
.template-field-quick-filter input{flex:1 1 200px;min-width:0;padding:9px 11px;border:1px solid #dfe4ee;border-radius:9px}
.template-field-quick-filter button{border:1px solid #dfe4ee;background:#fff;color:#536079;border-radius:999px;padding:7px 10px;cursor:pointer;white-space:nowrap}
.template-field-quick-filter button.is-active{border-color:#9aa0ff;background:#f0efff;color:#5148df}
.template-field-card.r61683-filtered-out{display:none!important}
@media(max-width:720px){.template-field-quick-filter{flex-wrap:wrap}.template-field-quick-filter input{flex-basis:100%}}
/* Traceability: show data, reveal mutation forms only on intent */
.r61683-trace-page .r61683-row-action{display:inline-flex;align-items:center;gap:6px;white-space:nowrap}
.r61683-trace-page details.r61683-inline-action{min-width:140px}
.r61683-trace-page details.r61683-inline-action>summary{list-style:none;cursor:pointer;color:#4f46e5;font-weight:700;padding:6px 8px;border:1px solid #e2e5f1;border-radius:8px;background:#fff}
.r61683-trace-page details.r61683-inline-action>summary::-webkit-details-marker{display:none}
.r61683-trace-page details.r61683-inline-action[open]{min-width:230px}
.r61683-trace-page details.r61683-inline-action form{display:grid;gap:6px;margin-top:7px;padding:8px;border:1px solid #e3e7ef;border-radius:10px;background:#f8f9fd}
.r61683-trace-page .r61683-job-actions[hidden]{display:none!important}
.r61683-trace-page .v071-job-card{align-items:flex-start}
.r61683-trace-page .r61683-job-actions{grid-template-columns:repeat(3,minmax(100px,1fr));width:100%;margin-top:8px}
@media(max-width:1100px){.r61683-trace-page .r61683-job-actions{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:700px){.r61683-trace-page .r61683-job-actions{grid-template-columns:1fr}}
/* Wide business tables retain context while scrolling */
.r61683-outsource-page .table-wrap table{min-width:1450px}
.r61683-outsource-page .table-wrap th:first-child,.r61683-outsource-page .table-wrap td:first-child{position:sticky;left:0;background:#fff;z-index:3}
.r61683-outsource-page .table-wrap th:nth-child(2),.r61683-outsource-page .table-wrap td:nth-child(2){position:sticky;left:72px;background:#fff;z-index:3}
.r61683-bom-advanced .table-wrap table,.bom-advanced-table{min-width:1550px}
.r61683-bom-advanced .table-wrap th:first-child,.r61683-bom-advanced .table-wrap td:first-child,.bom-advanced-table th:first-child,.bom-advanced-table td:first-child{position:sticky;left:0;background:#fff;z-index:3}
.r61683-bom-advanced .table-wrap thead th,.bom-advanced-table thead th{position:sticky;top:0;background:#f7f8fc;z-index:2}
/* Supplier advanced: long select options may not set page intrinsic width */
.r61659-supplier-page .supplier-batch-filter label{min-width:0}
.r61659-supplier-page .supplier-batch-filter :is(input,select){width:100%;max-width:100%;min-width:0}
.r61659-supplier-page .supplier-batch-table tr[hidden]{display:none!important}
@media(max-width:1100px){
 .r61659-supplier-page .supplier-batch-kpis{grid-template-columns:repeat(3,minmax(0,1fr))!important}
 .r61659-supplier-page .supplier-export-controls{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-items:end;width:100%}
 .r61659-supplier-page .supplier-export-controls>label{min-width:0;width:100%}
 .r61659-supplier-page .supplier-export-controls>.r61625-export-reason,.r61659-supplier-page .supplier-export-controls>.r61651-selection-gate{grid-column:1/-1}
}
@media(min-width:761px) and (max-width:1280px){
 .r61659-supplier-page .supplier-batch-table tr{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));column-gap:18px;align-items:start;position:relative}
 .r61659-supplier-page .supplier-batch-table tr[hidden]{display:none!important}
 .r61659-supplier-page .supplier-batch-table td{width:auto!important;min-width:0!important}
 .r61659-supplier-page .supplier-batch-table td:first-child{position:absolute!important;width:auto!important}
 .r61659-supplier-page .supplier-batch-table td:last-child{grid-column:1/-1}
 .r61659-supplier-page .supplier-product-cell{min-width:0}
}
@media(max-width:760px){
 .r61659-supplier-page .supplier-batch-kpis{grid-template-columns:repeat(2,minmax(0,1fr))!important}
 .r61659-supplier-page .supplier-export-controls{grid-template-columns:1fr}
 .r61659-supplier-page .supplier-export-controls>*{grid-column:1!important}
}
/* Dialogs / drawers / dropdowns */
dialog,.modal,.drawer,.side-drawer,.bom-side-editor,[role=dialog]{max-width:min(94vw,980px)!important;max-height:90vh!important}
dialog[open],.modal.is-open,.drawer.is-open,.side-drawer.is-open,.bom-side-editor.is-open{overflow:auto}
.r61622-more>div,.dropdown-menu,.popover-menu{max-width:min(360px,calc(100vw - 24px));overflow-wrap:anywhere}
/* User management expanded forms */
@media(max-width:1100px){
 .user-management-details .form-grid,.user-admin-panel .form-grid,.staff-admin-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}
 .user-management-details,.user-admin-panel{max-height:72vh;overflow:auto}
}
@media(max-width:700px){.user-management-details .form-grid,.user-admin-panel .form-grid,.staff-admin-grid{grid-template-columns:1fr!important}}
.r61683-trace-page details.r61683-work-section>summary{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:13px 15px;border-radius:12px;cursor:pointer;background:#fff;font-weight:750}
.r61683-trace-page details.r61683-work-section>summary small{font-weight:500;color:#748096}
.r61683-trace-page details.r61683-work-section>.r61675-history-body{padding-top:8px}
/* R6.16.82 precise-fix dialog was centered in the whole viewport and could sit under the fixed sidebar. */
.r61682-precise-fix{z-index:1200!important;position:fixed!important;top:5vh!important;bottom:auto!important;margin:0!important}
@media(min-width:821px){
 .r61682-precise-fix{left:calc((100vw + var(--sidebar-width,232px))/2)!important;right:auto!important;transform:translateX(-50%);width:min(760px,calc(100vw - var(--sidebar-width,232px) - 32px))!important;max-width:calc(100vw - var(--sidebar-width,232px) - 32px)!important}
 .sidebar-collapsed body .r61682-precise-fix{left:calc((100vw + 76px)/2)!important;width:min(760px,calc(100vw - 108px))!important;max-width:calc(100vw - 108px)!important}
}
@media(max-width:820px){.r61682-precise-fix{left:50%!important;right:auto!important;transform:translateX(-50%);width:calc(100vw - 24px)!important;max-width:calc(100vw - 24px)!important}}

/* /personnel-catalog-r61684.css */
/* R6.16.84 人员分层、弹窗管理与产品目录联动 */
.r61684-users-page .cui-content{padding-bottom:40px}.r61684-users-hero{display:flex;align-items:center;justify-content:space-between;gap:24px;margin:0 0 16px;padding:22px 26px;border:1px solid var(--border);border-radius:18px;background:linear-gradient(135deg,#fff 0%,#f7f8ff 100%);box-shadow:var(--shadow-sm)}.r61684-users-hero h2{margin:4px 0 7px;font-size:25px}.r61684-users-hero p{margin:0;color:var(--muted)}.r61684-users-hero-actions{display:flex;align-items:center;gap:14px;flex:0 0 auto}.r61684-users-hero-actions>div{display:grid;min-width:86px;text-align:center;padding:9px 14px;border-radius:12px;background:#eef2ff;color:#4338ca}.r61684-users-hero-actions strong{font-size:25px;line-height:1}.r61684-users-hero-actions span{font-size:11px;margin-top:4px}.r61684-owner-card{display:grid;grid-template-columns:minmax(0,1fr) auto auto;align-items:center;gap:18px;margin-bottom:16px;border-color:#c7d2fe;background:linear-gradient(90deg,#fafaff,#fff)}.r61684-owner-main{display:flex;align-items:center;gap:13px}.r61684-owner-mark{width:42px;height:42px;display:grid;place-items:center;border-radius:13px;background:#6366f1;color:#fff;font-weight:900}.r61684-owner-main h3{margin:3px 0;font-size:18px}.r61684-owner-main p{margin:0;color:var(--muted)}.r61684-owner-status{display:grid;justify-items:end;gap:5px}.r61684-owner-status small{color:var(--muted)}.r61684-employee-list-card{padding-bottom:12px}.r61684-list-head{margin-bottom:10px}.r61684-users-page .table td{vertical-align:middle}.r61684-users-page .table td small{display:block;margin-top:3px;color:var(--muted)}
.r61684-person-dialog{width:min(1120px,calc(100vw - 48px));max-width:none;max-height:calc(100vh - 48px);padding:0;border:0;border-radius:20px;background:transparent;box-shadow:none}.r61684-person-dialog::backdrop{background:rgba(15,23,42,.48);backdrop-filter:blur(3px)}.r61684-dialog-shell{display:flex;flex-direction:column;max-height:calc(100vh - 48px);overflow:hidden;border:1px solid #dbe3ef;border-radius:20px;background:#f8fafc;box-shadow:0 24px 70px rgba(15,23,42,.25)}.r61684-dialog-medium{width:min(720px,100%);margin:auto}.r61684-dialog-shell>header{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;padding:20px 22px 16px;border-bottom:1px solid #e5e7eb;background:#fff}.r61684-dialog-shell>header h2{margin:3px 0 4px;font-size:22px}.r61684-dialog-shell>header p{margin:0;color:var(--muted)}.r61684-dialog-close{width:36px;height:36px;display:grid;place-items:center;border:0;border-radius:10px;background:#f1f5f9;color:#475569;font-size:24px;cursor:pointer}.r61684-dialog-close:hover{background:#e2e8f0}.r61684-dialog-form,.r61684-dialog-shell>[data-person-panel]{min-height:0;overflow:auto}.r61684-dialog-form{display:grid;gap:0}.r61684-dialog-section{padding:18px 22px;border-bottom:1px solid #e5e7eb;background:#fff}.r61684-dialog-section h3{margin:0 0 12px}.r61684-form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:13px 16px}.r61684-form-grid label{display:grid;gap:6px;min-width:0;font-size:13px;font-weight:700;color:#334155}.r61684-form-grid input,.r61684-form-grid select,.r61684-form-grid textarea{width:100%;min-width:0}.r61684-form-grid small{font-size:11px;font-weight:400;color:var(--muted)}.r61684-span-2{grid-column:1/-1}.r61684-switch-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-top:12px}.r61684-switch-grid>label{display:flex;align-items:flex-start;gap:10px;padding:11px 12px;border:1px solid #e2e8f0;border-radius:12px;background:#f8fafc;cursor:pointer}.r61684-switch-grid input[type=checkbox]{margin-top:3px;flex:0 0 auto}.r61684-switch-grid span{display:grid;gap:3px}.r61684-switch-grid small{font-size:11px;color:var(--muted)}.r61684-section-head{display:flex;justify-content:space-between;align-items:flex-start;gap:16px;margin-bottom:12px}.r61684-section-head h3{margin:0 0 4px}.r61684-section-head p{margin:0;color:var(--muted);font-size:12px}.r61684-permission-groups{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.r61684-permission-groups fieldset{min-width:0;margin:0;padding:10px;border:1px solid #dbe3ef;border-radius:12px;background:#fbfdff}.r61684-permission-groups legend{padding:0 5px;font-weight:800;color:#334155}.r61684-permission-groups fieldset>div{display:grid;gap:5px}.r61684-permission-groups label{display:flex;align-items:center;gap:7px;min-width:0;padding:6px 7px;border-radius:8px;background:#fff;border:1px solid #edf1f5;font-size:12px}.r61684-permission-groups label span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.r61684-dialog-form>footer{position:sticky;bottom:0;z-index:3;display:flex;justify-content:flex-end;gap:9px;padding:14px 22px;border-top:1px solid #e5e7eb;background:rgba(255,255,255,.97);backdrop-filter:blur(8px)}.r61684-dialog-tabs{display:flex;gap:6px;padding:10px 18px;border-bottom:1px solid #e5e7eb;background:#fff}.r61684-dialog-tabs button{padding:9px 14px;border:0;border-radius:9px;background:transparent;color:#64748b;font-weight:700;cursor:pointer}.r61684-dialog-tabs button.is-active{background:#eef2ff;color:#4338ca}.r61684-dialog-shell>[data-person-panel]{display:none}.r61684-dialog-shell>[data-person-panel].is-active{display:block}.r61684-checkline{display:flex;align-items:center;gap:8px;margin-top:12px;font-size:13px}.r61684-danger-actions{display:flex;flex-wrap:wrap;gap:9px;padding:15px 22px;background:#fff}.r61684-danger-actions form{margin:0}.r61684-danger-actions .btn{height:38px}.r61684-role-permissions .notice{margin-top:10px}.r61684-person-dialog button,.r61684-person-dialog input,.r61684-person-dialog select,.r61684-person-dialog textarea{box-sizing:border-box}
.r61684-preset-note{display:flex;align-items:center;gap:8px;padding:9px 11px;border-radius:10px;background:#eef2ff;color:#4338ca;font-size:12px;font-weight:700}.r61684-target-field[hidden]{display:none!important}.r61684-catalog-builder .document-audience-card{transition:border-color .16s ease,background .16s ease,transform .16s ease}.r61684-catalog-builder .document-audience-card.selected{transform:translateY(-1px)}.r61684-catalog-builder [data-price-config].is-disabled{opacity:.48}.r61684-catalog-builder [data-price-config].is-disabled select{pointer-events:none}.r61684-catalog-builder .r61684-live-preview-state{font-size:12px;color:#4f46e5;font-weight:700}.r61684-catalog-builder .r61684-preset-tag{display:inline-flex;align-items:center;padding:3px 7px;border-radius:999px;background:#eef2ff;color:#4338ca;font-size:11px;font-weight:800;margin-left:7px}
@media(max-width:1100px){.r61684-owner-card{grid-template-columns:1fr auto}.r61684-owner-card>button{grid-column:1/-1;width:max-content}.r61684-permission-groups{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:760px){.r61684-users-hero{align-items:flex-start;flex-direction:column}.r61684-users-hero-actions{width:100%;justify-content:space-between}.r61684-owner-card{grid-template-columns:1fr}.r61684-owner-status{justify-items:start}.r61684-person-dialog{width:calc(100vw - 20px);max-height:calc(100vh - 20px)}.r61684-dialog-shell{max-height:calc(100vh - 20px)}.r61684-form-grid,.r61684-switch-grid,.r61684-permission-groups{grid-template-columns:1fr}.r61684-span-2{grid-column:auto}.r61684-dialog-tabs{overflow:auto}.r61684-dialog-shell>header,.r61684-dialog-section{padding-left:15px;padding-right:15px}}
.r61684-preset-notice{display:flex;align-items:center;gap:10px;margin:10px 0 13px;padding:10px 13px;border:1px solid #dbe3ef;border-radius:12px;background:#f8fafc;color:#475569;font-size:12px}.r61684-preset-notice strong{color:#1e293b}.r61684-preset-notice.active{border-color:#c7d2fe;background:#eef2ff;color:#4338ca}.r61684-preset-chip{display:inline-flex;width:max-content;margin-top:8px;padding:3px 8px;border-radius:999px;background:#f1f5f9;color:#64748b;font-size:10px;font-style:normal;font-weight:800}.document-audience-card.selected .r61684-preset-chip{background:#e0e7ff;color:#4338ca}.r61684-catalog-linked-grid>[hidden]{display:none!important}.r61684-internal-target{display:grid;gap:6px;align-content:start;padding:0}.r61684-internal-target>span{font-size:12px;font-weight:700;color:#334155}.r61684-internal-target>strong{min-height:42px;display:flex;align-items:center;padding:0 12px;border:1px solid #dbe3ef;border-radius:10px;background:#f8fafc}.r61684-internal-target>small{color:var(--muted)}.r61684-catalog-linked-grid label.is-disabled{opacity:.48}.r61684-catalog-linked-grid label.is-disabled select{cursor:not-allowed}.r61684-catalog-builder [data-catalog-field]:disabled+span{opacity:.45}.r61684-catalog-builder .catalog-preview-frame{transition:opacity .15s ease}

/* R6.16.85 personnel dialog safety + compact role template editor */
body.r61685-dialog-open{overflow:hidden!important}
.r61684-person-dialog{max-height:calc(100dvh - 24px)}
.r61684-dialog-shell{max-height:calc(100dvh - 24px);background:var(--fp-surface);border-color:var(--fp-border)}
.r61684-dialog-shell>header,.r61684-dialog-tabs,.r61684-dialog-section,.r61684-danger-actions{background:var(--fp-surface);border-color:var(--fp-border);color:var(--fp-text)}
.r61684-dialog-close{background:var(--fp-surface-2);color:var(--fp-text)}
.r61684-switch-grid>label,.r61684-permission-groups fieldset{background:var(--fp-surface-2);border-color:var(--fp-border);color:var(--fp-text)}
.r61684-permission-groups label{background:var(--fp-surface);border-color:var(--fp-border);color:var(--fp-text)}
.r61684-permission-groups label span{white-space:normal;line-height:1.35}
.r61684-dialog-form>footer{background:color-mix(in srgb,var(--fp-surface) 96%,transparent);border-color:var(--fp-border)}
.r61684-permission-groups{grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:9px}
.r61685-permission-editor{padding:0!important}
.r61685-permission-editor>summary{list-style:none;display:grid;grid-template-columns:minmax(0,1fr) auto auto;align-items:center;gap:10px;padding:15px 22px;cursor:pointer;background:var(--fp-surface);color:var(--fp-text)}
.r61685-permission-editor>summary::-webkit-details-marker{display:none}
.r61685-permission-editor>summary>div{display:grid;gap:3px}.r61685-permission-editor>summary small{color:var(--fp-muted);font-weight:500}.r61685-permission-editor>summary>b{font-size:12px;color:var(--fp-primary-strong)}
.r61685-permission-editor.is-dirty>summary{background:color-mix(in srgb,var(--fp-warning) 8%,var(--fp-surface))}.r61685-permission-editor.is-dirty>summary>b:before{content:'已修改 · '}
.r61685-permission-body{padding:0 22px 18px}.r61685-permission-body>.notice{margin:0 0 12px}.r61685-permission-body>p{margin:0 0 12px;font-size:12px}
.r61685-permission-editor:not([open]) .r61685-permission-body{display:none}
[data-coreui-theme="dark"] .r61684-dialog-tabs button.is-active{background:var(--fp-primary-soft);color:var(--fp-primary-strong)}
@media(max-width:760px){.r61685-permission-editor>summary{padding-left:15px;padding-right:15px}.r61685-permission-body{padding-left:15px;padding-right:15px}}

/* /order-entry-closure-r61686.css */
/* R6.16.86 Order Entry Usability Closure */
body.r61638-picker-open{overflow:hidden!important}
.r61686-order-entry{gap:12px!important}
.r61686-order-entry .r61686-order-head{padding:12px 16px!important;min-height:auto}
.r61686-order-entry .r61686-order-head h2{font-size:18px!important;margin-bottom:2px!important}
.r61686-order-entry .r61686-order-head p{font-size:12px!important}
.r61686-order-entry .scenario-focus-bar{padding:9px 12px!important}
.r61686-order-entry .scenario-focus-bar a{font-size:12px;color:var(--fp-muted)}
.r61686-order-entry .r61686-order-kind{padding:10px 12px!important}
.r61686-order-entry .r61686-order-kind .order-kind-grid{gap:6px}
.r61686-order-entry .r61686-entry-tools{display:block!important;padding:0!important;overflow:hidden}
.r61686-order-entry .r61686-entry-tools>summary{display:flex;align-items:center;gap:10px;padding:11px 14px;cursor:pointer;list-style:none}
.r61686-order-entry .r61686-entry-tools>summary::-webkit-details-marker{display:none}
.r61686-order-entry .r61686-entry-tools>summary span{color:var(--fp-muted);font-size:11px;font-weight:500}
.r61686-order-entry .r61686-entry-tools[open]>summary{border-bottom:1px solid var(--fp-border)}
.r61686-order-entry .r61686-mode-row{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:12px 14px;border-bottom:1px solid var(--fp-border)}
.r61686-order-entry .r61686-mode-row>div:first-child{display:grid;gap:2px}
.r61686-order-entry .r61686-mode-row span{font-size:11px;color:var(--fp-muted)}
.r61686-order-entry .r61686-tool-row{display:flex;justify-content:flex-end;gap:7px;flex-wrap:wrap;padding:10px 14px;background:var(--fp-surface-2)}
.r61686-order-entry .r61686-tool-row .btn[disabled]{opacity:.45;cursor:not-allowed}

/* Product picker must be a modal in BOTH classic and standard order modes. */
.r61650-order-entry .product-picker-sheet.r61686-product-picker.classic-picker-open{display:flex!important;position:fixed!important;inset:4vh max(18px,calc((100vw - 1180px)/2))!important;z-index:1400;flex-direction:column;overflow:hidden;margin:0!important;padding:14px!important;border:1px solid var(--fp-border-strong)!important;border-radius:18px;background:var(--fp-surface);box-shadow:0 0 0 100vmax rgba(15,23,42,.44),0 30px 90px rgba(15,23,42,.28)!important}
.r61650-order-entry .product-picker-sheet.r61686-product-picker.classic-picker-open:before{content:none!important}
.r61650-order-entry .product-picker-sheet.r61686-product-picker .section-heading{flex:0 0 auto;margin-bottom:8px}
.r61650-order-entry .product-picker-sheet.r61686-product-picker .r613-product-tabs{flex:0 0 auto;margin-bottom:8px}
.r61650-order-entry .product-picker-sheet.r61686-product-picker [data-product-mode][disabled]{opacity:.42;cursor:not-allowed}
.r61650-order-entry .product-picker-sheet.r61686-product-picker .product-picker-toolbar{flex:0 0 auto;grid-template-columns:minmax(300px,1fr) minmax(150px,.3fr) minmax(110px,.2fr);margin-bottom:8px}
.r61650-order-entry .product-picker-sheet.r61686-product-picker .r613-customer-product-hint{flex:0 0 auto;margin-bottom:8px;padding:7px 10px;font-size:11px}
.r61650-order-entry .product-picker-sheet.r61686-product-picker .order-product-picker{flex:1 1 auto;min-height:0;max-height:none;overflow:auto;display:grid!important;grid-template-columns:1fr!important;grid-auto-rows:max-content!important;align-content:start!important;gap:8px;padding:2px 4px 8px 2px}
.r61650-order-entry .product-picker-sheet.r61686-product-picker .order-product-card{display:grid!important;grid-template-columns:58px minmax(250px,1fr) minmax(92px,auto) 86px 64px!important;grid-auto-rows:auto!important;align-items:center!important;gap:10px!important;min-height:82px!important;height:auto!important;padding:10px 12px!important;overflow:visible!important;cursor:default}
.r61650-order-entry .product-picker-sheet.r61686-product-picker .product-card-image{width:58px!important;height:58px!important}
.r61650-order-entry .product-picker-sheet.r61686-product-picker .product-card-main{align-self:center!important;justify-content:center!important;min-height:0!important;gap:3px!important}
.r61650-order-entry .product-picker-sheet.r61686-product-picker .product-card-metrics{margin-top:2px!important}
.r61650-order-entry .product-picker-sheet.r61686-product-picker .product-card-metrics i{background:var(--fp-surface-2);color:var(--fp-muted)}
.r61650-order-entry .product-picker-sheet.r61686-product-picker .product-card-metrics .r61686-stock-zero{background:#fff7ed;color:#9a5b13}
.r61650-order-entry .product-picker-sheet.r61686-product-picker .r61686-picker-price{justify-self:end;font-size:12px;white-space:nowrap}
.r61650-order-entry .product-picker-sheet.r61686-product-picker .r61686-price-missing{justify-self:end;padding:4px 7px;border-radius:999px;background:var(--fp-surface-2);color:var(--fp-muted);font-size:10px;font-weight:700;white-space:nowrap}
.r61650-order-entry .product-picker-sheet.r61686-product-picker .r613-picker-qty{width:86px}
.r61650-order-entry .product-picker-sheet.r61686-product-picker .r613-picker-qty input{width:86px!important;min-height:36px!important}
.r61650-order-entry .product-picker-sheet.r61686-product-picker .product-picker-summary{position:sticky!important;top:auto!important;bottom:0!important;z-index:5;flex:0 0 auto;margin:0!important;padding:10px 2px 0!important;border-top:1px solid var(--fp-border);border-bottom:0!important;background:var(--fp-surface)}
.r61650-order-entry .product-picker-sheet.r61686-product-picker .product-picker-summary button[disabled]{opacity:.45;cursor:not-allowed}

/* Main product area: one obvious path, no giant empty slab. */
.r61686-order-entry .r61686-order-products{padding:12px!important}
.r61686-order-entry .r61686-order-products>.section-heading{align-items:flex-end!important;gap:12px}
.r61686-order-entry .r61686-order-products>.section-heading p{max-width:720px}
.r61686-order-entry .classic-line-actions{justify-content:flex-end}
.r61686-order-entry .classic-inline-product-search{flex:1 1 520px;max-width:760px}
.r61686-order-entry .classic-inline-product-search input{width:auto!important;flex:1 1 auto;min-width:260px}
.r61686-order-entry .empty-state.compact{min-height:72px!important;padding:12px!important}
.r61686-order-entry:not(.has-order-lines) .order-image-option,
.r61686-order-entry:not(.has-order-lines) .order-auto-plan-option{display:none!important}
.r61686-order-entry.has-order-lines .order-image-option,
.r61686-order-entry.has-order-lines .order-auto-plan-option{display:flex}

/* Quick product: keep it genuinely quick. */
.r61686-product-quick{width:min(660px,calc(100vw - 30px))!important}
.r61686-product-quick form{max-height:calc(100vh - 34px);grid-template-rows:auto minmax(0,1fr) auto auto}
.r61686-product-quick>.quick-form-grid,.r61686-product-quick form>.quick-form-grid{overflow:auto;padding:14px 16px!important;gap:10px!important}
.r61686-product-quick header,.r61686-product-quick footer{padding:13px 16px!important}
.r61686-product-quick .r61686-optional{color:var(--fp-muted);font-size:10px;font-weight:500}
.r61686-product-quick .field>small{margin-top:2px;color:var(--fp-muted);font-size:10px;line-height:1.45}
.r61686-product-quick .r61669-quick-extra{padding:9px 11px!important}
.r61686-product-quick .r61669-quick-extra .quick-form-grid{padding:11px 0 0!important}
.r61686-carton-size>div{display:grid;grid-template-columns:1fr auto 1fr auto 1fr;gap:6px;align-items:center}
.r61686-carton-size>div span{color:var(--fp-muted);font-size:12px}
.r61686-image-upload input[type=file]{min-height:54px;border:1px dashed var(--fp-border-strong);background:var(--fp-surface-2)}

@media(max-width:900px){
 .r61650-order-entry .product-picker-sheet.r61686-product-picker.classic-picker-open{inset:10px!important}
 .r61650-order-entry .product-picker-sheet.r61686-product-picker .product-picker-toolbar{grid-template-columns:1fr 1fr}
 .r61650-order-entry .product-picker-sheet.r61686-product-picker .order-product-card{grid-template-columns:52px minmax(0,1fr) 80px 58px!important}
 .r61650-order-entry .product-picker-sheet.r61686-product-picker .r61686-picker-price,.r61650-order-entry .product-picker-sheet.r61686-product-picker .r61686-price-missing{grid-column:3;grid-row:1}
 .r61650-order-entry .product-picker-sheet.r61686-product-picker .r613-picker-qty{grid-column:3;grid-row:2}
 .r61650-order-entry .product-picker-sheet.r61686-product-picker [data-add-one]{grid-column:4;grid-row:1/3}
 .r61686-order-entry .r61686-mode-row{align-items:flex-start;flex-direction:column}
}
@media(max-width:700px){
 .r61650-order-entry .product-picker-sheet.r61686-product-picker .product-picker-toolbar{grid-template-columns:1fr}
 .r61650-order-entry .product-picker-sheet.r61686-product-picker .order-product-card{grid-template-columns:48px minmax(0,1fr)!important}
 .r61650-order-entry .product-picker-sheet.r61686-product-picker .r61686-picker-price,.r61650-order-entry .product-picker-sheet.r61686-product-picker .r61686-price-missing,.r61650-order-entry .product-picker-sheet.r61686-product-picker .r613-picker-qty,.r61650-order-entry .product-picker-sheet.r61686-product-picker [data-add-one]{grid-column:2!important;grid-row:auto!important;justify-self:start}
 .r61686-order-entry .classic-line-actions{align-items:stretch;flex-direction:column}
 .r61686-order-entry .classic-inline-product-search{max-width:none;width:100%}
 .r61686-order-entry .classic-inline-product-search input{min-width:0}
}

/* /workflow-unification-r61687.css */
/* R6.16.87 — order/product master unification, adaptive dialogs and data-entry closure */
body:has(dialog[open]){overflow:hidden!important}
.quick-entity-dialog{max-height:92vh!important;overflow:hidden!important}
.quick-entity-dialog>form{max-height:92vh;overflow:hidden;display:grid;grid-template-rows:auto minmax(0,1fr) auto auto}
.quick-entity-dialog .quick-form-grid{min-height:0;overflow:auto}
.r61687-entry-tools .r61687-tool-note{margin-right:auto;color:var(--fp-muted);font-size:11px;align-self:center;line-height:1.45}
.r61687-entry-tools .r61686-tool-row{align-items:center;gap:8px;flex-wrap:wrap}

/* Product picker: large enough for categories without clipping the product list. */
.r61650-order-entry .product-picker-sheet.r61686-product-picker.classic-picker-open{inset:2.5vh max(16px,calc((100vw - 1420px)/2))!important;border-radius:18px!important;max-height:95vh!important;overflow:hidden!important}
.r61650-order-entry .product-picker-sheet.r61686-product-picker .product-picker-toolbar{grid-template-columns:minmax(360px,1fr) minmax(190px,.35fr) minmax(130px,.2fr)!important}
.r61650-order-entry .product-picker-sheet.r61686-product-picker .r613-category-picker{position:relative;z-index:12}
.r61650-order-entry .product-picker-sheet.r61686-product-picker .r613-category-tree{left:auto!important;right:0!important;width:min(760px,calc(100vw - 56px))!important;max-height:min(68vh,650px)!important;padding:12px!important;border-radius:14px!important;overflow:auto!important;z-index:60!important}
.r61650-order-entry .product-picker-sheet.r61686-product-picker .r613-category-tree section div{grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:4px 8px!important;padding-left:8px!important}
.r61650-order-entry .product-picker-sheet.r61686-product-picker .r613-category-tree section div button{white-space:normal;line-height:1.35;min-height:36px;text-align:left}

/* Order quick-create uses the same semantics as the master form, only fewer fields are visible. */
.quick-entity-dialog.r61687-product-quick{width:min(980px,96vw)!important;max-width:980px!important;max-height:94vh!important;overflow:hidden!important;padding:0!important}
.r61687-product-quick>form{max-height:94vh;display:grid!important;grid-template-rows:auto minmax(0,1fr) auto auto!important;overflow:hidden!important}
.r61687-product-quick>form>header{padding:15px 18px!important;flex:0 0 auto}
.r61687-product-quick .r61687-dialog-head-actions{display:flex;align-items:center;gap:8px}
.r61687-product-quick .r61687-quick-product-grid{overflow:auto!important;min-height:0;padding:16px 18px 18px!important;grid-template-columns:repeat(2,minmax(0,1fr));align-content:start}
.r61687-product-quick .r61669-quick-extra{border:1px solid var(--fp-border);border-radius:13px;background:var(--fp-surface-2);overflow:visible}
.r61687-product-quick .r61669-quick-extra>summary{padding:11px 13px;font-weight:800;cursor:pointer}
.r61687-product-quick .r61669-quick-extra .quick-form-grid{padding:12px;border-top:1px solid var(--fp-border)}
.r61687-product-quick .r61687-inline-unit{display:grid;grid-template-columns:minmax(0,1fr) 86px;gap:7px}
.r61687-product-quick .r61687-image-upload .image-uploader{margin-top:2px}
.r61687-product-quick .r61687-image-upload .upload-preview{grid-template-columns:repeat(6,minmax(96px,1fr));max-height:none}
.r61687-product-quick .r61687-image-upload .upload-preview-item{min-width:0}
.r61687-product-quick footer{flex:0 0 auto}

/* One master form, two density levels. Values and selected images remain in the same DOM. */
.r61687-product-entry-header{align-items:flex-start!important}
.r61687-entry-switch{display:flex;align-items:center;gap:7px;flex-wrap:wrap;margin-top:10px}
.r61687-entry-switch small{color:var(--fp-muted);margin-left:3px;line-height:1.45}
.r61687-product-entry.r61687-entry-quick .r61687-full-only{display:none!important}
.r61687-product-entry.r61687-entry-quick details.pm-details{display:none!important}
.r61687-product-entry.r61687-entry-quick .pm-pack-sheet{display:block!important}
.r61687-product-entry.r61687-entry-quick .pm-product-sheet-body{min-height:0}
.r61687-product-entry.r61687-entry-quick .pm-basic-grid{align-content:start}
.r61687-product-entry .pm-basic-field>small{display:block;margin-top:5px;color:var(--fp-muted);font-size:11px;line-height:1.4}

/* High-information selectors need a desktop-size work area, not a narrow phone-like modal. */
.r64-modal-overlay{padding:14px!important}
.r64-modal{width:min(1480px,98vw)!important;height:min(900px,96vh)!important;max-width:none!important}
.r6156-part-picker-modal .r64-modal{width:min(1580px,98vw)!important;height:min(940px,96vh)!important}
.r6156-part-picker-modal .r69-picker-layout{grid-template-columns:260px minmax(560px,1fr) minmax(330px,390px)!important}
.r6156-part-picker-modal .r69-picker-layout.categories-collapsed{grid-template-columns:0 minmax(620px,1fr) minmax(330px,390px)!important}
.r6156-part-picker-modal .r69-picker-layout.detail-collapsed{grid-template-columns:260px 1fr 0!important}
.r6156-part-picker-modal .r69-picker-layout.categories-collapsed.detail-collapsed{grid-template-columns:0 1fr 0!important}

/* Supplier/collaboration create is a focused form; do not stretch five fields across the entire monitor. */
form.form-page-card:has(select[name="collaborationType"]){max-width:1120px!important;margin-inline:auto!important;padding:18px!important}
form.form-page-card:has(select[name="collaborationType"]) .form-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px 16px}
form.form-page-card:has(select[name="collaborationType"]) textarea{min-height:86px}
form.form-page-card:has(select[name="collaborationType"]) .form-sticky-actions{margin-top:14px!important;padding-top:12px!important}
form.form-page-card:has(select[name="collaborationType"]) .field.span-2{grid-column:1/-1}

/* Theme-safe overrides. */
.r61650-order-entry .r613-category-tree,.r64-modal,.r6156-part-picker-modal .r64-modal{background:var(--fp-surface)!important;color:var(--fp-text)!important;border-color:var(--fp-border)!important}
.r61650-order-entry .r613-category-tree button,.r6156-part-picker-modal button{color:inherit}
body:has(form.form-page-card select[name="collaborationType"]) main,body:has(form.form-page-card select[name="collaborationType"]) .main-content{min-width:0}

@media(max-width:1100px){
 .r61650-order-entry .product-picker-sheet.r61686-product-picker.classic-picker-open{inset:10px!important}
 .r61650-order-entry .product-picker-sheet.r61686-product-picker .r613-category-tree section div{grid-template-columns:repeat(2,minmax(0,1fr))!important}
 .r61687-product-quick .r61687-image-upload .upload-preview{grid-template-columns:repeat(3,minmax(96px,1fr))}
 .r6156-part-picker-modal .r69-picker-layout{grid-template-columns:220px minmax(0,1fr)!important}
 .r6156-part-picker-modal .r69-picker-detail{display:none!important}
 .r6156-part-picker-modal .r69-picker-layout.categories-collapsed{grid-template-columns:0 minmax(0,1fr)!important}
}
@media(max-width:760px){
 .quick-entity-dialog.r61687-product-quick{width:100vw!important;max-width:none!important;max-height:100vh!important;border-radius:0!important}
 .r61687-product-quick>form{max-height:100vh}
 .r61687-product-quick .r61687-quick-product-grid{grid-template-columns:1fr;padding:12px!important}
 .r61687-product-quick .r61687-quick-product-grid>.span2{grid-column:auto!important}
 .r61650-order-entry .product-picker-sheet.r61686-product-picker .product-picker-toolbar{grid-template-columns:1fr!important}
 .r61650-order-entry .product-picker-sheet.r61686-product-picker .r613-category-tree{position:fixed!important;left:12px!important;right:12px!important;top:120px!important;width:auto!important;max-height:65vh!important}
 .r61650-order-entry .product-picker-sheet.r61686-product-picker .r613-category-tree section div{grid-template-columns:1fr!important}
 form.form-page-card:has(select[name="collaborationType"]) .form-grid{grid-template-columns:1fr!important}
 form.form-page-card:has(select[name="collaborationType"]) .field.span-2{grid-column:auto}
}


/* R6.17.7.1 product intake closure: quick means quick, full remains complete. */
.r61771-sales-details{grid-column:1/-1;border:1px solid var(--fp-border);border-radius:12px;background:var(--fp-surface-2);overflow:hidden}
.r61771-sales-details>summary{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 12px;cursor:pointer;list-style:none}
.r61771-sales-details>summary span{display:grid;gap:2px}.r61771-sales-details>summary small,.r61771-sales-details>summary em{font-size:11px;color:var(--fp-muted);font-style:normal}
.r61771-sales-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;padding:12px;border-top:1px solid var(--fp-border)}
.r61687-product-entry.r61687-entry-quick .pm-pack-sheet{display:block!important}.r61687-product-entry.r61687-entry-quick .pm-pack-sheet:not([open]) .r61518-master-section-body{display:none}
.r61687-product-entry.r61687-entry-quick .pm-main-image-sheet{min-height:240px!important;height:240px!important}.r61687-product-entry.r61687-entry-full .pm-main-image-sheet{min-height:420px}
.pm-map-card{border:1px solid var(--fp-border);border-radius:12px;background:var(--fp-surface);overflow:hidden}.pm-map-summary{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 14px;cursor:pointer}.pm-map-summary span{display:grid;gap:3px}.pm-map-summary small{color:var(--fp-muted);font-weight:500}.pm-map-summary em{font-style:normal;color:var(--fp-primary);font-weight:700}.pm-map-card[open]>.pm-map-summary{border-bottom:1px solid var(--fp-border);background:var(--fp-surface-2)}
.pm-language-tabs{display:flex;gap:6px;flex-wrap:wrap;margin:8px 0 10px}.pm-language-tabs button{border:1px solid var(--fp-border);background:var(--fp-surface);border-radius:999px;padding:7px 11px;cursor:pointer}.pm-language-tabs button.is-active{background:var(--fp-primary);border-color:var(--fp-primary);color:#fff}.pm-language-row[hidden]{display:none!important}.pm-language-row{padding:12px;border:1px solid var(--fp-border);border-radius:12px;background:var(--fp-surface-2)}
@media(max-width:900px){.r61771-sales-grid{grid-template-columns:1fr}}

/* R6.17.7.2 product intake cognitive closure */
.r61772-product-entry .pm-main-image-sheet.is-empty{height:210px!important;min-height:210px!important;max-height:210px!important}
.r61772-product-entry .r61772-secondary-info{grid-column:1/-1;border:1px solid var(--fp-border);border-radius:12px;background:var(--fp-surface-2);overflow:hidden}
.r61772-product-entry .r61772-secondary-info>summary{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 12px;cursor:pointer;list-style:none}
.r61772-product-entry .r61772-secondary-info>summary span{display:grid;gap:2px}.r61772-product-entry .r61772-secondary-info>summary small,.r61772-product-entry .r61772-secondary-info>summary em{font-size:11px;color:var(--fp-muted);font-style:normal}
.r61772-secondary-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px 12px;padding:12px;border-top:1px solid var(--fp-border)}
.r61772-secondary-grid .full{grid-column:1/-1}
.r61772-inline-advanced{margin-top:4px}.r61772-inline-advanced>summary{cursor:pointer;color:var(--fp-primary-strong);font-size:10px;font-weight:700;list-style:none}.r61772-inline-advanced>summary::-webkit-details-marker{display:none}.r61772-inline-advanced[open]{padding:7px 8px;border:1px solid var(--fp-border);border-radius:9px;background:var(--fp-surface)}
.r61772-mini-label{display:block;margin-bottom:4px;color:var(--fp-muted);font-size:10px}
.r61772-pack-quantity-warning{grid-column:1/-1;margin:0;padding:7px 9px;border-radius:9px;background:var(--fp-primary-soft);color:var(--fp-primary-strong);font-size:10px}.r61772-pack-quantity-warning.is-warning{background:#fff7e8;color:#9a5a00}
.r61772-empty-customer{display:grid;gap:3px;padding:14px;border:1px dashed var(--fp-border-strong);border-radius:12px;background:var(--fp-surface-2);color:var(--fp-muted)}.r61772-empty-customer strong{color:var(--fp-text)}
.r61772-product-entry .pm-language-tabs select[data-language-add]{width:auto;min-width:118px}
@media(max-width:720px){.r61772-secondary-grid{grid-template-columns:1fr}.r61772-secondary-grid .full{grid-column:1}.r61772-product-entry .pm-main-image-sheet.is-empty{height:190px!important;min-height:190px!important}}
/* R6.17.7.3 product detail readiness: normal states stay compact; blockers remain visible. */
.pd-readiness-board.is-compact{padding:12px 16px;gap:8px;background:linear-gradient(180deg,#f3fff7 0,#fff 100%)}
.pd-readiness-compact-row{align-items:center}
.pd-readiness-compact-row>div{min-width:240px}
.pd-readiness-compact-row strong{font-size:18px}
.pd-readiness-details{margin-left:auto;min-width:160px}
.pd-readiness-details>summary{cursor:pointer;list-style:none;border:1px solid var(--fp-border,#e5e7eb);border-radius:10px;padding:8px 12px;background:#fff;font-weight:700;color:var(--fp-text,#111827);text-align:center}
.pd-readiness-details[open]{width:min(960px,78vw)}
.pd-readiness-details[open]>summary{margin-bottom:10px}
.pd-readiness-compact-issues{margin:8px 0 0;padding-left:18px;color:var(--fp-muted,#667085);font-size:11px;line-height:1.6}
.pd-system-code{display:block;margin-top:5px;color:var(--fp-muted,#667085);font-size:10px;font-weight:500}
.bom-basis-guide-r61773{display:flex;gap:10px;align-items:flex-start;margin:0 0 12px;padding:10px 12px;border:1px solid #dbe7ff;border-radius:10px;background:#f8fbff;font-size:11px}.bom-basis-guide-r61773 span{color:var(--fp-muted,#667085)}
@media(max-width:900px){.pd-readiness-compact-row{align-items:flex-start;flex-direction:column}.pd-readiness-details{margin-left:0;width:100%}.pd-readiness-details[open]{width:100%}}

/* /process-collaboration-r61688.css */
/* R6.16.88 - process catalog, supplier capability, large dialog and collaboration notification closure */
:root{--r61688-dialog-gutter:clamp(10px,1.4vw,24px)}
body.r61688-modal-open{overflow:hidden!important}

/* Large selector family: avoid narrow fixed windows and double scrollbars. */
.r610-builder{width:min(96vw,1880px)!important;max-width:none!important;height:min(94vh,1060px)!important;max-height:94vh!important;margin:auto!important;display:flex!important;flex-direction:column!important;overflow:hidden!important}
.r610-builder .r610-builder-body,.r610-builder .r610-picker-body{min-height:0!important;overflow:auto!important;flex:1 1 auto!important}
.r610-builder .r610-pick-layout,.r6156-part-picker-modal .r69-picker-layout{grid-template-columns:minmax(240px,18%) minmax(520px,1fr) minmax(320px,26%)!important;gap:12px!important;min-height:0!important}
.r610-builder .r610-pick-layout>* ,.r6156-part-picker-modal .r69-picker-layout>*{min-width:0!important;min-height:0!important}
.r610-builder .r610-process-toolbar{display:grid!important;grid-template-columns:minmax(300px,1fr) minmax(220px,.45fr) auto auto auto!important;gap:8px!important;align-items:center!important}
.r610-builder .r610-process-grid{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:10px!important}
.r610-builder .r610-process-grid>label,.r610-builder .r610-process-grid>.card{min-height:86px!important;height:auto!important}
.r610-inline-editor,.r61688-inline-editor{display:grid;grid-template-columns:minmax(180px,.75fr) minmax(260px,1.25fr) minmax(160px,.55fr) auto;gap:8px;align-items:end;margin:10px 0;padding:12px;border:1px solid var(--line,#e5e7eb);border-radius:14px;background:var(--panel-soft,#f8fafc)}

.r64-modal,.r6156-part-picker-modal .r64-modal,[data-large-selector-modal]{width:min(96vw,1840px)!important;max-width:none!important;height:min(94vh,1040px)!important;max-height:94vh!important;overflow:hidden!important;display:flex!important;flex-direction:column!important}
.r64-modal>.modal-body,.r6156-part-picker-modal .r64-modal>.modal-body,[data-large-selector-modal]>.modal-body{min-height:0!important;overflow:auto!important;flex:1 1 auto!important}
.r64-modal .picker-layout,.r64-modal .r69-picker-layout{min-height:0!important;overflow:hidden!important}
.r64-modal .picker-sidebar,.r64-modal .picker-results,.r64-modal .picker-detail,.r69-picker-layout>aside,.r69-picker-layout>section{min-height:0!important;overflow:auto!important}

/* Supplier create/edit: use desktop space consistently. */
form.form-page-card:has(select[name="collaborationType"]){width:100%!important;max-width:none!important;margin:18px 0!important;padding:20px!important;box-sizing:border-box!important}
form.form-page-card:has(select[name="collaborationType"])>.form-grid{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:14px 18px!important}
form.form-page-card:has(select[name="collaborationType"])>.form-grid>.field{min-width:0!important}
form.form-page-card:has(select[name="collaborationType"])>.form-grid>.field.span-2{grid-column:1/-1!important}
form.form-page-card:has(select[name="collaborationType"])>.form-grid>.field:has(input[name="processCapabilitiesJson"]){display:none!important}
.r61688-supplier-capability{grid-column:1/-1;margin-top:18px;border:1px solid var(--line,#e4e7ef);border-radius:18px;background:var(--panel,#fff);padding:18px}
.r61688-cap-head{display:flex;justify-content:space-between;gap:18px;align-items:flex-start;margin-bottom:14px}
.r61688-cap-head h3{margin:3px 0 5px}.r61688-cap-head p{margin:0;color:var(--muted,#6b7280);max-width:900px}
.r61688-cap-filter{display:grid;grid-template-columns:240px 280px minmax(280px,1fr);gap:10px;margin-bottom:12px}.r61688-cap-filter label{display:grid;gap:5px;font-size:12px;font-weight:700}.r61688-cap-filter select,.r61688-cap-filter input{width:100%}
.r61688-cap-summary{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:10px 12px;border-radius:12px;background:var(--panel-soft,#f7f8fc);font-size:13px;margin-bottom:10px}
.r61688-cap-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:9px;max-height:430px;overflow:auto;padding:2px}
.r61688-cap-item{display:flex;gap:10px;align-items:flex-start;padding:11px 12px;border:1px solid var(--line,#e4e7ef);border-radius:12px;background:var(--panel,#fff);cursor:pointer}.r61688-cap-item:hover{border-color:var(--primary,#6366f1)}.r61688-cap-item input{margin-top:3px}.r61688-cap-item span{display:grid;gap:3px;min-width:0}.r61688-cap-item b{font-size:13px}.r61688-cap-item small{font-size:11px;color:var(--muted,#6b7280);white-space:normal}
.r61688-process-tags{display:flex;gap:5px;flex-wrap:wrap}.r61688-process-tags span{display:inline-flex;padding:3px 7px;border-radius:999px;background:var(--primary-soft,#eef2ff);color:var(--primary,#4f46e5);font-size:11px}.r61688-process-tags em{font-style:normal;font-size:11px;color:var(--muted,#6b7280)}
.r61622-master-list .r60-master-filters:has([name="processMajorId"]){grid-template-columns:minmax(230px,1.3fr) repeat(6,minmax(145px,.75fr)) auto!important;align-items:end!important}

/* Global process manager. */
.r61688-process-manager-backdrop{position:fixed;inset:0;background:rgba(15,23,42,.58);backdrop-filter:blur(2px);z-index:99980;display:grid;place-items:center;padding:var(--r61688-dialog-gutter)}
.r61688-process-manager{width:min(94vw,1320px);height:min(90vh,900px);background:var(--panel,#fff);color:var(--text,#111827);border-radius:20px;box-shadow:0 24px 80px rgba(15,23,42,.3);display:flex;flex-direction:column;overflow:hidden}
.r61688-pm-head{display:flex;justify-content:space-between;gap:18px;padding:18px 20px;border-bottom:1px solid var(--line,#e5e7eb)}.r61688-pm-head h2{margin:2px 0 4px}.r61688-pm-head p{margin:0;color:var(--muted,#6b7280)}
.r61688-pm-close{width:38px;height:38px;border:0;border-radius:11px;background:var(--panel-soft,#f4f6fb);cursor:pointer;font-size:21px}
.r61688-pm-body{display:grid;grid-template-columns:minmax(320px,.8fr) minmax(520px,1.2fr);gap:14px;padding:16px;min-height:0;flex:1;overflow:hidden}
.r61688-pm-pane{border:1px solid var(--line,#e5e7eb);border-radius:15px;padding:14px;overflow:auto;min-height:0}.r61688-pm-pane h3{margin:0 0 8px}.r61688-pm-pane>p{color:var(--muted,#6b7280);font-size:12px;margin:0 0 12px}
.r61688-pm-form{display:grid;grid-template-columns:1fr 1fr auto;gap:8px;margin-bottom:14px}.r61688-pm-form.process{grid-template-columns:1fr 1fr 140px auto}.r61688-pm-form input,.r61688-pm-form select{min-width:0}
.r61688-pm-tree{display:grid;gap:8px}.r61688-pm-major{border:1px solid var(--line,#e5e7eb);border-radius:12px;padding:10px}.r61688-pm-major>strong{display:block;margin-bottom:6px}.r61688-pm-minors{display:flex;gap:6px;flex-wrap:wrap}.r61688-pm-minors button{border:1px solid var(--line,#e5e7eb);background:var(--panel-soft,#f8fafc);border-radius:999px;padding:5px 9px;cursor:pointer;font-size:12px}.r61688-pm-minors button.active{background:var(--primary-soft,#eef2ff);border-color:var(--primary,#6366f1);color:var(--primary,#4f46e5)}
.r61688-pm-processes{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.r61688-pm-process{border:1px solid var(--line,#e5e7eb);border-radius:12px;padding:10px;display:grid;gap:4px}.r61688-pm-process small{color:var(--muted,#6b7280)}
.r61688-pm-foot{padding:12px 18px;border-top:1px solid var(--line,#e5e7eb);display:flex;justify-content:space-between;align-items:center;gap:12px;font-size:12px;color:var(--muted,#6b7280)}

/* Supplier detail. */
.r61688-detail-capabilities{margin-top:14px;padding-top:14px;border-top:1px solid var(--line,#e5e7eb)}.r61688-detail-capabilities .head{display:flex;justify-content:space-between;gap:12px;align-items:center}.r61688-detail-capabilities .tags{display:flex;flex-wrap:wrap;gap:7px;margin-top:9px}.r61688-detail-capabilities .tags span{padding:6px 9px;border-radius:999px;background:var(--primary-soft,#eef2ff);color:var(--primary,#4f46e5);font-size:12px}

/* Collaboration notifications workbench. */
.r61688-notify-hero{display:flex;justify-content:space-between;gap:20px;align-items:flex-start}.r61688-notify-hero h2{margin:3px 0 6px}.r61688-notify-hero p{margin:0;max-width:980px;color:var(--muted,#6b7280)}
.r61688-notify-kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin-top:14px}.r61688-notify-kpis>div{padding:12px;border:1px solid var(--line,#e5e7eb);border-radius:13px;background:var(--panel-soft,#f8fafc)}.r61688-notify-kpis b{font-size:22px;display:block}.r61688-notify-kpis span{font-size:12px;color:var(--muted,#6b7280)}
.r61688-notify-layout{display:grid;grid-template-columns:minmax(360px,.72fr) minmax(620px,1.28fr);gap:16px;align-items:start}.r61688-notify-column{display:grid;gap:14px}.r61688-channel-form{display:grid;grid-template-columns:150px 1fr;gap:10px}.r61688-channel-form .span-2{grid-column:1/-1}.r61688-channel-list{display:grid;gap:8px;margin-top:12px}.r61688-channel{display:grid;grid-template-columns:1fr auto;gap:10px;padding:11px;border:1px solid var(--line,#e5e7eb);border-radius:12px}.r61688-channel small{display:block;color:var(--muted,#6b7280);margin-top:3px}.r61688-channel .actions{align-self:center}
.r61688-rule{border:1px solid var(--line,#e5e7eb);border-radius:14px;background:var(--panel,#fff);overflow:hidden}.r61688-rule summary{list-style:none;display:flex;justify-content:space-between;gap:14px;align-items:center;padding:14px 15px;cursor:pointer}.r61688-rule summary::-webkit-details-marker{display:none}.r61688-rule summary h3{margin:0;font-size:15px}.r61688-rule summary p{margin:3px 0 0;font-size:12px;color:var(--muted,#6b7280)}.r61688-rule-badge{padding:4px 8px;border-radius:999px;background:var(--panel-soft,#f4f6fb);font-size:11px}.r61688-rule[open] summary{border-bottom:1px solid var(--line,#e5e7eb)}
.r61688-rule-form{padding:14px}.r61688-rule-top{display:grid;grid-template-columns:170px 190px 1fr;gap:10px;align-items:end}.r61688-check-section{margin-top:13px}.r61688-check-section h4{margin:0 0 7px;font-size:12px}.r61688-check-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px}.r61688-check-grid label{display:flex;gap:7px;align-items:center;padding:8px;border:1px solid var(--line,#e5e7eb);border-radius:10px;font-size:12px}.r61688-rule-actions{margin-top:12px;display:flex;justify-content:flex-end}
.r61688-notify-note{border-left:4px solid #f59e0b;background:#fffbeb;padding:11px 12px;border-radius:10px;font-size:12px;color:#7c4a03}.r61688-notify-note strong{display:block;margin-bottom:4px}

@media(max-width:1320px){
 .r61688-cap-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.r61622-master-list .r60-master-filters:has([name="processMajorId"]){grid-template-columns:repeat(4,minmax(160px,1fr))!important}
 .r61688-notify-layout{grid-template-columns:1fr}.r61688-process-manager{width:97vw}.r61688-pm-body{grid-template-columns:minmax(280px,.75fr) minmax(460px,1.25fr)}
}
@media(max-width:980px){
 .r610-builder .r610-pick-layout,.r6156-part-picker-modal .r69-picker-layout{grid-template-columns:1fr!important}.r610-builder .r610-process-toolbar{grid-template-columns:1fr 1fr!important}.r610-builder .r610-process-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}
 form.form-page-card:has(select[name="collaborationType"]){width:100%!important}.r61688-cap-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.r61688-cap-filter{grid-template-columns:1fr 1fr}.r61688-cap-filter .wide{grid-column:1/-1}
 .r61688-pm-body{grid-template-columns:1fr;overflow:auto}.r61688-pm-pane{overflow:visible}.r61688-pm-processes{grid-template-columns:1fr}.r61688-notify-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}.r61688-check-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:700px){
 .r610-builder,.r64-modal,.r6156-part-picker-modal .r64-modal{width:100vw!important;height:100dvh!important;max-height:none!important;border-radius:0!important}.r610-builder .r610-process-grid{grid-template-columns:1fr!important}.r610-builder .r610-process-toolbar{grid-template-columns:1fr!important}
 form.form-page-card:has(select[name="collaborationType"])>.form-grid{grid-template-columns:1fr!important}.r61688-cap-grid,.r61688-cap-filter,.r61688-notify-kpis,.r61688-check-grid,.r61688-rule-top,.r61688-channel-form{grid-template-columns:1fr}.r61688-cap-filter .wide,.r61688-channel-form .span-2{grid-column:auto}.r61688-cap-head,.r61688-cap-summary{align-items:stretch;flex-direction:column}.r61688-process-manager{width:100vw;height:100dvh;max-height:none;border-radius:0}.r61688-pm-form,.r61688-pm-form.process{grid-template-columns:1fr}.r61688-notify-layout{grid-template-columns:1fr}
}

/* R6.16.88 optional matching-unit prompt */
.r61688-pm-foot [data-pm-message]{display:flex;align-items:center;gap:10px;flex-wrap:wrap;min-width:0}
.r61688-pm-actions{display:inline-flex;gap:8px;flex-wrap:wrap}
.r61688-pm-actions .btn{white-space:nowrap}

.r61688-process-match-prompt{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap}
.r61688-process-match-prompt>span:last-child{display:flex;gap:8px;flex-wrap:wrap}


/* R6.17.7.13 supplier/workshop form closure */
body:has(form.form-page-card select[name="collaborationType"]) .r2-page-toolbar{display:none!important}
form.form-page-card:has(select[name="collaborationType"]) .field-choice-group{border:1px solid var(--fp-border);border-radius:14px;padding:12px 14px;background:var(--fp-surface-2)}
form.form-page-card:has(select[name="collaborationType"]) .field-choice-group>label{font-weight:750}
form.form-page-card:has(select[name="collaborationType"]) .r617713-capability-note{margin:10px 0 12px;background:color-mix(in srgb,var(--fp-primary-soft) 55%,var(--fp-surface))}
.r61688-supplier-capability{margin-top:14px!important;padding:16px!important}
.r61688-supplier-capability .r61688-cap-grid{max-height:360px;overflow:auto;padding-right:4px}

/* /bom-builder-r61775.css */
/* 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}}

/* /bom-builder-r61777.css */
/* R6.17.7.7 — BOM quick-add closure
 * High-frequency path: choose → configure current product relation → choose/create supplier/workshop → save.
 * Loaded after R6.17.7.5 builder styles so it can narrow the workflow without changing master-data APIs.
 */
.r61777-builder{width:min(98vw,1940px)!important;height:min(96vh,1100px)!important}
.r61777-builder>header{padding:14px 20px 11px!important}
.r61777-builder>header h2{font-size:20px!important}
.r61777-builder>header p{font-size:12px!important}
.r61777-builder .r610-tabs{padding:6px 16px!important}

/* Two business steps only: configure in-place, then save. */
.r61777-builder-steps{grid-template-columns:repeat(2,minmax(0,1fr))!important;padding:8px 24px 9px!important}
.r61777-builder-steps>div:not(:last-child)::after{left:58px!important;right:58px!important;top:17px!important;width:auto!important;transform:none!important}
.r61777-builder-steps b{width:32px!important;height:32px!important;flex-basis:32px!important;border-radius:10px!important}
.r61777-builder-steps strong{font-size:12px!important}
.r61777-builder-steps small{font-size:10px!important}

/* Existing material: category/list remain fast, selected item becomes the right-side working panel. */
.r61777-select-shell{min-width:0}
.r61777-select-shell .r610-toolbar{padding:9px 14px!important}
.r61777-select-shell .r61775-part-toolbar{grid-template-columns:minmax(420px,1fr) auto auto auto auto!important;gap:7px!important}
.r61777-select-shell .r610-pick-layout{grid-template-columns:minmax(210px,16%) minmax(560px,1fr) minmax(390px,32%)!important;min-width:0!important}
.r61777-select-shell .r610-pick-layout.no-detail{grid-template-columns:minmax(210px,17%) minmax(650px,1fr) minmax(300px,25%)!important}
.r61777-select-shell .r610-detail{display:block!important;padding:12px!important;background:#fbfcff;overflow:auto!important}
.r61777-config-aside:empty{padding:0!important}
.r61777-select-shell .r610-list>header{padding:9px 13px!important}
.r61777-select-shell .r610-list>header h3{font-size:14px!important}
.r61777-select-shell .r610-list>header p{font-size:11px!important}
.r61777-select-shell .r610-part{min-height:56px!important}
.r61777-select-shell .r610-part.checked{box-shadow:inset 3px 0 0 #6366f1}

/* Quick config panel. */
.r61777-quick-config{display:flex;flex-direction:column;gap:11px;border:1px solid #dbe5f1;border-radius:14px;background:#fff;padding:14px;box-shadow:0 7px 22px rgba(15,23,42,.05)}
.r61777-quick-config>header{display:flex;justify-content:space-between;align-items:flex-start;gap:10px;padding-bottom:10px;border-bottom:1px solid #edf1f6}
.r61777-quick-config>header span{display:block;color:#4f46e5;font-size:10px;font-weight:800;letter-spacing:.02em}
.r61777-quick-config>header h3{margin:3px 0 2px;font-size:15px;line-height:1.35;color:#172033}
.r61777-quick-config>header p{margin:0;color:#64748b;font-size:11px;line-height:1.45}
.r61777-quick-config>header>button{flex:0 0 29px;width:29px;height:29px;border:0;border-radius:8px;background:#f1f5f9;color:#64748b;cursor:pointer;font-size:17px}
.r61777-quick-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px 10px}
.r61777-quick-grid label{display:grid;gap:5px;min-width:0;color:#475569;font-size:11px;font-weight:700}
.r61777-quick-grid label.wide{grid-column:1/-1}
.r61777-quick-grid input,.r61777-quick-grid select,.r61777-quick-grid textarea{width:100%;box-sizing:border-box;border:1px solid #dbe2ea;border-radius:9px;background:#fff;min-height:38px;padding:8px 10px;color:#172033;font:inherit;font-weight:500}
.r61777-quick-grid input[readonly]{background:#f8fafc;color:#64748b}
.r61777-quick-grid textarea{resize:vertical;min-height:66px;line-height:1.5}
.r61777-unit-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:7px;align-items:center}
.r61777-unit-row .btn{white-space:nowrap;min-height:38px;padding:7px 9px;font-size:11px}
.r61777-quick-config>footer{display:flex;justify-content:flex-end;gap:8px;padding-top:2px}
.r61777-quick-config>footer .btn-primary{min-width:112px}
.r61777-after-save-note{display:block;padding:9px 10px;border-radius:9px;background:#f8fafc;color:#64748b;font-size:10px;line-height:1.45}

/* Inline supplier/workshop creation: local to the current BOM task. */
.r61777-unit-create{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;padding:11px;border:1px solid #c7d2fe;border-radius:12px;background:#f8f9ff}
.r61777-unit-create>header{grid-column:1/-1;display:flex;align-items:center;justify-content:space-between;padding-bottom:7px;border-bottom:1px solid #e0e7ff}
.r61777-unit-create>header strong{font-size:12px;color:#3730a3}
.r61777-unit-create>header button{border:0;background:transparent;color:#64748b;font-size:17px;cursor:pointer}
.r61777-unit-create label{display:grid;gap:4px;font-size:10px;font-weight:700;color:#475569}
.r61777-unit-create label.wide{grid-column:1/-1}
.r61777-unit-create input,.r61777-unit-create select{width:100%;box-sizing:border-box;min-height:35px;border:1px solid #d8def0;border-radius:8px;background:#fff;padding:7px 8px}
.r61777-unit-create>footer{grid-column:1/-1;display:flex;justify-content:flex-end;gap:7px}

/* Process: selecting one process opens one side panel; category management remains secondary. */
.r61777-process-shell{overflow:hidden!important}
.r61777-process-shell>.r610-toolbar{padding:9px 14px!important}
.r61777-process-layout{display:grid;grid-template-columns:minmax(0,1fr);min-height:0;flex:1;overflow:hidden}
.r61777-process-layout.has-quick{grid-template-columns:minmax(640px,1fr) minmax(390px,31%)}
.r61777-process-layout>.r61775-process-groups{min-width:0;overflow:auto;padding:8px 12px 16px!important}
.r61777-process-layout.has-quick .r61775-process-group .r610-process-grid{grid-template-columns:repeat(3,minmax(0,1fr))!important}
.r61777-process-quick{min-width:0;overflow:auto;border-left:1px solid #e2e8f0;background:#fbfcff;padding:12px}
.r61777-process-quick .r61777-quick-config{position:sticky;top:0}
.r61777-process-shell .r61775-process-category-form{max-width:980px}
.r61777-legacy-copy{display:none!important}

/* New material: master + current-product relation in one screen. */
.r61777-new-one-screen{display:grid;grid-template-columns:minmax(620px,1.15fr) minmax(420px,.85fr);gap:0;min-height:0;flex:1;overflow:auto;background:#fbfcff}
.r61777-new-one-screen>form{display:contents}
.r61777-new-master{max-width:none!important;width:auto!important;margin:14px 8px 14px 16px!important;padding:17px 18px!important;border:1px solid #e2e8f0!important;border-radius:14px!important;background:#fff!important}
.r61777-new-relation{align-self:start;margin:14px 16px 14px 8px;padding:17px 18px;border:1px solid #cbd5ff;border-radius:14px;background:#fff;box-shadow:0 8px 24px rgba(79,70,229,.05)}
.r61777-new-relation>header,.r61777-new-master>header{margin-bottom:12px}
.r61777-new-relation>header span{font-size:10px;color:#4f46e5;font-weight:800}
.r61777-new-relation>header h3{margin:3px 0;font-size:16px}
.r61777-new-relation>header p{margin:0;color:#64748b;font-size:11px}
.r61777-new-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px 12px}
.r61777-new-grid>.wide,.r61777-new-grid label.wide{grid-column:1/-1}
.r61777-new-grid label{display:grid;gap:5px;font-size:11px;font-weight:700;color:#475569;min-width:0}
.r61777-new-grid input,.r61777-new-grid select,.r61777-new-grid textarea{width:100%;box-sizing:border-box;min-height:39px;border:1px solid #dbe2ea;border-radius:9px;background:#fff;padding:8px 10px}
.r61777-new-grid textarea{resize:vertical;min-height:62px}
.r61777-new-relation .r61777-unit-create{margin-top:10px}
.r61777-new-actions{grid-column:1/-1;position:sticky;bottom:0;z-index:7;display:flex;justify-content:flex-end;gap:8px;padding:10px 16px;border-top:1px solid #e2e8f0;background:rgba(255,255,255,.97);backdrop-filter:blur(8px)}
.r61777-new-actions .btn-primary{min-width:120px}

/* The global footer is supporting status only; actions live beside the data the user is editing. */
.r61777-builder>footer{padding:9px 16px!important;min-height:47px}
.r61777-builder>footer strong{font-size:12px}
.r61777-builder>footer span{font-size:10px!important;margin-top:1px!important}
.r61777-builder>footer .btn{min-height:34px}

@media(max-width:1400px){
 .r61777-select-shell .r610-pick-layout{grid-template-columns:210px minmax(500px,1fr) minmax(340px,31%)!important}
 .r61777-select-shell .r61775-part-toolbar{grid-template-columns:minmax(320px,1fr) auto auto auto!important}
 .r61777-select-shell .r61775-selected-count{display:none}
 .r61777-process-layout.has-quick{grid-template-columns:minmax(580px,1fr) 360px}
 .r61777-process-layout.has-quick .r61775-process-group .r610-process-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}
 .r61777-new-one-screen{grid-template-columns:minmax(560px,1fr) 390px}
}
@media(max-width:1120px){
 .r61777-select-shell .r610-pick-layout,.r61777-select-shell .r610-pick-layout.no-detail{grid-template-columns:200px minmax(0,1fr)!important}
 .r61777-select-shell .r610-detail{position:absolute;right:14px;top:142px;bottom:64px;width:min(390px,42vw);z-index:12;border:1px solid #dbe5f1;border-radius:14px;box-shadow:0 18px 50px rgba(15,23,42,.18)}
 .r61777-select-shell .r610-pick-layout.no-detail .r610-detail{display:none!important}
 .r61777-process-layout.has-quick{grid-template-columns:1fr}
 .r61777-process-quick{position:absolute;right:14px;top:144px;bottom:64px;width:min(390px,42vw);z-index:12;border:1px solid #dbe5f1;border-radius:14px;box-shadow:0 18px 50px rgba(15,23,42,.18)}
 .r61777-new-one-screen{grid-template-columns:1fr}
 .r61777-new-master,.r61777-new-relation{margin:12px 14px!important}
}
@media(max-width:820px){
 .r61777-builder-steps{grid-template-columns:1fr!important;gap:4px}.r61777-builder-steps>div:not(.active){display:none}.r61777-builder-steps>div::after{display:none!important}
 .r61777-select-shell .r61775-part-toolbar{grid-template-columns:1fr 1fr!important}
 .r61777-select-shell .r61775-part-toolbar input{grid-column:1/-1}
 .r61777-select-shell .r610-pick-layout,.r61777-select-shell .r610-pick-layout.no-detail{grid-template-columns:1fr!important}
 .r61777-select-shell .r610-pick-layout>aside:first-child{display:none}
 .r61777-select-shell .r610-detail,.r61777-process-quick{left:8px;right:8px;top:118px;bottom:54px;width:auto}
 .r61777-quick-grid,.r61777-unit-create,.r61777-new-grid{grid-template-columns:1fr}
 .r61777-quick-grid label.wide,.r61777-unit-create label.wide,.r61777-new-grid>.wide,.r61777-new-grid label.wide{grid-column:auto}
 .r61777-unit-row{grid-template-columns:1fr}
 .r61777-process-layout.has-quick .r61775-process-group .r610-process-grid{grid-template-columns:1fr!important}
}

/* /bom-builder-r61778.css */
/* R6.17.7.8 — BOM inline continuous workspace closure */
.r61778-inline-host[hidden]{display:none!important}
.r61778-inline-host{margin:12px 0 14px;scroll-margin-top:84px}
.r61778-inline-workspace{position:static!important;inset:auto!important;z-index:auto!important;background:transparent!important;display:block!important;padding:0!important}
.r61778-inline-builder{width:100%!important;height:auto!important;max-height:none!important;min-height:0!important;border:1px solid #dbe4ef;border-radius:16px!important;box-shadow:0 10px 28px rgba(15,23,42,.06)!important;overflow:hidden!important;background:#fff}
.r61778-inline-builder>header{padding:12px 16px!important;align-items:center!important;background:linear-gradient(180deg,#fff,#fbfcff)}
.r61778-inline-builder>header span{font-size:10px!important}
.r61778-inline-builder>header h2{font-size:16px!important;margin:2px 0 2px!important}
.r61778-inline-builder>header p{font-size:11px!important}
.r61778-inline-builder>header>button{width:31px!important;height:31px!important;border-radius:9px!important;font-size:18px!important}
.r61778-inline-tabs{padding:7px 12px!important;background:#fff!important;gap:5px!important}
.r61778-inline-tabs button,.r61778-inline-tabs a{padding:7px 11px!important;font-size:12px!important}
.r61778-inline-builder>.r610-builder-status{padding:6px 13px!important;font-size:11px!important}
.r61778-inline-builder>main{display:block!important;overflow:visible!important;min-height:0!important;flex:none!important}
.r61778-inline-builder>footer[hidden]{display:none!important}
.r61778-inline-builder>footer{padding:8px 12px!important;position:sticky;bottom:0;z-index:8}

/* Material picker is now one horizontal workspace instead of category-tree/list/detail navigation. */
.r61778-inline-select{display:block!important;overflow:visible!important}
.r61778-inline-toolbar{display:grid!important;grid-template-columns:minmax(300px,1fr) auto auto auto!important;gap:7px!important;padding:9px 12px!important}
.r61778-inline-toolbar input{min-width:0!important}
.r61778-category-bars{padding:8px 12px 9px;border-bottom:1px solid #e8edf3;background:#fbfcfe}
.r61778-category-primary,.r61778-category-secondary{display:flex;align-items:center;gap:6px;overflow-x:auto;scrollbar-width:none;padding:1px 0}
.r61778-category-primary::-webkit-scrollbar,.r61778-category-secondary::-webkit-scrollbar{display:none}
.r61778-category-secondary{margin-top:7px;padding-top:7px;border-top:1px dashed #e2e8f0}
.r61778-category-primary button,.r61778-category-secondary button{display:inline-flex;align-items:center;gap:6px;flex:0 0 auto;border:1px solid #dfe6ef;background:#fff;color:#475569;border-radius:999px;padding:6px 10px;font-size:11px;font-weight:700;cursor:pointer}
.r61778-category-primary button.active,.r61778-category-secondary button.active{border-color:#a5b4fc;background:#eef2ff;color:#4338ca;box-shadow:0 1px 5px rgba(79,70,229,.08)}
.r61778-category-primary small,.r61778-category-secondary small{font-size:9px;color:#94a3b8;font-weight:600}
.r61778-inline-results{display:grid;grid-template-columns:minmax(0,1fr) 0;min-height:390px;transition:grid-template-columns .16s ease;background:#fff}
.r61778-inline-results.has-config{grid-template-columns:minmax(520px,1fr) minmax(340px,390px)}
.r61778-inline-results>.r610-list{min-width:0;border-right:0;min-height:390px;max-height:560px}
.r61778-inline-results.has-config>.r610-list{border-right:1px solid #e5eaf0}
.r61778-inline-results .r610-list>div{padding:6px 9px!important}
.r61778-inline-results .r610-list>header{padding:8px 11px!important}
.r61778-inline-config{min-width:0;overflow:hidden;background:#fbfcff}
.r61778-inline-results.has-config .r61778-inline-config{padding:10px;overflow:auto;max-height:560px}
.r61778-inline-config>.r61777-quick-config{position:sticky;top:8px;box-shadow:none}
.r61778-part-list .r610-part{margin-bottom:2px;min-height:55px!important}

/* Process selection stays in the same product page. */
.r61778-inline-builder .r61777-process-shell{overflow:visible!important}
.r61778-inline-builder .r61777-process-layout{min-height:390px;max-height:620px;overflow:auto!important}
.r61778-inline-builder .r61777-process-layout.has-quick{grid-template-columns:minmax(520px,1fr) minmax(340px,390px)!important}
.r61778-inline-builder .r61777-process-quick{position:static!important;inset:auto!important;width:auto!important;box-shadow:none!important;border:0!important;border-left:1px solid #e5eaf0!important;border-radius:0!important;padding:10px!important;overflow:auto!important;background:#fbfcff}
.r61778-inline-builder .r61777-process-quick .r61777-quick-config{position:sticky!important;top:0!important}
.r61778-inline-builder .r61775-process-groups{padding:7px 10px 14px!important}
.r61778-inline-builder .r61775-process-group .r610-process-grid{grid-template-columns:repeat(3,minmax(0,1fr))!important;padding:7px 0!important}
.r61778-inline-builder .r61775-process-create,.r61778-inline-builder .r61775-process-category-form{margin:8px 12px!important}

/* New material remains master + current BOM in one inline work area. */
.r61778-inline-builder .r61777-new-one-screen{grid-template-columns:minmax(520px,1.1fr) minmax(360px,.9fr)!important;overflow:visible!important;background:#fbfcff}
.r61778-inline-builder .r61777-new-master,.r61778-inline-builder .r61777-new-relation{margin:10px!important;padding:14px!important}
.r61778-inline-builder .r61777-new-actions{position:static!important;padding:9px 12px!important}

/* The inline experience does not expose wizard chrome. */
.r61778-inline-builder .r61777-builder-steps{display:none!important}

@media(max-width:1280px){
 .r61778-inline-results.has-config{grid-template-columns:minmax(460px,1fr) 350px}
 .r61778-inline-builder .r61777-process-layout.has-quick{grid-template-columns:minmax(460px,1fr) 350px!important}
 .r61778-inline-builder .r61775-process-group .r610-process-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}
 .r61778-inline-builder .r61777-new-one-screen{grid-template-columns:1fr!important}
}
@media(max-width:980px){
 .r61778-inline-toolbar{grid-template-columns:1fr auto auto!important}
 .r61778-inline-toolbar input{grid-column:1/-1}
 .r61778-inline-results.has-config,.r61778-inline-builder .r61777-process-layout.has-quick{grid-template-columns:1fr!important}
 .r61778-inline-results.has-config>.r610-list{border-right:0;border-bottom:1px solid #e5eaf0}
 .r61778-inline-results.has-config .r61778-inline-config,.r61778-inline-builder .r61777-process-quick{max-height:none!important;border-left:0!important;border-top:1px solid #e5eaf0!important}
 .r61778-inline-builder .r61775-process-group .r610-process-grid{grid-template-columns:1fr!important}
}

/* /process-collaboration-r61689.css */
/* R6.16.89 notification, process-catalog and admin clarity closure */
body.r61689-modal-open{overflow:hidden!important}
.r61689-notification-page .cui-main{max-width:1720px;margin-inline:auto;width:100%}
.r61689-notify-hero{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:16px 24px;align-items:start}
.r61689-hero-copy h2{margin:4px 0 7px}.r61689-hero-copy p{margin:0;color:var(--muted,#667085);max-width:980px}.r61689-hero-actions{display:flex;gap:8px;flex-wrap:wrap;justify-content:flex-end}
.r61689-steps{grid-column:1/-1;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.r61689-steps>div{display:flex;gap:10px;align-items:center;padding:12px 14px;border:1px solid var(--line,#e6e9f0);border-radius:14px;background:var(--panel-soft,#f8f9fc)}.r61689-steps b{display:grid;place-items:center;width:28px;height:28px;border-radius:50%;background:var(--primary,#5b5ce2);color:#fff}.r61689-steps span{display:grid;gap:2px}.r61689-steps strong{font-size:13px}.r61689-steps small{font-size:11px;color:var(--muted,#667085)}
.r61689-notify-kpis{grid-column:1/-1;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}.r61689-notify-kpis>div{padding:12px 14px;border:1px solid var(--line,#e6e9f0);border-radius:14px;background:var(--panel,#fff)}.r61689-notify-kpis b{font-size:22px;line-height:1}.r61689-notify-kpis span{display:block;margin-top:5px;font-size:11px;color:var(--muted,#667085)}
.r61689-notify-topgrid{display:grid;grid-template-columns:minmax(520px,.92fr) minmax(620px,1.08fr);gap:16px;align-items:start}.r61689-notify-topgrid>.card{height:100%;margin:0}
.r61689-channel-types{display:flex;align-items:center;gap:7px;flex-wrap:wrap;margin:10px 0}.r61689-channel-types span{font-size:11px;color:var(--muted,#667085)}.r61689-channel-types b{font-size:11px;padding:4px 8px;border-radius:999px;background:var(--primary-soft,#eef2ff);color:var(--primary,#4f46e5)}
.r61689-channel-form,.r61689-channel-edit{display:grid;grid-template-columns:170px minmax(220px,1fr);gap:10px;padding:12px;border:1px solid var(--line,#e6e9f0);border-radius:14px;background:var(--panel-soft,#f8f9fc);margin:10px 0}.r61689-channel-form .span-2,.r61689-channel-edit .span-2{grid-column:1/-1}.r61689-channel-form label,.r61689-channel-edit label{display:grid;gap:5px;font-size:12px;font-weight:700}.r61689-form-actions{display:flex;justify-content:flex-end;gap:8px}
.r61689-help{border:0;background:var(--primary-soft,#eef2ff);color:var(--primary,#4f46e5);border-radius:50%;width:18px;height:18px;display:inline-grid;place-items:center;font-size:11px;cursor:pointer;vertical-align:middle}.r61689-help-tip{position:fixed;z-index:100500;max-width:330px;padding:10px 12px;background:#111827;color:#fff;border-radius:10px;font-size:12px;line-height:1.55;box-shadow:0 12px 36px rgba(15,23,42,.28)}
.r61689-channel-list{display:grid;gap:8px}.r61689-channel{border:1px solid var(--line,#e6e9f0);border-radius:14px;padding:10px 11px;background:var(--panel,#fff);display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px}.r61689-channel.is-off{opacity:.68}.r61689-channel-main{display:flex;gap:10px;align-items:center;min-width:0}.r61689-channel-icon{width:34px;height:34px;display:grid;place-items:center;border-radius:10px;background:var(--primary-soft,#eef2ff);color:var(--primary,#4f46e5);font-weight:800}.r61689-channel-main div{min-width:0}.r61689-channel-main strong,.r61689-channel-main small{display:block}.r61689-channel-main small{font-size:11px;color:var(--muted,#667085);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:460px}.r61689-channel-actions{display:flex;gap:6px;align-items:center;flex-wrap:wrap;justify-content:flex-end}.r61689-channel-actions form{margin:0}.r61689-channel-edit{grid-column:1/-1;margin:2px 0 0}.r61689-security-note{margin:10px 0 0;padding:9px 11px;border-left:3px solid #f59e0b;background:#fffbeb;border-radius:8px;font-size:11px;color:#79500c}
.r61689-empty{display:grid;place-items:center;text-align:center;gap:4px;min-height:92px;border:1px dashed var(--line,#dfe3ec);border-radius:14px;color:var(--muted,#667085);padding:14px}.r61689-empty strong{color:var(--text,#111827)}.r61689-empty.compact{min-height:68px}
.r61689-preset-card{display:grid;gap:12px}.r61689-presets{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px}.r61689-presets form{margin:0}.r61689-preset{width:100%;height:100%;display:grid;gap:7px;text-align:left;padding:13px;border:1px solid var(--line,#e5e7eb);border-radius:14px;background:var(--panel,#fff);cursor:pointer;color:inherit}.r61689-preset:hover,.r61689-preset.active{border-color:var(--primary,#6366f1);box-shadow:0 0 0 2px color-mix(in srgb,var(--primary,#6366f1) 12%,transparent)}.r61689-preset span{display:flex;align-items:center;justify-content:space-between;gap:7px}.r61689-preset em{font-style:normal;font-size:10px;padding:3px 6px;border-radius:999px;background:var(--primary-soft,#eef2ff);color:var(--primary,#4f46e5)}.r61689-preset small{color:var(--muted,#667085);line-height:1.45}.r61689-preset i{font-style:normal;color:var(--primary,#4f46e5);font-size:11px;font-weight:700}.r61689-batch-actions{display:flex;gap:7px;align-items:center;flex-wrap:wrap;padding-top:2px}.r61689-batch-actions span{font-size:11px;color:var(--muted,#667085)}.r61689-batch-actions form{margin:0}
.r61689-rules-shell{margin-top:16px}.r61689-rule-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-top:12px;align-items:start}.r61689-rule{border:1px solid var(--line,#e5e7eb);border-radius:14px;background:var(--panel,#fff);overflow:hidden}.r61689-rule[open]{grid-column:1/-1;box-shadow:0 10px 30px rgba(15,23,42,.06)}.r61689-rule summary{list-style:none;display:flex;align-items:center;justify-content:space-between;gap:14px;padding:13px 14px;cursor:pointer}.r61689-rule summary::-webkit-details-marker{display:none}.r61689-rule-title{display:flex;gap:9px;align-items:flex-start;min-width:0}.r61689-rule-title h3{margin:0;font-size:14px}.r61689-rule-title p{margin:3px 0 0;color:var(--muted,#667085);font-size:11px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:620px}.r61689-status-dot{width:8px;height:8px;border-radius:50%;background:#c8ced9;margin-top:5px;flex:0 0 auto}.r61689-status-dot.on{background:#16a34a}.r61689-rule-summary{display:flex;gap:5px;align-items:center;flex-wrap:wrap;justify-content:flex-end}.r61689-rule-summary span{font-size:10px;padding:3px 6px;border-radius:999px;background:var(--panel-soft,#f5f7fb);white-space:nowrap}.r61689-rule-summary i{font-style:normal;color:var(--muted,#667085)}
.r61689-rule[open] summary{border-bottom:1px solid var(--line,#e5e7eb)}.r61689-rule-form{padding:14px}.r61689-rule-controls{display:grid;grid-template-columns:130px 170px 150px 150px 130px;gap:9px;align-items:end}.r61689-rule-controls label{display:grid;gap:5px;font-size:11px;font-weight:700}.r61689-rule-section{margin-top:12px;padding:11px;border:1px solid var(--line,#e7e9f0);border-radius:12px;background:var(--panel-soft,#fafbfe)}.r61689-section-head{display:flex;justify-content:space-between;align-items:center;gap:8px;margin-bottom:7px}.r61689-section-head h4{margin:0;font-size:12px}.r61689-section-head>div{display:flex;gap:7px}.text-button{border:0;background:transparent;color:var(--primary,#4f46e5);font-size:11px;cursor:pointer;padding:2px 3px}.r61689-check-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px}.r61689-check-grid label{display:flex;gap:7px;align-items:center;padding:7px 8px;border:1px solid var(--line,#e5e7eb);border-radius:9px;background:var(--panel,#fff);font-size:11px;min-width:0}.r61689-check-grid label>span{min-width:0;overflow:hidden;text-overflow:ellipsis}.r61689-check-grid label b,.r61689-check-grid label small{display:block}.r61689-check-grid label small{font-size:10px;color:var(--muted,#667085)}.r61689-check-grid label.disabled{opacity:.5}.r61689-audience-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.r61689-audience-grid .r61689-rule-section{min-width:0}.r61689-audience-grid .r61689-check-grid{grid-template-columns:repeat(2,minmax(0,1fr));max-height:180px;overflow:auto}.r61689-rule-actions{display:flex;justify-content:space-between;align-items:center;gap:14px;margin-top:12px}.r61689-rule-actions .muted{font-size:11px}
.r61689-bottom-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin-top:16px}.r61689-bottom-grid>.card{margin:0}.r61689-integration-card{display:grid;gap:10px}.r61689-integration-head{display:flex;justify-content:space-between;align-items:flex-start;gap:10px}.r61689-integration-head h2{margin:3px 0 0}.r61689-integration-card>p{margin:0;color:var(--muted,#667085);font-size:12px;line-height:1.6}.r61689-cloud-items{display:flex;gap:6px;flex-wrap:wrap}.r61689-cloud-items span{padding:5px 8px;border-radius:999px;background:var(--panel-soft,#f6f7fb);font-size:10px}.r61689-history-list{display:grid;gap:5px;margin-top:8px}.r61689-history-list>div{display:grid;grid-template-columns:10px minmax(80px,.5fr) minmax(0,1.4fr) auto;gap:7px;align-items:center;padding:7px 0;border-bottom:1px solid var(--line,#eef0f4);font-size:11px}.r61689-history-status{width:7px;height:7px;border-radius:50%;background:#ef4444}.r61689-history-status.ok{background:#16a34a}.r61689-history-list small{color:var(--muted,#667085)}

/* Process manager: larger desktop workspace, explicit classification flow, no hidden overflow. */
.r61689-process-manager-backdrop{position:fixed;inset:0;z-index:99990;background:rgba(15,23,42,.58);backdrop-filter:blur(3px);display:grid;place-items:center;padding:22px}
.r61689-process-manager{width:min(96vw,1540px);height:min(92vh,960px);background:var(--panel,#fff);color:var(--text,#111827);border-radius:20px;box-shadow:0 28px 90px rgba(15,23,42,.34);display:flex;flex-direction:column;overflow:hidden}.r61689-process-manager.compact-error{height:auto;max-width:760px}
.r61689-pm-head{display:flex;justify-content:space-between;gap:20px;align-items:flex-start;padding:18px 20px 14px;border-bottom:1px solid var(--line,#e5e7eb)}.r61689-pm-head h2{margin:3px 0 5px}.r61689-pm-head p{margin:0;color:var(--muted,#667085)}.r61689-pm-close{border:0;width:38px;height:38px;border-radius:11px;background:var(--panel-soft,#f5f6fa);cursor:pointer;font-size:21px}
.r61689-pm-guide{display:flex;align-items:center;gap:8px;padding:10px 20px;background:var(--panel-soft,#f8f9fc);border-bottom:1px solid var(--line,#e5e7eb)}.r61689-pm-guide span{display:flex;align-items:center;gap:6px;font-size:11px;color:var(--muted,#667085)}.r61689-pm-guide span b{width:22px;height:22px;border-radius:50%;display:grid;place-items:center;background:#e5e7eb;color:#475467}.r61689-pm-guide span.active b{background:var(--primary,#5b5ce2);color:white}.r61689-pm-guide i{font-style:normal;color:#98a2b3}
.r61689-pm-body{display:grid;grid-template-columns:minmax(420px,.76fr) minmax(650px,1.24fr);gap:14px;padding:14px;flex:1;min-height:0;overflow:hidden}.r61689-pm-pane{min-height:0;border:1px solid var(--line,#e5e7eb);border-radius:15px;background:var(--panel,#fff);padding:13px;overflow:auto}.r61689-pm-pane-head{display:flex;justify-content:space-between;gap:10px;align-items:flex-start;position:sticky;top:-13px;background:var(--panel,#fff);padding:4px 0 10px;z-index:2}.r61689-pm-pane-head h3{margin:0}.r61689-pm-pane-head p{margin:4px 0 0;font-size:11px;color:var(--muted,#667085)}
.r61689-pm-category-form{display:grid;grid-template-columns:minmax(170px,.7fr) minmax(180px,1fr) auto;gap:8px;align-items:end;padding:10px;border:1px solid var(--primary,#6366f1);background:var(--primary-soft,#eef2ff);border-radius:12px;margin-bottom:10px}.r61689-pm-category-form [data-pm-category-title]{display:grid;gap:2px}.r61689-pm-category-form [data-pm-category-title] span{font-size:10px;color:var(--muted,#667085)}.r61689-pm-category-form .actions{display:flex;gap:6px}
.r61689-pm-major-list{display:grid;gap:8px}.r61689-pm-major{border:1px solid var(--line,#e5e7eb);border-radius:12px;padding:9px;background:var(--panel,#fff)}.r61689-pm-major.active{border-color:var(--primary,#6366f1);background:color-mix(in srgb,var(--primary-soft,#eef2ff) 55%,var(--panel,#fff))}.r61689-pm-major-button{width:100%;display:flex;justify-content:space-between;gap:10px;border:0;background:transparent;padding:2px;text-align:left;cursor:pointer;color:inherit}.r61689-pm-major-button span{font-size:10px;color:var(--muted,#667085)}.r61689-pm-minors{display:flex;gap:5px;flex-wrap:wrap;margin-top:7px}.r61689-pm-minors button{border:1px solid var(--line,#e5e7eb);background:var(--panel-soft,#f7f8fb);border-radius:999px;padding:5px 8px;font-size:10px;cursor:pointer}.r61689-pm-minors button.active{background:var(--primary,#6366f1);border-color:var(--primary,#6366f1);color:#fff}.r61689-pm-minors button.add{border-style:dashed;color:var(--primary,#4f46e5)}
.r61689-selected-path{display:grid;grid-template-columns:auto 1fr;gap:2px 8px;align-items:center;padding:10px 12px;border-radius:12px;background:var(--panel-soft,#f6f7fb);margin-bottom:10px}.r61689-selected-path span{font-size:10px;color:var(--muted,#667085)}.r61689-selected-path strong{font-size:13px}.r61689-selected-path small{grid-column:1/-1;color:var(--muted,#667085);font-size:10px}.r61689-pm-process-form{display:grid;grid-template-columns:1fr 1fr;gap:9px;padding:12px;border:1px solid var(--line,#e5e7eb);border-radius:12px}.r61689-pm-process-form label{display:grid;gap:5px;font-size:11px;font-weight:700}.r61689-pm-process-form .span-2{grid-column:1/-1}.r61689-pm-submit{display:flex!important;flex-direction:row!important;justify-content:space-between;align-items:center;gap:12px}.r61689-pm-submit span{font-size:10px;color:var(--muted,#667085);font-weight:400}.r61689-pm-process-list{margin-top:12px}.r61689-pm-list-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:7px}.r61689-pm-list-head h3{margin:0;font-size:13px}.r61689-pm-list-head span{font-size:10px;color:var(--muted,#667085)}.r61689-pm-process{display:flex;align-items:flex-start;justify-content:space-between;gap:10px;padding:9px 10px;border:1px solid var(--line,#e5e7eb);border-radius:10px;margin-bottom:6px}.r61689-pm-process div{display:grid;gap:2px}.r61689-pm-process small{color:var(--muted,#667085);font-size:10px}.r61689-pm-empty{display:grid;gap:3px;place-items:center;padding:28px;border:1px dashed var(--line,#dfe3eb);border-radius:12px;text-align:center}.r61689-pm-empty span{color:var(--muted,#667085);font-size:11px}
.r61689-pm-foot{display:flex;justify-content:space-between;align-items:center;gap:14px;padding:10px 16px;border-top:1px solid var(--line,#e5e7eb);background:var(--panel,#fff)}.r61689-pm-foot [data-pm-message]{display:flex;gap:7px;align-items:center;flex-wrap:wrap;min-width:0;font-size:11px;color:var(--muted,#667085)}.r61689-pm-foot [data-pm-message].is-ok strong{color:#15803d}.r61689-pm-foot [data-pm-message].is-warn strong{color:#b45309}.r61689-pm-foot [data-pm-message].is-error strong{color:#dc2626}.r61689-pm-actions{display:inline-flex;gap:6px;flex-wrap:wrap}

/* Feature scope: explain what a real switch changes. */
.r61689-feature-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.r61689-feature-card{border:1px solid var(--line,#e5e7eb);border-radius:14px;padding:13px;display:grid;gap:8px;background:var(--panel,#fff)}.r61689-feature-card header{display:flex;justify-content:space-between;gap:12px;align-items:flex-start}.r61689-feature-card h3{margin:0;font-size:14px}.r61689-feature-card p{margin:3px 0 0;color:var(--muted,#667085);font-size:11px;line-height:1.55}.r61689-feature-impact{font-size:11px;padding:8px 9px;border-radius:10px;background:var(--panel-soft,#f7f8fb);color:var(--muted,#667085)}.r61689-switch{display:flex;align-items:center;gap:7px;white-space:nowrap;font-size:11px;font-weight:700}.r61689-switch input{width:18px;height:18px}.r61689-feature-legacy{margin-top:10px;padding:10px 12px;border-radius:12px;background:var(--panel-soft,#f7f8fb);font-size:11px;color:var(--muted,#667085)}

@media(max-width:1280px){.r61689-notify-topgrid,.r61689-bottom-grid{grid-template-columns:1fr}.r61689-rule-controls{grid-template-columns:repeat(3,minmax(0,1fr))}.r61689-audience-grid{grid-template-columns:1fr}.r61689-process-manager{width:98vw}.r61689-pm-body{grid-template-columns:minmax(360px,.8fr) minmax(540px,1.2fr)}}
@media(max-width:900px){.r61689-notify-hero{grid-template-columns:1fr}.r61689-hero-actions{justify-content:flex-start}.r61689-steps,.r61689-notify-kpis,.r61689-presets,.r61689-rule-grid,.r61689-feature-grid{grid-template-columns:1fr}.r61689-rule[open]{grid-column:auto}.r61689-rule-controls,.r61689-check-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.r61689-process-manager-backdrop{padding:0}.r61689-process-manager{width:100vw;height:100dvh;border-radius:0}.r61689-pm-body{grid-template-columns:1fr;overflow:auto}.r61689-pm-pane{overflow:visible}.r61689-channel{grid-template-columns:1fr}.r61689-channel-actions{justify-content:flex-start}}
@media(max-width:620px){.r61689-notify-kpis,.r61689-rule-controls,.r61689-check-grid,.r61689-channel-form,.r61689-channel-edit,.r61689-pm-category-form,.r61689-pm-process-form{grid-template-columns:1fr}.r61689-channel-form .span-2,.r61689-channel-edit .span-2,.r61689-pm-process-form .span-2{grid-column:auto}.r61689-pm-submit{flex-direction:column!important;align-items:stretch!important}.r61689-pm-guide{overflow:auto}.r61689-history-list>div{grid-template-columns:10px 1fr}.r61689-history-list small{grid-column:2}}
/* R6.17.7.30: process master data is editable, not create-only. */
.r617730-process-actions{display:flex;gap:6px;align-items:center}
.r61689-pm-process.is-inactive{opacity:.58;background:#f8fafc}
.r61689-pm-process-form.is-editing{outline:2px solid rgba(99,102,241,.18);background:#fafaff}
.r61689-selected-path{position:relative}
.r61689-selected-path>[data-pm-edit-category]{margin-left:auto}
/* R6.17.7.71 notification signal closure */
.r61689-notify-hero.is-configured{padding-top:18px;padding-bottom:18px}
.r61689-configured-summary h2{margin-bottom:4px}.r61689-configured-summary p{margin:0;color:var(--muted,#667085)}
.r61689-notify-hero.is-configured .r61689-notify-kpis{grid-template-columns:repeat(4,minmax(0,1fr))}
.r61689-notify-hero.is-configured .r61689-notify-kpis b{font-size:16px;line-height:1.25}
.r61689-notify-topgrid>.card{height:auto}
.r61689-preset-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}
.r61689-advanced-actions{position:relative}.r61689-advanced-actions summary{cursor:pointer;font-size:11px;color:var(--muted,#667085);list-style:none}.r61689-advanced-actions summary::-webkit-details-marker{display:none}.r61689-advanced-actions form{margin-top:7px}
.r61689-rule-summary .r61689-audience-pill{max-width:260px;overflow:hidden;text-overflow:ellipsis}
.r61689-bottom-grid{grid-template-columns:minmax(380px,.8fr) minmax(560px,1.2fr);align-items:start}
.r61689-bottom-grid>.card{align-self:start;height:auto}
.r61689-extension-items{display:grid;gap:8px}.r61689-extension-items details{border:1px solid var(--line,#e5e7eb);border-radius:12px;background:var(--panel,#fff);overflow:hidden}.r61689-extension-items summary{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:11px 12px;cursor:pointer;list-style:none}.r61689-extension-items summary::-webkit-details-marker{display:none}.r61689-extension-items summary span{display:grid;gap:2px}.r61689-extension-items summary small{color:var(--muted,#667085);font-size:10px}.r61689-extension-items summary em{font-style:normal;font-size:10px;color:var(--muted,#667085);white-space:nowrap}.r61689-extension-items details>div{padding:0 12px 12px}.r61689-extension-items p{margin:0;color:var(--muted,#667085);font-size:11px;line-height:1.6}
@media(max-width:1280px){.r61689-bottom-grid{grid-template-columns:1fr}}

/* /experience-closure-r61690.css */
/* R6.16.90: product, catalog, assistant and modal experience closure */
.r61690-toast{position:fixed;left:50%;bottom:28px;transform:translateX(-50%);z-index:1800;max-width:min(560px,calc(100vw - 32px));padding:10px 16px;border-radius:999px;background:#15233b;color:#fff;font-size:13px;box-shadow:0 14px 40px rgba(16,24,40,.28)}

/* All dense dialogs stay inside the viewport and use available desktop space. */
dialog[class*="r61"],dialog[class*="r616"],.r61689-process-manager,[role="dialog"]{max-height:calc(100dvh - 28px)}
.r61689-process-manager,.r61689-process-manager dialog{width:min(1120px,calc(100vw - 32px));max-width:1120px}
.r61689-process-manager .r61689-process-body,.r61689-process-manager .r61689-process-grid{min-height:0}
.r61690-invalid{border-color:#dc3545!important;box-shadow:0 0 0 3px rgba(220,53,69,.09)!important}.r61690-field-error{display:block;margin-top:5px;color:#b42318;font-size:11px;font-weight:650}

/* Product action popover: no clipped/overflowing explanations. */
.uc-product-menu-popover{width:min(310px,calc(100vw - 24px))!important;max-height:min(520px,calc(100dvh - 24px));overflow:auto!important;overscroll-behavior:contain}
.uc-product-menu a,.uc-product-menu button,.uc-product-menu span{white-space:normal!important;line-height:1.45;word-break:break-word;overflow-wrap:anywhere;min-height:36px!important}
.uc-product-menu-disabled{font-size:11px!important;background:var(--fp-surface-2,#f6f8fb)!important;margin:2px 0;color:var(--fp-muted,#667085)!important}

/* Product bulk handling becomes business language, not an internal data editor. */
.r61-bulk-panel{padding:7px 9px;border:1px solid var(--cui-border-color,#dce2eb);border-radius:12px;background:var(--cui-card-bg,#fff);align-items:flex-end!important;gap:7px!important}
.r61-bulk-panel label>span:first-child{font-weight:700;color:var(--cui-body-color,#1d2939)}
.r61-bulk-panel select,.r61-bulk-panel input{min-width:155px!important;max-width:220px}
.r61-bulk-dialog{width:min(720px,calc(100vw - 28px))!important;max-width:720px!important;max-height:calc(100dvh - 28px);overflow:auto}
.r61690-bulk-dialog-head{margin:-20px -20px 16px;padding:18px 20px 15px;border-bottom:1px solid #e5eaf1;background:#f8faff}.r61690-bulk-dialog-head>span{font-size:11px;color:#5368d5;font-weight:750}.r61690-bulk-dialog-head h3{margin:4px 0 5px;font-size:20px}.r61690-bulk-dialog-head p{margin:0;color:#667085;font-size:12px}
.r61-preview-list div{display:flex!important;align-items:center;justify-content:space-between;gap:14px;padding:10px 12px!important}.r61-preview-list span{color:#667085}.r61-preview-list b{color:#3446d3}.r61690-safe-note{padding:10px 12px;border-radius:10px;background:#f4f7fb;color:#536176!important}

/* Catalog: customer selector scales to hundreds of customers. */
.r61690-customer-picker-field{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px}.r61690-customer-picker-field .btn{white-space:nowrap}
.r61690-customer-picker-dialog{border:0;border-radius:18px;padding:0;width:min(940px,calc(100vw - 32px));max-width:940px;max-height:calc(100dvh - 32px);box-shadow:0 30px 90px rgba(16,24,40,.3)}.r61690-customer-picker-dialog::backdrop{background:rgba(15,23,42,.52)}
.r61690-customer-picker-shell{display:grid;grid-template-rows:auto auto minmax(260px,1fr) auto;max-height:calc(100dvh - 32px);min-height:min(720px,calc(100dvh - 32px))}.r61690-customer-picker-shell>header{display:flex;justify-content:space-between;gap:20px;padding:20px 22px 16px;border-bottom:1px solid #e5eaf1}.r61690-customer-picker-shell header span{font-size:11px;color:#596fd7;font-weight:750}.r61690-customer-picker-shell h3{margin:4px 0;font-size:22px}.r61690-customer-picker-shell p{margin:0;color:#667085;font-size:12px}.r61690-customer-picker-tools{display:grid;grid-template-columns:minmax(0,1.8fr) minmax(150px,.7fr) minmax(160px,.8fr);gap:9px;padding:14px 22px;background:#f8faff}.r61690-customer-picker-list{min-height:0;overflow:auto;padding:10px 22px 18px;display:grid;align-content:start;gap:8px}.r61690-customer-row{display:flex;justify-content:space-between;align-items:center;gap:16px;width:100%;padding:12px 14px;border:1px solid #e2e8f0;border-radius:12px;background:#fff;text-align:left;color:inherit}.r61690-customer-row:hover{border-color:#7183f4;background:#f7f8ff}.r61690-customer-row span{display:grid;gap:4px}.r61690-customer-row small{color:#667085}.r61690-customer-row em{font-style:normal;font-size:11px;padding:5px 8px;border-radius:999px;background:#eef2ff;color:#485ad0;white-space:nowrap}.r61690-customer-picker-shell>footer{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:12px 22px;border-top:1px solid #e5eaf1;background:#fff}.r61690-customer-empty{display:grid;place-items:center;gap:5px;min-height:240px;color:#667085}

/* Batch watermark editor mirrors the existing image editor as a modal, no page jump. */
.r61690-watermark-dialog{border:0;border-radius:20px;padding:0;width:min(1120px,calc(100vw - 28px));max-width:1120px;max-height:calc(100dvh - 28px);box-shadow:0 34px 100px rgba(15,23,42,.38)}.r61690-watermark-dialog::backdrop{background:rgba(15,23,42,.58)}.r61690-watermark-shell{display:grid;grid-template-rows:auto minmax(0,1fr) auto;max-height:calc(100dvh - 28px);min-height:min(760px,calc(100dvh - 28px));background:#fff}.r61690-watermark-shell>header{display:flex;justify-content:space-between;gap:18px;padding:18px 22px 14px;border-bottom:1px solid #e5eaf1}.r61690-watermark-shell>header span{font-size:11px;color:#5267d9;font-weight:750}.r61690-watermark-shell h3{margin:3px 0 4px;font-size:22px}.r61690-watermark-shell p{margin:0;color:#667085;font-size:12px}.r61690-watermark-body{display:grid;grid-template-columns:minmax(0,1.45fr) minmax(300px,.75fr);gap:0;min-height:0}.r61690-watermark-preview{min-height:0;padding:18px;background:#edf1f7;display:grid;grid-template-rows:minmax(0,1fr) auto;gap:9px}.r61690-watermark-canvas{position:relative;display:grid;place-items:center;min-height:0;overflow:hidden;border-radius:14px;background:repeating-conic-gradient(#f7f8fb 0 25%,#e9edf3 0 50%) 50%/24px 24px}.r61690-watermark-canvas>img{max-width:100%;max-height:100%;object-fit:contain}.r61690-watermark-canvas [data-wm-overlay]{position:absolute;transform:translate(-50%,-50%);display:flex;flex-direction:column;align-items:center;gap:3px;pointer-events:none;text-align:center}.r61690-watermark-canvas [data-wm-logo]{max-width:150px;max-height:100px;object-fit:contain}.r61690-watermark-canvas [data-wm-text]{color:#fff;text-shadow:-1px -1px 0 rgba(0,0,0,.6),1px 1px 0 rgba(0,0,0,.6);white-space:nowrap}.r61690-watermark-preview>small{color:#667085}.r61690-watermark-controls{padding:18px 20px;overflow:auto;display:grid;align-content:start;gap:13px}.r61690-watermark-controls>label{display:grid;gap:6px;font-size:12px;font-weight:650}.r61690-watermark-controls select,.r61690-watermark-controls input[type="text"],.r61690-watermark-controls input:not([type]){width:100%}.r61690-watermark-controls label output{justify-self:end;color:#667085}.r61690-segment{display:grid;grid-template-columns:1fr 1fr;gap:8px}.r61690-segment label{display:flex;align-items:center;gap:7px;padding:9px 10px;border:1px solid #dfe5ef;border-radius:10px;font-size:12px}.r61690-watermark-history{display:flex;gap:7px;flex-wrap:wrap}.r61690-watermark-safety{padding:10px 12px;border:1px solid #d9e8dd;border-radius:10px;background:#f3fbf5;color:#356548;font-size:11px;line-height:1.55}.r61690-watermark-shell>footer{display:flex;justify-content:space-between;gap:12px;align-items:center;padding:12px 22px;border-top:1px solid #e5eaf1}.r61690-watermark-shell>footer>div{display:flex;gap:8px}

/* Quick product entry returns to a linear, fast data-entry flow while keeping the same fields/data model. */
.r61690-product-quick .pm-master-sheet{max-width:1180px;margin-inline:auto}.r61690-product-quick .pm-product-sheet{display:block!important}.r61690-product-quick .pm-product-sheet-body{display:grid!important;grid-template-columns:minmax(280px,.72fr) minmax(0,1.28fr)!important;gap:18px!important;align-items:start}.r61690-product-quick .pm-image-board{position:sticky;top:86px}.r61690-product-quick .pm-main-image,.r61690-product-quick [data-current-image]{min-height:260px!important;max-height:340px!important}.r61690-product-quick .pm-basic-panel{min-width:0}.r61690-product-quick .pm-basic-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:12px 14px!important}.r61690-product-quick .pm-basic-field.wide{grid-column:1/-1}.r61690-product-quick .pm-pack-sheet{max-width:1180px;margin-inline:auto}.r61690-product-quick .r61687-entry-switch{position:sticky;top:10px;z-index:8;background:var(--cui-body-bg,#f5f7fb);padding:6px;border-radius:12px}.r61690-product-quick .pm-panel-heading small:after{content:' · 快速模式只显示高频字段，完整模式继续使用同一份资料';color:#5b6bd8}

/* AI drawer: make basic assistant feel like a useful guide, and reduce repeated evidence noise. */
.r616-copilot-drawer{width:min(760px,calc(100vw - 18px))!important}.r616-copilot-drawer .r61612-details{margin-top:8px}.r616-copilot-drawer .r61612-details>summary{font-size:11px;color:#667085}.r616-copilot-drawer .r616-message-assistant>p{font-size:14px;line-height:1.72}.r616-copilot-drawer [data-r616-context-prompts]{display:flex;gap:6px;flex-wrap:wrap}.r616-copilot-drawer [data-r616-context-prompts] button{border-radius:999px}.r616-ai-mode-hint{max-width:380px;line-height:1.45}
.r616-copilot-page .r616-evidence:not([open]){opacity:.78}.r616-copilot-page .r616-thread-result-grid{gap:10px!important}

/* Product/reference-price language consistency. */
.r61681-card-price dt,.uc-product-table th:nth-child(6){white-space:nowrap}.r61681-price-note{display:block;margin-top:2px;color:#667085;font-size:10px}

@media(max-width:900px){.r61690-watermark-body{grid-template-columns:1fr}.r61690-watermark-preview{min-height:360px}.r61690-customer-picker-tools{grid-template-columns:1fr}.r61690-product-quick .pm-product-sheet-body{grid-template-columns:1fr!important}.r61690-product-quick .pm-image-board{position:static}.r61690-customer-picker-field{grid-template-columns:1fr}.r61-bulk-panel{margin-left:0!important;width:100%}.r61-bulk-panel label{flex:1;min-width:150px}}

.r616-copilot-page{grid-template-columns:minmax(210px,250px) minmax(0,1fr)!important;max-width:1540px;margin-inline:auto;gap:14px!important}.r616-copilot-workspace{min-width:0}.r616-copilot-workspace .r616-conversation{max-width:1120px;margin-inline:auto}.r616-copilot-workspace .r616-prompt-grid{max-width:1120px;margin-inline:auto}.r616-result-summary p{max-width:920px;line-height:1.65}.r616-result-items.is-grid{grid-template-columns:repeat(3,minmax(0,1fr))!important}.r616-evidence>div{grid-template-columns:repeat(2,minmax(0,1fr))!important}
.r61690-product-quick .pm-product-sheet-body{grid-template-columns:1fr!important}
.r61690-product-quick .pm-image-board{position:static!important;display:grid!important;grid-template-columns:minmax(220px,290px) minmax(0,1fr);grid-template-rows:auto auto auto;gap:10px 14px;padding:14px!important}
.r61690-product-quick .pm-image-head{grid-column:1/-1}.r61690-product-quick .pm-main-image{grid-column:1;grid-row:2/4;min-height:210px!important;max-height:260px!important}.r61690-product-quick .pm-current-image-actions{grid-column:2;grid-row:2}.r61690-product-quick .pm-thumb-strip{grid-column:2;grid-row:3;align-self:start}.r61690-product-quick .pm-image-board>.notice,.r61690-product-quick .pm-image-board>[hidden]+.notice{grid-column:1/-1}.r61690-product-quick .pm-basic-panel{margin-top:4px}
@media(max-width:760px){.r61690-product-quick .pm-image-board{grid-template-columns:1fr}.r61690-product-quick .pm-image-head,.r61690-product-quick .pm-main-image,.r61690-product-quick .pm-current-image-actions,.r61690-product-quick .pm-thumb-strip{grid-column:1;grid-row:auto}}

/* /closure-r61691.css */
/* R6.16.91 · backup / preferences / template / security closure */
.r61691-backup-center{overflow:hidden}.r61691-backup-center .section-title{gap:18px;align-items:flex-start}.r61691-backup-coverage{display:flex;flex-wrap:wrap;gap:8px;margin:14px 0 18px}.r61691-backup-coverage span{padding:7px 10px;border:1px solid var(--line,#e6e8ef);border-radius:999px;background:var(--surface-soft,#f7f8fb);font-size:12px}.r61691-backup-steps{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.r61691-backup-step{min-width:0;padding:16px;border:1px solid var(--line,#e6e8ef);border-radius:14px;background:var(--card,#fff)}.r61691-backup-step header{display:flex;align-items:center;gap:9px;margin-bottom:10px}.r61691-backup-step header i{display:grid;place-items:center;width:26px;height:26px;border-radius:50%;background:#5b5ff0;color:#fff;font-style:normal;font-weight:700}.r61691-backup-step p{min-height:42px;color:var(--muted,#6b7280);font-size:13px;line-height:1.6}.r61691-backup-step .actions{display:flex;flex-wrap:wrap;gap:8px}.r61691-restore-guard{margin-top:14px;padding-top:14px;border-top:1px solid var(--line,#e6e8ef)}.r61691-restore-guard summary{cursor:pointer;font-weight:700}.r61691-restore-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:12px;margin-top:12px}.r61691-restore-grid .span2{grid-column:1/-1}.r61691-risk-note{border-left:3px solid #e09a23;background:#fff8e9;padding:11px 12px;border-radius:8px;font-size:12px;line-height:1.55}
.r61691-pref-scope{display:grid;grid-template-columns:minmax(0,1.3fr) minmax(260px,.7fr);gap:12px;margin-top:12px}.r61691-pref-scope>div{border:1px solid var(--line,#e6e8ef);border-radius:12px;padding:13px;background:var(--surface-soft,#fafbff)}.r61691-pref-scope strong{display:block;margin-bottom:6px}.r61691-pref-scope ul{margin:0;padding-left:18px;color:var(--muted,#687084);line-height:1.7}.r61691-pref-scope .scope-lock{display:grid;align-content:center}.r61691-pref-scope .scope-lock b{color:#4e55d9;font-size:14px}.r61691-pref-scope .scope-lock span{font-size:12px;color:var(--muted,#687084);margin-top:5px}
.r61691-template-flow{display:grid;grid-template-columns:repeat(8,minmax(0,1fr));gap:7px;align-items:stretch}.r61691-template-flow span{position:relative;min-width:0;padding:11px 8px;border:1px solid var(--line,#e2e5ef);border-radius:10px;background:var(--surface-soft,#fafbff);text-align:center;font-size:12px;font-weight:650;line-height:1.35}.r61691-template-flow span:not(:last-child)::after{content:'›';position:absolute;right:-8px;top:50%;transform:translateY(-50%);z-index:2;color:#8a91a5;font-size:17px}.r61691-template-link-note{display:flex;justify-content:space-between;align-items:center;gap:14px;margin-top:10px;font-size:12px;color:var(--muted,#687084)}.r61691-template-brand-link{display:flex;justify-content:space-between;align-items:center;gap:14px;padding:10px 12px;margin:0 0 10px;border:1px solid #d9ddff;border-radius:12px;background:#f6f7ff}.r61691-template-brand-link>div:first-child{min-width:0}.r61691-template-brand-link strong{display:block;margin-bottom:3px}.r61691-template-brand-link span{font-size:12px;color:#616980;line-height:1.45}.r61691-template-brand-current{display:flex;align-items:center;gap:8px;flex:0 0 auto}.r61691-template-brand-current img{width:34px;height:34px;object-fit:contain;border-radius:7px;background:#fff;border:1px solid #e7e9f2}.r61691-logo-empty{display:grid;place-items:center;width:34px;height:34px!important;border-radius:7px;background:#fff;font-size:10px!important}.template-company-logo-img,.template-live-logo img{max-width:100%;max-height:100%;object-fit:contain}.template-live-table-wrap{max-width:100%;overflow:hidden}.template-live-table{width:100%;table-layout:fixed}.template-live-table th,.template-live-table td{overflow-wrap:anywhere;word-break:break-word}.template-live-canvas{overflow:auto;overscroll-behavior:contain}.template-paper-stage{max-width:none}.r61627-template-facts,.r61630-row-actions{min-width:0}.r61630-row-actions{flex-wrap:wrap}
.r61691-security-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:14px}.r61691-security-card{min-width:0}.r61691-security-form{display:grid;gap:12px}.r61691-security-form .btn{justify-self:start}.r61691-secret-box{display:grid;gap:7px;padding:13px;border:1px solid #d9ddff;border-radius:12px;background:#f7f8ff;margin-bottom:12px}.r61691-secret-box code{font-size:16px;letter-spacing:1px;overflow-wrap:anywhere}.r61691-inline-security{display:flex;gap:8px}.r61691-inline-security input{min-width:0;flex:1}.r61691-login-facts{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:0}.r61691-login-facts div{padding:12px;border:1px solid var(--line,#e6e8ef);border-radius:11px}.r61691-login-facts dt{font-size:12px;color:var(--muted,#687084)}.r61691-login-facts dd{margin:5px 0 0;font-weight:650;overflow-wrap:anywhere}.r61691-login-protection{display:grid;gap:5px;margin-top:14px;padding:11px 12px;border:1px solid #34384b;border-radius:10px;background:#171a25}.r61691-login-protection strong{color:#eef1ff;font-size:12px}.r61691-login-protection span{color:#aab1c6;font-size:11px;line-height:1.45}.r61691-owner-password-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px}.r61691-owner-password-grid .span2{grid-column:1/-1}
@media(max-width:1180px){.r61691-backup-steps{grid-template-columns:1fr}.r61691-template-flow{grid-template-columns:repeat(4,1fr)}.r61691-template-flow span:nth-child(4)::after{display:none}.r61691-security-grid{grid-template-columns:1fr}.r61691-pref-scope{grid-template-columns:1fr}.r61691-template-brand-link{align-items:flex-start;flex-direction:column}.r61691-template-brand-current{flex-wrap:wrap}}
@media(max-width:760px){.r61691-template-flow{grid-template-columns:repeat(2,1fr)}.r61691-template-flow span:nth-child(even)::after{display:none}.r61691-restore-grid,.r61691-owner-password-grid{grid-template-columns:1fr}.r61691-restore-grid .span2,.r61691-owner-password-grid .span2{grid-column:auto}.r61691-login-facts{grid-template-columns:1fr}}
.r61691-backup-scope{display:flex;flex-wrap:wrap;gap:8px;margin:14px 0 18px}.r61691-backup-scope>strong{width:100%;font-size:12px}.r61691-backup-scope>span{padding:7px 10px;border:1px solid var(--line,#e6e8ef);border-radius:999px;background:var(--surface-soft,#f7f8fb);font-size:12px}.r61691-backup-steps>article{display:grid;grid-template-columns:30px minmax(0,1fr);gap:10px;min-width:0;padding:16px;border:1px solid var(--line,#e6e8ef);border-radius:14px;background:var(--card,#fff)}.r61691-backup-steps>article>b{display:grid;place-items:center;width:28px;height:28px;border-radius:50%;background:#5b5ff0;color:#fff}.r61691-backup-steps>article p{min-height:42px;color:var(--muted,#6b7280);font-size:13px;line-height:1.6}.r61691-backup-upload{display:grid;gap:8px}.r61691-backup-upload input[type=file]{min-width:0;width:100%}

/* /closure-r61692.css */
/* R6.16.92 visual closure: robust process manager, template studio and notification safety panel */
.r61689-process-manager-backdrop{overflow:auto!important;place-items:center!important;padding:16px!important}
.r61689-process-manager{width:min(1500px,calc(100vw - 32px))!important;max-width:none!important;height:min(940px,calc(100dvh - 32px))!important;max-height:calc(100dvh - 32px)!important;min-width:0!important}
.r61689-pm-head,.r61689-pm-guide,.r61689-pm-foot{flex:0 0 auto;min-width:0}
.r61689-pm-head>div,.r61689-pm-pane,.r61689-pm-process-pane,.r61689-pm-categories{min-width:0!important}
.r61689-pm-body{grid-template-columns:minmax(390px,.9fr) minmax(0,1.1fr)!important;gap:12px!important;padding:12px!important;overflow:hidden!important;min-width:0!important}
.r61689-pm-pane{overflow-y:auto!important;overflow-x:hidden!important;overscroll-behavior:contain;scrollbar-gutter:stable;min-width:0!important}
.r61689-pm-category-form{grid-template-columns:minmax(135px,.65fr) minmax(0,1fr)!important;align-items:stretch!important}
.r61689-pm-category-form .actions{grid-column:1/-1;justify-content:flex-end;flex-wrap:wrap}
.r61689-pm-process-form{grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important;min-width:0}
.r61689-pm-process-form label,.r61689-pm-process-form input,.r61689-pm-process-form select{min-width:0!important;max-width:100%!important;width:100%!important;box-sizing:border-box}
.r61689-pm-submit{flex-wrap:wrap!important;align-items:center!important}
.r61689-pm-submit span{min-width:220px;flex:1 1 260px;overflow-wrap:anywhere}
.r61689-pm-submit .btn{flex:0 0 auto;white-space:nowrap}
.r61689-pm-major-button>*{min-width:0}.r61689-pm-major-button strong,.r61689-pm-process strong,.r61689-selected-path strong{overflow-wrap:anywhere;word-break:break-word}
.r61689-pm-process{min-width:0}.r61689-pm-process>div{min-width:0;flex:1 1 auto}.r61689-pm-process>.badge{flex:0 0 auto;white-space:nowrap}
.r61689-pm-foot{flex-wrap:wrap}.r61689-pm-foot>[data-pm-message]{flex:1 1 520px}.r61689-pm-foot>.btn{margin-left:auto}

/* notification security quick-start */
.r61692-security-alert{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:16px;align-items:center;margin:0 0 14px;padding:14px 16px;border:1px solid #d9ddff;border-radius:14px;background:linear-gradient(135deg,#f7f8ff,#fff)}
.r61692-security-alert h3{margin:0 0 5px;font-size:16px}.r61692-security-alert p{margin:0;color:var(--muted,#667085);font-size:12px;line-height:1.55}
.r61692-security-alert .r61692-security-meta{display:flex;gap:7px;flex-wrap:wrap;margin-top:9px}.r61692-security-alert .r61692-security-meta span{padding:4px 8px;border-radius:999px;background:#eef2ff;color:#4f46e5;font-size:11px;font-weight:650}
.r61692-security-actions{display:flex;gap:8px;align-items:center;flex-wrap:wrap;justify-content:flex-end}.r61692-security-actions form{margin:0}.r61692-security-actions .btn{white-space:nowrap}
.r61692-security-alert.is-ready{border-color:#b7e4cb;background:linear-gradient(135deg,#f3fbf7,#fff)}.r61692-security-alert.is-ready .r61692-security-meta span{background:#e8f7ee;color:#147a43}

/* template studio: prevent chrome collisions and keep preview readable */
.r61627-template-closure .template-studio-toolbar{min-width:0;gap:10px;flex-wrap:wrap!important;align-items:center!important}
.r61627-template-closure .template-toolbar-identity{min-width:280px;flex:1 1 420px}.r61627-template-closure .template-toolbar-identity>div{min-width:0}.r61627-template-closure .template-toolbar-title{min-width:0;flex-wrap:wrap}.r61627-template-closure .template-toolbar-title h2{min-width:0;overflow-wrap:anywhere}
.r61627-template-closure .template-toolbar-actions{min-width:0;flex:1 1 620px;justify-content:flex-end;flex-wrap:wrap!important}.r61627-template-closure .template-toolbar-control{min-width:105px}.r61627-template-closure .template-toolbar-sample{min-width:210px;max-width:330px}.r61627-template-closure .template-toolbar-control select{min-width:0;max-width:100%}
.r61691-template-brand-link{min-width:0;flex-wrap:wrap!important}.r61691-template-brand-current{min-width:0!important;flex:0 1 auto!important;flex-wrap:wrap;justify-content:flex-end}.r61691-template-brand-current b{max-width:260px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.r61691-template-brand-current img{display:block!important;flex:0 0 auto}
.r61692-template-standard{display:flex;justify-content:space-between;gap:14px;align-items:center;flex-wrap:wrap;margin:0 0 10px;padding:10px 12px;border:1px solid #d9ddff;border-radius:12px;background:#fbfbff}.r61692-template-standard.is-ok{border-color:#b7e4cb;background:#f7fcf9}.r61692-template-standard>div:first-child{min-width:0;flex:1 1 420px}.r61692-template-standard strong{display:block;margin-bottom:3px}.r61692-template-standard p{margin:0;font-size:12px;color:var(--muted,#667085);line-height:1.5}.r61692-template-standard .standard-tags{display:flex;gap:6px;flex-wrap:wrap;margin-top:7px}.r61692-template-standard .standard-tags span{padding:3px 7px;border-radius:999px;background:#eef2ff;color:#4f46e5;font-size:10px}.r61692-template-standard.is-ok .standard-tags span{background:#e9f7ef;color:#147a43}
.r61627-template-closure .template-studio-shell{min-width:0;max-width:100%;grid-template-columns:minmax(72px,92px) minmax(300px,var(--template-editor-pane,360px)) 8px minmax(0,1fr)!important}
.r61627-template-closure .template-studio-nav,.r61627-template-closure .template-studio-editor,.r61627-template-closure .template-preview-panel,.r61627-template-closure .template-live-canvas{min-width:0!important}
.r61627-template-closure .template-preview-panel{overflow:hidden}.r61627-template-closure .template-preview-toolbar{min-width:0;flex-wrap:wrap!important;gap:7px!important}.r61627-template-closure .template-preview-toolbar>*{min-width:0}
.r61627-template-closure .template-live-canvas{overflow:auto!important;scrollbar-gutter:stable}.r61627-template-closure .template-live-sheet{transform-origin:top left}.r61627-template-closure .template-live-table-wrap{overflow:visible!important;max-width:none!important}.r61627-template-closure .template-live-table{table-layout:fixed!important;width:100%!important}.r61627-template-closure .template-live-table th,.r61627-template-closure .template-live-table td{line-height:1.25!important;vertical-align:middle!important;overflow-wrap:anywhere!important;word-break:break-word!important;hyphens:auto}
.r61627-template-closure .template-live-table th{font-weight:700}.r61627-template-closure .template-live-sheet.is-wide-table .template-live-table{font-size:10px!important}.r61627-template-closure .template-live-sheet.is-ultra-wide-table .template-live-table{font-size:9px!important}.r61627-template-closure .template-live-sheet.is-ultra-wide-table .template-live-table th,.r61627-template-closure .template-live-sheet.is-ultra-wide-table .template-live-table td{padding:4px 3px!important}
.r61627-template-closure .template-company-logo-img,.r61627-template-closure .template-live-logo img{display:block;object-fit:contain!important;max-width:100%;max-height:100%}

@media(max-width:1180px){
 .r61689-process-manager{width:calc(100vw - 20px)!important;height:calc(100dvh - 20px)!important}.r61689-pm-body{grid-template-columns:minmax(290px,.75fr) minmax(0,1.25fr)!important}
 .r61627-template-closure .template-studio-shell{grid-template-columns:76px minmax(280px,330px) 6px minmax(0,1fr)!important}
 .r61627-template-closure .template-toolbar-actions{justify-content:flex-start}
}
@media(max-width:900px){
 .r61689-process-manager-backdrop{padding:0!important}.r61689-process-manager{width:100vw!important;height:100dvh!important;max-height:100dvh!important;border-radius:0!important}.r61689-pm-body{grid-template-columns:1fr!important;overflow:auto!important}.r61689-pm-pane{overflow:visible!important}.r61689-pm-process-form{grid-template-columns:1fr!important}.r61689-pm-process-form .span-2{grid-column:auto!important}
 .r61692-security-alert{grid-template-columns:1fr}.r61692-security-actions{justify-content:flex-start}
 .r61627-template-closure .template-studio-shell{display:grid!important;grid-template-columns:68px minmax(0,1fr)!important;grid-template-areas:'nav editor' 'nav preview'!important}.r61627-template-closure .template-studio-nav{grid-area:nav}.r61627-template-closure .template-studio-editor{grid-area:editor}.r61627-template-closure .template-studio-splitter{display:none!important}.r61627-template-closure .template-preview-panel{grid-area:preview;min-height:620px}
}

/* /closure-r61693.css */
/* R6.16.93 · template editor recovery, preview parity and catalog export safety */
.r61693-preview-mode-switch{display:flex;align-items:center;gap:2px;padding:2px;border:1px solid var(--fp-border);border-radius:9px;background:var(--fp-surface-2)}
.r61693-preview-mode-switch button{height:27px;padding:0 9px;border:0;border-radius:7px;background:transparent;color:var(--fp-muted);font-size:10px;font-weight:800;cursor:pointer;white-space:nowrap}
.r61693-preview-mode-switch button.is-active{background:var(--fp-surface);color:var(--fp-primary-strong);box-shadow:0 1px 5px rgba(15,23,42,.09)}
.r61627-template-closure .template-live-canvas.mode-excel{align-content:start!important;padding:14px!important;background:#eef3f0!important}
.r61627-template-closure .template-live-canvas.mode-excel .template-live-document-header,.r61627-template-closure .template-live-canvas.mode-excel .template-live-meta,.r61627-template-closure .template-live-canvas.mode-excel .template-live-sheet>footer{display:none!important}
.r61627-template-closure .template-live-canvas.mode-excel .template-live-sheet{padding:8px!important;box-shadow:none!important;border:1px solid #afbbb3!important}
.r61627-template-closure .template-live-canvas.mode-excel .template-live-table-wrap{overflow:auto!important}
.r61627-template-closure .template-live-canvas.mode-excel .template-live-table th{background:#e2f0d9!important;color:#173b26!important}
.r61627-template-closure .template-live-canvas.mode-excel .template-live-table td{background:#fff!important}
.r61627-template-closure .template-studio-nav button{position:relative;z-index:1}
.r61627-template-closure .template-studio-nav button:focus-visible{outline:2px solid var(--fp-primary);outline-offset:1px}
.r61630-total-editor .r61631-info-card .btn{margin-top:8px;width:max-content}
@media(max-width:1180px){.r61693-preview-mode-switch{order:-1;width:100%;overflow:auto}.template-preview-controls{flex-wrap:wrap!important}}

/* /closure-r61694.css */
/* R6.16.94 - 26-template preview matrix, semantic preview modes and overflow closure */
.r61694-mode-hint{display:block;margin-top:3px;color:var(--fp-muted);font-size:8px;line-height:1.45;max-width:680px}
.r61627-template-closure .template-preview-toolbar{align-items:flex-start}
.r61627-template-closure .template-preview-heading{align-items:flex-start;min-width:280px}
.r61627-template-closure .template-preview-controls{flex-wrap:wrap;justify-content:flex-end}
.r61627-template-closure .template-live-canvas.mode-sheet .template-live-sheet{background:#fff}
.r61627-template-closure .template-live-canvas.mode-sheet .template-paper-stage:before{content:'实时纸张效果';position:absolute;right:0;top:-16px;color:#7b8495;font-size:8px;font-weight:700}
.r61627-template-closure .template-live-canvas.mode-excel{align-content:start!important;padding:14px!important;background:#eef3f0!important}
.r61627-template-closure .template-live-canvas.mode-excel .template-paper-stage{margin:0 auto!important}
.r61627-template-closure .template-live-canvas.mode-excel .template-live-sheet{height:auto!important;min-height:170px!important;padding:8px!important;overflow:visible!important;background:#fff!important;box-shadow:none!important;border:1px solid #afbbb3!important}
.r61627-template-closure .template-live-canvas.mode-excel .template-live-document-header,
.r61627-template-closure .template-live-canvas.mode-excel .template-live-meta,
.r61627-template-closure .template-live-canvas.mode-excel .template-live-sheet>footer{display:none!important}
.r61627-template-closure .template-live-canvas.mode-excel .template-live-table-wrap{overflow:visible!important}
.r61627-template-closure .template-live-canvas.mode-excel .template-live-table{table-layout:fixed!important}
.r61627-template-closure .template-live-canvas.mode-excel .template-live-table th{background:#e2f0d9!important;color:#173b26!important;border-color:#9aaa9e!important}
.r61627-template-closure .template-live-canvas.mode-excel .template-live-table td{background:#fff!important;border-color:#aab5ad!important}
.r61627-template-closure .template-live-canvas.mode-excel .template-live-table tbody tr:nth-child(even) td{background:#f7fbf8!important}
.r61627-template-closure .template-live-canvas.mode-print{padding:28px!important;background:#cfd4dc!important}
.r61627-template-closure .template-live-canvas.mode-print .template-paper-stage:before{content:'打印页边界';position:absolute;right:0;top:-18px;color:#5d6572;font-size:8px;font-weight:700}
.r61627-template-closure .template-live-canvas.mode-print .template-live-sheet{outline:1px solid #b1b7c0;outline-offset:0;box-shadow:0 9px 30px rgba(15,23,42,.23)!important}
.r61627-template-closure .template-live-canvas.mode-print .template-live-sheet:after{content:'';position:absolute;inset:12px;border:1px dashed rgba(90,99,112,.25);pointer-events:none}
.r61627-template-closure .template-preview-health{position:relative;z-index:2}
.r61627-template-closure .template-live-table th,.r61627-template-closure .template-live-table td{overflow:hidden;text-overflow:ellipsis}
.r61627-template-closure .template-live-table td.field-notes,.r61627-template-closure .template-live-table td.field-process_requirement,.r61627-template-closure .template-live-table td.field-quality_requirement,.r61627-template-closure .template-live-table td.field-packing{white-space:normal!important;overflow-wrap:anywhere;text-overflow:clip}
.r61627-template-closure .template-live-table img{max-width:100%;max-height:42px;object-fit:contain}
.r61627-template-closure .template-preview-stats>div{min-width:66px}
@media(max-width:1360px){.r61627-template-closure .template-preview-toolbar{display:grid;grid-template-columns:1fr}.r61627-template-closure .template-preview-controls{justify-content:flex-start}.r61694-mode-hint{max-width:none}}

/* /closure-r61695.css */
/* R6.16.95 commercial-flow closure: compact template center, adaptive pickers, safe desktop sidebar */

/* Template center: keep the actual templates in the first screen. */
body.r61695-template-center .cui-main{padding-top:14px}
.r61695-template-center .r61695-template-hero{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:15px 20px;margin-bottom:10px;min-height:0}
.r61695-template-center .r61695-template-hero .eyebrow{display:none}
.r61695-template-center .r61695-template-hero h2{margin:0 0 3px;font-size:20px;line-height:1.25}
.r61695-template-center .r61695-template-hero p{margin:0;font-size:12px;color:var(--fp-muted)}
.r61695-template-center .r61695-template-hero .actions{flex-wrap:nowrap}
.r61695-template-flowbar{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:10px 16px;margin-bottom:10px;min-height:58px}
.r61695-flow-main{min-width:0;display:flex;align-items:center;gap:14px;flex:1}
.r61695-flow-main>strong{font-size:12px;white-space:nowrap;color:var(--fp-text)}
.r61695-flow-steps{display:flex;align-items:center;min-width:0;overflow-x:auto;scrollbar-width:thin}
.r61695-flow-steps span{display:flex;align-items:center;white-space:nowrap;font-size:11px;font-weight:700;color:var(--fp-muted)}
.r61695-flow-steps span:not(:last-child)::after{content:'›';margin:0 9px;color:var(--fp-faint);font-size:15px}
.r61695-brand-link{display:flex;align-items:center;gap:8px;padding-left:14px;border-left:1px solid var(--fp-border);font-size:11px;color:var(--fp-muted);white-space:nowrap}
.r61695-brand-link a{font-weight:800;color:var(--fp-primary)}
.r61695-template-center .r61630-source-tabs{margin-bottom:8px}
.r61695-template-center .r61630-template-panel{padding-top:0}
.r61695-template-center .r61630-panel-header{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:8px 0 7px}
.r61695-template-center .r61630-panel-header h3{margin:0 0 2px;font-size:15px}
.r61695-template-center .r61630-panel-header p{margin:0;font-size:11px}
.r61695-template-center .r61623-template-search{min-width:280px}
.r61695-template-center .r61630-filter-card{display:flex;align-items:flex-end;justify-content:space-between;gap:12px;padding:9px 11px;border-radius:12px;margin-bottom:6px}
.r61695-template-center .r61630-category-block{min-width:0;flex:1}
.r61695-template-center .r61630-category-filter{gap:5px;flex-wrap:nowrap;overflow-x:auto;padding-bottom:1px}
.r61695-template-center .r61630-category-filter button{min-height:32px;padding:5px 9px;white-space:nowrap}
.r61695-template-center .r61630-form-block{flex:0 0 auto}
.r61695-template-center .r61630-form-switch{min-width:220px}
.r61695-template-center .r61630-form-switch button{min-height:34px;padding:6px 11px}
.r61695-template-center .r61630-filter-label{font-size:9px;margin-bottom:4px}
.r61695-total-logic-note{display:flex;align-items:center;gap:10px;margin:4px 0 6px;padding:6px 10px;border-radius:9px;background:var(--fp-primary-soft);color:var(--fp-muted);font-size:10.5px;line-height:1.35}
.r61695-total-logic-note strong{color:var(--fp-primary-strong);white-space:nowrap}
.r61695-template-center .r61630-current-view{min-height:30px;padding:4px 2px 6px;margin:0}
.r61695-template-center .r61630-current-view strong{font-size:12px}
.r61695-template-center .r61630-current-view span{font-size:10px}
.r61695-template-center .r61630-template-list{gap:7px}
.r61695-template-center .r61630-template-row{padding:10px 12px;min-height:82px}
.r61695-template-center .r61623-template-copy h4{font-size:13px;margin-bottom:2px}
.r61695-template-center .r61623-template-copy>p{font-size:11px}
.r61695-template-center .r61623-template-detail{margin-top:4px}
.r61695-template-center .r61627-template-facts{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}

/* Product picker: content-sized for small result sets; scroll only when results need it. */
.r61650-order-entry .product-picker-sheet.r61686-product-picker.classic-picker-open{
  inset:auto max(18px,calc((100vw - 1240px)/2))!important;
  top:50%!important;
  transform:translateY(-50%);
  width:auto!important;
  height:auto!important;
  max-height:min(82vh,760px)!important;
  min-height:0!important;
  overflow:hidden!important;
  padding:14px!important;
}
.r61650-order-entry .product-picker-sheet.r61686-product-picker .r61638-picker-close{display:inline-flex!important}
.r61650-order-entry .product-picker-sheet.r61686-product-picker .order-product-picker{flex:0 1 auto!important;min-height:0!important;max-height:min(50vh,500px)!important;overflow:auto!important;padding-right:4px}
.r61650-order-entry .product-picker-sheet.r61686-product-picker .product-picker-summary{position:sticky;bottom:0;top:auto!important;z-index:5;margin-top:8px;padding:9px 2px 0;background:var(--fp-surface);border-top:1px solid var(--fp-border);border-bottom:0!important}
.r61650-order-entry .product-picker-sheet.r61686-product-picker .r613-product-row{min-height:66px}
.r61650-order-entry .product-picker-sheet.r61686-product-picker .r613-picker-qty input::placeholder{color:var(--fp-faint);opacity:.9}
.r61650-order-entry .product-picker-sheet.r61686-product-picker .r61638-picker-actions{display:flex;gap:7px;align-items:center}

/* Multi-order procurement filter: one total entry, explicit category, supplier-safe split. */
.r61695-purchase-total-filter{display:flex;align-items:center;justify-content:space-between;gap:14px;margin:0 0 12px;padding:10px 12px;border:1px solid var(--fp-border);border-radius:12px;background:var(--fp-surface)}
.r61695-purchase-total-filter>div:first-child{display:grid;gap:2px;min-width:0}
.r61695-purchase-total-filter strong{font-size:12px}
.r61695-purchase-total-filter small{font-size:10px;color:var(--fp-muted)}
.r61695-purchase-category-actions{display:flex;gap:5px;flex-wrap:wrap;justify-content:flex-end}
.r61695-purchase-category-actions a{display:inline-flex;align-items:center;min-height:30px;padding:5px 9px;border:1px solid var(--fp-border);border-radius:8px;background:var(--fp-surface-2);font-size:10.5px;font-weight:750}
.r61695-purchase-category-actions a.active{border-color:var(--fp-primary);background:var(--fp-primary-soft);color:var(--fp-primary-strong)}

/* Desktop collapsed sidebar must remain a clean icon rail, even around zoom/breakpoint edges. */
@media(min-width:821px){
 .sidebar-collapsed .v070-sidebar{overflow-x:hidden!important}
 .sidebar-collapsed .v070-sidebar .mobile-only,.sidebar-collapsed .v070-sidebar .sidebar-close{display:none!important}
 .sidebar-collapsed .v070-sidebar .v070-brand{display:flex!important;justify-content:center!important;align-items:center!important;padding-inline:0!important}
 .sidebar-collapsed .v070-sidebar .brand-mark{margin:0!important;flex:0 0 auto}
 .sidebar-collapsed .v070-sidebar .brand-copy,.sidebar-collapsed .v070-sidebar .cui-nav-link>span:not(.v070-nav-symbol),.sidebar-collapsed .v070-sidebar .r6151-lite-hint,.sidebar-collapsed .v070-sidebar .r61633-nav-divider,.sidebar-collapsed .v070-sidebar .v070-management summary,.sidebar-collapsed .v070-sidebar .v070-enterprise,.sidebar-collapsed .v070-sidebar .v070-user-row div,.sidebar-collapsed .v070-sidebar .v070-sidebar-bottom>a,.sidebar-collapsed .v070-sidebar .r67-sidebar-preferences b,.sidebar-collapsed .v070-sidebar .v070-collapse-button b,.sidebar-collapsed .v070-sidebar .version-pill{display:none!important}
 .sidebar-collapsed .v070-sidebar .v070-nav .cui-nav-link,.sidebar-collapsed .v070-sidebar .r67-sidebar-preferences,.sidebar-collapsed .v070-sidebar .v070-user-row,.sidebar-collapsed .v070-sidebar .v070-collapse-button{justify-content:center!important}
}

@media(max-width:1250px) and (min-width:821px){
 .r61695-template-center .r61630-filter-card{display:grid;grid-template-columns:minmax(0,1fr) auto}
 .r61695-template-flowbar{align-items:flex-start}
 .r61695-flow-main{display:grid;gap:5px}
}
@media(max-width:900px){
 .r61695-template-center .r61695-template-hero,.r61695-template-flowbar{display:grid}
 .r61695-brand-link{padding:6px 0 0;border-left:0;border-top:1px solid var(--fp-border)}
 .r61650-order-entry .product-picker-sheet.r61686-product-picker.classic-picker-open{inset:12px!important;top:auto!important;transform:none;max-height:calc(100vh - 24px)!important}
}
