/* 真正的四宫格布局 - 2x2 网格（更紧凑） */
.crop-four-grid-layout {
    display: grid;
    grid-template-columns: 35% 65%; /* 左侧1份，右侧3份 */
    grid-template-rows: 1fr 1fr;    /* 上下各1份 */
    gap: 6px;                       /* 网格间距更小 */
    padding: 4px;                   /* 内边距更小 */
    min-height: 380px;              /* 整体高度略小 */
    background: #f5f7fa;
    border-radius: 4px;             /* 圆角更小 */
}

/* 网格项基础样式 */
.crop-grid-item {
    display: flex;
    flex-direction: column;
}

/* 左上区域 */
.crop-grid-top-left {
    grid-column: 1;
    grid-row: 1;
}

/* 右上区域 */
.crop-grid-top-right {
    grid-column: 2;
    grid-row: 1;
    min-height: 80px; /* 高度更小 */
}

/* 左下区域 */
.crop-grid-bottom-left {
    grid-column: 1;
    grid-row: 2;
}

/* 右下区域 */
.crop-grid-bottom-right {
    grid-column: 2;
    grid-row: 2;
}

/* 一组相关参数的样式 - 更紧凑版 */
.crop-group {
    border: 1px solid #dcdfe6;
    border-radius: 4px;             /* 圆角更小 */
    position: relative;
    background: white;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.crop-group-header {
    position: absolute;
    top: -8px;                      /* 上移更紧凑 */
    left: 12px;                     /* 左边距更小 */
    background: white;
    padding: 0 8px;                 /* 内边距更小 */
    z-index: 1;
}

.crop-group-title {
    font-weight: 600;
    color: #606266;
    font-size: 12px;                /* 字体更小 */
    line-height: 16px;              /* 行高更小 */
}

.crop-group-content {
    padding: 8px 6px 6px;           /* 内边距更小 */
    display: flex;
    flex-direction: column;
    flex: 1;
    height: 100%;
    box-sizing: border-box;
    gap: 4px;                       /* 元素间距更小 */
}

/* 提示文本样式 */
.crop-hint-text {
    font-size: 11px;                /* 字体更小 */
    color: #666;
    margin: 4px 0;                  /* 边距更小 */
    line-height: 1.3;               /* 行高更小 */
    padding: 0 2px;                 /* 内边距更小 */
}

/* 单选容器 */
.crop-radio-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding-top: 2px;               /* 上边距更小 */
}

/* 垂直单选组样式 */
.crop-vertical-radio-group {
    display: flex;
    flex-direction: column;
    gap: 6px;                       /* 间距更小 */
    width: 100%;
    flex: 1;
}

.crop-vertical-radio {
    display: flex;
    align-items: center;
    height: 26px;                   /* 高度更小 */
    min-height: 26px;
}

.crop-vertical-radio :deep(.el-radio__label) {
    font-size: 11px;                /* 字体更小 */
    color: #606266;
}

/* 表单项样式 */
.crop-form-full-width :deep(.el-form-item__content) {
    width: 100%;
}

:deep(.el-form-item) {
    margin-bottom: 0;
    width: 100%;
}

:deep(.el-form-item__label) {
    font-weight: 500;
    color: #606266;
    font-size: 11px;                /* 标签字体更小 */
    padding-right: 8px;             /* 右边距更小 */
}

/* 输入组件样式 */
:deep(.el-select),
:deep(.el-input-number) {
    width: 100%;
}

:deep(.el-input-number .el-input__wrapper) {
    width: 100%;
    min-height: 28px;               /* 高度更小 */
}

/* 美化开关组件 */
:deep(.el-switch) {
    margin-top: 0px;                /* 上边距取消 */
}

/* 美化数值输入框的追加文本 */
:deep(.el-input-group__append) {
    background: #f5f7fa;
    color: #606266;
    border-left: 1px solid #dcdfe6;
    padding: 0 8px;                 /* 内边距更小 */
    font-size: 11px;                /* 字体更小 */
}

/* 保持区域内容充满 */
.crop-group-content {
    overflow: auto;
}

/* 减小字体大小 */
:deep(.el-input__inner),
:deep(.el-input-number__decrease),
:deep(.el-input-number__increase) {
    font-size: 11px !important;     /* 字体更小 */
    height: 28px;                   /* 高度更小 */
    line-height: 28px;
}

/* 紧凑的开关样式 */
:deep(.el-switch__core) {
    width: 32px !important;
    height: 16px !important;
}

:deep(.el-switch__action) {
    width: 12px !important;
    height: 12px !important;
}

/* 减小下拉选择器的内边距 */
:deep(.el-select-dropdown__item) {
    padding: 4px 10px;              /* 内边距更小 */
    font-size: 11px;                /* 字体更小 */
}

/* 单选按钮更小 */
:deep(.el-radio__inner) {
    width: 12px;
    height: 12px;
}

:deep(.el-radio__inner::after) {
    width: 4px;
    height: 4px;
}

/* 确保每个网格项等高 */
.crop-four-grid-layout {
    align-items: stretch;
}

.crop-grid-item {
    min-height: 180px;              /* 最小高度更小 */
}

/* 高度调整 */
.crop-grid-top-left .crop-group,
.crop-grid-bottom-left .crop-group {
    height: 100%;
}

.crop-grid-top-right .crop-group,
.crop-grid-bottom-right .crop-group {
    height: 100%;
}

/* 3x2表单网格（更紧凑） */
.crop-form-grid-3x2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* 2列 */
    grid-template-rows: repeat(5, auto);   /* 3行自动高度 */
    gap: 4px 6px;                   /* 行列间距更小 */
    width: 100%;
    align-items: start;
}

/* 表单项样式优化（更紧凑） */
.crop-form-grid-3x2 :deep(.el-form-item) {
    margin-bottom: 0;
    width: 100%;
}

.crop-form-grid-3x2 :deep(.el-form-item__label) {
    font-weight: 500;
    color: #606266;
    font-size: 11px;                /* 字体更小 */
    padding-right: 8px;             /* 右边距更小 */
    text-align: left;
    white-space: normal;
    line-height: 1.3;               /* 行高更小 */
}

/* 输入框样式（更小） */
.crop-form-grid-3x2 :deep(.el-input-number) {
    width: 100%;
}

.crop-form-grid-3x2 :deep(.el-input-number .el-input__wrapper) {
    width: 100%;
    min-height: 28px;               /* 高度更小 */
}

/* 追加文本样式（更小） */
.crop-form-grid-3x2 :deep(.el-input-group__append) {
    background: #f5f7fa;
    color: #606266;
    border-left: 1px solid #dcdfe6;
    padding: 0 8px;                 /* 内边距更小 */
    font-size: 10px;                /* 字体更小 */
}

/* 确保标签宽度一致 */
.crop-form-grid-3x2 :deep(.el-form-item__label) {
    width: 120px !important;        /* 宽度更小 */
}

.crop-form-grid-3x2 :deep(.el-form-item__content) {
    margin-left: 120px !important;
    width: calc(100% - 120px);
}

/* 更紧凑版本 */
.crop-compact {
    padding: 6px;                   /* 内边距更小 */
    border: 1px solid #e4e7ed;
    border-radius: 3px;             /* 圆角更小 */
    background: #fafafa;
    width: 100%;
    box-sizing: border-box;
}

/* 总部分 */
.crop-compact-total {
    display: flex;
    align-items: center;
    gap: 6px;                       /* 间距更小 */
    margin-bottom: 6px;             /* 下边距更小 */
    margin-top: 6px;                /* 上边距更小 */
}

.crop-compact-total-label {
    font-size: 10px;                /* 字体更小 */
    font-weight: 600;
    min-width: 130px;               /* 宽度更小 */
}

/* 分割线 */
.crop-compact-line {
    height: 1px;
    background: #dcdfe6;
    margin: 6px 0;                  /* 边距更小 */
    opacity: 0.6;
}

/* 四个参数 */
.crop-compact-four {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;                       /* 间距更小 */
}

.crop-compact-col {
    display: flex;
    flex-direction: column;
    gap: 1px;                       /* 间距更小 */
}

.crop-compact-label {
    font-size: 8px;                 /* 字体更小 */
    color: #606266;
    text-align: center;
    line-height: 1.1;               /* 行高更小 */
}

/* 输入框样式（更小） */
.crop-compact-total :deep(.el-input),
.crop-compact-col :deep(.el-input) {
    width: 100%;
}

.crop-compact-total :deep(.el-input__wrapper),
.crop-compact-col :deep(.el-input__wrapper) {
    padding: 0 4px;                 /* 内边距更小 */
    min-height: 20px;               /* 高度更小 */
}

.crop-compact-total :deep(.el-input__inner),
.crop-compact-col :deep(.el-input__inner) {
    font-size: 9px;                 /* 字体更小 */
    height: 18px;                   /* 高度更小 */
    line-height: 18px;
}

/* 总输入框突出显示 */
.crop-compact-total :deep(.el-input__wrapper) {
    border-color: #409eff;
    background: #f0f7ff;
}

/* 响应式调整（保持紧凑） */
@media (max-width: 1200px) {
    .crop-four-grid-layout {
        gap: 8px;
        padding: 6px;
    }
    
    .crop-group-content {
        padding: 12px 10px 10px;
        gap: 6px;
    }
    
    .crop-group-header {
        left: 10px;
    }
}

@media (max-width: 992px) {
    .crop-four-grid-layout {
        grid-template-columns: 1fr;
        grid-template-rows: repeat(4, auto);
        gap: 8px;
    }
    
    /* 重新分配网格位置 */
    .crop-grid-top-left {
        grid-column: 1;
        grid-row: 1;
    }
    
    .crop-grid-top-right {
        grid-column: 1;
        grid-row: 2;
    }
    
    .crop-grid-bottom-left {
        grid-column: 1;
        grid-row: 3;
    }
    
    .crop-grid-bottom-right {
        grid-column: 1;
        grid-row: 4;
    }
}

@media (max-width: 768px) {
    .crop-four-grid-layout {
        padding: 4px;
        gap: 6px;
    }
    
    .crop-group-content {
        padding: 10px 8px 8px;
        gap: 4px;
    }
    
    .crop-group-header {
        left: 8px;
        top: -7px;
    }
    
    .crop-group-title {
        font-size: 11px;
    }
    
    .crop-hint-text {
        font-size: 10px;
        margin: 3px 0;
    }
    
    .crop-vertical-radio-group {
        gap: 4px;
    }
    
    :deep(.el-form-item__label) {
        font-size: 10px;
        width: 90px !important;     /* 宽度更小 */
    }
    
    :deep(.el-form-item__content) {
        margin-left: 90px !important;
    }
    
    .crop-vertical-radio {
        height: 24px;
        min-height: 24px;
    }
    
    /* 3x2网格在小屏幕上的调整 */
    .crop-form-grid-3x2 :deep(.el-form-item__label) {
        width: 100px !important;    /* 宽度更小 */
        font-size: 10px;
    }
    
    .crop-form-grid-3x2 :deep(.el-form-item__content) {
        margin-left: 100px !important;
        width: calc(100% - 100px);
    }
}

@media (max-width: 480px) {
    :deep(.el-form-item__label) {
        width: 70px !important;     /* 宽度更小 */
        font-size: 9px;
    }
    
    :deep(.el-form-item__content) {
        margin-left: 70px !important;
    }
    
    /* 3x2网格在超小屏幕上的调整 */
    .crop-form-grid-3x2 :deep(.el-form-item__label) {
        width: 80px !important;
    }
    
    .crop-form-grid-3x2 :deep(.el-form-item__content) {
        margin-left: 80px !important;
        width: calc(100% - 80px);
    }
    
    /* 紧凑布局调整为2列 */
    .crop-compact-four {
        grid-template-columns: repeat(2, 1fr);
        gap: 4px;
    }
    
    .crop-compact {
        padding: 4px;
    }
}



.corp-full-right-feri-row {
  grid-column: 1 / -1;
  /* 如果需要额外的样式 */
  border-bottom: 1px solid #eee;
}

.crop-form-full-width{
 grid-column: 1 / -1;
}

/* 方法2：针对表头特殊处理 */
.crop-force-tooltip-table :deep(.el-table__header-wrapper) {
  .el-table__header th {
    position: relative;
    
    .cell {
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
      
      /* 添加鼠标悬浮显示完整内容 */
      &:hover::after {
        content: attr(data-title);
        position: absolute;
        top: -40px;
        left: 50%;
        transform: translateX(-50%);
        background: #303133;
        color: white;
        padding: 8px 12px;
        border-radius: 4px;
        font-size: 12px;
        white-space: nowrap;
        z-index: 2020;
      }
    }
  }
}



/* 表头单元格 - 强制省略号 */
.table-header-cell {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  width: 100%;
  cursor: default;
  display: block;
  font-weight: 500;
}

/* 表格单元格 - 强制省略号 */
.table-cell {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  width: 100%;
  cursor: default;
  display: block;
}

/* 数值单元格 - 右对齐 */
.number-cell {
  text-align: right;
  padding-right: 8px;
}

/* 日期单元格 - 居中对齐 */
.date-cell {
  text-align: center;
  padding: 0 4px;
}

/* 强制表格内部所有单元格使用省略号 */
:deep(.crop-force-tooltip-table .el-table__header-wrapper .cell),
:deep(.crop-force-tooltip-table .el-table__body-wrapper .cell) {
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
  display: block !important;
}

/* 确保el-tooltip正确显示 */
:deep(.crop-force-tooltip-table .el-tooltip__trigger) {
  display: block !important;
  width: 100%;
}

/* 表头样式优化 */
:deep(.crop-force-tooltip-table .el-table__header th) {
  padding: 8px 0;
}

/* 表格主体样式优化 */
:deep(.crop-force-tooltip-table .el-table__body td) {
  padding: 4px 0;
}

/* 按钮样式调整 */
:deep(.crop-force-tooltip-table .el-button) {
  padding: 2px 4px;
  font-size: 12px;
}