/* Tianxinhui CRM V2.5.7 - confirmed logo and customer-owner regression fixes. */

/* Keep an uploaded company logo on a clean white tile without tinting or cropping it. */
.brand .brand-logo {
  width: 50px;
  height: 50px;
  flex: 0 0 50px;
  padding: 4px;
  box-sizing: border-box;
  object-fit: contain;
  object-position: center;
  border: 1px solid rgba(214, 228, 244, .92);
  border-radius: 15px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(3, 16, 35, .2), inset 0 0 0 1px rgba(255, 255, 255, .72);
  filter: none;
  opacity: 1;
  mix-blend-mode: normal;
}

/* The action column is sticky. Pin the owner column immediately beside it so it cannot be covered. */
.customer-table { min-width: 1320px; }
.customer-table th:nth-last-child(2),
.customer-table td:nth-last-child(2) {
  position: sticky;
  right: 318px;
  z-index: 3;
  min-width: 116px;
  width: 116px;
  max-width: 116px;
  padding-left: 12px;
  padding-right: 12px;
  color: #1d2b43;
  background: #fff;
  white-space: nowrap;
  overflow: visible;
  text-overflow: clip;
  box-shadow: -6px 0 12px rgba(30, 48, 78, .035);
}
.customer-table thead th:nth-last-child(2) { z-index: 5; background: #fafbfc; }
.customer-table tbody tr:hover td:nth-last-child(2) { background: #f8fbff; }

/* 客户状态列也固定，避免被右侧 sticky 列遮挡（兼容不同分辨率） */
.customer-table th:nth-last-child(3),
.customer-table td:nth-last-child(3) {
  position: sticky;
  right: 434px;
  z-index: 2;
  min-width: 148px;
  background: #fff;
  box-shadow: -6px 0 12px rgba(30, 48, 78, .035);
}
.customer-table thead th:nth-last-child(3) { z-index: 5; background: #fafbfc; }
.customer-table tbody tr:hover td:nth-last-child(3) { background: #f8fbff; }

@media print {
  .brand .brand-logo { display: none !important; }
}
