/* ===== Calendar ===== */
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 3px;
  text-align: center;
}
.cal-header {
  font-size: 10px;
  color: var(--text-tertiary);
  padding: 6px 0;
  font-weight: 600;
}
.cal-day {
  font-size: 12px;
  padding: 8px 4px;
  border-radius: 8px;
  min-height: 36px;
  cursor: default;
  position: relative;
}
.cal-day.outside { color: #D1D5DB; }
.cal-day.sunday { color: #EF4444; }
.cal-day.today { background: #3B82F6; color: #fff; font-weight: 700; }
.cal-day.normal { background: #ECFDF5; color: #059669; font-weight: 600; }
.cal-day.late { background: #FFFBEB; color: #D97706; font-weight: 600; }
.cal-day.absent { background: #FEF2F2; color: #EF4444; font-weight: 600; }
.cal-day.ot { background: #EFF6FF; color: #3B82F6; font-weight: 600; }
.cal-day.off { background: #F8FAFC; color: #64748B; font-weight: 600; }
.cal-day .cal-summary {
  font-size: 9px;
  margin-top: 2px;
  line-height: 1.2;
}

.calendar-legend {
  display: flex;
  gap: 16px;
  justify-content: center;
  padding-top: 14px;
  font-size: 11px;
  color: var(--text-tertiary);
}
.legend-item { display: flex; align-items: center; gap: 4px; }
.legend-dot {
  width: 8px; height: 8px;
  border-radius: 3px;
  display: inline-block;
}

/* Calendar legend dot colors */
.legend-dot-today { background: #3B82F6; }
.legend-dot-normal { background: #ECFDF5; border: 1px solid #D1FAE5; }
.legend-dot-late { background: #FFFBEB; border: 1px solid #FEF3C7; }
.legend-dot-absent { background: #FEF2F2; border: 1px solid #FECACA; }
.legend-dot-ot { background: #EFF6FF; border: 1px solid #BFDBFE; }
.legend-dot-off { background: #F8FAFC; border: 1px solid #E2E8F0; }
