/* ── EDIT BOXES IN A GRID SHOW THEIR WHOLE VALUE (rochem-tasks#1180) ─────────────────────────────
   JJ, 2026-10-01: "never cut anything off." A box you type into is the worst place for it: you
   cannot see what you entered. The daily health check found 124 cut values on Complaint Log alone,
   and every Paid / Delivery / Approved date box on Shipped Sales Orders, C of A and Wire/Check.

   1. A single-line box sizes itself to its value (field-sizing: content), from 6 characters up to
      32. That covers every date, email, lot and part number in the app -- measured on staging, it
      takes Shipped Sales Orders and C of A from 45 and 42 cut values to none.
   2. A multi-line box grows to its content instead of hiding lines behind a scrollbar. The few
      free-text fields long enough to need more than 32 characters (Complaint Log's product and RCM
      list) are multi-line boxes for exactly this reason, so they wrap instead of clipping.

   Order Hold Release's Hold Memo keeps the two lines it was given on request. Screen-only, >=1100px,
   like every other grid rule. Its own file so it cannot collide with app.css edits in flight. */
@media screen and (min-width: 1100px) {
    tbody td:not([colspan]) .mud-input-control:not(.ohr-memo-field) input.mud-input-slot {
        field-sizing: content !important;
        min-width: 6ch !important;
        max-width: 32ch !important;
        width: auto !important;
    }
    tbody td:not([colspan]) .mud-input-control:not(.ohr-memo-field) {
        width: auto !important;
        max-width: none !important;
    }
    tbody td:not([colspan]) .mud-input-control:not(.ohr-memo-field) textarea.mud-input-slot {
        field-sizing: content !important;
        min-height: 1lh !important;
        height: auto !important;
        overflow: hidden !important;
        resize: none;
    }
}
