// 日历头部
.qk-calendar-header {
  display: flex;
  align-items: center;
  // background: #2d8cf0;
  // color: #fff;
  padding: 0.5rem;

  .header-right {
    margin-left: 2rem;
    border: 1px solid #eee;
    padding: 0.3rem 0;
    border-left: 0;
    border-radius: 0.25rem;
  }

  .btn {
    padding: 0.3rem 0.8rem;
    border-left: 1px solid #eee;
    cursor: pointer;
    // background: #eee;
    // color: #2d8cf0;
  }

  .btn:hover {
    //transform: translateY(-0.1rem);
    box-shadow: 0 0.1rem 0.2rem rgba(0, 0, 0, 0.1), 0 -3px 0.2rem rgba(0, 0, 0, .1);
  }

  .header-center {
    // flex: 3;
    text-align: center;
    font-weight: bold;
    font-size: 0.8rem;
    cursor: pointer;

    .title {
      margin: 0 0.5rem;
    }
  }
}

// 日历内容
.qk-calendar-body {

  // 头部
  .weeks {
    display: flex;
    // border-top: 1px solid #e8e8e8;
    border-bottom: 1px solid #e8e8e8;
    // border-left: 1px solid #e8e8e8;
    // background: #2d8cf0;
    // color: #fff;
    padding: 0.2rem;

    .week {
      flex: 1;
      text-align: center;
      // border-right: 1px solid #e8e8e8;

      li {
        font-weight: bold;
        font-size: 0.7rem;
      }
    }
  }
}




// 日历数据
.qk-calendar-body .dates {
  position: relative;

  .week-row {
    border-left: 1px solid #e8e8e8;
    display: flex;
  }

  .day-cell {
    flex: 1;
    width: 5rem;
    // height: 5rem;
    border-right: 1px solid #e8e8e8;
    border-bottom: 1px solid #e8e8e8;
    background-color: #fff;
  }

  // 其它月份日期
  .day-cell.not-cur-month {
    color: #999;
    background: #f2f2f2;
  }

  // 当前选中日期
  .day-cell.onday {
    background-color: #fcf8e3;
  }


  // 事件头部       
  .day-hd {
    cursor: pointer;
    height: 1rem;
    line-height: 1rem;
    padding-left: 0.5rem;
    font-size: 0.7rem;

    .day-hd-info {
      display: inline-block;
      background-color: #ed4014;
      font-size: 0.5rem;
      padding: 0 0.2rem;
      line-height: 0.7rem;
      color: #fff;
      border-radius: 50%;
      vertical-align: top;
      margin-top: 0.1rem;
    }
  }

  // 事件列表
  .event-box {
    height: 4rem;
    overflow: auto;

    li {
      cursor: pointer;
      font-size: 0.6rem;
      margin-top: 0.1rem;
      padding: 0.1rem 0.2rem;

      // 单行文本溢出
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }

    li:hover {
      //transform: translateY(-0.1rem);
      box-shadow: 0 0.1rem 0.2rem rgba(0, 0, 0, 0.1), 0 -3px 0.2rem rgba(0, 0, 0, .1);
    }

    // 事件开始
    li.is-start {
      margin-left: 0.2rem;
      border-radius: 0.25rem 0 0 0.25rem;
    }

    // 事件结束
    li.is-end {
      margin-right: 0.4rem;
      border-radius: 0 0.25rem 0.25rem 0;
    }

    // 当天样式
    li.is-day {
      margin-left: 0.2rem;
      margin-right: 0.2rem;
      border-radius: 0.25rem;
    }

    // 隐藏
    li.is-opacity {
      opacity: 0;
    }

    .more-link {
      cursor: pointer;
      padding-left: 8px;
      padding-right: 2px;
      color: rgba(0, 0, 0, 0.38);
      font-size: 14px;
    }
  }

  // 默认跨天样式
  .event-item {
    background: #2b85e4;
    color: #fff;
  }
}


// 列表显示
.qk-calendar-body .lists {
  position: relative;
  border-width: 1px;
  border-style: solid;
  border-color: #e9e9ec;


  table {
    width: 100%;
    box-sizing: border-box;
    table-layout: fixed;
    border-collapse: collapse;
    border-spacing: 0;
    font-size: 1em;
  }

  tr {
    display: table-row;
    vertical-align: inherit;
    border-color: inherit;
  }

  .list-table {
    table-layout: auto;

    .list-header {
      border-bottom-width: 1px;
      background: #eee;
      font-size: 14px;
      color: #100d1d;


      .list-header-main {
        float: left;
      }

      .list-header-alt {
        float: right;
      }

    }


    a {
      color: #100d1d;
    }

    td {
      border-width: 1px 0 0;
      padding: 8px 14px;
    }

    tr:first-child td {
      border-top-width: 0;
    }
  }

  .list-item {
    box-sizing: content-box;
  }

  .list-item:hover td {
    background-color: #f5f5f5;
  }

  .list-item-time {
    padding-right: 0;
    width: 25%;
  }

  .list-item-marker {
    padding-right: 0;
    width: 10px;
  }

  .list-item-title {
    padding-right: 0;
  }

  .list-event-dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 5px;
    background-color: #3a87ad;
  }
}
