/* ===== CHUNK 6: REPORTS & ANALYTICS STYLES (Luxury Cream & Gold) ===== */

.reports-page {
  display: flex;
  flex-direction: column;
  gap: 18px;
  height: calc(100vh - 120px);
  overflow-y: auto;
  padding-right: 4px;
}

/* Date bar */
.reports-date-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 14px 20px;
  flex-wrap: wrap;
  box-shadow: var(--shadow-sm);
}

.reports-date-bar input[type="date"] {
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  padding: 8px 14px;
  border-radius: 10px;
  font-family: var(--font-main);
  font-size: 0.9rem;
  font-weight: 600;
  outline: none;
  cursor: pointer;
}
.reports-date-bar input[type="date"]:focus { border-color: var(--accent-gold); }

.report-tab-group {
  display: flex;
  gap: 6px;
  margin-left: 10px;
  flex-wrap: wrap;
}

.report-tab {
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  padding: 8px 16px;
  border-radius: 10px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
}
.report-tab:hover { border-color: var(--accent-gold); color: var(--text-main); }
.report-tab.active {
  background: var(--accent-gold);
  border-color: var(--accent-gold);
  color: #1C1917;
  font-weight: 800;
  box-shadow: var(--shadow-sm);
}

/* KPI Cards Row */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
}

@media (max-width: 1200px) { .kpi-grid { grid-template-columns: repeat(3, 1fr); } }

.kpi-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 18px 20px;
  position: relative;
  overflow: hidden;
  transition: transform 0.15s, box-shadow 0.15s;
  box-shadow: var(--shadow-sm);
}
.kpi-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }

.kpi-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: var(--kpi-accent, var(--accent-gold));
  border-radius: 16px 16px 0 0;
}

.kpi-icon { font-size: 1.6rem; margin-bottom: 6px; }
.kpi-label { font-size: 0.75rem; color: var(--text-muted); font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; }
.kpi-value {
  font-size: 1.55rem;
  font-weight: 900;
  font-family: var(--font-mono);
  color: var(--text-main);
  margin-top: 2px;
}
.kpi-sub { font-size: 0.75rem; color: var(--text-muted); margin-top: 4px; font-weight: 600; }

/* Report sections */
.report-section {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.report-section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 22px;
  border-bottom: 1px solid var(--border-color);
  background: var(--bg-sidebar);
}

.report-section-header h3 {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--text-main);
}

/* Hourly activity heatmap bar */
.hourly-heatmap {
  display: flex;
  gap: 2px;
  align-items: flex-end;
  height: 90px;
  padding: 16px 20px;
  background: var(--bg-card);
}

.heatmap-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
  justify-content: flex-end;
}

.heatmap-bar {
  width: 100%;
  border-radius: 4px 4px 0 0;
  transition: height 0.3s;
  background-color: var(--accent-gold);
}

.heatmap-label {
  font-size: 0.65rem;
  color: var(--text-muted);
  margin-top: 4px;
  font-family: var(--font-mono);
}

/* Best Sellers Grid */
.bestsellers-table {
  width: 100%;
  border-collapse: collapse;
}

.bestsellers-table th {
  text-align: left;
  padding: 12px 18px;
  background: var(--bg-sidebar);
  border-bottom: 1px solid var(--border-color);
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--text-muted);
  text-transform: uppercase;
}

.bestsellers-table td {
  padding: 14px 18px;
  border-bottom: 1px solid var(--border-color);
  font-size: 0.9rem;
}

.rank-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px; height: 26px;
  border-radius: 50%;
  font-weight: 800;
  font-size: 0.8rem;
}
.rank-badge.rank-1 { background: #FFD700; color: #1C1917; }
.rank-badge.rank-2 { background: #C0C0C0; color: #1C1917; }
.rank-badge.rank-3 { background: #CD7F32; color: #1C1917; }
.rank-badge.rank-other { background: var(--bg-input); color: var(--text-muted); }
