// cover some element-ui styles

.el-breadcrumb__inner,
.el-breadcrumb__inner a {
  font-weight: 400 !important;
}

.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;
  border-radius: 8px;
  overflow: hidden;
}

// 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;
}

// ============================
// 全局主题覆盖 — Indigo 配色
// ============================

// 主要按钮
.el-button--primary {
  background-color: #4F46E5;
  border-color: #4F46E5;

  &:hover, &:focus {
    background-color: #6366F1;
    border-color: #6366F1;
  }

  &:active {
    background-color: #4338CA;
    border-color: #4338CA;
  }

  &.is-plain {
    color: #4F46E5;
    background-color: #EDE9FE;
    border-color: #C4B5FD;

    &:hover, &:focus {
      background-color: #4F46E5;
      border-color: #4F46E5;
      color: #fff;
    }
  }
}

// 成功按钮
.el-button--success {
  background-color: #10B981;
  border-color: #10B981;

  &:hover, &:focus {
    background-color: #34D399;
    border-color: #34D399;
  }
}

// 危险按钮
.el-button--danger {
  background-color: #EF4444;
  border-color: #EF4444;

  &:hover, &:focus {
    background-color: #F87171;
    border-color: #F87171;
  }
}

// 警告按钮
.el-button--warning {
  background-color: #F59E0B;
  border-color: #F59E0B;

  &:hover, &:focus {
    background-color: #FBBF24;
    border-color: #FBBF24;
  }
}

// 输入框聚焦
.el-input__inner:focus,
.el-textarea__inner:focus {
  border-color: #4F46E5;
}

// 分页组件激活色
.el-pagination.is-background .el-pager li:not(.disabled).active {
  background-color: #4F46E5;
}

// Switch 组件激活色
.el-switch.is-checked .el-switch__core {
  border-color: #4F46E5;
  background-color: #4F46E5;
}

// Radio 激活色
.el-radio__input.is-checked .el-radio__inner {
  border-color: #4F46E5;
  background: #4F46E5;
}

.el-radio__input.is-checked + .el-radio__label {
  color: #4F46E5;
}

// Checkbox 激活色
.el-checkbox__input.is-checked .el-checkbox__inner {
  background-color: #4F46E5;
  border-color: #4F46E5;
}

.el-checkbox__input.is-checked + .el-checkbox__label {
  color: #4F46E5;
}

// Select 选中色
.el-select .el-input.is-focus .el-input__inner {
  border-color: #4F46E5;
}

// Tabs 激活下划线
.el-tabs__item.is-active {
  color: #4F46E5;
}

.el-tabs__active-bar {
  background-color: #4F46E5;
}

// Tag 组件
.el-tag--primary {
  background-color: #EDE9FE;
  border-color: #C4B5FD;
  color: #4F46E5;
}

// Steps 激活色
.el-step__head.is-finish {
  color: #4F46E5;
  border-color: #4F46E5;
}

.el-step__title.is-finish {
  color: #4F46E5;
}

// Table 排序图标激活
.el-table__sort-caret.ascending {
  border-bottom-color: #4F46E5;
}

.el-table__sort-caret.descending {
  border-top-color: #4F46E5;
}

// 链接文字色
.el-link--primary {
  color: #4F46E5;

  &:hover {
    color: #6366F1;
  }
}

// 日期选择器选中日期
.el-date-table td.current:not(.disabled) span,
.el-date-table td.end-date span,
.el-date-table td.start-date span {
  background-color: #4F46E5;
}
