/* Phone production review, 2026-10-23: preserve the existing operational DOM. */
@media(max-width:760px), (max-width:1100px) and (pointer:coarse) {
  /* The phone table adapter uses natural height, so its parent must do so too. */
  html[data-paper] body.mobile-enhanced .main #view#view#view #pdContent .mo-list-view {
    height:auto!important;
    min-height:0!important;
    max-height:none!important;
    overflow:visible!important;
  }
  html[data-paper] body.mobile-enhanced .main #view#view#view #pdContent .mo-list-view > .pd-table-wrap {
    height:auto!important;
    flex:0 0 auto!important;
    min-height:0!important;
    max-height:65dvh!important;
    overflow:auto!important;
  }
  /* OD-MES has 96 editable wells: preserve usable inputs and scroll all 12 columns. */
  html[data-paper] body.mobile-enhanced .main #view#view#view #pdContent .v4.v5.v6 .v4-well-grid {
    grid-template-columns:26px repeat(12,64px)!important;
    width:100%!important;
    min-width:0!important;
    max-width:100%!important;
    overflow-x:auto!important;
    -webkit-overflow-scrolling:touch;
  }
  html[data-paper] body.mobile-enhanced .main #view#view#view .so-page #soBody > .so-foot {
    grid-template-columns:minmax(0,1fr)!important;
    gap:4px!important;
  }
  /* The generic phone table auto layout otherwise squeezes this prose column. */
  html[data-paper] body.mobile-enhanced .main #view#view#view .ho-table :is(th,td,col).ho-col-content {
    min-width:260px!important;
    width:260px!important;
    white-space:normal!important;
  }
  html[data-paper] body.mobile-enhanced .main #view#view#view .ho-content-main {
    min-width:240px!important;
    white-space:normal!important;
  }
  /* These forms are anonymous legacy grids; :has limits the override to them. */
  html body.mobile-enhanced #modal#modal #modalBody#modalBody > div:has(> label > #couMg) {
    grid-template-columns:minmax(0,1fr)!important;
  }
  html body.mobile-enhanced #modal#modal #modalBody#modalBody > div:has(> label > #couMg) > label {
    min-width:0!important;
    grid-column:1/-1!important;
  }
  /* The import preview has four columns, below the generic table adapter cutoff. */
  html body.mobile-enhanced #modal#modal #modalBody#modalBody div:has(> table > thead > tr > th:nth-child(4):last-child):not(.mobile-table-scroll) {
    max-width:100%!important;
    overflow:auto!important;
  }
}
