/* V9.76 — mobile-only readability fix for the V9.75 native REPD capacity reports.
   Original REPD/SCADA colours, all desktop styles and source data remain untouched.
   The normal REPD project table is deliberately NOT selected here.
*/
#repdReportSwipeHint{display:none}
@media (max-width:768px){
  /* Native status and operator/region filters are bounded to the phone viewport. */
  #repdPanel #repdNativeFilters{
    display:grid;grid-template-columns:repeat(2,minmax(0,1fr));
    gap:7px;min-width:0;max-width:100%;overflow:visible;
  }
  #repdPanel #repdNativeFilters > label{
    display:flex;flex-direction:column;gap:4px;min-width:0;
    color:var(--muted);font-size:10px;line-height:1.25;
  }
  #repdPanel #repdNativeFilters > label:first-child{grid-column:1/-1}
  #repdPanel #repdNativeFilters > label > select{
    box-sizing:border-box;width:100%!important;min-width:0!important;
    max-width:100%!important;min-height:40px;overflow:hidden;
    text-overflow:ellipsis;
  }
  /* The official status buttons never create an orphaned second row. */
  #repdPanel #status.filters{
    display:flex;flex-wrap:nowrap!important;gap:6px;
    width:100%;max-width:100%;overflow-x:auto;overflow-y:hidden;
    overscroll-behavior-x:contain;scroll-snap-type:x proximity;
    -webkit-overflow-scrolling:touch;padding:0 0 7px;margin-bottom:8px;
  }
  #repdPanel #status.filters > button{
    flex:0 0 auto;min-height:39px;white-space:nowrap;
    scroll-snap-align:start;
  }
  #repdPanel #repdReportsPanel{box-sizing:border-box;max-width:100%;min-width:0;overflow:hidden}
  #repdPanel #repdReportsBody{
    max-width:100%;min-width:0;
    overflow-x:hidden;overflow-y:auto;
  }
  #repdReportSwipeHint{
    display:block;margin:7px 0 5px;color:var(--muted);
    font:700 10px/1.35 "Courier New",monospace;
    letter-spacing:.25px;
  }
  /* Original table colours stay inherited; only the report's column geometry changes.
     Override the global #repdPanel .tablewrap table{min-width:0!important;table-layout:fixed}
     and #repdPanel .tablewrap td{overflow-wrap:anywhere} that crushed digits in V9.75.
  */
  #repdPanel #repdReportsBody > .tablewrap{
    display:block;box-sizing:border-box;width:100%;max-width:100%;
    min-width:0;max-height:none!important;
    overflow-x:auto!important;overflow-y:auto!important;
    overscroll-behavior-x:contain;
    -webkit-overflow-scrolling:touch;
    touch-action:pan-x pan-y;
    scrollbar-width:thin;
  }
  #repdPanel #repdReportsBody .repd-native-report-table{
    width:760px!important;min-width:760px!important;max-width:none!important;
    table-layout:fixed!important;
  }
  #repdPanel #repdReportsBody .repd-native-report-table :is(th,td){
    box-sizing:border-box;
    padding:8px 9px;
    white-space:nowrap!important;overflow-wrap:normal!important;
    word-break:normal!important;
    line-height:1.3;
    font-variant-numeric:tabular-nums;
    vertical-align:middle;
  }
  /* Sticky group name retains the lookup identity as capacities scroll past. */
  #repdPanel #repdReportsBody .repd-native-report-table :is(th,td):first-child{
    box-sizing:border-box;width:230px!important;min-width:230px!important;max-width:230px!important;
    position:sticky;left:0;z-index:6;
    background:var(--panel);
  }
  #repdPanel #repdReportsBody .repd-native-report-table th:first-child{
    background:#050505;z-index:9;
  }
  #repdPanel #repdReportsBody .repd-native-report-table :is(th,td):nth-child(2){width:88px!important}
  #repdPanel #repdReportsBody .repd-native-report-table :is(th,td):nth-child(3){width:125px!important}
  #repdPanel #repdReportsBody .repd-native-report-table :is(th,td):nth-child(4){width:112px!important}
  #repdPanel #repdReportsBody .repd-native-report-table :is(th,td):nth-child(5){width:205px!important;min-width:205px!important;max-width:205px!important}
  #repdPanel #repdReportsBody .repd-native-report-table td:first-child button{
    display:block;max-width:100%;width:100%;
    min-width:0;min-height:40px;text-align:left;
    white-space:normal!important;overflow-wrap:break-word!important;word-break:normal!important;
    font-size:11px;line-height:1.25;
  }
}
