@layer erp-reconstruction{
body:is([data-module=customers],[data-module=suppliers]) #business-drawer{display:flex!important;flex-direction:column!important;max-height:100dvh!important;background:#fff!important;color:#213047;font:15px/1.6 "Microsoft YaHei",sans-serif!important}
body:is([data-module=customers],[data-module=suppliers]) #business-drawer :is(input,select,textarea,button){font-size:15px!important;min-height:44px;max-width:100%}
body:is([data-module=customers],[data-module=suppliers]) #business-drawer>header{flex:0 0 auto!important;position:static!important;height:auto!important;padding:18px 24px!important;border-bottom:1px solid #dce4ee}
body:is([data-module=customers],[data-module=suppliers]) #business-drawer>header h2{font-size:24px!important}
body:is([data-module=customers],[data-module=suppliers]) #business-drawer>.drawer-body{flex:1 1 auto!important;min-height:0!important;overflow:auto!important;padding:24px!important}
body:is([data-module=customers],[data-module=suppliers]) #master-section{padding:0!important;background:none!important;border:0!important}
body:is([data-module=customers],[data-module=suppliers]) #master-section .form-grid{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:18px!important}
body:is([data-module=customers],[data-module=suppliers]) #master-section label{display:grid;gap:6px;min-width:0;color:#53647a}
body:is([data-module=customers],[data-module=suppliers]) #master-section .form-grid>label>span{font-size:14px!important}
body:is([data-module=customers],[data-module=suppliers]) #master-section .partner-role-field{display:flex!important;align-items:center;gap:12px;min-height:44px;cursor:pointer}
body:is([data-module=customers],[data-module=suppliers]) #master-section .partner-role-field input[type=checkbox]{order:-1;flex:0 0 22px;box-sizing:border-box;width:22px!important;height:22px!important;min-height:22px!important;margin:0!important;padding:0!important;accent-color:#245ca7}
body:is([data-module=customers],[data-module=suppliers]) #master-section .partner-role-field span{margin:0!important;color:#53647a}

@media(max-width:767px){
body:is([data-module=customers],[data-module=suppliers]) #business-drawer>.drawer-body{padding:16px 12px!important}
body:is([data-module=customers],[data-module=suppliers]) #master-section .form-grid{grid-template-columns:minmax(0,1fr)!important}
}
body:is([data-module=products],[data-module=customers],[data-module=suppliers],[data-module=product-categories],[data-module=brands],[data-module=units],[data-module=price-levels],[data-module=prices],[data-module=warehouses],[data-module=accounts]) :is(.business-workspace,.module-banner,.module-summary,.module-flow-rail){display:none!important}
body.opening-account-workspace-active :is(.business-workspace,.module-banner,.module-summary,.module-flow-rail){display:none!important}
.master-list-page .mlw-heading,.master-list-page .mlw-actions{height:auto!important;position:static!important}
@media(max-width:767px){
.master-list-page .mlw-heading{display:flex!important;flex-direction:column!important}
.master-list-page .mlw-actions{display:flex!important;flex-wrap:wrap!important;gap:8px!important}
.master-list-page .mlw-actions button{width:auto!important;min-width:0!important;flex:0 1 auto!important;white-space:nowrap!important}
.master-list-page .mlw-filters{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;width:100%!important}
.master-list-page .mlw-filters label{width:100%!important;min-width:0!important;max-width:100%!important}
.master-list-page .mlw-filters .mlw-search,.master-list-page .mlw-filters label:has(select){grid-column:1/-1!important}
.master-list-page .mlw-filters :is(input,select){width:100%!important;min-width:0!important}
}
.master-list-page{box-sizing:border-box;display:block;width:100%;min-width:0;padding:24px;background:#fff;color:#213047;font:15px/1.6 "Microsoft YaHei",sans-serif;overflow:visible;font-variant-numeric:tabular-nums}
.master-list-page[hidden],.master-list-page [hidden]{display:none!important}.master-list-page *{box-sizing:border-box}.master-list-page ::selection{color:#173b7a;background:#dceaff}
.master-list-page :is(button,input,select){font:15px/1.6 "Microsoft YaHei",sans-serif!important;color:inherit;min-height:44px;max-width:100%;border:1px solid #bfcbdc;border-radius:5px;padding:8px 12px;background:#fff;box-shadow:none;caret-color:#245ca7}
.master-list-page :is(button,input:not([type=checkbox]),select){min-height:44px!important}
.master-list-page button{cursor:pointer}.master-list-page button:hover{background:#edf3fd}.master-list-page button:disabled{opacity:.5;cursor:default}.master-list-page :focus-visible{outline:3px solid #6394df;outline-offset:2px}.master-list-page .mlw-primary{background:#245ca7;border-color:#245ca7;color:#fff}.master-list-page .mlw-primary:hover{background:#194d9f;border-color:#194d9f;color:#fff}
.master-list-page .mlw-heading{display:flex;align-items:start;justify-content:space-between;gap:20px;margin:0 0 24px}.master-list-page h2{font-size:24px;line-height:1.4;margin:0 0 6px}.master-list-page p{margin:0}.master-list-page .mlw-description{color:#53647a;font-size:14px}.master-list-page .mlw-actions{display:flex;gap:8px;flex-wrap:wrap;justify-content:end}
.master-list-page .mlw-filters{display:flex;align-items:end;gap:12px;flex-wrap:wrap;margin:0 0 18px;padding:0;border:0;background:none}.master-list-page .mlw-filters label{display:grid;gap:6px;min-width:0;font-size:14px;color:#53647a}.master-list-page .mlw-search{flex:1;min-width:220px!important}.master-list-page .mlw-filters input{width:100%}.master-list-page .mlw-filters select{min-width:150px}
.master-list-page .mlw-feedback{padding:12px 16px;color:#8b2929;background:#fff0ef;margin:0 0 18px;white-space:pre-wrap;overflow-wrap:anywhere}.master-list-page .mlw-selection{display:flex;align-items:center;gap:20px;flex-wrap:wrap;margin:0 0 12px;color:#53647a;font-size:14px}.master-list-page .mlw-selection label,.master-list-page .mlw-row-select{display:flex;align-items:center;gap:8px;min-height:44px;cursor:pointer}.master-list-page input[type=checkbox]{width:22px;height:22px;min-height:22px;padding:0;margin:0;accent-color:#245ca7}.master-list-page .mlw-mobile-selection-label{display:none}
.master-list-page .mlw-table-scroll{overflow:auto;max-width:100%;scrollbar-color:#a4b3c6 #f1f4f8}.master-list-page table{width:100%;min-width:880px;table-layout:auto;border-collapse:collapse;height:auto}.master-list-page :is(th,td){font-size:15px!important;line-height:1.6;padding:13px 12px;border:0;border-bottom:1px solid #dce3ec;vertical-align:top;text-align:left;white-space:normal;position:static;height:auto;background:transparent;color:#213047;overflow-wrap:anywhere}.master-list-page th{font-size:14px!important;background:#f2f5fa;color:#495b72;font-weight:500}.master-list-page :is(th,td):first-child{width:56px}.master-list-page td:nth-child(2){min-width:230px}.master-list-page .mlw-selected{background:#edf3fd}
.master-list-page :is(td,dd) strong{display:block;font-size:15px!important;font-weight:600;color:#213047}.master-list-page :is(td,dd) small{display:block;font-size:14px!important;line-height:1.5;color:#53647a;margin-top:4px;white-space:normal}.master-list-page :is(.product-row-actions,.purchase-query-row-actions){display:flex;flex-wrap:wrap;gap:8px}.master-list-page .table-link{border:0;color:#245ca7;background:transparent;white-space:normal;padding:8px;min-width:44px}.master-list-page .table-link.danger{color:#a72b2b}.master-list-page .table-status{display:inline-block;width:auto;height:auto;border-radius:4px;padding:3px 7px;font-size:14px;color:#475b74;background:#edf1f6}.master-list-page .table-status.green{color:#236043;background:#e8f5ed}.master-list-page .table-status.red{color:#9b2d2d;background:#fff0ef}.master-list-page .table-status.orange{color:#81521a;background:#fff3df}
.master-list-page[data-master-module=products] table{min-width:1140px}
.master-list-page[data-master-module=products] th:nth-child(2){width:24%}
.master-list-page[data-master-module=products] :is(th,td):nth-child(5){min-width:130px}
.master-list-page[data-master-module=products] :is(th,td):nth-child(6){min-width:130px}
.master-list-page[data-master-module=products] :is(th,td):is(:nth-child(7),:nth-child(8)){min-width:115px}
.master-list-page[data-master-module=prices] table{min-width:1120px}
.master-list-page[data-master-module=prices] :is(th,td):nth-child(2){min-width:260px;max-width:340px}
.master-list-page[data-master-module=prices] :is(th,td):nth-child(3){min-width:150px}
.master-list-page[data-master-module=prices] :is(th,td):nth-child(4){min-width:120px}
.master-list-page[data-master-module=prices] :is(th,td):nth-child(5){min-width:94px;white-space:nowrap;font-variant-numeric:tabular-nums}
.master-list-page[data-master-module=prices] :is(th,td):nth-child(6){min-width:108px;white-space:nowrap}
.master-list-page[data-master-module=prices] :is(th,td):nth-child(7){min-width:70px;white-space:nowrap}
.master-list-page[data-master-module=prices] :is(th,td):nth-child(8){min-width:100px;white-space:nowrap}
.master-list-page .mlw-pagination{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap;position:static;margin:20px 0 0;padding:0;font-size:14px;color:#53647a;height:auto;background:#fff;border:0}.master-list-page .mlw-pagination nav{display:flex;gap:8px}.master-list-page .mlw-empty{padding:36px 0;color:#53647a}.master-list-page .mlw-empty strong{display:block;color:#213047;margin-bottom:8px}
 .master-list-page .mlw-tools{flex:0 1 auto;min-width:0;max-width:100%}
 .master-list-page .mlw-tools>summary{display:flex;align-items:center;justify-content:center;min-height:44px;padding:8px 12px;border:1px solid #bfcbdc;border-radius:5px;font-size:15px;line-height:1.6;cursor:pointer;list-style:revert;color:#245ca7}
 .master-list-page .mlw-tools>summary:hover{background:#edf3fd}
 .master-list-page .mlw-tools-body{display:flex;flex-wrap:wrap;gap:8px;padding-top:12px}
 .master-list-page .mlw-tools[open]{flex-basis:100%}
.master-list-page .mlw-tools-body{justify-content:flex-end}.master-list-page .mlw-tools[open]>summary{width:max-content;margin-left:auto}
@media(max-width:767px){
 .master-list-page{padding:16px 12px 28px;overflow:visible}.master-list-page .mlw-heading{flex-direction:column;gap:16px;margin-bottom:20px}.master-list-page .mlw-actions{justify-content:start;width:100%}.master-list-page .mlw-actions>*{flex:1;min-width:110px}.master-list-page .mlw-filters{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.master-list-page .mlw-search{grid-column:1/-1;min-width:0!important}.master-list-page .mlw-filters label:has(select){grid-column:1/-1}.master-list-page .mlw-filters select{width:100%;min-width:0}.master-list-page .mlw-filters>button{width:100%}
 .master-list-page .mlw-tools{flex:1 1 160px}.master-list-page .mlw-tools[open]>summary{width:100%;margin-left:0}.master-list-page .mlw-tools-body{justify-content:start}
 .master-list-page .mlw-compact-record>header{flex-direction:row!important;align-items:start;justify-content:space-between;gap:12px;margin-bottom:16px}
 .master-list-page .mlw-identity{min-width:0;flex:1;overflow-wrap:anywhere}
 .master-list-page .mlw-identity>strong{font-size:18px!important;line-height:1.5;font-weight:600;color:#213047}
 .master-list-page .mlw-identity>small{display:block;font-size:14px!important;color:#53647a;margin-top:6px;overflow-wrap:anywhere}
 .master-list-page .mlw-compact-record header .mlw-row-select{flex-shrink:0;align-items:center;min-height:44px}
 .master-list-page .mlw-compact-record .mlw-field:first-child{grid-column:auto}
 .master-list-page .mlw-compact-record :is(.mlw-field-wide,.mlw-field-actions){grid-column:1/-1}
 .master-list-page .mlw-record{padding:20px 0;border-top:1px solid #cbd6e5;min-width:0;max-width:100%}.master-list-page .mlw-record>header{display:flex;flex-direction:column;align-items:start;gap:10px;background:none;padding:0;margin:0 0 18px;height:auto;position:static}.master-list-page .mlw-record h3{margin:0;font-size:18px;line-height:1.5;color:#213047;overflow-wrap:anywhere}.master-list-page .mlw-record header p{font-size:14px;color:#53647a;margin-top:5px;overflow-wrap:anywhere}.master-list-page .mlw-mobile-selection-label{display:inline;font-size:14px;color:#53647a}.master-list-page .mlw-record dl{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px 12px;margin:0;padding:0}.master-list-page .mlw-field{min-width:0;max-width:100%;overflow-wrap:anywhere}.master-list-page .mlw-field:first-child,.master-list-page .mlw-field-actions{grid-column:1/-1}.master-list-page dt{font-size:14px;color:#53647a;margin:0 0 5px}.master-list-page dd{font-size:15px;line-height:1.6;margin:0;padding:0;min-width:0;max-width:100%;overflow-wrap:anywhere;white-space:normal}.master-list-page dd :is(button,a){min-height:44px}.master-list-page .mlw-pagination{align-items:start;flex-direction:column}.master-list-page .mlw-pagination nav{width:100%}.master-list-page .mlw-pagination nav button{flex:1}
}
}

@layer erp-reconstruction {
.product-unit-history { min-width:0; max-width:100%; }
.product-unit-history p { white-space:normal; overflow-wrap:anywhere; font-size:14px; color:#53647a; }
.product-unit-history-list { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:20px; }
.product-unit-history-record { min-width:0; padding:16px 0; border-top:1px solid #cbd6e5; }
.product-unit-history-record h5 { margin:0 0 16px; font-size:18px; color:#213047; }
.product-unit-history-record dl { display:grid; gap:12px; margin:0; }
.product-unit-history-record dl>div { display:grid; grid-template-columns:100px minmax(0,1fr); gap:12px; }
.product-unit-history-record dt { margin:0; color:#53647a; font-size:14px; }
.product-unit-history-record dd { margin:0; min-width:0; font-size:15px; color:#213047; overflow-wrap:anywhere; white-space:normal; }
@media screen and (max-width:767px) { .product-unit-history-list { grid-template-columns:minmax(0,1fr); } }
}

@layer erp-reconstruction {
.master-list-page .mlw-status-tabs{display:flex;gap:22px;border-bottom:1px solid #dce3ec;margin:0 0 20px;overflow:auto}
.master-list-page .mlw-status-tabs button{border:0;border-radius:0;background:transparent;padding:10px 0;white-space:nowrap;min-height:44px}
.master-list-page .mlw-status-tabs button[aria-pressed=true]{color:#2359b8;border-bottom:2px solid #2359b8}
.master-list-page .mlw-product-name{display:block;text-align:left;min-height:44px;color:#2359b8;border:0;background:transparent;padding:6px 0;white-space:normal;line-height:1.6}
.master-list-page .product-record-view{font:15px/1.6 "Microsoft YaHei",sans-serif;color:#213047;min-width:0}
.master-list-page .prv-heading{display:flex;justify-content:space-between;gap:24px;align-items:start;margin-bottom:20px}
.master-list-page .prv-heading h2{font-size:24px;margin:0 0 8px}.master-list-page .prv-heading p{font-size:14px;margin:0;color:#53647a;overflow-wrap:anywhere}
.master-list-page .prv-detail-tabs{display:flex;gap:24px;border-bottom:1px solid #dce3ec;margin:0 0 24px;overflow:auto;scrollbar-color:#a4b3c6 #f1f4f8}.master-list-page .prv-detail-tabs>button{flex:0 0 auto;min-height:44px;border:0;border-radius:0;background:none;padding:10px 0;white-space:nowrap}.master-list-page .prv-detail-tabs>button[aria-selected=true]{color:#2359b8;border-bottom:2px solid #2359b8}.master-list-page [data-product-panel]{min-width:0}.master-list-page [data-product-panel]:focus-visible{outline:2px solid #6394df;outline-offset:4px}
.master-list-page .prv-status{display:flex;gap:16px 28px;flex-wrap:wrap;background:#f3f6fb;padding:12px 14px;font-size:14px;margin-bottom:24px}
.master-list-page .prv-status strong{display:inline;font-size:14px!important}
.master-list-page .prv-columns{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:32px;margin-bottom:24px}
.master-list-page .product-record-view h3{font-size:18px;margin:0 0 18px}
.master-list-page .product-record-view dl{display:grid;gap:14px;margin:0}.master-list-page .product-record-view dl>div{display:grid;grid-template-columns:100px minmax(0,1fr);gap:12px}
.master-list-page .product-record-view dt{font-size:14px;color:#53647a}.master-list-page .product-record-view dd{margin:0;font-size:15px;overflow-wrap:anywhere}
.master-list-page .prv-help,.master-list-page .prv-unit-status{font-size:14px;color:#53647a}
.master-list-page .prv-stock{padding:0 0 20px;margin-bottom:20px;border-bottom:1px solid #dce3ec}
.master-list-page .prv-stock-packaging{margin:14px 0 6px}
.master-list-page .prv-units{border-top:1px solid #dce3ec;padding:22px 0}.master-list-page .prv-table-scroll{overflow:auto;max-width:100%}
.master-list-page .prv-table-scroll table{min-width:700px}.master-list-page .prv-table-scroll td:nth-child(2){min-width:150px}
.master-list-page .prv-history{padding:22px 0}
.master-list-page .prv-history-controls{display:flex;gap:12px;align-items:end;flex-wrap:wrap}.master-list-page .prv-history-controls label{display:grid;gap:6px;font-size:14px}
.master-list-page .prv-history-status{font-size:14px;color:#53647a;margin:16px 0}
.master-list-page .prv-history-scroll{overflow:auto;max-width:100%}.master-list-page .prv-history-scroll table{min-width:660px}
.master-list-page .prv-history-scroll td:nth-child(2){min-width:150px}.master-list-page .prv-history-scroll :is(th,td):first-child{width:32%;min-width:210px}.master-list-page .prv-history-scroll small{white-space:nowrap}.master-list-page .prv-history-scroll button{border:0;background:none;color:#2359b8;text-align:left;padding:6px 0;min-height:44px}
.master-list-page .prv-history-pages{display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-top:16px;font-size:14px}.master-list-page .prv-history-pages>div{display:flex;gap:8px}
@media(max-width:767px){
 .master-list-page .prv-history-scroll{overflow:visible}.master-list-page .prv-history-scroll table{display:block;min-width:0;width:100%}.master-list-page .prv-history-scroll thead{display:none}.master-list-page .prv-history-scroll tbody{display:grid;gap:16px}.master-list-page .prv-history-scroll tr{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:12px;padding:14px 0;border-top:1px solid #dce3ec}.master-list-page .prv-history-scroll td{display:block;width:auto!important;min-width:0!important;padding:0;border:0}.master-list-page .prv-history-scroll td:first-child{grid-column:1/-1}.master-list-page .prv-history-scroll td:not(:first-child)::before{display:block;color:#53647a;font-size:14px;margin-bottom:5px}.master-list-page .prv-history-scroll td:nth-child(2)::before{content:'往来单位'}.master-list-page .prv-history-scroll td:nth-child(3)::before{content:'状态'}.master-list-page .prv-history-scroll td:nth-child(4)::before{content:'整单金额'}
}
.master-list-page .prv-explanation{margin:10px 0;color:#53647a;font-size:14px}.master-list-page .prv-explanation>summary{display:flex;align-items:center;min-height:44px;cursor:pointer;color:#2359b8}.master-list-page .prv-explanation p{max-width:65ch;margin:8px 0;line-height:1.6}.master-list-page .prv-business-note{padding:18px 0;border-top:1px solid #dce3ec}.master-list-page .prv-business-note p{margin:0;font-size:15px;line-height:1.6;white-space:pre-wrap;overflow-wrap:anywhere}
.master-list-page .prv-more{border-top:1px solid #dce3ec;padding:10px 0}.master-list-page .prv-more>summary{min-height:44px;padding:10px 0;font-size:14px;cursor:pointer;color:#2359b8}.master-list-page .prv-more dl{padding-top:12px}
@media(max-width:767px){
 .master-list-page .prv-heading{flex-direction:column;gap:16px}.master-list-page .prv-columns{grid-template-columns:minmax(0,1fr);gap:24px}
 .master-list-page .prv-table-scroll{overflow:visible}.master-list-page .prv-table-scroll table{display:block;min-width:0;width:100%}.master-list-page .prv-table-scroll thead{display:none}.master-list-page .prv-table-scroll tbody{display:grid;gap:18px}.master-list-page .prv-table-scroll tr{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:12px;border-top:1px solid #dce3ec;padding:14px 0}.master-list-page .prv-table-scroll td{display:block;min-width:0!important;padding:0;border:0;width:auto!important}.master-list-page .prv-table-scroll td:first-child,.master-list-page .prv-table-scroll td:nth-child(3){grid-column:1/-1}.master-list-page .prv-table-scroll td::before{display:block;font-size:14px;color:#53647a;margin-bottom:5px}.master-list-page .prv-table-scroll td:nth-child(1)::before{content:'单位'}.master-list-page .prv-table-scroll td:nth-child(2)::before{content:'换算关系'}.master-list-page .prv-table-scroll td:nth-child(3)::before{content:'单位SKU'}.master-list-page .prv-table-scroll td:nth-child(4)::before{content:'采购参考价'}.master-list-page .prv-table-scroll td:nth-child(5)::before{content:'毛重'}.master-list-page .prv-table-scroll td:nth-child(6)::before{content:'状态'}
}
}

/* Product attachment workspace: the library is primary; upload metadata opens on demand. */
@layer erp-reconstruction {
body[data-module=products] #business-drawer #product-attachments-panel{font:15px/1.6 "Microsoft YaHei",sans-serif!important;color:#213047!important;min-width:0!important}
body[data-module=products] #business-drawer #product-attachments-panel :is(input,select,button){font:inherit!important;min-height:44px!important;box-sizing:border-box!important;max-width:100%}
body[data-module=products] #business-drawer #product-attachments-panel label{display:grid!important;gap:6px!important;min-width:0!important;color:#53647a!important}
body[data-module=products] #business-drawer #product-attachments-panel label>span{font-size:14px!important;margin:0!important}
body[data-module=products] #business-drawer #product-attachments-panel .product-attachment-product{display:flex!important;align-items:start!important;justify-content:space-between!important;gap:16px!important;margin-bottom:20px!important;padding:0!important;border:0!important;background:none!important}
body[data-module=products] #business-drawer #product-attachments-panel .product-attachment-product strong{display:block!important;font-size:18px!important;margin:0!important;color:#213047!important}
body[data-module=products] #business-drawer #product-attachments-panel .product-attachment-product :is(small,span){display:block!important;font-size:14px!important;color:#53647a!important;margin-top:4px!important}
body[data-module=products] #business-drawer #product-attachments-panel #product-attachment-workspace{display:grid!important;gap:24px!important}
body[data-module=products] #business-drawer #product-attachments-panel :is(.product-attachment-upload-card,.product-attachment-library){padding:0!important;border:0!important;border-radius:0!important;background:none!important;box-shadow:none!important}
body[data-module=products] #business-drawer #product-attachments-panel .product-attachment-upload-card{border-bottom:1px solid #dce3ec!important;padding-bottom:16px!important}
body[data-module=products] #business-drawer #product-attachments-panel .product-attachment-upload-card>summary{min-height:44px!important;display:list-item!important;width:max-content!important;max-width:100%;padding:10px 0!important;cursor:pointer!important;color:#2359b8!important;font-size:15px!important}
body[data-module=products] #business-drawer #product-attachments-panel .product-attachment-upload-help{font-size:14px!important;margin:8px 0 16px!important;color:#53647a!important}
body[data-module=products] #business-drawer #product-attachments-panel :is(.product-attachment-upload-fields,.product-attachment-edit-fields){display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:16px!important;margin:0 0 16px!important}
body[data-module=products] #business-drawer #product-attachments-panel .product-attachment-filters{display:grid!important;grid-template-columns:minmax(0,1fr) minmax(0,1fr) auto!important;gap:12px!important;align-items:end!important}
body[data-module=products] #business-drawer #product-attachments-panel .product-attachment-product-filter{display:none!important}
body[data-module=products] #business-drawer #product-attachments-panel .checkbox-field{display:flex!important;align-items:center!important;gap:8px!important;min-height:44px!important;grid-column:1/-1!important}
body[data-module=products] #business-drawer #product-attachments-panel input[type=checkbox]{width:22px!important;height:22px!important;min-height:22px!important;flex:0 0 22px!important;margin:0!important;accent-color:#2359b8!important}
body[data-module=products] #business-drawer #product-attachments-panel .product-attachment-dropzone{min-height:120px!important;border:1px dashed #9eafc6!important;border-radius:4px!important;padding:16px!important;background:#f5f8fc!important;transform:none!important}
body[data-module=products] #business-drawer #product-attachments-panel .product-attachment-dropzone strong{font-size:15px!important}
body[data-module=products] #business-drawer #product-attachments-panel :is(.product-attachment-dropzone>span,.product-attachment-summary,.product-attachment-copy>small,.product-attachment-copy>span,.product-attachment-badge,.product-attachment-upload-queue small){font-size:14px!important;line-height:1.6!important;color:#53647a!important}
body[data-module=products] #business-drawer #product-attachments-panel .product-attachment-choose-copy{color:#fff!important;font-size:15px!important}
body[data-module=products] #business-drawer #product-attachments-panel .product-attachment-list{display:grid!important;gap:0!important}
body[data-module=products] #business-drawer #product-attachments-panel .product-attachment-card{display:grid!important;grid-template-columns:96px minmax(0,1fr)!important;gap:16px!important;padding:20px 0!important;border:0!important;border-top:1px solid #dce3ec!important;border-radius:0!important;background:none!important;opacity:1!important}
body[data-module=products] #business-drawer #product-attachments-panel .product-attachment-preview{min-height:96px!important;max-height:120px!important;align-self:start!important;border-radius:3px!important}
body[data-module=products] #business-drawer #product-attachments-panel .product-attachment-title{display:block!important}
body[data-module=products] #business-drawer #product-attachments-panel .product-attachment-title>strong{display:block!important;font-size:15px!important;color:#213047!important}
body[data-module=products] #business-drawer #product-attachments-panel .product-attachment-title>div{justify-content:start!important;margin-top:8px!important}
body[data-module=products] #business-drawer #product-attachments-panel .product-attachment-copy summary{min-height:44px!important;padding:10px 0!important;font-size:14px!important;color:#2359b8!important;cursor:pointer!important}
body[data-module=products] #business-drawer #product-attachments-panel .product-attachment-actions{grid-column:2!important;display:flex!important;flex-direction:row!important;flex-wrap:wrap!important;gap:8px!important}
body[data-module=products] #business-drawer #product-attachments-panel .product-attachment-actions button{padding:8px 12px!important;text-align:center!important}
body[data-module=products] #business-drawer #product-attachments-panel :is(.product-attachment-empty,.product-attachment-loading,.product-attachment-unsaved){padding:24px 0!important;border:0!important;border-radius:0!important;background:none!important;font-size:15px!important;color:#53647a!important}
body[data-module=products] #business-drawer #product-attachments-panel :is(.product-attachment-empty strong,.product-attachment-unsaved strong){font-size:15px!important;color:#213047!important}
body[data-module=products] #business-drawer #product-attachments-panel :is(.product-attachment-empty span,.product-attachment-unsaved span,.product-report-reminder,.product-attachment-upload-queue>div){font-size:14px!important;line-height:1.6!important}
#product-attachment-preview-mask .product-attachment-preview-dialog{max-height:96dvh!important;border-radius:6px!important}
#product-attachment-preview-mask .product-attachment-preview-dialog>header h2{font-size:20px!important;overflow-wrap:anywhere!important}
#product-attachment-preview-mask .product-attachment-preview-dialog>header small{display:none!important}
#product-attachment-preview-mask .product-attachment-preview-dialog>footer{min-height:64px!important;flex-wrap:wrap!important;padding:12px 16px!important}
#product-attachment-preview-mask .product-attachment-preview-dialog>footer span{font-size:14px!important;color:#53647a!important}
#product-attachment-preview-mask .product-attachment-preview-dialog button{font-size:15px!important;min-height:44px!important;min-width:44px!important}
@media(max-width:767px){
 body[data-module=products] #business-drawer #product-attachments-panel :is(.product-attachment-upload-fields,.product-attachment-edit-fields,.product-attachment-filters){grid-template-columns:minmax(0,1fr)!important}
 body[data-module=products] #business-drawer #product-attachments-panel .product-attachment-card{grid-template-columns:72px minmax(0,1fr)!important;gap:12px!important}
 body[data-module=products] #business-drawer #product-attachments-panel .product-attachment-actions{grid-column:1/-1!important}
 body[data-module=products] #business-drawer #product-attachments-panel .product-attachment-actions button{flex:1 1 120px!important}
 body[data-module=products] #business-drawer #product-attachments-panel .product-attachment-copy:has(details[open]){grid-column:1/-1!important}
 #product-attachment-preview-mask{padding:8px!important}#product-attachment-preview-mask .product-attachment-preview-dialog{width:100%!important;height:96dvh!important}
}
}

@layer erp-reconstruction {
.master-list-page .prv-attachments{padding:22px 0}
.master-list-page .prv-attachment-controls{display:flex;gap:12px;align-items:end;flex-wrap:wrap}.master-list-page .prv-attachment-controls label{display:grid;gap:6px;font-size:14px;color:#53647a}
.master-list-page .prv-attachment-status{font-size:14px;color:#53647a;margin:16px 0}
.master-list-page .prv-attachment-item{display:flex;justify-content:space-between;gap:20px;padding:18px 0;border-top:1px solid #dce3ec}.master-list-page .prv-attachment-item>div{min-width:0}.master-list-page .prv-attachment-item>div:last-child{display:flex;gap:8px;align-items:start;flex-wrap:wrap}.master-list-page .prv-attachment-item h4{font-size:15px!important;margin:0 0 6px;color:#213047;overflow-wrap:anywhere}.master-list-page .prv-attachment-item p{font-size:14px!important;color:#53647a;margin:4px 0;overflow-wrap:anywhere}
.master-list-page .prv-attachment-pages{display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap;font-size:14px;margin-top:16px}.master-list-page .prv-attachment-pages>div{display:flex;gap:8px}
@media(max-width:767px){.master-list-page .prv-attachment-item{flex-direction:column;gap:12px}.master-list-page .prv-attachment-item>div:last-child button{flex:1}.master-list-page .prv-attachment-controls label{width:100%}}
}

@layer erp-reconstruction {
.mlw-partner-tabs{display:flex;gap:20px;border-bottom:1px solid #dce3ec;margin:0 0 20px}
.master-list-page .mlw-partner-tabs button{border:0;border-radius:0;background:none;min-height:44px;padding:8px 0}
.master-list-page .mlw-partner-tabs [aria-current=page]{color:#245ca7;border-bottom:2px solid #245ca7;font-weight:600}
.master-list-page .mlw-partner-heading{display:flex;align-items:start;justify-content:space-between;gap:16px;position:static;height:auto;background:none;padding:0;margin:0 0 20px}
.mlw-partner-heading>div:last-child{display:flex;gap:8px;flex-wrap:wrap}.mlw-partner-heading p{font-size:14px;color:#53647a}
.mlw-partner-state{padding:12px;background:#f2f5fa;font-size:14px;margin-bottom:24px}
.mlw-partner-columns{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:32px}
.mlw-partner-detail h3{font-size:18px;color:#213047;margin:0 0 16px}
.mlw-partner-detail dl{display:grid;gap:16px;margin:0 0 20px}
.mlw-partner-detail dl>div{display:grid;grid-template-columns:120px minmax(0,1fr);gap:12px}
.mlw-partner-detail dt{font-size:14px;color:#53647a}.mlw-partner-detail dd{margin:0;font-size:15px;overflow-wrap:anywhere}
.mlw-partner-detail p{font-size:14px;color:#53647a;line-height:1.7;margin:0 0 16px;overflow-wrap:anywhere}
.mlw-partner-history{border-top:1px solid #dce3ec;padding-top:24px;margin-top:24px}
.mlw-partner-history-controls{display:flex;align-items:end;gap:12px;flex-wrap:wrap;margin-bottom:16px}
.mlw-partner-history-controls label{display:grid;gap:6px;font-size:14px;color:#53647a}
[data-partner-records] article{display:grid;grid-template-columns:minmax(180px,2fr) repeat(3,minmax(80px,1fr));align-items:center;gap:12px;border-bottom:1px solid #dce3ec;padding:12px 0}
[data-partner-records] article button{text-align:left;color:#245ca7;background:none;border:0;overflow-wrap:anywhere}
.mlw-partner-detail [data-partner-pages]{display:flex;justify-content:space-between;align-items:center;gap:12px;position:static;padding:16px 0;height:auto;background:none}
.mlw-partner-detail [data-partner-pages]>div{display:flex;gap:8px}
@media(max-width:767px){.mlw-partner-columns{grid-template-columns:minmax(0,1fr);gap:24px}.master-list-page .mlw-partner-heading{flex-direction:column}.mlw-partner-detail dl>div{grid-template-columns:100px minmax(0,1fr)}[data-partner-records] article{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}[data-partner-records] article button{grid-column:1/-1}.mlw-partner-detail [data-partner-pages]{flex-wrap:wrap}}
}

@layer erp-reconstruction {
.master-list-page .mlw-partner-financial-status{font-size:14px;color:#53647a;margin:0 0 16px;overflow-wrap:anywhere}
.master-list-page [data-mlw-action=partner-finance]{margin:0 0 16px}
.master-list-page:is([data-master-module=customers],[data-master-module=suppliers]) table{min-width:940px;table-layout:fixed}
.master-list-page:is([data-master-module=customers],[data-master-module=suppliers]) :is(th,td):nth-child(2){width:27%;min-width:210px}
.master-list-page:is([data-master-module=customers],[data-master-module=suppliers]) :is(th,td):nth-child(4){width:18%}
.master-list-page:is([data-master-module=customers],[data-master-module=suppliers]) :is(th,td):nth-child(5){width:14%}
}
@layer erp-reconstruction {
/* One table surface, independent of viewport; a narrow screen scrolls columns. */
body.workspace-ui .master-list-page .mlw-selection{display:none!important}
body.workspace-ui .master-list-page .mlw-table-scroll{display:block!important;overflow:auto!important;max-width:100%!important;min-width:0!important;scrollbar-width:thin;scrollbar-color:#9baac4 #edf1f7}
body.workspace-ui .master-list-page .mlw-table-scroll table{display:table!important;table-layout:auto!important;width:100%!important;min-width:900px!important;border-collapse:collapse!important}
body.workspace-ui .master-list-page .mlw-table-scroll thead{display:table-header-group!important}
body.workspace-ui .master-list-page .mlw-table-scroll tbody{display:table-row-group!important}
body.workspace-ui .master-list-page .mlw-table-scroll tr{display:table-row!important;height:48px!important}
body.workspace-ui .master-list-page .mlw-table-scroll :is(th,td){display:table-cell!important;padding:8px 12px!important;line-height:1.45!important;vertical-align:middle!important;min-height:0!important;font-size:15px!important;width:auto!important}
body.workspace-ui .master-list-page .mlw-table-scroll th{height:44px!important;font-size:14px!important;white-space:nowrap!important}
body.workspace-ui .master-list-page .mlw-table-scroll .mlw-gear-cell{width:44px!important;min-width:44px!important;padding:4px!important;text-align:center!important}
body.workspace-ui .master-list-page .mlw-column-gear{display:inline-grid!important;place-items:center!important;width:36px!important;height:36px!important;min-height:36px!important;padding:6px!important;border:0!important;background:transparent!important;color:#0868e8!important;border-radius:6px!important;cursor:pointer}
body.workspace-ui .master-list-page .mlw-column-gear i{font-size:22px!important}
body.workspace-ui .master-list-page .mlw-column-gear:focus-visible{outline:2px solid #4f5dbe;outline-offset:2px}
body.workspace-ui .master-list-page .mlw-table-scroll td :is(strong,.mlw-product-name){font-size:15px!important;line-height:1.45!important;font-weight:500!important}
body.workspace-ui .master-list-page .mlw-table-scroll td button{min-height:32px!important;padding-block:4px!important}
}
