:root{
  --color: #0387CA;
}

.date-components {
  position: absolute;
  left: 50%;
  top: 100%;
  z-index: 999;
  width: 280px;
  background-color: #ffffff;
  border: solid 1px #f2f3f3;
  box-shadow: 3px 3px 10px rgba(0, 0, 0, 0.1);
  transform: translateX(-50%);
}

.date-components .tool{
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 3px 10px;
}

.date-components .tool .arrow{
  position: relative;
  width: 30px;
  cursor: pointer;
}

.date-components .tool .arrow.next{
  transform: rotateY(180deg);
}

.date-components .tool .arrow i{
  position: relative;
  display: block;
  height: 30px;
}

.date-components .tool .arrow:before,
.date-components .tool .arrow:after,
.date-components .tool .arrow i:before,
.date-components .tool .arrow i:after{
  content: "";
  position: absolute;
  left: 6px;
  top: 50%;
  margin-top: -1px;
  width: 14px;
  height: 2px;
  background-color: var(--color);
  border-radius: 2px;
  transform-origin: left;
}

.date-components .tool .arrow:before,
.date-components .tool .arrow i:before{
  transform: rotate(-40deg);
}

.date-components .tool .arrow:after,
.date-components .tool .arrow i:after{
  margin-top: -2px;
  transform: rotate(40deg);
}

.date-components .tool .arrow i:before,
.date-components .tool .arrow i:after{
  margin-left: 8px;
}

.date-components .tool .year-month{
  position: relative;
  width: 160px;
  border-radius: 5px;
  border: solid 1px var(--color);
}

.date-components .tool .year-month .txt{
  display: flex;
  justify-content: center;
  align-items: center;
  height: 28px;
  font-size: 16px;
  color: var(--color);
  font-weight: bold;
}

.date-components .tool .year-month .txt .day{
  display: none;
}

.date-components .tool .year-month .txt .month{
  margin-right: 10px;
}

.date-components .tool .year-month select{
  display: block;
  position: absolute;
  left: 0;
  top: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  cursor: pointer;
  opacity: 0;
}

.date-components .week{
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 4px 10px;
  gap: 5px;
}

.date-components .week span{
  width: calc((100% - 5px * 6) / 7);
  font-size: 14px;
  color: #333333;
  text-align: center;
  line-height: 30px;
}

.date-components .days{
  padding: 0 10px 10px;
}

.date-components .days .row{
  display: flex;
  flex-wrap: wrap;
}

.date-components .days .row:nth-child(n+2){
  margin-top: 5px;
}

.date-components .days .day-span{
  width: calc((100% - 30px) / 7);
  height: calc(228px / 7);
  line-height: calc(228px / 7 - 2px);
  font-size: 14px;
  color: #666666;
  line-height: 30px;
  text-align: center;
  border: solid 1px #e0e1e1;
  border-radius: 5px;
}

.date-components .days .day-span:nth-child(n+2){
  margin-left: 5px;
}

.date-components .days .day-span.currentMonth{
  color: #333333;
}

.date-components .days .day-span.today{
  color: var(--color);
  border-color: var(--color);
}

.date-components .days .day-span:hover{
  background-color: #f7f8f8;
}

.date-components .days .day-span.check{
  color: #ffffff;
  background-color: var(--color);
  border-color: var(--color);
}

@media screen and (max-width: 1023px){
  .date-components {
    position: initial;
    width: auto;
    transform: translateX(0);
  }
}