.production-profile { margin: 16px 0; padding: 16px; }
.production-profile > summary { cursor: pointer; font-weight: 750; }
.production-tools {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 10px 14px;
  margin: 12px 0;
}
.production-tools label:not(.factory-check) { display: grid; gap: 4px; max-width: min(100%, 270px); }
.production-tools input:not([type="checkbox"]) { max-width: 100%; min-width: 0; }
.production-candidates { display: flex; flex-wrap: wrap; gap: 6px; }
.production-candidates button { max-width: 100%; white-space: normal; }
.production-profile h4 { margin: 16px 0 6px; }
.production-profile-dialog { width: min(760px, calc(100vw - 36px)); }
.product-profile-group { display: grid; gap: 10px; min-width: 0; margin: 0; padding: 10px 14px 14px; border: 1px solid var(--line); border-radius: var(--radius); }
.product-profile-group legend { padding: 0 6px; font-weight: 700; }
.product-profile-group input[readonly] { background: var(--surface-2); color: var(--muted); }
.production-profile-dialog .grid2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); }
.production-profile-dialog input:not([type="checkbox"]),
.production-profile-dialog select { width: 100%; min-width: 0; }
.production-preview { max-height: 260px; overflow: auto; padding-left: 24px; }
.production-preview li { margin: 5px 0; overflow-wrap: anywhere; }
.order-assembly-grid { display: grid; gap: 8px; }
.order-assembly-line { display: flex; flex-wrap: wrap; align-items: end; gap: 8px 14px; }
.order-assembly-line label { display: grid; gap: 4px; }
.order-assembly-line input { width: 110px; }
.factory-fees, .factory-usage { min-width: 0; margin: 0; border: 1px solid var(--line); border-radius: var(--radius); }
.factory-fee-options, .factory-usage-lines { display: grid; gap: 6px; }
.factory-fee-row { display: flex; align-items: center; gap: 8px; }
.factory-fee-row input[type="number"] { margin-left: auto; width: 130px; }
.factory-usage-item { display: grid; gap: 4px; padding: 6px 0; }
.factory-usage-item > div { display: flex; flex-wrap: wrap; align-items: end; gap: 6px; }
.factory-usage-item label { display: grid; gap: 3px; }
.factory-usage-item input { width: 105px; }

[data-procurement-panel] .production-tools input[type="date"] { width: 148px; }
[data-procurement-panel] .production-tools select { width: 180px; max-width: 100%; }
[data-procurement-rows] td.wrap { min-width: 145px; }
