/* ===== 中间面板样式 ===== */

/* 中间区域 - 自适应 */
.center {
  height: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
}

/* 设备容器 */
.devices {
  flex: 1;
  position: relative;
  min-height: 0;
}

/* 顶部操作区 */
.center-top {
  height: 8vh;
  min-height: 60px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-top: 1vh;
  gap: 2vw;
  flex-shrink: 0;
  padding: 0 1vw;
}

.center-top > img {
  margin-top: 0.5vh;
}

.center-top .oprate {
  display: flex;
  justify-content: space-around;
}

.center-top .oprate > div {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.center-top .model {
  font-size: clamp(11px, 1vw, 14px);
  color: rgba(255, 255, 255, 0.9);
  margin-right: 0.5vw;
}

/* 右上角状态信息面板 */
.status-info-panel {
  background-color: rgba(11, 36, 65, 0.8);
  border: 1px solid rgba(24, 144, 255, 0.3);
  border-radius: 6px;
  padding: 0.8vh 1vw;
  display: flex;
  flex-direction: column;
  gap: 0.5vh;
  min-width: 200px;
}

.status-info-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1vw;
}

.info-label {
  font-size: clamp(10px, 0.9vw, 12px);
  color: rgba(255, 255, 255, 0.7);
  white-space: nowrap;
}

.info-value {
  font-size: clamp(11px, 1vw, 14px);
  color: #fff;
  font-weight: 500;
  text-align: right;
}

.info-unit {
  font-size: clamp(10px, 0.85vw, 11px);
  color: rgba(255, 255, 255, 0.6);
  margin-left: 0.2vw;
}

/* 设备内容区 */
.device-content {
  font-size: clamp(10px, 1vw, 12px);
  position: absolute;
  left: 0;
  top: 5vh;
  bottom: 0;
  right: 0;
  display: flex;
  flex-direction: column;
}

/* 采样图片 */
.caiyang {
  width: 90%;
  max-width: 95%;
  height: auto;
  margin: 0 auto;
  display: block;
  z-index: 2;
  object-fit: contain;
}

/* 设备信息容器 */
.infos {
  position: absolute;
  left: 2%;
  top: 0;
  display: flex;
  flex-direction: column;
  gap: 1vh;
  z-index: 10;
  max-height: 90%;
  overflow-y: auto;
}

/* 滚动条样式 */
.infos::-webkit-scrollbar {
  width: 4px;
}

.infos::-webkit-scrollbar-thumb {
  background-color: rgba(24, 144, 255, 0.3);
  border-radius: 2px;
}

.infos::-webkit-scrollbar-track {
  background-color: transparent;
}

/* 一些通用元素 */
.flex {
  display: flex;
  width: 100px;
}

.name {
  width: 60px;
  text-align: center;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.9);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

/* 查看更多按钮样式 */
.more-btn-wrapper {
  margin-top: 8px;
  display: flex;
  justify-content: center;
}

.more-btn {
  width: auto;
  padding: 4px 12px;
  font-size: clamp(10px, 0.85vw, 12px);
  min-width: 70px;
}

/* 分组列表弹窗样式 */
.group-list-dialog-content {
  padding: 10px 0;
}

.dialog-query-row {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
  gap: 10px;
}

.dialog-query-row .el-date-editor {
  width: 250px !important;
  flex-shrink: 0 !important;
  flex-grow: 0 !important;
}

.dialog-query-label {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.9);
  white-space: nowrap;
}

.bucket-item {
  display: flex;
  gap: 15px;
  padding: 4px 0;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.8);
}

.bucket-item:not(:last-child) {
  border-bottom: 1px solid rgba(24, 144, 255, 0.2);
  margin-bottom: 4px;
  padding-bottom: 4px;
}
