/**
 * 日期汇总页样式
 */

/* 头部变体 */
.header.daily {
  background: linear-gradient(135deg, var(--red-600) 0%, var(--orange-500) 50%, var(--yellow-400) 100%);
  padding: 20px;
}

.header.daily::before {
  top: -40%;
  right: -15%;
  width: 180px;
  height: 180px;
}

.header-top {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.header.daily .logo {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  padding: 6px;
}

.header-info {
  flex: 1;
}

.header-tag {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  opacity: 0.8;
  margin-bottom: 2px;
}

.header.daily .header-title {
  font-size: 20px;
  margin-bottom: 0;
}

.header.daily .header-desc {
  line-height: 1.4;
}

/* 日期卡片 */
.day-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.day-card {
  background: white;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0,0,0,0.06);
  border: 1px solid var(--gray-100);
}

.day-card-top {
  height: 3px;
  background: linear-gradient(90deg, var(--red-500), var(--orange-400), var(--yellow-400));
}

.day-card-content {
  padding: 16px;
}

.day-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.day-left {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.day-date {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  color: var(--orange-600);
  background: var(--orange-50);
  padding: 8px 12px;
  border-radius: 10px;
  border: 1px solid var(--orange-200);
}

.day-date svg {
  width: 16px;
  height: 16px;
}

.day-count {
  font-size: 12px;
  color: var(--gray-600);
  background: var(--gray-100);
  padding: 6px 10px;
  border-radius: 8px;
  border: 1px solid var(--gray-200);
}

.day-total {
  text-align: right;
  flex-shrink: 0;
}

.day-total-label {
  font-size: 11px;
  color: var(--gray-500);
  margin-bottom: 2px;
}

.day-total-value {
  font-size: 22px;
  font-weight: 800;
  color: var(--red-600);
}

/* 日期统计网格 */
.day-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.day-stat {
  padding: 12px 10px;
  border-radius: 12px;
  text-align: center;
}

.day-stat.red {
  background: var(--red-50);
  border: 1px solid var(--red-200);
}

.day-stat.orange {
  background: var(--orange-50);
  border: 1px solid var(--orange-200);
}

.day-stat.amber {
  background: var(--amber-50);
  border: 1px solid var(--amber-200);
}

.day-stat-label {
  font-size: 11px;
  margin-bottom: 4px;
}

.day-stat.red .day-stat-label { color: var(--red-600); }
.day-stat.orange .day-stat-label { color: var(--orange-600); }
.day-stat.amber .day-stat-label { color: var(--amber-600); }

.day-stat-value {
  font-size: 16px;
  font-weight: 800;
}

.day-stat.red .day-stat-value { color: var(--red-700); }
.day-stat.orange .day-stat-value { color: var(--orange-700); }
.day-stat.amber .day-stat-value { color: var(--amber-700); }

/* Tab 切换样式 */
.tab-container {
  display: flex;
  gap: 10px;
  padding: 0 16px;
  margin-bottom: 16px;
}

.tab-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 16px;
  border: 2px solid var(--gray-200);
  border-radius: 12px;
  background: white;
  font-size: 14px;
  font-weight: 600;
  color: var(--gray-500);
  cursor: pointer;
  transition: all 0.2s ease;
}

.tab-btn svg {
  width: 18px;
  height: 18px;
}

.tab-btn:hover {
  border-color: var(--orange-300);
  color: var(--orange-600);
}

.tab-btn.active {
  border-color: var(--orange-500);
  background: var(--orange-50);
  color: var(--orange-600);
}

.tab-btn.purple:hover {
  border-color: #c4b5fd;
  color: #8b5cf6;
}

.tab-btn.purple.active {
  border-color: #8b5cf6;
  background: #f5f3ff;
  color: #7c3aed;
}

/* 紫色头部变体 */
.header.daily.purple {
  background: linear-gradient(135deg, #7c3aed 0%, #8b5cf6 50%, #a78bfa 100%);
}

/* 紫色统计卡片 */
.stat-card.purple {
  background: #f5f3ff;
  border: 2px solid #ddd6fe;
}

.stat-card.purple-light {
  background: linear-gradient(135deg, #f5f3ff 0%, #ede9fe 100%);
  border: 2px solid #ddd6fe;
}

.stat-card.purple-lighter {
  background: linear-gradient(135deg, #faf5ff 0%, #f5f3ff 100%);
  border: 2px solid #ddd6fe;
}

.stat-value.purple {
  color: #7c3aed;
}

/* 紫色标题 */
.section-title.purple {
  color: #6d28d9;
}

.section-title.purple::before {
  background: linear-gradient(180deg, #8b5cf6, #a78bfa);
}

.section-title.purple svg {
  color: #8b5cf6;
}

/* 紫色日期卡片 */
.day-card-top.purple {
  background: linear-gradient(90deg, #8b5cf6, #a78bfa, #c4b5fd);
}

.day-date.purple {
  color: #8b5cf6;
  background: #f5f3ff;
  border-color: #ddd6fe;
}

.day-total-value.purple {
  color: #7c3aed;
}

/* 紫色日期统计 */
.day-stat.purple {
  background: #f5f3ff;
  border: 1px solid #ddd6fe;
}

.day-stat.purple-light {
  background: linear-gradient(135deg, #f5f3ff 0%, #ede9fe 100%);
  border: 1px solid #ddd6fe;
}

.day-stat.purple-lighter {
  background: linear-gradient(135deg, #faf5ff 0%, #f5f3ff 100%);
  border: 1px solid #ddd6fe;
}

.day-stat.purple .day-stat-label,
.day-stat.purple-light .day-stat-label,
.day-stat.purple-lighter .day-stat-label {
  color: #8b5cf6;
}

.day-stat.purple .day-stat-value,
.day-stat.purple-light .day-stat-value,
.day-stat.purple-lighter .day-stat-value {
  color: #7c3aed;
}

/* 两列统计布局 */
.day-stats.two-col {
  grid-template-columns: repeat(2, 1fr);
}

/* 物资明细 */
.day-items {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px dashed #ddd6fe;
}

.day-items-label {
  font-size: 12px;
  color: #8b5cf6;
  margin-bottom: 6px;
  font-weight: 600;
}

.day-items-list {
  font-size: 13px;
  color: #6d28d9;
  line-height: 1.6;
  word-break: break-all;
}
