/*
==========================================================================
    Calendar
==========================================================================
*/
.calendar {
  padding: 0;
  position: relative;
  z-index: 0;
  @include border-radius(0);

  .calendar-header {
    display: none;
  }

  .months-container {
    .month-container {
      display: block;
      padding: 0 5px;
      width: 16.665%;
      height: 220px !important;

      @media (max-width: 1200px) {
        width: 20%;
      }

      @media (max-width: 1023px) {
        width: 25%;
      }

      @media (max-width: 767px) {
        width: 33.33%;
      }

      @media (max-width: 640px) {
        width: 50%;
      }

      @media (max-width: 480px) {
        width: 100%;
        height: auto !important;
        margin: 5px 0 !important;

        &:first-child {
          margin-top: 0;
        }
      }

      .month {
        background: #fff;
        width: 100%;

        tr {

          td,
          th {
            text-align: center;
            width: 28px;
            height: 26px;
            border: none;
            padding: 1px 2px;
            border: 1px solid #ddd;
            color: #000;
            position: relative;
          }

          th {
            font-family: $base-font-semibold;
            font-size: 12px;
            font-weight: normal;
          }

          td {
            font-family: $base-font;
            font-size: 11px;
            font-weight: normal;
            position: relative;
          }

          td.day {
            height: 26px;

            .available-room {
              display: block;
              position: absolute;
              left: 0;
              right: 0;
              top: 11px;
              width: 26px;
              margin: 0 auto;
              font-size: 11px;
              color: #00a152;
              cursor: none;
              z-index: 10;
            }

            &.old .available-room {
              display: none;
            }
          }

          .day-content {
            @include border-radius(0);
            padding: 0 2px;
            text-align: left;
            vertical-align: top;
            position: absolute;
            left: 0;
            top: 0;
            width: 100%;
            height: 100%;
            cursor: pointer;
            z-index: 100;
          }

          th.month-title,
          th.day-header {
            font-size: 12px;
            font-weight: normal;
            padding: 1px 1px;
          }

          th.month-title {
            background: #98bad6;
          }

          th.day-header {
            height: 22px;
            background: #dcedff;
          }
        }
      }
    }
  }

  // new 1-11-2018
  &.calendar-normal {
    overflow: hidden;

    .month {
      tr {
        .day-content {
          padding: 5px 2px !important;
          text-align: center !important;
          vertical-align: center !important;
          left: 0 !important;
          top: 0 !important;
          height: auto !important;
        }

        th.month-title {
          font-size: 13px !important;
        }

        th.day-header {
          height: 22px;
          background: #dcedff;
        }
      }
    }
  }
}

.fyc-calendar {
  margin: 0;

  .col-sm-2 {
    height: 280px;
    padding: 0 5px;
    @media (max-width: 1366px) {
      height: 220px;
    }
    @media (max-width: 1200px) {
      width: 25%;
    }
    @media (max-width: 1023px) {
      width: 33.33%;
    }
    @media (max-width: 767px) {
      width: 50%;
      float: left;
    }
    @media (max-width: 480px) {
      width: 100%;
      height: auto;
    }
  }

  .fyc-calendar-table {
    /*  widows: 220px !important;*/
    height: auto;
    margin: 0 auto;
    font-family: $base-font;
    table-layout: fixed;

    thead > tr:first-child > th,
    thead > tr:last-child > th,
    thead > tr > th,
    tbody > tr > td {
      border: 1px solid #bdbdbd !important;
      padding: 0 3px;
      height: 30px;
      width: 30px;
      @media (max-width: 1366px) {
        height: 26px;
        width: 28px;
      }
    }

    thead > tr > th {
      font-size: 12px;
      background-color: #98bad6;
      color: #000;
    }

    thead > tr.dayname > th {
      padding: 6px 3px !important;
      background-color: #dcedff;
      font-size: 12px;
      @media (max-width: 1366px) {
        padding: 3px 3px !important;
        height: 22px;
        width: 28px;
      }
    }

    tbody > tr > td {
      position: relative;
      font-size: 10px;
      color: $c-black;
    }

    //for UI examples.
    .reasonType-maintenance {
      background-color: blue;
    }

    [class*="reasonType-"]  .availableroom {
      color: #ffffff !important;
    }

    .past {
      opacity: .6;

    }
    .availableroom {
      position: absolute;
      //left: 0;
      right: 5px;
      top: inherit;
      bottom: 0;
      width: 26px;
      margin: 0 auto;
      font-size: 11px;
      color: #00a152;
      text-align: right;
    }

  }

}

/*
==========================================================================
    Calendar
==========================================================================
*/
.full-year-calendar-content {
  position: relative;
  z-index: 0;
  .title-bar {
    position: relative;
    padding: 0 10px;
    height: 30px;
    overflow: visible;
    text-align: center;
    @media (max-width: 960px) {
      margin-bottom: 40px;
      .available-date {
        height: 30px;
        width: 100%;
        display: block;
        padding: 0;
        margin: 0 auto;
        position: absolute;
        top: 35px;
        left: 0;
        right: 0;
        z-index: 100;
        span span { padding: 0 10px; }
      }
    }
    h2 {
      font-size: 14px;
      font-family: $base-font-semibold;
      font-weight: normal;
    }
  }
  .available-date {
    float: none;
    display: inline-block;
    margin: 0 auto;
    font-family: $base-font-semibold;
    font-weight: normal;
    font-size: $medium;
    strong { font-weight: normal; }
    position: absolute;
    left: 0;
    right: 0;
    margin: 0 auto;
    width: 320px;
  }
  .available-date span {
    position: relative;
    height: 30px;
    display: block;
    float: none;
    padding:2px 30px;
  }
  .available-date span .btn-next,
  .available-date span .btn-prev {
    cursor: pointer;
    height: 30px;
    width: 30px;
    display: block;
    position: relative;
    position: absolute;
    top: 0;
    z-index: 100;
  }
  .available-date span .btn-prev { left: 0; }
  .available-date span .btn-next{ right: 0; }
  .available-date span .btn-next i,
  .available-date span .btn-prev i {
    height: 30px;
    width: 30px;
    display: block;
    position: relative;
    left: inherit;
    right: inherit;
    top: inherit;
    background-size: contain;
  }
}
.calendar {
  padding: 0;
  position: relative;
  z-index: 0;
  @include border-radius(0);
  .calendar-header { display: none; }
  .months-container {
    .month-container {
      display: block;
      padding: 0 5px;
      width: 16.665%;
      height: 220px !important;
      @media (max-width: 1200px) {  width: 20%; }
      @media (max-width: 1023px) { width: 25%; }
      @media (max-width: 767px) { width: 33.33%; }
      @media (max-width: 640px) { width: 50%; }
      @media (max-width: 480px) {
        width: 100%;
        height: auto !important;
        margin: 5px 0 !important;
        &:first-child { margin-top: 0; }
      }
      .month {
        background: #fff;
        width: 100%;
        tr {
          td,
          th {
            text-align: center;
            width: 28px;
            height: 26px;
            border: none;
            padding: 1px 2px;
            border: 1px solid #ddd;
            color: #000;
            position: relative;
          }
          th {
            font-family: $base-font-semibold;
            font-size:12px;
            font-weight: normal;
          }
          td {
            font-family: $base-font;
            font-size:11px;
            font-weight: normal;
            position: relative;
          }
          td.day {
            height: 26px;
            .available-room {
              display: block;
              position: absolute;
              left: 0;
              right: 0;
              top: 11px;
              width: 26px;
              margin: 0 auto;
              font-size: 11px;
              color: #00a152;
              cursor: none;
              z-index: 10;
            }
            &.old .available-room { display: none; }
          }
          .day-content {
            @include border-radius(0);
            padding: 0 2px;
            text-align: left;
            vertical-align: top;
            position: absolute;
            left: 0;
            top: 0;
            width: 100%;
            height: 100%;
            cursor: pointer;
            z-index: 100;
          }
          th.month-title,
          th.day-header {
            font-size: 12px;
            font-weight: normal;
            padding: 1px 1px;
          }
          th.month-title {
            background:#98bad6;
          }
          th.day-header {
            height: 22px;
            background:#dcedff;
          }
        }
      }
    }
  }
  // new 1-11-2018
  &.calendar-normal {
    overflow: hidden;
    .month {
      tr {
        .day-content {
          padding: 5px 2px !important;
          text-align: center !important;
          vertical-align: center !important;
          left:0 !important;
          top: 0 !important;
          height: auto !important;
        }
        th.month-title { font-size: 13px !important; }
        th.day-header {
          height: 22px;
          background:#dcedff;
        }
      }
    }
  }
}


