.products-intro,.product-card-top{display:flex;align-items:center;justify-content:space-between;gap:14px;flex-wrap:wrap}.products-intro{margin-bottom:22px}.products-intro p{margin:0;color:var(--muted)}.products-check{display:flex;align-items:center;gap:10px;font-size:14px;margin:14px 0}.products-check input{width:20px;height:20px;flex:0 0 20px}.care-product-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(250px,1fr));gap:16px;margin:20px 0 26px}.care-product-card{padding:20px;background:#fff;border:1px solid var(--line);border-radius:14px;min-width:0}.care-product-card h3{margin:14px 0 6px;overflow-wrap:anywhere}.care-product-card p{color:var(--muted);font-size:14px;line-height:1.5}.care-product-card .overline{margin:0;font-size:11px}.product-price{display:block;font-size:22px;line-height:1.5;margin:14px 0}.products-history{margin-top:22px}.products-history summary{font-weight:700;cursor:pointer}.product-sale-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:14px;padding:18px 0;border-bottom:1px solid var(--line);min-width:0}.product-sale-row p{margin:7px 0}.product-sale-row small{display:block;color:var(--muted);line-height:1.5;overflow-wrap:anywhere}.product-sale-row>.payment-actions{grid-column:1/-1}.product-stock-row{padding:16px 0;border-bottom:1px solid var(--line);overflow-wrap:anywhere}.product-stock-row p{margin:6px 0}.product-stock-row small{color:var(--muted)}#productSaleDialog{width:min(850px,calc(100% - 24px))}#productSaleForm>.field{margin:18px 0}.product-cart-line{display:grid;grid-template-columns:minmax(0,2fr) minmax(80px,.7fr) minmax(100px,1fr) auto;gap:12px;align-items:end;padding:18px 0;border-bottom:1px solid var(--line)}.product-cart-line>div{display:grid;gap:7px}.product-cart-line small{color:var(--muted)}.product-cart-line>*{min-width:0}.product-cart-line strong{overflow-wrap:anywhere}#productReceiptDialog{width:min(850px,calc(100% - 24px))}#productReceiptBody{line-height:1.6}#productReceiptBody .quote-logo{width:200px;height:75px}#productReceiptBody .invoice-title span{font-size:22px}#productReceiptBody td{overflow-wrap:anywhere}
@media screen and (max-width:760px){.care-product-grid{grid-template-columns:minmax(0,1fr)}.products-intro{align-items:stretch;flex-direction:column}.products-intro>button{width:100%;min-height:46px}.product-cart-line{grid-template-columns:minmax(0,1fr) minmax(0,1fr);align-items:start}.product-cart-line>.field:first-child{grid-column:1/-1}.product-cart-line>button{grid-column:1/-1;min-height:44px}.product-sale-row{grid-template-columns:minmax(0,1fr)}.product-sale-row>.payment-actions{grid-column:auto}.product-sale-row .payment-actions>button{flex:1;min-height:44px}#productSaleDialog,#productReceiptDialog{width:calc(100% - 16px);max-width:calc(100% - 16px);padding:18px 14px}.products-history .panel-heading{display:block}.products-history .panel-heading>.field{margin-top:15px}.care-product-card .payment-actions>button{flex:1 1 120px;min-height:44px}#productReceiptBody .invoice-brand{display:block}#productReceiptBody .invoice-title{text-align:left;margin-top:18px}}
@media print{@page product_receipt{size:A4 portrait;margin:18mm}body:has(#productReceiptDialog[open])>*:not(#productReceiptDialog){display:none!important}body:has(#productReceiptDialog[open])>#productReceiptDialog{display:block!important;position:static!important;width:100%!important;max-width:none!important;max-height:none!important;padding:0!important;margin:0!important;border:0!important;box-shadow:none!important;overflow:visible!important}#productReceiptDialog .no-print{display:none!important}#productReceiptBody{page:product_receipt;font-size:12pt}#productReceiptBody .invoice-table{display:table;width:100%;font-size:11pt}#productReceiptBody tr{break-inside:avoid}#productReceiptBody .invoice-brand{display:flex}}

#productCategoryDialog{width:min(800px,calc(100% - 24px));max-height:92vh;overflow:auto}#productCategoryDialog form{padding:18px;border:1px solid var(--line);border-radius:12px;background:#f7f9fd;margin:18px 0 24px}#productCategoryDialog .field{margin:14px 0}.product-category-row{display:flex;justify-content:space-between;gap:16px;padding:18px 0;border-bottom:1px solid var(--line);align-items:start;min-width:0}.product-category-row>div{min-width:0}.product-category-row p{margin:7px 0;overflow-wrap:anywhere}.product-category-row small{color:var(--muted)}.product-category-row h3{font-size:17px;margin:0;overflow-wrap:anywhere}.products-intro>.payment-actions{min-width:0}@media screen and (max-width:760px){#productCategoryDialog{width:calc(100% - 16px);max-width:calc(100% - 16px);padding:18px 14px}.product-category-row{flex-direction:column}.product-category-row>button{width:100%;min-height:44px}#productCategoryDialog form{padding:14px}.products-intro>.payment-actions{display:grid!important;grid-template-columns:minmax(0,1fr)}#productCategoryDialog .payment-actions>button{min-height:44px;white-space:normal}}

.product-catalog-photo{width:100%;height:190px;object-fit:contain;display:block;background:#f4f6fa;border-radius:10px;margin:0 0 16px}.product-image-placeholder{height:150px;display:flex;align-items:center;justify-content:center;gap:10px;color:var(--muted);background:#f4f6fa;border:1px dashed #cbd4e3;border-radius:10px;margin:0 0 16px;font-size:13px}.product-image-placeholder>span:first-child{font-size:28px}.product-photo-editor{border:1px solid var(--line);border-radius:12px;background:#f8faff;padding:16px;margin:20px 0}.product-photo-editor h3{font-size:18px;margin-bottom:14px}.product-photo-preview img{display:block;width:100%;height:240px;object-fit:contain;border-radius:10px;background:#fff;margin:0 0 16px}.product-photo-editor .payment-help{font-size:13px;line-height:1.5;margin-top:10px}.product-photo-editor [role="status"]{font-size:14px;overflow-wrap:anywhere}.product-photo-editor input[type="file"]{width:100%;min-width:0;max-width:100%}@media screen and (max-width:760px){.product-catalog-photo{height:210px}.product-photo-editor{padding:12px}.product-photo-editor .payment-actions{display:grid!important;grid-template-columns:minmax(0,1fr)}.product-photo-editor .payment-actions button{min-height:44px;white-space:normal}.product-photo-preview img{height:210px}.product-photo-editor input[type="file"]{font-size:14px}}

.product-buyer-picker{padding:16px;border:1px solid var(--line);border-radius:12px;margin:18px 0}.product-buyer-picker h3{margin:0 0 12px}.product-buyer-picker .field{margin:12px 0}.product-buyer-picker select{width:100%;min-width:0}.product-buyer-picker [hidden]{display:none!important}@media screen and (max-width:760px){.product-buyer-picker{padding:12px}.product-buyer-picker .form-grid{grid-template-columns:minmax(0,1fr)}}

.product-buyer-suggestions{max-height:260px;overflow-y:auto;border:1px solid #b7c5de;border-radius:10px;background:#fff;box-shadow:0 6px 18px #17264815;margin:-4px 0 16px}.product-buyer-suggestions button{display:block;width:100%;text-align:left;border:0;border-radius:0;padding:12px 14px;border-bottom:1px solid var(--line);background:#fff;min-height:48px;white-space:normal}.product-buyer-suggestions button:last-child{border-bottom:0}.product-buyer-suggestions button:hover,.product-buyer-suggestions button[aria-selected="true"]{background:#edf2ff}.product-buyer-suggestions strong,.product-buyer-suggestions small{display:block;overflow-wrap:anywhere}.product-buyer-suggestions small{margin-top:4px;color:var(--muted)}

#productReceiptBody .product-invoice-logo{display:flex;align-items:center;gap:10px;width:290px;max-width:100%;margin-bottom:18px;break-inside:avoid}#productReceiptBody .product-invoice-logo img{width:66px;height:66px;object-fit:contain;flex:0 0 66px}#productReceiptBody .product-invoice-logo strong{font-family:Arial,sans-serif;font-size:23px;line-height:1.15;font-weight:800;color:#07366e;white-space:nowrap}#productReceiptBody .product-invoice-logo span{color:#007f83}@media print{#productReceiptBody .product-invoice-logo{print-color-adjust:exact;-webkit-print-color-adjust:exact}}
