.content__calendar {
  clear: both;
  position: relative;
  height: 100%;
  min-height: 1px;

  .calendar__view {
    position: relative;
    width: 100%;
    height: inherit;

    .border-separate {
      border-collapse: separate;

      th,
      td {
        border-width: 1px 0 0 1px;
        padding: 0;
        vertical-align: top;

        &.last {
          border-right-width: 1px;
        }
      }
    }
  }

  .calendar__grid {
    th {
      height: 40px;
      line-height: 40px;
      text-align: right;
      padding-right: 6px !important;
      background: #fff;
    }

    .other-month .day-number {
      opacity: 0.3;
      filter: alpha(opacity=30);
    }

    .day-number {
      padding: 0 6px !important;
      width: 100%;
      height: 22px;
      display: flex;
      justify-content: flex-end;
      align-items: center;
      cursor: pointer;

      > span {
        border-radius: 50%;
        width: 22px;
        text-align: center;

        &.active {
          background: #0b8eb3;
        }

        &:hover {
          background: #ccc;
        }
      }
    }
  }

  .widget-header {
    background-color: #fff;
    color: #333333;

    &.first,
    &.last {
      color: #ed3441;
    }
  }

  .widget-content {
    border: 1px solid #ddd;
    color: #333333;
    position: relative;

    .cell-content {
      min-height: 50px;
      padding: 1px 5px 0 5px;
      height: 100%;
      display: flex;
      flex-direction: column;
      justify-content: space-between;

      .see-more {
        height: 22px;
        padding-left: 3px;
        color: #2e60a7;
        width: 70%;
        text-overflow: ellipsis;
        overflow: hidden;
        white-space: nowrap;

        & > span {
          user-select: none;
          cursor: pointer;

          &:hover {
            text-decoration: underline;
          }
        }
      }
    }
  }

  .calendar__event__container {
    top: 0;
    left: 0;
  }

  .event-time,
  .event-title {
    padding: 0 1px;
  }

  .calendar-table {
    height: inherit;
    width: 100%;
    table-layout: fixed;
    font-family: Roboto, SansSerif, Arial;
    min-width: unset;
    font-size: 13px;
    line-height: 1.5715;
    border: none;

    & > thead {
      th {
        background-color: #fff;
        color: #333333;
        width: calc(100% / 7);
        border: unset;

        &:first-child,
        &:last-child {
          color: #ed3441;
          font-weight: bold;
        }

        &:last-child {
          width: auto;
        }
      }
    }

    & > tbody {
      tr {
        td {
          font-weight: normal;

          &:last-child {
            &.widget-content {
              border-right: 1px solid #ddd;
            }
          }
        }

        &:last-child {
          .widget-content {
            border-bottom: 1px solid #ddd;
          }
        }
      }
    }
  }
}

.event-inner {
  position: relative;
  width: 100%;
  border-style: solid;
  border-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  height: 25px;
  line-height: 25px;
}

.calendar__event {
  border-radius: 5px;
  webkit-border-radius: 5px;
  padding: 0 6px;
}

.calendar__event-skin {
  color: #ffffff;
  text-overflow: ellipsis;
  overflow: hidden;
  white-space: nowrap;
  font-weight: bold;
  border-radius: 5px;
  cursor: pointer;
  padding-left: 5px;
  font-size: 11px;
  position: relative;
  font-family: Roboto, SansSerif, Arial;
  -webkit-transform: translate3d(0, 0, 0);
  -moz-transform: translate3d(0, 0, 0);
  -ms-transform: translate3d(0, 0, 0);
  -o-transform: translate3d(0, 0, 0);
  transform: translate3d(0, 0, 0);

  &.-default {
    background-color: #058dc7;
    border-color: #058dc7;
  }

  &.-overtime {
    opacity: 0.5;
  }

  &::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: #000;
    opacity: 0.2;
    visibility: hidden;
    direction: rtl;
    transition: all 0.3s ease;
  }

  &:hover::after {
    visibility: visible;
    width: 100%;
  }
}

.popover-calendar {
  z-index: 9;
}

.popover-see-more {
  min-height: 150px;
  min-width: 200px;
  max-width: 300px;
  max-height: 200px;
  overflow: hidden auto;
  background: #fff;
  border-radius: 5px;
  box-shadow: 0 11px 15px #00000033;

  &::-webkit-scrollbar {
    -webkit-appearance: none;
    background-color: #eee;
    width: 8px;
    height: 8px;
  }

  &::-webkit-scrollbar-thumb {
    background-color: rgba(0, 0, 0, 0.2);
    border-radius: 4px;
  }

  .popover-see-more-body {
    padding: 15px;

    & > div > div {
      border-radius: 5px;
      padding: 0 5px;
      cursor: pointer;
    }

    & > div:not(:last-child) {
      margin-bottom: 5px;
    }
  }
}
