.devices-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding: 10px;
  background-color: #f5f5f5;
  border-radius: 4px;
}

.devices-header h2 {
  margin: 0;
  font-size: 1.5em;
  color: #333;
}

.batch-actions {
  display: flex;
  gap: 10px;
}

.batch-actions button {
  padding: 8px 16px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 500;
  transition: background-color 0.3s;
}

#batch-upgrade {
  background-color: #4CAF50;
  color: white;
}

#batch-upgrade:hover {
  background-color: #45a049;
}

#batch-delete {
  background-color: #f44336;
  color: white;
}

#batch-delete:hover {
  background-color: #da190b;
}

.devices-section {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.section-header {
  flex: 0 0 auto;
  margin-bottom: 20px;
}

.devices-list {
  flex: 1;
  min-height: 0; /* 防止flex子元素溢出 */
  overflow: auto;
  position: relative;
}


.action-btn {
  padding: 6px 12px;
  margin: 0 4px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.9em;
  transition: background-color 0.3s;
}

.upgrade-btn {
  background-color: #2196F3;
  color: white;
}

.upgrade-btn:hover {
  background-color: #1976D2;
}

.delete-btn {
  background-color: #f44336;
  color: white;
}

.delete-btn:hover {
  background-color: #da190b;
}

/* 设备状态样式 */
.status-online {
  color: #4CAF50;
}

.status-offline {
  color: #9e9e9e;
}

.status-upgrading {
  color: #2196F3;
}

/* 响应式布局 */
@media screen and (max-width: 768px) {
  .devices-header {
    flex-direction: column;
    gap: 10px;
  }

  .devices-table {
    display: block;
    overflow-x: auto;
  }
} 