/* Screen-only readability. Preserve fonts, content, events and print layout. */
@media screen {
 html:is(html,#erp-pc-theme) body[data-ui-readability] :is(.track,.v53-tablewrap) tbody tr {transform:none!important;translate:none!important}
 html:is(html,#erp-pc-theme) body[data-ui-readability] :is(.track,.v53-tablewrap) table {box-sizing:border-box!important}
 /* BOM: let classification badges wrap inside proportional columns. */
 html[data-bom-browser]:is(html,#erp-pc-theme) body[data-ui-readability] .bomModelDetail>.track>table {min-width:0!important;width:100%!important}
 html[data-bom-browser]:is(html,#erp-pc-theme) body[data-ui-readability] .bomModelDetail>.track>table :is(th,td) {padding:8px 5px!important;overflow-wrap:anywhere!important;word-break:normal!important;white-space:normal!important;text-overflow:clip!important;height:auto!important}
 html[data-bom-browser]:is(html,#erp-pc-theme) body[data-ui-readability] .bomModelDetail>.track>table :is(.tag,.qbtn) {white-space:normal!important;overflow-wrap:anywhere!important;word-break:normal!important;max-width:100%!important;box-sizing:border-box!important;height:auto!important}
 html[data-bom-browser=smd]:is(html,#erp-pc-theme) body[data-ui-readability] .bomModelDetail>.track>table th:nth-child(3) {width:15%!important}
 html[data-bom-browser=assy]:is(html,#erp-pc-theme) body[data-ui-readability] .bomModelDetail>.track>table th:nth-child(4) {width:16%!important}
 html[data-bom-browser=assy]:is(html,#erp-pc-theme) body[data-ui-readability] .bomModelDetail>.track>table th:nth-child(6) {width:12%!important}
 html[data-bom-browser]:is(html,#erp-pc-theme) body[data-ui-readability] .prod-chip {min-width:0!important;align-items:flex-start!important;flex-wrap:wrap!important}
 html[data-bom-browser]:is(html,#erp-pc-theme) body[data-ui-readability] .prod-chip .nm {max-width:100%!important;white-space:normal!important;overflow-wrap:anywhere!important;overflow:visible!important;text-overflow:clip!important;flex:1 1 150px}
 html[data-bom-browser]:is(html,#erp-pc-theme) body[data-ui-readability] .prod-chip .meta {white-space:normal!important}
 /* Comparison summary: reserve separate lines for title, amount and dates. */
 html:is(html,#erp-pc-theme) body[data-ui-readability=stock_day] #kpis {display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important}
 html:is(html,#erp-pc-theme) body[data-ui-readability=stock_day] #kpis .kpi {display:grid!important;grid-template-columns:34px minmax(0,1fr)!important;gap:4px 10px!important;align-content:center!important;min-width:0!important}
 html:is(html,#erp-pc-theme) body[data-ui-readability=stock_day] #kpis .kpi::before {grid-column:1;grid-row:1 / span 3}
 html:is(html,#erp-pc-theme) body[data-ui-readability=stock_day] #kpis .kpi :is(.l,.v,.s) {grid-column:2;white-space:normal!important;word-break:normal!important;overflow-wrap:anywhere!important;margin:0!important}
 /* Supplier list: flexible widths rather than a 1150px minimum. */
 html:is(html,#erp-pc-theme) body[data-ui-readability=vendors] .v53-table {min-width:0!important;width:100%!important}
 html:is(html,#erp-pc-theme) body[data-ui-readability=vendors] .v53-table :is(th,td) {white-space:normal!important;overflow-wrap:anywhere!important;word-break:normal!important;text-overflow:clip!important;height:auto!important;padding:10px 6px!important}
 html:is(html,#erp-pc-theme) body[data-ui-readability=vendors] .v53-table th:nth-child(2) {width:11%!important}
 html:is(html,#erp-pc-theme) body[data-ui-readability=vendors] .v53-table th:nth-child(3) {width:17%!important}
 html:is(html,#erp-pc-theme) body[data-ui-readability=vendors] .v53-table th:nth-child(4) {width:18%!important}
 html:is(html,#erp-pc-theme) body[data-ui-readability=vendors] .v53-table th:nth-child(5) {width:25%!important}
 html:is(html,#erp-pc-theme) body[data-ui-readability=vendors] .v53-table th:nth-child(6) {width:6%!important}
 html:is(html,#erp-pc-theme) body[data-ui-readability=vendors] .v53-table th:nth-child(7) {width:54px!important}
 /* Purchasing: calculations and input controls remain in their original table. */
 html[data-order-workspace]:is(html,#erp-pc-theme) body[data-ui-readability] #orderWorkspace :is(#assyTbl,#smdTbl) .track>table {width:100%!important;min-width:0!important;table-layout:fixed!important}
 html[data-order-workspace]:is(html,#erp-pc-theme) body[data-ui-readability] #orderWorkspace :is(#assyTbl,#smdTbl) .track :is(th,td) {min-width:0!important;width:auto!important;padding:8px 4px!important;white-space:normal!important;word-break:normal!important;overflow-wrap:anywhere!important;text-overflow:clip!important;height:auto!important}
 html[data-order-workspace]:is(html,#erp-pc-theme) body[data-ui-readability] #orderWorkspace :is(#assyTbl,#smdTbl) .track th.cNo {width:4%!important}
 html[data-order-workspace]:is(html,#erp-pc-theme) body[data-ui-readability] #orderWorkspace :is(#assyTbl,#smdTbl) .track :is(th.cPart,th.cSpec) {width:18%!important}
 html[data-order-workspace]:is(html,#erp-pc-theme) body[data-ui-readability] #orderWorkspace :is(#assyTbl,#smdTbl) .track :is(input,button,.tag) {box-sizing:border-box!important;min-width:0!important;max-width:100%!important;white-space:normal!important;overflow-wrap:anywhere!important;height:auto!important}
 /* Outgoing list ends at delivery site; remaining details stay in quick view and exports. */
 html:is(html,#erp-pc-theme) body[data-ui-readability=inout]:not([data-inout-mode=in]) .inout-history .track>table {min-width:0!important;width:100%!important;table-layout:fixed!important}
 html:is(html,#erp-pc-theme) body[data-ui-readability=inout]:not([data-inout-mode=in]) .inout-history :is(th,td) {min-width:0!important;width:auto!important;white-space:normal!important;word-break:normal!important;overflow-wrap:anywhere!important;text-overflow:clip!important;height:auto!important;padding:9px 4px!important}
 html:is(html,#erp-pc-theme) body[data-ui-readability=inout]:not([data-inout-mode=in]) .inout-history :is(.history-model-btn,.tag,.prod-group-model) {min-width:0!important;max-width:100%!important;white-space:normal!important;word-break:normal!important;overflow-wrap:anywhere!important;text-overflow:clip!important;height:auto!important}
 html:is(html,#erp-pc-theme) body[data-ui-readability=inout][data-inout-mode=out] .inout-history th:nth-child(1) {width:3%!important}
 html:is(html,#erp-pc-theme) body[data-ui-readability=inout][data-inout-mode=out] .inout-history th:nth-child(2) {width:9%!important}
 html:is(html,#erp-pc-theme) body[data-ui-readability=inout][data-inout-mode=out] .inout-history th:nth-child(3) {width:5%!important}
 html:is(html,#erp-pc-theme) body[data-ui-readability=inout][data-inout-mode=out] .inout-history th:nth-child(4) {width:8%!important}
 html:is(html,#erp-pc-theme) body[data-ui-readability=inout][data-inout-mode=out] .inout-history th:nth-child(5),
 html:is(html,#erp-pc-theme) body[data-ui-readability=inout][data-inout-mode=out] .inout-history th:nth-child(6) {width:19%!important}
 html:is(html,#erp-pc-theme) body[data-ui-readability=inout][data-inout-mode=out] .inout-history th:nth-child(7) {width:7%!important}
 html:is(html,#erp-pc-theme) body[data-ui-readability=inout][data-inout-mode=out] .inout-history th:nth-child(8),
 html:is(html,#erp-pc-theme) body[data-ui-readability=inout][data-inout-mode=out] .inout-history th:nth-child(9) {width:15%!important}
 html:is(html,#erp-pc-theme) body[data-ui-readability=inout][data-inout-mode=out] .inout-history thead tr>th:nth-child(n+10),
 html:is(html,#erp-pc-theme) body[data-ui-readability=inout][data-inout-mode=out] .inout-history tr[data-rid]>td:nth-child(n+10) {display:none!important}
 html:is(html,#erp-pc-theme) body[data-ui-readability=inout]:not([data-inout-mode=in]) .inout-history .prod-group-main {flex-wrap:wrap!important}
}
@media screen and (max-width:1400px) {
 html:is(html,#erp-pc-theme) body[data-ui-readability=stock_day] #kpis {grid-template-columns:repeat(2,minmax(0,1fr))!important}
 html[data-order-workspace]:is(html,#erp-pc-theme) body[data-ui-readability] #orderWorkspace .order-stage {grid-template-columns:minmax(0,1fr)!important}
}

@media screen {
 html:is([data-inbound-list],[data-outbound-list]):is(html,#erp-pc-theme) body.inout-page[data-ui-readability=inout]:not([data-inout-mode=in]) .inout-history tr[data-rid]>td,
 html:is(html,#erp-pc-theme) body.inout-page[data-ui-readability=inout]:not([data-inout-mode=in]) .inout-history tr[data-rid]>td {
 white-space:normal!important;word-break:normal!important;overflow-wrap:anywhere!important;text-overflow:clip!important;height:auto!important;
 }
}
@media screen and (max-width:1400px) {
 html:is(html,#erp-pc-theme) body.inout-page[data-ui-readability=inout][data-inout-mode=out] .outbound-history-layout {grid-template-columns:minmax(0,1fr)!important}
}

@media screen {
 html[data-bom-browser]:is(html,#erp-pc-theme) body[data-ui-readability] .prod-list {flex-wrap:wrap!important;overflow-x:visible!important;align-items:stretch!important}
 html[data-bom-browser]:is(html,#erp-pc-theme) body[data-ui-readability] .prod-chip {flex:1 1 200px!important;max-width:100%!important}
 html[data-bom-browser=assy]:is(html,#erp-pc-theme) body[data-ui-readability] .bomModelDetail>.track>table th:nth-child(3) {width:11%!important}
 html:is(html,#erp-pc-theme) body[data-ui-readability=inout][data-inout-mode=prd] .inout-history th:nth-child(1) {width:3%!important}
 html:is(html,#erp-pc-theme) body[data-ui-readability=inout][data-inout-mode=prd] .inout-history th:nth-child(2) {width:9%!important}
 html:is(html,#erp-pc-theme) body[data-ui-readability=inout][data-inout-mode=prd] .inout-history th:nth-child(3) {width:5%!important}
 html:is(html,#erp-pc-theme) body[data-ui-readability=inout][data-inout-mode=prd] .inout-history th:nth-child(4) {width:6%!important}
 html:is(html,#erp-pc-theme) body[data-ui-readability=inout][data-inout-mode=prd] .inout-history th:nth-child(5) {width:20%!important}
 html:is(html,#erp-pc-theme) body[data-ui-readability=inout][data-inout-mode=prd] .inout-history th:nth-child(6) {width:6%!important}
 html:is(html,#erp-pc-theme) body[data-ui-readability=inout][data-inout-mode=prd] .inout-history th:nth-child(7) {width:16%!important}
 html:is(html,#erp-pc-theme) body[data-ui-readability=inout][data-inout-mode=prd] .inout-history th:nth-child(n+8) {width:5.8%!important}
}

@media screen {
 html:is(html,#erp-pc-theme) body[data-ui-readability=po] .el-combo:has(>#fKind) {width:190px!important;min-width:190px!important;max-width:100%!important}
}

@media screen {
 html[data-order-workspace]:is(html,#erp-pc-theme) body[data-ui-readability] #orderWorkspace #smdTbl .order-quantity-field {display:flex!important;flex-wrap:wrap!important;max-width:100%!important;min-width:0!important;justify-content:center!important}
 html[data-order-workspace]:is(html,#erp-pc-theme) body[data-ui-readability] #orderWorkspace #smdTbl .order-quantity-field input {max-width:100%!important;min-width:0!important;box-sizing:border-box!important}
 html[data-order-workspace]:is(html,#erp-pc-theme) body[data-ui-readability] #orderWorkspace #smdTbl .track th:nth-child(1) {width:4%!important}
 html[data-order-workspace]:is(html,#erp-pc-theme) body[data-ui-readability] #orderWorkspace #smdTbl .track th:nth-child(2) {width:13%!important}
 html[data-order-workspace]:is(html,#erp-pc-theme) body[data-ui-readability] #orderWorkspace #smdTbl .track th:nth-child(3) {width:10%!important}
 html[data-order-workspace]:is(html,#erp-pc-theme) body[data-ui-readability] #orderWorkspace #smdTbl .track th:nth-child(4) {width:12%!important}
 html[data-order-workspace]:is(html,#erp-pc-theme) body[data-ui-readability] #orderWorkspace #smdTbl .track th:nth-child(5) {width:6%!important}
 html[data-order-workspace]:is(html,#erp-pc-theme) body[data-ui-readability] #orderWorkspace #smdTbl .track th:nth-child(6) {width:6%!important}
 html[data-order-workspace]:is(html,#erp-pc-theme) body[data-ui-readability] #orderWorkspace #smdTbl .track th:nth-child(7) {width:6%!important}
 html[data-order-workspace]:is(html,#erp-pc-theme) body[data-ui-readability] #orderWorkspace #smdTbl .track th:nth-child(8) {width:10%!important}
 html[data-order-workspace]:is(html,#erp-pc-theme) body[data-ui-readability] #orderWorkspace #smdTbl .track th:nth-child(9) {width:6%!important}
 html[data-order-workspace]:is(html,#erp-pc-theme) body[data-ui-readability] #orderWorkspace #smdTbl .track th:nth-child(10) {width:7%!important}
 html[data-order-workspace]:is(html,#erp-pc-theme) body[data-ui-readability] #orderWorkspace #smdTbl .track th:nth-child(11) {width:8%!important}
 html[data-order-workspace]:is(html,#erp-pc-theme) body[data-ui-readability] #orderWorkspace #smdTbl .track th:nth-child(12) {width:6%!important}
 html[data-order-workspace]:is(html,#erp-pc-theme) body[data-ui-readability] #orderWorkspace #smdTbl .track th:nth-child(13) {width:6%!important}
}
