﻿@font-face {
  font-family: "roboto-condensed";
  src: url("../../../fonts/RobotoCondensed-Bold.ttf") format("truetype");
}

body {
  height: 100%;
}

body > div,
#RenderBody,
calendarContainer {
  height: inherit;
}

.cardContainer {
  height: calc(100% - 50px);
}

.mobileCalendar {
  position: relative;
  width: 100%;
  box-sizing: border-box;
  overflow-x: hidden;
}

.mcHeader {
  height: 50px;
  line-height: 50px;
  font-family: "roboto-condensed", Fallback, sans-serif;
  font-size: 28px;
  color: #396785;
  text-align: center;
  white-space: nowrap;
  background-color: transparent;
}

.mcHeader button {
  position: relative;
  /*background-color: #009275;*/
  /*border: 1px solid #004132;*/
  /*box-shadow: 0.5px 0.5px 0.5px 0 black;*/
  color: #666666;
  border: 0;
  width: 36px;
  height: 36px;
  padding: 0;
  margin: 0 5px 4.5px;
}

.mcHeader button::before {
  content: "";
  position: absolute;
  top: -10px;
  bottom: -10px;
  left: -10px;
  right: -10px;
}

.mcHeader button > i {
  position: absolute;
  top: -1px;
  bottom: 0;
  font-size: 36px;
  -webkit-transform: scale(2, 1); /* Safari and Chrome */
  -moz-transform: scale(2, 1); /* Firefox */
  -ms-transform: scale(2, 1); /* IE 9 */
  -o-transform: scale(2, 1); /* Opera */
  transform: scale(2, 1); /* W3C */
}

.mcHeader button > i.fa-caret-left {
  left: 0;
  right: 2px;
}

.mcHeader button > i.fa-caret-right {
  left: 2px;
  right: 0;
}
/*.mcHeader > span {
        font-size: 28px;
    }*/
.span-middle-header {
  position: relative;
  right: 15px;
  text-align: center;
  bottom: 2px;
  font-size: 28px;
}

.span-right-header {
  position: absolute !important;
  right: 0;
  top: 5px;
}

.span-left-header {
  position: absolute !important;
  left: 0;
  top: 5px;
}

.mcDaysOfTheWeekContainer {
  padding: 0 10px;
  border-bottom: 1px solid #919191;
}

.mcDaysOfTheWeek {
  display: table;
  table-layout: fixed;
  border-collapse: collapse;
  width: 100%;
  height: 19px;
  box-sizing: border-box;
  font-size: 18px;
  color: #5d5d5d;
  padding: 0 40px;
}

.mcDaysOfTheWeek > div {
  display: table-cell;
  text-align: center;
}

.mcViewContainer {
  position: absolute;
  transform: translate3d(0, 0, 0);
  -webkit-transform: translate3d(0, 0, 0);
  opacity: 1;
  width: 100%;
  height: 100%;
  overflow-x: hidden;
  background: white;
}

.mcViewContainer.mcCurrentView.mcDayViewContainer {
  /*height: auto;*/
}

.mcViewContainer.mcPrevView {
  transform: translate3d(-100%, 0, 0);
  -webkit-transform: translate3d(-100%, 0, 0);
  opacity: 0;
}

.mcViewContainer.mcNextView {
  transform: translate3d(100%, 0, 0);
  -webkit-transform: translate3d(100%, 0, 0);
  opacity: 0;
}

.mcViewContainer.mcAnimate {
  transition: all 300ms;
}

.mcMonth {
  display: table;
  table-layout: fixed;
  border-collapse: separate;
  box-sizing: border-box;
  width: 100%;
  height: calc(100% - 76px);
  padding: 0 10px;
}

.mcWeek {
  display: table-row;
  width: 100%;
}

.mcDay {
  display: table-cell;
  position: relative;
  text-align: center;
  font-size: 20px;
  line-height: 36px;
  font-family: sans-serif;
  /*text-shadow: 1px 1px #dddddd;*/
}

.mcDay.mcDayEmpty {
  border: 0;
  background-color: transparent;
  box-shadow: none;
}

.mcDayPast > * {
  /*opacity: 0.6;*/
}

.mcLastWeek > .mcDay:first-child {
  border-bottom-left-radius: 3px;
}

.mcLastWeek > .mcDay:last-child {
  border-bottom-right-radius: 3px;
}

.mcDay > .mcDayText {
  margin: auto;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  /*background-color: #f0f0f0;*/
}

.mcDay:hover > .mcDayText,
.mcDay:active > .mcDayText {
  background-color: #e0e0e0;
}

.mcDay.calendarUserWorkDay > .mcDayText,
.calendarUserWorkDay.colorLegendEntry:before {
  background-color: #cbdfd7;
}

.mcDay.calendarUserWorkDay:hover > .mcDayText,
.mcDay.calendarUserWorkDay:active > .mcDayText {
  background-color: #bbcfc7;
}

.mcDay.calendarOnDay > .mcDayText,
.calendarOnDay.colorLegendEntry:before {
  background-color: #c8bfe7;
}

.mcDay.calendarOnDay:hover > .mcDayText,
.mcDay.calendarOnDay:active > .mcDayText {
  background-color: #b8afd7;
}

.mcDay.calendarOffDay > .mcDayText,
.calendarOffDay.colorLegendEntry:before {
  background-color: #f8e5e5;
}

.mcDay.calendarOffDay:hover > .mcDayText,
.mcDay.calendarOffDay:active > .mcDayText {
  background-color: #e8d5d5;
}

.mcDay.calendarOffDay.calendarOnDay > .mcDayText,
.calendarOffDay.calendarOnDay.colorLegendEntry:before {
  background: linear-gradient(45deg, #c8bfe7 50%, #f8e5e5 50%);
}

.mcDay.calendarOffDay.calendarOnDay:hover > .mcDayText,
.mcDay.calendarOffDay.calendarOnDay:active > .mcDayText {
  background: linear-gradient(45deg, #b8afd7 50%, #e8d5d5 50%);
}

.mcDay.calendarOpenDay > .mcDayText,
.calendarOpenDay.colorLegendEntry:before {
  background-color: #c8e7ff;
}

.mcDay.calendarOpenDay:hover > .mcDayText,
.mcDay.calendarOpenDay:active > .mcDayText {
  background-color: #b8d7ef;
}

.mcDay.mcDayToday > .mcDayText {
  box-sizing: content-box;
  border: 2px solid #898989;
}

.mcDay.mcDayEmpty > .mcDayText {
  background: none;
}

.mcDay.open-slot > .mcDayText {
  background-color: #c8e7ff;
}

.mcDay.open-slot-scheduler-mobile > .mcDayText {
  background-color: #fcfbb1;
}

.mcDay.all-filled > .mcDayText {
  background-color: #cbdfd7;
}

.mcDay.val-error > .mcDayText {
  background-color: #f8e5e5;
}

.mcDay.val-error.open-slot-scheduler-mobile > .mcDayText {
  background: linear-gradient(90deg, #f8e5e5 50%, #fcfbb1 50%);
}

.mcDay.val-error.all-filled > .mcDayText {
  background: linear-gradient(90deg, #f8e5e5 50%, #cbdfd7 50%);
}

.mobile-slot-row {
  width: 100%;
  border: 1px solid grey;
}

.mobile-slot {
  height: 35px;
  font-size: 25px;
  display: inline-block;
  padding-left: 4px;
}

.mobile-slot > div {
  display: inline-block;
  padding-left: 2px;
}

.providers-shift-row {
  border: 1px solid grey;
}

.arrow {
  height: 35px;
  width: 35px;
  font-size: 30px;
  text-align: center;
  border-right: 1px solid grey;
}

/*The indicators are displayed based on whether they have the associated class*/
.indicatorA,
.indicatorB,
.indicatorC,
.indicatorD,
.indicatorE,
.iconA,
.iconB,
.iconC,
.iconD,
.iconE {
  font-family: "Font Awesome 5 Pro";
}
/*If there isn't enough room for all the indicators, we should make them overlap the day number and animate.*/
@keyframes indicAnimatorA {
  0% {
    opacity: 0;
  }

  17% {
    opacity: 1;
  }

  33% {
    opacity: 0;
  }
}

@keyframes indicAnimatorB {
  17% {
    opacity: 0;
  }

  33% {
    opacity: 1;
  }

  50% {
    opacity: 0;
  }
}

@keyframes indicAnimatorC {
  33% {
    opacity: 0;
  }

  50% {
    opacity: 1;
  }

  67% {
    opacity: 0;
  }
}

@keyframes indicAnimatorD {
  50% {
    opacity: 0;
  }

  67% {
    opacity: 1;
  }

  83% {
    opacity: 0;
  }
}

@keyframes indicAnimatorE {
  67% {
    opacity: 0;
  }

  83% {
    opacity: 1;
  }

  100% {
    opacity: 0;
  }
}

button.animatedbuttoncontroller {
  display: none !important;
}

@media (max-width: 640px) {
  button.animatedbuttoncontroller {
    display: initial !important;
  }

  #animationSelector {
    font-family: "Font Awesome 5 Pro";
    font-size: 20pt;
    color: #396785;
    background-color: lightgray;
    width: 36px;
    display: inline-block;
    border-radius: 30%;
  }

  #iconMenu {
    position: absolute;
    display: block;
    width: 230px;
    z-index: 10001;
    left: calc(100% - 230px);
  }

  #iconMenu > button {
    width: 100%;
    border-bottom: 1px solid white;
    white-space: normal;
  }

  .mcDay .mcDayText {
    display: inline-block;
  }

  .indicatorA,
  .indicatorB,
  .indicatorC,
  .indicatorD,
  .indicatorE {
    opacity: 0;
    position: relative;
    left: 0;
    margin: -36px auto 0px auto;
    display: block;
    background-color: lightgray;
    border-radius: 50%;
    width: 36px;
  }

  .mcWeek {
    height: 2em;
  }

  .indicatorA {
    animation: indicAnimatorA 10s ease-in-out infinite;
  }

  .indicatorB {
    animation: indicAnimatorB 10s ease-in-out infinite;
  }

  .indicatorC {
    animation: indicAnimatorC 10s ease-in-out infinite;
  }

  .indicatorD {
    animation: indicAnimatorD 10s ease-in-out infinite;
  }

  .indicatorE {
    animation: indicAnimatorE 10s ease-in-out infinite;
  }
}

.mcDay.calendarUserSentWorkOffer > .indicatorA:after,
.iconA:after {
  content: "\f0f0"; /*Provider offered to work a shift*/
  font-weight: 900;
}

.mcDay.calendarUserReceivedSchedulerOffer > .indicatorB:after,
.iconB:after {
  content: "\f0f8"; /*Offer to work from scheduler*/
}

.mcDay.calendarUserSentTradeOffer > .indicatorC:after,
.iconC:after {
  content: "\f021"; /*Outgoing shift trade request*/
}

.mcDay.calendarUserSentSwapOffer > .indicatorD:after,
.iconD:after {
  content: "\f14d"; /*Outgoing one-way swap (give up shift)*/
  font-weight: 900;
}

.mcDay.calendarUserReceivedSwapOffer > .indicatorE:after,
.iconE:after {
  content: "\f0ec"; /*Incoming one-way swap (other provider is giving up a shift). Same icon as incoming trade request?*/
}

.mcDay.calendarUserReceivedTradeOffer > .indicatorE:after {
  content: "\f0ec"; /*Incoming shift trade request*/
}

.mcDay > .mcDayEventContainer {
  height: 0;
  line-height: 12px;
  font-size: 14px;
  text-align: center;
  padding: 0 1px;
}

.mcDay > .mcDayEventContainer > .mcDayEvent {
  color: #008265;
  display: inline-block;
  margin: 0 1px;
}

.mcDay > .mcDayEventContainer > .mcDayEventOther {
  color: #ff7722;
}

.mcDay > .mcDayEventContainer > .mcDayEvent.mcDayEventOpen {
  color: #8fc7ff;
}

.mcDay > .mcDayEventContainer > .mcDayEvent.mcDayEventOffer {
  color: #eebb00;
}

.mcDay > .mcDayEventContainer > .mcDayEvent.mcDayEventHoliday {
  color: #d44646;
}

.mcDay > .mcDayEventContainer > .mcDayEvent.mcDayEventHoliday > .fa-home {
  position: relative;
}

.mcDay
  > .mcDayEventContainer
  > .mcDayEvent.mcDayEventHoliday
  > .fa-home
  > .fa-clock {
  position: absolute;
  font-size: 7px;
  left: -1px;
  top: 1px;
}

.mcSingleDay,
.mcMonthList {
  width: 100%;
  padding: 0 5px;
  /*background-color: #f8f8f8;*/
  /*box-shadow: inset 0 1px 1px rgba(0, 0, 0, .05);*/
  border-bottom-left-radius: 3px;
  border-bottom-right-radius: 3px;
}

.mcSingleDay.mcSingleDayPast {
  /*background-color: #e8e8e8;*/
}

.mcSingleDay.mcSingleDayPast > * {
  opacity: 0.5;
}

.mcSingleDay.mcSingleDayToday {
  background-color: #ffffe8;
}

.mcSingleDay > .mcHospitalGroup {
  padding: 2px 0;
  border-top: 1px solid #666666;
}

.mcSingleDay > .mcHospitalGroup:first-child {
  border: 0;
}

.mcHospitalGroupName {
  font-size: 18px;
  line-height: 24px;
  margin: 0;
}

.mcSingleDay > .mcHospitalGroup > .mcSingleDayEventContainer {
  margin: 0;
}

.mcSingleDayEvent {
  width: 100%;
  height: 44px;
  line-height: 32px;
  padding-bottom: 3px;
  box-sizing: content-box;
}

.mcSingleDayEvent.mcPast {
  /*background-color: #e8e8e8;*/
}

.mcSingleDayEvent.mcPast > * {
  opacity: 0.5;
}

.mcSingleDayEvent > .mcSingleDayTime {
  display: inline-block;
  width: 145px;
  font-size: 16px;
  text-align: right;
  text-overflow: ellipsis;
  white-space: nowrap;
  float: left;
  line-height: 44px;
}

.mcSingleDayEvent > .mcSingleDaySlot {
  display: inline-block;
  height: 100%;
  width: calc(100% - 150px);
  font-size: 18px;
  font-size: calc(16px + (18 - 16) * ((100vw - 320px) / (480 - 320)));
  margin-left: 5px;
  padding: 5px 8px;
  border: 1px solid #8fc7ff;
  border-radius: 4px;
  color: black;
  background-color: #8fc7ff;
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow-x: hidden;
}

.mcSingleDayEvent > .mcSingleDaySlot:hover {
  background-color: white;
  border: 1px solid #8fc7ff;
}

.mcSingleDayEvent > .mcSingleDaySlot.mcMySlot {
  background-color: #cbdfd7;
  border: 1px solid #cbdfd7;
}

.mcSingleDayEvent > .mcSingleDaySlot.mcMySlot:hover {
  background-color: white;
}

.mcSingleDay.trading .mcSingleDayEvent > .mcSingleDaySlot.mcOtherSlot {
  background-color: #ffaa66;
  border: 1px solid #ffaa66;
}

.mcSingleDay.trading .mcSingleDayEvent > .mcSingleDaySlot.mcOtherSlot:hover {
  background-color: white;
}

.mcSingleDayEvent > .mcSingleDaySlot.mcOpenSlot {
  background-color: #c8e7ff;
  border: 1px solid #c8e7ff;
}

.mcSingleDayEvent > .mcSingleDaySlot.mcOpenSlot:hover {
  background-color: white;
}

.mcSingleDayEvent > .mcSingleDaySlot.mcOfferSlot {
  background-color: #ffee88;
  border: 1px solid #eebb00;
}

.mcSingleDayEvent > .mcSingleDaySlot.mcOfferSlot:hover {
  background-color: white;
}

.mcSingleDayEvent > .mcSingleDaySlot.mcUnpublishedShiftSlot {
  background-color: #d3d3d3;
  border: 1px solid #eebb00;
}

.mcSingleDayEvent > .mcSingleDaySlot.mcUnpublishedShiftSlot:hover {
  background-color: white;
}

.mcSingleDayEvent > .mcSingleDaySlot.mcShiftOffRequestSlot {
  background-color: #f8e5e5;
  border: 1px solid #eebb00;
}

.mcSingleDayEvent > .mcSingleDaySlot.mcShiftOffRequestSlot:hover {
  background-color: white;
}

.mcSingleDayEvent > .mcSingleDaySlot.mcShiftOnRequestSlot {
  background-color: #c8bfe7;
  border: 1px solid #eebb00;
}

.mcSingleDayEvent > .mcSingleDaySlot.mcShiftOnRequestSlot:hover {
  background-color: white;
}

.mcSingleDayEvent > .mcSingleDaySlot.mcNoMatchingShift:before {
  content: "\f53e";
  font-family: "Font Awesome 5 Pro";
  margin-right: 5px;
  font-weight: 900;
  color: darkmagenta;
}

@media (max-width: 320px) {
  .mcSingleDayEvent > .mcSingleDaySlot {
    font-size: 16px;
  }
}

@media (min-width: 480px) {
  .mcSingleDayEvent > .mcSingleDaySlot {
    font-size: 18px;
  }
}

.mcButton {
  position: absolute;
  top: 0;
  width: 40px;
  height: 50px;
  line-height: 50px;
  box-sizing: border-box;
  color: white;
  /*border: 1px solid #92895e;*/
  /*box-shadow: inset 0px 1px 0px 0px #c2b98e;*/
  /*background: linear-gradient(to bottom, #b2a97e, #a2996e);*/
  background: #396785;
  font-size: 20px;
  text-align: center;
  z-index: 9999;
}

.mcButton:hover,
.mcButton:active {
  /*background: linear-gradient(to bottom, #a2996e, #b2a97e);*/
  background: #204e6c;
}

.mcButton.mcRefresh {
  right: 0;
  /*border-top-right-radius: 2px;*/
}

.mcButton.mcRefresh.mcRefreshing {
  /*color: whitesmoke;*/
  /*border-color: lightgray;*/
  background: lightgray;
  box-shadow: none;
}

.mcButton.mcMonthView {
  border-bottom-left-radius: 2px;
}

.mcButton.mcMonthView {
  right: 50px;
}

.mcButton.mcGlobalNotesIcon {
  left: 50px;
  border-bottom-left-radius: 2px;
}

.selectedSlot {
  box-shadow: 0 0 25px 10px rgba(255, 120, 120, 1) inset;
}

/*.fc-day-grid-event > .fc-content {
    font-size: 16px;
    height: 44px;
    line-height: 44px;
    padding: 0 10px;
}

.btn, button.list-group-item {
    font-size: 16px;
    height: 44px;
}*/

/*
* Month-view Events
*/
/*#calendar .fc-day {
    text-align: center;
}
.eventSpacer {
    height: 18px;
}
.dotsContainer {
    display: inline-block;
    line-height: 8px;
    margin: 0 3px 3px 0;    
}
.eventCircle {
    width: 8px;
    height: 8px;
    -webkit-border-radius: 4px;
    -moz-border-radius: 4px;
    border-radius: 4px;
    margin: 3px 0 0 3px;
    display: inline-block;
}*/

/*
* Day-view Events
*/
/*.hospitalName, hospitalName:hover {
    margin-top: 5px;
    color: black !important;TODO make more specific css selector so !important is unnecessary for :hover
    font-weight: bold;
    background: none;
    border: none;
}
.slot {
    margin-left: 10px;
    color: black;
    background-color: #8fc7ff;
    border: 1px solid #8fc7ff;
    border-radius: 4px;
    padding: 2px;
}
.slot.openSlot {
    background-color: #d1e8ff;
    border: 1px solid #8fc7ff; 
}
.slot.mySlot {
    background-color: #87d9b6;
    border: 1px solid #87d9b6;
}
.slot:hover, .slot.openSlot:hover, .slot.mySlot:hover {
    color: black;
    background-color: white;
}*/

/*#calendarLoadingSpinner {
    height: 100%;
    background-color: #000;
    opacity: 0.7;
}
#calendarLoadingSpinner img {
    width: 100%;
    position: absolute;
    top: 0;
    bottom: 50px;
    margin: auto;
}*/
