.production-flat-table th.flat-actions { position: sticky !important; top: 0 !important; right: 0 !important; z-index: 6 !important; padding-right: 36px !important; background: #eaf2f9; }
.production-flat-table th.flat-actions .table-expand-button {
  position: absolute !important; right: 5px; top: 50%; transform: translateY(-50%) !important;
  display: inline-flex; align-items: center; justify-content: center;
  width: 27px !important; min-width: 27px; height: 27px; min-height: 27px;
  padding: 4px; margin: 0; border: 1px solid #c5d7e9; border-radius: 6px;
  background: #fff; color: #285e91; cursor: pointer;
}
.table-expand-button svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
body.production-table-expanded { overflow: hidden !important; }
body.production-table-expanded #orders-list .production-flat-scroll {
  position: fixed !important; inset: 0 !important; z-index: 1000;
  width: 100vw !important; height: 100dvh !important; max-height: none !important;
  margin: 0 !important; border: 0 !important; border-radius: 0 !important;
  overflow: auto !important; background: #fff;
}
body.production-table-expanded .production-flat-table { margin: 0 !important; }
body.production-table-expanded .production-flat-table thead th { position: sticky; top: 0 !important; z-index: 2; }
body.production-table-expanded .production-flat-table th.flat-number { z-index: 5; }

@media(max-width:800px),(max-width:1000px) and (pointer:coarse){
 #orders-list .production-flat-table th.flat-actions,#orders-list .production-flat-table td.flat-actions,#orders-list .production-flat-table colgroup col:last-child{display:none!important;width:0!important;min-width:0!important;padding:0!important}
}
