.production-history { margin-top: 24px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); min-width: 0; }
.operational-reason { margin: 0 0 24px; min-width: 0; }
.operational-reason h2 { font-size: 18px; margin: 0 0 10px; }
.operational-reason p { font-size: 14px; line-height: 1.6; margin: 8px 0; overflow-wrap: anywhere; }
.operational-reason .operational-quick-summary { font-size: 16px; font-weight: 600; margin: 0 0 6px; }
.operational-calculation > summary { font-size: 13px; cursor: pointer; padding: 6px 0; width: fit-content; }
.operational-calculation > summary::marker { color: var(--orange); }
.operational-calculation > summary:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; }
.operational-table { width: 100%; min-width: 640px; border-collapse: collapse; font-size: 14px; }
.operational-table th, .operational-table td { padding: 12px 10px; border-bottom: 1px solid var(--line); text-align: right; vertical-align: top; }
.operational-table th:first-child { text-align: left; white-space: nowrap; }
.operational-table thead th { font-size: 13px; }
.operational-table caption { text-align: left; padding: 8px 0; font-size: 13px; }
.operational-table details { text-align: left; min-width: 100px; max-width: 400px; }
.operational-table details[open] { min-width: 280px; }
.operational-table .production-outcome-grid { grid-template-columns: 1fr; }
.operational-history-note { font-size: 13px; margin: 8px 0; }
.production-history > summary { padding: 16px 0; min-height: 48px; box-sizing: border-box; cursor: pointer; font-size: 18px; font-weight: 700; line-height: 1.5; overflow-wrap: anywhere; }
.production-history > summary::marker { color: var(--orange); }
.production-history > summary:focus-visible { outline: 2px solid var(--orange); outline-offset: 4px; border-radius: 4px; }
.production-day > header { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.production-history [data-refresh] { width: 44px; height: 44px; padding: 0; flex: 0 0 44px; font-size: 24px; }
.production-filters { display: flex; align-items: end; flex-wrap: wrap; gap: 12px; margin: 20px 0; }
.production-filters label { flex: 0 1 280px; min-width: 240px; }
.history-row-state { display: block; margin-top: 4px; font-weight: 400; }
.fruit-message-choices { grid-column: 1 / -1; display: flex; gap: 12px; flex-wrap: wrap; border: 0; margin: 0; padding: 0; min-width: 0; }
.fruit-message-choices legend { padding: 0 0 8px; font-size: 14px; }
.fruit-message-choices label { display: grid; gap: 4px; flex: 0 1 180px; min-width: 0; font-size: 14px; }
.fruit-message-choices small { font-size: 12px; }
.fruit-message-choices input { width: 100%; min-width: 0; min-height: 44px; box-sizing: border-box; font-size: 16px; padding: 8px 12px; }
.production-history label, .production-delivery label { display: grid; gap: 6px; font-size: 14px; }
.production-history input, .production-history select, .production-delivery input { width: 100%; min-width: 0; min-height: 44px; padding: 10px 12px; box-sizing: border-box; font-size: 16px; }
.production-summary { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 16px; padding: 16px 0 24px; border-bottom: 1px solid var(--line); }
.production-summary > div { display: grid; align-content: start; gap: 6px; }
.production-summary strong { font-size: 24px; }
.production-summary small, .production-day > header > span { font-size: 13px; opacity: .8; }
.production-day { padding: 24px 0; border-bottom: 1px solid var(--line); min-width: 0; }
.production-day h3 { margin: 0; font-size: 18px; }
.production-table-wrap { overflow-x: auto; margin: 12px 0; }
.production-day table { width: 100%; border-collapse: collapse; table-layout: fixed; font-size: 15px; }
.production-day th, .production-day td { padding: 12px 8px; border-bottom: 1px solid var(--line); text-align: right; vertical-align: top; overflow-wrap: anywhere; }
.production-day th:first-child { text-align: left; width: 29%; }
.production-day thead th { font-size: 12px; font-weight: 600; }
.production-difference { color: var(--orange); font-weight: 700; }
.production-equal { font-weight: 700; }
.production-context, .production-outcome { margin-top: 12px; }
.production-context summary, .production-outcome summary { cursor: pointer; font-weight: 600; font-size: 14px; }
.production-context p, .production-outcome p { font-size: 14px; overflow-wrap: anywhere; }
.production-outcome-grid, .production-delivery-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 16px; margin: 16px 0; }
.production-delivery { margin: 20px 0; padding: 16px 0; border-top: 1px solid var(--border-color, rgba(255,235,205,.2)); }
.production-delivery button { min-height: 44px; max-width: 100%; height: auto; white-space: normal; line-height: 1.4; padding: 12px 16px; }
.production-outcome fieldset { border: 0; min-width: 0; padding: 0; margin: 0; }
.production-outcome legend { font-weight: 700; }
.production-outcome label + label { margin-top: 12px; }
.production-history [role=status]:empty, .production-delivery [role=status]:empty { display: none; }
.closing-lot { margin: 8px 0 12px; }
.closing-lot summary { font-size: 13px; cursor: pointer; }
.closing-lot label { display: grid; gap: 6px; margin-top: 8px; font-size: 13px; }
.closing-lot input { width: 100%; min-width: 0; min-height: 42px; padding: 8px 10px; font-size: 16px; }
@media(max-width: 650px) {
  .production-summary { gap: 10px; }
  .production-summary strong { font-size: 20px; }
  .production-summary span, .production-summary small { font-size: 12px; }
  .production-day table { font-size: 13px; }
  .production-day thead th { font-size: 11px; }
  .production-filters { display: grid; grid-template-columns: minmax(0,1fr); }
  .fruit-message-choices label { flex: 1 1 130px; }
  .operational-reason .operational-table { min-width: 0; }
  .operational-reason thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .operational-reason tbody tr { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); padding: 8px 0; border-bottom: 1px solid var(--line); }
  .operational-reason th, .operational-reason td { padding: 8px 4px; border: 0; text-align: left; overflow-wrap: anywhere; }
  .operational-reason td::before { display: block; content: attr(data-label); font-size: 12px; margin-bottom: 4px; }
  .production-filters label { min-width: 0; }
 .production-filters button { justify-self: start; }
 .production-filters [data-refresh] { justify-self: end; }
  .production-day th, .production-day td { padding: 10px 4px; }
  .production-outcome-grid { grid-template-columns: 1fr; }
  .production-delivery-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
.operational-table details { white-space: normal; }
