.inventory-toolbar input:first-child { min-width: 310px; }
.inventory-table { min-width: 1900px; }
.inventory-table th { white-space: nowrap; top: 0; }
.inventory-table td:last-child { min-width: 430px; }
.inventory-table td:nth-child(3) { min-width: 175px; }
.inventory-table input[type="checkbox"] { width: 17px; height: 17px; }
.inventory-form { grid-template-columns: repeat(3,minmax(0,1fr)); }
.inventory-form .wide { grid-column: span 3; }
.rems-ready { display:grid; gap:5px; padding:12px; border:1px dashed #8bb9b6; border-radius:10px; background:#f4fbfa; color:var(--muted); font-size:11px; }
.rems-ready strong { color:var(--teal-dark); }
.history-preview { max-height:220px; overflow:auto; white-space:pre-wrap; background:#edf2f6; border-radius:8px; padding:10px; font-size:10px; }
.badge.temporarily.suspended,.badge.hold,.badge.blocked { background:#fff1d9; color:#8b5700; }
.badge.reserved { background:#e8f0ff; color:#2456a4; }
.badge.available { background:#e5f7ee; color:#087443; }
.badge.archived,.badge.sold { background:#f1f1f1; color:#666; }
details pre { max-width:520px; max-height:240px; overflow:auto; white-space:pre-wrap; font-size:10px; }

@media(max-width:1100px){
  .inventory-form { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .inventory-form .wide { grid-column: span 2; }
}
@media(max-width:700px){
  .inventory-form { grid-template-columns:1fr; }
  .inventory-form .wide { grid-column:span 1; }
  .inventory-toolbar input:first-child { min-width:100%; }
}
.inventory-reference-link{display:block;margin-top:7px;color:#075985;font-weight:700;text-decoration:underline;overflow-wrap:anywhere}
