/* =============================================
   B01 日历看板样式
   ============================================= */

/* ---- 日历内容区域：flex 行布局，自然滚动 ---- */
.cal-content-area {
  display: flex;
  gap: 24px;
  align-items: flex-start;
}

/* ---- 左侧：独立日历卡片 ---- */
.cal-card {
  width: 280px;
  min-width: 280px;
  background: #fff;
  border-radius: 16px;
  padding: 16px 14px 20px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
  flex-shrink: 0;
}

/* ---- 右侧：独立订单卡片区域（无外层容器背景）---- */
.cal-orders-area {
  flex: 1;
  min-width: 0;
}

/* 订单卡片之间的间距 */
.cal-orders-area > .order-card {
  margin-bottom: 16px;
}

/* ---- 日历导航栏 ---- */
.cal-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 12px;
}

.cal-nav-title {
  font-size: 15px;
  font-weight: 600;
  color: #1a1a1a;
  min-width: 100px;
  text-align: center;
}

.cal-nav-btn {
  width: 28px;
  height: 28px;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  background: #fff;
  color: #666;
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
}

.cal-nav-btn:hover {
  background: #f4f4f2;
}

/* ---- 星期标题 ---- */
.cal-week-header {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  margin-bottom: 6px;
}

.cal-week-header span {
  text-align: center;
  font-size: 12px;
  color: #999;
  padding: 4px 0;
  font-weight: 500;
}

/* ---- 日期网格 ---- */
.cal-grid-body {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
  min-height: 180px;
}

/* ---- 日期单元格 ---- */
.cal-day {
  aspect-ratio: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  cursor: pointer;
  position: relative;
  transition: background 0.12s;
}

.cal-day[data-has-orders="1"] {
  background: #edf2ec;
}

.cal-day:hover {
  background: #e8e8ea;
}

/* 选中 */
.cal-day--selected {
  background: #355944 !important;
}
.cal-day--selected .cal-day-num {
  color: #fff;
}

/* 今天（非选中时） */
.cal-day--today:not(.cal-day--selected) {
  background: #edf2ec;
}

/* 跨月日期 */
.cal-day--other-month .cal-day-num {
  color: #c0c0c0;
}

/* 日期数字 */
.cal-day-num {
  font-size: 13px;
  font-weight: 500;
  color: #333;
  line-height: 1;
}

/* 订单小圆点 */
.cal-day-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #355944;
  margin-top: 3px;
  flex-shrink: 0;
}

.cal-day--selected .cal-day-dot {
  background: #fff;
}

/* ---- 日期选择后订单列表的标题 ---- */
.cal-order-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.cal-order-header-date {
  font-size: 15px;
  font-weight: 600;
  color: #1a1a1a;
}

.cal-order-header-count {
  font-size: 13px;
  color: #888;
}

/* ---- 空状态 ---- */
.cal-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 16px;
}

.cal-empty p {
  color: #aaa;
  font-size: 14px;
  margin: 0;
}
