.production-shell .module-table-wrap { margin-block-start: 12px; }
.production-head-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.production-shell .table-description { min-width: 180px; }
.production-detail { margin-block-start: 16px; border-block-start: 1px solid var(--border-color, #d7dce4); padding-block-start: 12px; }
.production-detail > p { margin: 8px 0; font-weight: 600; }
.production-request-dialog { width: min(620px, calc(100vw - 24px)); max-height: calc(100vh - 24px); overflow: visible; }
.production-request-dialog form { max-height: calc(100vh - 40px); overflow-y: auto; }
.production-request-dialog .day-field-wide { position: relative; }
.production-request-dialog [data-item]:not([hidden]) { position: absolute; z-index: 3; inset-inline: 0; inset-block-start: 100%; width: 100%; max-height: 190px; overflow-y: auto; background: white; box-shadow: 0 8px 24px #26344a24; }
.production-request-dialog [data-unit] { align-self: end; padding-block-end: 10px; font-weight: 700; }
.production-reports[hidden], .production-shell[hidden] { display: none !important; }
.production-report-state { display: inline-block; padding: 4px 8px; border-radius: 4px; font-weight: 700; background: #f0f3f8; color: #34445c; }
.production-report-state[data-state="submitted"] { background: #fff3d8; color: #684600; }
.production-report-state[data-state="returned"] { background: #fff0f2; color: #971c38; }
.production-report-state[data-state="reviewed"] { background: #e7f4eb; color: #215439; }
.module-editor.production-report-dialog { left: 50%; right: auto; top: 50%; margin: 0; transform: translate(-50%, -50%); box-sizing: border-box; width: min(1280px, calc(100vw - 48px)); max-width: calc(100vw - 48px); max-height: calc(100dvh - 32px); overflow-y: auto; grid-template-columns: minmax(0,1fr); }
.module-editor.production-report-dialog.day-action-panel { left: 50% !important; right: auto !important; top: 50% !important; bottom: auto !important; margin: 0 !important; transform: translate(-50%, -50%) !important; width: min(1280px, calc(100vw - 48px)) !important; max-width: calc(100vw - 48px) !important; height: auto !important; max-height: calc(100dvh - 32px) !important; border-radius: 8px !important; }
.production-report-dialog > header, .production-report-dialog > footer { position: sticky; background: white; z-index: 2; }
.production-report-dialog > header { top: 0; flex-wrap: nowrap !important; }
.production-report-dialog > header h2 { flex: 1 1 auto; min-width: 0; }
.production-report-dialog > header [data-action="excel"], .production-report-dialog > header [data-action="edit"] { width: auto; flex: 0 0 auto; white-space: nowrap; }
.production-report-dialog > header [data-close] { flex: 0 0 34px; }
.production-report-dialog > footer { bottom: 0; display: flex; justify-content: flex-end; gap: 8px; align-items: end; padding-block: 12px; border-block-start: 1px solid #d7dce4; }
.production-report-dialog > footer > button, .production-report-footer-actions > button { width: auto; flex: 0 0 auto; }
.production-report-dialog [data-body] { min-width: 0; padding: 12px 0; }
.production-report-dialog .module-table-wrap { max-width: 100%; overflow-x: auto; }
.production-report-fields { display: grid; grid-template-columns: 190px 200px minmax(220px,1fr);align-items:end; gap: 12px; }
.production-shift { border: 0; padding: 0; min-width: 0; }
.production-shift legend { padding: 0 0 6px; font-weight: 600; }
.production-shift-options { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 4px; }
.production-shift-options label { position: relative; display: block; cursor: pointer; }
.production-shift-options input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; pointer-events: none; }
.production-shift-options span { display: grid; place-items: center; min-height: 38px; border: 1.5px solid #9cabb9; border-radius: 6px; background: #fff; color: #24394b; font-weight: 600; }
.production-shift-options input:checked + span { background: #fff0f3; border-color: #a62543; color: #831a32; }
.production-shift-options input:focus-visible + span { outline: 2px solid #315ca8; outline-offset: 2px; }
.production-report-dialog [data-lines] { min-width: 0; }
.production-line-toolbar { display: flex; justify-content: flex-start; padding-block: 8px 12px; }
.production-line-toolbar button { width: 42px; height: 42px; min-height: 42px; padding: 0; display: grid; place-items: center; flex: 0 0 42px; border-color: #a62543; background: #fff0f3; color: #831a32; }
.production-line-toolbar button:hover { background: #fce2e8; }
.production-report-line { display: grid; grid-template-columns: minmax(0,1fr) 76px 70px 38px; align-items: center; gap: 8px; padding-block: 7px; border-block-end: 1px solid #e0e5ed; }
.production-report-line .day-field { min-width: 0; margin: 0; }
.production-report-product { position: relative; }
.production-report-line .production-report-field-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.production-report-line input { box-sizing: border-box; min-width: 0; width: 100%; height: 40px; padding-inline: 8px; white-space: nowrap; }
.production-report-line [data-remove] { width: 38px; min-width: 38px; height: 40px; padding: 0; display: grid; place-items: center; }
.production-report-product > .production-report-search-wrap { display: block; position: relative; width: 100%; }
.production-report-search-wrap input { width: 100%; }
.production-report-search-wrap:has(.production-report-unlisted:not([hidden])) input { padding-inline-end: 48px; }
.production-report-unlisted { position: absolute; inset-inline-end: 8px; top: 50%; transform: translateY(-50%); display: inline-block; padding: 2px 4px; border-radius: 3px; background: #fff2d7; color: #815008; font-size: 10px; line-height: 1.4; font-weight: 700; white-space: nowrap; pointer-events: none; }
.production-report-unlisted[hidden] { display: none; }
.production-report-results:not([hidden]) { position: absolute; z-index: 5; inset-inline: 0; top: 100%; max-height: 220px; overflow: auto; background: white; border: 1px solid #bbc7d9; box-shadow: 0 10px 24px #1d294022; }
.production-report-results.production-report-results-above:not([hidden]) { top: auto; bottom: 100%; }
.production-report-results button { display: flex; width: 100%; justify-content: space-between; gap: 10px; text-align: right; border: 0; background: white; padding: 9px; color: #23334b; cursor: pointer; }
.production-report-results button:hover, .production-report-results button:focus-visible, .production-report-results button[aria-selected="true"] { background: #dce9ff; color: #183963; }
.production-report-results small { white-space: nowrap; }
.production-report-summary { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; padding-block: 8px 14px; }
.production-report-footer-actions { display: flex; gap: 8px; }
.production-report-feedback { color: #971c38; font-weight: 700; }
.production-report-edit-history { color: #425671; font-size: 12px; border-block-start: 1px solid #d7dce4; padding-block-start: 10px; }
@media (max-width: 760px) {
  .production-shell .module-head { align-items: flex-start; flex-wrap: wrap; }
  .production-head-actions { width: 100%; }
  .production-request-dialog { width: calc(100vw - 16px); }
  .module-editor.production-report-dialog { top: calc(var(--production-viewport-top, 0px) + 8px); transform: translateX(-50%); width: calc(100vw - 16px); max-width: calc(100vw - 16px); max-height: calc(var(--production-viewport-height, 100dvh) - 16px); }
  .module-editor.production-report-dialog.day-action-panel { top: calc(var(--production-viewport-top, 0px) + 8px) !important; transform: translateX(-50%) !important; width: calc(100vw - 16px) !important; max-width: calc(100vw - 16px) !important; max-height: calc(var(--production-viewport-height, 100dvh) - 16px) !important; }
  .production-report-fields { grid-template-columns: minmax(0,1fr) minmax(0,1fr); }.production-report-fields>[data-station-field]{grid-column:1 / -1;}
  .production-report-line { grid-template-columns: minmax(0,1fr) 66px 58px 38px; gap: 5px; }
  .production-report-results:not([hidden]) { width: calc(100vw - 56px); max-width: none; inset-inline-end: auto; }
}
@media (max-width: 430px) {
  .module-editor.production-report-dialog { padding: 12px; }
  .production-report-dialog > header { gap: 8px !important; }
  .production-report-dialog > header h2 { min-width: 0; }
  .production-report-fields { grid-template-columns: minmax(0,1fr) minmax(0,1fr); }.production-report-fields>[data-station-field]{grid-column:1 / -1;}
  .production-report-line { grid-template-columns: minmax(0,1fr) 58px 50px 38px; gap: 4px; }
  .production-report-line input { padding-inline: 5px; }
  .production-report-dialog > footer { flex-wrap: wrap; }
}
.production-report-filters{display:flex;align-items:end;gap:10px;flex-wrap:wrap;padding:12px 0;margin:0 0 12px;border-bottom:1px solid #d4dce8}.production-report-filters>.day-field{display:flex;flex-direction:column;gap:4px;min-width:150px;max-width:220px;flex:1 1 150px}.production-report-filters select,.production-report-filters .day-date-control{width:100%;box-sizing:border-box}.production-report-filters button{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:40px;width:auto;max-width:max-content;flex:0 0 auto;padding-inline:12px;white-space:nowrap}.production-report-filters button svg{width:17px;height:17px}@media(max-width:760px){.production-report-filters>.day-field{min-width:calc(50% - 8px);max-width:none}.production-report-filters button{width:auto;flex:0 0 auto}}

.production-report-fields>.day-field-date{display:grid;min-width:0;max-width:100%;gap:6px;margin:0;}.production-report-fields .day-date-control{width:100%;min-width:0;}
