@layer erp-reconstruction {
@media screen {
body[data-module="replenishment"] :is(.module-banner,.module-summary,.module-flow-rail,.business-workspace){display:none!important}
#replenishment-reference-panel{display:block!important;position:relative!important;height:auto!important;min-height:0!important;min-width:0!important;overflow:visible!important;padding:24px!important;background:#fff!important;color:#213047!important;font:15px/1.6 "Microsoft YaHei",sans-serif!important;font-variant-numeric:tabular-nums}
#replenishment-reference-panel[hidden],#replenishment-reference-panel [hidden]{display:none!important}
#replenishment-reference-panel *{box-sizing:border-box}
#replenishment-reference-panel h2{margin:0 0 24px;font-size:22px!important;line-height:1.4;font-weight:600;color:#13263f!important}
#replenishment-reference-panel :is(button,input,select){font:15px/1.6 "Microsoft YaHei",sans-serif!important;min-height:44px!important;max-width:100%;border:1px solid #b8c9df!important;border-radius:5px!important;color:#254c80!important;background-color:#fff!important}
#replenishment-reference-panel button{padding:8px 12px!important;cursor:pointer;white-space:normal}
#replenishment-reference-panel button:hover:not(:disabled){background-color:#edf4fe!important;border-color:#7f9fc9!important}
#replenishment-reference-panel button:disabled{opacity:.55;cursor:default}
#replenishment-reference-panel :is(input,select){min-width:0;width:100%;padding:8px 12px!important;color:#213047!important;caret-color:#1b5ead;accent-color:#1b5ead}
#replenishment-reference-panel input::placeholder{color:#53647a;opacity:1}
#replenishment-reference-panel :focus-visible{outline:3px solid #6394df!important;outline-offset:2px!important}
#replenishment-reference-panel ::selection{color:#173b7a;background:#dceaff}
#replenishment-reference-panel :is(.replenishment-primary-button,#replenishment-search){background-color:#1b5ead!important;border-color:#1b5ead!important;color:#fff!important}
#replenishment-reference-panel :is(.replenishment-primary-button,#replenishment-search):hover:not(:disabled){background-color:#174e90!important;border-color:#174e90!important}
#replenishment-reference-panel .replenishment-modes{display:flex;align-items:center;flex-wrap:wrap;gap:8px;padding:0 0 20px;margin-bottom:20px;border-bottom:1px solid #dce3ec}
#replenishment-reference-panel .replenishment-modes button.active{background-color:#1b5ead!important;color:#fff!important;border-color:#1b5ead!important}
#replenishment-reference-panel .replenishment-categories{display:grid;grid-template-columns:minmax(180px,300px) minmax(0,1fr);align-items:start;gap:12px;margin:0 0 20px;min-width:0}
#replenishment-reference-panel .replenishment-categories>label{display:block;min-width:0;position:relative}
#replenishment-reference-panel .replenishment-categories>label>.ti-search{display:none}
#replenishment-category-list{display:flex;flex-wrap:wrap;align-items:center;gap:8px;min-width:0}
#replenishment-category-list button{display:inline-flex;align-items:center;gap:6px;max-width:100%;overflow-wrap:anywhere;text-align:left}
#replenishment-category-list button.active{color:#174c91!important;background-color:#edf4fe!important;border-color:#9bb7dc!important}
#replenishment-reference-panel .replenishment-workspace{display:flex;flex-direction:column;gap:16px;min-width:0}
#replenishment-reference-panel :is(.replenishment-filters,.replenishment-extra-filters){display:grid;grid-template-columns:minmax(200px,360px) minmax(160px,260px) auto auto;align-items:end;gap:12px;min-width:0}
#replenishment-reference-panel :is(.replenishment-filters,.replenishment-extra-filters)>label{display:grid;gap:6px;min-width:0;color:#53647a;font-size:14px;white-space:normal}
#replenishment-reference-panel :is(.replenishment-filters,.replenishment-extra-filters)>label>span{font-size:14px}
#replenishment-reference-panel .replenishment-filters>button{justify-self:start}
#replenishment-reference-panel .replenishment-extra-filters{grid-template-columns:repeat(4,minmax(0,1fr));padding:16px 0;border-block:1px solid #dce3ec}
#replenishment-reference-panel .replenishment-actions{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:12px;padding:4px 0}
#replenishment-reference-panel .replenishment-actions>div{display:flex;flex-wrap:wrap;align-items:center;gap:8px;min-width:0}
#replenishment-reference-panel #replenishment-density{min-width:44px;padding:8px!important}
#replenishment-reference-panel .replenishment-results{position:relative;min-width:0;overflow:auto;max-height:none;border-block:1px solid #dce3ec;scrollbar-color:#a4b3c6 #f1f4f8;overscroll-behavior-x:contain}
#replenishment-reference-panel .replenishment-table{width:100%!important;min-width:2180px;border-collapse:collapse!important;table-layout:auto;font-size:15px}
#replenishment-reference-panel .replenishment-table :is(th,td){height:auto!important;min-width:80px;min-height:0!important;padding:12px 14px!important;white-space:nowrap!important;text-align:left;border:0!important;border-bottom:1px solid #e5ebf3!important;font:15px/1.6 "Microsoft YaHei",sans-serif!important;font-variant-numeric:tabular-nums;color:#213047!important}
#replenishment-reference-panel .replenishment-table th{color:#294b78!important;background:#edf3fc!important;font-size:14px!important;font-weight:600!important}
#replenishment-reference-panel .replenishment-table :is(td,th) :is(span,strong,a){font-size:inherit}
#replenishment-reference-panel .replenishment-table tbody tr:hover{background:#f7faff}
#replenishment-reference-panel .replenishment-table [data-erp-column-visible="false"]{display:none!important}
#replenishment-reference-panel .replenishment-table [data-replenishment-field="name"]{min-width:220px;color:#153b6b!important;font-weight:600!important}
#replenishment-reference-panel .replenishment-table :is([data-replenishment-field="settings"],[data-replenishment-field="select"],[data-replenishment-field="image"]){text-align:center}
#replenishment-reference-panel .replenishment-table :is([data-replenishment-field="target"],[data-replenishment-field="safety"],[data-replenishment-field="physical"],[data-replenishment-field="saleable"],[data-replenishment-field="invalid"],[data-replenishment-field="reserved"],[data-replenishment-field="available"]){text-align:right!important}
#replenishment-reference-panel .replenishment-row-settings{display:inline-flex;align-items:center;justify-content:center;min-width:44px;padding:8px!important}
#replenishment-reference-panel input[type="checkbox"]{width:24px!important;height:24px!important;min-height:24px!important;padding:0!important;vertical-align:middle}
#replenishment-reference-panel .replenishment-product-image{display:inline-grid;place-items:center;width:32px;height:32px;color:#63768e;background:#f1f5fa;border:1px solid #dce3ec;border-radius:4px}
#replenishment-reference-panel .replenishment-alert{display:inline-flex;align-items:center;gap:5px;color:#81521a;font-size:14px}
#replenishment-reference-panel .replenishment-alert.danger,#replenishment-reference-panel .replenishment-table .replenishment-stock-invalid.has-value{color:#a52e37!important}
#replenishment-reference-panel .replenishment-table .replenishment-stock-reserved.has-value{color:#81521a!important}
#replenishment-reference-panel .replenishment-table :is(.replenishment-stock-saleable,.replenishment-stock-available){color:#17634e!important}
#replenishment-reference-panel .replenishment-quantity{width:112px;min-width:88px;text-align:right}
#replenishment-reference-panel .replenishment-empty{position:static;display:grid;place-content:center;justify-items:center;gap:8px;min-height:180px;padding:32px 20px;text-align:center;white-space:normal;overflow-wrap:anywhere;color:#213047;background:#fff}
#replenishment-reference-panel .replenishment-empty>i{font-size:28px;color:#53647a}
#replenishment-reference-panel .replenishment-empty strong{font-size:15px;font-weight:600}
#replenishment-reference-panel .replenishment-empty span{max-width:58ch;font-size:14px;color:#53647a}
#replenishment-reference-panel .replenishment-footer{display:flex;align-items:center;justify-content:flex-start;flex-wrap:wrap;gap:12px;padding-top:4px;font-size:14px;color:#53647a}
#replenishment-reference-panel .replenishment-footer #replenishment-record-count{margin-left:auto}
#replenishment-strategy-modal{position:fixed!important;inset:0!important;z-index:140;display:grid!important;place-items:center!important;padding:16px!important;max-height:100dvh;overflow:auto!important;background:rgb(18 28 49 / 35%)}
#replenishment-strategy-modal form{display:grid!important;grid-template-rows:auto!important;align-content:start!important;gap:20px!important;width:min(560px,100%)!important;height:auto!important;min-height:0!important;max-height:calc(100dvh - 32px)!important;overflow:auto!important;padding:24px!important;border:1px solid #dce3ec;border-radius:6px!important;background:#fff!important;box-shadow:0 18px 48px rgb(16 42 85 / 22%)}
#replenishment-strategy-modal :is(header,footer){position:static!important;display:flex!important;align-items:center;gap:12px!important;min-height:44px!important;height:auto!important;padding:0!important;background:#fff!important;border:0!important}
#replenishment-strategy-modal header strong{font-size:22px!important;line-height:1.4;font-weight:600}
#replenishment-strategy-modal header button{margin-left:auto!important;min-width:44px}
#replenishment-strategy-modal p{margin:0!important;padding:0!important;font-size:14px!important;line-height:1.6;color:#53647a}
#replenishment-strategy-modal label{display:grid!important;gap:8px!important;margin:0!important;padding:0!important;font-size:14px!important;color:#53647a}
#replenishment-strategy-modal input{height:44px!important;flex:none!important}
#replenishment-strategy-modal footer{justify-content:flex-end}
#replenishment-strategy-recovery,#replenishment-order-recovery{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:12px;padding:0 0 20px;margin-bottom:20px;color:#81521a;border-bottom:1px solid #dce3ec}
#replenishment-strategy-recovery p,#replenishment-order-recovery p{flex:1;min-width:min(180px,100%);margin:0;font-size:15px;overflow-wrap:anywhere}
}
@media screen and (min-width:768px){
#replenishment-reference-panel.dense .replenishment-table :is(th,td){padding-block:8px!important}
}
@media screen and (min-width:768px) and (max-width:1100px){
#replenishment-reference-panel .replenishment-categories{grid-template-columns:minmax(0,1fr)}
#replenishment-reference-panel :is(.replenishment-filters,.replenishment-extra-filters){grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media screen and (max-width:767px){
#replenishment-reference-panel{padding:20px 12px 32px!important}
#replenishment-reference-panel h2{margin-bottom:20px;font-size:22px}
#replenishment-reference-panel .replenishment-categories{grid-template-columns:minmax(0,1fr);gap:12px;margin:0}
#replenishment-category-list{gap:8px}
#replenishment-reference-panel :is(.replenishment-filters,.replenishment-extra-filters){grid-template-columns:repeat(2,minmax(0,1fr))}
#replenishment-reference-panel :is(.replenishment-filters,.replenishment-extra-filters)>label{grid-column:1/-1}
#replenishment-reference-panel .replenishment-filters>button{width:100%;justify-self:stretch}
#replenishment-reference-panel .replenishment-actions>div{flex:1 1 100%}
#replenishment-reference-panel .replenishment-actions button{flex:1 1 130px}
#replenishment-reference-panel .replenishment-actions #replenishment-density{flex:0 0 44px}
#replenishment-reference-panel .replenishment-results{overflow:visible;border:0}
#replenishment-reference-panel .replenishment-table{display:block!important;min-width:0!important;width:100%!important;max-width:100%;--replenishment-field-width:auto;--replenishment-field-min-width:0px}
#replenishment-reference-panel .replenishment-table thead{display:none!important}
#replenishment-reference-panel .replenishment-table tbody{display:block;width:100%;min-width:0}
#replenishment-reference-panel .replenishment-table tr{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px 16px;padding:20px 0;border-top:1px solid #dce3ec;min-width:0;width:100%}
#replenishment-reference-panel .replenishment-table td{display:block!important;min-width:0!important;width:auto!important;max-width:100%;padding:0!important;white-space:normal!important;word-break:normal!important;overflow-wrap:anywhere;border:0!important;font-size:15px!important;text-align:left!important}
#replenishment-reference-panel .replenishment-table td::before{content:attr(data-label);display:block;margin-bottom:4px;font-size:14px;color:#53647a;font-weight:400;line-height:1.5}
#replenishment-reference-panel .replenishment-table [data-replenishment-field="image"]{display:none!important}
#replenishment-reference-panel .replenishment-table :is([data-replenishment-field="alert"],[data-replenishment-field="name"],[data-replenishment-field="supplier"],[data-replenishment-field="warehouse"],[data-replenishment-field="quantity"]){grid-column:1/-1}
#replenishment-reference-panel .replenishment-table [data-replenishment-field="name"]{font-size:18px!important;font-weight:600;line-height:1.5}
#replenishment-reference-panel .replenishment-table [data-replenishment-field="quantity"]{padding-top:12px!important;border-top:1px solid #dce3ec!important}
#replenishment-reference-panel .replenishment-quantity{width:100%;min-width:0}
#replenishment-reference-panel .replenishment-footer{gap:12px}
#replenishment-reference-panel #replenishment-generate{flex:1 1 100%;width:100%}
#replenishment-strategy-modal{padding:12px!important}
#replenishment-strategy-modal form{max-height:calc(100dvh - 24px)!important;padding:20px 16px!important}
#replenishment-strategy-modal footer{flex-wrap:wrap}
#replenishment-strategy-modal footer button{flex:1 1 120px}
}
}
