.el-date-editor-extend {
  width: 396px !important;
  &:global {
    &.el-date-editor.el-input__wrapper:hover {
      box-shadow: none;
      border-color: #5e91ff;
      border-right-width: 1px !important;
    }
    &.el-date-editor.el-input__wrapper {
      transition: border 0.3s, box-shadow 0.3s;
      box-shadow: none;
      border: 1px solid #ebeff5;
    }
    &.el-range-editor.is-active {
      border-color: #5e91ff;
      box-shadow: 0 0 0 2px rgba(54, 112, 255, 0.2);
      border-right-width: 1px !important;
      outline: 0;

      .el-picker-separator {
        color: #252733;
      }
    }
    &.el-range-editor.is-active:hover {
      box-shadow: 0 0 0 2px rgba(54, 112, 255, 0.2);
    }
  }

  :global {
    .el-range-input {
      text-align: left !important;
      color: #20272c !important;
      flex: 1;
    }
    .el-range-separator {
      flex: none !important;
      padding: 0 8px !important;
    }

    .el-range__close-icon--hidden {
      opacity: 1 !important;
      visibility: visible !important;

      .el-picker-clear {
        opacity: 0;
      }
    }
    .el-picker-clear {
      opacity: 1;
      &:hover {
        color: #252733;
      }
    }
  }
}

:global {
  // 日期控件全局弹框样式
  .el-picker-panel.el-date-range-picker {
    @border-color: #f0f0f0;
    --el-datepicker-inner-border-color: @border-color;
    --el-timepicker-inner-border-color: @border-color;
    --el-border-color-lighter: @border-color;
    --el-border-color-light: @border-color;
    --el-datepicker-active-color: #3670ff;
    --el-datepicker-inrange-bg-color: #f0f7ff;
    .el-picker-panel__icon-btn {
      // line-height: normal;
      margin-top: 0;
      line-height: 28px;
      font-size: 14px;
      color: rgba(0, 0, 0, 0.25);
      transition: color 0.3s;
      &:hover {
        color: #20272c;
      }
    }
    .el-input__wrapper {
      input {
        color: #20272c;
      }
    }
    .el-input__wrapper,
    .el-input__wrapper:hover {
      box-shadow: 0 0 0 1px #ebeff5 inset;
    }
    .el-input__wrapper.is-focus {
      box-shadow: 0 0 0 1px #5e91ff inset;
    }
    .el-date-range-picker__header {
      color: rgba(0, 0, 0, 0.85);
      div {
        font-size: 14px;
      }
    }
    .el-time-panel__footer {
      .el-time-panel__btn.cancel {
        color: #20272c;
      }
      .el-time-panel__btn.confirm {
        color: #3e8dff;
      }
    }
    .el-time-panel__content {
      .el-time-spinner__item {
        font-size: 14px;
        color: #20272c;
      }
    }
    .el-picker-panel__footer {
      button {
        &:first-of-type {
          color: #20272c;

          &:hover {
            background-color: transparent;
          }
        }
        &:last-of-type {
          color: #fff;
          border-color: #3e8dff;
          background: #3e8dff;

          &:hover,
          &:focus {
            border-color: #4f97ff;
            background: #4f97ff;
          }
          &[disabled] {
            color: #fff;
            border-color: #bedaff;
            background: #bedaff;
          }
        }
      }
    }
    .el-date-table th {
      color: #20272c;
      font-size: 14px;
    }
    .el-date-table td {
      font-size: 14px;
    }
    .el-date-table td.prev-month,
    .el-date-table td.next-month {
      color: rgba(0, 0, 0, 0.25);
    }
    .el-date-table td.available {
      color: #20272c;
    }

    .el-date-table td .el-date-table-cell .el-date-table-cell__text {
      border-radius: 4px;
      transition: background 0.3s, border-radius 0.3s;
    }
    .el-date-table
      td.start-date:not(.end-date)
      .el-date-table-cell
      .el-date-table-cell__text {
      border-radius: 4px 0 0 4px;
    }
    .el-date-table
      td.end-date:not(.start-date)
      .el-date-table-cell
      .el-date-table-cell__text {
      border-radius: 0 4px 4px 0;
    }

    .el-date-table td.today .el-date-table-cell__text {
      color: inherit;
      font-weight: normal;
      &:after {
        position: absolute;
        top: 0;
        right: 0;
        bottom: 0;
        left: 0;
        z-index: 1;
        border: 1px solid #3670ff;
        border-radius: 4px;
        content: '';
      }
    }

    .el-picker-panel__shortcut {
      color: #20272c;
      &:hover {
        color: #3670ff;
      }
    }
    .extra-footer-wrapper {
      text-align: left;
      margin: -4px -12px 4px;
      padding: 0 12px;
      font-size: 14px;
      line-height: normal;
      color: #20272c;
      border-bottom: 1px solid @border-color;
    }
  }
}
