.purchase-workspace{width:100%;max-width:none}.purchase-cancellation-dialog[data-slot=alert-dialog-content]{width:min(40rem,calc(100% - 2rem));grid-template-columns:minmax(0,1fr) auto;max-width:40rem;padding:1rem;padding-inline:1.25rem;gap:.75rem;color:var(--foreground);font-size:13px;line-height:1.5}.purchase-cancellation-dialog [data-slot=alert-dialog-header]{width:100%;grid-column:1/-1;gap:.5rem;text-align:left}.purchase-cancellation-dialog [data-slot=alert-dialog-title]{font-size:16px;font-weight:700;line-height:1.5}.purchase-cancellation-dialog [data-slot=alert-dialog-description]{display:grid;width:100%;gap:.5rem;color:var(--foreground);font-size:13px;line-height:1.5}.purchase-cancellation-dialog [data-slot=alert-dialog-description]>*{margin:0}.purchase-cancellation-dialog .purchase-cancel-document{display:flex;align-items:center;flex-wrap:wrap;gap:.4rem;color:var(--muted-foreground);font-size:12px;font-variant-numeric:tabular-nums}.purchase-cancellation-dialog .purchase-cancel-document strong{font-weight:600;color:var(--primary)}.purchase-cancellation-dialog .purchase-cancel-intro{font-size:13px;font-weight:500}.purchase-cancellation-dialog .purchase-cancel-pools{display:grid;gap:.5rem}.purchase-cancellation-dialog .purchase-cancel-pool{min-width:0;border:0;border-radius:0;background:transparent;overflow:hidden}.purchase-cancellation-dialog .purchase-cancel-pool-title{display:flex;align-items:center;gap:.375rem;padding:0;border-bottom:0;font-size:13px;font-weight:600}.purchase-cancellation-dialog .purchase-cancel-pool-title svg{color:var(--primary);flex:0 0 auto}.purchase-cancellation-dialog .purchase-cancel-removed{display:grid;width:min(100%,20rem);grid-template-columns:repeat(2,minmax(0,1fr));gap:.5rem 1.5rem;padding:.375rem 0 .375rem .5rem}.purchase-cancellation-dialog .purchase-cancel-removed dt{margin-bottom:.15rem;font-size:11.5px;color:var(--muted-foreground)}.purchase-cancellation-dialog .purchase-cancel-removed dd{margin:0;font-size:13px;font-weight:500;font-variant-numeric:tabular-nums}.purchase-cancellation-dialog .purchase-cancel-removed small{font-size:12px;font-weight:500}.purchase-cancellation-dialog .purchase-cancel-changes{display:grid;gap:.15rem;padding:0;border-top:0;background:transparent;color:var(--muted-foreground);font-size:11.5px;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}.purchase-cancellation-dialog .purchase-cancel-changes p{margin:0 0 .15rem;color:var(--foreground);font-weight:600}.purchase-cancellation-dialog .purchase-cancel-due{padding:0;border:0;border-radius:0;background:transparent;color:#92400e;font-size:12px}.purchase-cancellation-dialog .purchase-cancel-refund{min-width:0}.purchase-cancellation-dialog .purchase-cancel-refund legend{width:100%;margin-bottom:.25rem;font-weight:600}.purchase-cancellation-dialog .purchase-cancel-refund legend strong{float:right;color:var(--primary);font-variant-numeric:tabular-nums}.purchase-cancellation-dialog .purchase-cancel-refund [data-slot=select-trigger]{width:100%;height:36px;margin-top:.25rem;font-size:13px}.purchase-cancellation-dialog .purchase-cancel-channels{display:grid;gap:.25rem;margin-top:.5rem;padding:0;border:0;border-radius:0}.purchase-cancellation-dialog .purchase-cancel-channels-title{font-size:12px;font-weight:600;color:light-dark(#000,#f8fafc)}.purchase-cancellation-dialog .purchase-cancel-channel{display:flex;align-items:baseline;flex-wrap:wrap;gap:.2rem .75rem;min-width:0;font-size:13px}.purchase-cancellation-dialog .purchase-cancel-channel>span{flex:1 1 18rem;min-width:0;overflow-wrap:anywhere}.purchase-cancellation-dialog .purchase-cancel-channel strong{margin-left:auto;white-space:nowrap;color:var(--primary);font-weight:500;font-variant-numeric:tabular-nums}.purchase-cancellation-dialog .purchase-cancel-channel-error{color:var(--destructive);font-size:13px}.purchase-cancellation-dialog textarea{height:36px;padding-block:.4375rem;min-height:36px;max-height:36px;field-sizing:fixed;resize:none;font-size:13px;line-height:1.5}.purchase-cancellation-dialog [data-slot=alert-dialog-footer]{padding-top:0;grid-column:2;grid-row:2;align-self:start;border-top:0;gap:.5rem}.purchase-cancellation-dialog [data-slot=alert-dialog-footer] button{min-height:36px;font-size:13px;flex-shrink:0}.purchase-cancellation-dialog>label{grid-column:1;grid-row:2;min-width:0}.purchase-cancellation-dialog>p[role=alert]{grid-column:1/-1}@media (max-width:560px){.purchase-cancellation-dialog[data-slot=alert-dialog-content]{grid-template-columns:minmax(0,1fr)}.purchase-cancellation-dialog [data-slot=alert-dialog-footer],.purchase-cancellation-dialog>label{grid-column:1;grid-row:auto}}.purchase-workspace .page-heading{display:flex;flex-wrap:wrap;align-items:center;gap:.5rem}.purchase-board{min-width:0}.purchase-entry .purchase-entry-title{font-size:1rem;font-weight:700}.purchase-register-heading{display:flex;flex-wrap:wrap;align-items:center;column-gap:1.25rem;row-gap:.5rem}.purchase-register-actions,.purchase-register-title{display:inline-flex;align-items:center}.purchase-register-title{gap:.5rem;white-space:nowrap}.purchase-register-actions{flex-wrap:wrap;gap:.625rem}.purchase-register .purchase-outstanding-count{display:inline-flex;max-width:100%;flex-shrink:0;align-items:center;align-self:center;justify-content:center;gap:.45rem;padding:2px 8px;border:1px solid #fed7aa;border-radius:calc(infinity * 1px);background:#fff7ed;color:#9a3412;font-size:.8125rem;font-weight:400;line-height:1.5;text-align:center;white-space:nowrap;cursor:pointer}.purchase-register .purchase-outstanding-count:hover:not(:disabled){background:#ffedd5;border-color:#fdba74}.purchase-register .purchase-outstanding-count:focus-visible{outline:2px solid var(--ring);outline-offset:2px}.purchase-register .purchase-outstanding-count:disabled{cursor:default}.purchase-register .purchase-outstanding-count strong{font-size:inherit;font-weight:inherit;font-variant-numeric:tabular-nums}.purchase-register .purchase-outstanding-count small{font-size:.75rem;font-weight:inherit}@media screen and (min-width:1101px) and (hover:hover) and (pointer:fine){html:not([data-touch-viewport=true]) .purchase-workspace .purchase-board{align-items:stretch}html:not([data-touch-viewport=true]) .purchase-workspace .purchase-board>.purchase-entry{position:static;overflow:clip}html:not([data-touch-viewport=true]) .purchase-workspace .purchase-board>.purchase-register{contain:size;min-height:0!important;overflow-y:auto}}.purchase-entry .work-form{min-width:0}.purchase-mode-switch{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.4rem;border-bottom:1px solid var(--border);padding:.55rem .7rem}.purchase-mode-switch button{min-width:0}.purchase-scale-hint{border-bottom:1px solid var(--border);padding:.4rem .75rem;color:var(--muted-foreground);font-size:.7rem;line-height:1.4}.purchase-entry .purchase-form-body{padding:.7rem .8rem}.purchase-entry .save-footer{padding:.6rem .8rem}.purchase-entry .payment-split-editor{padding:.5rem}.purchase-step{display:flex;min-width:0;flex-direction:column;gap:.45rem;border-bottom:1px solid color-mix(in srgb,var(--border) 70%,transparent);padding-bottom:.65rem}.purchase-step:last-of-type{border-bottom:0;padding-bottom:0}.purchase-step-heading{display:flex;align-items:center;gap:.45rem}.purchase-step-heading>span{display:grid;width:1.45rem;height:1.45rem;flex:none;place-items:center;border-radius:999px;background:var(--primary);color:white;font-size:.7rem;font-weight:700}.purchase-step-heading-copy{min-width:0}.purchase-step-heading strong{display:block;font-size:.8rem;line-height:1.2}.purchase-step-heading small{display:block;margin-top:.05rem;color:var(--muted-foreground);font-size:.66rem;line-height:1.3}.purchase-step-heading-actions{display:flex;flex:none;margin-left:auto}.purchase-step-content{display:flex;min-width:0;flex-direction:column;gap:.45rem;padding-left:1.9rem}.purchase-step:not(:has(.purchase-step-heading>span)) .purchase-step-content{padding-left:0}.purchase-simple-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.45rem}.purchase-weigh-form .purchase-simple-grid{grid-template-columns:minmax(0,3fr) minmax(0,1fr);grid-template-rows:auto auto auto;align-items:stretch;row-gap:.25rem}.purchase-weigh-form .purchase-simple-grid>div,.purchase-weigh-form .purchase-simple-grid>div>.form-field{display:grid;grid-row:1/span 3;grid-template-rows:subgrid}.purchase-weigh-form .purchase-meta-single{max-width:none}.purchase-entry .purchase-weigh-form .purchase-plate-input{height:44px!important;font-size:16px;padding-inline:.5rem;border-radius:var(--radius-xl);background:var(--popover);box-shadow:none}.purchase-entry .purchase-weigh-complete :is([data-slot=input],[data-slot=select-trigger]){height:40px!important}.purchase-simple-grid>label{display:flex;min-width:0;flex-direction:column;gap:.2rem;font-size:.75rem}.vehicle-weighing-inline{min-width:0}.vehicle-weighing-inline>.work-form{border-bottom:1px solid var(--border)}.vehicle-weighing-queue{padding:.65rem .8rem}.vehicle-weighing-queue>.mt-3{margin-top:.55rem}.vehicle-weighing-queue .rounded-lg{border-radius:.45rem;padding:.55rem}.purchase-history-filters{flex-wrap:wrap;gap:.5rem}.purchase-history-filters label{display:flex;align-items:center;gap:.3rem;font-size:.75rem;white-space:nowrap}.purchase-history-filters label input{width:8.8rem}.purchase-history-filters>input{flex:0 0 11.0592rem;width:11.0592rem;max-width:50%;min-width:0;font-size:.875rem}.purchase-table{min-width:60rem}.purchase-table,.stock-table{table-layout:fixed}.stock-table .stock-item-heading [data-slot=badge]{font-size:.45rem;line-height:.6rem;padding:.075rem .225rem;border-width:.6px}.catalog-directory [data-slot=badge],.stock-item-heading [data-slot=badge]{font-weight:400}.stock-table th{white-space:normal}.stock-history td,.stock-table td{white-space:normal;overflow-wrap:anywhere}.purchase-table td,.purchase-table th{white-space:nowrap;overflow-wrap:normal}.purchase-table small,.stock-history small,.stock-table small{display:block;color:var(--muted-foreground);font-size:.75rem}.purchase-table th:first-child{width:12rem}.purchase-table th:nth-child(2){width:9rem}.purchase-table th:nth-child(3){width:8rem}.purchase-table th:nth-child(4){width:6.5rem}.purchase-table th:nth-child(5){width:8.5rem}.purchase-table td,.purchase-table th{padding-inline:.65rem}.purchase-table td{vertical-align:top}.purchase-member,.purchase-payment,.purchase-products{display:block;white-space:normal;overflow-wrap:anywhere}.purchase-products{margin-top:0;color:var(--primary);font-size:.75rem}.purchase-member,.purchase-products{line-height:1.25rem}.purchase-payment{font-size:.75rem;line-height:1.5}.purchase-table .purchase-history-meta{margin-top:.15rem;font-size:.75rem;line-height:1.4;font-weight:400;white-space:normal;overflow-wrap:anywhere}.purchase-history-date,.purchase-history-total,.purchase-number{display:block;white-space:nowrap}.purchase-table .purchase-history-date{margin-top:.15rem;font-size:.75rem;line-height:1.4}.purchase-history-total,.purchase-table .purchase-cancelled-status{font-size:inherit;font-weight:400}.purchase-cancelled-row{background:#fff9f7}.purchase-table td:nth-child(4),.purchase-table td:nth-child(5),.purchase-table th:nth-child(4),.purchase-table th:nth-child(5),.stock-table td:not(:first-child){text-align:right;font-variant-numeric:tabular-nums}.purchase-document{display:block;height:auto!important;min-height:0!important;padding:0!important;font-family:inherit;font-weight:400;font-size:.8125rem!important;line-height:1.25rem}.work-dialog.receipt-dialog{width:calc(100vw - 1rem);max-width:54rem!important}.work-dialog .purchase-form-body{gap:.4rem}.purchase-customer-search{height:auto;border:1px solid var(--input)}.purchase-form-body .purchase-customer-search{position:relative;overflow:visible}.purchase-form-body .purchase-customer-search:has([data-slot=command-list]){z-index:20}.purchase-customer-search [data-slot=command-input-wrapper]{border-bottom:0;padding:0 .5rem}.purchase-customer-search [data-slot=command-list]{border-top:1px solid var(--border);max-height:10rem}.purchase-form-body .purchase-customer-search [data-slot=command-list]{position:absolute;top:calc(100% + .25rem);right:-1px;left:-1px;max-height:10rem;padding:.25rem;border:1px solid var(--border);border-radius:.75rem;background:var(--popover);box-shadow:0 8px 20px rgb(0 0 0/12%)}.purchase-customer-search [data-slot=command-item]{cursor:pointer}.purchase-entry .purchase-form-body .purchase-customer-search [data-slot=command-input-wrapper],.purchase-entry .purchase-form-body .purchase-customer-search [data-slot=command-input]{height:42px;font-size:16px}.purchase-entry .purchase-form-body .purchase-line :is(input,[data-slot=select-trigger]){height:40px!important;font-size:16px}.purchase-entry textarea:is([aria-label="หมายเหตุรับซื้อ"],[aria-label="หมายเหตุใบพักชั่ง"]){field-sizing:fixed;height:40px;min-height:40px;max-height:40px;resize:none;overflow-y:auto}@layer purchase-note{.purchase-entry textarea:is([aria-label="หมายเหตุรับซื้อ"],[aria-label="หมายเหตุใบพักชั่ง"]){font-size:14px!important}}.purchase-entry-customer-dialog textarea:is([aria-label="ที่อยู่"],[aria-label="หมายเหตุ"]){field-sizing:fixed;height:4rem;min-height:4rem;max-height:4rem;resize:none;overflow-y:auto}.purchase-payment-picker{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,16rem),1fr));gap:.4rem;padding:.6rem;border:1px solid var(--border);border-radius:.4rem;font-size:.875rem}.purchase-payment-picker>h3,.purchase-payment-picker>p{grid-column:1/-1}.purchase-payment-picker h3{font-weight:600}.payment-split-editor.purchase-payment-picker{grid-template-columns:minmax(0,1fr)}.purchase-entry .payment-split-editor.payment-split-compact{gap:.2rem;padding:.45rem;font-size:.8rem}.purchase-entry .payment-split-compact h3{font-size:.875rem;line-height:1.25}.purchase-entry .payment-split-compact .space-y-2{display:grid;gap:.2rem}.purchase-entry .payment-split-compact .payment-split-row{grid-template-columns:minmax(0,1fr) minmax(3.5rem,.315fr) 1.45rem;gap:.2rem}.purchase-entry .payment-split-compact [data-slot=input],.purchase-entry .payment-split-compact [data-slot=select-trigger]{min-height:40px;height:40px!important;padding-block:.12rem}.purchase-entry .payment-split-compact [data-slot=input]{font-size:16px!important}.purchase-entry .payment-split-compact [data-slot=select-trigger]{font-size:.875rem!important}html[data-touch-viewport=true] .purchase-entry .payment-split-compact [data-slot=select-trigger]{font-size:16px!important}.purchase-entry .payment-split-compact button[aria-label^="ลบช่องทาง"]{width:1.45rem;height:1.45rem}.purchase-entry .payment-split-compact .text-sm,.purchase-entry .payment-split-compact .text-xs,.purchase-entry .payment-split-compact p{font-size:.75rem;line-height:1.3}.purchase-step:has(.payment-split-editor) .purchase-step-heading strong{font-size:1rem}.purchase-weigh-complete .payment-split-row{grid-template-columns:minmax(0,1fr) minmax(4.9rem,.405fr) auto}.payment-split-row [data-slot=select-trigger]{min-width:0}.payment-split-row [data-slot=select-value]{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.receipt-void{border:2px solid #b84432;padding:.5rem;color:#982b20}.purchase-context{display:flex;flex-wrap:wrap;justify-content:space-between;gap:.3rem .75rem;font-size:.75rem;overflow-wrap:anywhere}.purchase-customer-account{min-height:20.8px;align-items:center;justify-content:flex-start;gap:.375rem}.purchase-customer-edit{width:.845rem!important;height:.845rem!important;min-height:.845rem!important;gap:.13rem!important;padding:0!important;border:0;box-shadow:none;font-size:.377rem!important;border-radius:.26rem}.purchase-customer-edit>svg{width:.78585rem!important;height:.78585rem!important;color:var(--primary)}.purchase-line-tools{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:.5rem}.purchase-line-tools>div{width:14rem;max-width:60%}.purchase-line{display:grid;grid-template-columns:repeat(2,minmax(0,1fr)) 2rem;gap:.35rem;align-items:center;border-bottom:1px solid var(--border);padding-bottom:.5rem}.purchase-product{grid-column:1/3;grid-row:1}.purchase-line>button,.purchase-line>span:last-child{grid-column:3;grid-row:1}.purchase-line>div:not(:first-child){grid-row:2}.purchase-line>div:nth-child(3){grid-column:2/4}.purchase-line>div{min-width:0}.purchase-line [data-slot=input-group]{width:100%}.purchase-line input:not([role=combobox]){text-align:right}.mobile-field{display:block;font-size:.6875rem;color:var(--muted-foreground);margin-bottom:.2rem}.purchase-total{display:flex;justify-content:space-between;flex-wrap:wrap;gap:.3rem 1rem;font-size:.875rem}.purchase-total strong{font-size:1.125rem}.receipt-toolbar{display:flex;flex-wrap:wrap;align-items:center;gap:.4rem;padding:0 .75rem}.receipt-toolbar>[role=combobox]{width:12rem}.purchase-receipt{padding:.5rem;color:#111;font-size:12px}.purchase-receipt header{text-align:center;margin-bottom:1rem}.purchase-receipt p{margin:.3rem 0;overflow-wrap:anywhere}.purchase-receipt table{width:100%;border-collapse:collapse;margin:1rem 0;table-layout:fixed}.purchase-receipt td,.purchase-receipt th{padding:.4rem .25rem;border-bottom:1px solid #bbb;text-align:right;overflow-wrap:anywhere}.purchase-receipt td:first-child,.purchase-receipt th:first-child{text-align:left;width:32%}.purchase-receipt tr{break-inside:avoid}.purchase-receipt .receipt-total{margin:.7rem 0}.purchase-receipt .receipt-copy{margin-left:.3rem}.stock-history{min-width:32rem}.stock-history td:not(:first-child){text-align:right}.stock-history-snapshot{display:inline-flex;justify-content:flex-end;align-items:center;gap:.3rem;font-variant-numeric:tabular-nums}.stock-history th:not(:first-child),.stock-table th:not(:first-child){text-align:right}.stock-table th:first-child{width:24%}.stock-table th:nth-child(6){width:6rem}.stock-table input{margin-left:auto;width:5.5rem;text-align:right}.stock-table input,.stock-table td{font-variant-numeric:tabular-nums}.stock-table th:last-child{width:6.5rem}.stock-table .stock-actions{text-align:right}.work-dialog.stock-transfer-dialog{width:calc(100vw - 1rem);max-width:44rem}.stock-transfer-fields{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,13rem),1fr));align-items:start;gap:.6rem}.stock-transfer-fields input{text-align:right;font-variant-numeric:tabular-nums}.stock-transfer-context{display:flex;flex-wrap:wrap;gap:.4rem .75rem;padding:.5rem;background:var(--secondary);border-radius:.4rem;font-size:.875rem;overflow-wrap:anywhere}.stock-transfer-context strong{flex-basis:100%}.stock-transfer-total{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:.4rem;font-size:.875rem}.stock-transfer-total strong{color:var(--primary);font-variant-numeric:tabular-nums}.stock-transfer-summary{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.5rem}.stock-transfer-summary p{display:flex;flex-direction:column;gap:.2rem;font-size:.875rem;padding:.5rem;border:1px solid var(--border);border-radius:.4rem;overflow-wrap:anywhere}.stock-transfer-summary small{color:var(--muted-foreground)}.stock-transfer-body textarea{min-height:3.5rem}.stock-transfer-dialog .form-footer{display:flex;justify-content:flex-end;gap:.5rem;flex-shrink:0;padding-top:.6rem;border-top:1px solid var(--border)}.stock-transfer-form .stock-transfer-body{gap:.75rem}.stock-transfer-source-card{overflow:hidden;border:1px solid var(--border);border-left:3px solid var(--primary);border-radius:.6rem;background:#fff}.stock-transfer-source-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:.75rem;padding:.7rem .8rem;border-bottom:1px solid var(--border)}.stock-transfer-source-heading>div{display:grid;min-width:0;grid-template-columns:auto 1fr;align-items:baseline;gap:.1rem .5rem}.stock-transfer-source-heading>div>span{grid-column:1/-1;color:var(--muted-foreground);font-size:.7rem}.stock-transfer-source-heading strong{min-width:0;font-size:1rem;overflow-wrap:anywhere}.stock-transfer-source-heading p{color:var(--muted-foreground);font-size:.8rem;font-weight:600}.stock-transfer-live{display:inline-flex;flex-shrink:0;align-items:center;gap:.25rem;padding:.2rem .45rem;border-radius:999px;background:var(--secondary);color:var(--muted-foreground);font-size:.68rem;font-weight:600;white-space:nowrap}.stock-transfer-live svg{width:.75rem;height:.75rem}.stock-transfer-live[data-live=true]{background:color-mix(in srgb,var(--primary) 11%,white);color:var(--primary)}.stock-transfer-source-metrics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr))}.stock-transfer-source-metrics p{display:flex;min-width:0;flex-direction:column;gap:.1rem;padding:.55rem .8rem;border-right:1px solid var(--border)}.stock-transfer-source-metrics p:last-child{border-right:0}.stock-transfer-source-metrics span{color:var(--muted-foreground);font-size:.68rem}.stock-transfer-source-metrics strong{font-size:.85rem;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}.stock-transfer-field{display:grid;min-width:0;align-content:start;gap:.3rem}.stock-transfer-field>label{display:flex;min-height:1.25rem;align-items:center;gap:.2rem;font-size:.875rem;font-weight:600;line-height:1.25}.stock-transfer-control-slot{min-width:0;min-height:2.25rem}.stock-transfer-control-slot>*{min-width:0}.stock-transfer-weight-control{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:stretch;gap:.4rem}.stock-transfer-weight-control>button{height:100%;min-height:2.25rem}.stock-transfer-field>textarea{min-height:4.25rem;background:#fff;resize:vertical}.stock-transfer-field.field-invalid textarea{border-color:var(--destructive);box-shadow:0 0 0 1px color-mix(in srgb,var(--destructive) 35%,transparent)}.stock-transfer-impact{overflow:hidden;border:1px solid var(--border);border-radius:.6rem;background:#fff}.stock-transfer-impact-heading{display:flex;align-items:center;justify-content:space-between;gap:.5rem;padding:.45rem .65rem;border-bottom:1px solid var(--border);background:#fff}.stock-transfer-impact-heading strong{font-size:.8rem}.stock-transfer-impact-heading span{color:var(--muted-foreground);font-size:.68rem;text-align:right}.stock-transfer-impact-grid{display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr) minmax(0,1fr);align-items:center;gap:.4rem;padding:.6rem}.stock-transfer-impact-grid>div{display:flex;min-width:0;min-height:4rem;flex-direction:column;justify-content:center;gap:.15rem;padding:.45rem .55rem;border:1px solid var(--border);border-radius:.45rem;background:white}.stock-transfer-impact-grid small,.stock-transfer-impact-grid span{color:var(--muted-foreground);font-size:.68rem;overflow-wrap:anywhere}.stock-transfer-impact-grid strong{color:var(--foreground);font-size:.9rem;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}.stock-transfer-impact-grid .stock-transfer-cost{border-left:2px solid var(--primary);background:#fff}.stock-transfer-impact-grid .stock-transfer-cost strong{color:var(--primary)}.stock-transfer-arrow{width:1rem;height:1rem;color:var(--muted-foreground)}.stock-transfer-helper{color:var(--muted-foreground);font-size:.72rem;line-height:1.45}.stock-transfer-footer{flex-direction:column;align-items:stretch}.stock-transfer-footer>div{display:flex;justify-content:flex-end;gap:.5rem}.stock-transfer-error{width:100%;padding:.45rem .55rem;border-radius:.4rem;background:#fff4f2;color:var(--destructive);font-size:.78rem}@media (max-width:800px){.stock-table thead{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}.stock-table,.stock-table tbody{display:block}.stock-table tr{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,8rem),1fr));gap:.4rem .75rem;padding:.65rem}.stock-table td{display:flex;flex-direction:column;align-items:flex-end;gap:.15rem;padding:0!important;font-size:.875rem!important}.stock-table td:first-child{grid-column:1/-1;align-items:flex-start}.stock-table .stock-actions{justify-content:flex-end}.stock-table td[data-label]:before{content:attr(data-label);font-size:.75rem;color:var(--muted-foreground)}.stock-table td input{height:2rem}.stock-transfer-impact-grid{grid-template-columns:minmax(0,1fr) auto minmax(0,1fr)}.stock-transfer-impact-grid .stock-transfer-cost{grid-column:1/-1;min-height:auto}}.finance-table .finance-amount[data-out=true]{color:#b84432}@media (max-width:1100px){.purchase-board{grid-template-columns:minmax(0,1fr)}.purchase-entry{position:static}}.stock-table .stock-actions{white-space:nowrap}.stock-actions-menu{min-width:9.5rem}.stock-actions-menu [data-slot=dropdown-menu-item]{min-height:2rem}.stock-more-action{border-color:#ee7621!important;color:#ee7621!important}.stock-more-action:focus-visible,.stock-more-action:hover{background:color-mix(in srgb,#ee7621 8%,white)!important;color:#ee7621!important}.stock-item-heading{display:flex;min-width:0;align-items:center;flex-wrap:wrap;gap:.1rem .3rem;line-height:1.25}.stock-product-name{min-width:0;font-weight:600}.stock-group-name,.stock-product-name{font-size:.75rem;overflow-wrap:anywhere}.stock-group-name{color:var(--foreground);font-weight:750}.stock-item-heading small{margin:0;font-size:.62rem;font-weight:500}.stock-board{min-width:0}.stock-entry{container:stock-entry/inline-size}.stock-entry,.stock-register{min-width:0}.stock-entry .finance-section-title{display:flex;align-items:center;justify-content:space-between;gap:.5rem;border-bottom:1px solid var(--border);padding:.65rem .8rem}.stock-entry .finance-section-title h1{font-size:16px;font-weight:700}.stock-entry .finance-section-title h1>svg{color:var(--primary)}.stock-entry .finance-section-title{flex-wrap:wrap}.stock-entry .finance-section-title .stock-catalog-actions{margin-inline-start:auto;justify-content:flex-end}.stock-entry .finance-section-title .stock-catalog-actions>[data-slot=button]{height:28px;min-height:28px;max-width:100%;padding:.125rem .375rem;gap:.25rem;font-size:11px}.stock-entry .finance-section-title .stock-catalog-actions>[data-slot=button] svg{width:1rem;height:1rem}.stock-entry .finance-section-title>span,.stock-register .finance-section-title>span{min-width:0;max-width:48%;color:var(--muted-foreground);font-size:.7rem;text-align:right;overflow-wrap:anywhere}.stock-register{min-height:20rem}@media screen and (min-width:1101px) and (hover:hover) and (pointer:fine){html:not([data-touch-viewport=true]) .stock-board>.stock-entry{position:static;overflow:clip}html:not([data-touch-viewport=true]) .stock-board>.stock-register{min-height:max(20rem,var(--stock-entry-height,0px));max-height:max(20rem,var(--stock-entry-height,0px),calc(100dvh - 8rem));overflow-y:auto}}.stock-register>.form-body{padding:.55rem .7rem .7rem}.stock-register .stock-history{min-width:31rem}.stock-history-product{display:block;margin-bottom:.08rem;color:var(--foreground);font-size:.75rem}@container stock-entry (max-width:54rem){.stock-entry .stock-table thead{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}.stock-entry .stock-table,.stock-entry .stock-table tbody{display:block;min-width:0}.stock-entry .stock-table tr{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.4rem .5rem;margin:.45rem;border:1px solid var(--border);border-radius:.5rem;padding:.55rem .6rem}.stock-entry .stock-table td{display:flex;min-width:0;flex-direction:column;align-items:flex-start;gap:.1rem;border:0;padding:0!important;text-align:left!important;font-size:.75rem!important}.stock-entry .stock-table td:first-child{grid-column:1;grid-row:1}.stock-entry .stock-table td[data-label]:before{content:attr(data-label);display:block;height:2.5em;color:var(--muted-foreground);font-size:.65rem;line-height:1.25}.stock-entry .stock-table td input{width:5rem;max-width:100%;height:1.85rem;margin-left:0;padding-inline:.5rem}.stock-entry .stock-table .stock-actions{grid-column:-2/-1;grid-row:1;align-self:start;justify-self:end;padding-top:0!important}.stock-entry .stock-more-action{height:1.85rem;padding-inline:.55rem;font-size:.7rem}}@container stock-entry (min-width:28rem) and (max-width:54rem){.stock-entry .stock-table tr{grid-template-columns:repeat(4,minmax(0,1fr)) 6.25rem}.stock-entry .stock-table td:first-child{grid-column:1/-2}.stock-entry .stock-table .stock-actions{grid-row:1/span 2}}@media (max-width:800px){.stock-table .stock-actions{justify-content:flex-end}}@media (max-width:1100px){.production-board.stock-board{grid-template-columns:minmax(0,1fr)}.production-board.stock-board>.stock-entry{position:static}}.stock-adjustment-form .stock-adjustment-body{gap:.75rem}.stock-adjustment-field{display:grid;gap:.3rem}.stock-adjustment-field>small{color:var(--muted-foreground);font-size:.7rem}.stock-adjustment-field textarea{min-height:4.25rem;resize:vertical}.stock-adjustment-field.field-invalid textarea{border-color:var(--destructive);box-shadow:0 0 0 1px color-mix(in srgb,var(--destructive) 35%,transparent)}.stock-adjustment-impact{overflow:hidden;border:1px solid var(--border);border-radius:.6rem}.stock-adjustment-impact-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:.4rem;padding:.6rem}.stock-adjustment-impact-grid>div{display:flex;min-width:0;min-height:3.9rem;flex-direction:column;justify-content:center;gap:.15rem;padding:.45rem .55rem;border:1px solid var(--border);border-radius:.45rem;background:white}.stock-adjustment-impact-grid span{color:var(--muted-foreground);font-size:.68rem;overflow-wrap:anywhere}.stock-adjustment-impact-grid strong{font-size:.86rem;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}.stock-adjustment-impact-grid .stock-adjustment-retained{background:color-mix(in srgb,var(--primary) 5%,white)}.stock-adjustment-impact-grid .stock-adjustment-retained strong{color:var(--primary)}.reconcile-table{table-layout:fixed}.reconcile-table th:first-child{width:48%}.reconcile-table td:not(:first-child),.reconcile-table th:not(:first-child){text-align:right;font-variant-numeric:tabular-nums}.reconcile-table td{overflow-wrap:anywhere}.reconcile-table small{display:block;margin-top:.15rem;white-space:normal;color:var(--muted-foreground)}.reconcile-balance{background:var(--secondary);font-weight:700}.reconcile-warning{background:#fff8e7;color:#725018;padding:.5rem .65rem;border-radius:.4rem;font-size:.8125rem}.stock-reconciliation{gap:.6rem;font-size:.8125rem}.reconcile-filters{display:grid;grid-template-columns:minmax(0,1fr) minmax(8rem,.45fr);gap:.5rem;align-items:center}.reconcile-filters>*{min-width:0}.reconcile-filters>p{grid-column:1/-1}.reconcile-overview{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.5rem;border:1px solid var(--border);background:var(--secondary);border-radius:.6rem;padding:.65rem}.reconcile-overview p{min-width:0}.reconcile-overview span{display:block;color:var(--muted-foreground);font-size:.75rem;margin-bottom:.2rem}.reconcile-overview strong{display:block;font-size:1rem;overflow-wrap:anywhere;font-variant-numeric:tabular-nums}.reconcile-overview small{font-size:.7rem;font-weight:400}.reconcile-section-heading{display:flex;align-items:center;justify-content:space-between;gap:.4rem}.reconcile-section-heading h3{font-weight:600}.reconcile-section-heading button{font-size:.75rem;padding:.25rem .5rem}.stock-reconciliation .reconcile-table td,.stock-reconciliation .reconcile-table th{padding:.4rem .55rem;font-size:.8125rem}.stock-reconciliation .reconcile-bills{min-width:36rem}.stock-reconciliation .reconcile-bills td{white-space:normal}.reconcile-opening{background:color-mix(in srgb,var(--secondary) 55%,white)}.reconcile-scope-note{color:var(--muted-foreground);font-size:.75rem}.stock-reconciliation .stock-transfer-summary p{padding:.55rem}@media (max-width:480px){.reconcile-filters{grid-template-columns:minmax(0,1fr)}.reconcile-overview{padding:.5rem;gap:.35rem}.reconcile-overview strong{font-size:.8125rem}.stock-reconciliation .reconcile-table td,.stock-reconciliation .reconcile-table th{padding:.35rem;font-size:.75rem}}.stock-adjustment-body>*,.stock-reconciliation>*{flex-shrink:0}.work-dialog.stock-cycle-dialog{width:calc(100vw - 1rem);max-width:34rem;max-height:calc(100dvh - 1rem)}.stock-cycle-body{gap:.5rem;padding:.65rem;font-size:.8rem}.sale-dispatch-form input,.stock-cycle-body input,.stock-cycle-body textarea{background:#fff}.stock-cycle-body textarea{min-height:3rem}.stock-cycle-body .stock-transfer-source-card{padding:.6rem}.stock-cycle-body .stock-transfer-source-heading strong{font-size:.95rem}.stock-cycle-body .stock-transfer-source-heading{padding:.3rem}.stock-cycle-body .stock-transfer-source-metrics p{padding:.4rem}.stock-cycle-body .stock-cycle-allocation{padding:.5rem}.stock-cycle-target{display:flex;justify-content:space-between;gap:.5rem;margin-top:.35rem;flex-wrap:wrap;font-variant-numeric:tabular-nums}.stock-cycle-body .stock-adjustment-field>small,.stock-cycle-body .stock-transfer-helper,.stock-cycle-body .stock-transfer-impact-heading>span{display:none}.sale-cycle-action{margin:.4rem;height:1.9rem;font-size:.75rem}.stock-cycle-body>*{flex-shrink:0}.stock-cycle-loading{display:flex;align-items:center;justify-content:space-between;gap:.75rem;padding:.75rem;border:1px solid var(--border);border-radius:.55rem;background:#fff}.stock-cycle-allocation,.stock-cycle-outcome{overflow:hidden;border:1px solid var(--border);border-radius:.6rem;background:#fff}.stock-cycle-metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:.45rem;padding:.65rem}.stock-cycle-metrics>div{display:flex;min-width:0;min-height:3rem;flex-direction:column;justify-content:center;gap:.15rem;padding:.45rem .55rem;border:1px solid var(--border);border-radius:.45rem;background:#fff}.stock-cycle-metrics span{color:var(--muted-foreground);font-size:.68rem;overflow-wrap:anywhere}.stock-cycle-metrics strong{font-size:.88rem;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}.stock-cycle-metrics .stock-cycle-highlight{border-left:3px solid var(--primary);background:color-mix(in srgb,var(--primary) 5%,white)}.stock-cycle-metrics .stock-cycle-highlight strong{color:var(--primary)}.stock-cycle-allocation .compact-table{margin:0}.stock-cycle-allocation td small{display:block;color:var(--muted-foreground)}.stock-cycle-blocker{padding:.5rem .6rem;border:1px solid color-mix(in srgb,var(--destructive) 28%,var(--border));border-radius:.45rem;background:#fff4f2;color:var(--destructive);font-size:.76rem}.stock-cycle-status{display:inline-flex;padding:.22rem .5rem;border-radius:999px;background:color-mix(in srgb,var(--primary) 10%,white);color:var(--primary);font-size:.7rem;font-weight:700;white-space:nowrap}.stock-cycle-detail{gap:.75rem}.stock-cycle-document-summary{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:.45rem}.stock-cycle-document-summary p{display:flex;min-width:0;flex-direction:column;gap:.15rem;padding:.55rem .65rem;border:1px solid var(--border);border-radius:.45rem;background:#fff}.stock-cycle-document-summary span{color:var(--muted-foreground);font-size:.7rem}.stock-cycle-document-summary strong{font-size:.9rem;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}.purchase-meta-single{max-width:34rem}.purchase-meta-single>.form-field{display:grid;grid-template-columns:max-content minmax(0,1fr);align-items:baseline;column-gap:.5rem}.purchase-meta-single .form-field-label{grid-column:1;grid-row:1}.purchase-selected-customer{display:flex;min-width:0;grid-column:2;grid-row:1;align-items:baseline;flex-wrap:wrap;gap:.125rem .25rem;font-size:.6875rem;font-weight:400;line-height:1.3;color:var(--muted-foreground);overflow-wrap:anywhere}.purchase-selected-customer .purchase-selected-customer-type{padding:0 .25rem;border:1px solid transparent;border-radius:999px;font-size:.625rem;font-weight:inherit}.purchase-meta-single :is(.purchase-customer-search,.field-error){grid-column:1/-1}.purchase-price-modes{display:flex;height:1.3rem;gap:.25rem;margin-top:.2rem;margin-bottom:.35rem}.purchase-price-modes button{border:1px solid var(--border);border-radius:.3rem;padding:.15rem .35rem;background:#fff;color:var(--muted-foreground);font-size:.65rem;line-height:1.3;white-space:nowrap}.purchase-line-v3>div:nth-child(3)>.mobile-field{display:flex;align-items:center;height:1.3rem;margin-top:.2rem;margin-bottom:.35rem}.purchase-price-modes button[aria-pressed=true]{border-color:var(--primary);background:var(--secondary);color:var(--primary)}.purchase-price-modes button:focus-visible{outline:2px solid var(--primary);outline-offset:2px}.purchase-price-explanation{display:block;margin-top:.2rem;color:var(--muted-foreground);font-size:.65rem}.purchase-line.purchase-line-v3{grid-template-columns:repeat(2,minmax(0,1fr)) 2rem;align-items:start;gap:.45rem;border:1px solid var(--border);border-radius:.55rem;padding:.55rem;background:#fff}.purchase-line.purchase-line-v3>div{grid-column:auto;grid-row:auto}.purchase-line.purchase-line-v3>.purchase-product{grid-column:1/3;grid-row:auto}.purchase-line.purchase-line-v3>button,.purchase-line.purchase-line-v3>span:last-child{grid-column:3;grid-row:1;align-self:center}.purchase-line.purchase-line-v3>.purchase-stock-live{grid-column:1/-1}.purchase-stock-live{display:flex;min-width:0;align-items:center;flex-wrap:wrap;gap:.2rem .65rem;border-radius:.35rem;background:var(--secondary);padding:.3rem .45rem;color:var(--muted-foreground);font-size:.66rem;font-variant-numeric:tabular-nums}.purchase-stock-live span{display:flex;min-width:0;gap:.2rem}.purchase-stock-live strong{color:var(--foreground);font-size:.72rem}.purchase-stock-live small{margin-left:auto;color:var(--primary);font-size:.62rem;white-space:nowrap}.purchase-line-invalid{border-color:var(--destructive)!important;background:#fffafa!important}.purchase-total-v3{display:grid;width:100%;grid-template-columns:repeat(4,minmax(0,1fr));align-items:end;gap:.35rem}.purchase-total-v3>span{display:flex;min-width:0;flex-direction:column;gap:.05rem;color:var(--muted-foreground);font-size:.64rem;line-height:1.25}.purchase-total-v3>span strong{color:var(--foreground);font-size:.78rem;line-height:1.25;overflow-wrap:anywhere}.purchase-total-v3>.purchase-grand-total{align-items:flex-end;text-align:right;color:var(--primary)}.purchase-total-v3>.purchase-grand-total strong{color:var(--primary);font-size:.82rem}.work-dialog.purchase-weigh-dialog{max-width:52rem!important}.purchase-weigh-complete .purchase-form-body{gap:.65rem}.purchase-weigh-ticket{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:.45rem 1rem;border:1px solid var(--border);border-radius:.55rem;padding:.65rem .75rem;background:color-mix(in srgb,var(--secondary) 45%,white)}.purchase-weigh-ticket>div{display:flex;min-width:0;flex-direction:column;gap:.05rem}.purchase-weigh-ticket small{color:var(--muted-foreground);font-size:.64rem;line-height:1.3}.purchase-weigh-ticket strong{min-width:0;overflow-wrap:anywhere;font-size:.82rem;line-height:1.3}.purchase-weigh-ticket-customer{text-align:right}.purchase-weigh-ticket-meta{grid-column:1/-1;flex-direction:row!important;flex-wrap:wrap;gap:.3rem!important;padding-top:.35rem;border-top:1px solid color-mix(in srgb,var(--border) 70%,transparent)}.purchase-weigh-ticket-meta span{border-radius:999px;background:white;padding:.18rem .45rem;color:var(--muted-foreground);font-size:.66rem;line-height:1.3}.purchase-weigh-metrics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.4rem}.purchase-weigh-metrics>span{display:flex;min-width:0;flex-direction:column;gap:.12rem;border:1px solid var(--border);border-radius:.45rem;padding:.5rem .6rem;background:white}.purchase-weigh-metrics small{color:var(--muted-foreground);font-size:.64rem;line-height:1.3}.purchase-weigh-metrics strong{overflow-wrap:anywhere;font-size:.8rem;line-height:1.3;font-variant-numeric:tabular-nums}.purchase-weigh-metrics>.purchase-weigh-net{border-color:color-mix(in srgb,var(--primary) 30%,var(--border));background:var(--secondary)}.purchase-weigh-metrics>.purchase-weigh-net strong{color:var(--primary)}.purchase-weigh-complete .payment-split-editor{background:white}.purchase-weigh-complete .purchase-step-content>.field-invalid,.purchase-weigh-complete .purchase-step-content>div:has(>label){max-width:none}.purchase-weigh-dialog .save-footer{gap:.55rem}.stock-inspection-documents{min-height:0;overflow-y:auto}.stock-inspection-documents .stock-document-pending{position:relative;min-height:max(18rem,var(--stock-document-height,18rem))}.stock-document-loading{position:sticky;top:0;flex-shrink:0;height:var(--stock-document-height,18rem);display:grid;place-items:center;pointer-events:none}.stock-document-loading svg{width:2rem;height:2rem;color:var(--muted-foreground);opacity:.38;stroke-width:1.5;animation:stock-document-spin 1.2s linear infinite}@keyframes stock-document-spin{to{transform:rotate(1turn)}}@media (prefers-reduced-motion:reduce){.stock-document-loading svg{animation-duration:3s}}.stock-group-filter{display:grid;grid-template-columns:max-content minmax(0,1fr);align-items:center;gap:.5rem;padding:.6rem .8rem;border-bottom:1px solid var(--border)}.stock-group-filter>label{display:block;margin:0;white-space:nowrap;color:var(--muted-foreground);font-size:.75rem}.stock-group-filter [role=combobox]{width:100%}@media (max-width:480px){.workspace-main:has(>.stock-workspace){padding-inline:.125rem}.stock-group-filter{padding-inline:.2rem}.stock-group-filter [role=combobox]{height:auto;min-height:2.5rem}.stock-group-filter [role=combobox]>span:first-child{white-space:normal;overflow:visible;overflow-wrap:anywhere;text-align:left}}@container stock-entry (max-width:20rem){.stock-entry .stock-table tr{grid-template-columns:repeat(2,minmax(0,1fr))}}.stock-table .stock-actions{width:7.25rem;vertical-align:top}.stock-table .stock-actions>.stock-more-action{width:6.25rem}.stock-loss-field{width:6.25rem;margin-top:.35rem}.stock-table .stock-loss-field [role=combobox]{display:grid;grid-template-columns:1rem minmax(0,1fr) 1rem;width:100%;height:3rem!important;padding-inline:.375rem;gap:.25rem}.stock-loss-value{grid-column:2;display:flex;flex-direction:column;align-items:center;gap:.1rem;text-align:center}.stock-table .stock-loss-field [role=combobox]>svg{grid-column:3}.stock-loss-title{color:var(--muted-foreground);font-size:.625rem;line-height:1.2}.stock-loss-value [data-slot=select-value]{font-size:.875rem;line-height:1.2}@container stock-entry (max-width:54rem){.stock-entry .stock-table .stock-actions{width:6.25rem;align-items:stretch}}.stock-history-scroll{width:100%;max-width:100%;min-width:0;overflow-x:auto;overscroll-behavior-x:contain;scrollbar-width:auto}.stock-history-scroll:focus-visible{outline:2px solid var(--ring);outline-offset:-2px}.stock-history-scroll [data-slot=table-container]{overflow:visible}.stock-register .stock-history-scroll .stock-history{min-width:48rem}input.purchase-price-today{color:#a16207;font-weight:600}@media screen{.purchase-products>.purchase-product-name{display:inline-block;max-width:100%;vertical-align:top}}.purchase-history-list{--purchase-history-blue:light-dark(#246bb2,#8ac6ff);--purchase-history-green:light-dark(#14734e,#72deb4);--purchase-history-purple:light-dark(#7953bb,#c7a5ff);--purchase-history-red:light-dark(#b02e3b,#ffa4af)}.purchase-history-item{display:grid;grid-template-columns:2rem minmax(0,1fr) minmax(0,auto);align-items:start;gap:.625rem;padding:.75rem 1rem;border-top:1px solid var(--border);font-size:.8125rem;line-height:1.5}.purchase-history-icon{display:grid;place-items:center;width:2rem;height:2rem;border-radius:.65rem;color:var(--purchase-history-green);background:color-mix(in srgb,var(--purchase-history-green) 9%,var(--card))}.purchase-history-icon svg{width:1.125rem;height:1.125rem}.purchase-history-content{min-width:0}.purchase-history-heading,.purchase-history-metadata{display:flex;flex-wrap:wrap;align-items:baseline;gap:.125rem .375rem;overflow-wrap:anywhere}.purchase-history-customer{font-size:.875rem;font-weight:500}.purchase-history-customer-type,.purchase-history-member-no,.purchase-history-status{font-size:.75rem;font-weight:400}.purchase-history-customer-type{color:var(--purchase-history-purple);border-radius:.25rem;padding-inline:.375rem;background:color-mix(in srgb,var(--purchase-history-purple) 7%,var(--card))}.purchase-history-amount>span,.purchase-history-detail-state,.purchase-history-facts dt,.purchase-history-member-no,.purchase-history-metadata{color:var(--muted-foreground)}.purchase-history-facts{display:flex;flex-wrap:wrap;gap:.25rem .875rem;margin-top:.375rem}.purchase-history-facts>div{display:flex;flex-wrap:wrap;gap:0 .25rem;min-width:0;max-width:100%}.purchase-history-facts dd{min-width:0;overflow-wrap:anywhere}.purchase-history-product{display:inline-block;max-width:100%}.purchase-history-channel{flex-basis:100%}.purchase-history-caption,.purchase-history-channel dd{color:var(--muted-foreground)}.purchase-history-metadata{margin-top:.25rem;font-size:.75rem}.purchase-history-metadata .purchase-document{display:inline;white-space:normal;text-align:left}.purchase-history-detail-state{display:block;font-size:.75rem}.purchase-history-amount{text-align:right;font-variant-numeric:tabular-nums}.purchase-history-amount>span{display:block;font-size:.75rem}.purchase-history-amount>strong{display:block;font-size:.875rem;font-weight:500;overflow-wrap:anywhere}.purchase-history-amount small{font-size:.75rem;font-weight:400;color:var(--muted-foreground)}.purchase-history-list [data-purchase-value=product]{color:var(--purchase-history-green)}.purchase-history-list [data-purchase-value=weight]{color:var(--purchase-history-blue)}.purchase-history-list [data-purchase-value=unit-price]{color:light-dark(#7c3aed,#c4b5fd);font-size:.8125rem;font-weight:400}.purchase-history-total-weight{font-weight:500}.purchase-history-total-weight dt{font-weight:400;color:var(--foreground)}.purchase-history-list [data-purchase-value=amount]{color:var(--purchase-history-green)}.purchase-history-item[data-cancelled=true]{background:color-mix(in srgb,var(--purchase-history-red) 3%,var(--card))}.purchase-history-item[data-cancelled=true] [data-purchase-value]{color:var(--purchase-history-red)}@media (max-width:640px){.purchase-history-item{grid-template-columns:1.75rem minmax(0,1fr);padding-inline:.625rem;gap:.5rem}.purchase-history-icon{width:1.75rem;height:1.75rem}.purchase-history-amount{grid-column:2;text-align:left}.purchase-history-amount>span,.purchase-history-amount>strong{display:inline}.purchase-history-amount>span{margin-right:.375rem}}.purchase-history-item{grid-template-columns:minmax(0,1fr) minmax(0,auto)}.purchase-history-customer-summary{font-size:.75rem;font-weight:400;color:var(--muted-foreground)}.purchase-history-customer-type{padding-inline:0;background:transparent;border-radius:0}.purchase-history-heading-divider{color:var(--muted-foreground)}@media (max-width:640px){.purchase-history-item{grid-template-columns:minmax(0,1fr)}.purchase-history-amount{grid-column:1}}.purchase-history-facts{align-items:baseline}.purchase-history-facts>div{display:block}.purchase-history-facts dd,.purchase-history-facts dt{display:inline}.purchase-history-facts dd{margin-inline-start:.25rem}.purchase-history-channel{flex-basis:auto}.purchase-history-member-no{font-size:.6875rem}.purchase-history-list{container:purchase-history/inline-size}@container purchase-history (max-width: 1280px){.purchase-history-facts,.purchase-history-heading,.purchase-history-metadata{display:block}.purchase-history-customer-summary,.purchase-history-status{display:inline-block;white-space:nowrap}.purchase-history-channel,.purchase-history-facts>div,.purchase-history-product{display:inline}.purchase-history-facts>div+div:before{content:" · ";color:var(--muted-foreground);white-space:pre}.purchase-history-facts>div:nth-child(2),.purchase-history-product [data-purchase-value=product],.purchase-history-product-weight{display:inline-block;max-width:100%;vertical-align:baseline}.purchase-history-facts>div:nth-child(2),.purchase-history-product-weight{white-space:nowrap}}@container purchase-history (max-width: 640px){.purchase-history-item{grid-template-columns:minmax(0,1fr);gap:.375rem}.purchase-history-amount{grid-column:1;text-align:left}.purchase-history-amount>span,.purchase-history-amount>strong{display:inline}.purchase-history-amount>span{margin-right:.375rem}}.purchase-history-item{grid-template-columns:minmax(0,1fr)}.purchase-history-header{display:flex;flex-wrap:wrap;align-items:baseline;justify-content:space-between;gap:.25rem 1rem}.purchase-history-heading{min-width:0;max-width:100%}.purchase-history-amount{max-width:100%;text-align:left;white-space:nowrap}.purchase-history-amount>span,.purchase-history-amount>strong{display:inline}.purchase-history-amount>span{margin-right:0}.purchase-history-amount>strong{font-weight:700}.purchase-history-amount>small,.purchase-history-amount>span{font-size:.875rem;font-weight:500;color:var(--foreground)}.purchase-history-open{padding:0;border:0;background:transparent;font:inherit;color:inherit;text-align:left;cursor:pointer}.purchase-history-amount.purchase-history-open:hover,.purchase-history-heading.purchase-history-open:hover .purchase-history-customer{text-decoration:underline;text-underline-offset:.2em}.purchase-history-open:focus-visible{outline:2px solid var(--ring);outline-offset:2px;border-radius:.2rem}.stock-activity-list{--stock-activity-green:light-dark(#14734e,#72deb4);--stock-activity-red:light-dark(#b02e3b,#ffa4af);--stock-activity-blue:light-dark(#246bb2,#8ac6ff);--stock-activity-purple:light-dark(#7953bb,#c7a5ff);container:stock-activity/inline-size}.stock-activity-item{border-top:1px solid var(--border);padding:.75rem 1rem;font-size:.8125rem;font-weight:400;line-height:1.5;overflow-wrap:anywhere}.stock-activity-header{display:flex;flex-wrap:wrap;align-items:baseline;justify-content:space-between;gap:.25rem 1rem;line-height:1.25rem}.stock-activity-open{display:inline;max-width:100%;padding:0;height:auto;min-height:0;border:0;background:transparent;box-shadow:none;font:inherit;color:inherit;text-align:left;white-space:normal;text-decoration:none}.stock-activity-list [data-slot=button]:is(.stock-activity-open,.stock-activity-document){height:auto;min-height:0}.stock-activity-product{color:var(--stock-activity-blue);font-size:.875rem;font-weight:500}.stock-activity-group{color:var(--stock-activity-green)}.stock-activity-heading [data-slot=status-badge]{display:inline-block;vertical-align:middle;text-align:center;font-size:.525rem;padding:.0875rem .35rem;font-weight:400;white-space:normal}.stock-activity-amount{font-size:.875rem;font-weight:500;color:var(--foreground)}.stock-activity-amount strong{font-weight:700}.stock-activity-amount small{font-size:inherit}.stock-activity-facts dd,.stock-activity-number-unit{display:inline-block;white-space:nowrap}.stock-activity-facts{margin-top:.25rem;line-height:1.25rem}.stock-activity-facts dt,.stock-activity-facts>div{display:inline}.stock-activity-facts>div+div:before{content:" · ";color:var(--muted-foreground)}.stock-activity-facts dd{font-weight:400}.stock-activity-facts .stock-before-after-label{color:light-dark(#111111,#f3f4f6);font-weight:400}.stock-activity-facts dt,.stock-activity-metadata,.stock-activity-note{color:var(--muted-foreground)}.stock-activity-list [data-stock-change=incoming]{color:var(--stock-activity-green)}.stock-activity-list [data-stock-change=outgoing]{color:var(--stock-activity-red)}.stock-activity-list [data-stock-change=zero]{color:var(--muted-foreground)}.stock-activity-list [data-stock-value=weight]{color:var(--stock-activity-blue)}.stock-activity-list [data-stock-value=cost]{color:var(--stock-activity-purple)}.stock-activity-list [data-stock-value=unit-price-after],.stock-activity-list [data-stock-value=unit-price-before]{color:var(--stock-activity-purple);font-weight:400}.stock-activity-metadata,.stock-activity-note{margin-top:.25rem;font-size:.75rem;line-height:1.25rem}.stock-activity-document{display:inline;color:var(--stock-activity-green);height:auto;min-height:0;padding:0;text-align:left;white-space:normal}a.stock-activity-open,button.stock-activity-open{cursor:pointer}a.stock-activity-amount:hover,a.stock-activity-heading:hover .stock-activity-product,button.stock-activity-amount:hover,button.stock-activity-heading:hover .stock-activity-product{text-decoration:underline;text-underline-offset:.2em}.stock-activity-open:focus-visible{outline:2px solid var(--ring);outline-offset:2px;border-radius:.2rem}.stock-activity-empty{padding:1rem;text-align:center;color:var(--muted-foreground)}@container stock-activity (max-width: 640px){.stock-activity-item{padding-inline:.625rem}}.stock-movement-label{color:var(--stock-kind-colour,var(--muted-foreground))}.stock-activity-list [data-stock-kind]{color:var(--stock-kind-colour);border-color:var(--stock-kind-border);background:var(--stock-kind-background)}[data-stock-kind=purchase]{--stock-kind-colour:#065f46;--stock-kind-border:#a7f3d0;--stock-kind-background:#ecfdf5}[data-stock-kind=production_output]{--stock-kind-colour:#115e59;--stock-kind-border:#99f6e4;--stock-kind-background:#f0fdfa}[data-stock-kind=transfer_in]{--stock-kind-colour:#075985;--stock-kind-border:#bae6fd;--stock-kind-background:#f0f9ff}[data-stock-kind=transfer_out]{--stock-kind-colour:#3730a3;--stock-kind-border:#c7d2fe;--stock-kind-background:#eef2ff}[data-stock-kind=sale]{--stock-kind-colour:#1e40af;--stock-kind-border:#bfdbfe;--stock-kind-background:#eff6ff}[data-stock-kind=production_input]{--stock-kind-colour:#5b21b6;--stock-kind-border:#ddd6fe;--stock-kind-background:#f5f3ff}[data-stock-kind=stock_adjustment]{--stock-kind-colour:#92400e;--stock-kind-border:#fde68a;--stock-kind-background:#fffbeb}[data-stock-kind=stock_loss]{--stock-kind-colour:#9a3412;--stock-kind-border:#fed7aa;--stock-kind-background:#fff7ed}[data-stock-kind=cycle_reconcile]{--stock-kind-colour:#854d0e;--stock-kind-border:#d97706;--stock-kind-background:#fef3c7}[data-stock-kind=purchase_void]{--stock-kind-colour:#b91c1c;--stock-kind-border:#fecaca;--stock-kind-background:#fef2f2}[data-stock-kind=sale_return]{--stock-kind-colour:#9f1239;--stock-kind-border:#fecdd3;--stock-kind-background:#fff1f2}[data-stock-kind=sale_document_return]{--stock-kind-colour:#9d174d;--stock-kind-border:#fbcfe8;--stock-kind-background:#fdf2f8}[data-stock-kind=stock_adjustment_reversal]{--stock-kind-colour:#155e75;--stock-kind-border:#a5f3fc;--stock-kind-background:#ecfeff}[data-stock-kind=production_input_return]{--stock-kind-colour:#86198f;--stock-kind-border:#f5d0fe;--stock-kind-background:#fdf4ff}[data-stock-kind=production_output_reversal]{--stock-kind-colour:#991b1b;--stock-kind-border:#fca5a5;--stock-kind-background:#fff1f1}[data-stock-kind=production_completed_input_return]{--stock-kind-colour:#881337;--stock-kind-border:#fda4af;--stock-kind-background:#fff5f6}[data-stock-kind=group_close]{--stock-kind-colour:#374151;--stock-kind-border:#e5e7eb;--stock-kind-background:#f3f4f6}.purchase-history-list .purchase-history-customer-type,.purchase-history-list .purchase-history-status{display:inline-block;max-width:100%;padding:1.4px 5.6px;border:1px solid var(--border);border-radius:9999px;font-size:8.4px;font-weight:400;line-height:1.25;vertical-align:middle;text-align:center;white-space:normal;overflow-wrap:anywhere}.purchase-history-list .purchase-history-customer-type{color:var(--muted-foreground);background:var(--muted)}.purchase-history-list .purchase-history-status{align-self:center;color:#065f46;background:#ecfdf5;border-color:#a7f3d0}.purchase-history-status[data-purchase-status=cancelled]{color:#b91c1c;background:#fef2f2;border-color:#fecaca}.purchase-history-customer-type[data-kind=farmer]{color:#786653;background:#f7f4f0;border-color:#e9e1d7}.purchase-history-customer-type[data-kind=merchant]{color:#696382;background:#f3f2f8;border-color:#e2dfeb}.purchase-history-customer-type[data-kind=female_merchant]{color:#836472;background:#f8f1f4;border-color:#ebdfe5}.dark .purchase-history-customer-type[data-kind=farmer]{color:#c4b6a8;background:#302a25;border-color:#4c4138}.dark .purchase-history-customer-type[data-kind=merchant]{color:#bcb7cf;background:#2b2835;border-color:#44404f}.dark .purchase-history-customer-type[data-kind=female_merchant]{color:#c9b2bc;background:#32292e;border-color:#4d3e45}.purchase-history-status[data-payment-status]{display:inline-flex;align-items:center;justify-content:center;vertical-align:middle}.purchase-history-status[data-payment-status=unpaid]{color:#92400e;background:#fffbeb;border-color:#fde68a}.purchase-history-status[data-payment-status=partial]{color:#9a3412;background:#fff7ed;border-color:#fed7aa}.purchase-history-status[data-payment-status=paid]{color:#065f46;background:#ecfdf5;border-color:#a7f3d0}.purchase-deferred-summary,.purchase-payable-total,.purchase-payment-summary{margin-block:.4rem;line-height:1.6;overflow-wrap:anywhere;color:var(--foreground);font-weight:400}.purchase-deferred-summary strong,.purchase-payable-total strong,.purchase-payment-summary strong{font-weight:500}.purchase-payable-total strong,.purchase-payment-summary[data-payment-status=partial] strong,.purchase-payment-summary[data-payment-status=unpaid] strong{color:#92400e}.purchase-payment-summary[data-payment-status=paid] strong{color:#047857}.purchase-later-payment,.purchase-payment-history-row{min-width:0;padding-block:.8rem;border-block-start:1px solid var(--border);line-height:1.6;overflow-wrap:anywhere}.purchase-later-payment fieldset{display:grid;gap:.8rem;margin-block:.6rem}.purchase-payment-history-row p{margin-block:.25rem}.purchase-payment-history-row[data-reversed=true],.purchase-receipt [data-payment-reversed=true]{color:#b42335}.purchase-deferred-summary,.purchase-deferred-summary strong,.purchase-payable-total,.purchase-payable-total strong{font-size:12px}.purchase-deferred-summary [data-amount-role=paid]{color:#047857}.purchase-deferred-summary [data-amount-role=due]{color:#b45309}.payment-split-editor .purchase-deferred-summary{display:grid;gap:.15rem;margin-bottom:0}.payment-split-editor .purchase-deferred-summary>p{margin:0;line-height:1.5}.purchase-deferred-summary [data-amount-role]{display:inline-block;max-width:100%}.payment-split-editor .purchase-deferred-summary .purchase-deferred-allocation{font-size:11px}.payment-split-editor .purchase-pending-amount-note{color:#b45309}.purchase-deferred-bill-total>strong{color:#2563eb}.purchase-payment-summary-box[data-payment-status]{margin-block:.35rem;padding:.3rem .5rem;border:1px solid var(--border);border-radius:.4rem;background:#f8faf9;break-inside:avoid}.purchase-payment-heading{display:flex;flex-wrap:wrap;align-items:center;gap:.2rem .4rem;min-width:0;color:var(--foreground);font-weight:500}.purchase-payment-heading [data-slot=status-badge]{align-self:center;font-size:8.4px;font-weight:400;line-height:1.25;padding:1.4px 5.6px}.purchase-payment-summary-box .purchase-payment-totals{margin-block:.2rem 0;line-height:1.3;font-weight:400}.purchase-payment-summary-box .purchase-payment-heading{margin:0;line-height:1.25}.purchase-payment-totals>span{display:inline-block;max-width:100%}.purchase-payment-summary-box[data-payment-status] strong{font-size:16px;font-weight:500;font-variant-numeric:tabular-nums}.purchase-payment-summary-box[data-payment-status] [data-amount-role=paid]{color:#047857;font-size:14px}.purchase-payment-summary-box[data-payment-status] [data-amount-role=due]{color:#b45309;font-size:14px}.purchase-payment-summary-box[data-payment-status=paid] [data-amount-role=due]{color:#047857}.purchase-payment-summary-box[data-payment-status] [data-amount-role=refund]{color:#b42335}.purchase-payment-workspace{min-width:0;margin-top:.35rem}.form-body:has(>section.purchase-payment-workspace){gap:.25rem}.purchase-payment-workspace>section{padding:.4rem .5rem;border:1px solid var(--border);border-radius:.4rem;background:transparent}.purchase-payment-workspace .payment-split-editor.purchase-payment-picker{padding:.35rem .45rem;margin:0;border:1px solid var(--border);border-radius:.35rem;box-shadow:none;background:#fff}.purchase-payment-workspace .payment-split-editor.purchase-payment-picker>p[role=status]{margin-block:.25rem 0;font-size:11px;font-weight:400;line-height:1.35}.purchase-payment-history-heading,.purchase-payment-workspace>section>h3{margin:0;font-size:14px;font-weight:500}.purchase-payment-workspace>section fieldset{gap:.35rem;margin-block:.25rem}.purchase-payment-workspace>section fieldset>label{display:grid;gap:.35rem;max-width:22rem;font-size:14px}.purchase-payment-amount-field{display:grid;min-width:0;gap:.25rem}.purchase-payment-amount-heading{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-items:stretch;gap:.4rem;width:100%;font-size:14px}.purchase-payment-amount-entry{container:purchaseAmount/inline-size;display:grid;align-content:center;align-items:center;gap:.2rem;padding:.25rem .4rem;border:1px solid #bbd4f3;border-radius:.35rem;min-width:0;background:#f2f7ff}.purchase-payment-amount-control{display:flex;align-items:center;gap:.2rem;min-width:0}.purchase-payment-amount-control>label{display:grid;flex:0 0 auto;justify-items:center;row-gap:1px;min-width:0;color:#1d4e89;font-size:12px;font-weight:500;line-height:1.2;text-align:center}.purchase-payment-amount-control>label>span{display:block;white-space:nowrap}.purchase-payment-amount-control>input{flex:1 1 11rem;min-width:0;max-width:11rem;width:100%;height:2rem;padding:.25rem .5rem}.purchase-payment-amount-control>.purchase-payment-pay-all{flex:0 0 auto;height:2rem;padding:.25rem .5rem;border:1px solid #bbd4f3;background:#fff;color:#176e51;box-shadow:none;cursor:pointer;font-size:11px;font-weight:500;line-height:1.25}.purchase-payment-amount-control>.purchase-payment-pay-all:hover{background:#e5efff}@container purchaseAmount (max-width: 18rem){.purchase-payment-amount-control{display:grid;grid-template-columns:max-content minmax(0,1fr)}.purchase-payment-amount-control>label{grid-column:1;grid-row:1}.purchase-payment-amount-control>input{grid-column:2;grid-row:1}.purchase-payment-amount-control>.purchase-payment-pay-all{grid-column:1/-1;grid-row:2;justify-self:end}}.purchase-payment-amount-error{margin:0;color:#b42335;font-size:11px;line-height:1.35;overflow-wrap:anywhere}.purchase-payment-inline-summary[data-payment-status]{display:grid;align-content:start;gap:.35rem;margin:0;padding:.35rem .5rem;border:1px solid #d9ddd6;border-radius:.35rem;background:#f6f7f5;max-width:100%}.purchase-payment-inline-summary .purchase-payment-heading{gap:.25rem .6rem;font-size:12px;color:#697568}.purchase-payment-inline-summary .purchase-payment-totals{display:block;margin-block:0;font-size:12px;line-height:1.5}.purchase-payment-inline-summary .purchase-payment-totals>span{display:inline-block}.purchase-payment-inline-summary .purchase-payment-totals .purchase-payment-summary-separator{display:inline;padding-inline:.2rem}.purchase-payment-inline-summary .purchase-payment-totals strong{display:inline-block;white-space:nowrap}.purchase-payment-inline-summary[data-payment-status=paid]{border-color:#a7d9c5;background:#f0faf5}.form-body:has(.purchase-payment-payment-form) .purchase-receipt>.purchase-payment-summary{display:none}.purchase-payment-meta{color:var(--muted-foreground);font-size:12px;line-height:1.35;overflow-wrap:anywhere}.purchase-payment-history-heading{margin-block:.7rem .25rem}.purchase-payment-history-row{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:start;gap:.2rem .75rem;padding-block:.5rem;line-height:1.35}.purchase-payment-history-row p{margin:0}.purchase-payment-history-row>.purchase-payment-heading{display:contents}.purchase-payment-history-identity{display:flex;flex-wrap:wrap;align-items:center;gap:.2rem .4rem;min-width:0;grid-column:1;grid-row:1}.purchase-payment-document{color:#176e51;font-size:12px;font-weight:500;overflow-wrap:anywhere}.purchase-payment-history-row .purchase-payment-history-amount{margin-left:auto;color:#047857;font-size:14px;font-weight:500;font-variant-numeric:tabular-nums}.purchase-payment-history-row[data-reversed=true] .purchase-payment-history-amount{color:#b42335}.purchase-payment-channels{grid-column:1;grid-row:2;color:var(--foreground);font-size:12px;font-weight:400;overflow-wrap:anywhere}.purchase-payment-history-row .purchase-payment-meta{grid-column:1;grid-row:3;font-size:11px}.purchase-payment-history-money-actions{grid-column:2;grid-row:1/span 3;display:flex;flex-direction:column;align-items:flex-end;gap:.25rem;max-width:100%;margin-left:auto}.purchase-payment-history-money-actions .purchase-payment-history-amount{margin-left:0}.purchase-payment-history-money-actions .purchase-payment-reversal-actions{margin-top:0}.purchase-payment-payment-actions,.purchase-payment-reversal-actions{display:flex;flex-wrap:wrap;align-items:center;justify-content:flex-end;gap:.5rem;margin-top:.35rem}.purchase-payment-payment-actions>button[data-slot=button]{min-width:7rem;max-width:100%;min-height:2.5rem;height:auto;padding:.5rem 1.75rem;white-space:normal}.purchase-payment-payment-footer{display:flex;flex-wrap:wrap;align-items:flex-start;gap:.5rem;margin-top:.35rem}.purchase-payment-note-field{flex:1 1 14rem;min-width:0}.purchase-payment-note-field>textarea{min-height:2.5rem;resize:vertical}.purchase-payment-payment-footer .purchase-payment-payment-actions{align-items:flex-start;max-width:100%;margin-top:0;margin-left:auto}.purchase-payment-reversal-actions .purchase-payment-reversal-button{border:1px solid #f0dadd;background:#fff;color:#c23a43;font-size:12px;font-weight:400;box-shadow:none}.purchase-payment-reversal-actions .purchase-payment-reversal-button:hover{background:#fffafb;border-color:#e7b6bc}.purchase-payment-reversal-actions>[role=alert]{flex-basis:100%;text-align:end}.purchase-payment-details{margin-block:.2rem;font-size:12px;line-height:1.5}.purchase-payment-history-row>.purchase-payment-details{grid-column:1/-1;grid-row:4;margin:0}.purchase-payment-details summary{width:fit-content;color:#176e51;cursor:pointer}.purchase-payment-details summary:hover{text-decoration:underline}.purchase-payment-details summary:focus-visible{outline:2px solid var(--ring);outline-offset:3px}@media (max-width:480px){.purchase-payment-summary-box[data-payment-status],.purchase-payment-workspace>section{padding:.3rem .5rem}.purchase-payment-heading{column-gap:.35rem}.purchase-payment-history-identity{grid-column:1/-1}.purchase-payment-history-money-actions{grid-row:2/span 2}}.purchase-register .purchase-refund-count{border-color:#ddd6fe;background:#f5f3ff;color:#6d28d9}.purchase-register .purchase-refund-count:hover:not(:disabled){border-color:#c4b5fd;background:#ede9fe}.purchase-history-status[data-refund-status=pending]{border:1px solid #ddd6fe;background:#f5f3ff;color:#6d28d9}.purchase-history-refund{margin-top:.25rem;color:#6d28d9;font-size:12px}.purchase-history-refund strong{font-weight:600;font-variant-numeric:tabular-nums}.purchase-refund-status[data-slot=status-badge]{padding:1.4px 5.6px;font-size:8.4px;font-weight:400;line-height:1.25}.purchase-refund-status[data-refund-status=pending]{border-color:#ddd6fe;background:#f5f3ff;color:#6d28d9}.purchase-refund-history .purchase-payment-heading [data-slot=status-badge][data-tone=success],.purchase-refund-status[data-refund-status=received]{border-color:#bfdbfe;background:#eff6ff;color:#1d4ed8}.receipt-void-reason{display:flex;flex-wrap:wrap;align-items:center;gap:.5rem}.purchase-refund-history{min-width:0}.purchase-refund-pending{display:grid;gap:.125rem;margin:.5rem 0 .75rem;padding:.75rem;border:1px solid var(--border);border-radius:.75rem;background:color-mix(in srgb,var(--primary) 3%,var(--background))}.purchase-refund-pending-heading{display:flex;align-items:center;justify-content:space-between;gap:.5rem;min-width:0}.purchase-refund-pending-caption{margin:0;color:var(--muted-foreground);font-size:.75rem}.purchase-refund-channel{display:grid;grid-template-columns:minmax(0,1fr) max-content;align-items:baseline;gap:.125rem .75rem;margin:0;padding-block:0;font-size:13px;line-height:1.4;overflow-wrap:anywhere}.purchase-refund-channel-label{min-width:0}.purchase-refund-channel strong{font-size:13px;font-weight:400;font-variant-numeric:tabular-nums;white-space:nowrap}.purchase-refund-pending-actions{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:.5rem 1.75rem;margin-top:.125rem;padding-top:.375rem}.purchase-refund-pending-total{flex:1;min-width:0;margin:0;text-align:right;color:var(--foreground);font-size:16px;font-weight:700;line-height:1.4}.purchase-refund-pending-total-amount{color:#047857;font-size:14.8px;font-variant-numeric:tabular-nums}.purchase-refund-pending-actions>button{margin-left:auto;max-width:100%;min-height:2.25rem;padding:.5rem .875rem;font-size:.875rem}.purchase-refund-fact[data-status=received]{color:light-dark(#2563b8,#93c5fd)}.purchase-refund-fact[data-status=pending]{color:light-dark(#7c3aed,#c4b5fd)}.purchase-refund-facts-label{font-weight:500}.stock-table .stock-loss-field [role=combobox]{height:auto!important;min-height:3rem;padding-block:.375rem}.work-dialog.sale-dialog.stock-cycle-cancel-dialog{width:32rem;max-width:calc(100vw - 1.5rem)!important;gap:.625rem}.stock-cycle-cancel-dialog .work-form{gap:.625rem}.stock-cycle-cancel-dialog .form-body{gap:.625rem;overflow-wrap:anywhere}.stock-cycle-cancel-dialog .form-field{margin-top:.25rem}.stock-cycle-cancel-dialog textarea{height:4rem;min-height:4rem;field-sizing:fixed;resize:none}.stock-cycle-cancel-dialog .form-actions{padding:.625rem 0 0}.stock-cycle-cancel-bill .stock-transfer-source-heading>div{display:flex;flex-direction:column;align-items:flex-start;gap:.15rem}.stock-cycle-cancel-bill .stock-transfer-source-heading strong{color:var(--primary)}.stock-cycle-cancel-metrics{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));background:color-mix(in srgb,var(--primary) 4%,transparent)}.stock-cycle-cancel-metrics>span:not(.stock-cycle-cancel-separator){display:flex;flex-direction:column;gap:.2rem;padding:.65rem .8rem;color:var(--muted-foreground);font-size:.75rem}.stock-cycle-cancel-metrics>span:last-child{border-left:1px solid var(--border)}.stock-cycle-cancel-metrics strong{color:var(--foreground);font-size:1rem;font-weight:600;font-variant-numeric:tabular-nums}.stock-cycle-cancel-separator{display:none}.stock-cycle-cancel-sales{display:grid;gap:.4rem;padding:.65rem .8rem;border-top:1px solid var(--border)}.stock-cycle-cancel-sales p{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:baseline;gap:.2rem .75rem;font-size:.8125rem}.stock-cycle-cancel-sales p>span:last-child{margin-left:auto;color:var(--muted-foreground)}.stock-cycle-cancel-sales strong{color:var(--foreground);font-weight:500;font-variant-numeric:tabular-nums}.stock-cycle-cancel-note{color:var(--muted-foreground);font-size:.75rem}.stock-entry .stock-table .stock-actions{width:5.25rem;max-width:100%;gap:0}.stock-entry .stock-table .stock-actions>.stock-more-action{display:flex;width:5.25rem;max-width:100%;margin-left:auto;height:1.75rem;min-height:1.75rem;padding:.125rem .5rem;font-size:.75rem;line-height:1.25}.stock-entry .stock-loss-field{width:5.25rem;max-width:100%;margin-top:.25rem;margin-left:auto}.stock-entry .stock-table .stock-loss-field [role=combobox]{height:auto!important;min-height:2.5rem;grid-template-columns:.75rem minmax(0,1fr) .75rem;padding:.125rem .25rem;gap:.125rem}.stock-entry .stock-loss-field .stock-loss-title{line-height:1.4}.stock-entry .stock-loss-field [data-slot=select-value]{font-size:.8125rem}.stock-entry .stock-table .stock-loss-field [role=combobox]>svg{width:.75rem;height:.75rem}.stock-reconciliation .reconcile-bills .history-bill-number{color:var(--primary)}