/* ========== 日历课表样式 ========== */
.calendar {
  background: var(--card);
  border-radius: 10px;
  padding: 12px;
  margin-bottom: 12px;
  box-shadow: var(--shadow);
}

.cal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.cal-nav {
  width: 36px;
  height: 36px;
  border: none;
  background: #F0F2F5;
  border-radius: 50%;
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cal-nav:active { background: #E0E4E9; }

.cal-title {
  font-size: 17px;
  font-weight: 600;
}

.cal-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  text-align: center;
  font-size: 12px;
  color: var(--text-secondary);
  margin-bottom: 6px;
}

.cal-weekdays div {
  padding: 6px 0;
}

.cal-days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
}

.cal-day {
  aspect-ratio: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  border-radius: 8px;
  position: relative;
  cursor: pointer;
  user-select: none;
}

.cal-day:active { background: #F0F2F5; }

.cal-day.other-month { color: #CCC; }
.cal-day.today .day-num {
  background: var(--primary);
  color: white;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cal-day.selected {
  background: #E6F7FF;
}
.cal-day.selected .day-num { color: var(--primary); font-weight: 700; }

.day-fee {
  font-size: 9px;
  line-height: 1.1;
  color: #D46B08;
  font-weight: 600;
  margin-top: 1px;
  white-space: nowrap;
}

.day-dots {
  display: flex;
  gap: 2px;
  margin-top: 2px;
  height: 5px;
}

.day-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--primary);
}

.day-dot.group { background: #722ED1; }
.day-dot.absent { background: var(--danger); }

/* 日历事件列表 */
.cal-events {
  margin-top: 12px;
}

.cal-event {
  display: flex;
  align-items: center;
  padding: 10px 12px;
  border-left: 3px solid var(--primary);
  background: #F8FAFF;
  border-radius: 0 8px 8px 0;
  margin-bottom: 8px;
}

.cal-event.group-event { border-left-color: #722ED1; background: #FAF5FF; }
.cal-event.leave-event { border-left-color: var(--warning); background: #FFFBF0; }
/* 自己的课程（系统老师）/ 兼职教师课程 */
.cal-event.own-event { border-left-color: #18A058; background: #F6FFFA; }
.cal-event.parttime-event { border-left-color: #FA8C16; background: #FFF7E6; }

.cal-event-time {
  font-size: 12px;
  color: var(--text-secondary);
  min-width: 80px;
}

.cal-event-name {
  flex: 1;
  font-size: 14px;
  font-weight: 500;
}

.cal-event-hours {
  font-size: 13px;
  color: var(--primary);
  font-weight: 600;
}

/* 月统计条 */
.month-summary {
  display: flex;
  background: white;
  border-radius: 10px;
  padding: 14px;
  margin-bottom: 12px;
  box-shadow: var(--shadow);
}

.month-summary .item {
  flex: 1;
  text-align: center;
  border-right: 1px solid var(--border);
}
.month-summary .item:last-child { border-right: none; }

.month-summary .v {
  font-size: 18px;
  font-weight: 700;
  color: var(--primary);
}
.month-summary .l {
  font-size: 11px;
  color: var(--text-secondary);
  margin-top: 2px;
}

/* v4 计划课 */
.day-dot.plan {
  background: transparent;
  border: 1px dashed var(--primary);
  box-sizing: border-box;
}
.cal-event.plan-event {
  border-left-style: dashed;
  opacity: 0.92;
}

