.tab-strip .tab.scan-purchase-tab { background:#eefaff; }
.tab-content.scan-purchase-tab { background:#eefaff; }
.scan-purchase-layout { display:flex; height:100%; min-height:0; min-width:0; overflow:hidden; }
.scan-purchase { box-sizing:border-box; width:40%; flex:0 0 40%; min-width:0; min-height:0; height:100%; display:flex; flex-direction:column; padding:10px 12px; gap:8px; color:#183449; }
.scan-purchase-head { display:flex; flex:0 0 auto; flex-wrap:nowrap; align-items:flex-start; gap:10px; min-height:28px; font-size:12px; }
.scan-purchase-heading { display:flex; flex:1; min-width:0; flex-wrap:wrap; align-items:center; gap:6px 12px; }
#mobileInventoryQrPanel { box-sizing:border-box; flex:0 0 137px; padding:6px; border:1px solid #8fa9bc; border-radius:4px; background:white; }
#mobileInventoryQrLink { display:flex; flex-direction:column; align-items:center; gap:3px; text-align:center; text-decoration:none; }
#mobileInventoryQrImage { display:block; width:123px; height:123px; max-width:none; background:white; image-rendering:pixelated; }
#mobileInventoryQrLink span { font-size:12px; font-weight:bold; color:#075ca2; }
#mobileInventoryQrLink small { font-size:10px; line-height:1.3; color:#506575; }
.scan-purchase-head strong { font-size:17px; }
.scan-purchase-head span { color:#506575; }
.scan-purchase-head a { color:#075ca2; }
.scan-purchase-head a[hidden] { display:none; }
.scan-purchase-input-line { display:flex; flex-wrap:wrap; align-items:center; gap:8px; }
.scan-purchase-input-line label { font-size:14px; font-weight:bold; white-space:nowrap; }
.scan-purchase-input-line input { flex:1; min-width:0; height:36px; padding:5px 8px; border:2px solid #7ca6c4; border-radius:4px; font-size:16px; color:#183449; background:white; }
.scan-purchase-input-line input:focus { outline:2px solid #e8bb53; outline-offset:1px; }
.scan-purchase-input-line button { height:35px; min-width:76px; padding:0 6px; font-size:12px; }
.scan-purchase-message { min-height:18px; color:#305774; font-size:12px; line-height:1.4; overflow-wrap:anywhere; }
.scan-purchase-message.error { color:#a3132e; }
.scan-purchase-choices { display:flex; gap:6px; flex-wrap:wrap; padding:7px; background:#fff4d7; border:1px solid #d9b967; }
.scan-purchase-choices[hidden] { display:none; }
.scan-purchase-choices button { height:auto; padding:5px 8px; white-space:normal; font-size:12px; }
.scan-purchase-table-wrap { flex:1; min-height:0; min-width:0; overflow:auto; border:1px solid #8fa9bc; background:#fff; }
.scan-purchase-table { width:100%; min-width:0; border-collapse:collapse; table-layout:fixed; font-size:12px; }
.scan-purchase-table thead { position:sticky; top:0; z-index:1; }
.scan-purchase-table th { height:30px; padding:3px 2px; background:#49758c; color:white; text-align:center; }
.scan-purchase-table td { height:44px; padding:5px 4px; border-bottom:1px solid #d5e2e9; }
.scan-purchase-table tr:nth-child(even) td { background:#f4fafc; }
.scan-purchase-table col:nth-child(1) { width:34%; }
.scan-purchase-table col:nth-child(2) { width:13%; }
.scan-purchase-table col:nth-child(3) { width:14%; }
.scan-purchase-table col:nth-child(4) { width:11%; }
.scan-purchase-table col:nth-child(5) { width:19%; }
.scan-purchase-table col:nth-child(6) { width:9%; }
.scan-purchase-name { display:block; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font-size:12px; }
.scan-purchase-code { display:block; color:#617584; font-size:10px; margin-top:3px; }
.scan-purchase-table td:nth-child(2) { text-align:right; }
.scan-purchase-table input,.scan-purchase-table select { box-sizing:border-box; width:100%; height:29px; padding:3px 4px; border:1px solid #a0b5c3; background:white; font:inherit; text-align:right; }
.scan-purchase-table .scan-subtotal[data-manual="true"] { background:#fff4d7; border-color:#d9b967; }
.scan-purchase-table input:invalid { border-color:#bd2343; }
.scan-purchase-table button { height:27px; padding:0 4px; color:#9b1831; font-size:12px; }
.scan-purchase-empty td { text-align:center; height:65px; color:#728390; }
.scan-purchase-footer { display:flex; flex-wrap:wrap; align-items:center; gap:6px 12px; min-height:48px; }
.scan-purchase-footer >span { flex:0 0 100%; color:#536b7d; font-size:12px; }
.scan-purchase-footer strong { margin-left:auto; font-size:16px; white-space:nowrap; }
.scan-purchase-footer button { height:36px; min-width:120px; padding:0 10px; background:#17668d; color:white; border:1px solid #125572; border-radius:4px; font-size:14px; font-weight:bold; }
.scan-purchase-footer button:disabled { background:#92acb8; border-color:#92acb8; cursor:default; }
.all-purchase-history { box-sizing:border-box; flex:1; min-width:0; min-height:0; display:flex; flex-direction:column; gap:8px; padding:10px 12px 10px 0; color:#183449; }
.all-purchase-history-head { display:flex; flex-wrap:wrap; align-items:center; gap:6px 12px; min-height:28px; font-size:12px; }
.all-purchase-history-head strong { font-size:17px; }
.all-purchase-history-head span { color:#506575; }
.all-purchase-history-head button { margin-left:auto; }
.all-purchase-history button { padding:4px 9px; font:inherit; border:1px solid #8fa9bc; background:#f5fafc; color:#183449; border-radius:3px; cursor:pointer; }
.all-purchase-history button:disabled { opacity:.6; cursor:default; }
.all-purchase-history-hint { font-size:12px; color:#536b7d; line-height:1.4; }
.all-purchase-history-wrap { flex:1; min-height:160px; overflow:auto; border:1px solid #8fa9bc; background:white; }
.all-purchase-history-table { width:100%; min-width:720px; border-collapse:collapse; table-layout:fixed; font-size:12px; }
.all-purchase-history-table thead { position:sticky; top:0; z-index:1; }
.all-purchase-history-table thead th { background:#49758c; color:white; padding:6px 3px; text-align:center; }
.all-purchase-history-table td { padding:7px 5px; border-bottom:1px solid #d5e2e9; vertical-align:top; overflow-wrap:anywhere; }
.all-purchase-history-table col:nth-child(1) { width:13%; }
.all-purchase-history-table col:nth-child(2) { width:8%; }
.all-purchase-history-table col:nth-child(3) { width:24%; }
.all-purchase-history-table col:nth-child(4) { width:5%; }
.all-purchase-history-table col:nth-child(5) { width:10%; }
.all-purchase-history-table col:nth-child(6) { width:8%; }
.all-purchase-history-table col:nth-child(7) { width:13%; }
.all-purchase-history-table col:nth-child(8) { width:10%; }
.all-purchase-history-table col:nth-child(9) { width:9%; }
.all-purchase-history-table .history-group th { padding:7px 8px; background:#deedf4; color:#183449; text-align:left; font-weight:normal; border-top:1px solid #8fa9bc; line-height:1.5; }
.all-purchase-history-table .history-delete { text-align:center; }
.all-purchase-history-table .history-delete button { color:#9b1831; white-space:nowrap; padding:4px 6px; }
.all-purchase-history-table .history-delete span { font-size:11px; color:#687f8d; }
.all-purchase-history-table .history-group a { color:#075ca2; }
.all-purchase-history-table .history-money { text-align:right; font-variant-numeric:tabular-nums; }
.all-purchase-history-table .history-date { white-space:pre-line; font-variant-numeric:tabular-nums; }
.all-purchase-history-table .history-quantity,.all-purchase-history-table .history-discount { text-align:center; }
.all-purchase-history-table small { display:block; margin-top:3px; color:#687f8d; font-size:10px; }
.all-purchase-history-table .history-pending { color:#965511; font-weight:bold; }
.all-purchase-history-table .history-billed { color:#296648; }
.all-purchase-history-table .history-legacy { color:#647482; }
.all-purchase-history-empty td { padding:25px 8px; color:#728390; text-align:center; }
.all-purchase-history-footer { display:flex; flex-wrap:wrap; align-items:center; gap:6px 12px; min-height:48px; font-size:12px; }
.all-purchase-history-footer >span { flex:1; }
.all-purchase-history-footer >small { flex:0 0 100%; color:#536b7d; }
.all-purchase-history-footer .error { color:#a3132e; }
.all-purchase-history-footer button[hidden] { display:none; }
