// Calendar
// --------------------------------------------------
@prefix-cls-calendar: e("@{prefix-cls}-calendar");

.@{prefix-cls-calendar} {
  position: relative;
  font-size: 12px;
}
.@{prefix-cls-calendar}-input.with-reset-button {
  padding-right: 25px;
}
.@{prefix-cls-calendar} > button.close {
  position: absolute;
  top: calc(37%);
  right: 10px;
}
.@{prefix-cls-calendar} > button.close {
  outline: none;
  z-index: 2;
}
.@{prefix-cls-calendar} > button.close:focus {
  opacity: .2;
}
.@{prefix-cls-calendar}-popup {
  // position: absolute;
  border: 1px solid #ccc;
  border-radius: 5px;
  background: #fff;
  z-index: 1000;
  margin-top: 2px;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.175);
}
// .@{prefix-cls-calendar}-inner {
//   width: 218px;
// }
.@{prefix-cls-calendar}-body {
  padding: 0 10px;
}
.@{prefix-cls-calendar}-header p,
.@{prefix-cls-calendar}-header span,
.@{prefix-cls-calendar}-body span {
  display: inline-block;
  width: 14.28%;
  line-height: 28px;
  height: 28px;
  border-radius: 4px;
}
.@{prefix-cls-calendar}-header p {
  width: 65%;
}
.@{prefix-cls-calendar}-header span {
  position: absolute;
}
.@{prefix-cls-calendar}-body span {
  text-align: center;
}
.@{prefix-cls-calendar}-monthRange span {
  width: 48px;
  height: 50px;
  line-height: 45px;
}
.@{prefix-cls-calendar}-item-disable {
  background-color: white!important;
  cursor: not-allowed !important;
}
.@{prefix-cls-calendar}-item-today {
  border: 1px solid @primary-color;
  color: @primary-color;
  vertical-align: top;
}
.decadeRange span:first-child,
.decadeRange span:last-child,
.@{prefix-cls-calendar}-item-disable,
.@{prefix-cls-calendar}-item-gray {
  color: #999;
}
.@{prefix-cls-calendar}-dateRange-item-active:hover,
.@{prefix-cls-calendar}-dateRange-item-active {
  background: @primary-color !important;
  color: white!important;
}
.@{prefix-cls-calendar}-monthRange {
  margin-top: 10px;
}
.@{prefix-cls-calendar}-monthRange span,
.@{prefix-cls-calendar}-header span,
.@{prefix-cls-calendar}-header p,
.@{prefix-cls-calendar}-dateRange span {
  cursor: pointer;
  margin: 0;
}
.@{prefix-cls-calendar}-monthRange span:hover,
.@{prefix-cls-calendar}-header p:hover,
.@{prefix-cls-calendar}-header i:hover,
.@{prefix-cls-calendar}-dateRange span:hover,
.@{prefix-cls-calendar}-dateRange-item-hover {
  background-color: tint(@primary-color, 95%);
}
.@{prefix-cls-calendar}-weekRange span {
  font-weight: bold;
}
.@{prefix-cls-calendar}-label {
  background-color: #f8f8f8;
  font-weight: 700;
  padding: 7px 0;
  text-align: center;
}
.@{prefix-cls-calendar}-header {
  position: relative;
  height: 34px;
  line-height: 34px;
  font-weight: bold;
  text-align: center;
  border-bottom: 1px solid #d9d9d9;
}
.@{prefix-cls-calendar}-footer {
  border-top: 1px solid #d9d9d9;
  text-align: center;
  height: 34px;
  line-height: 34px;
  a {
    font-style: 12px;
    text-decoration: none;
  }
}
.@{prefix-cls-calendar}-month-btn {
  font-weight: bold;
  user-select: none;
  font-size: 16px;
  &:hover {
    color: @primary-color;
  }
}
.@{prefix-cls-calendar}-preBtn {
  left: 2px;
}
.@{prefix-cls-calendar}-nextBtn {
  right: 2px;
}
