.ui.container {
    margin-top: 2em;
    max-width: 1400px;
    width: 1400px;
}

.ui.menu {
    margin-bottom: 2em;
}

.ui.form {
    /* max-width: 600px; */
    margin: 0 auto;
}

#specimenList {
    margin-top: 2em;
}

.actions {
    margin-bottom: 1em;
}

/* 标本标签样式 */
.specimen-label {
  margin: 2px 4px;
  display: inline-block;
  cursor: pointer;
  background-color: #f0f0f0;
  border: 1px solid #ddd;
  padding: 5px 10px;
  border-radius: 3px;
}

.specimen-label .delete.icon {
  margin-left: 5px;
  opacity: 0.7;
}

.specimen-label .delete.icon:hover {
  opacity: 1;
}

.specimen-labels-container {
  min-height: 40px;
  padding: 5px;
  max-width: 100%;
  overflow-x: auto;
  white-space: normal;
}

.timepoint-notes {
  width: 100%;
}

/* 标本数量输入框样式 */
.specimen-count {
  width: 60px;
  text-align: center;
  border: none !important;  /* 移除边框 */
  background: transparent !important;  /* 透明背景 */
  font-weight: bold !important;  /* 数字加粗 */
  font-size: 1.1em !important;  /* 稍微增大字体 */
  padding: 0 !important;  /* 移除内边距 */
  box-shadow: none !important;  /* 移除阴影 */
  outline: none !important;  /* 移除聚焦时的轮廓 */
}

/* 确保在禁用状态下也保持样式 */
.specimen-count:disabled,
.specimen-count[readonly] {
  opacity: 1 !important;  /* 保持完全不透明 */
  color: inherit !important;  /* 保持正常文字颜色 */
  background-color: transparent !important;  /* 保持透明背景 */
}

/* 移除hover和focus状态的特殊样式 */
.specimen-count:hover,
.specimen-count:focus {
  border: none !important;
  box-shadow: none !important;
  background: transparent !important;
}

/* 右键菜单样式 */
#specimenContextMenu {
  background-color: white;
  border: 1px solid #ddd;
  box-shadow: 2px 2px 5px rgba(0,0,0,0.2);
}

#specimenContextMenu .item {
  padding: 8px 12px;
  cursor: pointer;
}

#specimenContextMenu .item:hover {
  background-color: #f5f5f5;
}

/* 表格样式 */
.specimen-table {
  width: 100% !important;
  table-layout: fixed;
  margin: 0;
  border-collapse: collapse;
}

.ui.table.specimen-table {
  width: 100% !important;
}

.specimen-table td {
  overflow: visible;
}

/* 容器样式 */
.specimen-edit-container {
  width: 95%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0;
}

.ui.segment.specimen-edit-container {
  padding: 1em;
  width: 95%;
}

/* 按钮样式 */
.add-specimen-btn {
  white-space: nowrap;
  width: 100%;
  text-align: center;
  padding: 8px 5px !important;
  font-size: 0.85em !important;
}

/* 标本单元格样式 */
.specimen-cell {
    cursor: pointer;
    transition: background-color 0.2s;
    width: 60px; /* 固定宽度 */
    min-width: 60px; /* 最小宽度 */
    max-width: 60px;
}

.specimen-cell:hover {
    background-color: #f5f5f5;
}

/* 选中单元格样式 */
.selected-cell {
    background-color: #ff9966 !important; /* 桔红色 */
    color: white;
    font-weight: bold;
} 

/* 添加到您的CSS文件中 */
.selected-patient {
  background-color: #b19cd9 !important; /* 紫色背景 */
  font-weight: bold;
  color: white !important;
  cursor: pointer;
}

.patient-name {
  cursor: pointer;
}

.patient-name:hover {
  background-color: #f0f0f0;
}

/* 患者状态颜色样式 */
.patient-status-tracking { 
    background-color: #21ba45 !important; /* 绿色 - 仍需追踪 */
    color: white !important; 
    font-weight: bold; 
}

.patient-status-completed { 
    background-color: #767676 !important; /* 灰色 - 已完成实验 */
    color: white !important;
}

.patient-status-discharged { 
    background-color: #1b1c1d !important; /* 黑色 - 已出院 */
    color: white !important;
}

/* 选中住院号样式 - 修改为红色 */
.selected-hospital-no {
  background-color: #db2828 !important; /* 红色 - 与抽血检测按钮相同 */
  color: white !important;
  font-weight: bold !important;
}