/*
  ═══════════════════════════════════════════════════════════════════════
  TEKS TOMBOL: TOKEN ON-ACTION UNTUK TOMBOL AKSI
  ═══════════════════════════════════════════════════════════════════════
  Nama file dan selector dipertahankan. Warna teks mengikuti --nx-on-action
  agar kontras tetap benar ketika aksi Route menggantikan palet amber lama.
  ═══════════════════════════════════════════════════════════════════════ */

/* ── Tombol berlatar aksi: teks WAJIB on-action ──
   Selector dibuat memakai :has(#id) supaya kekhususannya setara dengan
   aturan yang harus dikalahkan (pelajaran dari perbaikan kolom). */

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

/* Keadaan hover: teks tetap on-action. */
.rs-portal-page:has(#sectionAuth:not([hidden])) #sectionAuth button[type="submit"]:hover,
.rs-portal-page:has(#sectionAuth:not([hidden])) #sectionAuth button[type="submit"]:hover *,
.rs-portal-page:has(#sectionAuth:not([hidden])) #sectionAuth .tv-auth-submit:hover,
.rs-portal-page:has(#sectionAuth:not([hidden])) #sectionAuth .tv-auth-submit:hover *,
.rs-portal-page #sectionAuth button[type="submit"]:hover,
.rs-portal-page #sectionAuth button[type="submit"]:hover *,
.rs-portal-page #sectionAuth .tv-auth-submit:hover,
.rs-portal-page #sectionAuth .tv-auth-submit:hover * {
    color: var(--nx-on-action) !important;
    -webkit-text-fill-color: var(--nx-on-action) !important;
}

/* Keadaan nonaktif: tetap terbaca, tapi jelas tidak bisa ditekan */
.rs-portal-page:has(#sectionAuth:not([hidden])) #sectionAuth button[type="submit"]:disabled,
.rs-portal-page:has(#sectionAuth:not([hidden])) #sectionAuth button[type="submit"]:disabled *,
.rs-portal-page #sectionAuth button[type="submit"]:disabled,
.rs-portal-page #sectionAuth button[type="submit"]:disabled * {
    color: color-mix(in srgb, var(--nx-on-action) 65%, transparent) !important;
    -webkit-text-fill-color: color-mix(in srgb, var(--nx-on-action) 65%, transparent) !important;
    opacity: 1 !important;
}

/* ── Tombol sekunder di dalam kartu portal ──
   Tombol berlatar gelap tetap memakai teks netral terang. */

.rs-portal-page:has(#sectionAuth:not([hidden])) #sectionAuth .channel-card,
.rs-portal-page:has(#sectionAuth:not([hidden])) #sectionAuth .channel-card *,
.rs-portal-page #sectionAuth .channel-card,
.rs-portal-page #sectionAuth .channel-card * {
    -webkit-text-fill-color: var(--nx-neutral-0);
}
