
.dicom-viewer-container[data-v-5ffc561a] {
  width: 100%;
}
.dicom-viewer-layout[data-v-5ffc561a] {
  display: grid;
  grid-template-columns: 30% 70%;
  gap: 1rem;
  height: calc(100vh - 280px);
  min-height: 500px;
}

/* ToolLayout 通用全屏（CSS 全屏）下的布局适配 */
.dicom-viewer-container.is-layout-fullscreen[data-v-5ffc561a] {
  display: flex;
  flex-direction: column;
  min-height: 0;
}
.dicom-viewer-layout.is-layout-fullscreen[data-v-5ffc561a] {
  flex: 1;
  min-height: 0;
  height: auto;
  grid-template-columns: 280px 1fr;
  grid-template-rows: 1fr;
}
.left-panel[data-v-5ffc561a] {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.right-panel[data-v-5ffc561a] {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.upload-area[data-v-5ffc561a] {
  min-height: 150px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.series-list[data-v-5ffc561a] {
  padding-right: 0.5rem;
}
.viewer-element[data-v-5ffc561a] {
  flex: 1;
  position: relative;
  min-height: 400px;
  height: calc(100vh - 350px);
}

/* Custom scrollbar */
.custom-scrollbar[data-v-5ffc561a]::-webkit-scrollbar {
  width: 6px;
}
.custom-scrollbar[data-v-5ffc561a]::-webkit-scrollbar-track {
  background: transparent;
}
.custom-scrollbar[data-v-5ffc561a]::-webkit-scrollbar-thumb {
  background: #cbd5e0;
  border-radius: 3px;
}
.dark .custom-scrollbar[data-v-5ffc561a]::-webkit-scrollbar-thumb {
  background: #4a5568;
}
.custom-scrollbar[data-v-5ffc561a]::-webkit-scrollbar-thumb:hover {
  background: #a0aec0;
}
.dark .custom-scrollbar[data-v-5ffc561a]::-webkit-scrollbar-thumb:hover {
  background: #718096;
}

/* Thumbnail container */
.thumbnail-container img[data-v-5ffc561a] {
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
}

/* Series item hover effect */
.series-item[data-v-5ffc561a] {
  transition: all 0.2s ease;
}
.series-item[data-v-5ffc561a]:hover {
  transform: translateY(-2px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* ========== MPR Grid Layout ========== */
.mpr-grid[data-v-5ffc561a] {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 4px;
  height: calc(100vh - 350px);
  min-height: 400px;
  background: #111;
  border-radius: 8px;
  overflow: hidden;
}
.mpr-plane[data-v-5ffc561a] {
  display: flex;
  flex-direction: column;
  background: #000;
  border-radius: 4px;
  overflow: hidden;
  position: relative;
}
.mpr-plane-header[data-v-5ffc561a] {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 8px;
  background: rgba(30, 30, 30, 0.9);
  border-bottom: 1px solid #333;
  flex-shrink: 0;
}
.mpr-plane-label[data-v-5ffc561a] {
  font-size: 12px;
  font-weight: 600;
  min-width: 48px;
}
.mpr-slider[data-v-5ffc561a] {
  flex: 1;
  height: 4px;
  -webkit-appearance: none;
  -moz-appearance: none;
       appearance: none;
  background: #444;
  border-radius: 2px;
  outline: none;
  cursor: pointer;
}
.mpr-slider[data-v-5ffc561a]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #00BFFF;
  cursor: pointer;
}
.mpr-slider[data-v-5ffc561a]::-moz-range-thumb {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #00BFFF;
  cursor: pointer;
  border: none;
}
.mpr-slice-info[data-v-5ffc561a] {
  font-size: 11px;
  color: #aaa;
  min-width: 50px;
  text-align: right;
  font-family: monospace;
}
.mpr-canvas[data-v-5ffc561a] {
  flex: 1;
  width: 100%;
  min-width: 0;
  min-height: 0;
  display: block;
  cursor: crosshair;
}

/* MPR Building Progress */
.mpr-building[data-v-5ffc561a] {
  margin: 1rem 0;
}

/* MPR Info Panel */
.mpr-info-panel[data-v-5ffc561a] {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  min-height: 0;
  min-width: 0;
}
.mpr-info-content[data-v-5ffc561a] {
  width: 100%;
  max-width: 360px;
  margin: 0 auto;
  padding: 10px 12px;
  font-size: 11px;
  line-height: 1.5;
  overflow-y: auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.mpr-info-head[data-v-5ffc561a] {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}
.mpr-info-title[data-v-5ffc561a] {
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}
.mpr-info-badge[data-v-5ffc561a] {
  font-size: 10px;
  line-height: 1.4;
  padding: 2px 8px;
  border-radius: 10px;
  color: #7dd3fc;
  background: rgba(14, 165, 233, 0.12);
  white-space: nowrap;
}

/* 两列数据网格：窄宽自动变一列，防止英文溢出 */
.mpr-info-grid[data-v-5ffc561a] {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 3px 10px;
  padding: 8px;
  border-radius: 4px;
  background: rgba(128, 128, 128, 0.08);
}
.mpr-info-grid p[data-v-5ffc561a] {
  margin: 0;
  min-width: 0;
  display: flex;
  align-items: baseline;
  gap: 4px;
  white-space: nowrap;
}
.mpr-info-cols-2[data-v-5ffc561a] {
  grid-column: span 2;
}
.mpr-info-label[data-v-5ffc561a] {
  font-weight: 500;
  flex-shrink: 0;
}
.mpr-info-ellipsis[data-v-5ffc561a] {
  overflow: hidden;
}
.mpr-info-ellipsis > span[data-v-5ffc561a]:last-child {
  overflow: hidden;
  text-overflow: ellipsis;
}
.mpr-info-hints[data-v-5ffc561a] {
  display: flex;
  flex-direction: column;
  gap: 3px;
  font-size: 10px;
  line-height: 1.45;
}
.mpr-info-hints p[data-v-5ffc561a] {
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* 面板格很窄时（英文长文案）数据网格降为一列 */
@media (max-width: 480px) {
.mpr-info-grid[data-v-5ffc561a] {
    grid-template-columns: minmax(0, 1fr);
}
.mpr-info-cols-2[data-v-5ffc561a] {
    grid-column: span 1;
}
}

/* MPR Building indicator */
.mpr-building[data-v-5ffc561a] {
  padding: 1rem;
  border-radius: 0.375rem;
}

/* Fullscreen */
.right-panel.is-fullscreen[data-v-5ffc561a] {
  background: #111;
  padding: 12px;
}
.right-panel.is-fullscreen .viewer-element[data-v-5ffc561a],
.dicom-viewer-layout.is-layout-fullscreen .viewer-element[data-v-5ffc561a] {
  height: auto !important;
  min-height: 0 !important;
}
.right-panel.is-fullscreen .mpr-grid[data-v-5ffc561a],
.dicom-viewer-layout.is-layout-fullscreen .mpr-grid[data-v-5ffc561a] {
  height: auto !important;
  min-height: 0 !important;
  flex: 1;
}

/* ToolLayout 通用全屏：右面板撑满高度，工具栏/信息栏不被压缩 */
.dicom-viewer-layout.is-layout-fullscreen .right-panel[data-v-5ffc561a] {
  height: 100%;
  min-height: 0;
}
.dicom-viewer-layout.is-layout-fullscreen .toolbar[data-v-5ffc561a],
.dicom-viewer-layout.is-layout-fullscreen .overlay-info[data-v-5ffc561a] {
  flex-shrink: 0;
}

/* ========== 方位角标 ========== */
.orientation-marker[data-v-5ffc561a] {
  position: absolute;
  z-index: 5;
  color: #fbbf24;
  font-size: 14px;
  font-weight: 700;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  line-height: 1;
  pointer-events: none;
  -webkit-user-select: none;
     -moz-user-select: none;
          user-select: none;
  text-shadow: 0 0 3px rgba(0, 0, 0, 0.9), 0 0 2px rgba(0, 0, 0, 0.9);
}
.orientation-top[data-v-5ffc561a] {
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
}
.orientation-bottom[data-v-5ffc561a] {
  bottom: 6px;
  left: 50%;
  transform: translateX(-50%);
}
.orientation-left[data-v-5ffc561a] {
  left: 6px;
  top: 50%;
  transform: translateY(-50%);
}
.orientation-right[data-v-5ffc561a] {
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
}

/* MPR 切面内方位标记避开底部 HUD 与标题 */
.mpr-plane .orientation-bottom[data-v-5ffc561a] {
  bottom: 10px;
}

/* 影像信息弹窗中的 UID：等宽字体并允许任意断行 */
.uid-line[data-v-5ffc561a] {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.uid-value[data-v-5ffc561a] {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 11px;
  line-height: 1.5;
  word-break: break-all;
  -webkit-user-select: text;
     -moz-user-select: text;
          user-select: text;
}

/* ========== 免责声明弹窗 ========== */
.disclaimer-overlay[data-v-5ffc561a] {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: rgba(0, 0, 0, 0.65);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.disclaimer-modal[data-v-5ffc561a] {
  width: 100%;
  max-width: 480px;
  max-height: 85vh;
  overflow-y: auto;
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
}
.disclaimer-modal-large[data-v-5ffc561a] {
  max-width: 720px;
}
.disclaimer-modal-body[data-v-5ffc561a] {
  max-height: calc(85vh - 160px);
  overflow-y: auto;
  padding-right: 4px;
}
.disclaimer-footer[data-v-5ffc561a] {
  flex-shrink: 0;
}
.disclaimer-footer ol[data-v-5ffc561a] {
  margin: 0;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
.dicom-viewer-layout[data-v-5ffc561a] {
    grid-template-columns: 1fr;
    height: auto;
}
.left-panel[data-v-5ffc561a] {
    max-height: 300px;
}
.viewer-element[data-v-5ffc561a] {
    min-height: 300px;
    height: 400px;
}
.mpr-grid[data-v-5ffc561a] {
    height: 600px;
}
}
