/* One table owns its header and rows, including both scroll directions. */
:is(.table-scroll,.material-search-scroll){max-width:100%;min-width:0;overflow:auto;scrollbar-gutter:stable}
:is(.table-scroll,.material-search-scroll)>table{width:100%;border-collapse:collapse}
:is(.table-scroll,.material-search-scroll) th,
:is(.table-scroll,.material-search-scroll) td,
:is(.table-scroll,.material-search-scroll) :is(th,td).num{text-align:center;vertical-align:middle;padding-inline:12px;box-sizing:border-box}
:is(.table-scroll,.material-search-scroll) thead{position:sticky;top:0;z-index:1}
:is(.table-scroll,.material-search-scroll) th{white-space:nowrap}
:is(.table-scroll,.material-search-scroll) td :is(input:not([type=checkbox]):not([type=radio]),select,textarea){text-align:center}
:is(.table-scroll,.material-search-scroll) td :is(.actions,.site-choice){justify-content:center}
.material-entry-wrapper{--material-columns:40px 150px 260px 145px 85px 90px 180px 50px;--material-min-width:1100px}
.material-entry-wrapper.material-priced{--material-columns:40px 150px 260px 145px 85px 90px 115px 115px 180px 50px;--material-min-width:1330px}
.material-entry-wrapper.material-purchase{--material-columns:40px 250px 170px 140px 100px 90px 115px 115px 180px 55px;--material-min-width:1255px}
.material-entry-wrapper.material-receipt{--material-columns:40px 250px 190px 150px 85px 100px 120px 120px;--material-min-width:1155px}
.material-entry-wrapper.material-receipt:has(.material-grid-head>div:nth-child(9)){--material-columns:36px minmax(240px,2fr) minmax(170px,1.4fr) minmax(130px,1fr) 80px 90px 120px 120px 55px;--material-min-width:1175px}
.material-entry-wrapper.material-actual{--material-columns:40px 140px 240px 170px 90px 120px 120px;--material-min-width:1020px}
.material-entry-wrapper :is(.material-grid-head,.material-edit-row){grid-template-columns:var(--material-columns);min-width:var(--material-min-width);width:100%;text-align:center;box-sizing:border-box}
.material-entry-wrapper .material-edit-row{border-inline:0;border-radius:0;box-shadow:none}
.material-entry-wrapper .material-edit-row :is(input,select,textarea){text-align:center!important}
.material-picker-scroll{overflow:auto;scrollbar-gutter:stable}
.material-picker-scroll .material-picker-head{position:sticky;top:0;z-index:1}
.material-picker-scroll .material-picker-results{max-height:none;overflow:visible}
.receipt-correction-head,.receipt-correction-row{text-align:center;box-sizing:border-box;grid-template-columns:minmax(205px,2fr) 110px 120px 125px minmax(140px,1.3fr) 56px}
.receipt-correction-row :is(input,select){text-align:center!important;min-width:0;width:100%;box-sizing:border-box}
.inventory-compare-head,.inventory-compare-row{text-align:center;box-sizing:border-box}
.inventory-compare-head{border:1px solid transparent;border-bottom:0}
.inventory-compare-value{position:relative;grid-template-columns:minmax(0,1fr);text-align:center}
.inventory-compare-value::before{position:absolute;left:0;top:0}
.inventory-compare-value small{grid-column:1}
.inventory-compare-plan input{display:block;margin-inline:auto}
.photo-panel>.panel-header{flex-wrap:wrap;gap:10px}
@media print{.table-scroll,.material-search-scroll{overflow:visible;max-height:none;scrollbar-gutter:auto}}
