/* Table of Contents
==================================================
# Datepicker */

/* # Datepicker
================================================== */
.datepicker {
  left: 0;
  margin-top: 1px;
  top: 0;
  z-index: 1060;
}
.datepicker-dropdown.dropdown-menu {
  display: none;
  opacity: 1;
  padding: 0;
  -webkit-transition: none;
  transition: none;
  visibility: visible;
}
.datepicker:before {
  border-bottom: 7px solid $color-haze-dark;
  border-right: 7px solid $color-transparent;
  border-left: 7px solid $color-transparent;
  content: '';
  display: inline-block;
  position: absolute;
}
.datepicker:after {
  border-bottom: 6px solid $color-haze-dark;
  border-right: 6px solid $color-transparent;
  border-left: 6px solid $color-transparent;
  content: '';
  display: inline-block;
  position: absolute;
}
.datepicker.datepicker-orient-left:before { left: 6px; }
.datepicker.datepicker-orient-left:after { left: 7px; }
.datepicker.datepicker-orient-right:before { right: 6px; }
.datepicker.datepicker-orient-right:after { right: 7px; }
.datepicker.datepicker-orient-top:before { top: -7px; }
.datepicker.datepicker-orient-top:after { top: -6px; }
.datepicker.datepicker-orient-bottom:before {
  bottom: -7px;
  border-bottom: 0;
  border-top: 7px solid $color-haze-dark;
}
.datepicker.datepicker-orient-bottom:after {
  bottom: -6px;
  border-bottom: 0;
  border-top: 6px $color-haze-dark;
}
.dow {
  color: $color-black;
  font-weight: bold;
}
.datepicker > div { display: none; }
.datepicker table {
  margin: 0;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  user-select: none;
  width: 100%;
}
.datepicker table th,
.datepicker table td {
  height: 20px;
  text-align: center;
  width: 20px;
}
.datepicker table td {
  font-weight: normal;
  height: 22px;
  line-height: 16px;
}
.datepicker table td.new,
.datepicker table td.old { color: $color-gray-light; }
.datepicker table td > span {
  border-radius: 2px;
  display: block;
  height: 30px;
  float: left;
  line-height: 33px;
  margin: 2px;
  width: 51px;
}
.datepicker table td.active,
.datepicker table td.day:hover,
.datepicker table td.day.active,
.datepicker table td.day:active,
.datepicker table td.day:focus,
.datepicker table td > span:hover,
.datepicker table td > span.active,
.datepicker table td > span:active,
.datepicker table td > span:focus,
.datepicker table > thead > tr:first-child > th:hover,
.datepicker table > thead > tr:first-child > th:active,
.datepicker table > thead > tr:first-child > th:focus {
  background: $color-primary;
  color: $color-white;
  cursor: pointer;
}
.datepicker table td.active,
.datepicker table td.day,
.datepicker table > thead > tr:first-child > th { border-radius: 2px; }
.datepicker table > thead > tr:first-child > th:nth-child(2) { font-weight: bold; }
.datepicker table th.next,
.datepicker table th.prev { font-size: 17px; }
.datepicker table th.switch {
  font-weight: bold;
  width: 145px;
}
.datepicker table td.day.disabled { color: $color-haze-dark; }
.datepicker table td.day.disabled:hover,
.datepicker table td.day.disabled.active,
.datepicker table td.day.disabled:active,
.datepicker table td.day.disabled:focus {
  background: $color-transparent;
  cursor: not-allowed;
}