/* Roomy order entry and picking: stack controls instead of shrinking them. */
.product-add-form { display: grid; grid-template-columns: minmax(0,1fr) 110px auto; align-items: start; gap: 16px; }
.product-add-form > .btn { margin-top: 28px; min-height: 46px; }
.product-combobox { position: relative; min-width: 0; }
#picker.panel { overflow: visible; }
.product-combobox .input { min-height: 46px; width: 100%; }
.product-dropdown { position: absolute; left: 0; right: 0; top: 76px; z-index: 15; max-height: 320px; overflow-y: auto; background: white; border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 8px 24px #16211b22; }
.product-option { display: grid; gap: 4px; text-align: left; width: 100%; padding: 14px 16px; border: 0; border-bottom: 1px solid var(--line); background: white; color: var(--ink); font: inherit; cursor: pointer; }
.product-option span { font-size: 13px; color: var(--ink-soft); }
.product-option:hover, .product-option:focus-visible, .product-option.is-highlighted { background: var(--ok-bg); }
.product-no-results { padding: 14px; font-size: 14px; }
.product-group-heading { padding: 10px 16px; background: var(--surface-sunken); color: var(--ink-soft); font-size: 13px; font-weight: 700; border-bottom: 1px solid var(--line); }
.product-subcategory-heading th { background: var(--surface-sunken); color: var(--ink-soft); font-weight: 700; text-align: left; }
.weight-entry-choice { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 16px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); }
.weight-entry-choice .btn { flex-shrink: 0; min-height: 48px; }
dialog.num-pad-host { max-height: calc(100dvh - var(--num-pad-height, 320px) - 24px); margin-top: 12px; margin-bottom: calc(var(--num-pad-height, 320px) + 12px); overflow-y: auto; }
.item-card[data-pick-mode="MANUAL"] .item-hand { display: none; }
@media (max-width: 1100px) {
  .builder-head { grid-template-columns: 1fr; }
  .product-add-form { grid-template-columns: minmax(0,1fr) 130px; }
  .product-add-form > .btn { grid-column: 1/-1; margin-top: 0; }
  .item-controls { grid-template-columns: 1fr; }
  .item-hand-fields { grid-template-columns: minmax(0,1fr) minmax(0,1fr); }
  .item-hand-do { grid-column: 1/-1; }
  .item-hand-do .btn { width: 100%; min-height: 48px; }
  .item-figures { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 18px; }
  .weight-entry-choice { align-items: stretch; flex-direction: column; }
  .weight-entry-choice .btn { align-self: flex-start; }
  .builder-main .data-table { min-width: 0; }
  .builder-main .data-table thead { display: none; }
  .builder-main .data-table tbody { display: block; }
  .builder-main .data-table tr { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; margin: 16px; padding: 16px; border: 1px solid var(--line); border-radius: 8px; }
  .builder-main .data-table th, .builder-main .data-table td { display: block; border: 0; padding: 0; text-align: left; }
  .builder-main .data-table th { grid-column: 1/-1; }
  .builder-main .data-table .visually-hidden { position: static; width: auto; height: auto; clip: auto; clip-path: none; display: block; margin-bottom: 6px; }
  .builder-main .cell-input { width: 100%; min-height: 46px; }
  .content .input, .content .select, .pick-page .input { font-size: 16px; min-height: 44px; }
  .detail-grid { grid-template-columns: 1fr; }
}
@media (max-width: 540px) {
  .product-add-form { grid-template-columns: 1fr; }
  .item-hand-fields { grid-template-columns: 1fr; }
  .product-dropdown { max-height: 240px; }
}
