.flatpickr-calendar {
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.16);
  font-family: inherit;
  overflow: hidden;
  z-index: 999999;
}

.flatpickr-months {
  padding: 8px 8px 2px;
  background: #fff !important;
  border: 0 !important;
  box-shadow: none !important;
}

.flatpickr-months .flatpickr-month {
  height: 40px;
  background: transparent !important;
  color: #111827;
  fill: #111827;
  border: 0 !important;
  box-shadow: none !important;
}

.flatpickr-current-month {
  top: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 40px;
  padding: 0;
  color: #111827;
  font-size: 16px;
  font-weight: 700;
  line-height: 40px;
}

.flatpickr-current-month .flatpickr-monthDropdown-months,
.flatpickr-current-month input.cur-year,
.flatpickr-current-month .flatpickr-monthDropdown-months option {
  background: #fff;
  color: #111827;
  font-weight: 700;
}

.flatpickr-current-month .flatpickr-monthDropdown-months {
  order: 2;
  width: auto;
  height: 32px;
  margin: 0;
  padding: 0 7px;
  border: 0;
  border-radius: 8px;
  font-size: 16px;
  line-height: 32px;
  text-align: center;
  -webkit-appearance: none;
  appearance: none;
}

.flatpickr-current-month .numInputWrapper {
  order: 1;
  display: inline-flex;
  align-items: center;
   width: 7.8ch;
  height: 32px;
  background: transparent;
}

.flatpickr-current-month .numInputWrapper::after {
  position: absolute;
  right: 0;
  content: "년";
  color: #111827;
  font-size: 16px;
  font-weight: 700;
  line-height: 32px;
  pointer-events: none;
}

.flatpickr-current-month input.cur-year {
  width: 100%;
  height: 32px;
  margin: 0;
  padding: 0 1.15em 0 0;
  border: 0;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 700;
  line-height: 32px;
  text-align: right;
  -moz-appearance: textfield;
  appearance: textfield;
}

.flatpickr-current-month input.cur-year::-webkit-outer-spin-button,
.flatpickr-current-month input.cur-year::-webkit-inner-spin-button,
.flatpickr-current-month .numInputWrapper > span {
  display: none !important;
  margin: 0;
  -webkit-appearance: none;
}

.flatpickr-current-month .numInputWrapper:hover,
.flatpickr-current-month input.cur-year:hover,
.flatpickr-current-month .flatpickr-monthDropdown-months:hover {
  background: #f1f5f9;
}

.flatpickr-current-month input.cur-year:focus,
.flatpickr-current-month .flatpickr-monthDropdown-months:focus {
  outline: 2px solid #bfdbfe;
  outline-offset: 0;
  background: #eff6ff;
}

.flatpickr-months .flatpickr-prev-month,
.flatpickr-months .flatpickr-next-month {
  top: 8px;
  height: 40px;
  padding: 12px 14px;
  color: #64748b;
  fill: #64748b;
}

.flatpickr-months .flatpickr-prev-month svg path,
.flatpickr-months .flatpickr-next-month svg path {
  fill: #64748b;
}

.flatpickr-months .flatpickr-prev-month:hover svg path,
.flatpickr-months .flatpickr-next-month:hover svg path {
  fill: #2563eb;
}

.flatpickr-weekdays {
  height: 34px;
  background: #f8fafc !important;
  border: 0 !important;
  box-shadow: none !important;
}

.flatpickr-weekdays .flatpickr-weekdaycontainer,
span.flatpickr-weekday {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

span.flatpickr-weekday {
  color: #64748b;
  font-size: 12px;
  font-weight: 700;
}

.flatpickr-day {
  border-radius: 10px;
  color: #374151;
}

.flatpickr-day.prevMonthDay,
.flatpickr-day.nextMonthDay {
  color: #cbd5e1;
}

.flatpickr-day:hover,
.flatpickr-day:focus {
  background: #eff6ff;
  border-color: #eff6ff;
}

.flatpickr-day.today {
  border-color: #cbd5e1;
}

.flatpickr-day.selected,
.flatpickr-day.startRange,
.flatpickr-day.endRange,
.flatpickr-day.selected:hover,
.flatpickr-day.startRange:hover,
.flatpickr-day.endRange:hover {
  background: #2563eb;
  border-color: #2563eb;
  color: #fff;
}

input.flatpickr-input[readonly] {
  cursor: pointer;
  padding-right: 46px;
  background-color: #fff;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%232563eb' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='16' rx='2'/%3E%3Cpath d='M16 3v4M8 3v4M3 11h18'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 20px 20px;
}
