@import "./element-variables.scss";
// cover some element-ui styles

.el-button--default {
  background-color: rgba(32, 82, 125, 0.6);
  border-color: rgba(32, 82, 125, 0.6);

  &:hover,
  &:focus {
    color: #fff;
    background-color: rgba(32, 82, 125, 1);
    border-color: rgba(32, 82, 125, 1);
  }

  &.is-disabled {
    background: #274d6d !important;
    border-color: #274d6d;
  }
}

.el-button--primary {
  &.is-plain {
    color: #3daeff;
    background: none;
    border-color: #3daeff;
  }
  &.is-plain:hover,
  &.is-plain:focus {
    background: #3daeff;
    color: #fff;
    border-color: #3daeff;
  }
}

.el-button--danger {
  &.is-plain {
    color: #f56c6c;
    background: none;
    border-color: #f56c6c;
  }
}

.el-menu {
  border: 0;

  &--collapse {
    width: 50px;
  }
}

// 多行文本输入框
.el-textarea {
  .el-input__count {
    background: transparent;
  }
}

// 时间、日期选择器背景色
.el-picker-panel,
.el-picker-panel__footer,
.el-range-editor .el-range-input,
.el-time-panel {
  background: #103c5d;
}

.el-picker-panel *[slot="sidebar"],
.el-picker-panel__sidebar {
  background: #103c5d;
}

.el-picker-panel__footer {
  background: #103c5d;

  .el-button {
    background: none;
    border: none;
  }

  .el-button.is-disabled.is-plain,
  .el-button.is-disabled.is-plain:hover,
  .el-button.is-disabled.is-plain:focus {
    color: #999;
    background-color: #103c5d;
    border: none;
  }

  .el-button.is-plain {
    color: #21aeff;
  }

  .el-button.is-plain:hover,
  .el-button.is-plain:focus {
    color: #4dbeff;
    background-color: #103c5d;
    border: none;
  }
}

// 表格
.el-table {
  border-radius: $--border-radius-base;
  background-color: $--bg-color-base;

  tr {
    background-color: $--bg-color-base;
  }

  tr.current-row {
    td {
      background-color: $--bg-color-base-light-3;
      color: $--font-color-base;
    }
  }

  th.is-leaf,
  td {
    border-bottom: 1px solid $--bg-color-base-dark-4;
  }

  thead {
    font-weight: $--font-weight-bold;
  }

  .el-table__expand-icon {
    color: #fff;
  }
  .el-table__expanded-cell {
    background-color: $--bg-color-base;
  }
  .el-table__fixed-right-patch {
    top: 0;
    background-color: $--bg-color-base;
    border-bottom: 1px solid $--bg-color-base-dark-4;
  }
}

// 下拉菜单
.el-dropdown-menu {
  background-color: #0c3959;

  &__item {
    &--divided {
      &:before {
        background-color: #0c3959;
      }
    }
  }
}

// 表单项
.el-form-item__label {
  font-size: 12px;
  color: #85a9c7;
}

//el-slider
.el-tooltip__popper.is-dark {
  background: #000;
}

// 分页
.el-pagination {
  button {
    &:disabled {
      background-color: transparent;
    }
  }
}

// 下拉框
.el-select-dropdown__item {
  &.is-disabled {
    &:hover {
      background-color: transparent;
    }
  }
}

// 折叠面板
// .el-collapse {
//   &-item {
//     &__header {
//       background-color: transparent;
//     }
//     &__wrap {
//       background-color: transparent;
//     }
//   }
// }

// 卡片
.el-card {
  background-color: #0c3959;
}

// dialog
.el-dialog {
  border: 1px solid #1a85bd;
  border-radius: 4px;

  &__header {
    border-bottom: 1px solid #1a5d8b;
  }

  &__body {
    padding: 16px;
  }
}

// message box
.el-message-box {
  background-color: #0c3959;
  width: auto;
}

/* 日历公用样式 start */
.calendarHead {
  height: 58px;
  padding: 0 16px;
  font-size: 18px;
  line-height: 56px;
  border-bottom: 1px solid #124466;
  box-sizing: border-box;
}

/* Collapse 折叠面板 - start */
.el-collapse {
  &-item {
    &__header {
      background-color: transparent;
    }

    &__wrap {
      background-color: transparent;
    }
  }

  border: 0;

  .el-collapse-item {
    margin-bottom: 10px;

    .el-collapse-item__header {
      height: 36px;
      padding-left: 16px;
      font-size: 14px;
      line-height: 36px;
      background-color: #153551;
      border: 0;
    }

    .el-collapse-item__wrap {
      background: transparent;
      border: 0;

      .el-collapse-item__content {
        font-size: 14px;
        color: #a5bbce;
      }
    }
  }
}

/* Collapse 折叠面板 - end */

.el-date-table-calendar td.current:not(.disabled) {
  color: #ffd0a3;
}

.el-container .calendarWrap .el-picker-panel-calendar {
  width: 90%;
  margin: 0 auto;
  color: #a5bbce;
  background-color: #102f4a;
  border: 0;
  box-shadow: none;
}

.el-picker-panel-calendar__icon-btn {
  color: #21aeff;
}

.el-container
  .calendarWrap
  .el-picker-panel-calendar
  .el-date-table-calendar
  th {
  color: #a5bbce;
  border-bottom: 0;
}

#carMatching .el-container .calendarWrap .el-picker-panel-calendar .today div {
  width: 30px;
  height: 30px;
  margin: auto;
  line-height: 31px;
  //color: #fff;
  background-color: #f68c25;
  border-radius: 50%;
}

.el-date-table-calendar td.today {
  background-color: rgba(0, 0, 0, 0) !important;
}

/* 日历公用样式 end */

// 选择框
.el-select {
  // 选择框多选填充标签
  .el-tag--info {
    color: #fff;
    background: #21aeff;
    border-color: #21aeff;

    .el-tag__close {
      color: #fff;
      background: #21aeff;

      &:hover {
        background: #1890ff;
      }
    }
  }
}

// 级联选择框
.el-cascader {
  &__dropdown {
    background-color: #103c5d;
  }

  &__search-input {
    background-color: #103c5d;
  }

  .el-tag--info {
    color: #fff;
    background: #21aeff;
    border-color: #21aeff;

    .el-tag__close {
      color: #fff;
      background: #21aeff;

      &:hover {
        background: #1890ff;
      }
    }
  }
}

/* 文件上传 start */

.el-upload--picture-card,
.el-upload-list--picture .el-upload-list__item {
  background-color: rgb(19, 72, 113);
  border: none;
}

.el-upload-dragger {
  background-color: inherit;
}

/* 文件上传 end */

.el-calendar {
  background-color: inherit;

  .el-calendar-table td:hover {
    background-color: #102f4a;
  }

  .el-calendar-table .el-calendar-day {
    height: auto;
    min-height: 85px;
  }

  .el-calendar__title {
    color: $--font-color-base;
  }

  .el-calendar-table .el-calendar-day:hover {
    background-color: initial;
  }

  .el-calendar-table td.is-selected {
    background-color: #102f4a;
  }
}

/* Tree 树形控件  start */
.el-tree {
  background: #0c3959;
}

.el-tree--highlight-current .el-tree-node.is-current > .el-tree-node__content {
  background-color: rgb(26, 86, 138);
}

/* Tree 树形控件  end */

/* Drawer 抽屉组件 start  */
.el-drawer__header {
  margin-bottom: 10px;
  color: #fff;
}

.el-drawer__header .el-drawer__close-btn {
  outline: none;
}

.el-drawer__header > :first-child {
  outline: none;
}

/* Drawer 抽屉组件 end  */

/* notification */

.el-notification {
  width: 300px;
  background: rgba(12, 57, 89, 0.96);
  border: 1px solid rgba(26, 133, 189, 1);
  border-radius: 6px;
  box-shadow: 0 4px 9px 0 rgba(10, 51, 36, 0.35);
}

.el-notification__title {
  font-size: 13px;
  font-weight: 400;
  color: rgba(255, 255, 255, 1);
}

.el-notification__content {
  font-size: 12px;
  font-weight: 400;
  color: rgba(255, 255, 255, 1);
}

.login {
  .login-form {
    .el-input--medium .el-input__inner {
      -webkit-text-fill-color: black;
      box-shadow: 0 0 0 1000px #fff inset;
    }
  }
}

.el-date-table-calendar td.current[data-v-55be3324]:not(.disabled) {
  background-color: #102f4a !important;
}

/* 穿梭框 */

.el-transfer-panel {
  background-color: #0c3959;
}

/*带输入建议的输入框*/
.el-autocomplete-suggestion {
  background: #0a2a44;
}

.el-divider__text {
  background-color: $--bg-color-base-dark-3;
}
