/* NoteSmart V49 — fine-grained fixes:
   1. Laporan kop rapi & tanpa logo (teks tengah)
   2. Tanggal jurnal reset ke HARI INI setiap halaman dibuka
   3. Panah kiri/kanan jurnal presisi (cooldown + guard)
   4. Copy dan gunakan: teks template piket otomatis masuk ke Materi
   5. Mode otomatis: sembunyikan "Mode Guru Pengganti"
*/

/* ====== 1. LAPORAN: KOP TANPA LOGO + TEKS RAPI TENGAH ====== */
html.ns-page-laporan .ns48-report-banner,
html.ns-page-laporan [class*="grid-cols-3"],
html.ns-page-laporan [data-testid="report-header"],
html.ns-page-laporan [data-testid="laporan-header"] {
  display: block !important;
  text-align: center !important;
  padding: 14px 10px !important;
  border-bottom: 3px solid #111 !important;
}
/* Hide both logo bubbles (left + right) in the kop */
html.ns-page-laporan [data-ns49-banner-logo="1"],
html.ns-page-laporan .ns48-report-banner > :first-child:not([data-ns48-banner-title="1"]),
html.ns-page-laporan .ns48-report-banner > :last-child:not([data-ns48-banner-title="1"]) {
  display: none !important;
}
/* Title column: full width + centered */
html.ns-page-laporan [data-ns48-banner-title="1"],
html.ns-page-laporan .ns48-report-banner > *:nth-child(2),
html.ns-page-laporan .ns49-kop-text {
  display: block !important;
  max-width: 100% !important;
  width: 100% !important;
  padding: 0 6px !important;
  text-align: center !important;
  word-break: normal !important;
  overflow-wrap: break-word !important;
  hyphens: none !important;
  white-space: normal !important;
  font-size: clamp(13px, 3.4vw, 17px) !important;
  line-height: 1.28 !important;
  letter-spacing: .2px !important;
  font-weight: 700 !important;
}
html.ns-page-laporan [data-ns48-banner-title="1"] *,
html.ns-page-laporan .ns49-kop-text * {
  text-align: center !important;
  white-space: normal !important;
  word-break: normal !important;
  overflow-wrap: break-word !important;
  max-width: 100% !important;
  display: block !important;
  margin: 0 auto !important;
}
/* Sub address (Jl., Email, Telp) smaller weight */
html.ns-page-laporan [data-ns48-banner-title="1"] p,
html.ns-page-laporan .ns49-kop-text p {
  font-weight: 500 !important;
  font-size: clamp(12px, 3vw, 14.5px) !important;
}

/* ====== 2. HIDE MODE GUTU PENGGANTI DI MODE OTOMATIS ====== */
html.ns-page-jurnal body.ns49-mode-auto [data-testid^="guru-pengganti"],
html.ns-page-jurnal body.ns49-mode-auto [data-testid="guru-pengganti-toggle"],
html.ns-page-jurnal body.ns49-mode-auto [data-testid="guru-pengganti-global-toggle"],
html.ns-page-jurnal body.ns49-mode-auto [data-testid="guru-pengganti-asli"],
html.ns-page-jurnal body.ns49-mode-auto [data-testid="guru-pengganti-notes"],
body.ns49-mode-auto [data-testid^="guru-pengganti"],
body.ns49-mode-auto [data-v49-pengganti-wrap="1"] {
  display: none !important;
  visibility: hidden !important;
  height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
  pointer-events: none !important;
}

/* ====== 3. PICKET HELPER POLISH ====== */
#ns-picket-helper .ns-picket-actions { margin-top: 8px; }
#ns-picket-helper .ns-dp-btn.primary {
  letter-spacing: .2px;
}

/* ====== 4. DATE BAR RESPONSIVE FEEDBACK ====== */
html.ns-page-jurnal #ns-v38-datebar .ns-v38-date-nav:active {
  background: rgba(255,255,255,.38) !important;
}
