#sale-error-dialog { position:fixed; inset:0; margin:auto; width:min(90vw,480px); box-sizing:border-box; padding:28px; border:3px solid #b91c1c; border-radius:16px; background:#fff1f2; color:#991b1b; box-shadow:0 20px 70px #450a0a55; }
#sale-error-dialog::backdrop { background:#26070799; }
#sale-error-dialog h2 { color:#b91c1c; }
#sale-error-dialog p { white-space:pre-wrap; overflow-wrap:anywhere; }
#sale-error-dialog button { background:#b91c1c; color:white; }
.sale-form .sale-invalid { border:2px solid #b91c1c; outline:2px solid #fecaca; }

/* v1.0.54: native product table at every viewport; isolated from obsolete card selectors. */
.pearl-products-wrap{display:block;width:100%;max-width:100%;min-width:0;overflow-x:auto;overflow-y:hidden;padding:0;-webkit-overflow-scrolling:touch}
.pearl-products-table{display:table;width:100%;min-width:1140px;table-layout:auto;border-collapse:collapse;white-space:nowrap;margin:0}
.pearl-products-table thead{display:table-header-group}
.pearl-products-table tbody{display:table-row-group}
.pearl-products-table tr{display:table-row}
.pearl-products-table th,.pearl-products-table td{display:table-cell;padding:10px 12px;vertical-align:middle;white-space:nowrap;word-break:normal;overflow-wrap:normal}
.pearl-products-table th{height:auto}
.pearl-products-table th:first-child,.pearl-products-table td:first-child{width:174px}
.pearl-products-table .product-photo-link,.pearl-products-table .pearl-product-no-photo{display:block!important;box-sizing:border-box!important;width:150px!important;min-width:150px!important;max-width:150px!important;height:100px!important;min-height:100px!important;max-height:100px!important;margin:0!important;padding:0!important;border:0;border-radius:8px;overflow:hidden}
.pearl-products-table .product-photo-link img{display:block!important;width:150px!important;min-width:150px!important;max-width:150px!important;height:100px!important;min-height:100px!important;max-height:100px!important;object-fit:cover!important}
.pearl-products-table .pearl-product-no-photo{display:flex!important;align-items:center;justify-content:center;background:var(--raised,#172023);color:var(--muted)}
.pearl-products-table .pearl-product-brand{min-width:170px;white-space:nowrap;word-break:normal;overflow-wrap:normal}
.pearl-products-table .pearl-product-brand small{white-space:nowrap;margin-top:2px;line-height:1.3}
.pearl-product-actions{display:flex;align-items:center;gap:10px;flex-wrap:nowrap;white-space:nowrap}
.pearl-product-actions form{display:inline-flex;align-items:center;width:auto;margin:0;padding:0}
.pearl-product-actions a,.pearl-product-actions button{flex:0 0 auto;white-space:nowrap}
.pearl-product-actions button{padding:8px 12px}
