.production-strip { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 13px 15px; border: 1px solid var(--line); border-radius: 6px; background: var(--panel); }
.production-description { display: grid; gap: 2px; min-width: 0; }
.production-description strong { overflow-wrap: anywhere; font-size: 14px; }
.production-description > span { color: var(--muted); font-size: 12px; }
.production-actions { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 6px; flex-shrink: 0; }
.production-actions .button { min-height: 34px; font-size: 12px; padding-inline: 10px; }
.production-status { min-height: 18px; margin: 4px 2px 12px; color: var(--muted); font-size: 12px; }
.production-status[data-pending] { color: var(--orange); font-weight: 650; }
.production-status:empty { min-height: 0; margin-bottom: 12px; }
.production-run-list, .stock-library-list { display: grid; gap: 9px; }
.production-run-row, .stock-library-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; border-bottom: 1px solid var(--line); padding: 9px 0; min-width: 0; }
.production-run-row > div, .stock-library-row > div { min-width: 0; }
.production-run-row strong, .stock-library-row strong { overflow-wrap: anywhere; }
.production-run-row p, .stock-library-row p { margin: 3px 0 0; font-size: 12px; color: var(--muted); }
.production-consumption { font-size: 13px; }
.production-consumption li + li { margin-top: 6px; }
.stock-library-row { display: block; }
.stock-library-actions { display: flex; align-items: end; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.stock-library-actions .production-field { width: 115px; }
.production-field { display: grid; gap: 4px; min-width: 0; font-size: 12px; }
.production-field input, .production-field select { width: 100%; min-width: 0; }
.stock-library-new { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); }
.stock-library-new > summary { font-weight: 700; cursor: pointer; min-height: 32px; }
#dialog-body .stock-library-form { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 10px; }
.stock-library-form > .production-field:first-child { grid-column: 1 / -1; }
.stock-library-form > button { grid-column: 1 / -1; }
@media (max-width: 1000px) {
  .production-strip { align-items: start; flex-direction: column; }
  .production-actions { justify-content: flex-start; flex-shrink: 1; }
}
@media (max-width: 760px) {
  .production-actions { width: 100%; }
  .production-actions .button { min-height: 42px; font-size: 12px; flex-grow: 1; }
  .production-strip { padding: 11px; gap: 9px; }
  .production-run-row { align-items: start; }
  .production-run-row .button, .stock-library-actions .button { min-height: 42px; }
  #dialog-body .production-field :is(input, select) { min-height: 42px; font-size: 16px; }
  .stock-library-actions .production-field { flex-basis: 100%; }
}
