.ant-picker {
  // todo 这些样式在该项目中不生效
  // background-color: #ebedf0;
  // border: none;
  line-height: @height-large;
  vertical-align: middle;

  // 不加 !important 也不生效
  &:hover {
    box-shadow: none;
    border-color: @color-primary;
  }

  .ant-picker-range-separator {
    line-height: @height-large;
  }

  &.ant-picker-focused {
    box-shadow: none;
    border-color: @color-primary;

    .ant-picker-input,
    .ant-picker-range-separator {
      background: @color-primary-selected;

      i {
        transform: rotate(180deg);
      }
    }
  }

  &.ant-picker-range {
    height: 32px;
    padding: 4px 8px;
    color: #333333;
    width: 268px;
    &.ant-picker-focused {
      .ant-picker-suffix {
        background: @color-primary-selected;

        i {
          transform: rotate(180deg);
        }
      }
      .ant-picker-input-active {
        position: relative;

        &::after {
          content: '';
          position: absolute;
          display: inline-block;
          height: 2px;
          width: 56px;
          bottom: -3px;
          left: 11px;
          background: @color-primary;
        }
      }
    }

    .ant-picker-input {
      input {
        font-size: @font-size-normal;
        caret-color: transparent;
        line-height: 24px;
      }
    }

    .ant-picker-range-separator {
      font-size: @font-size-normal;
      padding-right: 8px;
    }

    .ant-picker-active-bar {
      display: none;
    }

    .ant-picker-suffix {
      margin-left: 0px;
      height: 24px;
      // padding-right: 8px;
    }
  }
  .ant-picker-suffix {
    i {
      font-size: 12px;
      display: inline-block;
      transition: all 0.2s linear;
      transform-origin: 50% 45%;
      transform: rotate(0deg);
    }
  }
}

.ant-picker-dropdown-range {
  padding: 0;
}
.ant-picker-dropdown.ant-picker-dropdown-placement-bottomLeft
  .ant-picker-range-arrow {
  display: none;
}
.ant-picker-dropdown.ant-picker-dropdown-range {
  padding: 0;
}

.ant-picker-panel-container {
  margin-top: 2px;
  // width: 268px;
  .ant-picker-panel {
    border: none;
    .ant-picker-footer {
      line-height: 32px;
    }
    &:last-of-type {
      .ant-picker-date-panel {
        border-left: 0;
      }
    }
  }
  .ant-picker-date-panel {
    width: 268px;
    padding: 16px 12px 8px;
    box-sizing: border-box;
    border: solid 1px #e1e3e6;

    .ant-picker-content {
      width: 100%;
    }

    .ant-picker-header {
      border-bottom: none;
      padding: 0px;
      line-height: 16px;
      color: #333333;

      button {
        line-height: 16px;
        visibility: visible !important;
      }

      .ant-picker-header-view {
        line-height: 16px;
      }

      .ant-picker-header-prev-btn {
        margin-left: 4px;
      }

      .ant-picker-prev-icon,
      .ant-picker-super-prev-icon {
        transform: rotate(-45deg) scale(1.2);
      }

      .ant-picker-next-icon,
      .ant-picker-super-next-icon {
        transform: rotate(135deg) scale(1.2);
      }
    }

    .ant-picker-body {
      padding: 10px 0 0;

      .ant-picker-cell {
        width: 32px;
        padding: 2px 0;

        &::before {
          height: 32px;
          width: 32px;
          left: 50%;
          top: 50%;
          transform: translate(-50%, -50%);

          &:nth-last-of-type(1) {
            width: 32px;
          }
        }

        .ant-picker-cell-inner {
          width: 32px;
          height: 30px;
          line-height: 30px;
          font-size: 12px;
        }

        &.ant-picker-cell-range-end,
        &.ant-picker-cell-range-start {
          .ant-picker-cell-inner {
            background: @color-primary;
          }
        }

        &.ant-picker-cell-range-hover-start {
          width: 32px;
          .ant-picker-cell-inner {
            width: 32px;
          }
          &:before {
            width: 32px;
          }
        }
      }

      .ant-picker-cell-in-view.ant-picker-cell-selected .ant-picker-cell-inner {
        color: #fff;
        background: @color-primary;
      }

      .ant-picker-cell-in-view.ant-picker-cell-today .ant-picker-cell-inner {
        &::before {
          border: none;
          // border-bottom: 1px solid @color-primary
          // z-index: -1;
        }
        &::after {
          display: inline-block;
          content: '';
          background: @color-primary;
          width: 15px;
          height: 1px;
          position: absolute;
          bottom: 0;
          left: 8px;
        }
      }
    }
  }
}
