/* W8 操作日志：桌面表格 + 移动端日志卡片 */
.w8-table-card {
  flex: 1;
  min-height: 0;
}

.w8-table-card .table-wrap {
  min-height: 260px;
}

.w8-table-card .w8-state-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
}

.w8-state-wrap .state-block {
  width: 100%;
}

.w8-time-cell {
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.w8-content-cell {
  max-width: 420px;
}

.w8-pagination {
  flex-shrink: 0;
}

.w8-mobile-actions {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 10px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 12px 14px;
}

.w8-mobile-actions .btn {
  flex: 0 0 auto;
}

.w8-mobile-count {
  margin-left: auto;
  font-size: 12px;
  color: var(--text-tertiary);
  font-variant-numeric: tabular-nums;
}

.w8-mobile-state {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 4px;
  overflow: hidden;
}

.w8-mobile-state .state-block {
  min-height: 220px;
}

.w8-log-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.w8-log-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.w8-log-time {
  min-width: 0;
  font-size: 12px;
  color: var(--text-secondary);
  font-variant-numeric: tabular-nums;
  line-height: 1.4;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.w8-action-chip {
  flex: 0 0 auto;
  max-width: 45%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.w8-log-operator {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
}

.w8-log-content {
  font-size: 13px;
  line-height: 1.5;
  color: var(--text-secondary);
  word-break: break-word;
  overflow-wrap: anywhere;
}

.w8-mobile-pagination {
  margin-bottom: 4px;
}

.w8-mobile-pagination .pagination {
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 12px 14px;
}

.w8-mobile-pagination .pg-left {
  justify-content: space-between;
}

.w8-mobile-pagination .pg-right {
  justify-content: center;
  flex-wrap: wrap;
}
