/* 모바일 세로 / ~480px / 10, 12, 14, 16 */
main > .wrap {
  height: 100%;
  padding: 20px;
}

.calendar {
  height: 100%;
}

.calendar > div ~ div {
  margin-top: 20px;
}

.yearWrap {
  height: 80px;
  background-color: var(--white-color);
  border-radius: 20px;
  display: flex;
  justify-content: space-between;
}

.yearWrap button {
  width: 80px;
  height: 100%;
  background-color: var(--main-color);
}

.yearWrap button i {
  font-size: var(--font-mz);
  color: var(--white-color);
}

.yearWrap .prevMonth {
  border-radius: 20px 0 0 20px;
}

.yearWrap .nextMonth {
  border-radius: 0 20px 20px 0;
}

.yearWrap .year {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.year h2 {
  font-size: var(--font-mlz);
  font-weight: var(--font-ebw);
}

.year p {
  font-size: var(--font-mz);
  font-weight: var(--font-bw);
}

.calendar .monthWrap {
  height: calc(100% - 80px - 20px);
  background-color: var(--main-color);
  padding: 20px;
  border-radius: 20px;
}

.monthWrap table {
  width: 100%;
  height: 100%;
  border-radius: 10px;
  background-color: var(--bg-color);
  border-collapse: collapse;
  overflow: hidden;
}

table :where(th, td) {
  border: 1px solid var(--border-color);
}

table th {
  padding: 20px 0;
  font-size: var(--font-mlz);
  font-weight: var(--font-ebw);
}

table td {
  position: relative;
  height: calc(100% / 6);
}

table td span {
  position: absolute;
  top: 4px;
  left: 4px;
  font-size: var(--font-smz);
  font-weight: var(--font-bw);
}

table th:first-child, table td:first-child span {
  color: var(--error-color);
}

table td ul {
  position: absolute;
  top: 20px;
  left: 4px;
  width: calc(100% - 4px);
  height: calc(100% - 20px);
  overflow-y: auto;
}

table td ul li {
  font-size: var(--font-sz);
  font-weight: var(--font-rw);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.scheduleBg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  padding: 20px;
  background-color: rgba(0, 0, 0, 0.5);
  display: none;
}

.scheduleBg.active {
  display: block;
}

.scheduleWrap {
  width: calc(100% - 40px);
  background-color: var(--main-color);
  border-radius: 20px;
  padding: 20px;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.scheduleList {
  background-color: var(--white-color);
  border-radius: 10px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.scheduleList .title {
  padding: 4px;
  display: flex;
  justify-content: space-between;
  border-bottom: 1px dashed var(--border-color);
}

.title h3, .title button i {
  font-size: var(--font-mlz);
  font-weight: var(--font-bw);
}

.scheduleList ul {
  height: 240px;
  overflow-y: auto;
}

.scheduleList ul li {
  padding: 4px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.scheduleList ul li h4 {
  font-size: var(--font-sz);
  font-weight: var(--font-rw);
}

.scheduleList ul li button i {
  font-size: var(--font-sz);
}

.scheduleList form {
  padding: 12px;
  border-top: 1px dashed var(--border-color);
  display: flex;
  justify-content: space-between;
  gap: 20px;
}

form :where(input, i) {
  flex-grow: 1;
  border: none;
  font-size: var(--font-smz);
  font-weight: var(--font-bw);
}

form input:focus {
  outline: none;
}










/* 모바일 가로 ~ 태블릿 세로 / 12, 14, 16, 18 */
@media screen and (min-width: 768px) and (max-width: 991px) {
  main > .wrap {
    padding: 40px;
  }
  
  .calendar > div ~ div {
    margin-top: 40px;
  }
  
  .yearWrap {
    height: 90px;
    border-radius: 25px;
  }
  
  .yearWrap button {
    width: 90px;
  }
  
  .yearWrap button i {
    font-size: var(--font-mlz);
  }
  
  .yearWrap .prevMonth {
    border-radius: 25px 0 0 25px;
  }
  
  .yearWrap .nextMonth {
    border-radius: 0 25px 25px 0;
  }
  
  .year h2 {
    font-size: var(--font-lz);
  }
  
  .year p {
    font-size: var(--font-mlz);
  }
  
  .calendar .monthWrap {
    height: calc(100% - 90px - 40px);
    padding: 25px;
    border-radius: 25px;
  }
  
  table th {
    font-size: var(--font-lz);
  }
  
  table td span {
    font-size: var(--font-mz);
  }
  
  table td ul {
    top: 22px;
    height: calc(100% - 22px);
  }
  
  table td ul li {
    font-size: var(--font-smz);
  }
  
  .scheduleBg {
    padding: 25px;
  }
  
  .scheduleWrap {
    width: calc(100% - 80px);
    border-radius: 25px;
    padding: 25px;
  }
  
  .scheduleList {
    padding: 25px;
    gap: 25px;
  }
  
  .title h3, .title button i {
    font-size: var(--font-lz);
  }
  
  .scheduleList ul {
    height: 260px;
  }
  
  .scheduleList ul li h4 {
    font-size: var(--font-smz);
  }
  
  .scheduleList ul li button i {
    font-size: var(--font-smz);
  }
  
  form :where(input, i) {
    font-size: var(--font-mz);
  }
}










/* 태블릿 가로 / 14, 16, 18, 20 */
@media screen and (min-width: 992px) {
  main > .wrap {
    padding: 60px;
  }
  
  .calendar > div ~ div {
    margin-top: 60px;
  }
  
  .yearWrap {
    height: 100px;
    border-radius: 30px;
  }
  
  .yearWrap button {
    width: 100px;
  }
  
  .yearWrap button i {
    font-size: var(--font-lz);
  }
  
  .yearWrap .prevMonth {
    border-radius: 30px 0 0 30px;
  }
  
  .yearWrap .nextMonth {
    border-radius: 0 30px 30px 0;
  }
  
  .year h2 {
    font-size: var(--font-xlz);
  }
  
  .year p {
    font-size: var(--font-lz);
  }
  
  .calendar .monthWrap {
    height: calc(100% - 100px - 60px);
    padding: 30px;
    border-radius: 30px;
  }

  table th {
    font-size: var(--font-xlz);
  }
  
  table td span {
    font-size: var(--font-mlz);
  }
  
  table td ul {
    top: 24px;
    height: calc(100% - 24px);
  }
  
  table td ul li {
    font-size: var(--font-mz);
  }
  
  .scheduleWrap {
    width: calc(100% - 120px);
    border-radius: 30px;
    padding: 30px;
  }
  
  .scheduleList {
    padding: 30px;
    gap: 30px;
  }
  
  .title h3, .title button i {
    font-size: var(--font-xlz);
  }
  
  .scheduleList ul {
    height: 280px;
  }
  
  .scheduleList ul li h4 {
    font-size: var(--font-mz);
  }
  
  .scheduleList ul li button i {
    font-size: var(--font-mz);
  }
  
  form :where(input, i) {
    flex-grow: 1;
    border: none;
    font-size: var(--font-mlz);
  }
}