/* Keep IMEI hover and keyboard focus inside a padded, rounded row. */
.pw-dialog .pw-imei-list { padding: 8px 0 16px; gap: 4px; }
.pw-dialog .pw-imei-list button {
  display: grid; grid-template-columns: minmax(0, 1fr) auto 18px;
  padding: 12px 14px; border: 1px solid transparent; border-bottom-color: #eceef1;
  border-radius: 10px; outline: none;
}
.pw-dialog .pw-imei-list button:hover { background: #fff5f6; color: #252b33; outline: none; }
.pw-dialog .pw-imei-list button:focus-visible { border-color: #ef3340; box-shadow: inset 0 0 0 1px #ef3340; outline: none; }
.pw-photo-field img { width: 96px; height: 96px; object-fit: contain; background: #f6f7f8; border-radius: 10px; }
.pw-form small,.pw-history-note { color: #68717e; font-size: 12px; line-height: 1.5; }
.pw-history-note { margin: 12px 24px; }
.crm-catalog-tools { display:flex; align-items:center; gap:14px; }
.crm-catalog-tools>.crm-catalog-filters { flex:1; min-width:0; }
.crm-product-create-command { display:flex; justify-content:flex-end; flex-shrink:0; }
@media(max-width:650px) { .crm-catalog-tools { align-items:stretch; flex-direction:column; } }
.crm-product-extra-fields { display:grid; gap:14px; }
.crm-product-extra-fields label { display:grid; gap:7px; min-width:0; }
.crm-product-extra-fields textarea { min-height:80px; resize:vertical; padding:12px; }
.crm-product-extra-fields small { font-size:12px; line-height:1.5; color:#68717e; }
.crm-new-product-dialog { max-height:calc(90vh / var(--crm-ui-scale,1)); overflow:auto; }
#crm-receipt-product-form .field-row { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:14px; }
#crm-receipt-product-form .field-row:has([name="color"]) { grid-template-columns:repeat(3,minmax(0,1fr)); }
#crm-receipt-product-form .field-row>label { width:100%; min-width:0; }
#crm-receipt-product-form label:has([name="sku"]) { display:none; }
#crm-receipt-product-form :is(input,textarea,select) { width:100%; min-width:0; box-sizing:border-box; }
#crm-receipt-product-form input[type="checkbox"] { width:auto; }
@media(max-width:650px) { #crm-receipt-product-form .field-row,#crm-receipt-product-form .field-row:has([name="color"]) { grid-template-columns:1fr; } }
.pw-source-rules { padding:24px; display:grid; gap:16px; }
.pw-source-rules p { margin:0; color:#68717e; line-height:1.5; }
.pw-source-rules article { display:flex; align-items:center; justify-content:space-between; gap:18px; border-bottom:1px solid #e6e9ed; padding:12px 0; }
.pw-source-rules article div { display:grid; gap:6px; }
.pw-source-rules small { color:#68717e; }
.pw-source-rules article button { border:1px solid #d8dde3; border-radius:9px; background:#fff; padding:10px 12px; }
@media(max-width:700px) { .pw-source-rules article { align-items:stretch; flex-direction:column; } }
.pw-form textarea[name="barcodes"] {
  height: auto;
  min-height: 0;
  max-height: none;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 16px;
  line-height: 1.6;
  white-space: pre;
  overflow: auto;
  padding: 12px 14px;
  font-variant-numeric: tabular-nums;
}
.pw-barcode code, .pw-known-codes code { white-space: nowrap; }
@media(max-width:700px) { .pw-dialog .pw-imei-list button { grid-template-columns:minmax(0,1fr) auto; } .pw-price-current { flex-wrap:wrap; gap:10px; } }
