/* Common */
.hidden-fields {
	display: none;
}
.cleardiv {
	clear: both;
}
.loading {
	text-align: center;
	margin: 130px 0;
}
.tiva-events-calendar {
	font-family: "Helvetica Neue",Helvetica,Arial,sans-serif;
}

/* Bar */
.events-calendar-bar{
	display: flex;
}
.events-calendar-bar .bar-btn:last-child{
	margin-left: auto;
}
.events-calendar-bar .bar-btn.active,
.events-calendar-bar .bar-btn:hover {
	background: #666;
	color: #fff;
}
.events-calendar-bar .bar-btn {
	background-color: transparent;
    color: #666;
    border: solid 2px #666;
    padding: .25rem .725rem;
    margin-right: .25rem;
    text-transform: uppercase;
    font-weight: 500;
    cursor: pointer;
}
.events-calendar-bar .bar-btn i{
	margin-right: 5px;
}
.events-calendar-bar .back-calendar {
	margin-right: 0;
	float: right !important;
}

.events-calendar-bar .back-calendar i {
	left: 6px;
}

/* Calendar */
.tiva-calendar .calendar-table {
	table-layout: auto;
	box-sizing: content-box;
	border-right: 0;
}
.tiva-calendar .calendar-table th, .tiva-calendar .calendar-table td {
	border-bottom: none;
	border-right: none;
	border-top: 1px solid #dee2e6;
	padding: 8px;
}
.tiva-calendar .calendar-btn span {
	font-size: 14px;
	color: #fff;
}

/* Tooltip */
.calendar-day-event {
	position: relative;
}
.calendar-day-event .tiva-event-tooltip {
	position: absolute;
    z-index: 9999;
    width: 180px;
    left: 50%;
	margin: 0 0 0 -90px;
    bottom: 35px;
    background: #f5f5f5;
    opacity: 0;
	border: 1px solid #cccccc;
	box-shadow: 0 0 5px 2px rgba(145,145,145,.35);
    border-radius: 6px;
	pointer-events: none;
	padding: 10px;
	text-align: left;
	-webkit-transform: translate3d(0,-10px,0);
	transform: translate3d(0,-10px,0);
	-webkit-transition: opacity 0.3s, -webkit-transform 0.3s;
	transition: opacity 0.3s, transform 0.3s;
}
.calendar-day-event .tiva-event-tooltip::before, .calendar-day-event .tiva-event-tooltip::after {
	top: 100%;
	left: 50%;
	border: solid transparent;
	content: " ";
	height: 0;
	width: 0;
	position: absolute;
	pointer-events: none;
}
.calendar-day-event .tiva-event-tooltip::after {
	border-color: rgba(245, 245, 245, 0);
	border-top-color: #f5f5f5;
	border-width: 8px;
	margin-left: -8px;
}
.calendar-day-event .tiva-event-tooltip::before {
	border-color: rgba(204, 204, 204, 0);
	border-top-color: #cccccc;
	border-width: 9px;
	margin-left: -9px;
}
.calendar-day-event .tiva-event-tooltip .event-tooltip-item {
	border-bottom: 1px dotted #666;
	margin-bottom: 10px;
	padding-bottom: 10px;
}
.calendar-day-event .tiva-event-tooltip .event-tooltip-item:last-child {
	border-bottom: none;
	margin-bottom: 0;
	padding-bottom: 0;
}
.calendar-day-event .tiva-event-tooltip .event-time {
	display: inline-block;
	font-size: 12px;
	color: #fff;
    background: #757575;
    padding: 0 5px;
    -moz-border-radius: 3px;
    -webkit-border-radius: 3px;
    border-radius: 3px;
    border: 0;
    margin-bottom: 5px;
	line-height: 22px;
}
.calendar-day-event .tiva-event-tooltip .event-time i {
	margin-right: 5px;
}
.calendar-day-event .tiva-event-tooltip .event-name {
	font-size: 15px;
	line-height: 20px;
	margin-bottom: 6px;
	color: #35814f;
}
.calendar-day-event .tiva-event-tooltip .event-image  img {
	width: 100%;
	margin-bottom: 6px;
	border: 1px solid #EEE;
}
.calendar-day-event .tiva-event-tooltip .event-intro {
	font-size: 14px;
}

.tiva-event-list .event-image .date {
	text-align: center;
	font-family: Helvetica, sans-serif; 
	background-color: #fff;
  color: #666;
  position: relative;
  display: inline-block;
  height: 90px;
  width: 90px;
  border: 2px solid #666;
  z-index: 2;
  border-radius: 4px;
  line-height: 1.2;
  padding: 16px 0;
}
.tiva-event-list .event-image .date:before,
.tiva-event-list .event-image .date:after{
  background-color: #666!important;
}
.tiva-event-list .event-image .date span {
  display: block;
  font-size: 22px;
  font-weight: 600;
}
.tiva-event-list .event-image .date span:last-child {
  font-size: 16px;
  padding-top: .5rem;
}
.tiva-event-list .event-image .date:before,
.tiva-event-list .event-image .date:after{
  content: "";
  position: absolute;
  top: -7px;
  width: 2px;
  height: 10px;
  border-radius: 2px;
  left: 12px;
  background-color: #f4f4f4;
}

.tiva-event-list .event-image .date:after{
  right: 12px;
  left: initial;
}
@media (max-width: 767px){
	.tiva-calendar-full .calendar-day-normal{
		height: auto!important;
	}
	.calendar-day-event .tiva-event-tooltip{
		left: -40px;
	}
	.tiva-calendar-full .calendar-event-name{
		margin-top: 0!important;
		height: 20px;
    	overflow: hidden;
	}
	
	.tiva-events-calendar .calendar-table{
		display: block;
	    width: 100%;
	    overflow-x: auto;
	    -webkit-overflow-scrolling: touch;
	    -ms-overflow-style: -ms-autohiding-scrollbar;
	}
}