/* v1.0.1: compact stock tables and document workflows. */
#pageInventory.inventory-workspace{max-width:none;padding:24px 28px 18px;background:#f5f7f9;min-width:0}
#inventoryWorkspace{max-width:1680px;margin:0 auto;color:#20312f;font-size:13px;line-height:1.45;--iw-green:#1a3a63;--iw-border:#e1e7e7}
.iw-heading{display:flex;align-items:center;justify-content:space-between;gap:24px;margin-bottom:21px}.iw-heading h1{font-size:27px;line-height:1.2;margin:5px 0 7px;font-weight:740;letter-spacing:-.6px}.iw-eyebrow{font-size:10px;letter-spacing:2px;color:#757c84;font-weight:600}.iw-heading p{margin:0;color:#6b7978;font-size:12px}.iw-dot{margin:0 9px;color:#afb4bb}.iw-permission{margin-left:10px;color:#525f70}.iw-header-actions{display:flex;align-items:center;gap:8px;flex-shrink:0}
.iw-button,.iw-text-button,.iw-icon-button{font:inherit;cursor:pointer;border:0;display:inline-flex;align-items:center;justify-content:center;white-space:nowrap;flex-shrink:0;line-height:1.2;border-radius:6px;transition:background .15s,color .15s;min-height:34px;writing-mode:horizontal-tb!important}.iw-button{padding:8px 13px;border:1px solid #d6dadf;background:white;color:#313943;font-size:12px;font-weight:600;box-shadow:none}.iw-button:hover{background:#f2f3f5;border-color:#aab2bd}.iw-button.iw-primary{color:#fff;border-color:#1a3a63;background:#1a3a63}.iw-button.iw-primary:hover{background:#152f50}.iw-button.iw-danger{color:#ad3e3e;background:#fff8f7;border-color:#e8c2bd}.iw-text-button{padding:5px 7px;min-height:28px;background:transparent;color:#1b3c66;font-size:12px;font-weight:600}.iw-text-button:hover{background:#eff1f4}.iw-text-button.iw-danger{color:#b24e43}.iw-icon-button{width:30px;height:30px;min-height:30px;background:transparent;font-size:21px;color:#6b727b;padding:0}.iw-icon-button:hover{background:#edeff2}button:disabled{cursor:not-allowed}.iw-button:disabled,.iw-text-button:disabled{opacity:.42}.iw-spacer{flex:1}.iw-grow{flex:1!important}.iw-muted{color:#969ba2}.iw-pending{color:#9a691a}
.iw-summary{display:grid;grid-template-columns:1.1fr 1.7fr 1fr 1fr 1fr;margin:0 0 19px;border-top:1px solid #dcdfe4;border-bottom:1px solid #dcdfe4;padding:15px 0;background:transparent}.iw-summary>div{padding:0 22px;border-left:1px solid #dfe2e5;min-width:0}.iw-summary>div:first-child{border-left:0;padding-left:0}.iw-summary span{display:block;color:#747a82;font-size:11px;margin-bottom:7px;font-weight:500}.iw-summary strong{display:block;font-size:24px;font-weight:670;line-height:1.05;font-variant-numeric:tabular-nums;letter-spacing:-.4px}.iw-summary small{font-size:11px;font-weight:500;color:#818890;margin-left:7px}.iw-summary .iw-attention strong{color:#a06b25}
.iw-notice{display:flex;gap:12px;align-items:center;background:#fff8e9;border:1px solid #efe2c2;color:#795924;padding:8px 12px;border-radius:6px;margin-bottom:14px;font-size:12px;line-height:1.5}.iw-notice[hidden]{display:none}.iw-notice strong{font-weight:650}.iw-notice .iw-text-button{margin-left:auto}
.iw-sheet{background:#fff;border:1px solid var(--iw-border);border-radius:6px;overflow:hidden;box-shadow:none}.iw-tabs{display:flex;gap:18px;align-items:stretch;border-bottom:1px solid var(--iw-border);padding:0 20px;background:#fff;overflow-x:auto}.iw-tabs>button{border:0;border-bottom:2px solid transparent;white-space:nowrap;flex-shrink:0;background:none;color:#6b7179;font:inherit;font-weight:600;padding:15px 2px 13px;cursor:pointer;display:flex;align-items:center;gap:7px;writing-mode:horizontal-tb}.iw-tabs>button.active{color:#1a3a63;border-bottom-color:#1a3a63}.iw-tabs>button>span{font-size:10px;color:#828891;background:#f0f2f4;padding:1px 5px;border-radius:4px;font-weight:500}.iw-tabs>button.active>span{color:#1a3a63;background:#e8ebee}
.iw-filters{display:flex;flex-direction:row;gap:9px;align-items:center;padding:13px 16px;background:#fff;border:0;margin:0;border-radius:0;flex-wrap:wrap}.iw-search{display:flex;align-items:center;gap:7px;width:270px;min-width:160px;border:1px solid #dcdfe4;border-radius:5px;padding:0 10px;height:33px;background:#fff}.iw-search>span{color:#798390;font-size:20px;line-height:1}.iw-search input{border:0!important;outline:none!important;box-shadow:none;width:100%;min-width:0;padding:7px 0!important;height:31px;font:inherit;background:transparent!important;color:#28313c}.iw-filters select,.iw-date-filters input,.iw-pagination select{height:33px;border:1px solid #dcdfe4;border-radius:5px;padding:5px 9px;color:#4d5763;background:#fff;font:inherit;font-size:12px;min-width:0}.iw-filters>select{min-width:100px;max-width:155px}.iw-date-filters{display:flex;align-items:center;gap:6px;font-size:11px;color:#878c93}.iw-date-filters[hidden]{display:none}.iw-date-filters input{width:128px;padding:5px}.iw-filters input:focus,.iw-filters select:focus{outline:2px solid #c0c7d1;outline-offset:1px}
.iw-table-scroll{overflow:auto;max-height:min(64vh,760px);min-height:160px;border-top:1px solid #edeff1}.iw-table{width:100%;border-collapse:separate!important;border-spacing:0!important;table-layout:fixed;font-size:12px;margin:0;min-width:950px}.iw-table thead th{background:#f7f8f9;color:#6e757d;padding:10px 14px;height:39px;text-align:left;font-weight:600;border-bottom:1px solid #e3e6e9;border-right:0!important;position:sticky;top:0;z-index:2;font-size:11px;white-space:nowrap}.iw-table thead th button{border:0;background:none;font:inherit;color:inherit;cursor:pointer;padding:0}.iw-table td{padding:8px 14px;border-bottom:1px solid #edeff1;border-right:0!important;height:46px;background:#fff;vertical-align:middle;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:#37414d}.iw-table tr:nth-child(even) td{background:#fff}.iw-table tbody tr:hover td{background:#fafbfc}.iw-table tbody tr:last-child td{border-bottom:0}.iw-table th:first-child,.iw-table td:first-child{width:23%}.iw-table th:last-child,.iw-table td:last-child{width:126px;min-width:126px;max-width:126px}.iw-table th:nth-child(2){width:12%}.iw-table th:nth-child(3){width:12%}.iw-table th:nth-child(4){width:13%}.iw-table td.iw-numeric{text-align:right;font-variant-numeric:tabular-nums}.iw-table .iw-quantity{font-weight:670;color:#262f3a}.iw-table small{display:block;margin-top:3px;color:#8a9097;font-size:10px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;font-weight:400}.iw-table .iw-quantity small,.iw-table .iw-numeric>small:first-child{display:inline;margin:0 0 0 3px}.iw-name-link{border:0;background:none;padding:0;color:#313944;font:inherit;font-weight:650;cursor:pointer;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;text-align:left;display:inline-block;vertical-align:bottom;line-height:1.4}.iw-name-link:hover{text-decoration:underline;color:#1a3a64}.iw-doc-no>span{max-width:100%;overflow:hidden;text-overflow:ellipsis;display:inline-block}.iw-table .iw-actions{text-align:right;white-space:nowrap;background:#fff;position:sticky;right:0;z-index:1;overflow:visible;box-shadow:none;padding:8px}.iw-table thead .iw-actions{z-index:3;background:#f7f8f9}.iw-table .iw-actions>button{vertical-align:middle}.iw-badge{display:inline-block;padding:3px 6px;line-height:1.2;border-radius:4px;font-size:10px;font-weight:500;white-space:nowrap;margin:1px 3px 1px 0;background:#f0f1f3;color:#737980}.iw-badge-normal{background:#eceef1;color:#3f4957}.iw-badge-low,.iw-badge-unpriced{background:#fff3db;color:#a77625}.iw-badge-empty{background:#f0f1f3;color:#879096}.iw-badge-negative{background:#fceceb;color:#b34b45}.iw-badge-voided{background:#f4f0ee;color:#968982}.iw-voided-row{opacity:.66}.iw-in{color:#3f4a58!important}.iw-out{color:#8d5d35!important}.iw-empty{text-align:center!important;height:250px!important;white-space:normal!important}.iw-empty strong{display:block;color:#818890;font-size:14px;font-weight:550;margin-bottom:8px}.iw-empty span{font-size:12px;color:#9da2a9}.iw-pagination{display:flex;flex-direction:row;box-shadow:none;border-radius:0;align-items:center;gap:11px;padding:11px 16px;border:0;border-top:1px solid #e8eaed;color:#8b9097;margin:0;background:#fff;font-size:11px;min-height:55px}.iw-pagination label{display:flex;align-items:center;gap:6px;white-space:nowrap}.iw-pagination select{height:28px;padding:3px 6px}.iw-pagination .iw-button{width:28px;height:28px;min-height:28px;padding:0;font-size:19px}.iw-footnote{margin:11px 0 0;color:#989da3;font-size:10px}
.iw-backdrop{position:fixed;inset:0;background:#13292055;backdrop-filter:blur(2px);z-index:1800;display:flex;align-items:center;justify-content:center;padding:28px;font-family:inherit}.iw-modal{width:min(1040px,100%);max-height:calc(100dvh - 56px);display:flex;flex-direction:column;background:white;border-radius:6px;box-shadow:none;min-width:0;color:#323b46;font-size:13px;overflow:hidden}.iw-modal>header{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;padding:20px 23px 16px;border-bottom:1px solid #e3e6eb;flex-shrink:0}.iw-modal h2{font-size:20px;font-weight:680;line-height:1.3;margin:0 0 7px;color:#2a333e}.iw-modal>header p{font-size:11px;line-height:1.5;margin:0;color:#8a929c}.iw-modal-body{padding:20px 23px;overflow:auto;min-height:0;overscroll-behavior:contain}.iw-modal>footer{display:flex;align-items:center;gap:10px;border-top:1px solid #e3e6eb;padding:14px 23px;background:#fcfcfd;flex-shrink:0;font-size:12px;color:#757e8a}.iw-modal .iw-button{min-height:36px}.iw-modal h3{font-size:13px;font-weight:650;margin:23px 0 10px;color:#495463}.iw-modal h3 small{font-weight:400;color:#9299a2;margin-left:5px}.iw-drawer{margin-left:auto;margin-right:-28px;align-self:stretch;max-height:none;width:min(620px,90vw);border-radius:6px 0 0 6px}.iw-detail-meta{display:flex;gap:28px;flex-wrap:wrap;background:#f6f7f9;border:1px solid #e6e9ed;border-radius:6px;padding:16px}.iw-detail-meta>span{font-size:11px;color:#8b929b;flex:1;min-width:120px}.iw-detail-meta strong{font-size:16px;font-weight:630;display:block;color:#3b4551;margin-top:6px;font-variant-numeric:tabular-nums}.iw-detail-table{overflow:auto;border:1px solid #e4e7eb;border-radius:6px}.iw-detail-table table{width:100%;border-collapse:collapse;font-size:12px}.iw-detail-table th{color:#888e97;background:#f7f8fa;padding:10px;text-align:left;white-space:nowrap;border-bottom:1px solid #e5e8ec;font-size:10px}.iw-detail-table td{padding:10px;border-bottom:1px solid #edeff2;vertical-align:top;line-height:1.5;white-space:normal;background:#fff!important}.iw-detail-table tr:last-child td{border-bottom:0}.iw-detail-table td small{display:block;color:#949aa1;font-size:10px;margin-top:4px;overflow-wrap:anywhere}.iw-note{line-height:1.7;color:#6f7985}.iw-inline-warning{padding:10px 13px;margin:14px 0;background:#fff6e7;border:1px solid #f0e1c6;border-radius:6px;color:#98753d;font-size:12px;line-height:1.7}.iw-full-label{display:flex;flex-direction:column;gap:8px;font-size:12px;color:#656f7d;margin-top:18px}.iw-full-label>input,.iw-full-label>textarea{font:inherit;border:1px solid #dce0e6;border-radius:6px;min-height:37px;padding:9px 10px;color:#37414d;width:100%;box-sizing:border-box;resize:vertical}.iw-document-top{display:flex;gap:17px;align-items:start;margin-bottom:18px}.iw-document-top label{display:flex;flex-direction:column;gap:7px;color:#7e8691;font-size:11px;flex:0 0 170px}.iw-document-top input,.iw-document-top select{height:36px;font:inherit;font-size:12px;border:1px solid #dce0e6;border-radius:5px;padding:7px 10px;color:#3e4855;background:#fff;width:100%;min-width:0}.iw-document-top input[readonly]{background:#f7f8fa;color:#7e8792}.iw-form-table-scroll{overflow:auto;border:1px solid #e0e3e8;border-radius:6px}.iw-form-table{width:100%;border-collapse:collapse;font-size:12px;min-width:760px;table-layout:fixed}.iw-form-table th{padding:9px 10px;background:#f5f6f8;text-align:left;color:#7f8a99;font-weight:550;font-size:10px;border-bottom:1px solid #e1e4e9;white-space:nowrap}.iw-form-table td{padding:9px;border-bottom:1px solid #ebedf0;vertical-align:middle}.iw-form-table tr:last-child td{border-bottom:0}.iw-form-table input,.iw-form-table select{width:100%;height:34px;border:1px solid #d9dde3;border-radius:5px;box-sizing:border-box;padding:6px 8px;font:inherit;font-size:12px;color:#434e5d;background:#fff;min-width:0}.iw-form-table input:focus,.iw-form-table select:focus,.iw-modal textarea:focus{outline:2px solid #bbc3ce;outline-offset:1px}.iw-form-table th:first-child{width:30%}.iw-form-table th:last-child{width:35px}.iw-form-table:has(th:nth-child(7)) th:first-child{width:10%}.iw-form-table:has(th:nth-child(7)) th:nth-child(2){width:25%}.iw-form-table:has(th:nth-child(7)) th:nth-child(3){width:9%}.iw-form-table:has(th:nth-child(7)) th:nth-child(4),.iw-form-table:has(th:nth-child(7)) th:nth-child(5){width:17%}.iw-form-table td.iw-numeric{text-align:right;font-variant-numeric:tabular-nums}.iw-document-help{font-size:11px;color:#848e9c;line-height:1.8;margin:15px 0 0}.iw-document-preview{margin-top:13px}.iw-document-preview>div{display:grid;grid-template-columns:180px 1fr auto;gap:12px;align-items:start;padding:11px 13px;background:#f5f6f7;border:1px solid #e1e4e9;border-radius:6px;margin-bottom:7px;font-size:11px;line-height:1.7}.iw-document-preview strong{font-weight:600;color:#4a5666}.iw-document-preview span{color:#7c8898}.iw-document-preview b{font-weight:600;color:#4d5a6a;white-space:nowrap}.iw-preview-hint{font-size:11px;color:#838e9c;line-height:1.6;margin:5px 0}.iw-form-error{margin:0;padding:12px 23px;background:#fff1eb;border-top:1px solid #f0d7c9;color:#a45630;font-size:12px;line-height:1.6}.iw-form-error[hidden]{display:none}
@media(min-width:1450px){.iw-table{font-size:13px}.iw-table td{padding-top:8px;padding-bottom:8px}}
@media(max-width:1180px){#pageInventory.inventory-workspace{padding:20px}.iw-header-actions{gap:6px}.iw-heading{gap:14px}.iw-heading h1{font-size:24px}.iw-summary strong{font-size:21px}.iw-summary>div{padding:0 14px}.iw-filters .iw-spacer{display:none}.iw-table-scroll{max-height:64vh}.iw-backdrop{padding:20px}.iw-drawer{margin-right:-20px}.iw-modal{max-height:calc(100dvh - 40px)}.iw-drawer{max-height:none}}
@media(max-width:640px){#pageInventory.inventory-workspace{padding:16px 12px}.iw-heading{display:block;margin-bottom:16px}.iw-heading h1{font-size:25px}.iw-heading p{font-size:10px}.iw-header-actions{margin-top:15px;gap:7px;flex-wrap:nowrap;justify-content:flex-start}.iw-header-actions .iw-button{font-size:11px;padding:7px 10px;min-height:32px}.iw-summary{grid-template-columns:1fr 1.7fr;gap:13px 0;padding:13px 0}.iw-summary>div{padding:0 12px;border-left:0}.iw-summary>div:first-child{padding-left:12px}.iw-summary>div:nth-child(2){border-left:1px solid #dfe2e5}.iw-summary>div:nth-child(n+3){display:flex;align-items:center;gap:8px;padding-top:7px}.iw-summary>div:nth-child(n+3) span{margin:0;font-size:10px}.iw-summary>div:nth-child(n+3) strong{font-size:15px}.iw-summary>div:nth-child(n+3) small{display:none}.iw-summary>div:last-child{grid-column:2;grid-row:3}.iw-summary strong{font-size:23px}.iw-summary span{font-size:10px}.iw-tabs{gap:17px;padding:0 13px}.iw-tabs>button{font-size:12px;padding:13px 0 11px;gap:4px}.iw-tabs>button>span{font-size:9px}.iw-filters{gap:7px;padding:11px}.iw-search{width:100%;flex:1 0 100%;box-sizing:border-box}.iw-filters>select{flex:1;min-width:0;max-width:none}.iw-filters .iw-button{font-size:11px;padding:7px 9px}.iw-date-filters{width:100%}.iw-date-filters input{flex:1;width:auto;min-width:0}.iw-table-scroll{max-height:62vh}.iw-table{min-width:850px}.iw-table td{height:51px;padding:9px 12px}.iw-table th:last-child,.iw-table td:last-child{width:105px;min-width:105px;max-width:105px;padding:6px}.iw-table .iw-actions .iw-text-button{padding:5px;font-size:11px}.iw-pagination{font-size:10px;gap:7px;padding:10px}.iw-pagination label{font-size:0;gap:0}.iw-pagination label select{font-size:10px}.iw-notice{flex-wrap:wrap;gap:4px 10px;font-size:10px;padding:8px 10px}.iw-notice span{flex-basis:90%}.iw-notice .iw-text-button{padding:0;min-height:20px}.iw-footnote{font-size:9px;line-height:1.7}.iw-backdrop{padding:12px 8px;align-items:flex-end}.iw-modal{max-height:calc(100dvh - 24px);width:100%;border-radius:6px}.iw-modal>header{padding:15px 14px 12px}.iw-modal h2{font-size:18px}.iw-modal>header p{font-size:10px}.iw-modal-body{padding:14px}.iw-modal>footer{padding:12px 14px;gap:6px}.iw-modal>footer .iw-button{font-size:11px;padding:8px 10px}.iw-modal>footer #iwDocumentTotal{font-size:10px}.iw-drawer{margin:0;max-width:100%;width:100%;border-radius:6px;align-self:flex-end}.iw-detail-meta{gap:14px;padding:13px}.iw-detail-meta>span{min-width:100px}.iw-detail-meta strong{font-size:15px}.iw-document-top{flex-wrap:wrap;gap:12px}.iw-document-top label{flex-basis:100%}.iw-document-preview>div{grid-template-columns:1fr auto;gap:4px 10px;padding:9px 10px}.iw-document-preview>div>span{grid-column:1/-1;grid-row:2}.iw-form-error{padding:10px 14px}.iw-detail-table{font-size:10px}.iw-detail-table td,.iw-detail-table th{padding:8px;font-size:10px}}

@media(max-width:640px){.iw-table th:first-child,.iw-table td:first-child{width:180px}.iw-table th:nth-child(2),.iw-table td:nth-child(2){width:130px}.iw-table .iw-actions{position:static;box-shadow:none}.iw-table-scroll{overscroll-behavior-x:contain}}
