.production-progress-surface .module-surface-head>div{display:grid;gap:4px}.production-progress-surface .module-surface-head span{color:#888;font-size:12px}.production-progress-table{min-width:940px}.production-stage{display:inline-block;padding:4px 7px;border-radius:4px;background:#eee;color:#666;font-size:12px}.production-stage.started,.production-stage.materials_ready,.production-stage.cutting_done,.production-stage.sewing_done{background:#fff0c2;color:#8a5c00}.production-stage.returned{background:#dcf5e8;color:#16794b}.production-progress-track{width:100px;height:6px;border-radius:4px;background:#eee;overflow:hidden}.production-progress-track i{display:block;height:100%;background:#ef6fa4}.production-progress-table td small{color:#999}.production-next-action{min-height:36px;padding:7px 11px;background:#181818;color:#fff;white-space:nowrap}.production-row-actions{display:flex;gap:6px}.production-row-actions button{padding:7px 9px;white-space:nowrap}#productionStageDialog form{width:min(560px,90vw)}.production-stage-summary{margin:12px 0;padding:12px;border-radius:6px;background:#f7f7f7;color:#555}#productionStageDialog label{display:grid;gap:6px;margin-top:12px;color:#666}#productionStageDialog input,#productionStageDialog textarea{width:100%;padding:10px;border:1px solid #ddd;border-radius:6px}#productionStageDialog textarea{min-height:100px}.production-event-history{margin-top:16px}.production-event-history h3{font-size:14px}.production-event-history>div{display:grid;gap:8px;max-height:220px;overflow:auto}.production-event-history>div>div{display:grid;grid-template-columns:1fr auto;gap:4px;padding:9px;border-bottom:1px solid #eee}.production-event-history small{grid-column:1/-1;color:#888}
.production-progress-surface .module-surface-head>div{display:grid;gap:4px}#productionStageDialog [hidden]{display:none!important}
#productionStageDialog{box-sizing:border-box;width:560px;max-width:calc(100vw - 64px);max-height:calc(100vh - 48px);margin:auto;padding:0!important;overflow:hidden}#productionStageDialog form{display:block;width:560px;max-width:100%;min-width:0;max-height:calc(100vh - 48px);box-sizing:border-box;overflow-y:auto;overflow-x:hidden;padding:28px 32px}#productionStageDialog h2{font-size:24px;white-space:normal;overflow-wrap:anywhere}#productionStageDialog .production-stage-summary{width:100%;box-sizing:border-box;white-space:normal;overflow-wrap:anywhere;word-break:break-word}#productionStageDialog .production-event-history{min-width:0}#productionStageDialog .production-event-history>div{min-width:0}#productionStageDialog .production-event-history>div>div{box-sizing:border-box;min-width:0;max-width:100%}@media(max-width:700px){#productionStageDialog{width:calc(100vw - 24px);max-width:calc(100vw - 24px);max-height:calc(100vh - 24px)}#productionStageDialog form{width:100%;max-height:calc(100vh - 24px);padding:18px 16px}}
.production-progress-surface .module-surface-head>div{min-width:0}#productionStageDialog{max-width:calc(100vw - 24px);max-height:calc(100dvh - 24px);padding:0;border:0;border-radius:14px;overflow:hidden}#productionStageDialog::backdrop{background:rgba(0,0,0,.42)}#productionStageDialog form{box-sizing:border-box;width:min(560px,calc(100vw - 24px));max-height:calc(100dvh - 24px);overflow-y:auto;overflow-x:hidden;padding:22px 24px}#productionStageDialog h2{margin:0 0 14px;line-height:1.2;overflow-wrap:anywhere}#productionStageDialog .production-stage-summary{white-space:normal;overflow-wrap:anywhere;line-height:1.5}#productionStageDialog label{min-width:0}#productionStageDialog input,#productionStageDialog select,#productionStageDialog textarea{box-sizing:border-box;max-width:100%;min-width:0}#productionStageDialog form>div:last-child{display:flex;justify-content:flex-end;gap:10px;flex-wrap:wrap;margin-top:16px}#productionStageDialog form>div:last-child button{min-height:42px;white-space:nowrap}.production-event-history>div>div{min-width:0;grid-template-columns:minmax(0,1fr) minmax(0,1fr)}.production-event-history>div>div>*{min-width:0;overflow-wrap:anywhere}@media(max-width:700px){#productionStageDialog form{width:calc(100vw - 24px);padding:18px 16px}#productionStageDialog form>div:last-child{justify-content:stretch}#productionStageDialog form>div:last-child button{flex:1 1 120px}.production-event-history>div>div{grid-template-columns:1fr;gap:3px}.production-event-history>div>div span{color:#777}}
.return-size-table{width:100%;border-collapse:collapse;margin-top:12px}.return-size-table th,.return-size-table td{padding:8px;border-bottom:1px solid #eee;text-align:left}.return-size-table input{width:100%;padding:9px;border:1px solid #ddd;border-radius:6px}#productionReturnDialog form{width:min(520px,90vw)}#productionReturnDialog label{display:grid;gap:6px;margin-top:12px;color:#666}#productionReturnDialog input,#productionReturnDialog textarea{width:100%;padding:10px;border:1px solid #ddd;border-radius:6px}#productionReturnDialog textarea{min-height:80px}
