/* Sales entry has its own wide workspace; the page and item list scroll normally. */
html{overflow-y:scroll;scrollbar-gutter:stable}
.main-sales-order{padding-bottom:105px}
.order-start-card{padding:28px;display:flex;align-items:center;gap:22px}
.order-start-card>div{flex:1}.order-start-card p{font-size:12px;line-height:1.8;margin-top:7px;color:var(--muted)}
.order-start-icon{display:grid;place-items:center;width:64px;height:64px;border-radius:16px;background:var(--mint);color:var(--teal);flex:none}.order-start-icon .icon{width:30px;height:30px}
.sales-order-page .page-heading{margin-bottom:20px}.sales-order-card{overflow:visible}
.order-search-toolbar{padding:20px;display:flex;align-items:center;gap:14px;flex-wrap:wrap}
.order-search-toolbar .search{max-width:600px;min-width:230px}.order-search-toolbar>.icon-btn{margin-left:auto}
.order-search-hint{font-size:11px;line-height:1.65;margin:0;padding:0 20px 18px;color:var(--muted)}
.order-search-results{margin:0 20px 18px;max-height:260px;overflow:auto;border:1px solid #c9e4dc;border-radius:9px;scrollbar-gutter:stable}
.order-search-results .table-scroll{overflow:visible}.order-search-results table{min-width:650px}.order-search-results td{padding:9px 12px}.order-search-results th{padding:10px 12px;position:sticky;top:0;z-index:1;background:#eef7f4}
.order-search-results .path{padding:10px 12px;margin:0}.order-search-results td:first-child{white-space:normal;min-width:180px}.order-search-results select{min-width:190px}
.sales-order-lines-scroll.cart-items{padding:0;min-height:180px;max-height:min(45dvh,430px);overflow:auto;scrollbar-gutter:stable;border-top:1px solid var(--line);border-radius:0 0 var(--radius) var(--radius)}
.sales-order-lines-scroll>.table-scroll{overflow:visible}.sales-order-lines-scroll table{min-width:880px;table-layout:fixed}
.sales-order-lines-scroll th{position:sticky;top:0;z-index:2;background:#f4f8f7;padding:12px 10px;color:#657e85}
.sales-order-lines-scroll td{padding:10px;font-size:12px;vertical-align:middle}.sales-order-lines-scroll tr:hover td{background:#fafcfb}
.sales-order-lines-scroll th:nth-child(1){width:40px}.sales-order-lines-scroll th:nth-child(2){width:24%}.sales-order-lines-scroll th:nth-child(3){width:16%}.sales-order-lines-scroll th:nth-child(4){width:86px}.sales-order-lines-scroll th:nth-child(5){width:190px}.sales-order-lines-scroll th:nth-child(6),.sales-order-lines-scroll th:nth-child(7){width:112px}.sales-order-lines-scroll th:nth-child(8){width:48px}
.sales-order-lines-scroll td:nth-child(2),.sales-order-lines-scroll td:nth-child(3){white-space:normal;overflow-wrap:anywhere}.sales-order-lines-scroll td strong{line-height:1.45}
.order-quantity{min-width:64px;text-align:right;padding:8px;height:36px}.order-unit{height:36px;padding:6px 8px;font-size:11px}.order-remove{padding:7px}.order-remove .icon{width:16px;height:16px}
.order-price-control{min-width:0}.order-price-button{border:0;border-bottom:1px dashed #8bb6ab;border-radius:3px;padding:5px 2px;background:transparent;color:#2a6559;font:inherit;white-space:nowrap;text-align:right;cursor:text}.order-price-button:hover{background:#eaf6f0}.order-price-button.manual{color:#8e6428;border-bottom-color:#c5a579}.order-price-note{white-space:normal!important;line-height:1.35;font-size:9px!important;color:#8e6428!important}.order-price-input{height:36px;min-width:88px;width:100%;padding:7px 4px;text-align:right;font-size:11px}
.order-review{display:flex;align-items:center;gap:14px;margin:18px 0}.order-review .notice{flex:1;margin:0}
.order-payment{display:grid;grid-template-columns:minmax(0,1fr) minmax(280px,.8fr);margin-top:20px;scroll-margin-top:18px}
.order-payment-methods{padding:22px 24px}.order-payment-methods h2{margin-bottom:20px}.order-payment-methods .payment-methods{max-width:470px}.order-payment-methods .field{max-width:470px}
.order-payment-methods .money-row{max-width:470px}.order-payment-summary{padding:22px 24px;background:#f9fcfb;border-left:1px solid var(--line)}
.order-payment-summary .money-row.total{margin-bottom:20px}.order-payment-summary .cart-hint{padding:0;line-height:1.6;margin-top:10px}.order-payment-summary .btn{min-height:44px}
.sales-order-lines-scroll::-webkit-scrollbar,.order-search-results::-webkit-scrollbar{width:12px;height:12px}.sales-order-lines-scroll::-webkit-scrollbar-track,.order-search-results::-webkit-scrollbar-track{background:#f1f5f4}.sales-order-lines-scroll::-webkit-scrollbar-thumb,.order-search-results::-webkit-scrollbar-thumb{background:#91b6ac;border:3px solid #f1f5f4;border-radius:8px}
@media(max-width:900px){.order-start-card{padding:22px;flex-wrap:wrap}.order-start-card>div{min-width:200px}.order-start-card>.btn{margin-left:86px}.order-payment{grid-template-columns:1fr}.order-payment-summary{border-left:0;border-top:1px solid var(--line)}.sales-order-lines-scroll.cart-items{max-height:380px}.sales-order-lines-scroll table{min-width:850px}}
@media(max-width:520px){.order-start-card{gap:15px}.order-start-card>.btn{margin-left:0;width:100%}.order-start-card>div{min-width:150px}.order-search-toolbar{padding:15px;gap:10px}.order-search-toolbar .search{min-width:0;flex-basis:100%}.order-search-hint{padding:0 15px 15px}.order-search-results{margin:0 15px 15px}.order-payment-methods,.order-payment-summary{padding:18px}.sales-order-page .page-heading .actions .btn{padding:9px 11px;font-size:11px}.order-review{display:block}.order-review .btn{margin-top:9px}}
@media print{.main-sales-order{padding:0}}
