/* V6.7 shared compact manufacturing workflow */
.mj-workflow{width:100%;max-width:none;box-sizing:border-box}.mj-workflow .panel{width:100%;max-width:none;box-sizing:border-box;margin:1rem 0}.mj-workflow .store-table-wrap{overflow-x:auto;max-width:100%}.mj-workflow table{width:100%;min-width:630px}.mj-workflow .mj-line{border:1px solid #cad2da;border-radius:10px;padding:16px;margin:12px 0;background:rgba(255,255,255,.035)}.mj-workflow .mj-line-head{display:flex;align-items:center;justify-content:space-between;gap:16px}.mj-workflow .mj-pill{background:#856221;color:white;border-radius:30px;padding:4px 12px;font-size:.85rem;white-space:nowrap}.mj-workflow .mj-pill.mj-done{background:#247e4e}.mj-workflow .mj-inline{display:flex;flex-wrap:wrap;align-items:end;gap:10px;margin:12px 0}.mj-workflow .mj-inline label{flex:1 1 145px;min-width:125px}.mj-workflow .mj-inline input,.mj-workflow .mj-inline select{width:100%;box-sizing:border-box}.mj-workflow button.mj-save{background:#247e4e;color:white;border:0;white-space:nowrap}.mj-workflow button.mj-delete{background:#a63b48;color:#fff;border:0;min-width:42px;min-height:38px}.mj-workflow .mj-alloc{display:flex;gap:12px;align-items:center;padding:8px 12px;border-bottom:1px solid #ccd3d9}.mj-workflow .mj-alloc form{margin-left:auto}.mj-workflow .mj-finish{padding:12px;border:1px solid #247e4e;border-radius:8px}.mj-workflow button:disabled{opacity:.4;cursor:not-allowed}

/* V6.8 manually initiated manufacturing */
.mj-workflow .mj-manual-form{display:grid;grid-template-columns:repeat(auto-fit,minmax(230px,1fr));gap:15px;align-items:end}.mj-workflow .mj-manual-form label{display:flex;flex-direction:column;gap:6px}.mj-workflow .mj-manual-form input,.mj-workflow .mj-manual-form select{width:100%;box-sizing:border-box}.mj-workflow .mj-manual-form button{align-self:end}.side-nav .nav-subheading{font-weight:700;color:#e6cb87;padding:10px 12px 3px}.side-nav .nav-nested{padding-left:29px}

/* V6.9 - same six-column product row and inline action buttons as Orders */
.mj-workflow .mj-manual-panel{width:100%;max-width:none}
.mj-workflow .mj-manual-destination{display:grid;grid-template-columns:repeat(2,minmax(200px,1fr));gap:16px;max-width:960px;align-items:end}
.mj-workflow .mj-manual-destination label,.mj-workflow .mj-manual-footer label{display:flex;flex-direction:column;gap:7px;min-width:0}
.mj-workflow .mj-manual-destination select,.mj-workflow .mj-manual-destination input,.mj-workflow .mj-manual-footer input{width:100%;box-sizing:border-box}
.mj-workflow .mj-manual-destination [hidden]{display:none!important}
.mj-workflow .mj-manual-heading{margin:32px 0 18px}
.mj-workflow .mj-manual-row{border:1px solid #34445e;border-radius:10px;padding:16px;margin:12px 0;background:rgba(255,255,255,.015)}
.mj-workflow .mj-manual-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr)) minmax(90px,.85fr) 96px;gap:12px;align-items:end}
.mj-workflow .mj-manual-grid>label{margin:0;min-width:0;display:flex;flex-direction:column;gap:7px}
.mj-workflow .mj-manual-grid select,.mj-workflow .mj-manual-grid input{width:100%;box-sizing:border-box;min-width:0}
.mj-workflow .mj-manual-actions{display:flex;justify-content:flex-end;gap:8px;align-items:center}
.mj-workflow .mj-manual-actions button{display:inline-flex;align-items:center;justify-content:center;width:42px;height:42px;min-width:42px;padding:0;border-radius:8px;color:#fff;font-size:23px;line-height:1;font-weight:800;cursor:pointer}
.mj-workflow .mj-manual-actions .mj-manual-verify{background:#247e4e;border:1px solid #399e6a}
.mj-workflow .mj-manual-actions .mj-manual-remove{background:#a63b48;border:1px solid #c65b67}
.mj-workflow .mj-manual-row.mj-row-checked{border-color:#399e6a}
.mj-workflow .mj-manual-row.mj-row-invalid{border-color:#c65b67}
.mj-workflow .mj-manual-footer{display:flex;gap:18px;align-items:end;flex-wrap:wrap;margin-top:26px}
.mj-workflow .mj-manual-footer label{min-width:210px}.mj-workflow .mj-manual-footer button{min-height:45px}
@media(max-width:1150px){.mj-workflow .mj-manual-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:660px){.mj-workflow .mj-manual-destination,.mj-workflow .mj-manual-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.mj-workflow .mj-manual-actions{justify-content:flex-start}}

/* V6.9.1: The global form:not(.search) rule limits forms to 580px.
   The manual production form must use the full available panel width. */
.mj-workflow #mj-manual-create{
  width:100%;
  max-width:none;
  min-width:0;
  box-sizing:border-box;
  display:block;
}
.mj-workflow #mj-manual-create .mj-manual-destination{
  max-width:none;
}
.mj-workflow #mj-manual-create #mj-manual-lines,
.mj-workflow #mj-manual-create .mj-manual-row{
  width:100%;
  max-width:none;
}
@media(max-width:1150px){
  .mj-workflow #mj-manual-create .mj-manual-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
}


/* V6.10.1 – Only the order-import manufacturing page. Override the global
   580px form cap; both panels and their forms must use the available width. */
.mj-workflow.mj-order-load-page{width:100%;max-width:none;min-width:0}
.mj-order-load-page > section.panel{width:100%;max-width:none;min-width:0;box-sizing:border-box}
.mj-order-load-page > section.panel > form:not(.search){
  width:100%;max-width:none;min-width:0;box-sizing:border-box;margin:0;
}
.mj-order-load-page > section.panel > form[method="get"]{
  display:grid;grid-template-columns:minmax(0,3fr) minmax(180px,1fr);
  column-gap:16px;align-items:end;
}
.mj-order-load-page > section.panel > form[method="get"] > label{display:flex;flex-direction:column;gap:8px;min-width:0}
.mj-order-load-page > section.panel > form[method="get"] select{width:100%;min-width:0}
.mj-order-load-page > section.panel > form[method="get"] button{width:100%;margin:0;align-self:end}
.mj-order-load-page > section.panel > form[method="post"] > .store-table-wrap{
  width:100%;max-width:100%;overflow-x:auto;
}
.mj-order-load-page > section.panel > form[method="post"] .store-table{
  width:100%;min-width:780px;table-layout:auto;
}
.mj-order-load-page > section.panel > form[method="post"] .store-table th,
.mj-order-load-page > section.panel > form[method="post"] .store-table td{
  text-align:left;vertical-align:middle;padding:12px 16px;
}
.mj-order-load-page > section.panel > form[method="post"] .store-table select{
  width:100%;min-width:180px;max-width:none;
}
.mj-order-load-page > section.panel > form[method="post"] > label{
  display:flex;flex-direction:column;gap:8px;max-width:320px;margin:20px 0 14px;
}
.mj-order-load-page > section.panel > form[method="post"] > label input{width:100%;box-sizing:border-box}
.mj-order-load-page > section.panel > form[method="post"] > button{max-width:340px}
@media(max-width:740px){
  .mj-order-load-page > section.panel > form[method="get"]{grid-template-columns:minmax(0,1fr)}
  .mj-order-load-page > section.panel > form[method="post"] > button{max-width:none;width:100%}
}
/* Completed order document actions: one consistent row, actions aligned right. */
.mj-workflow .mj-doc-row{min-height:58px}
.mj-workflow .mj-doc-actions{margin-left:auto;display:flex;gap:12px;align-items:center;flex-wrap:wrap}
.mj-workflow .mj-doc-actions form{margin-left:0}

