// ============================================================================
// 详情视图布局 - 组件基础样式
// 只包含组件自身的结构样式，视觉效果由使用方配置
// ============================================================================

// 左右分栏布局
.detail-view-wrapper {
  display: flex;
  flex-direction: row;
}

.detail-view-left {
  flex: 0 0 auto;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.detail-view-right {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-width: 0;
  min-height: 0;
}

// 空状态
.detail-view-empty {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

// 详情内容区域
.detail-view-detail-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-height: 0;
  position: relative;
}

// 详情标题
.detail-view-detail-title {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  min-width: 0;
  font-size: 16px;
  font-weight: 500;
  color: #000;

  .cn-table-format-align-left {
    margin-right: 0;
  }
}

// 标题文本 - 可省略溢出
.detail-view-detail-title-text {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

// 标题图标 - 不被挤压
.detail-view-detail-title-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-left: 8px;
}

// AI 总结容器 - 固定宽度，不动态变化
.detail-view-ai-summary-container {
  width: 100%;
}

// 表单滚动容器
.detail-view-form-container {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  min-height: 0;
}

// 导航区域
.detail-view-navigation {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
  flex-shrink: 0;
}

.detail-view-navigation-left {
  display: flex;
  align-items: center;
}

.detail-view-navigation-right {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  flex-grow: 1;
}

// 导航按钮
.detail-view-navigation-left .detail-view-nav-button.cn-ui-button {
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.15s ease;
  border-color: #e0e0e0;

  &:hover {
    border-color: #e0e0e0;
    color: inherit;
  }

  &:active {
    transform: scale(0.92);
  }

  &:focus,
  &.focus,
  &.active {
    box-shadow: none;
    outline: none;
    border-color: #e0e0e0;
  }

  &:disabled,
  &[disabled] {
    border-color: transparent;
  }
}

// 操作列
.detail-view-operate-cell {
  display: flex;
  align-items: center;

  .cn-table-operate {
    display: flex;
    align-items: center;
  }

  .hp-table-split {
    display: none;
  }
}
