#stage-documents-dialog{width:min(800px,96vw);max-height:92dvh;padding:0;border:0;border-radius:16px}#stage-documents-dialog[open]{display:flex;flex-direction:column;overflow:hidden}#stage-documents-dialog .drawer-body{flex:1;min-height:0;overflow:auto;max-height:none}#stage-documents-dialog .drawer-header,#stage-documents-dialog .drawer-footer{flex-shrink:0}.instruction-stage-links{display:grid;gap:10px;margin:16px 0}.instruction-stage-links>div{display:flex;justify-content:space-between;align-items:center;gap:14px;padding:12px;background:#f5f8fc;border-radius:8px}.instruction-files{display:grid;gap:14px}.instruction-file{display:flex;align-items:flex-start;gap:16px;border:1px solid #dce6f1;padding:16px;border-radius:10px}.instruction-file img{width:160px;height:130px;object-fit:contain;background:#f5f8fc}.instruction-file-info{flex:1;min-width:0}.instruction-file strong{display:block;overflow-wrap:anywhere}.instruction-file small{display:block;color:#526b86;margin:6px 0 12px}.instruction-actions{display:flex;gap:10px;flex-wrap:wrap;align-items:center}.instruction-upload{border-top:1px solid #dce6f1;margin-top:24px;padding-top:20px}.instruction-upload .field{margin:16px 0}.production-work-card .instruction-actions{margin-top:12px}.stage-card>.instruction-actions{margin-top:18px}
.stage-technical-details{margin:16px 0;padding:16px;background:#f7f9fc;border:1px solid var(--line);border-radius:10px}.stage-technical-details small{font-weight:400;color:var(--muted)}.stage-description{resize:vertical;min-height:88px;line-height:1.6}.stage-description[readonly]{background:#fff;color:var(--muted)}.stage-instructions-heading{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:10px;margin:18px 0 12px;font-size:.875rem}.stage-instructions-heading strong small{display:block}.stage-instruction-preview{display:grid;gap:10px;max-height:330px;overflow:auto}.stage-instruction-file{display:flex;align-items:center;gap:12px;border:1px solid var(--line);border-radius:8px;padding:12px;background:#fff}.stage-instruction-file img{display:block;width:80px;height:72px;object-fit:contain;background:#f1f5f9}.stage-instruction-file>div{min-width:0}.stage-instruction-file strong{display:block;font-size:.875rem;overflow-wrap:anywhere}.stage-instruction-file small{display:block;margin:3px 0 6px}.stage-instruction-icon{display:flex;align-items:center;justify-content:center;width:44px;height:52px;background:var(--blue-soft);color:var(--blue);border-radius:6px;flex-shrink:0}.stage-description-text{white-space:pre-wrap;overflow-wrap:anywhere;font-size:.875rem;margin:8px 0 0;max-width:60ch}.stage-technical-details .minor-empty{font-size:.875rem;color:var(--muted)}
@media(max-width:640px){#stage-documents-dialog{width:100%;height:100dvh;max-height:100dvh;margin:0;border-radius:0}#stage-documents-dialog .drawer-header,#stage-documents-dialog .drawer-body,#stage-documents-dialog .drawer-footer{padding:16px}.instruction-file{flex-direction:column}.instruction-file img{width:100%;height:180px}.instruction-file>a{width:100%}.instruction-stage-links>div{align-items:flex-start;flex-direction:column}.instruction-actions .button{min-height:44px}#instruction-file{font-size:16px;max-width:100%}.stage-technical-details{padding:12px}.stage-description{font-size:16px!important}.stage-instruction-file{align-items:flex-start;padding:10px}.stage-instruction-file img{width:64px;height:64px}.stage-instruction-file .link-button{min-height:36px}}
