@import "../common/var";
@import "../mixins/mixins";

@include b(date-picker) {
  width: 288px;

  &.has-sidebar.has-time {
    width: 400px;
  }

  &.has-sidebar {
    width: 404px;
  }

  &.has-time .xb-picker-panel__body-wrapper {
    position: relative;
  }

  .xb-picker-panel__content {
    width: 258px;
  }

  table {
    table-layout: fixed;
    width: 100%;
  }

  @include e(editor-wrap) {
    position: relative;
    display: table-cell;
    padding: 0 5px;
  }

  @include e(time-header) {
    position: relative;
    border-bottom: 1px solid $--border-color-inner-9;
    font-size: 12px;
    padding: 8px 5px 5px 5px;
    display: table;
    width: 100%;
    box-sizing: border-box;
  }

  @include e(header) {
    padding:8px 12px;
    text-align: center;
    border-bottom:1px solid $--border-color-inner-9;

    @include m(bordered) {
      margin-bottom: 0;
      padding-bottom: 12px;
      border-bottom: solid 1px $--border-color-inner-9;

      & + .xb-picker-panel__content {
        margin-top: 0;
      }
    }
  }

  @include e(header-label) {
    font-size: $--font-size-base;
    font-weight: $--font-weight-base;
    padding: 0 3px;
    line-height: 22px;
    text-align: center;
    cursor: pointer;
    color: $--color-black-85;

    &.active {
      color: red;
    }
  }

  @include e(prev-btn) {
    float: left;
  }

  @include e(next-btn) {
    float: right;
  }

  @include e(time-wrap) {
    padding: 10px;
    text-align: center;
  }

  @include e(time-label) {
    float: left;
    cursor: pointer;
    line-height: 30px;
    margin-left: 10px;
  }
}
