@import './color.less';
.school-calender {
  
  @media screen and (max-width: 1280px) {
    .todayBtn{
      flex:1 !important
    }
    .dateNum {
      font-size: 14px !important;
      flex:5 !important
    }
    .monthCtlbtn{
      flex:3 !important
    }
   
    .courseNote {
      height: 500px !important;
    }
    
  }
  @media screen and (max-width: 991px){
    .list,.courseNote {
      height: auto !important;
      overflow: auto !important;
     
    }
  }
  
  overflow: hidden;
  @media screen and (max-width: 991px) {
    .calendarArea {
      width: 50% !important;
    }
    .detailArea {
      width: 50% !important;
    }
  }
  .calendarArea {
    position: fixed;
    width: 30%;
    height: 100%;
    border-right: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow:1px 2px 13px rgba(0, 0, 0, 0.2);
    padding: 30px 30px 20px 10px;
   
  }
  @media screen and (max-width: 767px) {
    .calendarArea {
      display: none;
    }
    .detailArea {
      width: 100% !important;
    }
  }
  
  .dateCtl {
    .todayBtn{
      height: 30px;
    }
    display: flex;
    width: 100%;
    margin-left: 4%;
    margin-right: 0%;
    .todayBtn {
      flex: 1;
    }
    h2,
    button {
      flex: 10.5;
    }
    .monthCtlbtn {
      flex: 3;
      height: 30px;
    }
    @media screen and (max-width: 1574px) {
      .todayBtn {
        flex: 2;
      }
      h2,
      button {
        flex: 8;
      }
      h2 {
        font-size: 16px;
        margin-top: 3px;
      }
      .monthCtlbtn {
        flex: 4;
      }
    }
    button {
      color: rgb(106, 101, 101);
      font-weight: bolder;
      border-radius: 4px;
      background: rgba(0, 0, 0, 0.1);
      border: none;
      padding: 2px 10px;

      margin: 5px 5px;
      cursor: pointer;
      outline: none;
      &:hover {
        background: rgba(0, 0, 0, 0.15);
      }
    }
  }
  .dateNum {
    margin: 2px;
    text-align: center;
  }

  .calendar {
    margin-left: 5%;
    margin-top: 10px;
  }
  .weekDay > div {
    flex: 1;
    text-align: center;
    font-weight: bolder;
    line-height: 30px;
    border-right: 1px solid #ddd;
    border-top: 1px solid #ddd;
    &:first-child {
      border-left: 1px solid #ddd;
    }
  }
  .weekDay,
  .week {
    display: flex;
    border-bottom: 1px solid #ddd;
  }
  .week {
    height: 60px;
    border-left: 1px solid #ddd;
  }

  .day {
    position: relative;
    flex: 1 1 0%;
    border-right: 1px solid #ddd;
    cursor: pointer;

    &:before {
      padding: 3px;
      text-align: center;
      position: absolute;
      content: attr(data-date);
      top: 0px;
      right: 0px;
      font-size: 8px;
      display: block;
      width: 20px;
    }
    .noteItemGroup {
      position: absolute;

      width: 100%;
      text-align: center;
      left: -1px;
      bottom: 3px;
      .classNoteItem {
        display: inline-block;
        margin-left: 5px;
        font-size: 10px;
        padding: 0px 5px;
        line-height: 18px;
        font-weight: bolder;
        color: #fff;
        font-weight: bolder;
        background-color: @primary;
        border-radius: 4px;
        list-style: none;
        text-align: left;
      }
      .workNoteItem {
        display: inline-block;
        margin-left: 5px;
        font-size: 10px;
        padding: 0px 5px;
        line-height: 18px;
        font-weight: bolder;
        color: #fff;
        font-weight: bolder;
        border-radius: 4px;
        background-color: #fa6400;
        list-style: none;
        text-align: left;
      }
    }
  }
  .todaymarkWhileClick:before,
  .today:before {
    color: #fff;
    font-weight: bolder;
    background-color: #64ae16;
  }
  .today,
  .clickDate {
    background-color: #d4ede1;
  }

  .other {
    color: rgb(177, 177, 177);
    background-color: rgba(221, 221, 221, 0.527);
    cursor: not-allowed;
  }
}

.noteMeaning {
  margin: 3% 5%;
  li {
    line-height: 26px;
    font-weight: bolder;
    list-style: none;
  }
  .courseItemDot,
  .taskItemDot {
    display: inline-block;
    position: relative;
    top: 0px;
    margin-right: 5px;
    width: 10px;
    border-radius: 10px;
    height: 10px;
  }
  .courseItemDot {
    background-color: @primary;
  }
  .taskItemDot {
    background-color: #fa6000;
  }
}
.detailArea {
  width: 70%;

  float: right;
  
  .dateTitle {
    padding-top: 2%;
    margin-left: 3%;
    margin-bottom: 0px;
  }
  .taskDetail {
    margin: 0px 20px;
    padding: 0px 20px;
  
    overflow: scroll;
    .taskDetail-Loading{
      position: relative;
      margin-left: -10%;;
      min-height: 600px;
    }
  
    .courseNote {
     
      height:auto;
      width: 100%;
      overflow: auto;
      .courseNoteItem {
        padding: 20px 0px;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
        .courseItem-title {
          color: @secondary;
        }
        &:last-child {
          border: none;
        }
      }
    }
    .title-rect-group {
      margin-top: 22px;
    }
    .list {
      margin-top: 15px;
      width: 100%;
      position: relative;
      height: auto;
      border: 1px solid @border;
      box-shadow: none;
      border-bottom:none;
    }
    .list-block {
      height: auto;
      position: relative;
      width: 100%;
    }
  }
}
.courseTable {
  border-collapse: collapse;
  margin-top: 20px;
  th,
  td {
    text-align: center;
    padding: 10px;
    border: 1px solid rgba(0, 0, 0, 0.2);
  }
  td:nth-child(2n) {
    font-weight: bolder;
  }
  .courseName{
    color: @primary;
    cursor: pointer;
  }
}
@keyframes fadein {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
