$borderRadius: .3rem;
$margin: .5rem ;
$padding: .25rem .5rem;
$eventColor: #3b91ad;
$eventFontSize: 14px;

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

.flexContainer {
    max-width: 100%;
    width: 100%;
    border-top: 1px solid $eventColor;
    border-left: 1px solid $eventColor;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
}

.flexColumn {
    display: flex;
    width: 14.2857142857%;
    border-bottom: 1px solid $eventColor;
    border-right: 1px solid $eventColor;
    flex: 0 1 auto;
    justify-content: center;
}

.day.inactive {
    background-color: #f8f8f8;
    color: #ccc;
}

.day.today {
    background-color: #fcf8e3;
}

.day .inner-grid {
    width: 100%;
    position:relative;
}

.day .event-slot {
    position: relative;
    margin: $margin 0;
    min-height: 28px;
    font-size: $eventFontSize;
}

.day .event-slot.event {
    background: #3b91ad;
    color: #3b91ad;
    white-space: nowrap;
    text-indent: -10000px;
    cursor: pointer;
} 

.day .event-slot .event-title {
    position: absolute;
    top:($eventFontSize/2)/2;
    left:$margin;
    z-index: 100;
    color: #fff;
    z-index:1;
    overflow:visible;
    text-indent: 0;
}

.day .event.event-first-day {
    margin-left: $margin;
    border-top-left-radius: $borderRadius;
    border-bottom-left-radius: $borderRadius;
}

.day .event.event-last-day {
    margin-right: $margin;
    border-top-right-radius: $borderRadius;
    border-bottom-right-radius: $borderRadius;
}  

.day .date {
    padding: $padding;
    text-align: right;
}   