// cover some element-ui styles - 现代化蓝色主题

// Element Plus 全局样式优化
:root {
  --el-color-primary: #1677ff;
  --el-color-primary-light-3: #91caff;
  --el-color-primary-light-5: #d6e4ff;
  --el-color-primary-light-7: #f0f7ff;
  --el-color-primary-light-8: #f5f9ff;
  --el-color-primary-light-9: #fafcff;
  --el-color-primary-dark-2: #0958d9;
  
  // 按钮样式优化
  --el-button-border-radius: 6px;
  --el-button-hover-bg-color: #4096ff;
  --el-button-active-bg-color: #0958d9;
  
  // 输入框样式优化
  --el-input-border-radius: 6px;
  --el-input-focus-border-color: #1677ff;
  
  // 表格样式优化
  --el-table-border-color: #f0f0f0;
  --el-table-header-bg-color: #fafafa;
  --el-table-row-hover-bg-color: #f5f9ff;
  
  // 标签页样式优化
  --el-tabs-header-height: 48px;
  --el-tabs-active-color: #1677ff;
  
  // 卡片样式优化
  --el-card-border-radius: 8px;
  --el-card-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.el-breadcrumb__inner,
.el-breadcrumb__inner a {
  font-weight: 400 !important;
  color: #666;
  
  &:hover {
    color: #1677ff;
  }
}

.el-upload {
  input[type="file"] {
    display: none !important;
  }
}

.el-upload__input {
  display: none;
}

.cell {
  .el-tag {
    margin-right: 0px;
  }
}

.small-padding {
  .cell {
    padding-left: 5px;
    padding-right: 5px;
  }
}

.fixed-width {
  .el-button--mini {
    padding: 7px 10px;
    width: 60px;
  }
}

.status-col {
  .cell {
    padding: 0 10px;
    text-align: center;

    .el-tag {
      margin-right: 0px;
    }
  }
}

// to fixed https://github.com/ElemeFE/element/issues/2461
.el-dialog {
  transform: none;
  left: 0;
  position: relative;
  margin: 0 auto;
}

// refine element ui upload
.upload-container {
  .el-upload {
    width: 100%;

    .el-upload-dragger {
      width: 100%;
      height: 200px;
    }
  }
}

// dropdown
.el-dropdown-menu {
  a {
    display: block
  }
}

// fix date-picker ui bug in filter-item
.el-range-editor.el-input__inner {
  display: inline-flex !important;
}

// to fix el-date-picker css style
.el-range-separator {
  box-sizing: content-box;
}

.el-menu--collapse
  > div
  > .el-submenu
  > .el-submenu__title
  .el-submenu__icon-arrow {
  display: none;
}

.el-dropdown .el-dropdown-link{
  color: var(--el-color-primary) !important;
}