.production-page { --production-grip: #b9b5bf; }
/* Production composes the shared card kit; only its authored column tracks
   and spreadsheet read/edit layers are specific to this register. */
.production-page #order-sheet { margin: var(--space-4) 0 0; width: auto; max-height: none; overflow: auto; border: 1px solid var(--line); border-radius: var(--radius-panel); }
.production-page #order-sheet .production-register { display: block; min-width: var(--column-resize-width, var(--production-min-width)); width: var(--column-resize-width, 100%); }
.production-register > thead, .production-register > tbody { display: block; }
.production-register > thead > tr:not([hidden]), .production-register > tbody > .order-row:not([hidden]) { display: grid; grid-template-columns: var(--column-resize-tracks, var(--production-tracks)); min-width: 0; }
.production-page #order-sheet .production-register :is(th, td)[hidden] { display: none; }
.production-page #order-sheet .production-register :is(th, td) { position: relative; inset: auto; min-width: 0; width: auto; max-width: none; box-sizing: border-box; }
.production-page #order-sheet .production-register thead th { height: var(--header-height); background: var(--table-header); box-shadow: inset 0 -1px var(--line); font: 400 var(--text-meta)/var(--line-meta) var(--sans); }
.production-page #order-sheet .production-register .data-grid__row > td { height: var(--row-height); border: 0; background: var(--surface); box-shadow: inset 0 -1px var(--line-soft); color: var(--muted); }
.production-page #order-sheet .production-register .data-grid__row:last-child > td { box-shadow: none; }
.production-page #order-sheet .production-register .data-grid__row:hover > td { background: var(--hover); }
.production-page #order-sheet .production-register .data-grid__row > [data-client-visible="false"] { background: var(--private-tint); }
.production-page #order-sheet .production-register .grid-cell__read { width: 100%; min-width: 0; max-width: 100%; font-family: var(--sans); font-size: var(--text-meta); font-weight: 400; color: var(--muted); background: transparent; }
.production-page #order-sheet .production-register [data-column-key="product"] .grid-cell__read { font-size: var(--text-body); color: var(--ink); }
.production-page #order-sheet .production-register :is(input.sheet-input, textarea.sheet-input, .cell-name) { width: 100%; min-width: 0; max-width: 100%; }
.production-page #order-sheet .production-register [data-grid-editing="true"] textarea.sheet-input { min-height: var(--control-height); padding-block: calc((var(--control-height) - var(--line-body)) / 2 - 1px); }
.production-page #order-sheet .production-register :is([data-column-key="order_number"] .grid-cell__read, .sheet-input--order-number) { font-family: var(--mono); font-size: var(--text-meta); color: var(--muted); }
.production-page #order-sheet .production-register .data-grid__heading-control { width: 100%; margin: calc((var(--header-height) - var(--control-height)) / 2) 0; padding: 0 var(--space-2); height: var(--control-height); min-height: 0; font-weight: 400; }
.production-page #order-sheet .production-register .production-grip-cell { padding: 0; }
.production-page #order-sheet .production-register .row-drag-handle { position: static; display: flex; width: 24px; height: var(--control-height); min-width: 0; min-height: 0; margin-block: calc((var(--row-height) - var(--control-height)) / 2); padding: 0; transform: none; opacity: 0; color: var(--production-grip); }
.production-page #order-sheet .production-register .order-row:hover .row-drag-handle, .production-page #order-sheet .production-register .row-drag-handle:focus-visible { opacity: 1; }
.production-page #order-sheet .production-register .sheet-product-thumbnail { color: var(--muted); background: var(--thumbnail-placeholder); border-color: var(--input-line); border-radius: var(--radius-thumbnail); }
.production-page #order-sheet .production-register span.sheet-product-thumbnail { align-items: center; justify-content: center; }
.production-page[data-grid-ready="true"] #order-sheet .production-register span.sheet-product-thumbnail { display: flex; }
.production-page #order-sheet .production-register .sheet-qc-cell, .production-page #order-sheet .production-register .production-risk-cell { display: flex; align-items: center; padding: 0 var(--space-2); font-size: var(--text-meta); color: var(--muted); }
.production-page #order-sheet .production-register .sheet-qc-cell { background: var(--private-tint); }
.production-register .sheet-qc-heading { gap: var(--space-2); font-weight: 400; }
.production-register .sheet-qc-heading svg { width: 12px; height: 12px; }
.production-page #order-sheet .production-register .sheet-actions-heading, .production-page #order-sheet .production-register .sheet-cell--actions { width: auto; min-width: 0; max-width: none; padding: 0; border-left: 0; }
.production-register .sheet-actions-heading > button { margin: auto; }
.production-register .sheet-row-actions[hidden] { display: none; }
.production-risk-flag { display: inline-flex; align-items: center; gap: var(--space-2); white-space: nowrap; }
.production-risk-flag[hidden] { display: none; }
.production-risk-flag::before { content: ""; width: var(--status-dot-size); height: var(--status-dot-size); flex: 0 0 var(--status-dot-size); border-radius: 0; background: currentColor; }
.production-risk-flag:is([data-status="waiting_on_client"], [data-status="due_soon"]) { color: var(--amber); }
.production-risk-flag[data-status="overdue"], .production-risk-flag[data-status="blocked"] { color: var(--red); }
.production-page #order-sheet .production-register .production-status-heading { padding: 0; }
.production-status-help { position: fixed; inset: auto; max-height: calc(100dvh - var(--space-4)); overflow-y: auto; }
.production-status-help strong, .production-status-help dt { font-weight: 600; }
.production-status-help dl { margin: var(--space-2) 0; }
.production-status-help dl > div + div { margin-top: var(--space-2); }
.production-status-help dd { margin: 0; color: var(--muted); }
.production-status-help p { margin: var(--space-2) 0 0; font-size: var(--text-meta); line-height: var(--line-meta); color: var(--muted); }
.production-page #order-sheet .production-stage-group { display: block; }
.production-page #order-sheet .production-stage-group > th { display: flex; align-items: center; height: var(--header-height); background: var(--surface); padding: 0; border: 0; box-shadow: inset 0 -1px var(--line-soft); }
.production-page #order-sheet .production-stage-group:not(:first-child) > th { box-shadow: inset 0 1px var(--line), inset 0 -1px var(--line-soft); }
.production-page #order-sheet .production-stage-group__toggle { height: var(--control-height); min-height: var(--control-height); padding: 0 var(--space-3) 0 var(--space-1); gap: var(--space-2); }
.production-page #order-sheet .production-stage-group__count { font-family: var(--sans); font-size: var(--text-meta); font-weight: 400; color: var(--muted); }
.production-page #order-sheet .production-stage-group__caret { width: 12px; height: 12px; }
.production-page #order-sheet .production-stage-group:last-child > th { box-shadow: inset 0 1px var(--line); }
.production-page .production-status-actions .status-action { min-height: 0; height: var(--control-height); padding: 0; gap: var(--space-2); font-size: var(--text-meta); font-weight: 400; color: var(--amber); }
.production-page .production-status-actions { gap: var(--space-3); }


.production-page #order-sheet .production-stage-group .stage-marker { gap: var(--space-3); }
.production-page #order-sheet .production-stage-group .stage-marker::before { background: conic-gradient(var(--accent) calc(var(--stage-step, 0) * 100% / var(--stage-count, 9)), var(--input-line) 0); }

.production-register .sheet-product-thumbnail svg { width: 16px; height: 16px; }
/* Reorder feedback remains transient; only permanent risk stripes are removed. */
.production-page #order-sheet .production-register .row-drop-before > td { box-shadow: inset 0 3px var(--accent); }
.production-page #order-sheet .production-register .row-drop-after > td { box-shadow: inset 0 -3px var(--accent); }
@media (min-width: 761px) {
  .workspace-shell > .workspace-content > .production-page { padding-bottom: var(--space-4); }
}

/* Authored audience strip follows the same live tracks, including reordered columns. */
.production-page #order-sheet .production-register thead .column-groups > th { height: var(--space-6); padding: 0 var(--space-2); background: var(--surface); border-bottom: 1px solid var(--line); box-shadow: none; }
.production-page #order-sheet .production-register thead .column-groups > th[data-client-visible="false"] { background: var(--private-tint); border-left: 1px solid var(--line); }
.production-register .column-group-label { display: flex; align-items: center; gap: var(--space-1); height: 100%; }
.production-register .column-group-label .control-icon { display: block; }
.production-register .column-heading-button { gap: var(--space-1); }
.production-register .column-lock { width: var(--space-3); height: var(--space-3); }
.production-register .column-group-label svg { width: 12px; height: 12px; }
.production-page #order-sheet .production-register thead th[data-client-visible="false"] { background: var(--private-tint); }
.production-page #order-sheet .production-register .order-row { height: var(--row-height); border-bottom: 1px solid var(--line-soft); }
.production-page #order-sheet .production-register .order-row:last-child { border-bottom: 0; }
.production-page #order-sheet .production-register .data-grid__row > td { height: 100%; box-shadow: none; }
.production-page .sheet-keyboard-hint { display: block; margin: var(--space-2) 0 0; font-size: var(--text-meta); line-height: var(--line-meta); color: var(--muted); }
@media (max-width: 760px) {
  .workspace-content > main.production-page > .page-header { height: auto; min-height: var(--topbar-height); flex-wrap: wrap; padding-block: var(--space-2); gap: var(--space-2); }
  .production-page > .page-header .page-header__actions { flex: 1 0 100%; }
  .production-page > .page-header .production-toolbar { flex-wrap: wrap; min-width: 0; }
  .production-page > .page-header .production-topbar-navigation { flex: 1 0 100%; }
}
