*, *:after, *:before {
  box-sizing: border-box;
}

html {
  overflow: hidden;
  overflow-y: overlay;
}

body, html {
  padding: 0;
  margin: 0;
  height: 100%;
  width: 100%;
  -webkit-user-select: none;
  cursor: default;
}

body {
  padding-top: 10px;
}

#react-root {
  width: 100%;
  height: 100%;
  border-radius: 4px;
  background-color: #fff;
  font-size: 13px;
  font-family: ".SFNSDisplay-Regular", "Helvetica Neue", sans-serif;
  color: #444;
  line-height: 1.4;
  -webkit-font-smoothing: antialiased;
}

#react-root:before {
  content: "";
  position: absolute;
  left: 50%;
  margin-left: -8px;
  margin-top: -8px;
  display: block;
  width: 0;
  height: 0;
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-bottom: 8px solid #547DF9;
}

#react-root > .flex-column {
  height: 100%;
}

p, h1, h2, h3, h4, h5, h6 {
  margin: 0 0 8px 0;
  line-height: 1.4;
}

p:last-child {
  margin-bottom: 0;
}

button, .button {
  display: inline-block;
  background: #5CC090;
  color: #fff;
  border-radius: 3px;
  border: 2px solid #5CC090;
  font-weight: 500;
  font-family: ".SFNSDisplay-Semibold", "Helvetica Neue", sans-serif;
  font-size: 13px;
  line-height: 1.4;
  padding: 6px 12px;
  transition: all 200ms;
}

button:hover, .button:hover {
  box-shadow: 0px 1px 2px rgba(0,0,0,.2);
}

button:disabled, .button:disabled {
  opacity: .5;
  pointer-events: none;
}

.menu-icon {
  position: absolute;
  top: 28px;
  left: 15px;
  color: #fff;
  z-index: 3;
  display: none;
}

.content {
  padding: 16px;
}

button, .button {
  outline: none;
}

.label {
  float: left;
  display: inline-block;
  color: #aaa;
  line-height: 40px;
  padding-left: 14px;
}

.margin-0 {
  margin: 0;
}

.flex-row {
  display: flex;
  flex-direction: row;
}

.flex-column {
  display: flex;
  flex-direction: column;
}

.flex-1 {
  flex: 1;
  position: relative;
}

.calendar {
  position: relative;
  z-index: 2;
  overflow: hidden;
  box-shadow: 0px 2px 4px rgba(0,0,0,.08);
}

.calendar--month {
  height: 330px;
}

.calendar--week {
  height: 130px;
}

.calendar .calendar-slider {
  width: 100%;
}

.calendar .days-of-week {
  display: flex;
  background: #547DF9;
  margin-bottom: 6px;
}

.calendar .days-of-week > span {
  flex: 0 0 calc(100% / 7);
  text-align: center;
  color: rgba(255,255,255,.4);
  line-height: 36px;
  text-transform: uppercase;
  font-size: 11px;
  font-weight: 600;
  font-family: ".SFNSDisplay-Bold", "Helvetica Neue", sans-serif;
}

.calendar .days {
  display: flex;
  flex-wrap: wrap;
}

.calendar .day {
  text-align: center;
  width: calc(100% / 7);
  border-radius: 2px;
  position: relative;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 125ms ease-in-out;
  flex-direction: column;
}

.calendar .day > span {
  position: relative;
}

.calendar .day:before {
  display: block;
  content: "";
  background-color: transparent;
  position: absolute;
  position: absolute;
  width: 35px;
  height: 35px;
  top: 50%;
  right: 0;
  bottom: 0;
  left: 50%;
  border-radius: 50%;
  background-color: #547DF9;
  opacity: 0;
  transform: translate(-50%, -50%) scale(.75);
  transition: opacity 125ms ease-in-out, transform 125ms ease-in-out;;
}

@-webkit-keyframes bounceIn {
    0%,100%,20%,40%,50%,70% {
        animation-timing-function: ease-in-out;
    }

    0% {
        transform: translate(-50%, -50%) scale3d(.75,.75,.75)
    }

    50% {
        transform: translate(-50%, -50%) scale3d(1.05,1.05,1.05)
    }

    70% {
        transform: translate(-50%, -50%) scale3d(.98,.98,.98)
    }

    100% {
        transform: translate(-50%, -50%) scale3d(1,1,1)
    }
}

.calendar .day:hover {
}

.calendar .day.selected:before {
  opacity: 1;
  border-radius: 50%;
  background-color: #547DF9;
  transform: translate(-50%, -50%) scale(1);
  animation: bounceIn 250ms ease-in-out;
}

.calendar .day.selected {
  color: #fff;
}

.calendar .day.different-month {
  color: #bbb;
}

.calendar .day.today:not(.selected) {
  color: #547DF9;
}

.calendar .header {
  background: #547DF9;
  color: #fff;
  padding: 10px 10px 0px 15px;
  display: flex;
  border-radius: 3px 3px 0 0;
}

.calendar .header .date {
  flex: 1;
  /*margin-left: 35px;*/
}

.calendar .header .month {
  font-size: 18px;
  font-weight: 400;
  font-family: ".SFNSDisplay-Semibold", "Helvetica Neue", sans-serif;
  line-height: 40px;
}

.calendar .header .year {
  font-size: 18px;
  font-family: ".SFNSDisplay-Light", "Helvetica Neue", sans-serif;
  font-weight: 100;
  color: rgba(255,255,255,.5);
  padding-left: 4px;
}

.calendar .header .next,
.calendar .header .previous {
  padding: 8px;
  transition: background-color 125ms ease-in-out;
}

.calendar .header .previous:hover,
.calendar .header .next:hover {
  border-radius: 2px;
  background-color: rgba(0,0,0,.04);
}

.calendar .dots {
  text-align: center;
  width: 65%;
  height: 4px;
}


.calendar .dots .dot {
  width: 4px;
  height: 4px;
  border-radius: 4px;
  background-color: rgba(0,0,0,.15);
  display: inline-block;
  margin-right: 2px;
  position: relative;
  min-width: 4px;
}

.calendar .dots .dot:last-child {
  margin-right: 0;
}

.event-list {
  position: relative;
  letter-spacing: .4;
  padding-bottom: 10px;
  background-color: #F1F5F6;
  color: #444;
  flex: 1;
  overflow-y: overlay;
  overflow-x: hidden;
  border-radius: 0 0 3px 3px;
}

.event-list::-webkit-scrollbar {
  width: 4px;
  background: transparent;
  -webkit-appearance: none;
}

.event-list::-webkit-scrollbar * {
  background: transparent;
}

.event-list::-webkit-scrollbar-track {
  border-radius:5px;
  background: transparent;
}

.event-list::-webkit-scrollbar-thumb {
  border: 4px solid transparent;
  background-clip: padding-box;
  border-radius: 5px;
  background-color: rgba(0,0,0,0);
  min-height: 30px;
}

.event .attendees {
  flex: 1 0 100%;
  padding-left: 12px;
  padding-bottom: 10px;
}

.event .attendees .avatar {
  background-size: cover;
  background-position: center center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  vertical-align: middle;
  display: inline-block;
}

.event .attendees .avatar+.avatar {
  margin-left: 4px;
}

.event .attendees .more {
  vertical-align: middle;
  margin-left: 4px;
  border-radius: 50%;
  width: 26px;
  height: 26px;
  border: 1px solid #979797;
  color: #999;
  font-size: 11px;
  display: inline-flex;
  justify-content: center;
  align-items: center;
}

.event-list:hover::-webkit-scrollbar-thumb {
  background-color: rgba(0,0,0,0.3);
}

.event-list::-webkit-scrollbar-thumb:hover {
  background-color: rgba(0,0,0,0.4);
}

.event-list-header {
  margin-top: 12px;
  padding: 4px 12px 0px 12px;
  color: #888888;
  font-family: ".SFNSDisplay-Medium", "Helvetica Neue", sans-serif;
  font-size: 12px;
}

.event {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  background: #fff;
  border-radius: 2px;
  box-shadow: 0px 1px 2px rgba(0,0,0,.1);
  margin: 8px 8px 4px 8px;
  font-family: ".SFNSDisplay-Medium", "Helvetica Neue", sans-serif;
}

.event.empty {
  text-align: center;
  display: block;
  background: none;
  box-shadow: none;
  padding: 6px;
}

.event.current, .event.current .time {
  color: #547DF9;
}

.event:not(.empty):hover {
  cursor: pointer;
}

.event .name, .event .time {
  padding: 10px 14px;
}

.event .name {
  flex: 1;
  align-items: center;
  padding-right: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.event .location {
  color: #888;
  font-size: 11px;
  margin-top: 5px;
}

.event .location:empty {
  display: none;
}

.event.past .name {
  color: #444444;
}
.event.past .time {
  color: #888;
}

.event .time {
  font-size: 11px;
  text-align: right;
  color: #888;
  padding-top: 11.5px;
}

/* slide right animation */
.slide-right-enter, .slide-right-leave {
  position: absolute;
  transition-timing-function: ease-in-out;
  transition-duration: 200ms;
  transition-property: transform, opacity;
}

.slide-right-enter {
  opacity: 0;
  transform: translate3d(100%, 0, 0);
}

.slide-right-enter.slide-right-enter-active {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

.slide-right-leave {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

.slide-right-leave.slide-right-leave-active {
  opacity: 0;
  transform: translate3d(-100%, 0, 0);
}

.slide-left-enter, .slide-left-leave {
  position: absolute;
  transition-timing-function: ease-in-out;
  transition-duration: 200ms;
  transition-property: transform, opacity;
}

/* slide left animation */
.slide-left-enter {
  opacity: 0;
  transform: translate3d(-100%, 0, 0);
}

.slide-left-enter.slide-left-enter-active {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

.slide-left-leave {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

.slide-left-leave.slide-left-leave-active {
  opacity: 0;
  transform: translate3d(100%, 0, 0);
}

/* slide up animation */
.slide-up-enter, .slide-up-leave {
  position: absolute;
  transition-timing-function: ease-in-out;
  transition-duration: 200ms;
  transition-property: transform, opacity;
}

.slide-up-enter {
  opacity: 0;
  transform: translate3d(0, 100%, 0);
}

.slide-up-enter.slide-up-enter-active {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

.slide-up-leave {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

.slide-up-leave.slide-up-leave-active {
  opacity: 0;
  transform: translate3d(0, -100%, 0);
}

[data-tooltip] {
  position: relative;
}

[data-tooltip]::before {
  content: attr(data-tooltip);
  display: block;
  position: absolute;
  opacity: 0;
  pointer-events: none;
  transition: all 250ms ease;
  transform: translate(-50%, 10px);
  left: 50%;
  bottom: 100%;
  background-color: rgba(0,0,0,.8);
  color: #fff;
  padding: 4px 8px;
  border-radius: 2px;
  font-size: 11px;
}

[data-tooltip]:hover::before {
  transform: translate(-50%, -10px);
  opacity: 1;
  pointer-events: auto;
}
