/* ======================================================================
  Calendar
======================================================================== */

.v2-calendar {
	position: absolute;
	z-index: 1000;
	border-radius: 6px;
	margin: 20px 0 0 -40px;
}

.v2-calendar iframe {
	display: none;
}

.v2-calendar table {
	position: relative;
	border-radius: 6px;
	border-spacing: 4px;
	background: #fff;
	box-shadow: 0px 2px 16px rgba(0, 0, 0, 0.3);
	border: 1px solid #ddd;
}

.v2-calendar td {
	text-align: center;
	height: 40px;
	font-size: 14px;
	width: 14.285%;
}

.v2-calendar td:empty {
	display: none;
}

/* ==================================
  Calendar Layer Triangle
======================================= */
.v2-calendar table:before, .v2-calendar table:after {
	display: block;
	position: absolute;
	bottom: 100%;
	left: 54px;
	content: '';
    width: 0;
    height: 0;
    border: solid transparent;
}

.v2-calendar table:before {
	border-bottom-color: #ddd;
    border-width: 14px;
    margin-left: -14px;
}

.v2-calendar table:after {
	border-bottom-color: #fff;
    border-width: 12px;
    margin-left: -12px;
}

/* ==================================
  Header
======================================= */
.v2-calendar td.calheader {
	width: 100%;
	padding: 15px;
	border-bottom: 1px solid #ddd;
	position: relative;
}

.v2-calendar td.calheader select {
	color: #666;
    font-weight: bold;
    border: 0;
    background: #fff;
    font-size: 16px;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    width: 130px;
    text-align-last: center;
}

/* Fix for IE */
.v2-calendar td.calheader select::-ms-expand {
	display: none;
}

.v2-calendar td.calheader a {
	position: absolute;
	display: block;
	top: 50%;
	margin-top: -13px;
	width: 26px;
	height: 26px;
	text-decoration: none;
	color: #008dee;
}

.v2-calendar td.calheader a img,
.v2-calendar td.calheader img {
	display: none;
}

.v2-calendar td.calheader a.calPrevMonth {
	left: 15px;
	text-align: left;
}

.v2-calendar td.calheader a.calNextMonth {
	right: 15px;
	text-align: right;
}

.v2-calendar td.calheader a:before {
	font-family: fontello;
	font-size: 20px;
}

.v2-calendar td.calheader a.calPrevMonth:before {
	content: '\e808';
} 

.v2-calendar td.calheader a.calNextMonth:before {
	content: '\e801';
}

/* ==================================
  Footer
======================================= */
.v2-calendar td.calfoot a {
	color: #666;
    padding: 20px 0;
    text-transform: uppercase;
    border-top: 1px solid #ddd;
    display: block;
    text-decoration: none;
}

.v2-calendar td.calfoot a:hover {
	border-radius: 0;
	background: #f9f9f9;
}

/* ==================================
  Weekdays
======================================= */
.v2-calendar .weekdays td {
	text-transform: uppercase;
	color: #999;
	font-size: 13px;
}

/* ==================================
  Days
======================================= */
.v2-calendar .days td a {
	color: #666;
	text-decoration: none;
	height: 40px;
    line-height: 40px;
    display: inline-block;
    width: 40px;
    border-radius: 50%;
    position: relative;
}

.v2-calendar .days td a:hover {
	color: #fff;
}

.v2-calendar .days td.gone {
	cursor: not-allowed;
	color: #ddd;
}

.v2-calendar .days td.selected a, 
.v2-calendar .days td.onArr a {
	font-weight: bold;
	color: #fff;
	z-index: 9;
}

.v2-calendar .days td.today:not(.onArr) a {
	border: 3px solid #ddd;
	line-height: 34px;
}

.v2-calendar .days td.today.onArr a {
	border: 0;
}

.v2-calendar td.weekend a {
	font-weight: 600;
}

/* ==================================
  Selected days
======================================= */
.v2-calendar .days td.onArr a:after,
.v2-calendar .days td.selected:not(.onArr) a:after {
	position: absolute;
	content: '';
	top: 0;
    width: 50%;
    height: 40px;
    z-index: -1;
}

.v2-calendar .days td.onArr a:after {
	right: 0;
}

.v2-calendar .days td.selected:not(.onArr) a:after {
    left: 0;
}