/* Ordered specifications and files stay legible throughout a production shift. */
.order-dates { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 1.5rem 0 2rem; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.order-dates > div { display: grid; align-content: start; gap: .45rem; padding: 1.2rem; border-right: 1px solid var(--line); }
.order-dates > div:last-child { border-right: 0; }
.order-dates span, .order-dates small { color: var(--muted); font-size: .75rem; }
.order-dates strong { font-size: .95rem; font-variant-numeric: tabular-nums; }
.maestro-order-detail > *, .maestro-order-detail .detail-side > *, .comment-content { min-width: 0; }
.production-line { padding: 1.4rem; margin: 1rem 0; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.production-line-head { display: flex; justify-content: space-between; align-items: start; gap: 1rem; }
.production-line-head > div { min-width: 0; }
.production-line h3 { margin: 0 0 .35rem; font-size: 1.1rem; overflow-wrap: anywhere; }
.production-line small, .production-personalisation p, .empty-hint { color: var(--muted); font-size: .78rem; }
.production-description { white-space: pre-wrap; overflow-wrap: anywhere; margin: .9rem 0; font-size: .85rem; }
.production-specs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.2rem; margin: 1.3rem 0; }
.production-specs > div { min-width: 0; }
.production-specs dt { color: var(--muted); font-size: .75rem; margin-bottom: .35rem; }
.production-specs dd { margin: 0; font-size: .88rem; font-weight: 550; white-space: pre-wrap; overflow-wrap: anywhere; }
.production-files { border-top: 1px solid var(--line); margin-top: 1.2rem; padding-top: 1rem; }
.production-files h4 { margin: 0 0 .5rem; font-size: .8rem; }
.production-file { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .7rem 0; }
.production-file > div:first-child { min-width: 0; }
.production-file strong { display: block; font-size: .82rem; overflow-wrap: anywhere; }
.production-file small { display: block; margin-top: .3rem; }
.production-file .button-row { flex-shrink: 0; }
.production-proof-upload { display: flex; flex-wrap: wrap; align-items: end; gap: .8rem; margin-top: .8rem; }
.production-proof-upload label { display: grid; gap: .4rem; min-width: 0; flex: 1 1 180px; font-size: .78rem; }
.production-proof-upload input { width: 100%; }
.production-personalisation { padding: .8rem 0; border-top: 1px solid var(--line); }
.production-personalisation summary, .order-history summary { cursor: pointer; font-size: .88rem; font-weight: 600; }
.artwork-lock { padding: .9rem 1rem; border-radius: 10px; background: var(--accent-soft); font-size: .82rem; }
.comment-byline { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; margin-bottom: .4rem; font-size: .82rem; }
.comment-byline strong, .comment-thread p { overflow-wrap: anywhere; }
.comment-visibility { color: var(--muted); font-size: .7rem; }
.order-destination p { font-size: .85rem; line-height: 1.6; margin: .2rem 0; overflow-wrap: anywhere; }
.order-history .timeline { margin-top: 1.5rem; }
.proof-line-name { font-size: .85rem; font-weight: 600; color: var(--ink); margin-bottom: .3rem; overflow-wrap: anywhere; }
.maestro-order-detail .maestro-comment { grid-template-columns: minmax(0, 1fr) 40px; }
.maestro-order-detail .maestro-comment textarea { grid-column: 1 / -1; }
.maestro-order-detail .maestro-comment .checkbox-row { white-space: normal; }
@media (max-width: 1150px) {
  .order-dates { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .order-dates > div:nth-child(2) { border-right: 0; }
  .order-dates > div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .production-file { align-items: start; flex-direction: column; }
  .production-specs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 540px) {
  .order-dates > div { padding: .85rem; }
  .order-dates strong { font-size: .85rem; overflow-wrap: anywhere; }
  .production-line { padding: 1rem; }
  .production-line-head { flex-direction: column; gap: .6rem; }
  .production-file .button-row { flex-wrap: wrap; }
}
@media (max-width: 760px) {
  .maestro-order-detail .detail-side { order: initial; }
}
