@import "../common/var";

@include b(picker-panel) {
  color: $--color-text-regular;
  border: $--border-base;
  box-shadow: $--box-shadow-light;
  background: $--color-white;
  border-radius: $--border-radius-base;
  // line-height: 30px;
  margin: 5px 0;
  
  @include e((body, body-wrapper)) {
    &::after {
      content: "";
      display: table;
      clear: both;
    }
  }
  .has-shortcuts{
    display: flex;
  }
  @include e(content) {
    position: relative;

    &:not(.is-range) {
      margin: 0;
      width: 100%;
    }

    // 时间日期选择器需要改time-spinner的样式
    .el-time-spinner {
      display: flex;
    }

    .has-seconds {
      .el-time-spinner__wrapper {
        flex: 1;
        .el-scrollbar__wrap {
          overflow-x: hidden;
          .el-time-spinner__item {
            width: calc(100% - 8px)
          }
        }
      }
    }
  }

  @include m(fotterbtn) {
    // width: 100%;
    // height: $--datepicker-footer-height;
    box-sizing: border-box;
    // padding-left: 16px;
    background-color: $--color-white;
    // overflow: auto;
    // display: flex;
    // align-items: center;
    // border-top: $--border-base;
    // border-bottom-left-radius: $--border-radius-base;
    // border-bottom-right-radius: $--border-radius-base;
    border-top: none;
    border-right: $--border-base;
    overflow: hidden;
    padding: 0;
    padding-bottom: 10px;
    display: flex;
    align-items: center;
    flex-direction: column;
    height: initial !important;
    width: 99px;
    padding-left: initial !important;

    .el-button + .el-button {
      margin-left: 12px;
    }
  }
  .footer-range{
    width: 145px;
  }


  @include e(footer) {
    border-top: $--border-width-base $--border-style-base $--datepicker-inner-border-color;
    height: $--datepicker-footer-height;
    line-height: $--datepicker-footer-height;
    padding-right: 16px;
    text-align: right;
    background-color: $--color-white;
    position: relative;
    font-size: 0;
    border-bottom-left-radius: $--border-radius-base;
    border-bottom-right-radius: $--border-radius-base;
  }

  @include e(shortcut) {
    // display: block;
    // border: 0;
    // background-color: transparent;
    // line-height: 28px;
    // font-size: $--datepicker-font-size-base;
    // color: $--datepicker-font-color;
    // padding-left: 12px;
    // text-align: left;
    outline: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 24px !important;
    font-size: $--font-size-body-1;
    background: $--color-secondary;
    border-radius: $--border-radius-small;
    color: $--color-text-secondary;
    margin: 8px 9px 0 9px !important;
    padding-left: 11px !important;

    &:hover {
      // color: $--datepicker-hover-font-color;
      color: $--color-text-2;
      background: #E5E6EB;
    }

    &.active {
      background-color: $--primary-2;
      color: $--datepicker-active-color;
    }
  }

  @include e(btn) {
    border: $--border-width-base $--border-style-base $--color-border-2;
    color: $--color-text-2;
    line-height: 24px;
    // border-radius: 2px;
    border-radius: $--border-radius-small;
    padding: 0 20px;
    cursor: pointer;
    background-color: transparent;
    outline: none;
    font-size: $--font-size-body-1;

    &[disabled] {
      color: #cccccc;
      cursor: not-allowed;
    }
  }

  @include e(icon-btn) {
    font-size: $--datepicker-font-size;
    color: $--datepicker-icon-color;
    border: 0;
    background-color: $--color-transparent;
    cursor: pointer;
    outline: none;
    // margin: 20px 5px;
    margin: 14px 5px;

    &:hover {
      background-color: $--color-secondary;
      // border-radius: 50%;
      border-radius: $--border-radius-circle;
      padding: 4px;
      // margin: 16px 1px;
      margin: 10px 1px;
    }

    @include when(disabled) {
      color: $--font-color-disabled-base;

      &:hover {
        cursor: not-allowed;
        background-color: $--color-transparent;
      }
    }
  }
  .el-icon-d-arrow-right {
    margin-right: 0;

    &:hover {
      margin-right: -4px;
      margin-left: 1px;
    }
  }
  .el-icon-d-arrow-left {
    margin-left: 0;

    &:hover {
      margin-left: -4px;
      margin-right: 1px;
    }
  }

  @include e(link-btn) {
    vertical-align: middle;
  }
}
.date-shortcuts{
  width: 398px;
}
