/* widget_calendar */
.calendar_wrap {
  width: 100%;
  margin-bottom: 0;
  -webkit-overflow-scrolling: touch;
  -ms-overflow-style: -ms-autohiding-scrollbar;

  @media (min-width: 768px) and (max-width: 992px) {
    & {
      overflow-x: auto;
      overflow-y: hidden;
    }
  }
}

.widget_calendar {
  table {
    margin: 0;
    position: relative;
    text-align: center;
    max-width: 570px;

    //experiment
    display: flex;
    flex-direction: column;

    td, th{
      border: none;
    }
  }

  caption {
    line-height: 1;
    padding: 18px 0 18px;
    text-align: center;
    color: $lightColor;
    font-size: 24px;
    font-weight: 500;
    background: linear-gradient(to right, rgba($colorMain, 1) 0%, rgba($colorMain2, 1) 100%);
  }
  thead {
    background-color: $darkFontColor;
    color: $lightColor;
    text-transform: uppercase;
    font-size: 12px;

    th {

      &:first-child {
        padding-left: 30px;
      }
      &:last-child {
        padding-right: 30px;
      }
      font-weight: 600;
      text-align: center;
      width: 100px;
    }
  }

  tbody {
    background-color: $greyColor;
    tr {

      &:first-child {
        td {
          padding-top: 36px;
        }
      }
      &:last-child {
        td {
          padding-bottom: 34px;
        }
      }
    }
    td {
      padding: 9px 4px;
      position: relative;
      width: 100px;
      font-weight: 400;
      &:first-child {
        padding-left: 28px;
      }
      &:last-child {
        padding-right: 28px;
      }
      &.pad{
        color: lighten($fontColor, 20%);
      }
      a {
        color: $colorMain !important;
        display: inline-block;
      }
    }
  }

  th {
    color: inherit;
  }

  tfoot {
    td {
      position: absolute;
      top: 0;
      a {
        //uncomment to hide text near arrows
        //font-size: 0;
        //width: 60px;

        text-align: center;
        height: 60px;
        line-height: 60px;
        display: inline-block;
        padding: 0 25px;
        font-size: 0;
        color: transparent;
        &:hover {
          opacity: 0.4;
        }
        &:before,
        &:after {
          color: $lightColor;
          font-size: 10px;
          font-family: 'FontAwesome';
        }
      }
      &.pad {
        display: none;
      }
    }

    //prev
    td:first-child {
      left: 0;
      padding: 0;
      a {
        &:before {
          content: '\f053';
        }
      }
    }
    //next
    td:last-child {
      right: 0;
      padding: 0;
      a {
        &:after {
          content: '\f054';
        }
      }
    }
  }
}