.operations-workspace{min-width:0}.workflow-counts{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:14px;margin-bottom:25px}.workflow-counts>button{display:flex;flex-direction:column;align-items:flex-start;gap:12px;padding:18px;text-align:left;color:#6b6688}.workflow-counts>button>span{font-size:12px;line-height:1.5}.workflow-counts strong{font-size:28px;color:#373252}.workflow-counts svg{color:#7964c7}
.workflow-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px;align-items:start}.workflow-card{padding:22px;min-width:0}.workflow-card-top{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap}.workflow-card h2{font-size:20px;margin:17px 0 13px;color:#2e354f;overflow-wrap:anywhere}.workflow-card-main{display:flex;flex-wrap:wrap;gap:10px 18px;font-size:12px;line-height:1.7;color:#87909c}.workflow-card-main>strong{color:#7b65a8;font-size:12px;flex-basis:100%}
.workflow-badge{display:inline-flex;padding:5px 10px;border-radius:6px;background:#eff0f5;color:#7c7f94;font-size:11px;font-weight:600;line-height:1.5}.stage-production{background:#e9f1ff;color:#4e7cb1}.stage-finishing-qc{background:#efebfb;color:#8470b4}.stage-dispatch{background:#fff3df;color:#b38a45}.stage-dispatched{background:#e9f7ed;color:#5c956e}.stage-cancelled{background:#fcecec;color:#b06b6b}
.workflow-details{border:1px solid #e3e5ef;border-radius:10px;background:#fff;margin-top:18px;min-width:0}.workflow-details>summary,.workflow-add-line>summary,.workflow-create>summary{list-style:none;display:flex;align-items:center;gap:10px;cursor:pointer;min-height:48px;padding:13px 16px;color:#6b657e;font-size:13px;font-weight:600}.workflow-details>summary::-webkit-details-marker,.workflow-add-line>summary::-webkit-details-marker,.workflow-create>summary::-webkit-details-marker{display:none}.workflow-details>summary>svg,.workflow-add-line>summary>svg:last-child,.workflow-create>summary>svg{margin-left:auto;flex-shrink:0}.workflow-details small{display:block;font-size:11px;color:#9490a4;font-weight:400;margin-top:5px}.workflow-details[open]>summary{border-bottom:1px solid #e3e5ef}.workflow-details[open]>summary>svg,.workflow-add-line[open]>summary>svg:last-child{transform:rotate(180deg)}.workflow-details-body{padding:18px;min-width:0}.workflow-meta{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;margin:0 0 20px}.workflow-meta>div{min-width:0}.workflow-meta dt{font-size:11px;color:#9392a3;margin-bottom:7px}.workflow-meta dd{font-size:13px;color:#55556c;margin:0;line-height:1.7;overflow-wrap:anywhere}
.workflow-product{padding:17px 0;border-top:1px solid #e8e9f2}.workflow-product:first-child{border-top:0}.workflow-product.cancelled{opacity:.7}.workflow-product-head{display:flex;justify-content:space-between;align-items:flex-start;gap:12px}.workflow-product-head>div:first-child{min-width:0}.workflow-product strong{font-size:14px;line-height:1.6;overflow-wrap:anywhere}.workflow-product p{font-size:12px;line-height:1.8;overflow-wrap:anywhere}.workflow-line-status{display:flex;gap:6px 15px;flex-wrap:wrap;margin-top:12px;color:#8d91a1;font-size:11px;line-height:1.7}.workflow-product .row-actions{flex-shrink:0;gap:3px}.workflow-history{border-top:1px solid #ececf3;padding-top:14px;margin-top:12px}.workflow-history h3{font-size:13px}.workflow-history>div{margin:13px 0;display:flex;flex-direction:column;gap:5px;font-size:12px;color:#7e7793;overflow-wrap:anywhere}.workflow-history span{font-size:11px;color:#9691a2}.workflow-cancelled-note{padding:15px;border:1px solid #eedcdc;border-radius:9px;background:#fff8f8;color:#ad7c7c;font-size:12px}
.workflow-actions{display:flex;align-items:center;flex-wrap:wrap;gap:9px;margin:18px 0 0}.workflow-actions .btn{max-width:100%;white-space:normal;justify-content:center;text-align:center;line-height:1.6;min-height:42px;padding:9px 13px;font-size:12px}.workflow-cancel{color:#b98686!important;border-color:#eedede!important;background:#fff!important}.workflow-toolbar{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:22px 0}.workflow-toolbar>.search-box{max-width:500px;flex:1;min-width:0}.workflow-toolbar input{width:100%;min-width:0;font-size:14px}.workflow-toolbar>span{font-size:12px;color:#9791a8;white-space:nowrap}
.workflow-tabs{display:flex;gap:6px;padding:5px;background:#e9e8f2;border:1px solid #e0deed;border-radius:10px;width:max-content;max-width:100%;overflow-x:auto;margin:20px 0}.workflow-tabs button{border:0;border-radius:7px;padding:11px 17px;color:#8c829e;background:transparent;font-size:13px;min-height:43px;white-space:nowrap;cursor:pointer}.workflow-tabs button.active{color:#7460aa;background:#fff;box-shadow:0 2px 6px #4444660b}
.workflow-create{margin-bottom:25px}.workflow-create>summary{padding:20px 24px;font-size:16px}.workflow-create>form{padding:0 24px 24px}.workflow-order-view{padding:26px;overflow:visible}.workflow-view-head{display:flex;justify-content:space-between;align-items:flex-start;gap:20px}.workflow-view-head>div{min-width:0}.workflow-view-head h1{font-size:27px;margin:12px 0 15px;overflow-wrap:anywhere}.workflow-view-head p{font-size:13px;color:#9792a6;line-height:1.7}.workflow-note{border-left:3px solid #d0c5e9;padding:10px 14px;background:#faf8fd;color:#9990aa;font-size:12px;line-height:1.8;margin:20px 0}.workflow-add-line{border:1px solid #e3e0ef;border-radius:9px;margin-top:22px;background:#fcfbff;overflow:visible}.workflow-line-form{padding:0 18px 18px}.workflow-line-form .select-popover{position:static;box-shadow:none;margin-top:8px}.workflow-empty{text-align:center;padding:40px 20px;color:#9a93a9}.workflow-empty>svg{color:#ab9fc2}.workflow-empty h2{font-size:19px;color:#686076}.workflow-empty p{font-size:13px;line-height:1.8;max-width:500px;margin:10px auto}
@media(max-width:1150px){.workflow-grid{grid-template-columns:minmax(0,1fr)}.workflow-counts{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:760px){.workflow-counts{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.workflow-counts>button{padding:15px}.workflow-card{padding:17px}.workflow-card h2{font-size:18px}.workflow-order-view{padding:18px}.workflow-view-head{flex-direction:column;gap:10px}.workflow-view-head>.btn{align-self:stretch;justify-content:center}.workflow-view-head h1{font-size:24px}.workflow-create>summary{padding:18px}.workflow-create>form{padding:0 17px 18px}.workflow-toolbar{gap:10px}.workflow-toolbar input{font-size:16px}.workflow-details-body{padding:14px}.workflow-actions .btn.primary{flex:1 1 auto}.workflow-line-form{padding:0 13px 15px}.workflow-tabs button{padding:10px 13px}}
@media(max-width:480px){.workflow-meta{grid-template-columns:minmax(0,1fr);gap:13px}.workflow-details>summary{padding:12px}.workflow-product-head{flex-wrap:wrap}.workflow-product-head .row-actions{margin-left:auto}.workflow-counts strong{font-size:24px}}

/* Compact card actions; keep exports in one disclosure, not separate buttons. */
.workflow-download{position:relative;min-width:0}.workflow-download>summary{list-style:none;cursor:pointer}.workflow-download>summary::-webkit-details-marker{display:none}.workflow-download>summary::after{content:'⌄';margin-left:7px}.workflow-download[open]>summary::after{content:'⌃'}.workflow-download-options{display:grid;gap:6px;position:static;padding:7px 0 0}.workflow-download-options>.btn{width:100%;min-width:0}.workflow-actions>a.primary{display:inline-flex;align-items:center;text-decoration:none}.workflow-card .workflow-actions{align-items:flex-start}.workflow-card .workflow-actions>.primary{flex:1 1 150px}.workflow-order-view .workflow-actions{align-items:flex-start}

/* Production queue only: responsive three-column cards and tab counters. */
.workflow-grid.production-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
.production-grid .workflow-card{min-width:0;overflow-wrap:anywhere}
.production-tabs button{display:inline-flex;align-items:center;gap:8px;font-weight:600}
.production-tab-count{display:inline-flex;align-items:center;justify-content:center;min-width:22px;min-height:22px;padding:2px 6px;border-radius:6px;background:#ddd9ed;color:#5d537e;font-size:11px;font-variant-numeric:tabular-nums}
.production-tabs button.active .production-tab-count{background:#eee9fc;color:#6552ce}
@media(max-width:1199px){.workflow-grid.production-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:760px){.workflow-grid.production-grid{grid-template-columns:minmax(0,1fr)}}

/* Grouped order entry: category > thickness > multiple sizes. */
.grouped-order-form{display:flex;flex-direction:column;gap:16px;min-width:0;overflow:visible}
.grouped-order-form .field{margin:0;min-width:0;display:flex;flex-direction:column;gap:6px}
.grouped-order-form .select-popover{position:static!important;width:100%;margin-top:5px;max-width:100%}
.grouped-order-form .select-trigger{width:100%;min-width:0}
.grouped-category{border:1px solid #d9d9ed;background:#f5f4fc;border-radius:12px;padding:16px;display:flex;flex-direction:column;gap:14px;min-width:0;overflow:visible}
.grouped-category>.field{max-width:520px}
.grouped-thickness{border:1px solid #e0e3ef;background:#fff;border-radius:10px;padding:14px;display:flex;flex-direction:column;gap:12px;min-width:0;overflow:visible}
.grouped-thickness>.field{max-width:520px}
.grouped-head{display:flex;align-items:center;justify-content:space-between;gap:8px;flex-wrap:wrap;color:#5145a6}
.grouped-head .btn,.grouped-size-fields>.btn{font-size:12px;min-height:34px;color:#aa4646}
.grouped-size{padding-top:10px;border-top:1px solid #e9e9f1;min-width:0}
.grouped-size-fields{display:grid;grid-template-columns:minmax(0,1.8fr) minmax(0,1fr) auto;gap:12px;align-items:end}
.grouped-size-fields input{width:100%;min-width:0;box-sizing:border-box}
.grouped-thickness>.btn,.grouped-category>.btn,.grouped-add-category>.btn{align-self:flex-start;color:#5d4acb;font-weight:600}
.grouped-footer{display:flex;align-items:center;justify-content:space-between;gap:14px;flex-wrap:wrap;border-top:1px solid #e0e3ef;padding-top:14px}
.grouped-footer small{display:block;margin-top:5px}
.grouped-footer .form-actions{margin:0;display:flex;gap:8px;flex-wrap:wrap}
@media(max-width:640px){.grouped-category{padding:10px}.grouped-thickness{padding:10px}.grouped-size-fields{grid-template-columns:minmax(0,1fr);gap:8px}.grouped-size-fields>.btn{justify-self:start}.grouped-footer,.grouped-footer .form-actions{width:100%}.grouped-footer .form-actions .btn{flex:1;min-height:44px}.grouped-order-form .btn{white-space:normal}.grouped-order-form .select-trigger{white-space:normal}}
