.order-workspace[hidden],.products-table-wrap[hidden]{display:none!important}
.order-workspace{display:grid;grid-template-rows:minmax(90px,var(--order-split,55%)) 6px minmax(100px,1fr);flex:1;min-height:0;overflow:hidden}
.order-pick-scroll,.order-lines-scroll{min-height:0;overflow:auto;position:relative}
.order-composition{display:flex;flex-direction:column;min-height:0;overflow:hidden}
.order-composition-header{display:flex;align-items:center;gap:10px;height:36px;flex:none;padding:0 12px;border-bottom:1px solid var(--line);font-size:12px}
.order-composition-header strong{font-weight:550}
.order-count,.order-draft-label{font-size:11px;color:var(--muted)}
.order-draft-label{margin-left:auto}
.order-lines-scroll{flex:1}
.order-table{width:100%;min-width:950px;border-collapse:separate;border-spacing:0;font-size:12px;table-layout:fixed;font-variant-numeric:tabular-nums}
.order-table thead{position:sticky;top:0;z-index:2}
.order-table th{height:30px;padding:0 10px;text-align:left;background:#fafafa;border-bottom:1px solid var(--line);font-size:11px;font-weight:500;color:#77777e;white-space:nowrap}
.order-table td{height:36px;padding:0 10px;border-bottom:1px solid #f0f0f2;white-space:nowrap;color:var(--ink)}
.order-table tr:hover td{background:#fafafa}
.order-table .order-name{overflow:hidden;text-overflow:ellipsis}
.order-col-name{width:auto}
.order-col-sku{width:90px}
.order-col-unit{width:48px}
.order-col-stock{width:84px}
.order-col-quantity{width:90px}
.order-col-action{width:36px}
.order-col-request{width:96px}
.order-table .order-number{text-align:right}
.order-table th:nth-child(2){min-width:80px}
.order-table th:nth-child(3){min-width:46px}
.order-table th:nth-child(4){min-width:72px}
.order-quantity{box-sizing:border-box;width:76px;min-width:76px;height:27px;border:1px solid #e4e4e8;border-radius:6px;padding:3px 7px;text-align:right;background:#fff;color:var(--ink);font:inherit;font-size:12px;font-variant-numeric:tabular-nums}
.order-quantity:focus{outline:none;border-color:var(--violet);box-shadow:0 0 0 2px var(--violet-soft)}
.order-quantity[aria-invalid="true"]{border-color:#b45a5a;background:#fff8f8}
.order-table td.order-action{padding:0 8px 0 0}
.order-add,.order-remove{display:grid;place-items:center;box-sizing:border-box;width:27px;height:27px;padding:0;border:0;border-radius:6px;background:#f1edf8;color:var(--violet);cursor:pointer}
.order-remove{background:transparent;color:var(--muted)}
.order-add svg,.order-remove svg{width:15px;height:15px;display:block;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round}
.order-add:hover,.order-remove:hover{background:#e8e0f4;color:var(--violet)}
.order-add:focus-visible,.order-remove:focus-visible{outline:2px solid var(--violet);outline-offset:2px}
.order-add.order-added{background:#e4f0e8;color:#3c7753}
.order-pick-empty,.order-lines-empty{margin:24px 12px;color:var(--muted);font-size:12px;text-align:center}
.order-splitter{cursor:row-resize;background:#f7f7f9;border-block:1px solid var(--line);touch-action:none;position:relative}
.order-splitter::after{content:"";display:block;position:absolute;left:calc(50% - 18px);top:1px;width:36px;height:2px;border-radius:2px;background:#ceced5}
.order-splitter:hover,.order-splitter:focus-visible{background:var(--violet-soft);outline:none}
.order-mode .column-settings{visibility:hidden}
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}

.order-table .sort-button{display:flex;align-items:center;gap:4px;border:0;padding:0;width:100%;height:30px;color:inherit;background:none;font:inherit;text-align:left;cursor:pointer}
.order-table .order-number .sort-button{justify-content:flex-end;text-align:right}
.order-table .sort-button:focus-visible{outline:2px solid var(--violet);outline-offset:-2px}

.order-table td.order-quantity-cell{padding:3px 8px}
.order-quantity-cell .order-quantity{width:100%;min-width:0}
.order-quantity:disabled{background:#f7f7f8;border-color:transparent;color:#b8b8be;cursor:default}
.order-primary-quantity{border-color:#bcaadf;background:#fcfaff;font-weight:550}
.order-primary-quantity:focus{border-color:var(--violet)}

.order-table td.order-client-request{font-size:11px;color:#98989f;font-weight:400}
.order-table th.order-request-heading{color:#98989f}
