.mp-page{--mp-navy:#17324d;--mp-blue:#2563eb;--mp-cyan:#0ea5e9;--mp-green:#059669;--mp-amber:#d97706;--mp-red:#dc2626;--mp-line:#dce6f1;--mp-soft:#f5f8fc;color:#1f2937;gap:16px}
.mp-page button{white-space:nowrap}
.mp-page.erp-page-active{display:flex!important;flex-direction:column}
.mp-hero{position:relative;display:flex;align-items:center;justify-content:space-between;gap:24px;padding:28px 30px;border:1px solid #d9e6f4;border-radius:22px;background:linear-gradient(118deg,#f7fbff 0%,#edf6ff 52%,#f7fffc 100%);box-shadow:0 16px 45px rgba(23,50,77,.08);overflow:hidden}
.mp-hero:after{content:"";position:absolute;right:-80px;top:-130px;width:340px;height:340px;border-radius:50%;background:radial-gradient(circle,rgba(14,165,233,.18),rgba(37,99,235,0) 68%);pointer-events:none}
.mp-hero>div{position:relative;z-index:1}.mp-hero span{display:block;margin-bottom:7px;color:#0b72b9;font-size:12px;font-weight:800;letter-spacing:.13em}.mp-hero h1{margin:0;color:var(--mp-navy);font-size:30px;line-height:1.18}.mp-hero p{max-width:920px;margin:10px 0 0;color:#5a6d82;line-height:1.75}.mp-hero-actions{display:flex;min-width:max-content;gap:10px}
.mp-source-strip{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:14px 18px;border:1px solid #f1c6c6;border-radius:16px;background:#fff7f7}.mp-source-strip.ok{border-color:#bfe8dc;background:#f2fbf8}.mp-source-strip>div:first-child{display:flex;align-items:center;gap:9px}.mp-source-strip i{width:10px;height:10px;border-radius:50%;background:var(--mp-red);box-shadow:0 0 0 5px rgba(220,38,38,.09)}.mp-source-strip.ok i{background:var(--mp-green);box-shadow:0 0 0 5px rgba(5,150,105,.09)}.mp-source-strip b{color:var(--mp-navy)}.mp-source-strip span{color:#607087;font-size:13px}.mp-source-metrics{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:8px}.mp-source-metrics span{padding:6px 10px;border:1px solid rgba(148,163,184,.3);border-radius:999px;background:#fff}.mp-source-metrics b{margin-left:4px;color:#17324d}
.mp-tabs{display:flex;gap:6px;padding:6px;border:1px solid var(--mp-line);border-radius:15px;background:#fff;overflow-x:auto}.mp-tabs button{min-width:max-content;padding:10px 14px;border:0;border-radius:10px;background:transparent;color:#52667c;font-weight:700;box-shadow:none}.mp-tabs button.active{background:linear-gradient(135deg,#173d67,#2563eb);color:#fff;box-shadow:0 8px 18px rgba(37,99,235,.2)}
.mp-message{min-height:0;padding:0 4px;color:#64748b;font-size:13px}.mp-message:not(:empty){min-height:22px}.mp-message.ok{color:var(--mp-green)}.mp-message.error{color:var(--mp-red)}.mp-message.running{color:#1d4ed8}
.mp-message.warn{color:var(--mp-amber)}
.mp-view{display:none}.mp-view.active{display:block}.mp-view[data-mp-view="tasks"].active{display:flex;flex-direction:column;gap:16px}
.mp-task-grid{display:grid;grid-template-columns:minmax(0,1.7fr) minmax(320px,.8fr);gap:16px}.mp-panel{border:1px solid var(--mp-line);border-radius:18px;background:#fff;box-shadow:0 10px 28px rgba(23,50,77,.055);overflow:hidden}.mp-panel>header{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;padding:17px 19px;border-bottom:1px solid #e8eef5;background:linear-gradient(180deg,#fbfdff,#f7fafd)}.mp-panel header h2{margin:0;color:var(--mp-navy);font-size:17px}.mp-panel header p{margin:5px 0 0;color:#687b91;font-size:13px;line-height:1.55}
.mp-task-input-panel{resize:vertical;min-height:290px;max-height:720px}.mp-task-input-panel textarea{display:block;width:calc(100% - 32px);min-height:150px;margin:16px;padding:14px;border:1px solid #cfdbe8;border-radius:12px;background:#fbfdff;color:#12263a;font:14px/1.75 ui-monospace,SFMono-Regular,Consolas,monospace;resize:vertical}.mp-task-input-panel.collapsed{min-height:auto;height:auto!important;resize:none}.mp-task-input-panel.collapsed textarea{display:none}.mp-task-actions{display:flex;flex-wrap:wrap;gap:9px;padding:0 16px 16px}.mp-task-input-panel.collapsed .mp-task-actions{padding-top:14px}
.mp-option-group{padding:15px 18px;border-bottom:1px solid #edf2f7}.mp-option-group:last-child{border-bottom:0}.mp-option-group>b{display:block;margin-bottom:9px;color:#374b61}.mp-option-group>div{display:flex;flex-wrap:wrap;gap:8px}.mp-option-group label{display:flex;align-items:center;gap:6px;padding:7px 10px;border:1px solid #dce7f2;border-radius:9px;background:#f8fbff;color:#43576c;font-size:13px}.mp-option-group input{accent-color:var(--mp-blue)}.mp-empty-inline{color:#94a3b8;font-size:13px}
.mp-table-wrap{max-width:100%;overflow:auto}.mp-table-wrap table{width:max-content;min-width:100%;border-collapse:separate;border-spacing:0}.mp-table-wrap th{position:sticky;top:0;z-index:4;padding:11px 12px;border-bottom:1px solid #dfe8f2;background:#eef4fa;color:#3c526a;font-size:12px;text-align:left;white-space:nowrap}.mp-table-wrap td{max-width:440px;padding:10px 12px;border-bottom:1px solid #edf2f7;background:#fff;color:#465b70;font-size:12px;line-height:1.5;vertical-align:top;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mp-table-wrap tr:hover td{background:#f8fbff}.mp-recognition .mp-table-wrap{max-height:270px}.mp-row-error td{background:#fff4f4!important}.mp-row-warn td{background:#fffbeb!important}
.mp-kpis{display:grid;grid-template-columns:repeat(8,minmax(105px,1fr));gap:10px}.mp-kpis article{padding:14px 16px;border:1px solid var(--mp-line);border-radius:14px;background:#fff}.mp-kpis span{display:block;color:#718096;font-size:12px}.mp-kpis b{display:block;margin-top:5px;color:var(--mp-navy);font-size:22px}.mp-kpis article.ok{border-color:#b9e7d8;background:#f1fbf7}.mp-kpis article.ok b{color:var(--mp-green)}.mp-kpis article.warn{border-color:#f3d59a;background:#fffaf0}.mp-kpis article.warn b{color:var(--mp-amber)}.mp-kpis article.error{border-color:#f2bcbc;background:#fff5f5}.mp-kpis article.error b{color:var(--mp-red)}
.mp-warning-box{border:1px solid #f1cf88;border-radius:16px;background:#fffaf0;overflow:hidden}.mp-warning-box.hidden{display:none}.mp-warning-box header{display:flex;align-items:center;justify-content:space-between;padding:11px 14px;color:#8a5300}.mp-warning-box textarea{display:block;width:100%;min-height:92px;padding:12px 14px;border:0;border-top:1px solid #f3dfb2;background:#fffdf8;color:#7a5520;font:12px/1.65 ui-monospace,Consolas,monospace;resize:vertical;user-select:text}
.mp-detail-actions,.mp-toolbar,.mp-pager{display:flex;align-items:center;gap:10px}.mp-toolbar{flex-wrap:wrap;padding:12px 16px;border-bottom:1px solid #e7eef6;background:#fbfdff}.mp-toolbar label{display:flex;align-items:center;gap:7px;color:#50647a;font-size:12px}.mp-toolbar label.grow{flex:1;min-width:240px}.mp-toolbar input,.mp-toolbar select{min-height:36px;border:1px solid #cedae7;border-radius:9px;background:#fff;padding:6px 9px;color:#263b50}.mp-toolbar label.grow input{width:100%}.mp-detail-table{max-height:610px;border-top:1px solid #edf2f7}.mp-detail-table th{z-index:8}.mp-detail-table .mp-sticky{position:sticky;z-index:6;border-right:1px solid #dde6ef;box-shadow:5px 0 8px -8px rgba(15,23,42,.6)}.mp-detail-table th.mp-sticky{z-index:10;background:#e8f0f8}.mp-detail-table td.mp-sticky{background:#fff}.mp-detail-table tr:hover td.mp-sticky{background:#f8fbff}.mp-action-col{position:sticky!important;right:0;z-index:7!important;min-width:135px;background:#f7fbff!important;border-left:1px solid #dbe5ef}.mp-pager{justify-content:space-between;padding:12px 16px;color:#65788d;font-size:13px}.mp-pager>div{display:flex;gap:7px}
.mp-badge{display:inline-flex;align-items:center;min-height:24px;padding:3px 8px;border:1px solid #d6e0eb;border-radius:999px;background:#f6f8fb;color:#5c6f82;font-size:11px;font-weight:700}.mp-badge.ok{border-color:#a8dfcd;background:#ecfaf5;color:#087a57}.mp-badge.warn{border-color:#f2d18a;background:#fff9e8;color:#9a5d00}.mp-badge.error{border-color:#efb7b7;background:#fff0f0;color:#b42323}.mp-badge.muted{background:#f4f6f8;color:#7b8794}.mp-status-可修改 td{background:#f7fffb}.mp-status-减价不足未改 td{background:#fff9e8}.mp-status-优惠券未设置 td,.mp-status-标配不明确 td,.mp-status-重复SKU td,.mp-status-价格异常 td,.mp-status-公式拦截 td,.mp-status-冲突 td{background:#fff6f6}
.mp-column-settings{padding:14px 16px;border-bottom:1px solid #e1eaf3;background:#f8fbff}.mp-column-settings.hidden{display:none}.mp-column-grid{display:grid;grid-template-columns:repeat(3,minmax(260px,1fr));gap:8px}.mp-column-grid label{display:grid;grid-template-columns:20px 1fr 76px 22px;align-items:center;gap:6px;padding:7px 9px;border:1px solid #dce6f0;border-radius:9px;background:#fff;color:#42576c;font-size:12px}.mp-column-grid input[type=number]{width:76px;padding:5px;border:1px solid #d1dce8;border-radius:6px}.mp-column-settings>.actions{justify-content:flex-end;margin-top:11px}
.mp-data-view{min-height:460px}.mp-data-view>.mp-table-wrap{max-height:650px}.mp-data-view .mp-toolbar{border-bottom:1px solid #e7eef6}.mp-source-tag{display:inline-flex;padding:7px 10px;border:1px solid #cfe0f1;border-radius:999px;background:#edf6ff;color:#246293;font-size:12px}
.mp-exit-focus{display:none!important}.mp-page.focus-detail .mp-hero,.mp-page.focus-detail .mp-source-strip,.mp-page.focus-detail .mp-tabs,.mp-page.focus-detail .mp-message,.mp-page.focus-detail .mp-task-grid,.mp-page.focus-detail .mp-recognition,.mp-page.focus-detail .mp-kpis,.mp-page.focus-detail .mp-warning-box{display:none!important}.mp-page.focus-detail .mp-exit-focus{position:fixed;top:76px;right:24px;z-index:80;display:inline-flex!important;box-shadow:0 10px 24px rgba(23,50,77,.22)}.mp-page.focus-detail .mp-detail-table{max-height:calc(100vh - 230px)}
.mp-page button.mini,.mp-page button.small{min-height:30px;padding:5px 9px;font-size:12px}.mp-page button.danger{border-color:#efb2b2;background:#fff2f2;color:#b42323}.mp-page button:disabled{cursor:not-allowed;opacity:.48}
@media(max-width:1250px){.mp-kpis{grid-template-columns:repeat(4,1fr)}.mp-column-grid{grid-template-columns:repeat(2,minmax(250px,1fr))}.mp-source-strip{align-items:flex-start;flex-direction:column}.mp-source-metrics{justify-content:flex-start}}
@media(max-width:900px){.mp-page{gap:12px}.mp-hero{align-items:flex-start;flex-direction:column;padding:22px}.mp-hero h1{font-size:25px}.mp-hero-actions{width:100%;min-width:0;flex-wrap:wrap}.mp-hero-actions button{flex:1}.mp-task-grid{grid-template-columns:1fr}.mp-kpis{grid-template-columns:repeat(2,1fr)}.mp-column-grid{grid-template-columns:1fr}.mp-source-metrics{display:grid;width:100%;grid-template-columns:repeat(2,1fr)}.mp-source-metrics span{text-align:center}.mp-panel>header{padding:14px}.mp-detail-table{max-height:68vh}.mp-task-input-panel textarea{width:calc(100% - 24px);margin:12px}.mp-option-group{padding:13px}.mp-tabs{position:sticky;top:64px;z-index:15}.mp-detail-table .mp-sticky{position:static!important;box-shadow:none}.mp-action-col{position:static!important}.mp-page.focus-detail .mp-exit-focus{top:70px;right:12px}.mp-page.focus-detail .mp-detail-table{max-height:calc(100vh - 190px)}}
@media(max-width:560px){.mp-hero{border-radius:16px;padding:18px}.mp-hero p{font-size:13px}.mp-source-strip{padding:12px}.mp-source-strip>div:first-child{align-items:flex-start;flex-wrap:wrap}.mp-source-strip>div:first-child span{width:100%;padding-left:19px}.mp-tabs{border-radius:12px}.mp-tabs button{padding:9px 11px}.mp-kpis{gap:7px}.mp-kpis article{padding:11px}.mp-kpis b{font-size:19px}.mp-task-actions button{flex:1;min-width:calc(50% - 6px)}.mp-toolbar{align-items:stretch;flex-direction:column}.mp-toolbar label,.mp-toolbar label.grow{width:100%;min-width:0}.mp-toolbar input,.mp-toolbar select{flex:1;min-width:0}.mp-source-metrics{grid-template-columns:1fr 1fr}.mp-column-grid label{grid-template-columns:20px minmax(100px,1fr) 64px 20px}.mp-column-grid input[type=number]{width:64px}}

/* Batch17：按照原版 v2.6.1 重建的三段式工作区。 */
.mp-page{--mp-upper-height:305px;--mp-middle-height:292px;--mp-bg:#f3f7fb;gap:10px;min-width:0;padding-bottom:28px}
.mp-page.is-busy button,.mp-page.is-busy input,.mp-page.is-busy select,.mp-page.is-busy textarea{pointer-events:none}.mp-page.is-busy button{opacity:.58}
.mp-page .hidden{display:none!important}.mp-page .mp-hero{min-height:auto;padding:18px 22px;border-radius:16px}.mp-page .mp-hero h1{font-size:25px}.mp-page .mp-hero p{max-width:1050px;margin-top:6px;line-height:1.55}.mp-hero-tools{display:flex!important;align-items:center;gap:9px;min-width:max-content}.mp-hero-tools label,.mp-pane-head label{display:flex;align-items:center;gap:7px;color:#53687d;font-size:12px}.mp-hero-tools select,.mp-pane-head select,.mp-pane-head input,.mp-data-toolbar input,.mp-data-toolbar select{min-height:34px;padding:6px 9px;border:1px solid #cbd9e8;border-radius:8px;background:#fff;color:#273d52}
.mp-page .mp-source-strip{display:flex;align-items:center;justify-content:flex-start;flex-direction:row;flex-wrap:wrap;gap:8px 15px;padding:10px 14px;border-color:#cfe1f2;border-radius:12px;background:#f8fbff;color:#5b6f84;font-size:12px}.mp-source-strip b{color:#17324d}.mp-source-strip strong{color:#b42323}.mp-live-dot{width:9px;height:9px;border-radius:50%;background:#dc2626;box-shadow:0 0 0 4px rgba(220,38,38,.1)}.mp-live-dot.ok{background:#059669;box-shadow:0 0 0 4px rgba(5,150,105,.1)}
.mp-workspace{display:grid;grid-template-rows:var(--mp-upper-height) 7px var(--mp-middle-height) 7px minmax(350px,auto);min-width:0;border:1px solid #d7e3ef;border-radius:16px;background:#eaf1f8;box-shadow:0 12px 32px rgba(23,50,77,.08);overflow:hidden}.mp-pane{min-width:0;min-height:0;background:#fff;overflow:hidden}.mp-upper-pane{display:grid;grid-template-rows:auto auto minmax(145px,1fr);overflow:auto}.mp-resizer{position:relative;z-index:11;cursor:row-resize;background:linear-gradient(180deg,#edf3f9,#dce7f1,#edf3f9)}.mp-resizer:after{content:"";position:absolute;left:50%;top:2px;width:54px;height:3px;transform:translateX(-50%);border-radius:999px;background:#a8bacb}.mp-resizer:hover{background:#d9eaff}.mp-resizer:hover:after{background:#2563eb}
.mp-data-section{border-bottom:1px solid #e2eaf2}.mp-section-toggle{display:flex;width:100%;align-items:center;justify-content:space-between;padding:9px 14px;border:0;border-radius:0;background:#f1f6fb;color:#263e55;font-weight:800;box-shadow:none}.mp-section-toggle:hover{background:#e8f2fc}.mp-data-body{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:12px;padding:9px 14px;background:#f9fcff}.mp-data-section.collapsed .mp-data-body{display:none}.mp-data-body #mpAutoSourceSummary{display:flex;min-width:0;flex-wrap:wrap;gap:6px 12px;color:#627489;font-size:12px}.mp-data-body #mpAutoSourceSummary .mp-live-dot{display:inline-block}.mp-button-row{display:flex;align-items:center;flex-wrap:wrap;gap:7px}
.mp-business{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:8px 14px;border-bottom:1px solid #e5edf4;background:#fbfdff}.mp-business>div:first-child{min-width:260px}.mp-business b,.mp-task-entry b,.mp-pane-head b{color:#203a52;font-size:14px}.mp-business span,.mp-task-entry header span,.mp-pane-head span{margin-left:9px;color:#74869a;font-size:12px}.mp-task-entry{display:grid;grid-template-rows:auto minmax(75px,1fr) auto;min-height:145px;background:#fff}.mp-task-entry>header{display:flex;align-items:center;justify-content:space-between;padding:8px 14px;border-bottom:1px solid #e8eef5}.mp-task-entry textarea{display:block;width:100%;min-height:76px;padding:10px 14px;border:0;outline:0;background:#fbfdff;color:#142c42;font:13px/1.6 ui-monospace,SFMono-Regular,Consolas,monospace;resize:none}.mp-task-entry textarea:focus{background:#fff;box-shadow:inset 0 0 0 2px rgba(37,99,235,.13)}.mp-task-actions{display:flex;gap:8px;padding:8px 14px;border-top:1px solid #e9eff5;background:#fff}
.mp-middle-pane{display:grid;grid-template-rows:auto minmax(0,1fr)}.mp-pane-head{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:45px;padding:7px 13px;border-bottom:1px solid #e3ebf3;background:linear-gradient(180deg,#fcfdff,#f4f8fc)}.mp-pane-head>div:first-child{min-width:max-content}.mp-pane-head input{width:225px}.mp-middle-content{display:grid;grid-template-columns:minmax(0,1fr) 330px;min-height:0;overflow:hidden}.mp-recognition{min-width:0;overflow:auto;border-right:1px solid #e2eaf2}.mp-recognition table,.mp-data-table table{width:max-content;min-width:100%;border-collapse:separate;border-spacing:0}.mp-recognition th,.mp-recognition td,.mp-data-table th,.mp-data-table td{padding:8px 10px;border-bottom:1px solid #edf2f7;color:#506378;font-size:12px;text-align:left;white-space:nowrap}.mp-recognition th,.mp-data-table th{position:sticky;top:0;z-index:2;background:#edf4fa;color:#324b63}.mp-recognition tr.is-warning td{background:#fff8e8}.mp-kpis{display:grid;grid-template-columns:1fr 1fr;align-content:start;gap:7px;padding:10px;overflow:auto;background:#f7fafd}.mp-kpis article{padding:9px 11px;border-radius:10px}.mp-kpis b{font-size:18px}
.mp-detail-pane{display:grid;grid-template-rows:auto minmax(260px,1fr) auto}.mp-detail-pane .mp-table-wrap{max-height:none;height:100%;border:0;overscroll-behavior:contain}.mp-detail-table td{height:39px;padding:7px 9px}.mp-detail-table th{padding:8px 9px;cursor:pointer;user-select:none}.mp-detail-table th i{margin-left:5px;color:#2563eb;font-style:normal}.mp-detail-table .mp-sticky{position:sticky;z-index:6;border-right:1px solid #d8e3ed;box-shadow:5px 0 8px -8px rgba(15,23,42,.55)}.mp-detail-table th.mp-sticky{z-index:10;background:#e7f0f8}.mp-detail-table td.mp-sticky{background:#fff}.mp-detail-table tr:hover td,.mp-detail-table tr:hover td.mp-sticky{background:#eef7ff}.mp-detail-table tr.selected td,.mp-detail-table tr.selected td.mp-sticky{background:#dfefff!important}.mp-col-resize{position:absolute;top:0;right:-4px;width:9px;height:100%;cursor:col-resize;z-index:20}.mp-col-resize:hover:after{content:"";position:absolute;left:4px;top:0;width:2px;height:100%;background:#2563eb}.mp-action-col{min-width:130px}.mp-detail-pane .mp-pager{justify-content:flex-end;min-height:46px;padding:7px 13px;border-top:1px solid #e4ecf4;background:#fbfdff}.mp-pager label{display:flex;align-items:center;gap:5px}.mp-pager select{min-height:30px;border:1px solid #cedbe8;border-radius:7px;background:#fff}.mp-status-标配表缺失 td,.mp-status-标配SKU未找到 td{background:#fff6f6}
.mp-page[data-layout="标准模式"]{--mp-upper-height:330px;--mp-middle-height:340px}.mp-page[data-layout="紧凑模式"] .mp-hero{display:none}.mp-page[data-layout="紧凑模式"] .mp-source-strip{padding:7px 12px}.mp-page[data-layout="紧凑模式"] .mp-business,.mp-page[data-layout="紧凑模式"] .mp-task-entry>header,.mp-page[data-layout="紧凑模式"] .mp-task-actions{padding-top:5px;padding-bottom:5px}.mp-page[data-layout="紧凑模式"] .mp-recognition th,.mp-page[data-layout="紧凑模式"] .mp-recognition td,.mp-page[data-layout="紧凑模式"] .mp-detail-table th,.mp-page[data-layout="紧凑模式"] .mp-detail-table td{padding-top:5px;padding-bottom:5px}.mp-page.focus-detail .mp-hero,.mp-page.focus-detail .mp-source-strip,.mp-page.focus-detail>.mp-message,.mp-page.focus-detail .mp-upper-pane,.mp-page.focus-detail #mpResizeUpper,.mp-page.focus-detail .mp-middle-pane,.mp-page.focus-detail #mpResizeMiddle{display:none!important}.mp-page.focus-detail .mp-workspace{position:fixed;inset:64px 12px 12px max(12px,var(--erp-sidebar-width,240px));z-index:80;display:block;border-color:#b9cde1;background:#fff}.mp-page.focus-detail .mp-detail-pane{height:100%;grid-template-rows:auto minmax(0,1fr) auto}.mp-page.freeze-disabled .mp-detail-table .mp-sticky{position:static;box-shadow:none}.mp-page.focus-detail #mpExitFocus{display:inline-flex!important}
.mp-modal-lock{overflow:hidden}.mp-modal{position:fixed;inset:0;z-index:1200;display:none;align-items:center;justify-content:center;padding:22px;background:rgba(15,31,48,.46);backdrop-filter:blur(3px)}.mp-modal.open{display:flex}.mp-modal-card{display:grid;grid-template-rows:auto minmax(0,1fr) auto;width:min(720px,96vw);max-height:88vh;border:1px solid #cfdeeb;border-radius:16px;background:#fff;box-shadow:0 26px 80px rgba(15,31,48,.28);overflow:hidden}.mp-modal-card.wide{width:min(1320px,97vw);height:min(820px,91vh)}.mp-modal-card>header,.mp-modal-card>footer{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:13px 16px;border-bottom:1px solid #e3ebf3;background:#f7fafd}.mp-modal-card>footer{justify-content:flex-end;border-top:1px solid #e3ebf3;border-bottom:0}.mp-modal-card>header b{display:block;color:#243d55;font-size:16px}.mp-modal-card>header span{display:block;margin-top:3px;color:#6b7f93;font-size:12px}.mp-close{width:34px;height:34px;padding:0;border:0;border-radius:9px;background:#eaf1f7;color:#52677b;font-size:23px;line-height:1}.mp-modal-card.warning textarea{display:block;width:100%;min-height:360px;padding:15px;border:0;outline:0;background:#fffaf0;color:#795411;font:13px/1.7 ui-monospace,SFMono-Regular,Consolas,monospace;resize:none;user-select:text}.mp-modal-card.warning.blocking textarea{background:#fff4f4;color:#9c2525}.mp-modal-card.warning.blocking>header{background:#fff0f0}.mp-column-list{display:grid;grid-template-columns:1fr 1fr;gap:7px;padding:14px;overflow:auto;background:#f8fbfe}.mp-column-list label{display:grid;grid-template-columns:20px minmax(110px,1fr) 80px 20px;align-items:center;gap:7px;padding:8px 10px;border:1px solid #dce7f1;border-radius:9px;background:#fff;color:#40576d;font-size:12px}.mp-column-list input[type=number]{width:80px;padding:5px;border:1px solid #ccd9e6;border-radius:6px}.mp-column-list em{font-style:normal;color:#7a8a9a}.mp-scope-body{padding:16px;overflow:auto;background:#f8fbfe}.mp-form-list,.mp-check-list{display:grid;grid-template-columns:1fr 1fr;gap:9px}.mp-form-list label,.mp-check-list label{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 12px;border:1px solid #dbe6ef;border-radius:9px;background:#fff;color:#3e556b}.mp-form-list input{width:150px;padding:7px;border:1px solid #cbd9e6;border-radius:7px}.mp-check-list label.all{grid-column:1/-1;justify-content:flex-start}.mp-check-list input{accent-color:#2563eb}.mp-data-toolbar{display:flex;align-items:center;gap:9px;padding:10px 13px;border-bottom:1px solid #e2eaf2;background:#fbfdff}.mp-data-toolbar>input{flex:1;min-width:180px}.mp-data-toolbar label{display:flex;align-items:center;gap:7px;color:#53687d;font-size:12px}.mp-data-table{min-height:0;overflow:auto}.mp-data-table th{z-index:4}.mp-data-table td{max-width:360px;overflow:hidden;text-overflow:ellipsis}.mp-form-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px;padding:18px;overflow:auto}.mp-form-grid label{display:flex;flex-direction:column;gap:5px;color:#465d72;font-size:12px}.mp-form-grid input{min-height:38px;padding:7px 9px;border:1px solid #cad8e5;border-radius:8px}.mp-modal button.mini{margin-right:5px}
@media(max-width:1100px){.mp-hero-tools{min-width:0;flex-wrap:wrap}.mp-data-body{grid-template-columns:1fr}.mp-business{align-items:flex-start;flex-direction:column}.mp-middle-content{grid-template-columns:minmax(0,1fr) 250px}.mp-pane-head{align-items:flex-start;flex-direction:column}.mp-pane-head>div:first-child{min-width:0}.mp-pane-head .mp-button-row{width:100%}.mp-pane-head input{flex:1;width:auto}.mp-workspace{grid-template-rows:auto 0 auto 0 auto}.mp-resizer{display:none}.mp-upper-pane,.mp-middle-pane,.mp-detail-pane{min-height:280px}.mp-recognition{max-height:280px}.mp-detail-pane{min-height:620px}}
@media(max-width:760px){.mp-page .mp-hero{padding:16px}.mp-hero-tools{width:100%}.mp-hero-tools label{width:100%;justify-content:space-between}.mp-hero-tools select{flex:1}.mp-page .mp-source-strip{align-items:flex-start;flex-direction:column;gap:5px}.mp-business span,.mp-task-entry header span,.mp-pane-head span{display:block;margin:4px 0 0}.mp-business .mp-button-row,.mp-task-actions{display:grid;width:100%;grid-template-columns:1fr 1fr}.mp-business .mp-button-row button,.mp-task-actions button{width:100%;min-width:0}.mp-task-entry>header{align-items:flex-start;flex-direction:column}.mp-middle-content{display:block;overflow:auto}.mp-recognition{border-right:0;border-bottom:1px solid #dfe8f1}.mp-kpis{grid-template-columns:repeat(4,minmax(90px,1fr));overflow-x:auto}.mp-detail-pane .mp-sticky{position:static!important;box-shadow:none!important}.mp-detail-pane .mp-action-col{position:static!important}.mp-detail-pane .mp-pager{justify-content:center;flex-wrap:wrap}.mp-column-list,.mp-form-list,.mp-check-list,.mp-form-grid{grid-template-columns:1fr}.mp-modal{padding:8px}.mp-modal-card{max-height:95vh}.mp-modal-card.wide{height:95vh}.mp-data-toolbar{align-items:stretch;flex-direction:column}.mp-data-toolbar input,.mp-data-toolbar label,.mp-data-toolbar select{width:100%}.mp-page.focus-detail .mp-workspace{inset:58px 5px 5px}}
@media(max-width:480px){.mp-kpis{grid-template-columns:1fr 1fr}.mp-task-actions,.mp-business .mp-button-row{grid-template-columns:1fr}.mp-pane-head .mp-button-row{display:grid;grid-template-columns:1fr 1fr}.mp-pane-head input{grid-column:1/-1;width:100%}.mp-column-list label{grid-template-columns:20px minmax(90px,1fr) 65px 18px}.mp-column-list input[type=number]{width:65px}.mp-modal-card>footer{flex-wrap:wrap}.mp-modal-card>footer button{flex:1}.mp-task-entry textarea{min-height:125px}}

/* Batch19：匹配明细滚轮交接与可排序列设置。 */
body.erp-mode #merchantPricePage .mp-detail-pane .mp-table-wrap{
  overscroll-behavior:auto!important;
  touch-action:pan-x pan-y;
}
body.erp-mode #merchantPricePage .mp-detail-table .mp-action-col{
  position:static!important;
  right:auto!important;
  z-index:auto!important;
  min-width:0;
  background:#f7fbff!important;
}
.mp-column-list:has(.mp-column-item){grid-template-columns:minmax(0,1fr)}
.mp-column-list .mp-column-item{
  display:grid;
  grid-template-columns:34px 20px minmax(105px,1fr) 80px 20px 66px;
  align-items:center;
  gap:7px;
  min-width:0;
  padding:8px 9px;
  border:1px solid #dce7f1;
  border-radius:10px;
  background:#fff;
  color:#40576d;
  font-size:12px;
  transition:border-color .15s ease,box-shadow .15s ease,opacity .15s ease;
}
.mp-column-list .mp-column-item:hover{border-color:#b9cee3;box-shadow:0 5px 14px rgba(32,64,96,.06)}
.mp-column-list .mp-column-item.dragging{opacity:.48;border-color:#2563eb;box-shadow:0 0 0 3px rgba(37,99,235,.1)}
.mp-column-item>span:nth-of-type(1){display:flex;align-items:center;gap:6px;min-width:0;font-weight:700}
.mp-column-item>span:nth-of-type(1) small{flex:0 0 auto;padding:2px 5px;border-radius:999px;background:#eef2f6;color:#74859a;font-size:9px;font-weight:600}
.mp-column-item input[type=checkbox]{accent-color:#2563eb}
.mp-column-item input[type=number]{width:80px;min-width:0;padding:5px;border:1px solid #ccd9e6;border-radius:6px}
.mp-column-item>em{font-style:normal;color:#7a8a9a}
body.erp-mode #merchantPricePage .mp-column-drag{
  min-width:30px!important;
  width:30px!important;
  min-height:30px!important;
  height:30px!important;
  padding:0!important;
  border:1px solid #d7e2ec;
  border-radius:7px;
  background:#f1f6fb;
  color:#5b7187;
  cursor:grab;
  font-size:15px;
}
body.erp-mode #merchantPricePage .mp-column-drag:active{cursor:grabbing}
.mp-column-order-actions{display:grid;grid-template-columns:1fr 1fr;gap:3px}
body.erp-mode #merchantPricePage .mp-column-order-actions button{
  min-width:29px!important;
  width:29px!important;
  min-height:30px!important;
  height:30px!important;
  padding:0!important;
  border:1px solid #d7e2ec;
  border-radius:7px;
  background:#f6f9fc;
  color:#4e667e;
}
@media(max-width:760px){
  .mp-column-list .mp-column-item{grid-template-columns:32px 20px minmax(90px,1fr) 70px 18px 66px}
  .mp-column-item input[type=number]{width:70px}
}
@media(max-width:480px){
  .mp-column-list .mp-column-item{grid-template-columns:30px 20px minmax(70px,1fr) 78px;gap:6px;padding:8px}
  .mp-column-item input[type=number]{width:78px}
  .mp-column-item>em{display:none}
  .mp-column-order-actions{grid-column:1/-1;display:flex;justify-content:flex-end}
  #mpColumnModal .mp-modal-card>footer{display:grid;grid-template-columns:1fr 1fr;gap:7px}
  body.erp-mode #merchantPricePage #mpColumnModal .mp-modal-card>footer button{width:100%;min-width:0;min-height:44px;white-space:normal;line-height:1.25;flex:none}
}
