@import "../common/var.css";
@import "./picker-panel.css";

@component-namespace el {
  @b date-picker {
    min-width: 254px;

    &.has-sidebar.has-time {
      min-width: 434px;
    }

    &.has-sidebar {
      min-width: 370px;
    }
   /*-wbx add-*/
    &.has-time {
      min-width: 324px;
    }
  /*-wbx add-*/
    .el-picker-panel__content {
      min-width: 224px;
    }
    .el-picker-panel__body {
      border-radius: 10px;
    }
    table {
      table-layout: fixed;
      width: 100%;
    }

    @e editor-wrap {
      position: relative;
      display: table-cell;
      padding: 0 5px;
    }

    @e time-header {
      position: relative;
      /*border-bottom: 1px solid var(--datepicker-inner-border-color); -wbx remove*/
      font-size: 12px;
      padding: 8px 10px 5px 10px;/*-wbx edit-*/
      display: table;
      width: 100%;
      box-sizing: border-box;
    }

    @e header {
      margin: 12px;
      text-align: center;
      display: flex;
      justify-content: space-between;
      h2 {
        font-size: 16px;
        display: inline;
        line-height: 24px;
      }
    }

    @e header-label {
      font-size: 14px;
      padding: 0 5px;
      line-height: 22px;
      text-align: center;
      cursor: pointer;

      &:hover {
        color: var(--datepicker-text-hover-color);
      }

      &.active {
        color: var(--datepicker-active-color);
      }
    }

    @e prev-btn {
      /*float: left;*/
    }

    @e next-btn {
      /*float: right;*/
    }

    @e time-wrap {
      padding: 10px;
      text-align: center;
    }

    @e time-label {
      float: left;
      cursor: pointer;
      line-height: 30px;
      margin-left: 10px;
    }
  }
}
