/*--css 初始化-- */

*[datepicker] {
  position: relative;
  /*height: 30px;*/
  /*width: 340px;*/
  /*margin: auto;*/
  /*border: #ccc 1px solid;*/
  /*box-sizing: border-box;*/
  /*font-size: 15px;*/
}

.calendar {
  font-size: 1rem;
  display: none;
  position: absolute;
  width: 340px;
    top: calc(100% + 5px);
    left:calc(100% - 340px);
  padding: 20px;
  background-color: #fff;
  box-shadow: 2px 2px 15px 2px #e3e3e3;
  box-sizing: border-box;
  white-space: normal;
  z-index: 9999;
}

.calendar * {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
 }

/*.calendar fieldset, img, input, button {
  border: none;
  outline-style: none;
}*/

.calendar ul, ol {
  list-style: none;
}

.calendar input {
  width: 100%;
  height: 30px;
  padding-left: 15px;
  padding-right: 40px;
  border: none;
  font-size: 14px;
}

.calendar button{
  margin: 0;
  padding: 0;
  border: none;
}

.calendar-today {
    background-color: #ddd;
}

.calendar-header {
  position: relative;
  text-align: center;
  line-height: 30px;
    margin-bottom: 10px;
    margin-left: -8px;
}
.calendar-header i {
  position: absolute;
  top: 50%;
  width: 30px;
  height: 30px;
  margin-top: -15px;
  font-size: 20px;
  line-height: 30px;
  text-align: center;
  cursor: pointer;
}
.calendar-header i.fa-year-left {
  left: 14px;
}
.calendar-header i.fa-year-right {
  right: 10px;
}
.calendar-header i.fa-month-left {
  left: 39px;
}
.calendar-header i.fa-month-right {
  right: 35px;
}
.calendar-header i:after {
  position: absolute;
  top: 50%;
  left: 50%;
  content: '';
  width: 14px;
  height: 14px;
  margin-top: -7px;
  margin-left: -5px;
  border-top: #ccc 2px solid;
  border-left: #ccc 2px solid;
  /*box-sizing: border-box;*/
}
.calendar-pre:after {
  transform: rotateZ(-45deg);
  /*box-sizing: border-box;*/
}
.calendar-next:after {
  transform: rotateZ(135deg);
  /*box-sizing: border-box;*/
}

.calendar-week,
.calendar-days {
  font-size: 0;
  margin: 0;
}
.calendar-week p,
.calendar-days li {
  display: inline-block;
  width: 14.28571%;
  padding: 5px;
  font-size: 14px;
  text-align: center;
  vertical-align: middle;
  cursor: pointer;
}
.calendar-days li p {
  padding: 0;
}
.date-default {
  color: #ccc;
}
.calendar-days li.active {
  background-color: #1890ff;
  color: #fff;
}

.clendar-main {
  position: relative;
}
.time {
  width: 70px;
  background-color: #1890ff;
  text-align: center;
  line-height: 26px;
  color: #fff;
  cursor: pointer;
}
.calendar-time {
  display: none;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  padding-top: 15px;
  padding-bottom: 15px;
  overflow: hidden;
  background-color: #fff;
}
.calendar-time > ul {
  float: left;
  width: 33.33333%;
  height: 100%;
  padding-top: 20px;
  text-align: center;
  overflow-y: auto;
}
.calendar-time li {
  line-height: 24px;
  cursor: pointer;
}
.calendar-time li:hover {
  color: #fff;
  background-color: #116ec3;
}
.calendar-time li.active {
  color: #fff;
  background-color: #1890ff;
}
.calendar-bottom {
  padding-top: 10px;
  overflow: hidden;
}
.time-show {
  float: left;
}
.calendar-button {
  float: right;
}
.calendar-button button {
  width: 50px;
  height: 26px;
  margin-left: 5px;
  font-size: 12px;
  color: #fff;
  background-color: #1890ff;
  cursor: pointer;
}
