/* 仅移动端 JS 固定表头层；桌面端不加载或 hidden */

.mobile-table-head-pin {
  position: fixed;
  z-index: 950;
  overflow: hidden;
  pointer-events: none;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  background: #f5f7fa;
}

.mobile-table-head-pin[hidden] {
  display: none !important;
}

.mobile-table-head-pin-shift {
  will-change: transform;
}

.mobile-table-head-pin table {
  border-collapse: collapse;
  table-layout: fixed;
  margin: 0;
}

.mobile-table-head-pin thead th {
  background: #f5f7fa;
  box-sizing: border-box;
  white-space: nowrap;
}

.mobile-table-head-pin input,
.mobile-table-head-pin select,
.mobile-table-head-pin textarea,
.mobile-table-head-pin button,
.mobile-table-head-pin a {
  pointer-events: auto;
}

.mobile-table-head-pin--admin thead tr.admin-product-head-row th {
  background: #f7f8fa;
  font-size: 12px;
  padding: 8px;
}

.mobile-table-head-pin--admin thead tr.admin-product-filter-row th {
  background: #fafafa;
  font-size: 12px;
  padding: 4px 5px;
  pointer-events: none;
}

.mobile-table-head-pin--admin thead tr.admin-product-filter-row .admin-th-filter,
.mobile-table-head-pin--admin thead tr.admin-product-filter-row .admin-th-filter-input {
  pointer-events: auto;
}

.mobile-table-head-pin--admin thead tr.admin-product-head-row th {
  pointer-events: none;
}

.mobile-table-head-pin--admin thead tr.admin-product-head-row a,
.mobile-table-head-pin--admin thead tr.admin-product-head-row button {
  pointer-events: auto;
}

.mobile-table-head-pin--product .th-filter-btn,
.mobile-table-head-pin--product .sort-icon,
.mobile-table-head-pin--product a {
  pointer-events: auto;
}

@media (min-width: 769px) {
  .mobile-table-head-pin {
    display: none !important;
  }
}
