.production-cards { display: none; }
.daily-view-reset { margin-bottom: 12px; }
.workspace-shell #order-sheet .order-table--daily { min-width: 0; table-layout: fixed; }
.order-table--daily th[data-column-key="order_number"] { width: 16%; }
.order-table--daily th[data-column-key="client_name"], .order-table--daily th[data-column-key="product"] { width: 23%; }
.order-table--daily th[data-column-key="stage"] { width: 18%; }
.order-table--daily th[data-column-key="due_date"] { width: 15%; }
.workspace-shell #order-sheet .order-table--daily .sheet-input { min-width: 0; width: 100%; padding-inline: 10px; }
.workspace-shell #order-sheet .order-table--daily .sheet-input--order-number { padding-left: 24px; }
.order-table--daily .sheet-cell--actions, .order-table--daily .sheet-actions-heading { min-width: 64px; width: 64px; }
.order-table--daily .sheet-row-actions { gap: 0; padding: 0; }
.workspace-shell #order-sheet textarea.sheet-input { resize: vertical; white-space: normal; overflow-wrap: anywhere; height: 70px; min-height: 70px; line-height: 22px; padding-block: 12px; }
.workspace-shell #order-sheet textarea.sheet-input:focus { height: 70px; }
.sidebar-profile__copy { min-height: 40px; }
@media (max-width: 639px) {
  #order-sheet { display: none; }
  .production-cards { display: grid; gap: 12px; }
  .production-card { display: grid; grid-template-columns: 1fr auto; gap: 8px 12px; padding: 18px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); text-decoration: none; overflow-wrap: anywhere; }
  .production-card strong, .production-card > span:not(.production-card__number):not(.production-card__stage) { grid-column: 1 / -1; }
  .production-card__number, .production-card__due { font-size: var(--text-meta); color: var(--muted); }
  .production-card__stage { color: var(--accent); font-size: var(--text-meta); }
  .production-card:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
}

.cell-conflict { padding: 10px; white-space: normal; font-size: var(--text-meta); background: var(--red-wash); }
.cell-conflict button { display: block; min-height: 36px; margin-top: 4px; }
.panel-skeleton { display: none; padding: 32px; gap: 18px; }
.panel-skeleton span { display: block; height: 48px; background: var(--paper-deep); }
.panel-skeleton span:first-child { width: 55%; height: 28px; margin-bottom: 18px; }
.order-panel:has(.order-panel__status:not(:empty)):has(turbo-frame[hidden]) .panel-skeleton { display: grid; }
.order-panel[open] { animation: panel-arrive 150ms ease; }
.sheet-input, .production-card, .button { transition: background-color 150ms ease, color 150ms ease; }
@keyframes panel-arrive { from { opacity: 0; transform: translateX(12px); } to { opacity: 1; transform: translateX(0); } }
@media (prefers-reduced-motion: reduce) {
  .order-panel[open] { animation: none; }
  .sheet-input, .production-card, .button { transition: none; }
}

.cell-name { position: relative; }
.cell-name .sheet-input { resize: none !important; }
.cell-name:not(:focus-within) .sheet-input { color: transparent; }
.cell-name__preview { position: absolute; inset: 12px 10px auto; max-height: 44px; line-height: 22px; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; white-space: normal; overflow-wrap: anywhere; pointer-events: none; }
.cell-name:focus-within .cell-name__preview { display: none; }
.cell-name__tooltip { margin: 0; width: min(320px, calc(100vw - 16px)); padding: 12px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); box-shadow: var(--shadow-menu); font: 400 14px/1.5 var(--sans); white-space: normal; overflow-wrap: anywhere; }

.mobile-sort, .mobile-column-config { display: none; }
@media (max-width: 639px) { .mobile-sort { display: flex; align-items: center; gap: 8px; margin-bottom: 16px; } .mobile-sort label { position: absolute; clip-path: inset(50%); width: 1px; height: 1px; overflow: hidden; } .mobile-column-config { display: inline-flex; margin-bottom: 12px; } }

.cell-save-status:empty { display: none; }
.cell-save-status { display: block; white-space: normal; padding: 2px 10px; font-size: 11px; line-height: 16px; color: var(--muted); }
.cell-save-status[data-state="error"] { color: var(--red); }
