.calendar,
.calendar * {
  box-sizing: border-box;
  font-family: "Chinese Quote", "Microsoft YaHei";
  font-size: 14px;
}
.calendar::before,
.calendar::after,
.calendar *::before,
.calendar *::after {
  box-sizing: border-box;
}
.calendar ol,
.calendar ul {
  list-style: none;
}
.calendar ol,
.calendar ul,
.calendar th,
.calendar td {
  margin: 0px;
  outline: 0px;
  padding: 0px;
}
/* header */
.calendar .calendar-header {
  padding: 2px 8px 2px 8px;
  text-align: right;
  font-size: 0;
}
.calendar .calendar-header .calendar-select {
  color: rgba(0, 0, 0, 0.65);
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  list-style: none;
  display: inline-block;
  position: relative;
  outline: 0;
  vertical-align: middle;
  font-size: 0;
  cursor: pointer;
}
.calendar .calendar-header .btn.calendar-select-active {
  border-color: #40a9ff;
  z-index: 2;
  background: #40a9ff;
  color: #ffffff;
}
.calendar .calendar-header .calendar-select:first-child {
  margin-right: 10px;
}
.calendar .calendar-header .calendar-year-select,
.calendar .calendar-header .calendar-month-select {
  border-radius: 2px;
  border: 1px solid #d9d9d9;
}
.calendar .calendar-header .calendar-year-select:hover,
.calendar .calendar-header .calendar-month-select:hover {
  border-color: #40a9ff;
}
.calendar .calendar-header .calendar-year-text,
.calendar .calendar-header .calendar-month-text {
  margin: 0 10px;
  line-height: 20px;
  font-size: 12px;
}
.calendar .calendar-header .calendar-icon {
  margin: 0 10px 0 0;
}
.calendar .calendar-header .calendar-icon i {
  font-style: normal;
}
.calendar .calendar-header .calendar-icon * {
  color: rgba(0, 0, 0, 0.25);
}
.calendar .calendar-header .btn {
  float: left;
  padding: 0px 5px;
  border: 1px solid #d9d9d9;
  border-radius: 2px;
}
.calendar .calendar-header .btn-group {
  float: left;
  display: inline;
  padding: 0 8px;
}
.calendar .calendar-header .btn-group > .btn {
  position: relative;
  float: left;
}
.calendar .calendar-header .btn-group > .btn:hover {
  z-index: 2;
  border-color: #40a9ff;
}
.calendar .calendar-header .btn-group .btn + .btn {
  margin-left: -1px;
}
.calendar .calendar-header .btn-group > .btn:first-child {
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
}
.calendar .calendar-header .btn-group > .btn:last-child:not(:first-child) {
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
}
.calendar .calendar-header ul.dropdown-month,
.calendar .calendar-header .dropdown-month li,
.calendar .calendar-header ul.dropdown-year,
.calendar .calendar-header .dropdown-year li {
  list-style: none;
  text-align: center;
  padding: 0;
  margin: 0;
}
.calendar .calendar-header .dropdown-month.open,
.calendar .calendar-header .dropdown-year.open {
  display: inline-block;
  margin-top: 1px;
  width: 100%;
}
.calendar .calendar-header .dropdown-month,
.calendar .calendar-header .dropdown-year {
  height: 250px;
  z-index: 111;
  overflow-y: auto;
  overflow-x: hidden;
  display: none;
  position: absolute;
  left: 0;
  top: 100%;
  background: #fff;
  width: 50px;
  border: 1px solid #eee;
  box-shadow: 0px 6px 12px rgba(0, 0, 0, 0.175);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.175);
}
.calendar .calendar-header .dropdown-month *,
.calendar .calendar-header .dropdown-year * {
  font-size: 12px;
}
.calendar .calendar-header .dropdown-month .month-item,
.calendar .calendar-header .dropdown-year .year-item {
  font-size: 12px;
  position: relative;
  display: block;
  padding: 5px 2px;
  line-height: 20px;
  font-weight: normal;
  color: rgba(0, 0, 0, 0.65);
  white-space: nowrap;
  cursor: pointer;
  overflow: hidden;
  text-overflow: ellipsis;
  -webkit-transition: background 0.3s ease;
  transition: background 0.3s ease;
}
.calendar .calendar-header .dropdown-month .month-item:hover,
.calendar .calendar-header .dropdown-year .year-item:hover {
  background: #e6f7ff;
}
.calendar .calendar-header .dropdown-month .month-item.active,
.calendar .calendar-header .dropdown-year .year-item.active {
  background-color: #f3f3f3;
  font-weight: 600;
  color: rgba(0, 0, 0, 0.65);
}
.calendar .calendar-header .dropdown-month::-webkit-scrollbar,
.calendar .calendar-header .dropdown-year::-webkit-scrollbar {
  width: 8px;
  background-color: #fff;
}
.calendar .calendar-header .dropdown-month::-webkit-scrollbar-thumb,
.calendar .calendar-header .dropdown-year::-webkit-scrollbar-thumb {
  background-color: #ddd;
  border-radius: 8px;
  box-shadow: inset 0 0 6px rgba(255, 255, 255, 0.3);
}
/* end header */

/* body */
.calendar .calendar-body {
  width: 100%;
  overflow: hidden;
}
.calendar .calendar-body .calendar-table {
  border-collapse: collapse;
  border-spacing: 0;
  border: 1px solid #dddddd;
}
.calendar .calendar-body .calendar-table,
.calendar .calendar-body .calendar-tbody {
  width: 100%;
  height: 100%;
}
.calendar .calendar-body .calendar-column-header,
.calendar .calendar-body .calendar-cell {
  width: 14%;
}
.calendar .calendar-body .calendar-column-header {
  font-weight: 400;
  text-align: center;
  font-size: 0;
  background: #0885d1;
  color: #ffffff;
  height: 26px;
}
.calendar .calendar-body .calendar-column-header span {
  font-size: 12px;
}
.calendar .calendar-body .calendar-table {
  table-layout: fixed;
}
.calendar .calendar-body .calendar-cell {
  color: rgba(0, 0, 0, 0.65);
  border: 1px solid #dddddd;
  cursor: pointer;
}
.calendar .calendar-body .calendar-cell.calendar-weekend {
  border: 1px solid #ffffff;
  color: #ff9b00;
}
.calendar .calendar-body .calendar-date {
  padding: 4px;
  height: 100%;
  position: relative;
  min-height: 40px;
  z-index: 1;
}
.calendar .calendar-body .calendar-date:hover {
  box-shadow: inset 0 0 0 2px #f07102;
}
.calendar .calendar-body .calendar-weekend .calendar-date {
  border-top: 0px;
}
.calendar .calendar-body .calendar-cell.calendar-last-month-cell,
.calendar .calendar-body .calendar-cell.calendar-next-month-cell {
  color: rgba(0, 0, 0, 0.25);
}
.calendar .calendar-body .calendar-cell.calendar-last-month-cell .events-thumb,
.calendar .calendar-body .calendar-cell.calendar-next-month-cell .events-thumb,
.calendar .calendar-body .calendar-cell.calendar-last-month-cell .events,
.calendar .calendar-body .calendar-cell.calendar-next-month-cell .events {
  opacity: 0.5;
}
.calendar-weekend {
  background: #ffeecc;
}
.calendar .calendar-body .calendar-cell.calendar-thisMonth .calendar-date,
.calendar .calendar-body .calendar-cell.calendar-today .calendar-date {
  background-color: #e6f7ff;
}
.calendar .calendar-body .calendar-date .calendar-value {
  text-align: center;
  font-size: 13px;
  font-weight: bold;
  line-height: 16px;
  overflow: hidden;
  white-space: nowrap;
  text-shadow: -1px 1px white, -1px -1px white, 1px -1px white, 1px 1px white;
}
.calendar .calendar-body .calendar-date .calendar-content {
  overflow: hidden;
  width: 100%;
  min-height: 16px;
}
.calendar .calendar-body .calendar-date .calendar-content .events-thumb {
  overflow: hidden;
}
.calendar
  .calendar-body
  .calendar-date
  .calendar-content
  .events-thumb
  .event-thumb-dot {
  display: inline-block;
  margin-right: 0px;
  width: 6px;
  height: 6px;
  background-color: #34c139;
  border-radius: 50%;
  vertical-align: middle;
  border: 1px solid white;
}
.calendar .calendar-body .calendar-cell .calendar-holiday-work {
  position: absolute;
  left: 0;
  top: 0;
  width: 20px;
  height: 22px;
  line-height: 22px;
  color: #fff;
  text-align: center;
  font-size: 12px;
  overflow: hidden;
  transform: scale(0.9);
  transform-origin: left top;
}
.calendar
  .calendar-body
  .calendar-cell.date-mark-work
  .calendar-date
  .calendar-value,
.calendar
  .calendar-body
  .calendar-cell.date-mark-holiday
  .calendar-date
  .calendar-value {
  margin-left: 10px;
}
/* 班 */
.calendar .calendar-body .calendar-cell.date-mark-work {
  background: #dddddd;
  border-color: white;
}
.calendar .calendar-body .calendar-cell.date-mark-work .calendar-holiday-work {
  background: #999999;
}
.calendar .calendar-body .calendar-cell.calendar-last-month-cell.date-mark-work,
.calendar
  .calendar-body
  .calendar-cell.calendar-next-month-cell.date-mark-work {
  background: #efefef;
}
/* 休 */
.calendar .calendar-body .calendar-cell.date-mark-holiday {
  background: #eed3d7;
  border-color: white;
}
.calendar
  .calendar-body
  .calendar-cell.date-mark-holiday
  .calendar-holiday-work {
  background: #f43;
}
.calendar .calendar-body .calendar-date .value {
  font-size: 12px;
  transform: scale(0.9);
  transform-origin: left top;
}
.calendar
  .calendar-body
  .calendar-cell.calendar-last-month-cell.date-mark-holiday,
.calendar
  .calendar-body
  .calendar-cell.calendar-next-month-cell.date-mark-holiday {
  background: #fef4f4;
}

/* end body */
