.production-track { max-width: 720px; }
.production-order { border-top: 1px solid var(--line); }
.production-summary { display:grid; grid-template-columns:minmax(200px,2fr) 74px 90px minmax(110px,1fr) 54px 62px; gap:8px; align-items:center; padding:13px 12px; cursor:pointer; font-size:.9rem; border-radius:7px; } .production-summary:hover { background:rgba(255,255,255,.045); }
.production-summary strong { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.production-summary span { color:var(--muted,#aab0b7); white-space:nowrap; } .production-status { overflow:hidden; text-overflow:ellipsis; } .production-manage { text-align:right; color:#e1e3e7 !important; }
.production-summary .production-progress { color:#e0e2e7; font-weight:600; font-variant-numeric:tabular-nums; }
.production-summary::marker { color:var(--muted,#aab0b7); }
.production-items { display:grid; gap:1rem; padding:16px 12px 20px; border-top:1px solid var(--line); background:rgba(255,255,255,.025); }
.production-detail { display:flex; flex-wrap:wrap; align-items:center; gap:12px 20px; }
.production-detail p { margin:0; }
.production-detail label { display:flex; align-items:center; gap:8px; }
.production-detail select { background:var(--bg); color:var(--text); border:1px solid var(--line); border-radius:7px; padding:8px; font:inherit; }
.production-checks { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:6px 18px; }
.production-check { display:flex; align-items:center; gap:10px; min-height:36px; }
.production-check button { min-width:36px; min-height:36px; padding:0; border-radius:7px; font-size:1.1rem; font-weight:700; }
.check-complete { background:#17583c; color:#caffdf; border:1px solid #35865b; }
.check-incomplete { background:#5d2025; color:#ffd9dc; border:1px solid #8a343d; }
.check-complete-text { color:#6ee7a6 !important; }
.check-incomplete-text { color:#ff8892 !important; }
.production-items textarea { display:block; width:100%; background:var(--bg); border:1px solid var(--line); border-radius:8px; color:var(--text); font:inherit; padding:.6rem; }
.production-feedback { grid-column:1/-1; margin:0; min-height:1.2rem; }
.production-pagination { display:flex; align-items:center; justify-content:center; flex-wrap:wrap; gap:6px; margin:16px 0; }
#productionPages { display:flex; flex-wrap:wrap; gap:4px; }
.production-pagination button { min-width:36px; padding:7px 10px; }
.page-current { border:1px solid #b04349; background:#7b2229; color:#fff; }
.production-tracking-items { display:grid; grid-template-columns:1fr auto; gap:0 .75rem; }
.production-tracking-items dt,.production-tracking-items dd { margin:0; padding:.5rem 0; border-bottom:1px solid var(--line); }
@media(max-width:760px) {
 .production-summary { grid-template-columns:minmax(0,1fr) auto auto; gap:7px 10px; }
 .production-summary strong { grid-column:1/-1; }
 .production-summary span { font-size:.85rem; }
 .production-status { display:none; }
 .production-manage { grid-column:3; }
 .production-checks { grid-template-columns:1fr; }
 .production-summary strong { white-space:normal; }
}

#productionDashboard .help-body { padding-top:12px; }
#productionDashboard .order-filters { display:flex; flex-wrap:wrap; gap:10px; align-items:end; }
#productionDashboard .order-filters label { flex:1 1 150px; margin:0; }
#productionDashboard .order-filters label:first-child { flex:2 1 240px; }
#productionDashboard .order-filters input,#productionDashboard .order-filters select { margin-top:5px; }
#productionCount { margin:12px 0 4px; font-size:.85rem; }
#productionMessage:empty { display:none; }

.production-list-row { display:grid; grid-template-columns:minmax(0,1fr) 42px; gap:4px; align-items:center; border-bottom:1px solid var(--line); }
.production-row-open { width:100%; display:grid; grid-template-columns:minmax(210px,2fr) 86px 92px minmax(120px,1fr) 48px 48px; gap:10px; align-items:center; text-align:left; background:transparent; color:var(--text); border:0; border-radius:0; padding:14px 10px; font:inherit; cursor:pointer; }
.production-row-open:hover,.production-row-open:focus-visible { background:rgba(255,255,255,.055); }
.production-row-open strong { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font-weight:600; }
.production-row-open span { color:var(--muted,#aab0b7); font-size:.88rem; }
.production-row-open span:last-child { color:#dadddf; text-align:right; }
.production-row-delete { width:36px; min-height:36px; border:1px solid transparent; background:transparent; color:#ff929b; border-radius:7px; font:inherit; font-size:1.35rem; line-height:1; cursor:pointer; }
.production-row-delete:hover,.production-row-delete:focus-visible { background:rgba(177,54,67,.18); border-color:#744047; }
.production-row-delete:disabled { opacity:.5; cursor:wait; }
.production-detail-top { display:flex; justify-content:space-between; align-items:center; gap:10px; padding:4px 0 16px; color:var(--muted,#aab0b7); }
.production-detail-mode #dashboard > :not(#productionDashboard) { display:none !important; }
.production-detail-mode #productionDashboard > summary { display:none; }
.production-detail-mode #productionDashboard { border:0; }
#productionLobby[hidden],#productionDetail[hidden] { display:none !important; }
#productionDetail .production-order { border:1px solid var(--line); border-radius:10px; overflow:hidden; }
#productionDetail .production-order > summary { pointer-events:none; list-style:none; grid-template-columns:minmax(0,2fr) 80px 90px minmax(100px,1fr) 55px; }
#productionDetail .production-order > summary::-webkit-details-marker { display:none; }
#productionDetail .production-manage { display:none; }
@media(max-width:760px) {
 .production-row-open { grid-template-columns:minmax(0,1fr) auto auto; gap:7px 10px; }
 .production-row-open strong { grid-column:1/-1; white-space:normal; }
 .production-row-open span:nth-of-type(3) { display:none; }
 .production-row-open span { font-size:.85rem; }
 #productionDetail .production-order > summary { grid-template-columns:minmax(0,1fr) auto auto; }
}

.production-next-wrap { display:flex; justify-content:flex-end; margin:20px 0 4px; }
.production-next-order { display:flex; flex-direction:column; align-items:flex-start; gap:4px; min-width:190px; max-width:min(100%,320px); padding:12px 16px; text-align:left; border:1px solid var(--line); border-radius:9px; background:rgba(255,255,255,.055); color:var(--text); cursor:pointer; }
.production-next-order:hover { background:rgba(255,255,255,.09); }
.production-next-order span { color:var(--muted,#aab0b7); font-size:.8rem; }
.production-next-order strong { font-size:.95rem; font-weight:600; }
.production-next-order[hidden] { display:none !important; }

.production-detail-actions { display:flex; justify-content:space-between; align-items:end; gap:16px; margin:20px 0 4px; }
.production-detail-actions .production-next-wrap { margin:0; }
.production-archive { padding:10px 12px; border:1px solid #744047; border-radius:8px; color:#ffb9bf; background:transparent; font:inherit; cursor:pointer; }
.production-archive:hover { background:rgba(177,54,67,.12); }
@media(max-width:600px) { .production-detail-actions { align-items:stretch; flex-direction:column-reverse; } .production-detail-actions .production-next-wrap { justify-content:stretch; } .production-next-order { max-width:none; width:100%; } }
/* V2 production worklist and grouped checklist */
.production-row-open { grid-template-columns:minmax(0,1fr); gap:9px; padding:12px; }
.production-row-open strong { white-space:normal; font-size:1rem; }
.production-indicators { display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); gap:6px; width:100%; }
.production-indicator { color:var(--muted,#aab0b7); font-size:.82rem; line-height:1.35; }
.production-indicator.check-complete-text { color:#82d4a3; }
.production-heading { padding:16px; border-bottom:1px solid var(--line); }
.production-heading h2 { margin:0 0 6px; font-size:1.2rem; }
.production-heading > span { color:var(--muted,#aab0b7); }
.production-heading .production-indicators { margin-top:12px; }
.production-stage { padding:14px 16px; border:1px solid var(--line); border-radius:10px; background:rgba(255,255,255,.025); }
.production-stage h3 { margin:0; font-size:1rem; }
.production-stage-top { display:flex; align-items:center; justify-content:space-between; gap:12px; margin-bottom:9px; }
.production-stage-top span { color:var(--muted,#aab0b7); font-size:.85rem; }
.production-stage progress { display:block; width:100%; height:7px; margin-bottom:10px; accent-color:#7bd39c; }
.production-checks { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); }
.production-check button.check-incomplete { color:#ff9aa4; border:1px solid #774047; background:rgba(177,54,67,.12); }
.production-check button.check-complete { color:#8ce0a9; border:1px solid #397b56; background:rgba(48,122,79,.16); }
.balance-mark { display:inline-grid; place-items:center; min-width:36px; min-height:36px; border-radius:7px; font-size:1.1rem; font-weight:700; }
.balance-controls { display:flex; flex-wrap:wrap; gap:10px 12px; align-items:end; margin-top:12px; }
.balance-controls label { display:flex; flex-direction:column; gap:4px; margin:0; font-size:.85rem; color:var(--muted,#aab0b7); }
.balance-controls input { width:8.5rem; background:var(--bg); color:var(--text); border:1px solid var(--line); border-radius:7px; padding:8px; font:inherit; }
.balance-controls p { flex-basis:100%; margin:0; color:var(--muted,#aab0b7); font-size:.85rem; }
.balance-pay:disabled { opacity:.55; cursor:not-allowed; }
.balance-customer { display:grid; gap:8px; margin:12px 0; }
.balance-customer p { display:flex; align-items:center; gap:8px; margin:0; }
.production-tracking-items dd { color:#8ce0a9; text-align:right; }
@media(max-width:800px) { .production-indicators { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media(max-width:600px) { .production-checks { grid-template-columns:1fr; } .production-heading .production-indicators { grid-template-columns:repeat(2,minmax(0,1fr)); } }

/* Completed and Trash worklist */
.production-tabs { display:flex; flex-wrap:wrap; gap:8px; margin:6px 0 18px; }
.production-tabs button { border:1px solid var(--line); border-radius:8px; background:transparent; color:var(--text); padding:9px 14px; cursor:pointer; }
.production-tabs button.folder-current { background:rgba(255,255,255,.12); border-color:#8d959f; font-weight:700; }
.production-list-row { grid-template-columns:minmax(0,1fr) 38px 38px; }
.production-row-complete { width:36px; min-height:36px; border:1px solid transparent; border-radius:7px; background:transparent; color:#85d9a4; font-size:1.3rem; cursor:pointer; }
.production-row-complete:hover,.production-row-complete:focus-visible { background:rgba(40,145,85,.18); border-color:#397b56; }
.production-row-complete:disabled { opacity:.5; cursor:wait; }
