/* ==========================================================================
   메인화면 프로그램 일정 월간 달력 (main-mid3 .main-calendar)
   데이터: 관리자 > 기능 > 메인 달력
   ========================================================================== */

.main-calendar {
  width: 100%;
}

.main-calendar__head {
  display: flex;
  align-items: center;
  gap: 30px;
  margin-bottom: 25px;
}

.main-calendar__tit {
  font-size: 34px;
  font-weight: 800;
  color: #222;
  line-height: 1.2;
}

.main-calendar__nav {
  display: flex;
  align-items: center;
  gap: 10px;
}

.main-calendar__btn {
  width: 36px;
  height: 36px;
  border: none;
  background: none;
  cursor: pointer;
  font-size: 24px;
  font-weight: 700;
  color: #b0b6c3;
  line-height: 1;
  padding: 0;
}

.main-calendar__btn:hover {
  color: #1a73e8;
}

.main-calendar__ym {
  font-size: 28px;
  font-weight: 800;
  color: #1a73e8;
  min-width: 115px;
  text-align: center;
}

.main-calendar__panel {
  background: #fff;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(30, 50, 100, 0.06);
}

.main-calendar__table {
  width: 100%;
  table-layout: fixed;
  border-collapse: collapse;
}

.main-calendar__table thead th {
  background: #eef2fb;
  padding: 14px 0;
  font-size: 16px;
  font-weight: 700;
  color: #333;
  text-align: center;
}

.main-calendar__table thead th.sun {
  color: #e5484d;
}

.main-calendar__table thead th.sat {
  color: #1a73e8;
}

.main-calendar__table tbody td {
  border: 1px solid #edf0f5;
  height: 112px;
  vertical-align: top;
  padding: 10px 12px;
}

.main-calendar__table tbody tr td:first-child {
  border-left: none;
}

.main-calendar__table tbody tr td:last-child {
  border-right: none;
}

.main-calendar__table tbody tr:last-child td {
  border-bottom: none;
}

.mc-day-wrap {
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.mc-day {
  font-size: 15px;
  font-weight: 700;
  color: #333;
}

.mc-day.sun {
  color: #e5484d;
}

.mc-day.sat {
  color: #1a73e8;
}

.mc-holiday {
  font-size: 13px;
  font-weight: 600;
  color: #e5484d;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mc-list {
  margin-top: 6px;
}

.mc-list li {
  position: relative;
  padding-left: 10px;
  font-size: 13px;
  line-height: 1.6;
  color: #666;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mc-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #1a73e8;
}

/* 대관 일정 - 파란 글씨 */
.mc-list li.rental {
  color: #1a73e8;
}

@media screen and (max-width: 1280px) {
  .main-calendar__tit {
    font-size: 28px;
  }

  .main-calendar__ym {
    font-size: 24px;
    min-width: 100px;
  }
}

@media screen and (max-width: 768px) {
  .main-calendar__table thead th {
    padding: 10px 0;
    font-size: 13px;
  }

  .main-calendar__table tbody td {
    height: 84px;
    padding: 6px 5px;
  }

  .mc-day {
    font-size: 13px;
  }

  .mc-day-wrap {
    flex-wrap: wrap;
    gap: 3px;
  }

  .mc-holiday {
    font-size: 11px;
  }

  .mc-list {
    margin-top: 4px;
  }

  .mc-list li {
    font-size: 11px;
    line-height: 1.5;
    padding-left: 8px;
  }

  .mc-list li::before {
    top: 6px;
    width: 3px;
    height: 3px;
  }
}

@media screen and (max-width: 540px) {
  .main-calendar__head {
    gap: 15px;
    margin-bottom: 15px;
  }

  .main-calendar__tit {
    font-size: 22px;
  }

  .main-calendar__ym {
    font-size: 19px;
    min-width: 80px;
  }

  .main-calendar__btn {
    width: 30px;
    height: 30px;
    font-size: 20px;
  }

  .main-calendar__panel {
    border-radius: 12px;
  }

  .main-calendar__table thead th {
    padding: 8px 0;
    font-size: 12px;
  }

  .main-calendar__table tbody td {
    height: 72px;
    padding: 5px 3px;
  }

  .mc-day {
    font-size: 12px;
  }

  .mc-holiday {
    font-size: 10px;
  }

  .mc-list li {
    font-size: 10px;
    padding-left: 7px;
  }

  .mc-list li::before {
    top: 5px;
  }
}
