#pm-app,.pm-portal{--pm-accent:var(--theme-accent,#20aec2);--pm-hover:var(--theme-accent-deep,#148fa2);--pm-soft:var(--theme-accent-soft,#dff5f8);--pm-tint:color-mix(in srgb,var(--pm-soft) 45%,white);--pm-focus:color-mix(in srgb,var(--pm-accent) 14%,transparent);--pm-accent-border:color-mix(in srgb,var(--pm-accent) 32%,white);--pm-border:#e0e3ec;--pm-muted:#939bab;--pm-text:#1f293d;font-family:Arial,"Microsoft YaHei",sans-serif;color:var(--pm-text);font-size:13px;line-height:1.5;box-sizing:border-box}
#pm-app *, .pm-portal *{box-sizing:border-box}
#pm-app [hidden],.pm-portal [hidden]{display:none!important}
#products.page{padding:14px!important;background:var(--theme-page-b,#f1f3f6)!important}
#pm-app .pm-shell{background:white;border-radius:10px;padding:12px 10px 0;box-shadow:0 2px 12px #21355505;min-height:670px}
#pm-app button,.pm-portal button{font:inherit;cursor:pointer;transition:background .14s,border-color .14s,box-shadow .14s;letter-spacing:0;text-transform:none}
#pm-app button:disabled,.pm-portal button:disabled{opacity:.48;cursor:not-allowed}
#pm-app .pm-btn,.pm-portal .pm-btn{display:inline-flex;align-items:center;justify-content:center;gap:6px;min-height:33px;padding:5px 14px;background:#fff;border:1px solid var(--pm-border);border-radius:7px;color:#353948;box-shadow:0 1px 2px #17233e04;white-space:nowrap;font-size:13px;font-weight:400}
#pm-app .pm-btn:hover,.pm-portal .pm-btn:hover{border-color:var(--pm-accent);color:var(--pm-accent);background:var(--pm-tint)}
#pm-app .pm-btn.pm-primary,.pm-portal .pm-btn.pm-primary{background:var(--pm-accent);border-color:var(--pm-accent);color:#fff}
#pm-app .pm-primary:hover,.pm-portal .pm-primary:hover{background:var(--pm-hover)}
#pm-app .pm-outline,.pm-portal .pm-outline{border-color:var(--pm-accent);color:var(--pm-accent)}
#pm-app .pm-danger,.pm-portal .pm-danger{border-color:#ff5778;color:#ff426a}
#pm-app .pm-icon-btn,.pm-portal .pm-icon-btn{display:inline-flex;align-items:center;justify-content:center;border:1px solid var(--pm-border);border-radius:50%;padding:6px;width:32px;height:32px;background:#fff;color:#556077}
#pm-app svg,.pm-portal svg{width:16px;height:16px;flex-shrink:0;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;vertical-align:middle}
#pm-app input:not([type=checkbox]),#pm-app select,.pm-portal input:not([type=checkbox]):not([type=file]),.pm-portal select,.pm-portal textarea{border:1px solid var(--pm-border);border-radius:8px;background:#fff;color:#283c56;min-height:34px;padding:6px 11px;font:inherit;box-shadow:none;outline:none;width:auto;margin:0}
#pm-app input::placeholder,.pm-portal input::placeholder,.pm-portal textarea::placeholder{color:#b7bdc8;font-weight:400}
#pm-app input:focus,#pm-app select:focus,.pm-portal input:focus,.pm-portal select:focus,.pm-portal textarea:focus{border-color:var(--pm-accent);box-shadow:0 0 0 2px var(--pm-focus)}
#pm-app input[type=checkbox],.pm-portal input[type=checkbox]{width:15px;height:15px;margin:0;accent-color:var(--pm-accent);cursor:pointer}
#pm-app .pm-toolbar{display:flex;align-items:center;gap:12px;flex-wrap:wrap}
#pm-app .pm-toolbar select{width:150px}#pm-app .pm-toolbar input{width:178px}#pm-app .pm-toolbar input[name=code]{width:200px}
#pm-app .pm-toolbar-end{margin-left:auto;display:flex;gap:11px}
#pm-app .pm-batch-wrap{position:relative}
#pm-app .pm-batch-menu{position:absolute;top:44px;left:0;width:328px;z-index:15;padding:12px;display:grid;grid-template-columns:repeat(3,1fr);gap:8px;background:#fff;box-shadow:0 5px 24px #19243a24;border-radius:12px;border:1px solid #f0f1f5}
#pm-app .pm-batch-menu:before{content:'';position:absolute;top:-7px;left:52px;width:13px;height:13px;background:#fff;transform:rotate(45deg);border-top:1px solid #f0f1f5;border-left:1px solid #f0f1f5}
#pm-app .pm-batch-menu button{height:67px;border:1px solid var(--pm-border);background:#fff;border-radius:8px;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:7px;color:#34394b;font-size:12px}
#pm-app .pm-batch-menu button:hover{background:var(--pm-tint);border-color:var(--pm-accent-border)}#pm-app .pm-batch-menu svg{width:23px;height:23px}
#pm-app .pm-tabs{display:flex;align-items:center;gap:26px;border-bottom:1px solid var(--pm-border);margin:5px 0 15px;min-height:41px;overflow-x:auto;white-space:nowrap}
#pm-app .pm-tab{border:0;border-bottom:2px solid transparent;border-radius:0;padding:12px 0 9px;background:transparent;color:#253049;font-size:13px;display:flex;align-items:center;gap:7px;font-weight:400}
#pm-app .pm-tab.active{border-color:var(--pm-accent);color:var(--pm-accent)}
#pm-app .pm-count{padding:1px 6px;background:#f1f2f5;border-radius:12px;color:#657183;font-size:10px;line-height:18px;min-width:20px;text-align:center;font-weight:400}
#pm-app .pm-tab.active .pm-count{background:var(--pm-accent);color:#fff}
#pm-app .pm-auto{margin-left:auto;color:var(--pm-accent);display:inline-flex;align-items:center;gap:6px;font-size:12px}
#pm-app .pm-notice,.pm-portal .pm-notice{background:var(--pm-soft);color:var(--pm-hover);border:1px solid var(--pm-accent-border);padding:10px 13px;border-radius:7px;font-size:12px;margin-bottom:12px;white-space:pre-wrap;overflow-wrap:anywhere}
#pm-app .pm-notice.warn,.pm-portal .pm-notice.warn{background:#fff9ef;color:#966324;border-color:#ffebc7}
#pm-app .pm-notice.bad,.pm-portal .pm-notice.bad{background:#fff5f6;color:#d04661;border-color:#ffe0e7}
#pm-app .pm-sync{display:flex;gap:12px;align-items:center;padding:9px 12px;background:var(--pm-soft);color:var(--pm-hover);border-radius:6px;margin:0 0 10px}
#pm-app .pm-spinner,.pm-portal .pm-spinner{display:inline-block;width:15px;height:15px;border:2px solid var(--pm-accent-border);border-top-color:var(--pm-accent);border-radius:50%;animation:pm-spin .8s linear infinite}
@keyframes pm-spin{to{transform:rotate(360deg)}}
#pm-app .pm-table-wrap{overflow:auto;border:1px solid var(--pm-border);border-radius:2px;max-height:calc(100vh - 285px);min-height:460px;scrollbar-color:#dfe2e9 #fafbfc;scrollbar-width:thin}
#pm-app .pm-table{width:100%;min-width:1440px;table-layout:fixed;border-collapse:separate;border-spacing:0;font-size:12px;color:#344760;margin:0}
#pm-app .pm-table th{position:sticky;top:0;height:49px;text-align:center;background:#f3f4f6;color:#424f65;border-bottom:1px solid var(--pm-border);font-size:13px;font-weight:500;padding:8px 12px;z-index:3}
#pm-app .pm-table th:after{content:'';height:26px;width:1px;position:absolute;right:0;top:12px;background:#e0e3e8}
#pm-app .pm-table td{height:118px;padding:14px 13px;background:#fff;border-bottom:1px solid var(--pm-border);vertical-align:middle;text-align:left;color:#30425d;font-size:12px;line-height:1.7}
#pm-app .pm-table tr:hover td{background:var(--pm-tint)}#pm-app .pm-table tr.selected td{background:var(--pm-tint)}
#pm-app .pm-table tr:last-child td{border-bottom:0}
#pm-app .pm-table th:last-child,#pm-app .pm-table td:last-child{position:sticky;right:0;box-shadow:-5px 0 8px #24334c09;text-align:center;z-index:2}
#pm-app .pm-table th:last-child{z-index:4}
#pm-app .pm-table td.pm-check{text-align:center}
#pm-app .pm-product{display:flex;align-items:center;gap:17px;min-width:0}
#pm-app .pm-photo{width:80px;height:80px;object-fit:contain;background:#f7f8fa;border-radius:8px;flex:0 0 80px;cursor:zoom-in}
#pm-app .pm-placeholder{display:grid;place-items:center;background:#f7f8fa;color:#b0b8c5;width:80px;height:80px;border-radius:8px;font-size:11px;flex-shrink:0}
#pm-app .pm-product-text{min-width:0;flex:1}#pm-app .pm-product-name{display:block;font-size:13px;color:var(--pm-accent);text-decoration:none;font-weight:500;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;margin-bottom:4px}
#pm-app .pm-product-name:hover{text-decoration:underline}
#pm-app .pm-meta{color:#6e7d95;font-size:11px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
#pm-app .pm-copy{border:0;background:transparent;padding:0 3px;color:#9099aa;display:inline-flex;vertical-align:middle}#pm-app .pm-copy svg{width:12px;height:12px}
#pm-app .pm-muted,.pm-portal .pm-muted{color:var(--pm-muted);font-size:12px}
#pm-app .pm-shop{display:block;color:var(--pm-accent);text-overflow:ellipsis;overflow:hidden;white-space:nowrap}
#pm-app .pm-status{display:inline-flex;align-items:center;white-space:nowrap;border:1px solid #b5e88b;background:#f6ffeb;color:#52ad23;font-size:11px;line-height:20px;padding:0 7px;border-radius:6px}
#pm-app .pm-status.ready{background:#fff9ea;color:#d6981c;border-color:#f5d797}#pm-app .pm-status.error{background:#fff2f4;color:#e8556e;border-color:#ffc4d1}#pm-app .pm-status.off{background:#f4f5f7;color:#9099a9;border-color:#e3e6ec}#pm-app .pm-status.info{background:#eff6ff;color:#4a8ce1;border-color:#c6deff}
#pm-app .pm-row-note{display:block;font-size:10px;color:var(--pm-muted);margin-top:4px}
#pm-app .pm-price{display:flex;align-items:center;justify-content:space-between;gap:4px}#pm-app .pm-price-lines{font-size:11px;color:#344760;white-space:nowrap}
#pm-app .pm-price-lines s{color:#999fad}#pm-app .pm-promo{color:#ff5575}#pm-app .pm-link-btn,.pm-portal .pm-link-btn{border:0;background:transparent;color:var(--pm-accent);padding:2px;display:inline-flex;align-items:center;gap:4px;font:inherit}
#pm-app .pm-stock strong{color:#182740;font-weight:400;font-size:13px}#pm-app .pm-stock .pm-muted{font-size:10px}
#pm-app .pm-actions{display:flex;flex-direction:column;align-items:center;gap:6px}
#pm-app .pm-actions .pm-btn{font-size:11px;min-height:25px;padding:2px 9px;border-radius:6px;min-width:60px}
#pm-app .pm-actions svg{width:12px;height:12px}
#pm-app .pm-empty{height:350px;text-align:center!important;color:#8c96a8!important}#pm-app .pm-empty strong{font-size:15px;font-weight:500;display:block;color:#46536d;margin:12px 0 8px}
#pm-app .pm-footer{display:flex;align-items:center;gap:14px;padding:12px 4px;font-size:12px;flex-wrap:wrap}
#pm-app .pm-footer select{height:30px;min-height:30px;padding:4px 8px;font-size:12px;width:102px}
#pm-app .pm-pagination{margin-left:auto;display:flex;align-items:center;gap:5px}#pm-app .pm-pagination button{height:27px;min-width:27px;border:0;background:#fff;color:#51627e;border-radius:4px;padding:3px 7px;font-size:12px}#pm-app .pm-pagination button.active{background:var(--pm-accent);color:#fff}
#pm-app .pm-selected{color:var(--pm-accent)}#pm-app .pm-progress-text{margin-left:auto;font-size:11px}
.pm-portal{border:1px solid #e4e6ee;background:white;border-radius:12px;padding:0;box-shadow:0 24px 80px #19244033;color:#27394f}
.pm-portal::backdrop{background:#27344745;backdrop-filter:blur(2px)}
#pm-dialog{width:min(680px,calc(100vw - 36px));max-height:90vh}
.pm-portal .pm-dialog-head{display:flex;align-items:center;justify-content:space-between;padding:20px 24px;border-bottom:1px solid #eef0f5}
.pm-portal h3{margin:0;font-size:18px;color:#232936;font-weight:500}
.pm-portal .pm-dialog-body{padding:22px 24px;max-height:65vh;overflow:auto}
.pm-portal .pm-dialog-footer{display:flex;align-items:center;justify-content:flex-end;gap:12px;padding:16px 24px;border-top:1px solid #e7e9f1;background:#fff}
.pm-portal .pm-field{margin-bottom:18px}.pm-portal .pm-field label{display:block;margin-bottom:8px;color:#57637a;font-weight:400;font-size:13px}
.pm-portal .pm-field input,.pm-portal .pm-field select,.pm-portal .pm-field textarea{width:100%!important}
.pm-portal .pm-results{margin-top:16px;line-height:1.8;max-height:210px;overflow:auto;font-size:12px}.pm-portal .pm-results .fail{color:#db4f68}.pm-portal .pm-results .pass{color:#5a9d31}
#pm-editor{width:calc(100vw - 28px);height:calc(100vh - 28px);max-width:none;max-height:none;overflow:hidden;border-radius:10px}
#pm-editor[open]{display:flex;flex-direction:column}
#pm-editor .pm-editor-head{height:50px;flex:0 0 50px;border-bottom:1px solid #e5e7ef;display:flex;align-items:center;gap:12px;padding:0 25px;background:#fff}
#pm-editor .pm-editor-title{background:var(--pm-soft);color:var(--pm-accent);border-radius:6px;padding:8px 16px;font-size:13px}
#pm-editor .pm-editor-head .pm-icon-btn{margin-left:auto}
#pm-editor .pm-editor-scroll{flex:1;overflow:auto;padding:24px 180px 50px 40px;scroll-behavior:smooth;min-height:0;background:white}
#pm-editor .pm-editor-content{max-width:1080px;margin:auto}
#pm-editor .pm-editor-section{margin:0 0 48px;scroll-margin-top:20px}
#pm-editor h2{font-size:20px;color:#111827;font-weight:500;margin:0 0 25px;padding:0;line-height:1.5;letter-spacing:0}
#pm-editor .pm-form-row{display:flex;align-items:flex-start;gap:12px;margin:0 auto 23px;max-width:1010px}
#pm-editor .pm-form-label{width:140px;flex:0 0 140px;text-align:right;padding-top:10px;font-size:13px;color:#283d58;font-weight:400}
#pm-editor .pm-required{color:#ff5575;margin-right:4px}
#pm-editor .pm-form-control{flex:1;min-width:0}
#pm-editor .pm-form-control>input,#pm-editor .pm-form-control>select,#pm-editor .pm-form-control>textarea{width:100%;min-height:40px;border-radius:10px}
#pm-editor input:disabled{background:#f5f5f7;color:#a2a9b7;opacity:1}
#pm-editor textarea{resize:vertical;min-height:126px!important;line-height:1.8}
#pm-editor .pm-units{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
#pm-editor .pm-unit-input{display:flex;border:1px solid var(--pm-border);border-radius:9px;overflow:hidden;height:40px;align-items:stretch;background:#fff}
#pm-editor .pm-unit-input input{border:0!important;border-radius:0!important;width:126px!important;min-height:38px!important;box-shadow:none!important}
#pm-editor .pm-unit-input span{padding:9px 12px;background:#fafafb;border-left:1px solid var(--pm-border);color:#a1a8b5;font-size:12px}
#pm-editor .pm-unit-tip{color:#ff5476;font-size:12px;align-self:center}
#pm-editor .pm-anchor-nav{position:absolute;right:30px;top:75px;width:120px;display:flex;flex-direction:column;border-left:1px solid var(--pm-border);background:white}
#pm-editor .pm-anchor-nav button{border:0;border-left:2px solid transparent;border-radius:0;background:transparent;padding:9px 13px;text-align:left;color:#455268;font-size:13px}
#pm-editor .pm-anchor-nav button:hover,#pm-editor .pm-anchor-nav button.active{border-color:var(--pm-accent);color:var(--pm-accent)}
#pm-editor .pm-editor-footer{flex:0 0 auto;min-height:72px;border-top:1px solid var(--pm-border);display:flex;align-items:center;justify-content:space-between;padding:15px max(32px,8vw);gap:20px;background:white}
#pm-editor .pm-editor-footer .pm-btn{height:40px;padding:7px 19px;font-size:14px}
#pm-editor .pm-save-actions{display:flex;gap:20px;flex-shrink:0}
#pm-editor .pm-edit-message{font-size:12px;color:var(--pm-muted);overflow-wrap:anywhere;max-height:70px;overflow:auto}
#pm-editor .pm-edit-message.bad{color:#d34b65}
#pm-editor .pm-attribute{display:flex;gap:8px;align-items:flex-start;margin-bottom:8px}
#pm-editor .pm-attribute input{min-height:39px;flex:1;min-width:0;width:100%}
#pm-editor .pm-attribute .pm-btn{height:39px;flex-shrink:0}
#pm-editor .pm-attr-desc{color:#a2a8b3;font-size:11px;display:block;margin-top:4px}
#pm-editor .pm-more-attrs{border:1px solid var(--pm-accent-border);border-radius:8px;padding:13px 16px;margin:15px 0 25px}
#pm-editor summary{cursor:pointer;color:var(--pm-accent);font-size:13px;padding:3px 0}
#pm-editor .pm-variant-wrap{overflow:auto;border:1px solid var(--pm-border);border-radius:8px;margin-bottom:20px}
#pm-editor .pm-variant-table{width:100%;min-width:840px;border-collapse:collapse;font-size:12px;table-layout:fixed}
#pm-editor .pm-variant-table th{padding:13px;background:#f8f8fb;border-right:1px solid var(--pm-border);border-bottom:1px solid var(--pm-border);font-weight:500;text-align:center;color:#2b354a}
#pm-editor .pm-variant-table td{padding:16px 12px;border-right:1px solid var(--pm-border);text-align:center;color:#3d4e6b;background:white;overflow-wrap:anywhere}
#pm-editor .pm-variant-table td input{width:100%;min-width:0;text-align:center}
#pm-editor .pm-images-head{display:flex;align-items:center;gap:10px;margin-bottom:15px;flex-wrap:wrap}
#pm-editor .pm-gallery{display:flex;flex-wrap:wrap;gap:14px;margin:15px 0}
#pm-editor .pm-image-card{width:106px;border:1px solid #e2e4ed;border-radius:9px;padding:5px;position:relative;background:white}
#pm-editor .pm-image-card.dragging{opacity:.3}#pm-editor .pm-image-card img{width:94px;height:94px;object-fit:contain;background:#fafbfc;border-radius:5px;display:block}
#pm-editor .pm-image-tools{display:flex;justify-content:space-between;align-items:center;margin-top:5px}
#pm-editor .pm-image-tools button{padding:3px;border:0;background:transparent;color:#9399aa;font-size:13px}
#pm-editor .pm-image-badge{position:absolute;top:7px;left:7px;background:var(--pm-accent);color:white;border-radius:4px;padding:0 5px;font-size:10px}
#pm-editor .pm-image-card.local{border-color:#eebc72}
.pm-portal .pm-dict-options{max-height:320px;overflow:auto;display:flex;flex-direction:column;gap:5px;margin-top:14px}
.pm-portal .pm-dict-option{border:1px solid #e8e9ef;background:#fff;text-align:left;padding:9px 12px;border-radius:6px;color:#43506a}.pm-portal .pm-dict-option:hover{border-color:var(--pm-accent-border);background:var(--pm-tint)}
#pm-toast{position:fixed;z-index:30000;left:50%;top:24px;bottom:auto;transform:translateX(-50%);background:#fff;color:#344054;border:1px solid #dbe6e2;border-radius:12px;padding:12px 16px 12px 46px;box-shadow:0 8px 30px rgba(36,60,85,.14),0 2px 6px rgba(36,60,85,.05);font-size:13px;max-width:calc(100vw - 32px);pointer-events:none}
#pm-toast::before{content:'✓';position:absolute;left:16px;top:50%;transform:translateY(-50%);width:20px;height:20px;border-radius:50%;display:grid;place-items:center;background:#eaf8f0;color:#239a61;font:700 14px/1 Arial,sans-serif}
#pm-toast[hidden]{display:none!important}
@media(max-width:1100px){#pm-app .pm-tabs{gap:18px}#pm-app .pm-toolbar-end{margin-left:0}#pm-editor .pm-editor-scroll{padding:24px 130px 30px 15px}#pm-editor .pm-anchor-nav{right:10px;width:110px}#pm-editor .pm-form-label{width:100px;flex-basis:100px}#pm-editor .pm-unit-input input{width:80px!important}}
@media(max-width:700px){#pm-editor .pm-anchor-nav{display:none}#pm-editor .pm-editor-scroll{padding:20px}#pm-editor .pm-form-row{display:block}#pm-editor .pm-form-label{width:auto;text-align:left;margin-bottom:7px;padding:0}#pm-editor .pm-editor-footer{padding:12px;flex-wrap:wrap}#pm-app .pm-tabs{gap:15px}#pm-app .pm-auto{margin-left:15px}#pm-app .pm-pagination{margin-left:0}#pm-app .pm-table-wrap{max-height:65vh}}
/* Follow ERP theme tokens for controls, links, focus rings and editor dialogs; preserve semantic status colors. */
body.erp-system-ui #products #pm-app input:not([type=checkbox]):focus,body.erp-system-ui #products #pm-app select:focus{border-color:var(--pm-accent)!important;box-shadow:0 0 0 2px var(--pm-focus)!important}
body.erp-system-ui #products #pm-app .pm-table td{border-color:#e0e3ec!important}
body.erp-system-ui #products #pm-app .pm-table th{font-weight:500!important}

/* 4.3.3: one alignment rule for headings and their column values. */
body.erp-system-ui #products #pm-app .pm-table th,body.erp-system-ui #products #pm-app .pm-table td{padding-left:12px!important;padding-right:12px!important;vertical-align:middle!important;box-sizing:border-box}
body.erp-system-ui #products #pm-app .pm-table th:nth-child(2),body.erp-system-ui #products #pm-app .pm-table td:nth-child(2),body.erp-system-ui #products #pm-app .pm-table th:nth-child(3),body.erp-system-ui #products #pm-app .pm-table td:nth-child(3){text-align:left!important}
body.erp-system-ui #products #pm-app .pm-table th:first-child,body.erp-system-ui #products #pm-app .pm-table td:first-child,body.erp-system-ui #products #pm-app .pm-table th:nth-child(n+4),body.erp-system-ui #products #pm-app .pm-table td:nth-child(n+4){text-align:center!important}
#products #pm-app .pm-price{display:inline-flex;justify-content:center;align-items:center;gap:10px;max-width:100%;text-align:left;vertical-align:middle}
#products #pm-app .pm-price-lines{text-align:left}
#products #pm-app .pm-stock{display:inline-flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;vertical-align:middle}
#products #pm-app .pm-stock .pm-link-btn{justify-content:center}
#products #pm-app .pm-listed-at,#products #pm-app .pm-weight-cell{white-space:nowrap;font-variant-numeric:tabular-nums}
#products #pm-app .pm-status-cell .pm-status{justify-content:center;min-width:52px}
#products #pm-app .pm-status-trigger{display:inline-flex;align-items:center;justify-content:center;gap:10px;border:0!important;border-radius:5px;background:transparent!important;box-shadow:none!important;min-height:26px;padding:0!important;color:inherit;font:inherit;cursor:help;vertical-align:middle;white-space:nowrap}
#products #pm-app .pm-status-trigger:focus-visible{outline:2px solid var(--pm-accent);outline-offset:4px}
#products #pm-app .pm-issue-count{display:inline-flex;align-items:center;justify-content:center;flex:none;min-width:20px;width:20px;height:20px;border-radius:50%;background:#fff0f4;color:#ee557c;font:400 11px/1 Arial,"Microsoft YaHei",sans-serif;font-variant-numeric:tabular-nums}
#products #pm-app .pm-status-cell>.pm-row-note{display:block;margin:5px auto 0}
.pm-issue-popover{position:fixed;inset:auto;margin:0;padding:0;border:0;border-radius:12px;width:340px;max-width:calc(100vw - 24px);overflow:visible;background:#fff;color:#525a68;box-shadow:0 5px 24px #25314730;z-index:2147482000;font:400 13px/1.7 Arial,"Microsoft YaHei",sans-serif;isolation:isolate;box-sizing:border-box;text-align:left}
.pm-issue-popover[hidden]{display:none!important}
.pm-issue-popover::backdrop{background:transparent;pointer-events:none}
.pm-issue-popover::before{content:'';position:absolute;width:12px;height:12px;background:#fff;top:var(--pm-issue-arrow-top,34px);transform:translateY(-50%) rotate(45deg);pointer-events:none}
.pm-issue-popover[data-side=right]::before{left:-5px}.pm-issue-popover[data-side=left]::before{right:-5px}
.pm-issue-popover .pm-issue-card{padding:20px 16px 17px;position:relative;box-sizing:border-box;background:#fff;border-radius:12px}
.pm-issue-popover .pm-issue-heading{display:flex;align-items:center;justify-content:space-between;gap:15px;margin:0 0 10px}
.pm-issue-popover .pm-issue-heading strong{font:600 18px/1.5 Arial,"Microsoft YaHei",sans-serif;color:#ff416d}
.pm-issue-popover .pm-issue-list{max-height:min(380px,55vh);overflow:auto;overscroll-behavior:contain;scrollbar-width:thin;padding-right:3px}
.pm-issue-popover .pm-issue-item{display:block;margin:0;padding:0;border:0;background:transparent}
.pm-issue-popover .pm-issue-item+.pm-issue-item{border-top:1px solid #eef0f4;padding-top:12px;margin-top:12px}
.pm-issue-popover .pm-issue-item h4{font:400 14px/1.7 Arial,"Microsoft YaHei",sans-serif;color:#555b64;margin:0 0 6px}
.pm-issue-popover .pm-issue-item p{font:400 13px/1.7 Arial,"Microsoft YaHei",sans-serif;margin:0;color:#626b7c;overflow-wrap:anywhere;white-space:pre-line}
.pm-issue-popover .pm-issue-item small{display:block;font-size:11px;color:#99a2b0;margin:6px 0 0;overflow-wrap:anywhere}
.pm-issue-popover .pm-issue-unavailable{font-size:12px;color:#949cab;line-height:1.7;margin:10px 0 0}

/* Lighter text inside the product filter boxes; keep primary actions readable. */
body.erp-system-ui #pm-app .pm-toolbar input:not([type=checkbox]),
body.erp-system-ui #pm-app .pm-toolbar select,
body.erp-system-ui #pm-app .pm-toolbar .erp-select-label{color:var(--erp-field-value,#8190a2)!important;-webkit-text-fill-color:currentColor!important;font-weight:400!important}
body.erp-system-ui #pm-app .pm-toolbar input::placeholder{color:#a5afbd!important;-webkit-text-fill-color:#a5afbd!important;font-weight:400!important}
/* Inventory editor: theme-aware summary, warehouse picker and quantity entry. */
.pm-stock-panel{display:grid;gap:18px}
.pm-stock-intro{display:flex;gap:13px;align-items:center;min-width:0}
.pm-stock-intro>div{min-width:0;flex:1}
.pm-stock-intro h4{font-size:15px;color:var(--erp-text,#26394c);margin:5px 0 7px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%;font-weight:600}
.pm-stock-emblem{display:grid;place-items:center;width:47px;height:47px;border-radius:12px;color:var(--theme-accent-deep,#148fa2);background:var(--theme-accent-soft,#dff5f8);flex:none}
.pm-stock-emblem svg{width:25px;height:25px;fill:none;stroke:currentColor;stroke-width:1.7}
.pm-stock-shop{font-size:12px;color:var(--theme-accent-deep,#148fa2)}
.pm-stock-metrics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.pm-stock-metrics>div{padding:14px 16px;background:var(--theme-accent-soft,#f1f9fb);border:1px solid var(--theme-accent-border,#dfedf1);border-radius:9px}
.pm-stock-metrics span{display:block;color:#7c8b9c;font-size:12px;margin-bottom:6px}
.pm-stock-metrics b{font-size:25px;font-weight:600;color:var(--erp-text,#26394c);font-variant-numeric:tabular-nums}
.pm-stock-metrics small{font-size:12px;font-weight:400}
.pm-stock-label{display:grid;gap:9px;font-size:13px;color:var(--erp-text-2,#475467)}
.pm-stock-input{position:relative}.pm-stock-input input{width:100%;padding-right:40px!important;min-height:42px!important;font-size:17px!important}.pm-stock-input>span{position:absolute;right:14px;top:12px;color:#8c98a7;font-size:13px}
.pm-stock-help{color:#7c8b9c;font-size:12px;margin:-8px 0 0;line-height:1.7}
.pm-stock-footnote{padding:11px 13px;border-radius:7px;background:#f6f8fb;color:#7c8b9c;font-size:12px;line-height:1.7}
@media(max-width:600px){.pm-stock-metrics>div{padding:12px 9px}.pm-stock-metrics b{font-size:22px}}

/* Immediate product identity while remote details are loading. */
.pm-portal .pm-stock-photo{display:block;flex:none;width:72px;height:72px;object-fit:contain;border:1px solid var(--pm-border);border-radius:9px;background:#fff}
.pm-portal .pm-stock-photo-empty{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;color:#9aa8b8;background:#f6f8fb}
.pm-stock-photo-empty small{font-size:10px}
.pm-loading-note{display:flex;align-items:center;gap:10px;padding:15px;border-radius:8px;color:#8190a2;background:#f6f8fb;font-size:13px}
.pm-stock-refresh{display:flex;align-items:center;justify-content:space-between;color:#8190a2;font-size:12px;margin-bottom:-10px}
.pm-stock-refresh button{display:inline-flex;align-items:center;gap:5px;color:var(--pm-accent)!important}
#pm-editor .pm-editor-loading{display:grid;align-content:start;gap:24px;width:min(900px,100%);margin:0 auto;padding:32px}
.pm-editor-skeleton{display:grid;gap:20px}.pm-editor-skeleton span{display:block;height:40px;max-width:100%;border-radius:7px;background:#f3f6f9}.pm-editor-skeleton span:last-child{height:110px}

/* 6.0.10 — 商品身份字段与订单中心统一：文字本身点击复制，不显示复制图标。 */
body.erp-system-ui #products #pm-app .pm-copy-line{display:flex;align-items:baseline;min-width:0;gap:0;color:#8b98a8}
body.erp-system-ui #products #pm-app .pm-copy-line>span{flex:none}
body.erp-system-ui #products #pm-app .pm-copy-value{display:inline!important;min-width:0!important;min-height:0!important;border:0!important;background:transparent!important;box-shadow:none!important;padding:0!important;margin:0!important;font:inherit!important;font-weight:400!important;line-height:inherit!important;color:#1677ff!important;-webkit-text-fill-color:#1677ff!important;text-align:left!important;cursor:pointer!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;vertical-align:baseline!important}
body.erp-system-ui #products #pm-app .pm-copy-value:hover{text-decoration:underline!important}
body.erp-system-ui #products #pm-app .pm-copy-value:focus-visible{outline:2px solid color-mix(in srgb,#1677ff 35%,transparent)!important;outline-offset:2px!important;border-radius:2px}

/* Product query/sync actions share the order toolbar's surface and outline. */
@layer erpColorMode.overrides {
 html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 #products #pm-app .pm-toolbar>button.pm-btn.pm-toolbar-outline {
  --ui-button-fill:var(--ui-surface,#fff)!important;--ui-button-text:var(--ui-label,#344054)!important;
  --ui-button-line:var(--ui-border,#e3e9f1)!important;--ui-button-hover-fill:var(--ui-field-surface,var(--ui-surface,#fff))!important;
  --ui-button-hover-text:var(--ui-label,#344054)!important;--ui-button-hover-line:var(--ui-accent,#1677ff)!important;
  background:var(--ui-surface,#fff)!important;background-image:none!important;
  border:1px solid var(--ui-border,#e3e9f1)!important;color:var(--ui-label,#344054)!important;
  -webkit-text-fill-color:currentColor!important;box-shadow:none!important;
 }
 html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 #products #pm-app .pm-toolbar>button.pm-btn.pm-toolbar-outline:is(:hover,:active,:focus-visible) {
  background:var(--ui-field-surface,var(--ui-surface,#fff))!important;background-image:none!important;
  border-color:var(--ui-accent,#1677ff)!important;color:var(--ui-label,#344054)!important;
 }
 html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 #products #pm-app .pm-toolbar>button.pm-btn.pm-toolbar-outline[type=submit] {--erp-action-icon-color:#1677ff!important}
 html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 #products #pm-app .pm-toolbar>button.pm-btn.pm-toolbar-outline[data-action^=sync] {--erp-action-icon-color:#16a34a!important}
}

/* Product states use the order center's outlined/filled buttons and count badges. */
@layer erpColorMode.overrides {
 html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 #products #pm-app .pm-tabs {
  box-sizing:border-box!important;display:flex!important;align-items:center!important;flex-wrap:wrap!important;gap:8px!important;
  min-width:0!important;max-width:100%!important;min-height:0!important;margin:0 0 12px!important;padding:10px!important;
  border:1px solid var(--ui-border-soft,#edf1f6)!important;border-radius:8px!important;background:var(--ui-surface,#fff)!important;
  overflow:visible!important;white-space:normal!important;
 }
 html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 #products #pm-app .pm-tabs>button.pm-tab[role=tab] {
  --pm-status-accent:#2b8ee9;--pm-status-deep:#1672c4;--pm-status-ink:var(--pm-status-deep);
  appearance:none!important;box-sizing:border-box!important;position:relative!important;display:inline-flex!important;
  flex:0 0 auto!important;align-items:center!important;justify-content:center!important;gap:6px!important;
  width:auto!important;min-width:0!important;max-width:100%!important;height:30px!important;min-height:30px!important;margin:0!important;padding:0 10px!important;
  border:1px solid color-mix(in srgb,var(--pm-status-accent) 35%,var(--ui-border,#e3e9f1))!important;border-radius:8px!important;
  background:color-mix(in srgb,var(--pm-status-accent) 6%,var(--ui-surface,#fff))!important;
  color:var(--pm-status-ink)!important;-webkit-text-fill-color:currentColor!important;
  font-family:inherit!important;font-size:12px!important;font-weight:500!important;line-height:1.4!important;white-space:nowrap!important;
  cursor:pointer!important;box-shadow:none!important;transform:none!important;transition:none!important;animation:none!important;
 }
 html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 #products #pm-app .pm-tabs>button.pm-tab[data-tab=IN_SALE] {--pm-status-accent:#22a447;--pm-status-deep:#15803d}
 html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 #products #pm-app .pm-tabs>button.pm-tab[data-tab=TO_SUPPLY] {--pm-status-accent:#f59e0b;--pm-status-deep:#d97706}
 html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 #products #pm-app .pm-tabs>button.pm-tab[data-tab=STATE_FAILED] {--pm-status-accent:#ef4444;--pm-status-deep:#dc2626}
 html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 #products #pm-app .pm-tabs>button.pm-tab[data-tab=VALIDATION_STATE_FAIL] {--pm-status-accent:#f59e0b;--pm-status-deep:#d97706}
 html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 #products #pm-app .pm-tabs>button.pm-tab[role=tab][data-tab=REMOVED_FROM_SALE] {--pm-status-accent:#8b5cf6;--pm-status-deep:#7c3aed;color:var(--pm-status-ink)!important;-webkit-text-fill-color:currentColor!important}
 html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 #products #pm-app .pm-tabs>button.pm-tab[role=tab][data-tab=ARCHIVED] {--pm-status-accent:#64748b;--pm-status-deep:#475569;color:var(--pm-status-ink)!important;-webkit-text-fill-color:currentColor!important}
 html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 #products #pm-app .pm-tabs>button.pm-tab[role=tab]:not(.active):hover {
  border-color:var(--pm-status-accent)!important;background:color-mix(in srgb,var(--pm-status-accent) 12%,var(--ui-surface,#fff))!important;
  color:var(--pm-status-ink)!important;box-shadow:0 2px 6px color-mix(in srgb,var(--pm-status-accent) 12%,transparent)!important;
 }
 html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 #products #pm-app .pm-tabs>button.pm-tab[role=tab].active {
  background:var(--pm-status-accent)!important;border-color:var(--pm-status-accent)!important;color:#fff!important;-webkit-text-fill-color:#fff!important;
  box-shadow:0 3px 8px color-mix(in srgb,var(--pm-status-accent) 20%,transparent)!important;
 }
 html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 #products #pm-app .pm-tabs>button.pm-tab[role=tab].active:hover {background:var(--pm-status-deep)!important;border-color:var(--pm-status-deep)!important}
 html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 #products #pm-app .pm-tabs>button.pm-tab[role=tab]:focus-visible {outline:2px solid var(--pm-status-accent)!important;outline-offset:2px!important}
 html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 #products #pm-app .pm-tabs .pm-tab-label {min-width:0!important;overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important}
 html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 #products #pm-app .pm-tabs>button.pm-tab[role=tab] .pm-count {
  box-sizing:border-box!important;display:inline-flex!important;flex:0 0 auto!important;align-items:center!important;justify-content:center!important;
  min-width:19px!important;height:18px!important;margin:0!important;padding:0 5px!important;border-radius:999px!important;
  border:1px solid color-mix(in srgb,var(--pm-status-accent) 38%,var(--ui-border,#e3e9f1))!important;
  background:color-mix(in srgb,var(--pm-status-accent) 12%,var(--ui-surface,#fff))!important;color:inherit!important;-webkit-text-fill-color:currentColor!important;
  font-size:10px!important;font-weight:500!important;line-height:1!important;text-align:center!important;font-variant-numeric:tabular-nums!important;
 }
 html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 #products #pm-app .pm-tabs>button.pm-tab[role=tab].active .pm-count {background:rgb(255 255 255 / 20%)!important;border-color:rgb(255 255 255 / 30%)!important;color:#fff!important}
 html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 #products #pm-app .pm-tabs>button>svg {
  display:block!important;flex:0 0 15px!important;width:15px!important;height:15px!important;margin:0!important;
  fill:none!important;stroke:currentColor!important;stroke-width:1.8!important;stroke-linecap:round!important;stroke-linejoin:round!important;color:inherit!important;
 }
 html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 #products #pm-app .pm-tabs>button.pm-auto[data-action=sync-schedule] {
  display:inline-flex!important;flex:0 0 auto!important;align-items:center!important;justify-content:center!important;gap:6px!important;
  min-width:0!important;min-height:30px!important;width:auto!important;margin:0 0 0 auto!important;padding:0 10px!important;
  border:1px solid var(--ui-border,#e3e9f1)!important;border-radius:8px!important;background:var(--ui-surface,#fff)!important;
  color:var(--ui-accent-hover,#1672c4)!important;font-size:12px!important;line-height:1.4!important;
 }
 html[data-erp-mode=dark] body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 #products #pm-app .pm-tabs>button.pm-tab[role=tab] {--pm-status-ink:color-mix(in srgb,var(--pm-status-accent) 65%,#fff)}
 @media(max-width:767px) {
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 #products #pm-app .pm-tabs>button.pm-tab[role=tab] {
   flex:1 0 calc(50% - 4px)!important;width:auto!important;min-width:0!important;min-height:44px!important;height:auto!important;padding:10px 6px!important;
  }
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 #products #pm-app .pm-tabs>button.pm-auto[data-action=sync-schedule] {
   flex:0 0 100%!important;width:100%!important;min-height:44px!important;margin:0!important;padding:10px!important;
  }
 }
}

/* Keep the icon, caption and count on one shared center line at every width. */
@layer erpColorMode.overrides {
 html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 #products #pm-app .pm-tabs>button.pm-tab[role=tab]:not([hidden]) {
  display:inline-flex!important;flex-direction:row!important;flex-wrap:nowrap!important;
  align-items:center!important;justify-content:center!important;line-height:20px!important;
 }
 html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 #products #pm-app .pm-tabs>button.pm-tab[role=tab]:not([hidden])>:is(svg,.pm-tab-label,.pm-count) {
  box-sizing:border-box!important;align-self:center!important;margin:0!important;vertical-align:middle!important;
 }
 html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 #products #pm-app .pm-tabs>button.pm-tab[role=tab]:not([hidden])>.pm-tab-label {
  display:block!important;flex:0 1 auto!important;height:20px!important;padding:0!important;
  font-family:inherit!important;line-height:20px!important;white-space:nowrap!important;
 }
 html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 #products #pm-app .pm-tabs>button.pm-tab[role=tab]:not([hidden])>.pm-count {
  display:inline-flex!important;align-items:center!important;justify-content:center!important;flex:0 0 auto!important;
  height:20px!important;font-family:inherit!important;line-height:18px!important;white-space:nowrap!important;
 }
}

/* Keep settings visible at the right while only the desktop status tabs swipe. */
@layer erpColorMode.overrides {
 html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 .main #products #pm-app #pmStatusBar {
  box-sizing:border-box!important;display:flex!important;flex-direction:row!important;flex-wrap:nowrap!important;align-items:center!important;
  width:100%!important;min-width:0!important;max-width:100%!important;gap:8px!important;margin:0 0 12px!important;padding:0 10px 0 0!important;
  border:1px solid var(--ui-border)!important;border-radius:var(--workspace-radius,10px)!important;background:var(--ui-surface)!important;
 }
 html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 .main #products #pm-app #pmStatusBar>.pm-tabs:not([hidden]) {
  flex:1 1 0!important;width:0!important;min-width:0!important;max-width:100%!important;margin:0!important;
  border:0!important;border-radius:0!important;background:transparent!important;box-shadow:none!important;
 }
 html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 .main #products #pm-app #pmStatusBar>button.pm-auto[data-action=sync-schedule]:not([hidden]) {
  box-sizing:border-box!important;display:inline-flex!important;flex:0 0 auto!important;flex-direction:row!important;flex-wrap:nowrap!important;
  align-items:center!important;justify-content:center!important;gap:6px!important;width:max-content!important;min-width:0!important;max-width:100%!important;
  height:36px!important;min-height:36px!important;margin:0 0 0 auto!important;padding:0 10px!important;border:1px solid var(--ui-accent,#2f80ed)!important;
  border-radius:var(--ui-control-radius,8px)!important;background:var(--ui-accent,#2f80ed)!important;color:#fff!important;-webkit-text-fill-color:currentColor!important;
  font-size:12px!important;line-height:1.4!important;white-space:nowrap!important;
 }
 html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 .main #products #pm-app #pmStatusBar>button.pm-auto[data-action=sync-schedule]:not([hidden]):hover {
  border-color:var(--ui-accent-hover,#246dcc)!important;background:var(--ui-accent-hover,#246dcc)!important;color:#fff!important;
 }
 html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 .main #products #pm-app #pmStatusBar>button.pm-auto>svg {
  display:block!important;flex:0 0 16px!important;width:16px!important;height:16px!important;color:inherit!important;fill:none!important;stroke:currentColor!important;
 }
 @media(max-width:767px) {
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 .main #products #pm-app #pmStatusBar>button.pm-auto[data-action=sync-schedule]:not([hidden]) {
   height:40px!important;min-height:40px!important;max-height:40px!important;padding:0 10px!important;
  }
 }
}

/* Phone status buttons own their grid width; the settings action has its own row. */
@layer erpColorMode.overrides {
 @media(max-width:900px) {
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 .main #products.page #pm-app #pmStatusBar.pm-status-bar {
   display:flex!important;flex-direction:column!important;flex-wrap:nowrap!important;align-items:stretch!important;
   width:100%!important;min-width:0!important;max-width:100%!important;height:auto!important;max-height:none!important;
   gap:8px!important;padding:10px!important;
  }
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 .main #products.page #pm-app #pmStatusBar.pm-status-bar>.pm-tabs:not([hidden]) {
   box-sizing:border-box!important;display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;
   align-items:stretch!important;gap:8px!important;flex:0 0 auto!important;width:100%!important;min-width:0!important;max-width:100%!important;
   height:auto!important;min-height:0!important;max-height:none!important;margin:0!important;padding:0!important;overflow:visible!important;white-space:normal!important;
  }
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 .main #products.page #pm-app #pmStatusBar.pm-status-bar>.pm-tabs>button.pm-tab[role=tab]:not([hidden]) {
   box-sizing:border-box!important;display:grid!important;grid-template-columns:15px minmax(0,1fr) max-content!important;
   align-items:center!important;justify-content:normal!important;column-gap:5px!important;row-gap:0!important;
   flex:none!important;width:100%!important;min-width:0!important;max-width:100%!important;
   height:auto!important;min-height:44px!important;max-height:none!important;margin:0!important;padding:8px!important;line-height:18px!important;white-space:normal!important;
  }
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 .main #products.page #pm-app #pmStatusBar.pm-status-bar>.pm-tabs>button.pm-tab[role=tab]>svg {
   grid-column:1!important;grid-row:1!important;width:15px!important;min-width:15px!important;height:15px!important;margin:0!important;
  }
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 .main #products.page #pm-app #pmStatusBar.pm-status-bar>.pm-tabs>button.pm-tab[role=tab]>.pm-tab-label {
   grid-column:2!important;grid-row:1!important;display:block!important;min-width:0!important;max-width:100%!important;height:auto!important;max-height:none!important;
   padding:0!important;margin:0!important;line-height:18px!important;text-align:left!important;white-space:normal!important;
   overflow:visible!important;text-overflow:clip!important;overflow-wrap:anywhere!important;
  }
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 .main #products.page #pm-app #pmStatusBar.pm-status-bar>.pm-tabs>button.pm-tab[role=tab]>.pm-count {
   grid-column:3!important;grid-row:1!important;justify-self:end!important;width:auto!important;min-width:19px!important;max-width:100%!important;
   height:20px!important;margin:0!important;padding:0 5px!important;line-height:18px!important;white-space:nowrap!important;
  }
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 .main #products.page #pm-app #pmStatusBar.pm-status-bar>button.pm-auto[data-action=sync-schedule]:not([hidden]) {
   box-sizing:border-box!important;flex:0 0 auto!important;width:100%!important;min-width:0!important;max-width:100%!important;
   height:44px!important;min-height:44px!important;max-height:none!important;margin:0!important;padding:8px 10px!important;
  }
 }
 @media(max-width:600px) {
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 .main #products.page #pm-app #pmStatusBar.pm-status-bar>.pm-tabs:not([hidden]) {grid-template-columns:repeat(2,minmax(0,1fr))!important}
 }
}

/* Archive identities stay visible and retain the seller's original language. */
@layer erpColorMode.overrides {
 html body.erp-system-ui #pm-dialog .pm-archive-confirm {display:grid;gap:12px;min-width:0;}
 html body.erp-system-ui #pm-dialog .pm-archive-notice {margin:0!important;padding:10px 12px!important;font-size:12px!important;line-height:1.6!important;}
 html body.erp-system-ui #pm-dialog .pm-archive-summary {display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0!important;font-size:12px;line-height:1.6;}
 html body.erp-system-ui #pm-dialog .pm-archive-summary>span {color:var(--ui-text-muted,#718096);}
 html body.erp-system-ui #pm-dialog .pm-archive-summary>b {flex:none;padding:3px 8px;border-radius:5px;background:var(--ui-accent-soft,#edf5ff);color:var(--ui-accent,#1677ff);font-weight:500;}
 html body.erp-system-ui #pm-dialog .pm-archive-products {display:grid;gap:10px;max-height:50vh;min-width:0;overflow:auto;}
 html body.erp-system-ui #pm-dialog .pm-archive-card {box-sizing:border-box;display:grid;grid-template-columns:64px minmax(0,1fr);align-items:center;gap:14px;padding:14px;border:1px solid var(--ui-border-soft,#e7eef6);border-radius:9px;background:var(--ui-field-surface,#f8fbff);}
 html body.erp-system-ui #pm-dialog .pm-archive-photo {box-sizing:border-box;display:block;width:64px;height:85px;object-fit:contain;border-radius:6px;background:var(--ui-surface,#fff);}
 html body.erp-system-ui #pm-dialog .pm-archive-no-photo {display:flex;align-items:center;justify-content:center;font-size:11px;color:var(--ui-text-muted,#718096);}
 html body.erp-system-ui #pm-dialog .pm-archive-info {display:grid;gap:6px;min-width:0;font-size:12px;line-height:1.6;}
 html body.erp-system-ui #pm-dialog .pm-archive-info>.pm-shop {font-size:12px!important;color:var(--ui-accent,#1677ff)!important;font-weight:500;}
 html body.erp-system-ui #pm-dialog .pm-archive-name {display:block;min-width:0;margin:0;color:var(--ui-text,#21334b)!important;font-size:13px!important;font-weight:500!important;line-height:1.6;overflow-wrap:anywhere;}
 html body.erp-system-ui #pm-dialog .pm-archive-identifiers {display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:5px 16px;margin:0;padding:0;min-width:0;}
 html body.erp-system-ui #pm-dialog .pm-archive-identifiers>div {display:flex;align-items:baseline;gap:8px;min-width:0;}
 html body.erp-system-ui #pm-dialog .pm-archive-identifiers>.pm-archive-offer {grid-column:1/-1;}
 html body.erp-system-ui #pm-dialog .pm-archive-identifiers dt {flex:none;min-width:29px;margin:0;color:var(--ui-text-muted,#718096);font-size:12px;font-weight:400;}
 html body.erp-system-ui #pm-dialog .pm-archive-identifiers dd {min-width:0;margin:0;color:var(--ui-accent,#1677ff);font-size:12px;overflow-wrap:anywhere;font-variant-numeric:tabular-nums;}
 @media(max-width:520px){
  html body.erp-system-ui #pm-dialog .pm-archive-card {grid-template-columns:54px minmax(0,1fr);gap:10px;padding:12px;}
  html body.erp-system-ui #pm-dialog .pm-archive-photo {width:54px;height:72px;}
  html body.erp-system-ui #pm-dialog .pm-archive-identifiers {grid-template-columns:minmax(0,1fr);}
 }
 html body.erp-system-ui #pm-app .pm-mobile-selection {display:none!important;}
 @media(max-width:900px){
  html body.erp-system-ui.erp-beauty-v2.erp-beauty-v3 #pm-app .pm-mobile-selection {display:flex!important;align-items:center;justify-content:space-between;gap:10px;margin:10px 0;padding:8px 12px;border:1px solid var(--ui-border-soft,#e7eef6);border-radius:8px;background:var(--ui-field-surface,#f8fbff);}
  html body.erp-system-ui #pm-app .pm-page-select {display:inline-flex;align-items:center;gap:8px;min-height:28px;white-space:nowrap;cursor:pointer;font-size:13px;color:var(--ui-text,#21334b);}
  html body.erp-system-ui #pm-app .pm-page-select>input {margin:0;flex:none;cursor:pointer;}
  html body.erp-system-ui #pm-app .pm-page-select:has(input:disabled) {opacity:.6;cursor:default;}
  html body.erp-system-ui #pm-app .pm-mobile-selection>span {font-size:12px;color:var(--ui-text-muted,#718096);}
 }
}
