﻿.border-box {
  box-sizing: border-box;
  -moz-box-sizing: border-box;
}

calendar {
  float: left;
  display: block;
  box-sizing: border-box;
  -moz-box-sizing: border-box;
  background: white;
  max-width: 330px;
  border: solid 1px #CCC;
  margin-bottom: 10px;
}

calendar>div.header {
  float: left;
  width: 100%;
  /*background: #2875C7;*/
  height: 40px;
  color: white;
  font-size: 1.55em;
}

calendar>div.header>* {
  height: 40px;
  line-height: 40px !important;
  display: inline-block;
  vertical-align: middle;
}

calendar>div.header>i {
  float: left;
  width: 40px;
  font-size: 1.35em;
  font-weight: bold;
  position: relative;
  box-sizing: border-box;
  -moz-box-sizing: border-box;
  padding: 0 10px;
  cursor: pointer;
  background: #2875C7;
}

calendar>div.header>i.fa-angle-left {
  text-align: left;
}

calendar>div.header>i.fa-angle-right {
  text-align: right;
  margin-left: -40px;
}

calendar>div.header>span {
  float: left;
  width: 100%;
  /* font-weight: bold; */
  text-transform: uppercase;
  box-sizing: border-box;
  -moz-box-sizing: border-box;
  padding-left: 50px;
  margin-left: -40px;
  text-align: center;
  padding-right: 40px;
  color: inherit;
}

calendar>div.week {
  float: left;
  width: 100%;
  border-top: solid 1px #CCC;
}

calendar>div.week:first-child {
  border-top: none;
}

calendar>div.week>span.day {
  float: left;
  width: 14.28571429%;
  box-sizing: border-box;
  -moz-box-sizing: border-box;
  /*border-left: solid 1px #CCC;*/
  font-size: 1.35em;
  text-align: center;
  height: 30px;
  line-height: 30px !important;
  display: inline-block;
  vertical-align: middle;
  background: white;
  cursor: pointer;
  color: black;
}

calendar>div.week>span.day:first-child {
  border-left: none;
}

calendar>div.week>span.day.today {
  background: #E3F2FF;
  /*color: green;*/
}

calendar>div.week>span.day.differentMonth {
  color: #C0C0C0;
}

calendar>div.week>span.day.selectedFrom {
  background: #2875C7;
  color: white;
  border-top-left-radius: 10px;
  border-bottom-left-radius: 10px;
}

calendar>div.week>span.day.selectedTo {
  background: #2875C7;
  color: white;
  border-top-right-radius: 10px;
  border-bottom-right-radius: 10px;
}

calendar>div.week>span.day.selectedMiddle {
  background: rgba(40, 117, 199, .35);
  color: black;
}

calendar>div.week>span.day.markerFrom {
  background: orange;
  color: white;
  border-top-left-radius: 10px;
  border-bottom-left-radius: 10px;
}

calendar>div.week>span.day.markerTo {
  background: orange;
  color: white;
  border-top-right-radius: 10px;
  border-bottom-right-radius: 10px;
}

calendar>div.week>span.day.markerMiddle {
  background: navajowhite;
  color: black;
}

calendar>div.week>span.day.isBeforeToday {
  /*text-decoration: line-through;*/
  color: #C0C0C0;
}

calendar>div.week.names>span {
  color: #2875C7;
  /* font-weight: bold; */
}

.left-calendar-click {
  border-radius: 0px 5px 5px 0px;
}

.right-calendar-click {
  border-radius: 5px 0px 0px 5px;
}

calendar>div.week>span.day.marked {
  color: #00611C;
}

.calendar-error {
  color: red;
}

.calendar-tooltip {
  position: relative;
  display: inline-block;
  border-bottom: 1px dotted black;
}

.calendar-tooltip .calendar-tooltiptext {
  visibility: hidden;
  width: 300px;
  background-color: black;
  color: #fff;
  text-align: center;
  border-radius: 6px;
  padding: 5px 0;
  font-size: 20px;
  /* Position the tooltip */
  position: absolute;
  z-index: 1;
  bottom: 100%;
  left: 50%;
  margin-left: -150px;
}

.calendar-tooltip:hover .calendar-tooltiptext {
  visibility: visible;
}

calendar>div.week>span.day.changeSelectedRange {
  background-color: red !important;
}