/* report.css — Laporan Bulanan AXIOM R1 */
#view-report .form-control { background: var(--bg-tertiary); border: 1px solid var(--border-color); color: var(--text-primary); border-radius: 8px; padding: 10px 14px; }
#view-report .btn { font-weight: 700; border-radius: 10px; padding: 12px 20px; }
#report-card * { box-sizing: border-box; }

.rp-mode-toggle {
  display: inline-flex;
  border: 1px solid var(--border-color);
  border-radius: 10px;
  overflow: hidden;
  background: var(--bg-tertiary);
}
.rp-mode-btn {
  border: none;
  background: transparent;
  color: var(--text-secondary);
  font-weight: 700;
  font-size: 13px;
  padding: 10px 16px;
  cursor: pointer;
}
.rp-mode-btn.active {
  background: rgba(0, 163, 255, 0.2);
  color: var(--accent-blue, #00A3FF);
}

.rp-card {
  background: linear-gradient(135deg, #0A0A0F 0%, #12122A 100%);
  border-radius: 20px;
  padding: 28px;
  margin-bottom: 20px;
  border: 1px solid rgba(0, 229, 160, 0.2);
  font-family: 'Plus Jakarta Sans', sans-serif;
}

.rp-sec-title {
  font-size: 12px;
  color: #9898B8;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin: 18px 0 10px;
}
.rp-subhead {
  font-size: 11px;
  color: #7A7A9A;
  font-weight: 600;
  margin: 10px 0 6px;
}
.rp-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 12px;
}
.rp-metric {
  padding: 14px;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.rp-metric-green { background: rgba(0, 229, 160, 0.08); border-color: rgba(0, 229, 160, 0.2); }
.rp-metric-red { background: rgba(255, 82, 82, 0.08); border-color: rgba(255, 82, 82, 0.2); }
.rp-metric-amber { background: rgba(255, 171, 0, 0.08); border-color: rgba(255, 171, 0, 0.2); }
.rp-metric-label {
  font-size: 11px;
  color: #9898B8;
  font-weight: 600;
  margin-bottom: 4px;
  text-transform: uppercase;
}
.rp-metric-val { font-size: 18px; font-weight: 800; color: var(--text-primary); }
.rp-mom { font-size: 11px; color: #7A7A9A; margin-top: 4px; line-height: 1.4; }
.rp-surplus {
  padding: 16px;
  border-radius: 12px;
  margin-bottom: 8px;
  text-align: center;
}
.rp-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: baseline;
  padding: 6px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 13px;
}
.rp-row-label { color: var(--text-primary); flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rp-row-val { color: #00A3FF; font-weight: 700; white-space: nowrap; }
.rp-row-val.rp-warn { color: #FF5252; }
.rp-muted { font-size: 12px; color: #4A4A6A; padding: 6px 0; }
.rp-highlight {
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 10px;
  font-size: 13px;
  color: #C8C8E0;
  line-height: 1.55;
}
.rp-warn-box { border: 1px solid rgba(255, 171, 0, 0.35); background: rgba(255, 171, 0, 0.08); }
.rp-bar-row { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.rp-bar-label {
  font-size: 12px;
  color: var(--text-primary);
  flex: 0 0 100px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.rp-bar-track {
  flex: 1;
  height: 6px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 4px;
  overflow: hidden;
}
.rp-bar-fill { height: 100%; background: #00A3FF; border-radius: 4px; }
.rp-bar-amt { font-size: 12px; color: #00A3FF; font-weight: 700; min-width: 72px; text-align: right; }
.rp-coach {
  padding: 12px;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 10px;
  font-size: 13px;
  color: #9898B8;
  line-height: 1.6;
  margin-bottom: 12px;
}
.rp-checklist { display: flex; flex-direction: column; gap: 8px; }
.rp-check-item {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 10px 12px;
  background: rgba(0, 163, 255, 0.06);
  border-radius: 10px;
  font-size: 13px;
  color: var(--text-primary);
  line-height: 1.45;
}
.rp-check-num {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(0, 163, 255, 0.25);
  color: #00A3FF;
  font-weight: 800;
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.rp-ai-box {
  margin-top: 12px;
  padding: 12px;
  border-radius: 10px;
  border: 1px solid rgba(168, 85, 247, 0.35);
  background: rgba(168, 85, 247, 0.08);
  font-size: 13px;
  color: #C8C8E0;
  line-height: 1.55;
  white-space: pre-wrap;
}
.rp-jumps {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}
.rp-jumps .btn { padding: 8px 14px; font-size: 12px; }

/* STAGE 3 — leftover inline colors from report.js (light-mode must target these classes, not [style*=]) */
.rp-val-pos { color: #00E5A0; }
.rp-val-neg { color: #FF5252; }
.rp-val-amber { color: #FFAB00; }
.rp-val-blue { color: #00A3FF; }
.rp-val-purple { color: #A855F7; }
.rp-surplus-pos { background: rgba(0, 229, 160, 0.08); border: 1px solid rgba(0, 229, 160, 0.3); }
.rp-surplus-neg { background: rgba(255, 82, 82, 0.08); border: 1px solid rgba(255, 82, 82, 0.3); }
.rp-surplus-amt { font-size: 28px; font-weight: 900; }
.rp-brand {
  font-size: 11px;
  color: #00E5A0;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 4px;
}
.rp-title { font-size: 20px; font-weight: 800; color: var(--text-primary); }
.rp-meta { font-size: 11px; color: #9898B8; margin-top: 4px; }
.rp-card-foot-text { font-size: 10px; color: #4A4A6A; }

@media (max-width: 520px) {
  .rp-grid-2 { grid-template-columns: 1fr; }
  .rp-bar-label { flex-basis: 80px; }
}

body.light-mode #report-card,
body.light-mode .rp-card {
  background: linear-gradient(135deg, #F3EFEB 0%, #FFFFFF 100%) !important;
  border-color: #E4E2E1 !important;
}
body.light-mode #report-card #rp-title,
body.light-mode #report-card .rp-meta,
body.light-mode .rp-sec-title,
body.light-mode .rp-mom,
body.light-mode .rp-coach {
  color: var(--text-secondary) !important;
}
body.light-mode #report-card .rp-val-pos,
body.light-mode #report-card .rp-brand {
  color: #047857 !important;
}
body.light-mode .rp-metric,
body.light-mode .rp-highlight,
body.light-mode .rp-check-item {
  background: rgba(15, 23, 42, 0.04);
}
