/* Production pages only. Shared shell assets and the frozen workbench stay unchanged. */
body.ui-fullsite-production {
  --production-ink: #252c39;
  --production-muted: #5b6473;
  --production-line: #dde2e9;
  --production-surface: #fcfdfe;
  --ui-shell-ink: #252c39;
  --ui-shell-ink-muted: #5b6473;
  --ui-shell-accent: #4e5bad;
  color: var(--production-ink);
  background: #eef1f5;
}
body.ui-fullsite-production main {
  min-width: 0;
  background: linear-gradient(125deg, #edf0f5, #f8f9fb 55%, #edf1f5);
}
body.ui-fullsite-production .topbar {
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  padding: 30px clamp(22px, 3vw, 48px) 24px;
  background: #f7f8fa;
  border-bottom: 1px solid var(--production-line);
}
body.ui-fullsite-production .topbar > div:first-child { flex: 1 1 420px; min-width: 0; }
body.ui-fullsite-production .topbar h1 {
  margin: 0;
  font-size: clamp(24px, 2vw, 34px);
  line-height: 1.3;
  letter-spacing: -.025em;
  overflow-wrap: anywhere;
}
body.ui-fullsite-production .topbar p { color: var(--production-muted); font-size: 14px; line-height: 1.65; }
body.ui-fullsite-production .topbar .production-eyebrow { margin: 0 0 12px; font-size: 12px; }
body.ui-fullsite-production .production-eyebrow a { font-size: inherit; }
body.ui-fullsite-production .production-title { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; }
body.ui-fullsite-production .production-status {
  border: 1px solid #d7dde6;
  border-radius: 999px;
  padding: 4px 12px;
  background: #eef1f6;
  font-size: 13px;
  white-space: nowrap;
}
body.ui-fullsite-production .production-status-issued { color: #196953; background: #e9f4ef; border-color: #c6dfd4; }
body.ui-fullsite-production .production-status-cancelled { color: #65616c; background: #efedf1; }
body.ui-fullsite-production .production-toolbar { display: flex; flex-wrap: wrap; gap: 8px; }
body.ui-fullsite-production .content { display: grid; gap: 22px; padding: 24px clamp(22px, 3vw, 48px) 48px; }
body.ui-fullsite-production .production-detail-grid,
body.ui-fullsite-production .production-editor-grid,
body.ui-fullsite-production .production-batch-grid { display: grid; gap: 22px; align-items: start; min-width: 0; }
body.ui-fullsite-production .production-detail-grid { grid-template-columns: minmax(0, .95fr) minmax(0, 1.25fr); }
body.ui-fullsite-production .production-editor-grid { grid-template-columns: minmax(0, .85fr) minmax(0, 1.3fr); }
body.ui-fullsite-production .production-batch-grid { grid-template-columns: minmax(0, 1.6fr) minmax(0, .8fr); }
body.ui-fullsite-production .production-wide { grid-column: 1 / -1; }
body.ui-fullsite-production .panel {
  min-width: 0;
  width: auto;
  max-width: none;
  margin: 0;
  padding: 24px;
  border: 1px solid var(--production-line);
  border-radius: 16px;
  background: var(--production-surface);
  box-shadow: 0 6px 24px rgba(40, 48, 65, .035), inset 0 1px 0 #fff;
}
body.ui-fullsite-production .panel-heading { display: flex; align-items: start; justify-content: space-between; flex-wrap: wrap; gap: 14px; margin-bottom: 18px; }
body.ui-fullsite-production .panel-heading > div { min-width: 0; flex: 1 1 260px; }
body.ui-fullsite-production .panel-heading h2 { margin: 0; font-size: 18px; line-height: 1.5; }
body.ui-fullsite-production .panel-heading p { margin: 7px 0 0; color: var(--production-muted); font-size: 13px; line-height: 1.7; overflow-wrap: anywhere; }
body.ui-fullsite-production .detail-summary { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; margin: 0 0 18px; padding: 16px 0; border: 1px solid var(--production-line); border-radius: 12px; background: #f5f7fa; }
body.ui-fullsite-production .detail-summary > div { min-width: 0; padding: 4px 18px; border-right: 1px solid var(--production-line); }
body.ui-fullsite-production .detail-summary > div:last-child { border-right: 0; }
body.ui-fullsite-production .detail-summary span { display: block; margin-bottom: 6px; color: var(--production-muted); font-size: 12px; }
body.ui-fullsite-production .detail-summary strong { display: block; color: var(--production-ink); font-size: 17px; font-weight: 600; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
body.ui-fullsite-production .production-allocation { margin: 0; background: var(--production-surface); padding: 22px 0; box-shadow: 0 4px 20px rgba(40, 48, 65, .035); }
body.ui-fullsite-production .production-allocation strong { font-size: clamp(18px, 1.5vw, 24px); }
body.ui-fullsite-production .detail-summary .negative-number { color: #a52835; }
body.ui-fullsite-production .requirement-locked { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 20px; margin: 0; }
body.ui-fullsite-production .requirement-locked > div { min-width: 0; padding: 12px 0; border-bottom: 1px solid #e8ebf0; background: transparent; }
body.ui-fullsite-production .requirement-locked dt { margin-bottom: 5px; color: var(--production-muted); font-size: 12px; }
body.ui-fullsite-production .requirement-locked dd { margin: 0; color: var(--production-ink); font-size: 14px; line-height: 1.7; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; white-space: pre-line; }
body.ui-fullsite-production .production-fact-wide { grid-column: 1 / -1; }
body.ui-fullsite-production .production-batch-context .requirement-locked { grid-template-columns: minmax(0, 1fr); }
body.ui-fullsite-production .instruction-snapshot-state { margin-top: 20px; padding: 14px; border: 1px solid var(--production-line); border-radius: 10px; background: #f1f4f8; }
body.ui-fullsite-production .instruction-snapshot-state p { margin: 0 0 10px; font-size: 13px; line-height: 1.7; overflow-wrap: anywhere; }
body.ui-fullsite-production .form-stack { gap: 20px; max-width: none; }
body.ui-fullsite-production .production-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 18px; }
body.ui-fullsite-production .production-field { min-width: 0; }
body.ui-fullsite-production .production-field label { display: block; margin-bottom: 7px; color: var(--production-ink); font-size: 13px; font-weight: 500; }
body.ui-fullsite-production .production-required { color: var(--production-muted); font-size: 11px; font-weight: 400; }
body.ui-fullsite-production .production-field-finishing_requirement,
body.ui-fullsite-production .production-field-internal_note,
body.ui-fullsite-production .production-field-remark { grid-column: 1 / -1; }
body.ui-fullsite-production .production-field input,
body.ui-fullsite-production .production-field select,
body.ui-fullsite-production .production-field textarea,
body.ui-fullsite-production .instruction-attach select {
  box-sizing: border-box; width: 100%; min-width: 0; max-width: 100%; min-height: 44px;
  padding: 10px 12px; border: 1px solid #c9d0dc; border-radius: 9px;
  background: #fff; color: var(--production-ink); font: inherit; font-size: 14px;
}
body.ui-fullsite-production .production-field textarea { resize: vertical; min-height: 90px; }
body.ui-fullsite-production .production-field-help { margin-top: 6px; color: var(--production-muted); font-size: 12px; line-height: 1.6; }
body.ui-fullsite-production .form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--production-line); }
body.ui-fullsite-production .form-actions .inline-form { margin: 0; }
body.ui-fullsite-production .form-actions.inline-form { width: 100%; }
body.ui-fullsite-production .instruction-attach { display: grid; gap: 8px; flex: 1 1 300px; min-width: 0; font-size: 13px; }
body.ui-fullsite-production .button { min-height: 40px; display: inline-flex; align-items: center; justify-content: center; white-space: normal; text-align: center; font-size: 13px; line-height: 1.5; }
body.ui-fullsite-production .button.primary { background: #333e55; border-color: #333e55; color: #fff; box-shadow: 0 3px 9px rgba(40, 48, 65, .12); }
body.ui-fullsite-production .button.primary:hover { background: #424f6a; border-color: #424f6a; color: #fff; }
body.ui-fullsite-production .table-wrap { width: 100%; max-width: 100%; min-width: 0; overflow-x: auto; border: 1px solid var(--production-line); border-radius: 10px; scrollbar-gutter: stable; }
body.ui-fullsite-production .table-wrap table { width: 100%; min-width: 680px; margin: 0; background: #fff; border-collapse: collapse; table-layout: auto; }
body.ui-fullsite-production .table-wrap th { background: #f1f4f8; color: var(--production-muted); font-weight: 500; text-align: left; }
body.ui-fullsite-production .table-wrap th,
body.ui-fullsite-production .table-wrap td { padding: 12px 16px; font-size: 13px; line-height: 1.7; vertical-align: top; border-bottom: 1px solid #e5e9ef; overflow-wrap: anywhere; white-space: normal; font-variant-numeric: tabular-nums; }
body.ui-fullsite-production .table-wrap tr:last-child td { border-bottom: 0; }
body.ui-fullsite-production .table-wrap td div + div { margin-top: 6px; }
body.ui-fullsite-production .table-wrap small { color: var(--production-muted); font-size: 12px; }
body.ui-fullsite-production .warning-box,
body.ui-fullsite-production .form-error { margin: 0; padding: 18px; color: #744814; border: 1px solid #dac6a4; border-radius: 12px; background: #fff9ee; overflow-wrap: anywhere; }
body.ui-fullsite-production .warning-box p { margin: 0 0 12px; font-size: 14px; }
body.ui-fullsite-production .form-field-error { color: #a52835; font-size: 13px; line-height: 1.6; }
body.ui-fullsite-production .errorlist { margin: 8px 0 0; padding-left: 20px; }
body.ui-fullsite-production .errorlist li { font-size: 13px; }
body.ui-fullsite-production .production-field-invalid input,
body.ui-fullsite-production .production-field-invalid select,
body.ui-fullsite-production .production-field-invalid textarea { border-color: #a52835; }
body.ui-fullsite-production .empty-cell { padding: 20px; color: var(--production-muted); font-size: 14px; }
body.ui-fullsite-production main p,
body.ui-fullsite-production main a { overflow-wrap: anywhere; }
body.ui-fullsite-production :focus-visible { outline: 3px solid #4b59a9; outline-offset: 3px; }
@supports ((backdrop-filter: blur(10px)) or (-webkit-backdrop-filter: blur(10px))) {
  body.ui-fullsite-production .topbar,
  body.ui-fullsite-production .production-allocation { background: rgba(252, 253, 254, .88); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
}
@media (max-width: 1200px) {
  body.ui-fullsite-production .production-editor-grid { grid-template-columns: minmax(0, .9fr) minmax(0, 1.2fr); }
  body.ui-fullsite-production .panel { padding: 20px; }
  body.ui-fullsite-production .production-snapshot .requirement-locked { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 1024px) {
  body.ui-fullsite-production.ui-shell-js .topbar { padding-left: 72px; }
  body.ui-fullsite-production .production-detail-grid,
  body.ui-fullsite-production .production-editor-grid,
  body.ui-fullsite-production .production-batch-grid { grid-template-columns: minmax(0, 1fr); }
  body.ui-fullsite-production .production-snapshot .requirement-locked { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  body.ui-fullsite-production .topbar { padding: 20px 16px; gap: 14px; }
  body.ui-fullsite-production .topbar > div:first-child { flex-basis: 100%; }
  body.ui-fullsite-production .content { padding: 18px 14px 30px; gap: 16px; }
  body.ui-fullsite-production .panel { padding: 18px 16px; border-radius: 12px; }
  body.ui-fullsite-production .production-detail-grid,
  body.ui-fullsite-production .production-editor-grid,
  body.ui-fullsite-production .production-batch-grid { gap: 16px; }
  body.ui-fullsite-production .detail-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 8px 0; }
  body.ui-fullsite-production .detail-summary > div { padding: 12px; }
  body.ui-fullsite-production .detail-summary > div:nth-child(2) { border-right: 0; }
  body.ui-fullsite-production .detail-summary > div:nth-child(-n+2) { border-bottom: 1px solid var(--production-line); }
  body.ui-fullsite-production .production-fields,
  body.ui-fullsite-production .requirement-locked,
  body.ui-fullsite-production .production-snapshot .requirement-locked { grid-template-columns: minmax(0, 1fr); }
  body.ui-fullsite-production .button { min-height: 44px; }
  body.ui-fullsite-production .production-toolbar { width: 100%; }
  body.ui-fullsite-production .production-toolbar .button { flex: 1 1 130px; }
}
@media (prefers-reduced-motion: reduce) {
  body.ui-fullsite-production *,
  body.ui-fullsite-production *::before,
  body.ui-fullsite-production *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
@media (prefers-reduced-transparency: reduce) {
  body.ui-fullsite-production .topbar,
  body.ui-fullsite-production .production-allocation { background: #fcfdfe; -webkit-backdrop-filter: none; backdrop-filter: none; }
}
@media (forced-colors: active) {
  body.ui-fullsite-production main,
  body.ui-fullsite-production .panel,
  body.ui-fullsite-production .topbar,
  body.ui-fullsite-production .detail-summary,
  body.ui-fullsite-production .instruction-snapshot-state,
  body.ui-fullsite-production .production-status,
  body.ui-fullsite-production .warning-box,
  body.ui-fullsite-production .form-error { background: Canvas; color: CanvasText; border-color: CanvasText; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
  body.ui-fullsite-production .button,
  body.ui-fullsite-production .button.primary { background: ButtonFace; color: ButtonText; border: 1px solid ButtonText; box-shadow: none; }
  body.ui-fullsite-production .production-field input,
  body.ui-fullsite-production .production-field select,
  body.ui-fullsite-production .production-field textarea,
  body.ui-fullsite-production .table-wrap { border-color: CanvasText; }
  body.ui-fullsite-production .negative-number,
  body.ui-fullsite-production .form-field-error { color: CanvasText; font-weight: 700; }
  body.ui-fullsite-production :focus-visible { outline-color: Highlight; }
}
