/* Build 463 — Purchase UI/UX fit-screen redesign */
.purchaseTerminal463{width:min(1600px,97vw)!important;min-width:0!important;max-height:95dvh!important;padding:clamp(14px,1.6vw,24px)!important;overflow:auto!important;background:#fff!important;color:#10251b!important}
.purchaseTerminalHead463{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;margin-bottom:14px;padding:2px 2px 14px;border-bottom:1px solid #dfe9e2}
.purchaseTerminalHead463 small{display:block;color:#08713e;font-size:10px;font-weight:1000;letter-spacing:1.2px}
.purchaseTerminalHead463 h2{margin:2px 0 4px;font-size:clamp(22px,2vw,30px);line-height:1.05;letter-spacing:.01em}
.purchaseDraftBanner463{margin:5px 0 0!important;max-width:900px;color:#40584a!important;font-size:12px!important;font-weight:750!important;line-height:1.45!important;overflow-wrap:anywhere}
.purchaseHeadMeta463{display:flex;gap:7px;flex-wrap:wrap;justify-content:flex-end}
.purchaseHeadMeta463 span{display:inline-flex;align-items:center;min-height:32px;padding:6px 10px;border:1px solid #cfe1d5;border-radius:999px;background:#f4faf6;color:#174e32;font-size:10px;font-weight:950;letter-spacing:.4px;white-space:nowrap}
.purchaseHeaderForm463{display:grid!important;grid-template-columns:repeat(6,minmax(0,1fr))!important;gap:10px!important;padding:12px!important;border:1px solid #d8e7dd;border-radius:14px;background:#f7fbf8}
.purchaseHeaderForm463 label{min-width:0!important;margin:0!important;color:#274a36!important;font-size:10px!important;font-weight:950!important;letter-spacing:.35px!important}
.purchaseHeaderForm463 input,.purchaseHeaderForm463 select{width:100%!important;min-width:0!important;min-height:43px!important;margin-top:5px!important;padding:9px 10px!important;border:1px solid #b9cec0!important;border-radius:9px!important;background:#fff!important;color:#0d1b13!important;font-size:13px!important;font-weight:750!important;text-overflow:ellipsis}
.purchaseHeaderForm463 input:focus,.purchaseHeaderForm463 select:focus{outline:3px solid #c7ecd5!important;border-color:#148048!important}
.purchasePosGrid463{display:grid!important;grid-template-columns:minmax(0,1.02fr) minmax(0,.98fr)!important;gap:12px!important;margin-top:12px!important;align-items:start}
.purchasePosGrid463>section{min-width:0!important;padding:13px!important;border:1px solid #d5e5da!important;border-radius:15px!important;background:#fbfdfb!important;box-shadow:0 3px 14px rgba(18,75,43,.05)}
.purchaseSectionTitle463{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:10px}
.purchaseSectionTitle463 small{display:block;color:#76887d;font-size:9px;font-weight:1000;letter-spacing:.9px}
.purchaseSectionTitle463 h3{margin:1px 0 0!important;color:#07170d!important;font-size:15px!important;line-height:1.1}
.purchaseSectionTitle463>span{flex:none;padding:5px 8px;border-radius:999px;background:#edf7f0;color:#286142;font-size:9px;font-weight:900;white-space:nowrap}
.purchaseScanBar463 input{min-height:50px!important;border:2px solid #168a45!important;border-radius:11px!important;padding:10px 13px!important;font-size:clamp(14px,1vw,16px)!important;font-weight:850!important;box-shadow:0 0 0 3px rgba(22,138,69,.06)}
.purchaseResults463{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:7px!important;max-height:230px!important;margin:8px 0!important;padding-right:2px!important;overflow:auto!important}
.purchaseResults463 .purchaseResult{min-width:0!important;padding:10px!important;border-radius:10px!important;line-height:1.25!important;overflow:hidden!important}
.purchaseResults463 .purchaseResult b{display:block!important;font-size:12px!important;line-height:1.25!important;white-space:normal!important;overflow-wrap:anywhere!important}
.purchaseResults463 .purchaseResult span,.purchaseResults463 .purchaseResult small,.purchaseResults463 .purchaseResult strong{display:block!important;min-width:0!important;font-size:10px!important;line-height:1.35!important;white-space:normal!important;overflow-wrap:anywhere!important}
.purchaseSelected463{min-height:56px!important;margin:8px 0!important;padding:10px 12px!important;border:1px solid #cfe1d5!important;border-radius:10px!important;background:#eef8f1!important;color:#183d27!important;font-size:11px!important;line-height:1.4!important;overflow-wrap:anywhere!important}
.purchaseSelected463 .selectedCost{margin-top:6px!important;padding:7px 9px!important;font-size:10px!important}.purchaseSelected463 .selectedCost strong{font-size:15px!important}
.purchaseEntry463{display:grid!important;grid-template-columns:minmax(150px,.9fr) minmax(145px,.9fr) minmax(135px,.8fr)!important;gap:8px!important;align-items:end!important;margin-top:8px!important}
.purchaseEntry463 label{min-width:0!important;font-size:10px!important;font-weight:950!important;color:#254d35!important}
.purchaseEntry463 input{min-width:0!important;min-height:44px!important;font-size:15px!important}
.purchaseEntry463 .qtyStepper{grid-template-columns:40px minmax(62px,1fr) 40px!important}.purchaseEntry463 .qtyStepper button{min-height:44px!important;font-size:19px!important}
.purchaseEntry463 .addReceivingBtn{min-height:44px!important;padding:9px 12px!important;font-size:12px!important;font-weight:1000!important;white-space:normal!important;line-height:1.15!important}
.purchaseCart463{max-height:none!important;overflow:visible!important}
.purchaseReceiveList463{display:grid;gap:7px;max-height:430px;overflow:auto;padding-right:2px}
.purchaseReceiveRow463{display:grid;grid-template-columns:minmax(0,1.7fr) 62px 92px 102px 68px;gap:7px;align-items:center;padding:9px;border:1px solid #dbe8df;border-radius:10px;background:#fff}
.purchaseReceiveProduct463{min-width:0}.purchaseReceiveProduct463 b{display:block;font-size:12px;line-height:1.28;color:#0b1c12;white-space:normal;overflow-wrap:anywhere}.purchaseReceiveProduct463 span{display:block;margin-top:2px;color:#65776b;font-size:9px;font-weight:750;white-space:normal;overflow-wrap:anywhere}
.purchaseReceiveMetric463{min-width:0;text-align:right}.purchaseReceiveMetric463 small{display:block;color:#6c7e72;font-size:8px;font-weight:1000;letter-spacing:.35px;white-space:normal}.purchaseReceiveMetric463 strong{display:block;margin-top:2px;color:#10251b;font-size:11px;line-height:1.25;white-space:normal;overflow-wrap:anywhere}.purchaseReceiveMetric463.total strong{color:#08703a}
.purchaseRemove463{min-height:34px!important;padding:6px!important;border-radius:8px!important;font-size:9px!important;font-weight:1000!important;white-space:normal!important}
.purchaseEmpty463{display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:160px;padding:20px;border:1px dashed #bfd2c4;border-radius:11px;background:#f8fbf9;text-align:center}.purchaseEmpty463 b{font-size:14px}.purchaseEmpty463 span{max-width:280px;margin-top:5px;color:#63756a;font-size:10px;line-height:1.4}
.purchaseGrandTotal463{position:sticky!important;bottom:0!important;z-index:2!important;margin-top:9px!important;padding:12px 14px!important;border-radius:11px!important}.purchaseGrandTotal463 span{font-size:10px!important;font-weight:950!important;letter-spacing:.7px}.purchaseGrandTotal463 strong{font-size:clamp(20px,2vw,27px)!important}
.purchasePostActions463{position:sticky!important;bottom:-1px!important;z-index:4!important;display:grid!important;grid-template-columns:minmax(180px,1fr) minmax(100px,.35fr)!important;gap:9px!important;margin:12px -2px -2px!important;padding:11px 2px 2px!important;background:linear-gradient(to bottom,rgba(255,255,255,.8),#fff 30%)!important}.purchasePostActions463 button{min-height:48px!important;font-size:12px!important;font-weight:1000!important}
/* Purchase page: fit the whole screen and allow long names to wrap instead of clipping. */
#main:not(.posScreen) .purchaseTools367{grid-template-columns:repeat(3,minmax(0,1fr));gap:9px!important;margin:12px 0!important}
#main:not(.posScreen) .purchaseTools367 button{min-width:0!important;min-height:94px!important;padding:14px!important;border-radius:13px!important}.purchaseTools367 strong,.purchaseTools367 small{white-space:normal!important;overflow-wrap:anywhere!important}.purchaseTools367 strong{font-size:13px!important}.purchaseTools367 small{font-size:10px!important;line-height:1.35!important}
.purchaseDateFilters{display:grid!important;grid-template-columns:minmax(130px,1fr) minmax(130px,1fr) minmax(120px,.8fr) repeat(3,auto)!important;gap:8px!important;align-items:end!important}.purchaseDateFilters label{min-width:0!important}.purchaseDateFilters input,.purchaseDateFilters select{width:100%!important;min-width:0!important}.purchaseDateFilters button{min-height:42px!important;padding:8px 10px!important;font-size:10px!important;white-space:normal!important}
.historySearchBar{display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;gap:8px!important}.historySearchBar input{min-width:0!important;width:100%!important}
.purchaseSummary{grid-template-columns:repeat(3,minmax(0,1fr))!important}.purchaseSummary>div{min-width:0!important}.purchaseSummary span,.purchaseSummary b{white-space:normal!important;overflow-wrap:anywhere!important}
.purchaseHistoryTable{width:100%!important;min-width:0!important;table-layout:fixed!important}.purchaseHistoryTable th,.purchaseHistoryTable td{padding:8px 6px!important;font-size:11px!important;line-height:1.3!important;white-space:normal!important;overflow-wrap:anywhere!important;word-break:normal!important;vertical-align:top!important}.purchaseHistoryTable th:nth-child(1){width:8%}.purchaseHistoryTable th:nth-child(2){width:9%}.purchaseHistoryTable th:nth-child(3){width:10%}.purchaseHistoryTable th:nth-child(4){width:22%}.purchaseHistoryTable th:nth-child(5){width:5%}.purchaseHistoryTable th:nth-child(6){width:9%}.purchaseHistoryTable th:nth-child(7){width:8%}.purchaseHistoryTable th:nth-child(8){width:8%}.purchaseHistoryTable th:nth-child(9){width:7%}.purchaseHistoryTable th:nth-child(10){width:6%}.purchaseHistoryTable th:nth-child(11){width:8%}
.purchaseHistoryTable .purchaseProductLine{display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;gap:5px!important;align-items:start!important}.purchaseHistoryTable .purchaseProductLine span,.purchaseHistoryTable .purchaseProductLine small{min-width:0!important;font-size:10px!important;line-height:1.3!important;white-space:normal!important;overflow-wrap:anywhere!important}.purchaseActions{min-width:0!important;display:grid!important;grid-template-columns:1fr!important;gap:4px!important}.purchaseActions button{width:100%!important;min-width:0!important;min-height:31px!important;padding:5px!important;font-size:8px!important;white-space:normal!important}.purchaseStatus{min-width:0!important;width:100%!important;padding:5px!important;font-size:8px!important;white-space:normal!important}.qtyPill,.paymentPill{min-width:0!important;padding:5px 7px!important;font-size:9px!important;white-space:normal!important;text-align:center!important}
@media(max-width:1380px){.purchaseHeaderForm463{grid-template-columns:repeat(3,minmax(0,1fr))!important}.purchaseResults463{grid-template-columns:1fr!important}.purchaseReceiveRow463{grid-template-columns:minmax(0,1.5fr) 54px 82px 92px 62px}.purchaseDateFilters{grid-template-columns:repeat(3,minmax(0,1fr))!important}.purchaseDateFilters button{width:100%!important}}
@media(max-width:1050px){.purchaseTerminal463{width:96vw!important;max-height:94dvh!important}.purchasePosGrid463{grid-template-columns:1fr!important}.purchaseReceiveList463{max-height:330px}.purchaseEntry463{grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important}.purchaseEntry463 .addReceivingBtn{grid-column:1/-1!important}.purchaseHistoryTable th,.purchaseHistoryTable td{font-size:10px!important;padding:7px 4px!important}.purchaseHistoryTable th:nth-child(8),.purchaseHistoryTable td:nth-child(8),.purchaseHistoryTable th:nth-child(9),.purchaseHistoryTable td:nth-child(9){display:none!important}.purchaseHistoryTable th:nth-child(4){width:28%}.purchaseHistoryTable th:nth-child(11){width:11%}}
@media(max-width:760px){.purchaseTerminalHead463{flex-direction:column}.purchaseHeadMeta463{justify-content:flex-start}.purchaseHeaderForm463{grid-template-columns:1fr 1fr!important}.purchaseReceiveRow463{grid-template-columns:minmax(0,1fr) repeat(2,minmax(70px,.42fr))!important}.purchaseReceiveMetric463:nth-of-type(2){display:none}.purchaseRemove463{grid-column:3}.purchasePostActions463{grid-template-columns:1fr!important}.purchaseTools367{grid-template-columns:1fr!important}.purchaseDateFilters{grid-template-columns:1fr 1fr!important}.purchaseSummary{grid-template-columns:1fr!important}.historySearchBar{grid-template-columns:1fr!important}.purchaseHistoryPanel .tableScroll{overflow-x:auto!important}.purchaseHistoryTable{min-width:780px!important}}
@media(max-width:480px){.purchaseHeaderForm463{grid-template-columns:1fr!important}.purchaseEntry463{grid-template-columns:1fr!important}.purchaseReceiveRow463{grid-template-columns:minmax(0,1fr) minmax(70px,.45fr)!important}.purchaseReceiveMetric463{display:none!important}.purchaseReceiveMetric463.total{display:block!important}.purchaseRemove463{grid-column:auto}.purchaseSectionTitle463>span{display:none}}
