//  =================
//      Imports
//  =================

@import '../../base/base';    // Base Variables

/*!
 * FullCalendar v3.4.0 Stylesheet
 * Docs & License: https://fullcalendar.io/
 * (c) 2017 Adam Shaw
 */

h4 {
  font-size: 1.125rem;
  color: $dark;
}

a {
  &.bg-danger:hover {
    background-color: #fd3d39 !important;
  }

  &.bg-info:hover {
    background-color: #009eda !important;
  }

  &.bg-secondary:hover {
    background-color: #714cbd !important;
  }

  &.bg-warning:hover {
    background-color: #ffbd2e !important;
  }

  &.bg-success:hover {
    background-color: #00c854 !important;
  }
}

.form-control {
  border-radius: 4px;

  &:focus {}
}

.fc-icon, body .fc {
  font-size: 1em;
}

.fc-button-group, .fc-icon {
  display: inline-block;
}

.fc-bg {
  bottom: 0;
}

.fc-row {
  .fc-bgevent-skeleton, .fc-highlight-skeleton {
    bottom: 0;
  }
}

.fc-icon, .fc-unselectable {
  -khtml-user-select: none;
  -webkit-touch-callout: none;
}

.fc {
  direction: ltr;
  text-align: left;
}

.fc-rtl {
  text-align: right;
}

.fc th, .fc-basic-view td.fc-week-number, .fc-icon, .fc-toolbar {
  text-align: center;
}

.fc-unthemed {
  .fc-content, .fc-divider, .fc-list-heading td, .fc-list-view, .fc-popover, .fc-row, tbody, td, th, thead {
    border-color: $m-color_3;
  }

  .fc-popover {
    background-color: $white;
  }

  .fc-divider, .fc-list-heading td {
    background: #eee;
  }

  .fc-popover .fc-header {
    background: #eee;

    .fc-close {
      color: #666;
    }
  }

  td.fc-today {
    /*background: $m-color_1;*/
  }
}

.fc-highlight {
  background: #bce8f1;
  opacity: 0.3;
}

.fc-bgevent {
  background: #8fdf82;
  opacity: 0.3;
}

.fc-nonbusiness {
  background: #d7d7d7;
}

.fc-unthemed .fc-disabled-day {
  background: #d7d7d7;
  opacity: 0.3;
}

.ui-widget .fc-disabled-day {
  background-image: none;
}

.fc-icon {
  height: 1em;
  line-height: 1em;
  overflow: hidden;
  font-family: "Courier New", Courier, monospace;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;

  &:after {
    position: relative;
  }
}

.fc-icon-left-single-arrow:after {
  content: "\02039";
  font-weight: 700;
  font-size: 200%;
  top: -7%;
}

.fc-icon-right-single-arrow:after {
  content: "\0203A";
  font-weight: 700;
  font-size: 200%;
  top: -7%;
}

.fc-icon-left-double-arrow:after {
  content: "\000AB";
  font-size: 160%;
  top: -7%;
}

.fc-icon-right-double-arrow:after {
  content: "\000BB";
  font-size: 160%;
  top: -7%;
}

.fc-icon-left-triangle:after {
  content: "\25C4";
  font-size: 125%;
  top: 3%;
}

.fc-icon-right-triangle:after {
  content: "\25BA";
  font-size: 125%;
  top: 3%;
}

.fc-icon-down-triangle:after {
  content: "\25BC";
  font-size: 125%;
  top: 2%;
}

.fc-icon-x:after {
  content: "\000D7";
  font-size: 200%;
  top: 6%;
}

.fc button {
  -moz-box-sizing: border-box;
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-size: 14px;
  white-space: nowrap;
  cursor: pointer;

  &::-moz-focus-inner {
    margin: 0;
    padding: 0;
  }
}

.fc-state-default {
  border: 1px solid;
  background-color: transparent;

  &.fc-corner-left, &.fc-corner-right {
    border-radius: 30px;
  }
}

.fc button .fc-icon {
  position: relative;
  top: -.05em;
  margin: 0 .2em;
  vertical-align: middle;
}

.fc-state-active, .fc-state-down, .fc-state-hover {
  color: $white;
  background-color: $white;
}

.fc-state-disabled {
  color: $dark;
  background-color: #ffffff;
  text-shadow: none;
  border: solid 1px $m-color_3;
}

.fc-today-button {
  border: none;
}

.fc-state-hover {
  color: $m-color_10;
  text-decoration: none;
  background-position: 0 -15px;
  -webkit-transition: background-position .1s linear;
  -moz-transition: background-position .1s linear;
  -o-transition: background-position .1s linear;
  transition: background-position 0.1s linear;
}

.fc-state-active {
  background-color: $m-color_14;
  background-image: none;
  text-shadow: none;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.15), 0 1px 2px rgba(0, 0, 0, 0.05);
}

.fc-state-down {
  background-color: $m-color_14;
  background-image: none;
  color: $white;
  text-shadow: none;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.15), 0 1px 2px rgba(0, 0, 0, 0.05);

  span {
    color: $white;
  }
}

.fc-state-disabled {
  cursor: default;
  background-image: none;
  box-shadow: none;
}

.fc-event {
  &.fc-draggable, &[href] {
    cursor: pointer;
  }
}

.fc-popover .fc-header .fc-close, a[data-goto] {
  cursor: pointer;
}

.fc .fc-button-group > {
  * {
    float: left;
    margin: 0 0 0 4px;
    border-radius: 6px;
  }

  :first-child {
    margin-left: 0;
  }
}

.fc-popover {
  position: absolute;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);

  .fc-header {
    padding: 2px 4px;

    .fc-title {
      margin: 0 2px;
    }
  }
}

.fc-ltr .fc-popover .fc-header .fc-title, .fc-rtl .fc-popover .fc-header .fc-close {
  float: left;
}

.fc-ltr .fc-popover .fc-header .fc-close, .fc-rtl .fc-popover .fc-header .fc-title {
  float: right;
}

.fc-unthemed .fc-popover {
  border-width: 1px;
  border-style: solid;

  .fc-header .fc-close {
    font-size: .9em;
    margin-top: 2px;
  }
}

.fc-popover > .ui-widget-header + .ui-widget-content {
  border-top: 0;
}

.fc-divider {
  border-style: solid;
  border-width: 1px;
}

hr.fc-divider {
  height: 0;
  margin: 0;
  padding: 0 0 2px;
  border-width: 1px 0;
}

.fc-bg table {
  height: 100%;
}

.fc-row {
  .fc-bgevent-skeleton table, .fc-highlight-skeleton table {
    height: 100%;
  }
}

.fc-clear {
  clear: both;
}

.fc-bg, .fc-bgevent-skeleton, .fc-helper-skeleton, .fc-highlight-skeleton {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
}

.fc {
  table {
    width: 100%;
    box-sizing: border-box;
    table-layout: fixed;
    border-collapse: collapse;
    border-spacing: 0;
    font-size: 1em;
  }

  td {
    border-style: solid;
    border-width: 1px;
    padding: 0;
    vertical-align: top;
  }

  th {
    border-style: solid;
    border-width: 1px;
    padding: 0;
    vertical-align: top;
    font-weight: 600;
    color: $dark;
    letter-spacing: 1px;
  }

  td.fc-today {
    border-style: double;
  }
}

a[data-goto]:hover {
  text-decoration: underline;
}

.fc .fc-row {
  border-style: solid;
  border-width: 0;
}

.fc-row {
  &.fc-widget-header {
    display: block;
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    -ms-overflow-style: -ms-autohiding-scrollbar;
  }

  table {
    border-left: 0 hidden transparent;
    border-right: 0 hidden transparent;
    border-bottom: 0 hidden transparent;
  }

  &:first-child table {
    border-top: 0 hidden transparent;
  }

  position: relative;

  .fc-bg {
    z-index: 1;
  }

  .fc-bgevent-skeleton td, .fc-highlight-skeleton td {
    border-color: transparent;
  }

  .fc-bgevent-skeleton {
    z-index: 2;
  }

  .fc-highlight-skeleton {
    z-index: 3;
  }

  .fc-content-skeleton {
    position: relative;
    z-index: 4;
    padding-bottom: 2px;
  }

  .fc-helper-skeleton {
    z-index: 5;
  }

  .fc-content-skeleton td, .fc-helper-skeleton td {
    background: 0 0;
    border-color: transparent;
    border-bottom: 0;
  }

  .fc-content-skeleton tbody td, .fc-helper-skeleton tbody td {
    border-top: 0;
  }
}

.fc-scroller {
  -webkit-overflow-scrolling: touch;
}

.fc-row.fc-rigid, .fc-time-grid-event {
  overflow: hidden;
}

.fc-scroller > {
  .fc-day-grid, .fc-time-grid {
    position: relative;
    width: 100%;
  }
}

.fc-event {
  position: relative;
  display: block;
  font-size: .85em;
  line-height: 1.3;
  border-radius: 4px;
  border: 1px solid $secondary;
  font-weight: 400;
  background-color: $secondary;
}

.fc-event-dot {
  background-color: $secondary;
}

.fc-event {
  color: #fff !important;
  text-decoration: none;

  &:hover {
    color: #fff !important;
    text-decoration: none;
  }
}

.ui-widget .fc-event {
  color: #fff !important;
  text-decoration: none;
}

.fc-not-allowed {
  cursor: not-allowed;

  .fc-event {
    cursor: not-allowed;
  }
}

.fc-event {
  .fc-bg {
    z-index: 1;
    background: $white;
    opacity: 0.25;
  }

  .fc-content {
    position: relative;
    z-index: 2;
  }

  .fc-resizer {
    position: absolute;
    z-index: 4;
    display: none;
  }

  &.fc-allow-mouse-resize .fc-resizer {
    display: block;
  }

  &.fc-selected {
    .fc-resizer {
      display: block;

      &:before {
        content: "";
        position: absolute;
        z-index: 9999;
        top: 50%;
        left: 50%;
        width: 40px;
        height: 40px;
        margin-left: -20px;
        margin-top: -20px;
      }
    }

    z-index: 9999 !important;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);

    &.fc-dragging {
      box-shadow: 0 2px 7px rgba(0, 0, 0, 0.3);
    }
  }
}

.fc-h-event.fc-selected:before {
  content: "";
  position: absolute;
  z-index: 3;
  top: -10px;
  bottom: -10px;
  left: 0;
  right: 0;
}

.fc-ltr .fc-h-event.fc-not-start, .fc-rtl .fc-h-event.fc-not-end {
  margin-left: 0;
  border-left-width: 0;
  padding-left: 1px;
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
}

.fc-ltr .fc-h-event.fc-not-end, .fc-rtl .fc-h-event.fc-not-start {
  margin-right: 0;
  border-right-width: 0;
  padding-right: 1px;
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
}

.fc-ltr .fc-h-event .fc-start-resizer, .fc-rtl .fc-h-event .fc-end-resizer {
  cursor: w-resize;
  left: -1px;
}

.fc-ltr .fc-h-event .fc-end-resizer, .fc-rtl .fc-h-event .fc-start-resizer {
  cursor: e-resize;
  right: -1px;
}

.fc-h-event {
  &.fc-allow-mouse-resize .fc-resizer {
    width: 7px;
    top: -1px;
    bottom: -1px;
  }

  &.fc-selected .fc-resizer {
    border-radius: 4px;
    border-width: 1px;
    width: 6px;
    height: 6px;
    border-style: solid;
    border-color: inherit;
    background: $white;
    top: 50%;
    margin-top: -4px;
  }
}

.fc-ltr .fc-h-event.fc-selected .fc-start-resizer, .fc-rtl .fc-h-event.fc-selected .fc-end-resizer {
  margin-left: -4px;
}

.fc-ltr .fc-h-event.fc-selected .fc-end-resizer, .fc-rtl .fc-h-event.fc-selected .fc-start-resizer {
  margin-right: -4px;
}

.fc-day-grid-event {
  margin: 1px 2px 0;
  padding: 2px 5px;
}

tr:first-child > td > .fc-day-grid-event {
  margin-top: 2px;
}

.fc-day-grid-event {
  &.fc-selected:after {
    content: "";
    position: absolute;
    z-index: 1;
    top: -1px;
    right: -1px;
    bottom: -1px;
    left: -1px;
    background: $black;
    opacity: 0.25;
  }

  .fc-content {
    word-break: break-all;
  }

  .fc-time {
    font-weight: 700;
    font-size: 11px;
  }
}

.fc-ltr .fc-day-grid-event.fc-allow-mouse-resize .fc-start-resizer, .fc-rtl .fc-day-grid-event.fc-allow-mouse-resize .fc-end-resizer {
  margin-left: -2px;
}

.fc-ltr .fc-day-grid-event.fc-allow-mouse-resize .fc-end-resizer, .fc-rtl .fc-day-grid-event.fc-allow-mouse-resize .fc-start-resizer {
  margin-right: -2px;
}

a.fc-more {
  margin: 1px 3px;
  font-size: .85em;
  cursor: pointer;
  text-decoration: none;

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

.fc-limited {
  display: none;
}

.fc-day-grid .fc-row {
  z-index: 1;
}

.fc-more-popover {
  z-index: 2;
  width: 220px;

  .fc-event-container {
    padding: 10px;
  }
}

.fc-now-indicator {
  position: absolute;
  border: 0 solid red;
}

.fc-unselectable {
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.fc-toolbar {
  &.fc-header-toolbar {}

  &.fc-footer-toolbar {
    margin-top: 1em;
  }

  .fc-left {
    float: left;
  }

  .fc-right {
    float: right;
    margin: 2px 12px 0 12px;
  }

  .fc-center {
    display: inline-block;
    margin: 7px 10px;
  }
}

.fc .fc-toolbar > * > {
  * {
    float: left;
    margin-left: .75em;
  }

  :first-child {
    margin-left: 0;
  }
}

.fc-toolbar {
  h2 {
    margin: 0;
    font-size: 18px;
    color: $m-color_10;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 2px;
  }

  button {
    position: relative;
  }

  .fc-state-hover, .ui-state-hover {
    z-index: 2;
  }

  .fc-state-down {
    z-index: 3;
  }

  .fc-state-active, .ui-state-active {
    z-index: 4;
  }

  button:focus {
    z-index: 5;
    color: #3d415d;
  }

  .fc-left > button:focus {
    color: $white;
  }

  .fc-right button:focus {
    z-index: 5;
    color: $white;
  }
}

.fc-view-container {
  *, &:after, &:before {
    -webkit-box-sizing: content-box;
    -moz-box-sizing: content-box;
    box-sizing: content-box;
  }
}

.fc-view {
  position: relative;
  z-index: 1;

  > table {
    position: relative;
    z-index: 1;
  }
}

.fc-basicDay-view .fc-content-skeleton, .fc-basicWeek-view .fc-content-skeleton {
  padding-bottom: 1em;
}

.fc-basic-view .fc-body .fc-row {
  min-height: 4em;
}

.fc-row.fc-rigid .fc-content-skeleton {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
}

.fc-day-top.fc-other-month {}

.fc-basic-view {
  .fc-day-number, .fc-week-number {
    padding: 2px;
    color: $dark;
  }

  th {
    &.fc-day-number, &.fc-week-number {
      padding: 0 2px;
    }
  }
}

.fc-ltr .fc-basic-view .fc-day-top .fc-day-number {
  margin: 6px !important;
  display: inline-block;
  padding: 5px;
}

.fc-rtl .fc-basic-view .fc-day-top .fc-day-number {
  float: left;
}

.fc-ltr .fc-basic-view .fc-day-top .fc-week-number {
  float: left;
  border-radius: 0 0 3px;
}

.fc-rtl .fc-basic-view .fc-day-top .fc-week-number {
  float: right;
  border-radius: 0 0 0 3px;
}

.fc-basic-view {
  .fc-day-top .fc-week-number {
    min-width: 1.5em;
    text-align: center;
    background-color: #f2f2f2;
    color: grey;
  }

  td.fc-week-number > * {
    display: inline-block;
    min-width: 1.25em;
  }
}

.fc-agenda-view .fc-day-grid {
  position: relative;
  z-index: 2;

  .fc-row {
    min-height: 3em;

    .fc-content-skeleton {
      padding-bottom: 1em;
    }
  }
}

.fc .fc-axis {
  vertical-align: middle;
  padding: 0 4px;
  white-space: nowrap;
  color: $black;
}

.fc-ltr .fc-axis {
  text-align: right;
}

.fc-rtl .fc-axis {
  text-align: left;
}

.ui-widget td.fc-axis {
  font-weight: 400;
}

.fc-time-grid, .fc-time-grid-container {
  position: relative;
  z-index: 1;
}

.fc-time-grid {
  min-height: 100%;

  table {
    border: 0 hidden transparent;
  }

  > .fc-bg {
    z-index: 1;
  }

  .fc-slats, > hr {
    position: relative;
    z-index: 2;
  }

  .fc-content-col {
    position: relative;
  }

  .fc-content-skeleton {
    position: absolute;
    z-index: 3;
    top: 0;
    left: 0;
    right: 0;
  }

  .fc-business-container {
    position: relative;
    z-index: 1;
  }

  .fc-bgevent-container {
    position: relative;
    z-index: 2;
  }

  .fc-highlight-container {
    z-index: 3;
    position: relative;
  }

  .fc-event-container {
    position: relative;
    z-index: 4;
  }

  .fc-now-indicator-line {
    z-index: 5;
  }

  .fc-helper-container {
    position: relative;
    z-index: 6;
  }

  .fc-slats {
    td {
      height: 1.5em;
      border-bottom: 0;
    }

    .fc-minor td {
      border-top-style: dotted;
    }

    .ui-widget-content {
      background: 0 0;
    }
  }

  .fc-highlight {
    position: absolute;
    left: 0;
    right: 0;
  }
}

.fc-ltr .fc-time-grid .fc-event-container {
  margin: 0 2.5% 0 2px;
}

.fc-rtl .fc-time-grid .fc-event-container {
  margin: 0 2px 0 2.5%;
}

.fc-time-grid {
  .fc-bgevent, .fc-event {
    position: absolute;
    z-index: 1;
  }

  .fc-bgevent {
    left: 0;
    right: 0;
  }
}

.fc-v-event {
  &.fc-not-start {
    border-top-width: 0;
    padding-top: 1px;
    border-top-left-radius: 0;
    border-top-right-radius: 0;
  }

  &.fc-not-end {
    border-bottom-width: 0;
    padding-bottom: 1px;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
  }
}

.fc-time-grid-event {
  &.fc-selected {
    overflow: visible;

    .fc-bg {
      display: none;
    }
  }

  .fc-content {
    overflow: hidden;
  }

  .fc-time, .fc-title {
    padding: 0 1px;
    word-break: break-word;
  }

  .fc-time {
    font-size: .85em;
    white-space: nowrap;
  }

  &.fc-short {
    .fc-content {
      white-space: nowrap;
    }

    .fc-time, .fc-title {
      display: inline-block;
      vertical-align: top;
    }

    .fc-time {
      span {
        display: none;
      }

      &:before {
        content: attr(data-start);
      }

      &:after {
        content: " - ";
      }
    }

    .fc-title {
      font-size: .85em;
      padding: 0;
    }
  }

  &.fc-allow-mouse-resize .fc-resizer {
    left: 0;
    right: 0;
    bottom: 0;
    height: 8px;
    overflow: hidden;
    line-height: 8px;
    font-size: 11px;
    font-family: monospace;
    text-align: center;
    cursor: s-resize;

    &:after {
      content: "=";
    }
  }

  &.fc-selected .fc-resizer {
    border-radius: 5px;
    border-width: 1px;
    width: 8px;
    height: 8px;
    border-style: solid;
    border-color: inherit;
    background: $white;
    left: 50%;
    margin-left: -5px;
    bottom: -5px;
  }
}

.fc-time-grid {
  .fc-now-indicator-line {
    border-top-width: 1px;
    left: 0;
    right: 0;
  }

  .fc-now-indicator-arrow {
    margin-top: -5px;
  }
}

.fc-ltr .fc-time-grid .fc-now-indicator-arrow {
  left: 0;
  border-width: 5px 0 5px 6px;
  border-top-color: transparent;
  border-bottom-color: transparent;
}

.fc-rtl .fc-time-grid .fc-now-indicator-arrow {
  right: 0;
  border-width: 5px 6px 5px 0;
  border-top-color: transparent;
  border-bottom-color: transparent;
}

.fc-event-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 5px;
}

.fc-rtl .fc-list-view {
  direction: rtl;
}

.fc-list-view {
  border-width: 1px;
  border-style: solid;
}

.fc .fc-list-table {
  table-layout: auto;
}

.fc-list-table {
  td {
    border-width: 1px 0 0;
    padding: 8px 14px;
  }

  tr:first-child td {
    border-top-width: 0;
  }
}

.fc-list-heading {
  border-bottom-width: 1px;

  td {
    font-weight: 700;
  }
}

.fc-ltr {
  .fc-list-heading-main {
    float: left;
  }

  .fc-list-heading-alt {
    float: right;
  }
}

.fc-rtl {
  .fc-list-heading-main {
    float: right;
  }

  .fc-list-heading-alt {
    float: left;
  }
}

.fc-list-item {
  &.fc-has-url {
    cursor: pointer;
  }

  &:hover td {
    background-color: $m-color_1;
  }
}

.fc-list-item-marker, .fc-list-item-time {
  white-space: nowrap;
  width: 1px;
}

.fc-ltr .fc-list-item-marker {
  padding-right: 0;
}

.fc-rtl .fc-list-item-marker {
  padding-left: 0;
}

.fc-list-item-title a {
  text-decoration: none;
  color: inherit;

  &[href]:hover {
    text-decoration: underline;
  }
}

.fc-list-empty-wrap2 {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
}

.fc-list-empty-wrap1 {
  width: 100%;
  height: 100%;
  display: table;
}

.fc-list-empty {
  display: table-cell;
  vertical-align: middle;
  text-align: center;
}

.fc-unthemed .fc-list-empty {
  background-color: #eee;
}

#calendar .fc-event {
  color: $dark !important;
  padding: 5px;
  background-color: $white;
  border: none;
  -webkit-box-shadow: 2px 5px 17px 0 rgba(31, 45, 61, 0.1);
  box-shadow: 0px 0px 6px 0px rgba(31, 45, 61, 0.1);
  border: 1px solid $m-color_6;
  border-radius: 6px;
  margin: 0px 18px;
  font-size: 12px;
  letter-spacing: 1px;
  padding: 5px 15px;
}

#external-events {
  .fc-event {
    margin: 0 0 17px 0;
    cursor: move;
    padding: 10px;
    background-color: $m-color_8;
    border: none;
  }

  p input {
    margin: 0;
    vertical-align: middle;
  }

  label {
    color: $m-color_8;
    font-size: 15px;
    cursor: pointer;
  }
}

/*custom changes*/

.fc .fc-button-group > * {
  background-image: none;
  border: none;
  box-shadow: none;
}

.fc-day-top.fc-other-month .fc-day-number {
  color: $l-dark;
}

.fc table thead tr th {
  word-break: break-word;
}