
/* R250: compact only the ten-column desktop production table. */
@media (min-width: 900px) {
  .table-wrap.desktop-only:has(+ .production-grid.mobile-only) {
    width:100%; max-width:100%; min-width:0;
  }
  .table-wrap.desktop-only:has(+ .production-grid.mobile-only) table {
    width:100%!important; min-width:0!important; max-width:100%;
    table-layout:fixed!important;
  }
  .table-wrap.desktop-only:has(+ .production-grid.mobile-only) :is(th,td) {
    min-width:0!important; max-width:none!important;
    padding:5px 4px!important; vertical-align:middle;
    white-space:normal!important; overflow-wrap:anywhere;
    line-height:1.3; font-size:11px;
  }
  .table-wrap.desktop-only:has(+ .production-grid.mobile-only) th {font-size:10px}
  .table-wrap.desktop-only:has(+ .production-grid.mobile-only) :is(th,td):nth-child(1) {width:17%}
  .table-wrap.desktop-only:has(+ .production-grid.mobile-only) :is(th,td):nth-child(2) {width:18%}
  .table-wrap.desktop-only:has(+ .production-grid.mobile-only) :is(th,td):nth-child(3) {width:8%}
  .table-wrap.desktop-only:has(+ .production-grid.mobile-only) :is(th,td):nth-child(4) {width:5%}
  .table-wrap.desktop-only:has(+ .production-grid.mobile-only) :is(th,td):nth-child(5) {width:6%}
  .table-wrap.desktop-only:has(+ .production-grid.mobile-only) :is(th,td):nth-child(6) {width:7%}
  .table-wrap.desktop-only:has(+ .production-grid.mobile-only) :is(th,td):nth-child(7) {width:7%}
  .table-wrap.desktop-only:has(+ .production-grid.mobile-only) :is(th,td):nth-child(8) {width:9%}
  .table-wrap.desktop-only:has(+ .production-grid.mobile-only) :is(th,td):nth-child(9) {width:9%}
  .table-wrap.desktop-only:has(+ .production-grid.mobile-only) :is(th,td):nth-child(10) {width:14%}
  .table-wrap.desktop-only:has(+ .production-grid.mobile-only) td :is(b,small,.table-primary,.status-note,.badge,.order-control-link) {
    min-width:0!important; max-width:100%; white-space:normal!important;
    overflow-wrap:anywhere; font-size:inherit; line-height:1.3;
  }
  .table-wrap.desktop-only:has(+ .production-grid.mobile-only) td small {font-size:10px; margin-top:2px!important}
  .table-wrap.desktop-only:has(+ .production-grid.mobile-only) td .table-primary {margin-bottom:2px!important}
  .table-wrap.desktop-only:has(+ .production-grid.mobile-only) .table-actions {
    display:flex!important; flex-direction:row!important; flex-wrap:wrap!important;
    justify-content:center; align-items:center; gap:3px!important; min-width:0!important;
  }
  .table-wrap.desktop-only:has(+ .production-grid.mobile-only) .table-actions :is(button,a) {
    padding:4px 6px!important; min-height:25px!important; min-width:0!important;
    max-width:100%; font-size:10px!important; line-height:1.25;
    white-space:normal!important;
  }
  .table-wrap.desktop-only:has(+ .production-grid.mobile-only) .table-actions .status-note {
    flex-basis:100%; text-align:center; font-size:9px;
  }
  .table-wrap.desktop-only:has(+ .production-grid.mobile-only) .quantity-pill {
    min-width:24px!important; min-height:23px!important; font-size:11px;
  }
  .table-wrap.desktop-only:has(+ .production-grid.mobile-only) .badge {
    padding:3px 5px!important; min-height:0!important;
  }
}

@media (min-width: 900px) {
 .table-wrap.desktop-only:has(+ .production-grid.mobile-only) .table-actions {display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));gap:2px!important}
 .table-wrap.desktop-only:has(+ .production-grid.mobile-only) .table-actions .status-note {grid-column:1/-1;order:2;margin:0!important;padding:0!important;min-height:0!important;line-height:1.2!important}
 .table-wrap.desktop-only:has(+ .production-grid.mobile-only) .table-actions :is(a,button) {width:100%!important;margin:0!important;padding:3px!important}
 .table-wrap.desktop-only:has(+ .production-grid.mobile-only) td:first-child small {line-height:1.15!important}
}
