.manufacturing-workspace{max-width:1400px;margin:auto;padding:24px;min-width:0}
.manufacturing-workspace[hidden]{display:none}
.automation-view .automation-masthead[hidden]{display:none}
.mfg-heading,.mfg-form-actions,.mfg-list-heading,.mfg-order,.mfg-pagination{display:flex;gap:20px;align-items:center;justify-content:space-between;flex-wrap:wrap}
.mfg-heading{align-items:flex-start}.mfg-heading h2{font-size:32px;margin:20px 0 8px}.mfg-heading p{max-width:760px}
.mfg-steps{list-style:none;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));padding:0;margin:24px 0;gap:12px}
.mfg-steps li{padding:18px;border-top:3px solid #119d88;background:#edf7f5}.mfg-steps span,.mfg-components span{display:block}
.mfg-panel{padding:24px;border:1px solid #ccd8d5;background:white;margin-bottom:24px;min-width:0}
.mfg-fields{display:grid;grid-template-columns:1fr 1.6fr 100px;gap:16px;margin:18px 0}
.manufacturing-workspace label{display:flex;flex-direction:column;gap:8px;min-width:0}
.manufacturing-workspace input,.manufacturing-workspace select,.manufacturing-workspace textarea{width:100%;min-width:0;min-height:44px;box-sizing:border-box}
.manufacturing-workspace button{min-height:44px;white-space:normal;max-width:100%}
.mfg-form-actions{margin-top:20px}.mfg-form-actions p{flex:1;min-width:220px}
.mfg-components{max-height:360px;overflow:auto;border-block:1px solid #ccd8d5;margin:16px 0}
.mfg-components article{display:grid;grid-template-columns:1.4fr 1fr;gap:16px;padding:14px 8px;border-bottom:1px solid #e0e9e7}.mfg-components strong{color:#9e331f}
.mfg-order{padding:22px 0;border-bottom:1px solid #ccd8d5}.mfg-order>div{flex:1;min-width:200px}.mfg-order h4{font-size:17px;margin:8px 0}.mfg-order p{margin:7px 0}
.mfg-pagination{justify-content:center;margin-top:24px}.mfg-list-heading{margin-bottom:20px}.manufacturing-workspace p,.manufacturing-workspace b,.manufacturing-workspace span{overflow-wrap:anywhere}
/* Isolated from the general dialog work in PR205. The card owns one scroll. */
#automation-detail-dialog,#automation-close-of-dialog,#automation-of-dialog,#automation-bom-dialog{width:min(1300px,96vw);height:auto;max-width:96vw;max-height:92dvh;margin:auto;padding:0;overflow:auto}
#automation-detail-dialog>.dialog-card,#automation-close-of-dialog>.dialog-card,#automation-of-dialog>.dialog-card,#automation-bom-dialog>.dialog-card{width:100%;height:auto;min-height:0;max-width:none;max-height:none;padding:20px;box-sizing:border-box;overflow:visible}
#automation-detail-dialog .dialog-card>header,#automation-close-of-dialog .dialog-card>header,#automation-of-dialog .dialog-card>header,#automation-bom-dialog .dialog-card>header{position:sticky;top:0;z-index:3;background:white;margin:-20px -20px 18px;padding:20px;gap:12px}
#automation-close-of-dialog button[type=submit],#automation-of-dialog button[type=submit]{position:sticky;bottom:0;z-index:2;min-height:48px}
#automation-detail-dialog .automation-bom-grid,#automation-close-of-dialog .automation-trace-unit{min-width:0}
@media(max-width:760px){.manufacturing-workspace{padding:12px}.mfg-steps{grid-template-columns:1fr;gap:4px}.mfg-steps li{padding:10px 14px}.mfg-panel{padding:16px}.mfg-fields{grid-template-columns:1fr}.mfg-components article{grid-template-columns:1fr}.mfg-form-actions p{min-width:0;flex-basis:100%}.mfg-heading>button,.mfg-order>button{width:100%}.mfg-list-heading label{width:100%}}
