@layer erp-reconstruction,erp-ui,erp-legacy;
@layer erp-reconstruction{
.inventory-entry-page{display:block!important;background:#fff!important;color:#213047;padding:24px!important;min-width:0;max-width:100%;height:auto!important;overflow:auto;font:15px/1.6 "Microsoft YaHei",sans-serif!important;box-sizing:border-box}
.inventory-entry-page[hidden]{display:none!important}.inventory-entry-page *{box-sizing:border-box}
.inventory-entry-page :is(input,select,button){font:15px/1.6 "Microsoft YaHei",sans-serif!important;min-height:44px;max-width:100%;color:inherit;border:1px solid #bfcbdc;border-radius:5px;background:#fff;padding:7px 10px;box-shadow:none}
.inventory-entry-page :is(input,select){width:100%}.inventory-entry-page [hidden]{display:none!important}.inventory-entry-page button{cursor:pointer}.inventory-entry-page button:hover{background:#edf3fd}.inventory-entry-page button:disabled{opacity:.5;cursor:default}.inventory-entry-page :focus-visible{outline:3px solid #6394df;outline-offset:2px}
.inventory-entry-tab{display:flex;align-items:center;gap:10px;margin-bottom:16px;color:#53647a;font-size:14px}.inventory-entry-tab strong{display:none}.inventory-entry-tab button{margin-left:auto}
.inventory-entry-heading{display:flex;flex-direction:column;gap:14px;margin-bottom:24px}.inventory-entry-heading h2{font-size:24px;margin:0;order:-1}.inventory-entry-meta,.inventory-entry-config{display:flex;flex-wrap:wrap;gap:12px 24px}.inventory-entry-meta{font-size:14px;color:#53647a}
.inventory-entry-form{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin:18px 0 24px}.inventory-entry-form label{display:grid;gap:6px;min-width:0}.inventory-entry-form label span{font-size:14px;color:#53647a}.inventory-entry-form b{color:#b73030}.inventory-entry-form>button{align-self:end}
.inventory-entry-toolbar{display:flex;gap:8px;flex-wrap:wrap;align-items:center;padding:14px 0;border-top:1px solid #dce4ee}.inventory-entry-toolbar>div{display:flex;gap:8px}.inventory-entry-scan{display:flex;align-items:center;gap:8px;flex:1;min-width:160px}
.inventory-entry-table-wrap{max-width:100%;overflow-x:auto;border:1px solid #dce4ee}.inventory-entry-table{width:100%;min-width:1400px;border-collapse:collapse;table-layout:auto}.inventory-entry-table :is(th,td){padding:10px 8px;border-bottom:1px solid #e1e7ef;vertical-align:top;white-space:nowrap;font-size:15px!important}.inventory-entry-table th{background:#f2f5fa;text-align:left;font-weight:600}.inventory-entry-table input,.inventory-entry-table select{min-width:85px}.inventory-entry-table .purchase-inbound-product{min-width:240px}.inventory-entry-table tfoot{background:#f2f5fa;font-weight:600}
:is(#stock-transfer-editor,#stock-loss-editor,#stock-gain-editor,#other-outbound-editor,#other-inbound-editor) .inventory-entry-table{min-width:1060px;table-layout:auto}
:is(#stock-transfer-editor,#stock-loss-editor,#stock-gain-editor,#other-outbound-editor,#other-inbound-editor) .inventory-entry-table :is(th,td){white-space:normal;overflow-wrap:anywhere}
:is(#stock-transfer-editor,#stock-loss-editor,#stock-gain-editor,#other-outbound-editor,#other-inbound-editor) .inventory-entry-table th{font-size:14px!important}
:is(#stock-transfer-editor,#stock-loss-editor,#stock-gain-editor,#other-outbound-editor,#other-inbound-editor) .inventory-entry-table td:has(:is(.stock-transfer-product,.stock-loss-product,.stock-gain-product,.other-outbound-product,.other-inbound-product)){min-width:220px}
:is(#stock-transfer-editor,#stock-loss-editor,#stock-gain-editor,#other-outbound-editor,#other-inbound-editor) :is(.stock-transfer-product,.stock-loss-product,.stock-gain-product,.other-outbound-product,.other-inbound-product){width:240px;max-width:100%;min-width:0}
:is(#stock-transfer-editor,#stock-loss-editor,#stock-gain-editor,#other-outbound-editor,#other-inbound-editor) .purchase-inbound-row-remove{min-width:54px;white-space:nowrap}
:is(#stock-transfer-editor,#stock-loss-editor,#stock-gain-editor,#other-outbound-editor,#other-inbound-editor) .inventory-entry-table small{display:block;font-size:14px;color:#53647a;margin-top:4px;white-space:normal!important;overflow-wrap:anywhere}
:is(#stock-transfer-editor,#stock-loss-editor,#stock-gain-editor,#other-outbound-editor,#other-inbound-editor) .inventory-entry-table :is(.stock-transfer-full-name,.stock-loss-full-name,.stock-gain-full-name,.other-outbound-full-name,.other-inbound-full-name){display:none}
.inventory-entry-line-empty{text-align:center;padding:24px;display:grid;gap:8px}.inventory-entry-maker{display:flex;gap:12px;flex-wrap:wrap;margin:18px 0;font-size:14px;color:#53647a}.inventory-entry-discount{display:flex;flex-wrap:wrap;align-items:center;gap:8px}.inventory-entry-discount input{max-width:100px}.inventory-entry-tail{border-top:1px solid #dce4ee;padding:18px 0}.inventory-entry-tail-tabs{display:flex;gap:8px;margin-bottom:12px}.inventory-entry-tail-basic,.inventory-entry-tail-expense{display:flex;gap:14px;flex-wrap:wrap}.inventory-entry-tail-basic label{display:grid;gap:6px;flex:1;min-width:180px}.inventory-entry-footer{display:flex;flex-wrap:wrap;justify-content:space-between;gap:16px;padding:20px 0;border-top:1px solid #cbd6e5;background:white}.inventory-entry-footer>div{display:flex;align-items:center;flex-wrap:wrap;gap:12px}.inventory-entry-page [data-ui-button=primary]{background:#245ca7;color:white;border-color:#245ca7}
@media(max-width:767px){
:is(#stock-transfer-editor,#stock-loss-editor,#stock-gain-editor,#other-outbound-editor,#other-inbound-editor) .inventory-entry-table{min-width:0!important}
:is(#stock-transfer-editor,#stock-loss-editor,#stock-gain-editor,#other-outbound-editor,#other-inbound-editor) .inventory-entry-table :is(.stock-transfer-full-name,.stock-loss-full-name,.stock-gain-full-name,.other-outbound-full-name,.other-inbound-full-name){display:block;font-size:15px;color:#213047}

.inventory-entry-page{padding:16px 12px!important;padding-bottom:26px!important;overflow:visible}.inventory-entry-form{grid-template-columns:minmax(0,1fr);gap:14px}.inventory-entry-config{gap:8px}.inventory-entry-page :is(input,select,button){min-height:44px}.inventory-entry-heading{margin-bottom:16px}.inventory-entry-meta{gap:8px}.inventory-entry-toolbar>div{flex-wrap:wrap}.inventory-entry-toolbar>label{max-width:100%}
.inventory-entry-table-wrap{border:0;overflow:visible}.inventory-entry-table{min-width:0!important;width:100%;display:block}.inventory-entry-table thead{display:none}.inventory-entry-table tbody{display:grid;gap:16px}.inventory-entry-table tbody tr{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;padding:16px 0;border-top:1px solid #cbd6e5}.inventory-entry-table tbody td{display:flex;flex-direction:column;gap:6px;min-width:0!important;max-width:100%!important;width:auto!important;padding:0;border:0;white-space:normal;order:var(--procurement-order,0)!important;grid-area:auto!important;overflow-wrap:anywhere}.inventory-entry-table td::before{content:attr(data-inventory-label);font-size:14px;color:#53647a}.inventory-entry-table td[data-inventory-field="1"]{display:none}.inventory-entry-table td[data-inventory-field="4"],.inventory-entry-table td[data-inventory-field="10"]{grid-column:1/-1}.inventory-entry-table .purchase-inbound-product{min-width:0}.inventory-entry-table td :is(input,select){min-width:0!important;max-width:100%!important;width:100%!important}.inventory-entry-toolbar button{flex-shrink:0;white-space:nowrap}.inventory-entry-toolbar .inventory-entry-scan{flex-basis:100%}.inventory-entry-table tr.purchase-return-spacer-row{display:none}
.inventory-entry-table tfoot{display:block;border-top:1px solid #cbd6e5;padding:16px 0;background:none;font-weight:400}.inventory-entry-table tfoot tr{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.inventory-entry-table tfoot td{display:none;min-width:0;padding:0;border:0;white-space:normal;overflow-wrap:anywhere;font-variant-numeric:tabular-nums}.inventory-entry-table tfoot td:first-child{display:block;grid-column:1/-1;font-weight:600}.inventory-entry-table tfoot td:nth-child(4),.inventory-entry-table tfoot td:nth-child(7){display:block}.inventory-entry-table tfoot td:nth-child(4)::before,.inventory-entry-table tfoot td:nth-child(7)::before{display:block;font-size:14px;color:#53647a;margin-bottom:4px}.inventory-entry-table tfoot td:nth-child(4)::before{content:'数量合计'}.inventory-entry-table tfoot td:nth-child(7)::before{content:'成本金额合计'}
.inventory-entry-page.show-lot-fields .purchase-inbound-lot-field,.inventory-entry-page.show-lot-fields .purchase-return-lot-field{display:flex!important}.inventory-entry-footer{flex-direction:column;position:static}.inventory-entry-footer>div{width:100%}.inventory-entry-footer>div:last-child{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}.inventory-entry-footer button{width:100%}.inventory-entry-tail-basic label{min-width:0;flex-basis:100%}.inventory-entry-maker{gap:8px}.inventory-entry-page .inventory-entry-discount{width:100%}
}
}

@layer erp-reconstruction{
.inventory-entry-page .stock-transfer-spacer-row,.inventory-entry-page .stock-gain-spacer-row,.inventory-entry-page .other-outbound-spacer-row,.inventory-entry-page .other-inbound-spacer-row{display:none!important}
body:is([data-module=stock-transfer],[data-module=stock-loss],[data-module=stock-gain],[data-module=other-outbound],[data-module=other-inbound]) :is(.module-banner,.module-summary,.module-flow-rail){display:none!important}
@media(max-width:767px){
.inventory-entry-page .inventory-entry-table,.inventory-entry-page .inventory-entry-table tbody{display:block!important;width:100%!important;min-width:0!important;max-width:100%!important}
.inventory-entry-page .inventory-entry-table tbody tr{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;width:100%!important;min-width:0!important}
.inventory-entry-page .inventory-entry-table tbody td{width:auto!important;min-width:0!important;max-width:100%!important;order:var(--inventory-order,0)!important}
.inventory-entry-page .inventory-entry-table td::before{content:attr(data-inventory-label)}
.inventory-entry-page .inventory-entry-table :is(input,select){width:100%!important;min-width:0!important;max-width:100%!important}
:is(#stock-transfer-editor,#stock-loss-editor,#stock-gain-editor,#other-outbound-editor,#other-inbound-editor) .inventory-entry-table tbody td{display:flex!important}
:is(#stock-transfer-editor,#stock-loss-editor,#stock-gain-editor,#other-outbound-editor,#other-inbound-editor) .inventory-entry-table tbody td[data-inventory-field="1"]{display:flex!important;grid-column:1/-1;justify-self:end}
:is(#stock-transfer-editor,#stock-loss-editor,#stock-gain-editor,#other-outbound-editor,#other-inbound-editor) .inventory-entry-table tbody td:is([data-inventory-field="2"],[data-inventory-field="3"],[data-inventory-field="8"],[data-inventory-field="9"]){grid-column:1/-1}
:is(#stock-transfer-editor,#stock-loss-editor,#stock-gain-editor,#other-outbound-editor,#other-inbound-editor) .inventory-entry-table tbody td[data-inventory-field="10"]{grid-column:auto}
:is(#stock-transfer-editor,#stock-loss-editor,#stock-gain-editor,#other-outbound-editor,#other-inbound-editor) .inventory-entry-table tbody td[data-erp-column-visible="false"]{display:none!important}
:is(#stock-transfer-editor,#stock-loss-editor,#stock-gain-editor,#other-outbound-editor,#other-inbound-editor) .inventory-entry-table tbody td[data-transfer-label]::before{content:attr(data-transfer-label)}
:is(#stock-loss-editor,#stock-gain-editor) .inventory-entry-table tbody td[data-adjust-label]::before{content:attr(data-adjust-label)}
:is(#other-outbound-editor,#other-inbound-editor) .inventory-entry-table tbody td[data-other-label]::before{content:attr(data-other-label)}
.inventory-entry-page .inventory-entry-table td:has(:is(select[class$="-product"],input[class$="-note"])){grid-column:1/-1!important}
.inventory-entry-page .inventory-entry-toolbar button{width:auto!important;min-width:44px!important;white-space:normal!important}
.inventory-entry-page .inventory-entry-toolbar .inventory-entry-scan{flex-basis:100%}
}
}

@layer erp-reconstruction{
body:is([data-module=stock-query],[data-module=warehouse-stock-query],[data-module=stock-alerts],[data-module=stock-ledger],[data-module=expiry-alerts]) .business-workspace{background:#fff!important;padding:20px!important}
body:is([data-module=stock-query],[data-module=warehouse-stock-query],[data-module=stock-alerts],[data-module=stock-ledger],[data-module=expiry-alerts]) :is(.business-table,.query-bar,.workspace-toolbar,.table-footer) :is(input,select,button,td,th){font-size:15px!important}
@media(max-width:767px){
body:is([data-module=stock-query],[data-module=warehouse-stock-query],[data-module=stock-alerts],[data-module=stock-ledger],[data-module=expiry-alerts]) .business-workspace{padding:16px 12px!important}
body:is([data-module=stock-query],[data-module=warehouse-stock-query],[data-module=stock-alerts],[data-module=stock-ledger],[data-module=expiry-alerts]) .business-table-wrap{overflow:visible!important}
body:is([data-module=stock-query],[data-module=warehouse-stock-query],[data-module=stock-alerts],[data-module=stock-ledger],[data-module=expiry-alerts]) .business-table{display:block!important;width:100%!important;min-width:0!important;max-width:100%!important}
body:is([data-module=stock-query],[data-module=warehouse-stock-query],[data-module=stock-alerts],[data-module=stock-ledger],[data-module=expiry-alerts]) #module-table-head{display:none!important}
body:is([data-module=stock-query],[data-module=warehouse-stock-query],[data-module=stock-alerts],[data-module=stock-ledger],[data-module=expiry-alerts]) #module-table-body{display:block!important;width:100%!important}
body:is([data-module=stock-query],[data-module=warehouse-stock-query],[data-module=stock-alerts],[data-module=stock-ledger],[data-module=expiry-alerts]) #module-table-body tr{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:12px;padding:18px 0;border-top:1px solid #cbd6e5;width:100%!important}
body:is([data-module=stock-query],[data-module=warehouse-stock-query],[data-module=stock-alerts],[data-module=stock-ledger],[data-module=expiry-alerts]) #module-table-body td{display:flex!important;flex-direction:column;gap:6px;padding:0!important;border:0!important;width:auto!important;min-width:0!important;max-width:100%!important;order:0!important;grid-area:auto!important;white-space:normal!important;overflow-wrap:anywhere;position:static!important;height:auto!important;overflow:visible!important;box-shadow:none!important}
body:is([data-module=stock-query],[data-module=warehouse-stock-query],[data-module=stock-alerts],[data-module=stock-ledger],[data-module=expiry-alerts]) #module-table-body td:before{content:attr(data-inventory-query-label);font-size:14px;color:#53647a}
body:is([data-module=stock-query],[data-module=warehouse-stock-query],[data-module=stock-alerts],[data-module=stock-ledger],[data-module=expiry-alerts]) #module-table-body td[data-inventory-query-field="2"]{grid-column:1/-1!important}
body:is([data-module=stock-query],[data-module=warehouse-stock-query],[data-module=stock-alerts],[data-module=stock-ledger],[data-module=expiry-alerts]) :is(button,input,select){min-height:44px!important}
}
}
@layer erp-reconstruction{@media(max-width:767px){.inventory-entry-page :is(button,input,select){min-height:44px!important}.inventory-entry-page button{height:auto!important;white-space:normal!important;overflow:visible!important;text-overflow:clip!important}}}

@layer erp-reconstruction {
.inventory-entry-page .inventory-entry-heading{display:grid;gap:12px;margin:0 0 24px}
.inventory-entry-page .inventory-entry-title{display:flex;align-items:center;justify-content:space-between;gap:16px}
.inventory-entry-page .inventory-entry-title h2{margin:0;order:0}
.inventory-entry-page .inventory-entry-title>button{flex:0 0 44px;width:44px;height:44px;padding:8px}
.inventory-entry-page .inventory-entry-help summary{display:flex;align-items:center;min-height:44px;width:fit-content;color:#245ca7;cursor:pointer;font-size:14px}
.inventory-entry-page .inventory-entry-help .inventory-entry-config{padding:8px 0}
.inventory-entry-page .inventory-entry-form{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;grid-template-rows:none!important;grid-auto-rows:minmax(74px,auto)!important;gap:20px 16px!important;height:auto!important;margin:0 0 24px!important;padding:0!important}
.inventory-entry-page .inventory-entry-form>label{display:flex!important;flex-direction:column!important;gap:6px!important;grid-area:auto!important;position:static!important;width:auto!important;height:auto!important;min-height:74px!important;min-width:0!important;margin:0!important;padding:0!important}
.inventory-entry-page .inventory-entry-form>label>span{display:block!important;position:static!important;height:auto!important;line-height:21px!important;font-size:14px!important;white-space:normal!important;flex-shrink:0!important}
.inventory-entry-page .inventory-entry-form :is(input,select){height:44px!important;min-height:44px!important;width:100%!important;margin:0!important}
.inventory-entry-page .inventory-entry-form>label[class$="-summary"]{grid-column:1/3!important}
.inventory-entry-page .inventory-entry-form>label[class$="-extra"]{grid-column:3!important}
.inventory-entry-page .inventory-entry-form>button{grid-area:auto!important;justify-self:start!important;align-self:start!important;width:44px!important;height:44px!important;margin:0!important;padding:8px!important}
.inventory-entry-page .inventory-entry-toolbar{height:auto!important;min-height:0!important;gap:10px!important;padding:16px 0!important}
.inventory-entry-page .inventory-entry-scan{flex:1 1 300px;min-width:0}
.inventory-entry-page .inventory-entry-toolbar :is(button,input,select){min-height:44px}
.inventory-entry-page .inventory-entry-table{min-width:1760px;table-layout:auto}
.inventory-entry-page select[class$="-product"]{min-width:260px}
.inventory-entry-page .inventory-entry-table-wrap{scrollbar-color:#a4b3c6 #f1f4f8}
.inventory-entry-page .inventory-entry-footer :is(button,input,select){min-height:44px}
@media(min-width:768px){
 .inventory-entry-page .inventory-entry-table{width:max-content!important;min-width:1760px!important;table-layout:auto!important}
 .inventory-entry-page .inventory-entry-table :is(th,td){position:static!important;left:auto!important;right:auto!important}
 .inventory-entry-page .inventory-entry-table :is(th,td):nth-child(n+14){width:180px!important;min-width:180px!important}
 .inventory-entry-page .inventory-entry-table :is(input[type=date],input[class$="-lot"]){min-width:160px}
}
@media(max-width:767px){
 .inventory-entry-page .inventory-entry-form{grid-template-columns:minmax(0,1fr)!important;gap:16px!important}
 .inventory-entry-page .inventory-entry-form>label:is([class$="-summary"],[class$="-extra"]){grid-column:1!important}
 .inventory-entry-page select[class$="-product"]{min-width:0}
 .inventory-entry-page .inventory-entry-table td:has(input[type="date"]){grid-column:1/-1!important}
 .inventory-entry-page .inventory-entry-footer>div:last-child{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important}
}
}
