/*
  ═══════════════════════════════════════════════════════════════════════
  TOMBOL AKSEN: ALIAS LAMA MENGGUNAKAN TOKEN ROUTE
  ═══════════════════════════════════════════════════════════════════════
  Nama file dan nama alias amber dipertahankan untuk kompatibilitas.
  Latar tombol memakai --nx-action dan teksnya --nx-on-action.
  Tombol berlatar gelap tetap memakai teks netral terang.
  ═══════════════════════════════════════════════════════════════════════ */

/* ── Tombol aksen di seluruh portal (kartu masuk + dashboard) ── */

.rs-portal-page #btnLoginSubmit,
.rs-portal-page .tv-auth-primary,
.rs-portal-page #sectionAuth button[type="submit"]:not(.pw-lihat):not(.channel-card),
.rs-portal-page #btnLanjutStep2,
.rs-portal-page .reg-submit,
.rs-portal-page:has(#sectionAuth:not([hidden])) #btnLoginSubmit,
.rs-portal-page:has(#sectionAuth:not([hidden])) .tv-auth-primary,
.rs-portal-page:has(#sectionAuth:not([hidden])) #sectionAuth button[type="submit"]:not(.pw-lihat):not(.channel-card),
.rs-portal-page:has(#sectionAuth:not([hidden])) #btnLanjutStep2,
.rs-portal-page:has(#sectionAuth:not([hidden])) .reg-submit {
    background-color: var(--nx-accent, var(--nx-action)) !important;
    background-image: none !important;
    color: var(--nx-accent-ink, var(--nx-on-action)) !important;
    -webkit-text-fill-color: var(--nx-accent-ink, var(--nx-on-action)) !important;
    border-color: transparent !important;
}

/* Semua isi tombol (span, ikon) mengikuti teks on-action. */
.rs-portal-page #btnLoginSubmit *,
.rs-portal-page .tv-auth-primary *,
.rs-portal-page #btnLanjutStep2 *,
.rs-portal-page .reg-submit *,
.rs-portal-page:has(#sectionAuth:not([hidden])) #btnLoginSubmit *,
.rs-portal-page:has(#sectionAuth:not([hidden])) .tv-auth-primary *,
.rs-portal-page:has(#sectionAuth:not([hidden])) #btnLanjutStep2 *,
.rs-portal-page:has(#sectionAuth:not([hidden])) .reg-submit * {
    color: var(--nx-accent-ink, var(--nx-on-action)) !important;
    -webkit-text-fill-color: var(--nx-accent-ink, var(--nx-on-action)) !important;
}

/* Keadaan hover memakai action-hover; teks tetap on-action. */
.rs-portal-page #btnLoginSubmit:hover,
.rs-portal-page .tv-auth-primary:hover,
.rs-portal-page #btnLanjutStep2:hover,
.rs-portal-page:has(#sectionAuth:not([hidden])) #btnLoginSubmit:hover,
.rs-portal-page:has(#sectionAuth:not([hidden])) .tv-auth-primary:hover,
.rs-portal-page:has(#sectionAuth:not([hidden])) #btnLanjutStep2:hover {
    background-color: var(--nx-accent-hi, var(--nx-action-hover)) !important;
    color: var(--nx-accent-ink, var(--nx-on-action)) !important;
    -webkit-text-fill-color: var(--nx-accent-ink, var(--nx-on-action)) !important;
}

/* ── TOMBOL DI DASHBOARD ──
   Kelas .tv-btn-deposit-action tidak disamakan dengan tombol aksi.
   Tombol ber-ID di bawah memakai aksi Route dan teks on-action. */

.rs-portal-page #btnSubmitDeposit,
.rs-portal-page #btnSubmitDeposit *,
.rs-portal-page #btnDownloadPriceList,
.rs-portal-page #btnDownloadPriceList *,
.rs-portal-page #btnRotateApiKey,
.rs-portal-page #btnRotateApiKey *,
.rs-portal-page:has(#sectionDashboard:not([hidden])) #btnSubmitDeposit,
.rs-portal-page:has(#sectionDashboard:not([hidden])) #btnSubmitDeposit *,
.rs-portal-page:has(#sectionDashboard:not([hidden])) #btnDownloadPriceList,
.rs-portal-page:has(#sectionDashboard:not([hidden])) #btnDownloadPriceList *,
.rs-portal-page:has(#sectionDashboard:not([hidden])) #btnRotateApiKey,
.rs-portal-page:has(#sectionDashboard:not([hidden])) #btnRotateApiKey * {
    background-color: var(--nx-accent, var(--nx-action)) !important;
    background-image: none !important;
    color: var(--nx-accent-ink, var(--nx-on-action)) !important;
    -webkit-text-fill-color: var(--nx-accent-ink, var(--nx-on-action)) !important;
    border-color: transparent !important;
}

.rs-portal-page #btnSubmitDeposit:hover,
.rs-portal-page #btnDownloadPriceList:hover,
.rs-portal-page #btnRotateApiKey:hover,
.rs-portal-page:has(#sectionDashboard:not([hidden])) #btnSubmitDeposit:hover,
.rs-portal-page:has(#sectionDashboard:not([hidden])) #btnDownloadPriceList:hover,
.rs-portal-page:has(#sectionDashboard:not([hidden])) #btnRotateApiKey:hover {
    background-color: var(--nx-accent-hi, var(--nx-action-hover)) !important;
    color: var(--nx-accent-ink, var(--nx-on-action)) !important;
    -webkit-text-fill-color: var(--nx-accent-ink, var(--nx-on-action)) !important;
}

/* ── TOMBOL BERLATAR GELAP: teks harus TERANG ──
   .tv-btn-deposit-action dan sejenisnya berlatar gelap, jadi teksnya
   WAJIB terang. Ini membatalkan kesalahan perbaikan sebelumnya. */

.rs-portal-page .tv-btn-deposit-action,
.rs-portal-page .tv-btn-deposit-action *,
.rs-portal-page:has(#sectionDashboard:not([hidden])) .tv-btn-deposit-action,
.rs-portal-page:has(#sectionDashboard:not([hidden])) .tv-btn-deposit-action * {
    color: var(--nx-neutral-300) !important;
    -webkit-text-fill-color: var(--nx-neutral-300) !important;
}

.rs-portal-page .tv-btn-deposit-action:hover,
.rs-portal-page .tv-btn-deposit-action:hover *,
.rs-portal-page:has(#sectionDashboard:not([hidden])) .tv-btn-deposit-action:hover,
.rs-portal-page:has(#sectionDashboard:not([hidden])) .tv-btn-deposit-action:hover * {
    color: var(--nx-neutral-0) !important;
    -webkit-text-fill-color: var(--nx-neutral-0) !important;
}

/* ── Tombol di dashboard yang memakai kelas umum ──
   Menyasar tombol apa pun di dalam area dashboard yang latarnya aksen.
   Tombol berlatar gelap tidak terpengaruh karena pemilihnya spesifik
   ke kelas aksen. */

.rs-portal-page #sectionDashboard button[class*="primary"],
.rs-portal-page #sectionDashboard button[class*="aksi"],
.rs-portal-page #sectionDashboard button[class*="submit"],
.rs-portal-page:has(#sectionDashboard:not([hidden])) button[class*="primary"],
.rs-portal-page:has(#sectionDashboard:not([hidden])) button[class*="aksi"],
.rs-portal-page:has(#sectionDashboard:not([hidden])) button[class*="submit"] {
    color: var(--nx-accent-ink, var(--nx-on-action)) !important;
    -webkit-text-fill-color: var(--nx-accent-ink, var(--nx-on-action)) !important;
}

.rs-portal-page #sectionDashboard button[class*="primary"] *,
.rs-portal-page #sectionDashboard button[class*="aksi"] *,
.rs-portal-page #sectionDashboard button[class*="submit"] *,
.rs-portal-page:has(#sectionDashboard:not([hidden])) button[class*="primary"] *,
.rs-portal-page:has(#sectionDashboard:not([hidden])) button[class*="aksi"] *,
.rs-portal-page:has(#sectionDashboard:not([hidden])) button[class*="submit"] * {
    color: var(--nx-accent-ink, var(--nx-on-action)) !important;
    -webkit-text-fill-color: var(--nx-accent-ink, var(--nx-on-action)) !important;
}
