.inputWrapper {
  position: relative;
}
.inputIcon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: #bdbdbd;
  z-index: 10;
  font-size: 18px;
}
.input {
  padding-left: 38px !important;
  height: 56px;
  border-radius: 16px !important;
  border: 1px solid #e5e6eb !important;
  font-size: 16px;
  background: #f8f9fa;
}

.popupHeader {
  padding: 16px;
  border-bottom: 1px solid #f0f0f0;
}
.popupTitle {
  font-size: 20px;
  font-weight: 600;
  text-align: center;
}
.popupSearchRow {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
}
.popupSearchInputWrap {
  position: relative;
  flex: 1;
}
.popupSearchInput {
  padding-left: 36px !important;
  border-radius: 12px !important;
  height: 44px;
  font-size: 15px;
  border: 1px solid #e5e6eb !important;
  background: #f8f9fa;
}
.statusSelect {
  width: 120px;
  height: 40px;
  border-radius: 8px;
  border: 1px solid #e5e6eb;
  font-size: 15px;
  padding: 0 10px;
  background: #fff;
}
.deviceList {
  flex: 1;
  overflow-y: auto;
}
.deviceListInner {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 16px;
}
.deviceItem {
  display: flex;
  flex-direction: column;
  padding: 12px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  transition: all 0.2s ease;
  border: 1px solid #f5f5f5;

  &:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  }
}

.headerRow {
  display: flex;
  align-items: center;
  gap: 8px;
}

.checkboxContainer {
  flex-shrink: 0;
}

.imeiText {
  font-size: 13px;
  color: #666;
  font-family: monospace;
  flex: 1;
}

.mainContent {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  padding: 8px;
  border-radius: 8px;
  transition: background-color 0.2s ease;

  &:hover {
    background-color: #f8f9fa;
  }
}
.deviceCheckbox {
  flex-shrink: 0;
}
.deviceInfo {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 12px;
}
.deviceAvatar {
  width: 64px;
  height: 64px;
  border-radius: 6px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(102, 126, 234, 0.25);
  flex-shrink: 0;

  img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .avatarText {
    font-size: 18px;
    color: #fff;
    font-weight: 700;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
  }
}

.deviceContent {
  flex: 1;
  min-width: 0;
}

.deviceInfoRow {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 6px;
}
.deviceName {
  font-size: 16px;
  font-weight: 600;
  color: #1a1a1a;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.statusOnline {
  font-size: 11px;
  padding: 1px 6px;
  border-radius: 8px;
  color: #52c41a;
  background: #f6ffed;
  border: 1px solid #b7eb8f;
  font-weight: 500;
}
.statusOffline {
  font-size: 11px;
  padding: 1px 6px;
  border-radius: 8px;
  color: #ff4d4f;
  background: #fff2f0;
  border: 1px solid #ffccc7;
  font-weight: 500;
}
.deviceInfoDetail {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.infoItem {
  display: flex;
  align-items: center;
  gap: 8px;
}

.infoLabel {
  font-size: 13px;
  color: #666;
  min-width: 50px;
}

.infoValue {
  font-size: 13px;
  color: #333;

  &.imei {
    font-family: monospace;
  }

  &.friendCount {
    font-weight: 500;
  }
}
.loadingBox {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
}
.loadingText {
  color: #888;
  font-size: 15px;
}
.popupFooter {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px;
  border-top: 1px solid #f0f0f0;
  background: #fff;
}
.selectedCount {
  font-size: 14px;
  color: #888;
}
.footerBtnGroup {
  display: flex;
  gap: 12px;
}
.refreshBtn {
  width: 36px;
  height: 36px;
}
.paginationRow {
  border-top: 1px solid #f0f0f0;
  padding: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #fff;
}
.totalCount {
  font-size: 14px;
  color: #888;
}
.paginationControls {
  display: flex;
  align-items: center;
  gap: 8px;
}
.pageBtn {
  padding: 0 8px;
  height: 32px;
  min-width: 32px;
  border-radius: 16px;
}
.pageInfo {
  font-size: 14px;
  color: #222;
  margin: 0 8px;
}
