.inventory-filter .purchase-tools{display:inline-flex;gap:8px;align-items:center;margin-left:auto}.inventory-filter .purchase-tools button{height:34px;padding:0 15px;border-radius:6px;font-weight:600}.inventory-filter .purchase-select,.purchase-window .purchase-print{background:#1c687c!important;color:white!important;border-color:#1c687c!important}.inventory-filter .purchase-select.active{background:#e6f3ef!important;color:#146d58!important;border-color:#78bda9!important}.inventory-filter .purchase-review{color:#146d58;background:#f0faf6;border-color:#b2dacc}.purchase-tools button:disabled{opacity:.5}.inventory-table .purchase-check-cell{width:44px!important;min-width:44px!important;max-width:44px!important;text-align:center!important}.purchase-check-cell input{width:17px;height:17px;accent-color:#157c63;cursor:pointer}.purchase-overlay{position:fixed;inset:0;background:#19394f80;backdrop-filter:blur(3px);z-index:1800;display:flex;align-items:center;justify-content:center;padding:24px}.purchase-window{font-family:'Noto Sans Lao',sans-serif;color:#193c52;width:min(1100px,100%);max-height:94vh;background:#fff;border:1px solid #c6dce6;border-radius:12px;box-shadow:0 24px 80px #183d5260;display:flex;flex-direction:column;overflow:hidden}.purchase-window-head{display:flex;align-items:center;justify-content:space-between;padding:18px 24px;background:#edf5f9;border-bottom:1px solid #d0e2eb}.purchase-window-head small{color:#537c90;font-size:11px;letter-spacing:.7px}.purchase-window-head h2{font-size:21px;margin:3px 0 0}.purchase-window-head button{width:34px;height:34px;background:white;border:1px solid #cadee8;border-radius:6px;font-size:24px;color:#4c6b7b}.purchase-content{padding:20px 24px;overflow:auto}.purchase-doc-id{display:flex;justify-content:space-between;gap:16px;margin-bottom:20px;font-size:13px}.purchase-doc-id span{font-size:11px;color:#6d8591}.purchase-meta{display:grid;grid-template-columns:1fr 220px;gap:18px;margin-bottom:20px}.purchase-window label{display:flex;flex-direction:column;gap:7px;font-size:12px;color:#45687c}.purchase-window input,.purchase-window textarea{font:inherit;color:#193c52;background:white;border:1px solid #bad5e3;border-radius:5px;padding:9px 11px;min-width:0}.purchase-window input:focus,.purchase-window textarea:focus{outline:2px solid #b5ded3;outline-offset:1px}.purchase-table-wrap{overflow:auto;border:1px solid #d2e1e9;border-radius:7px;margin-bottom:18px}.purchase-table{width:100%;border-collapse:collapse;font-size:12px}.purchase-table th{background:#edf5f9;text-align:left;font-weight:600;padding:11px 10px;white-space:nowrap}.purchase-table td{border-top:1px solid #dce8ee;padding:10px}.purchase-table td small{display:block;font-size:10px;color:#78919f;margin-bottom:3px}.purchase-table td strong{display:block;font-weight:500;min-width:220px}.purchase-table td input{width:108px;text-align:right;font-weight:600}.purchase-table input[aria-invalid=true]{border-color:#cd4949;background:#fff6f6}.purchase-table .purchase-stock{text-align:right;color:#668492}.purchase-remove{border:0;background:#fff1f0;color:#ba4242;border-radius:5px;width:27px;height:27px;font-size:19px}.purchase-note textarea{resize:vertical}.purchase-footer{padding:14px 24px;background:#f4f8fb;border-top:1px solid #d5e4ec;display:flex;align-items:center;gap:10px}.purchase-footer span{margin-right:auto;font-size:12px;color:#628093}.purchase-footer button{padding:9px 16px;border:1px solid #bdd7e5;border-radius:6px;background:white;color:#315e73;font:inherit;font-size:12px}.purchase-footer button:disabled{opacity:.5}.purchase-error{padding:10px;background:#fff2ef;color:#b03424;border-radius:5px;font-size:12px}.purchase-empty{text-align:center;color:#738c99;padding:20px}@media(max-width:680px){.purchase-overlay{padding:8px}.purchase-meta{grid-template-columns:1fr}.purchase-content{padding:14px}.purchase-window-head{padding:14px}.purchase-footer{padding:12px;flex-wrap:wrap}.purchase-footer span{width:100%}.purchase-doc-id{flex-wrap:wrap}}@media print{.purchase-overlay{display:none!important}.purchase-tools,.purchase-check-cell{display:none!important}}
.purchase-window .purchase-table{table-layout:fixed!important;min-width:700px!important;width:100%!important}.purchase-window .purchase-table th,.purchase-window .purchase-table td{min-width:0!important;max-width:none!important;white-space:normal!important;overflow-wrap:anywhere;box-sizing:border-box}.purchase-window .purchase-table th:nth-child(1),.purchase-window .purchase-table td:nth-child(1){width:44px!important}.purchase-window .purchase-table th:nth-child(2),.purchase-window .purchase-table td:nth-child(2){width:auto!important}.purchase-window .purchase-table th:nth-child(3),.purchase-window .purchase-table td:nth-child(3){width:140px!important}.purchase-window .purchase-table th:nth-child(4),.purchase-window .purchase-table td:nth-child(4){width:85px!important}.purchase-window .purchase-table th:nth-child(5),.purchase-window .purchase-table td:nth-child(5){width:132px!important}.purchase-window .purchase-table th:nth-child(6),.purchase-window .purchase-table td:nth-child(6){width:46px!important}.purchase-window .purchase-table td strong{min-width:0!important;line-height:1.7}.purchase-window .purchase-table th [role=separator]{display:none!important}
.inventory-table:has(.purchase-check-cell){min-width:1100px}.inventory-table:has(.purchase-check-cell) th:nth-child(2),.inventory-table:has(.purchase-check-cell) td:nth-child(2){width:112px!important;min-width:112px!important;max-width:112px!important}.inventory-table:has(.purchase-check-cell) th:nth-child(3),.inventory-table:has(.purchase-check-cell) td:nth-child(3){width:36%!important;min-width:300px!important;max-width:none!important}

/* Stable, React-owned inventory columns; never reuse saved six-column widths for seven columns. */
.desktop-pos .inventory-workspace .inventory-table{table-layout:fixed!important;width:100%!important;min-width:1050px!important;max-width:none!important}
.desktop-pos .inventory-workspace .inventory-table :is(th,td){box-sizing:border-box;min-width:0!important;max-width:none!important;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.desktop-pos .inventory-workspace .inventory-table:not(.inventory-selecting) :is(th,td):nth-child(1){width:116px!important}
.desktop-pos .inventory-workspace .inventory-table:not(.inventory-selecting) :is(th,td):nth-child(2){width:auto!important}
.desktop-pos .inventory-workspace .inventory-table:not(.inventory-selecting) :is(th,td):nth-child(3){width:190px!important}
.desktop-pos .inventory-workspace .inventory-table:not(.inventory-selecting) :is(th,td):nth-child(4){width:260px!important}
.desktop-pos .inventory-workspace .inventory-table:not(.inventory-selecting) :is(th,td):nth-child(5){width:120px!important}
.desktop-pos .inventory-workspace .inventory-table:not(.inventory-selecting) :is(th,td):nth-child(6){width:100px!important}
.desktop-pos .inventory-workspace .inventory-table.inventory-selecting :is(th,td):nth-child(1){width:48px!important;min-width:48px!important;max-width:48px!important;text-align:center!important}
.desktop-pos .inventory-workspace .inventory-table.inventory-selecting :is(th,td):nth-child(2){width:116px!important;min-width:0!important;max-width:none!important}
.desktop-pos .inventory-workspace .inventory-table.inventory-selecting :is(th,td):nth-child(3){width:auto!important;min-width:0!important;max-width:none!important}
.desktop-pos .inventory-workspace .inventory-table.inventory-selecting :is(th,td):nth-child(4){width:190px!important}
.desktop-pos .inventory-workspace .inventory-table.inventory-selecting :is(th,td):nth-child(5){width:260px!important}
.desktop-pos .inventory-workspace .inventory-table.inventory-selecting :is(th,td):nth-child(6){width:120px!important;text-align:right}
.desktop-pos .inventory-workspace .inventory-table.inventory-selecting :is(th,td):nth-child(7){width:100px!important;text-align:right}
.inventory-selecting input[type=checkbox]{width:18px;height:18px;vertical-align:middle;cursor:pointer}
.inventory-filter .purchase-tools{margin-left:10px}.inventory-filter .purchase-review{min-width:155px}.inventory-filter .purchase-review:not(:disabled){background:#157c63;color:white;border-color:#157c63}
