/* ================================================================
   ERA-VIS AI v2.0 — fbe.css
   Style halaman FBE (Festival Belanja Erafone) + template report JPG.
   ================================================================ */

/* ── HALAMAN FBE: expand row + tabel detail materi ─────────────── */
.fbe-expand-row td { background: var(--page); padding: 10px 14px; }
.fbe-material-detail { width: 100%; border-collapse: collapse; font-size: 12px; }
.fbe-material-detail th {
  text-align: left; padding: 6px 10px; color: var(--muted);
  font-weight: 600; border-bottom: 1px solid var(--border);
}
.fbe-material-detail td { padding: 6px 10px; border-bottom: 1px solid var(--border); }

/* ── COMPILE REPORT JPG (target render off-screen) ───────────────
   Ukuran KANVAS FIXED 1920x1080 (bukan auto-height) supaya output JPG
   selalu presisi 1920x1080 apa pun jumlah materi toko-nya — lihat
   downloadFbeReport() di js/fbeReportExport.js (html2canvas scale:1,
   1:1 dengan ukuran CSS di sini). Background pakai file asli tim
   marketing (assets/fbe-report-bg.jpg) — badge "FESTIVAL BELANJA
   erafone" sudah jadi bagian file itu, TIDAK dibuat ulang di CSS. */
.fbe-report-page {
  width: 1920px; height: 1080px;
  background-image: url('../assets/fbe-report-bg.jpg');
  background-size: cover; background-position: center;
  position: relative;
  font-family: 'Inter', system-ui, sans-serif;
  box-sizing: border-box;
}
.fbe-report-header {
  position: absolute; top: 64px; left: 64px; right: 420px;
  background: #F8FAFC; border-radius: 20px; padding: 26px 40px;
  display: flex; align-items: center; gap: 20px;
  box-shadow: 0 6px 20px rgba(0,0,0,.18);
}
.fbe-report-title {
  margin: 0; font-size: 34px; font-weight: 800; color: #0F172A;
  text-decoration: underline; text-decoration-thickness: 2px;
  text-underline-offset: 6px; letter-spacing: -0.01em;
}
/* Tag campaign — bedakan report dari campaign "FBE" (ungu) vs
   "Scoring Visibility FBE" (oranye), lihat buildFbeReportHtml(). */
.fbe-report-tag {
  flex-shrink: 0; font-size: 15px; font-weight: 800; letter-spacing: .02em;
  padding: 8px 20px; border-radius: 999px; color: #fff; white-space: nowrap;
}
.fbe-report-tag.tag-fbe { background: #7C3AED; }
.fbe-report-tag.tag-scoring { background: #D97706; }

.fbe-report-grid {
  position: absolute; top: 176px; left: 64px; right: 64px; bottom: 64px;
  background: #F8FAFC; border-radius: 20px; padding: 36px 40px;
  box-shadow: 0 6px 20px rgba(0,0,0,.18);
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
}
.fbe-report-section { display: flex; flex-direction: column; min-height: 0; }
.fbe-report-section-title {
  font-size: 18px; font-weight: 700; color: #0F172A; text-decoration: underline;
  text-underline-offset: 4px; margin-bottom: 10px; text-align: center; flex-shrink: 0;
}
.fbe-report-photo-wrap {
  flex: 1; min-height: 0; border-radius: 12px; overflow: hidden;
  background: #E2E8F0; display: flex; align-items: center; justify-content: center;
}
.fbe-report-photo-wrap img { width: 100%; height: 100%; object-fit: cover; display: block; }
.fbe-report-missing {
  color: #DC2626; font-weight: 700; font-size: 14px;
  border: 2px dashed #DC2626; border-radius: 10px;
  width: 100%; height: 100%; display: flex; align-items: center; justify-content: center;
}
