/* Only recovery orders: keep header and actions stable; scroll line items. */
.modal-card:has(.recycle-header-grid) #modal-body {
  display:flex!important; min-height:0; overflow:hidden!important; padding:10px 14px;
}
.modal-card:has(.recycle-header-grid) .trade-order-form {
  flex:1; height:100%; min-height:0!important; overflow:hidden; gap:8px;
}
.modal-card:has(.recycle-header-grid) .trade-order-heading,
.modal-card:has(.recycle-header-grid) .form-grid,
.modal-card:has(.recycle-header-grid) .trade-sheet-bottom { flex:0 0 auto; margin:0; }
.modal-card:has(.recycle-header-grid) .trade-order-heading { padding:7px 10px; }
.modal-card:has(.recycle-header-grid) .form-grid { padding:8px; row-gap:6px; }
.modal-card:has(.recycle-header-grid) .order-items {
  display:flex; flex-direction:column; flex:1; min-height:0!important; overflow:hidden; margin:0;
}
.modal-card:has(.recycle-header-grid) .order-items>.toolbar { flex:0 0 auto; padding:6px 8px; margin:0; }
.recycle-items-scroll { flex:1; min-height:0; overflow-y:auto; overflow-x:hidden; }
.modal-card:has(.recycle-header-grid) .order-items table { width:100%; min-width:0; table-layout:fixed; }
.modal-card:has(.recycle-header-grid) .order-items :is(th,td) {
  min-width:0!important; padding:4px!important; line-height:20px; height:auto!important;
  text-align:center; vertical-align:middle;
}
.modal-card:has(.recycle-header-grid) .order-items th { position:sticky; top:0; z-index:1; }
.modal-card:has(.recycle-header-grid) .order-items :is(input,select,button) { height:28px; min-width:0; padding:3px 5px; }
.modal-card:has(.recycle-header-grid) .order-items th:nth-child(1) { width:7%; }
.modal-card:has(.recycle-header-grid) .order-items th:nth-child(2) { width:11%; }
.modal-card:has(.recycle-header-grid) .order-items th:nth-child(3) { width:12%; }
.modal-card:has(.recycle-header-grid) .order-items th:nth-child(4) { width:4%; }
.modal-card:has(.recycle-header-grid) .order-items th:nth-child(5) { width:4%; }
.modal-card:has(.recycle-header-grid) .order-items th:nth-child(6) { width:8%; }
.modal-card:has(.recycle-header-grid) .order-items th:nth-child(7) { width:7%; }
.modal-card:has(.recycle-header-grid) .order-items th:nth-child(8) { width:15%; }
.modal-card:has(.recycle-header-grid) .order-items th:nth-child(9) { width:9%; }
.modal-card:has(.recycle-header-grid) .order-items th:nth-child(10) { width:54px; }
.modal-card:has(.recycle-header-grid) .order-items th:nth-child(11) { width:6%; }
.modal-card:has(.recycle-header-grid) .order-items td:nth-child(10)>button {
  display:inline-flex; align-items:center; justify-content:center; margin:0 auto;
}
.modal-card:has(.recycle-header-grid) .trade-footer { margin-top:6px; padding-top:6px; }
