#calender {
  width: 100%;
  position: relative;
  border: 1px solid #f1f1f1;
  border-radius: 5px;
  background: #fff;
  font-size: 0.8em;
  padding: 15px;
}

.calender-body {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  width: 100%;
}

#cal {
  flex: 0 0 484px;
  max-width: 484px;
  width: 100%;
}

#calender .calTable {
  width: 100%;
  height: 300px;
  border-top: none !important;
  table-layout: fixed;
}

#calender .calTable .week {
  background: #f1f1f1;
  height: 25px;
}

#calender .calTable .week th {
  border: 0;
  padding: 7px !important;
  font-size: 0.95em !important;
}

#calender .calTable .tmonth th {
  width: 33.333% !important;
  border: 0;
  padding: 6px 0 12px !important;
  font-size: 0.95em !important;
}

#calender .calTable tr td {
  width: 14.285%;
  height: 50px;
  border: 0;
  padding: 5px !important;
  text-align: center;
  cursor: pointer;
  font-size: 0.8em !important;
  font-weight: bold;
}

#calender .calTable td span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  position: relative;
  font-weight: bold;
}

#calender .calTable span.on,
#calender .calTable span.ndate {
  color: #fff;
  position: relative;
  z-index: 0;
}

#calender .calTable span.on::before,
#calender .calTable span.ndate::before {
  content: "";
  width: 100%;
  height: 100%;
  border-radius: 50%;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: -1;
}

#calender .calTable span.on::before {
  background: #feca9a;
  border: 1px solid #f9ab53;
}

#calender .calTable span.selected::before,
#calender .calTable .cicle.selected.on {
  background: #e11d48;
}

#calender .thisday {
  font-weight: bold;
  font-size: 1.25em !important;
}

#calender .change_cal {
  cursor: pointer;
  border: 1px solid #ddd;
  padding: 5px 10px;
  border-radius: 3px;
}

#calender .calTable .change {
  background: #606060;
  color: #fff;
  padding: 1px 2px;
  cursor: pointer;
}

#calender .calTable .close {
  text-align: right;
}

#calender .calTable .close span {
  background: #606060;
  color: #fff;
  padding: 2px 4px;
}

.calTable .holiday {
  color: red !important;
}

/* Time Line */
.timeline {
  flex: 1;
  min-height: 300px;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  background: #fafafa;
  padding: 18px;
}

.timeline h4,
.timeline h5 {
  font-size: 1.1rem;
  font-weight: 700;
  margin: 0 0 15px;
  color: #111827;
  text-align: center;
  padding-bottom: 10px;
  border-bottom: 1px solid #e5e7eb;
}

.timeline li {
  list-style: none;
}

.time-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.time-list li {
  margin: 0;
  padding: 0;
}

/* 모바일 */
@media (max-width: 980px) {
  .calender-body {
    display: block;
  }

  #cal {
    flex: none;
    max-width: 100%;
    width: 100%;
  }

  .timeline {
    width: 100%;
    min-height: auto;
    margin-top: 20px;
  }
}

@media (max-width: 640px) {
  #calender {
    padding: 10px;
    overflow: hidden;
  }

  #cal {
    padding: 0;
  }

  #calender .calTable {
    height: auto;
  }

  #calender .calTable .week th {
    padding: 5px 2px !important;
    font-size: 11px !important;
  }

  #calender .calTable .tmonth th {
    padding: 4px 0 10px !important;
    font-size: 13px !important;
  }

  #calender .calTable tr td {
    height: 42px;
    padding: 2px !important;
    font-size: 12px !important;
  }

  #calender .calTable td span {
    width: 28px;
    height: 28px;
    font-size: 12px;
  }

  #calender .change_cal {
    padding: 4px 7px;
    font-size: 12px;
  }

  .timeline {
    padding: 14px;
    border-radius: 8px;
  }

  .time-list {
    gap: 8px;
  }
}