/* v0.7.0: low-stock quantity, select alignment, purchase cart and per-sale prices. */
.stock-quantity{font-variant-numeric:tabular-nums}
.stock-quantity-low{color:#fca5a5;font-weight:700}
body.light-theme .stock-quantity-low{color:#b91c1c}
select.select,select.input{appearance:none;-webkit-appearance:none;padding-right:42px;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23aeb4bb' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m4 6 4 4 4-4'/%3E%3C/svg%3E");background-size:16px 16px;background-position:right 16px center;background-repeat:no-repeat}
body.light-theme select.select,body.light-theme select.input{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23545d68' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m4 6 4 4 4-4'/%3E%3C/svg%3E")}
.product-variation{display:block;color:#aeb4bb;font-size:12px;margin-top:4px}
.purchase-editor{padding:16px;border:1px solid #343a40;border-radius:12px;background:#20252a;display:grid;gap:12px}
.modal-card:has(.purchase-editor){width:min(780px,100%);scrollbar-width:thin;scrollbar-color:#56606d #1b1f23}
.purchase-editor h3,.purchase-cart h3{margin:0;font-size:15px}
.purchase-editor-actions{display:flex;flex-wrap:wrap;gap:8px}
.purchase-editor-note{font-size:12px;color:#aeb4bb;line-height:1.5;margin:0}
.purchase-cart{border:1px solid #343a40;border-radius:12px;padding:14px;min-width:0}
.purchase-cart-header{display:flex;gap:8px;align-items:center;justify-content:space-between;margin-bottom:8px}
.purchase-cart .table th,.purchase-cart .table td{padding:10px 8px}
.purchase-cart .table td:first-child{min-width:160px;white-space:normal}
.purchase-cart .table td:first-child b{display:block;overflow-wrap:anywhere}
.purchase-cart .cart-number{text-align:right;font-variant-numeric:tabular-nums}
.purchase-cart .empty{padding:18px 8px;font-size:13px}
.purchase-cart-count{color:#aeb4bb;font-size:12px}
.purchase-cart .stock-row-actions{flex-wrap:nowrap}
.purchase-cart .btn{font-size:12px;padding:8px 10px}
.sale-row{border:1px solid #343a40;border-radius:10px;padding:12px;display:grid;grid-template-columns:minmax(0,1fr);gap:10px;margin-bottom:10px}
.sale-row-details{display:grid;grid-template-columns:1fr 1fr auto;gap:10px;align-items:end}
.sale-row-total{font-size:13px;color:#aeb4bb;margin:0;text-align:right}
.sale-price-note{font-size:12px;line-height:1.5;margin:0;color:#aeb4bb}
body.light-theme .purchase-editor{background:#f7f8f9;border-color:#d9dde2}
body.light-theme .purchase-cart,body.light-theme .sale-row{border-color:#d9dde2}
body.light-theme .product-variation,body.light-theme .purchase-editor-note,body.light-theme .purchase-cart-count,body.light-theme .sale-row-total,body.light-theme .sale-price-note{color:#596474}
@media(max-width:500px){.purchase-editor,.purchase-cart{padding:12px}.sale-row-details{grid-template-columns:minmax(0,1fr) minmax(0,1fr) auto}.purchase-editor .form-grid{gap:10px}.purchase-editor-actions>.btn{flex:1}.purchase-cart .table-wrap{max-width:100%;scrollbar-width:thin}}
@media(min-width:1000px){.purchase-editor .form-grid{grid-template-columns:repeat(4,minmax(0,1fr))}}
