/* 表格全局样式 */
.data-table {
  width: 100%;
  background: white;
  border-collapse: collapse;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  table-layout: fixed;
}

.data-table th,
.data-table td {
  padding: 12px 16px;
  border-bottom: 1px solid #f0f0f0;
  text-align: left;
  vertical-align: middle;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  position: relative;
}

/* 所有列悬浮提示 */
.data-table td:hover::after {
  content: attr(data-title);
  position: absolute;
  left: 0;
  top: 100%;
  background: white;
  border: 1px solid #ddd;
  padding: 8px;
  z-index: 1000;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  white-space: normal !important;
  width: max-content;
  max-width: 400px;
  display: block !important;
  pointer-events: none; /* 防止提示框干扰点击 */
}

/* 列宽分配 */
.col-id {
  width: 80px;
}
.col-type {
  width: 100px;
}
.col-count,
.col-complete,
.col-payment-count {
  width: 100px;
}
.col-url {
  width: 200px;
}
.col-product {
  width: 150px;
}
.col-status {
  width: 120px;
}
.col-time {
  width: 180px;
}
.col-action {
  width: 200px;
} /* 扩大操作栏空间 */

/* 操作按钮样式 */
.operation-cell {
  display: flex;
  gap: 8px;
  min-width: 180px;
}

.operation-btn {
  padding: 6px 12px;
  border: 1px solid #1890ff;
  border-radius: 4px;
  background: none;
  color: #1890ff;
  cursor: pointer;
  flex-shrink: 0;
  transition: all 0.3s;
}

.operation-btn:hover {
  background-color: #1890ff;
  color: white;
}

/* 排序按钮 */
.sort-btn {
  padding: 8px 16px;
  background-color: #1890ff;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  margin-left: 10px;
  transition: background-color 0.3s;
}

.sort-btn:hover {
  background-color: #40a9ff;
}

/* 其他通用样式 */
.data-table th {
  background-color: #fafafa;
  font-weight: 500;
  color: rgba(0, 0, 0, 0.85);
}

.data-table tr:hover {
  background-color: #fafafa;
}
/* 支付按钮状态 */
.payment-btn {
  background-color: #52c41a !important;
  border-color: #52c41a !important;
}

.payment-btn.paid {
  background-color: #f5222d !important;
  border-color: #f5222d !important;
  cursor: not-allowed;
}

/* 悬浮提示优化 */
.data-table td:hover::after {
  content: attr(data-title);
  position: absolute;
  left: 0;
  top: 100%;
  background: #fff;
  border: 1px solid #ddd;
  padding: 8px;
  z-index: 1000;
  white-space: normal !important;
  max-width: 400px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}
.pagination {
  margin-top: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.pagination button {
  padding: 5px 10px;
  border: 1px solid #ccc;
  background-color: #fff;
  cursor: pointer;
}

.pagination button.active {
  background-color: #007bff;
  color: #fff;
}

.pagination input,
.pagination select {
  padding: 5px;
}
