/* ============================================================================
   Halaman Produk — tata letak dua panel mengikuti acuan konsol mitra.
   Semua nilai ditulis dengan !important + selector ber-id ganda karena berkas
   lama (portal-reseller-dark.css, -arah-baru.css) menimpa dengan !important
   pada spesifisitas lebih rendah.
   ========================================================================== */

html body.rs-portal-page.rs-portal-page #view-products .tvp-page {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* ── Kepala halaman ─────────────────────────────────────────────────────── */
html body.rs-portal-page.rs-portal-page #view-products .tvp-head {
    display: flex !important;
    align-items: flex-start !important;
    justify-content: space-between !important;
    gap: 16px !important;
    flex-wrap: wrap !important;
}

html body.rs-portal-page.rs-portal-page #view-products .tvp-title {
    margin: 0 !important;
    color: #0F172A !important;
    font-size: 30px !important;
    font-weight: 800 !important;
    letter-spacing: -.5px !important;
    line-height: 1.15 !important;
}

html body.rs-portal-page.rs-portal-page #view-products .tvp-subtitle {
    margin: 6px 0 0 !important;
    color: #5A6478 !important;
    font-size: 14px !important;
    line-height: 1.5 !important;
}

html body.rs-portal-page.rs-portal-page #view-products .tvp-head-actions {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    flex-wrap: wrap !important;
}

html body.rs-portal-page.rs-portal-page #view-products .tvp-btn-ghost {
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    height: 40px !important;
    padding: 0 14px !important;
    border: 1px solid #DCE1EA !important;
    border-radius: 10px !important;
    background: #FFFFFF !important;
    color: #0F172A !important;
    font-size: 13.5px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
}

html body.rs-portal-page.rs-portal-page #view-products .tvp-btn-ghost svg {
    width: 17px !important;
    height: 17px !important;
    stroke: #475569 !important;
    fill: none !important;
}

html body.rs-portal-page.rs-portal-page #view-products .tvp-btn-ghost:hover {
    border-color: #0E6A9B !important;
    color: #0E6A9B !important;
}

html body.rs-portal-page.rs-portal-page #view-products .tvp-btn-sm {
    height: 34px !important;
    font-size: 13px !important;
}

/* ── Pencarian produk ───────────────────────────────────────────────────── */
html body.rs-portal-page.rs-portal-page #view-products .tvp-search {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    height: 44px !important;
    padding: 0 14px !important;
    background: #FFFFFF !important;
    border: 1px solid #DCE1EA !important;
    border-radius: 10px !important;
}

html body.rs-portal-page.rs-portal-page #view-products .tvp-search svg {
    width: 18px !important;
    height: 18px !important;
    stroke: #5A6478 !important;
    flex: 0 0 auto !important;
}

html body.rs-portal-page.rs-portal-page #view-products .tvp-search input {
    flex: 1 1 auto !important;
    min-width: 0 !important;
    border: 0 !important;
    outline: 0 !important;
    background: transparent !important;
    font-size: 14px !important;
    color: #0F172A !important;
}

html body.rs-portal-page.rs-portal-page #view-products .tvp-search input::placeholder {
    color: #5A6478 !important;
    opacity: 1 !important;
}

/* ── Kategori ───────────────────────────────────────────────────────────── */
html body.rs-portal-page.rs-portal-page #view-products .tvp-categories {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 8px !important;
}

html body.rs-portal-page.rs-portal-page #view-products .tvp-categories .tv-cat-tab-btn {
    height: 36px !important;
    padding: 0 15px !important;
    border: 1px solid #DCE1EA !important;
    border-radius: 999px !important;
    background: #FFFFFF !important;
    color: #334155 !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
}

html body.rs-portal-page.rs-portal-page #view-products .tvp-categories .tv-cat-tab-btn.active {
    background: #0F172A !important;
    border-color: #0F172A !important;
    color: #FFFFFF !important;
}

/* ── Dua panel ──────────────────────────────────────────────────────────── */
html body.rs-portal-page.rs-portal-page #view-products .tvp-split {
    display: grid !important;
    grid-template-columns: 288px minmax(0, 1fr) !important;
    gap: 16px !important;
    align-items: start !important;
}

html body.rs-portal-page.rs-portal-page #view-products .tvp-list,
html body.rs-portal-page.rs-portal-page #view-products .tvp-detail {
    background: #FFFFFF !important;
    border: 1px solid #E4E8F0 !important;
    border-radius: 12px !important;
    box-shadow: 0 1px 2px rgba(15, 23, 42, .04) !important;
}

html body.rs-portal-page.rs-portal-page #view-products .tvp-list {
    display: flex !important;
    flex-direction: column !important;
    padding: 12px !important;
    gap: 10px !important;
    /* Halaman ini menggulir sebagai satu halaman: panel kiri tidak punya
       area gulir sendiri supaya daftar game tidak "tertahan" saat digulir. */
    max-height: none !important;
}

html body.rs-portal-page.rs-portal-page #view-products .tvp-list-search {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    height: 38px !important;
    padding: 0 12px !important;
    background: #F1F3F7 !important;
    border-radius: 9px !important;
}

html body.rs-portal-page.rs-portal-page #view-products .tvp-list-search svg {
    width: 16px !important;
    height: 16px !important;
    stroke: #5A6478 !important;
    flex: 0 0 auto !important;
}

html body.rs-portal-page.rs-portal-page #view-products .tvp-list-search input {
    flex: 1 1 auto !important;
    min-width: 0 !important;
    border: 0 !important;
    background: transparent !important;
    font-size: 13.5px !important;
    color: #0F172A !important;
}

html body.rs-portal-page.rs-portal-page #view-products .tvp-list-search input::placeholder {
    color: #5A6478 !important;
    opacity: 1 !important;
}

html body.rs-portal-page.rs-portal-page #view-products .tvp-list-scroll {
    display: flex !important;
    flex-direction: column !important;
    gap: 2px !important;
    overflow: visible !important;
    max-height: none !important;
    padding-right: 0 !important;
}

/* Baris daftar game: ikon + nama + jumlah */
html body.rs-portal-page.rs-portal-page #view-products .tvp-list-scroll .tv-operator-pill {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    width: 100% !important;
    height: auto !important;
    min-height: 46px !important;
    padding: 7px 10px !important;
    border: 0 !important;
    border-radius: 10px !important;
    background: transparent !important;
    color: #0F172A !important;
    text-align: left !important;
    cursor: pointer !important;
}

html body.rs-portal-page.rs-portal-page #view-products .tvp-list-scroll .tv-operator-thumb {
    width: 32px !important;
    height: 32px !important;
    border-radius: 8px !important;
    object-fit: cover !important;
    background: #F1F3F7 !important;
    flex: 0 0 auto !important;
}

html body.rs-portal-page.rs-portal-page #view-products .tvp-list-scroll .pr-potong-teks,
html body.rs-portal-page.rs-portal-page #view-products .tvp-list-scroll .pr-lentur {
    flex: 1 1 auto !important;
    min-width: 0 !important;
    font-size: 13.5px !important;
    font-weight: 600 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}

html body.rs-portal-page.rs-portal-page #view-products .tvp-list-scroll .pr-teks-kecil {
    flex: 0 0 auto !important;
    margin-left: auto !important;
    color: #64748B !important;
    font-size: 12.5px !important;
    font-weight: 600 !important;
}

html body.rs-portal-page.rs-portal-page #view-products .tvp-list-scroll .tv-operator-pill:hover {
    background: #F4F6FA !important;
}

html body.rs-portal-page.rs-portal-page #view-products .tvp-list-scroll .tv-operator-pill.active {
    background: #EEF2F8 !important;
}

html body.rs-portal-page.rs-portal-page #view-products .tvp-list-scroll .tv-operator-pill.active .pr-potong-teks,
html body.rs-portal-page.rs-portal-page #view-products .tvp-list-scroll .tv-operator-pill.active .pr-lentur {
    color: #0E6A9B !important;
}

/* ── Panel detail ───────────────────────────────────────────────────────── */
html body.rs-portal-page.rs-portal-page #view-products .tvp-detail {
    padding: 16px !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 14px !important;
    min-width: 0 !important;
}

html body.rs-portal-page.rs-portal-page #view-products .tvp-detail-head {
    display: flex !important;
    align-items: center !important;
    gap: 14px !important;
}

html body.rs-portal-page.rs-portal-page #view-products .tvp-detail-thumb {
    width: 48px !important;
    height: 48px !important;
    border-radius: 10px !important;
    object-fit: cover !important;
    background: #F1F3F7 !important;
    flex: 0 0 auto !important;
}

html body.rs-portal-page.rs-portal-page #view-products .tvp-detail-text {
    min-width: 0 !important;
}

html body.rs-portal-page.rs-portal-page #view-products .tvp-detail-title {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    flex-wrap: wrap !important;
}

html body.rs-portal-page.rs-portal-page #view-products .tvp-detail-title h2 {
    margin: 0 !important;
    color: #0F172A !important;
    font-size: 20px !important;
    font-weight: 800 !important;
    line-height: 1.25 !important;
}

html body.rs-portal-page.rs-portal-page #view-products .tvp-chip {
    display: inline-flex !important;
    align-items: center !important;
    height: 24px !important;
    padding: 0 10px !important;
    border-radius: 999px !important;
    background: #DCFCE7 !important;
    color: #15803D !important;
    font-size: 11.5px !important;
    font-weight: 700 !important;
}

html body.rs-portal-page.rs-portal-page #view-products .tvp-detail-meta {
    margin: 4px 0 0 !important;
    color: #5A6478 !important;
    font-size: 13px !important;
}

/* Kotak informasi */
html body.rs-portal-page.rs-portal-page #view-products .tvp-info {
    background: #EEF3FB !important;
    border: 1px solid #D8E5F7 !important;
    border-radius: 10px !important;
    padding: 12px 14px !important;
}

html body.rs-portal-page.rs-portal-page #view-products .tvp-info-head {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    color: #1D4ED8 !important;
    font-size: 13.5px !important;
    font-weight: 700 !important;
}

html body.rs-portal-page.rs-portal-page #view-products .tvp-info-head svg {
    width: 16px !important;
    height: 16px !important;
    stroke: #1D4ED8 !important;
}

html body.rs-portal-page.rs-portal-page #view-products .tvp-info-list {
    list-style: none !important;
    margin: 8px 0 0 !important;
    padding: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 4px !important;
}

html body.rs-portal-page.rs-portal-page #view-products .tvp-info-list li {
    position: relative !important;
    padding-left: 20px !important;
    color: #334155 !important;
    font-size: 13px !important;
    line-height: 1.5 !important;
}

html body.rs-portal-page.rs-portal-page #view-products .tvp-info-list li::before {
    content: "" !important;
    position: absolute !important;
    left: 4px !important;
    top: 7px !important;
    width: 6px !important;
    height: 6px !important;
    border-radius: 50% !important;
    background: #16A34A !important;
}

html body.rs-portal-page.rs-portal-page #view-products .tvp-info-note {
    margin: 8px 0 0 !important;
    color: #475569 !important;
    font-size: 12.5px !important;
    line-height: 1.5 !important;
}

/* Varian produk */
html body.rs-portal-page.rs-portal-page #view-products .tvp-variants {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 8px !important;
    padding: 6px !important;
    background: #F4F6FA !important;
    border-radius: 10px !important;
}

html body.rs-portal-page.rs-portal-page #view-products .tvp-variants .tv-subvariant-btn {
    height: 32px !important;
    padding: 0 13px !important;
    border: 1px solid transparent !important;
    border-radius: 8px !important;
    background: transparent !important;
    color: #475569 !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
}

html body.rs-portal-page.rs-portal-page #view-products .tvp-variants .tv-subvariant-btn.active {
    background: #FFFFFF !important;
    border-color: #DCE1EA !important;
    color: #0F172A !important;
}

/* Bilah alat */
html body.rs-portal-page.rs-portal-page #view-products .tvp-toolbar {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    flex-wrap: wrap !important;
}

html body.rs-portal-page.rs-portal-page #view-products .tvp-toolbar-label {
    color: #5A6478 !important;
    font-size: 13px !important;
}

html body.rs-portal-page.rs-portal-page #view-products .tvp-count {
    margin-left: auto !important;
    color: #0F172A !important;
    font-size: 13px !important;
    font-weight: 700 !important;
}

/* ── Tabel produk ───────────────────────────────────────────────────────── */
html body.rs-portal-page.rs-portal-page #view-products .tvp-table-wrap {
    border: 1px solid #E4E8F0 !important;
    border-radius: 10px !important;
    overflow: hidden !important;
}

html body.rs-portal-page.rs-portal-page #view-products table.tvp-table {
    width: 100% !important;
    border-collapse: collapse !important;
}

html body.rs-portal-page.rs-portal-page #view-products table.tvp-table thead th {
    background: #F7F8FB !important;
    color: #5A6478 !important;
    font-size: 11.5px !important;
    font-weight: 700 !important;
    letter-spacing: .4px !important;
    text-transform: uppercase !important;
    text-align: left !important;
    padding: 10px 14px !important;
    border-bottom: 1px solid #E4E8F0 !important;
    white-space: nowrap !important;
}

html body.rs-portal-page.rs-portal-page #view-products table.tvp-table tbody td {
    padding: 12px 14px !important;
    border-bottom: 1px solid #EEF1F6 !important;
    font-size: 13.5px !important;
    color: #334155 !important;
    vertical-align: middle !important;
}

html body.rs-portal-page.rs-portal-page #view-products table.tvp-table tbody tr:last-child td {
    border-bottom: 0 !important;
}

html body.rs-portal-page.rs-portal-page #view-products .tvp-cell-produk {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
}

html body.rs-portal-page.rs-portal-page #view-products .tvp-row-thumb {
    width: 34px !important;
    height: 34px !important;
    border-radius: 8px !important;
    object-fit: cover !important;
    background: #F1F3F7 !important;
    flex: 0 0 auto !important;
}

html body.rs-portal-page.rs-portal-page #view-products .tvp-row-text {
    display: flex !important;
    flex-direction: column !important;
    gap: 2px !important;
    min-width: 0 !important;
}

html body.rs-portal-page.rs-portal-page #view-products .tvp-row-name {
    color: #0F172A !important;
    font-weight: 700 !important;
    line-height: 1.3 !important;
}

html body.rs-portal-page.rs-portal-page #view-products .tvp-row-code {
    display: inline-block !important;
    width: fit-content !important;
    padding: 1px 7px !important;
    border-radius: 999px !important;
    background: #F1F3F7 !important;
    color: #475569 !important;
    font-size: 11.5px !important;
    font-weight: 700 !important;
}

html body.rs-portal-page.rs-portal-page #view-products .tvp-harga-umum {
    color: #64748B !important;
    text-decoration: line-through !important;
}

html body.rs-portal-page.rs-portal-page #view-products .tvp-harga-kamu {
    color: #0F172A !important;
    font-weight: 800 !important;
}

html body.rs-portal-page.rs-portal-page #view-products .tvp-badge {
    display: inline-flex !important;
    align-items: center !important;
    height: 22px !important;
    padding: 0 9px !important;
    border-radius: 999px !important;
    background: #F1F3F7 !important;
    color: #475569 !important;
    font-size: 11.5px !important;
    font-weight: 700 !important;
}

html body.rs-portal-page.rs-portal-page #view-products .tvp-badge-emas {
    background: #FEF3C7 !important;
    color: #92400E !important;
}

html body.rs-portal-page.rs-portal-page #view-products .tvp-status {
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    color: #15803D !important;
    font-size: 13px !important;
    font-weight: 600 !important;
}

html body.rs-portal-page.rs-portal-page #view-products .tvp-status i {
    width: 7px !important;
    height: 7px !important;
    border-radius: 50% !important;
    background: #16A34A !important;
}

html body.rs-portal-page.rs-portal-page #view-products .tvp-btn-beli {
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    height: 32px !important;
    padding: 0 12px !important;
    border: 1px solid #DCE1EA !important;
    border-radius: 999px !important;
    background: #FFFFFF !important;
    color: #0F172A !important;
    font-size: 12.5px !important;
    font-weight: 700 !important;
    cursor: pointer !important;
}

html body.rs-portal-page.rs-portal-page #view-products .tvp-btn-beli svg {
    width: 15px !important;
    height: 15px !important;
    stroke: #0F172A !important;
}

html body.rs-portal-page.rs-portal-page #view-products .tvp-btn-beli:hover {
    background: #0E6A9B !important;
    border-color: #0E6A9B !important;
    color: #FFFFFF !important;
}

html body.rs-portal-page.rs-portal-page #view-products .tvp-btn-beli:hover svg {
    stroke: #FFFFFF !important;
}

/* ── Layar kecil: satu kolom, daftar game di atas ───────────────────────── */
@media (max-width: 1023px) {
    html body.rs-portal-page.rs-portal-page #view-products .tvp-split {
        grid-template-columns: minmax(0, 1fr) !important;
    }

    html body.rs-portal-page.rs-portal-page #view-products .tvp-list {
        max-height: none !important;
    }

    html body.rs-portal-page.rs-portal-page #view-products .tvp-title {
        font-size: 24px !important;
    }

    html body.rs-portal-page.rs-portal-page #view-products .tvp-head-actions {
        width: 100% !important;
    }

    html body.rs-portal-page.rs-portal-page #view-products table.tvp-table thead {
        display: none !important;
    }

    html body.rs-portal-page.rs-portal-page #view-products table.tvp-table tbody td {
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        gap: 12px !important;
        padding: 8px 12px !important;
    }

    html body.rs-portal-page.rs-portal-page #view-products table.tvp-table tbody td::before {
        content: attr(data-label) !important;
        color: #5A6478 !important;
        font-size: 12px !important;
        font-weight: 600 !important;
    }
}


/* Kepala halaman bersama disembunyikan saat tab Produk aktif: halaman ini
   punya kepalanya sendiri, jadi judul tidak muncul dua kali. */
html body.rs-portal-page.rs-portal-page:has(#view-products.active) .tv-portal-title-row {
    display: none !important;
}

html body.rs-portal-page.rs-portal-page:has(#view-products.active) .tv-portal-topbar {
    padding-bottom: 12px !important;
}


/* Kepala bawaan konsol (#sectionDashboard) disembunyikan saat tab Produk
   aktif — halaman Produk punya kepala sendiri, jadi judulnya tidak dobel. */
html body.rs-portal-page.rs-portal-page:has(#view-products.active) #sectionDashboard .tvd-page-head {
    display: none !important;
}

/* ── Gulir terpisah: panel kiri dan panel kanan ────────────────────────
   Dua panel duduk di dalam satu baris flex dengan tinggi tetap; daftar game
   menggulir di dalam kartunya sendiri dan panel detail punya gulir sendiri,
   jadi menggulir satu sisi tidak menggeser sisi lain. min-height: 0 wajib
   supaya anak flex boleh lebih pendek dari isinya (syarat area gulir). */
html body.rs-portal-page.rs-portal-page #view-products .tvp-split {
    display: flex !important;
    flex-direction: row !important;
    gap: 16px !important;
    align-items: stretch !important;
    height: var(--tvp-panel-h, auto) !important;
    min-height: 0 !important;
    overflow: hidden !important;
}

html body.rs-portal-page.rs-portal-page #view-products .tvp-list {
    flex: 0 0 288px !important;
    width: 288px !important;
    height: auto !important;
    max-height: none !important;
    min-height: 0 !important;
    display: flex !important;
    flex-direction: column !important;
}

html body.rs-portal-page.rs-portal-page #view-products .tvp-list-scroll {
    flex: 1 1 auto !important;
    min-height: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    flex-wrap: nowrap !important;   /* pil tidak boleh membelit jadi kolom */
    align-content: flex-start !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    overscroll-behavior: contain !important;
    scrollbar-width: thin !important;
}

html body.rs-portal-page.rs-portal-page #view-products .tvp-list-scroll .tv-operator-pill {
    flex: 0 0 auto !important;
}

html body.rs-portal-page.rs-portal-page #view-products .tvp-detail {
    flex: 1 1 auto !important;
    width: auto !important;
    min-width: 0 !important;
    min-height: 0 !important;
    height: auto !important;
    max-height: none !important;
    overflow-y: auto !important;
    overscroll-behavior: contain !important;
    scrollbar-width: thin !important;
}

/* Layar kecil: kembali ke satu kolom dengan gulir halaman biasa. */
@media (max-width: 1023px) {
    html body.rs-portal-page.rs-portal-page #view-products .tvp-split {
        display: flex !important;
        flex-direction: column !important;
        height: auto !important;
        overflow: visible !important;
    }

    html body.rs-portal-page.rs-portal-page #view-products .tvp-list {
        flex: 0 0 auto !important;
        width: 100% !important;
        height: auto !important;
    }

    html body.rs-portal-page.rs-portal-page #view-products .tvp-detail {
        height: auto !important;
        overflow: visible !important;
    }

    html body.rs-portal-page.rs-portal-page #view-products .tvp-list-scroll {
        flex: 0 0 auto !important;
        overflow: visible !important;
    }
}

/* Tombol "muat produk berikutnya" perlu tinggi yang layak disentuh. */
html body.rs-portal-page.rs-portal-page #view-products .tv-product-render-more {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    min-height: 42px !important;
    margin-top: 12px !important;
    padding: 0 16px !important;
    border: 1px solid #DCE1EA !important;
    border-radius: 10px !important;
    background: #FFFFFF !important;
    color: #0F172A !important;
    font-size: 13.5px !important;
    font-weight: 700 !important;
    cursor: pointer !important;
}

html body.rs-portal-page.rs-portal-page #view-products .tv-product-render-more:hover {
    border-color: #0E6A9B !important;
    color: #0E6A9B !important;
}


/* ── Kontras: temuan audit pada katalog besar ─────────────────────────
   Kartu produk dan tombol unduhan masih memakai gaya tema gelap lama,
   sehingga teks gelap jatuh di atas latar gelap (rasio < 3:1). Semua
   permukaan di halaman ini dibuat terang dan teksnya dinaikkan. */

/* Tombol unduhan di kepala halaman. */
html body.rs-portal-page.rs-portal-page #view-products .tv-dl-split {
    display: flex !important;
    gap: 8px !important;
}

html body.rs-portal-page.rs-portal-page #view-products .tv-dl-split .tvp-btn-ghost,
html body.rs-portal-page.rs-portal-page #view-products #btnDownloadPriceList {
    background: #FFFFFF !important;
    color: #0F172A !important;
    border: 1px solid #DCE1EA !important;
}

html body.rs-portal-page.rs-portal-page #view-products .tv-dl-split .tvp-btn-ghost svg,
html body.rs-portal-page.rs-portal-page #view-products #btnDownloadPriceList svg {
    stroke: #475569 !important;
    color: #475569 !important;
}

/* Kartu produk (mode grid). */
html body.rs-portal-page.rs-portal-page #view-products .tv-product-card-item {
    background: #FFFFFF !important;
    border: 1px solid #E4E8F0 !important;
    border-radius: 12px !important;
    box-shadow: 0 1px 2px rgba(15, 23, 42, .05) !important;
}

html body.rs-portal-page.rs-portal-page #view-products .tv-product-name,
html body.rs-portal-page.rs-portal-page #view-products .tv-product-card-item .tv-product-name {
    color: #0F172A !important;
    font-weight: 700 !important;
}

html body.rs-portal-page.rs-portal-page #view-products .tv-product-operator,
html body.rs-portal-page.rs-portal-page #view-products .tv-product-card-item .tv-product-operator {
    color: #334155 !important;
}

html body.rs-portal-page.rs-portal-page #view-products .tv-product-card-item code,
html body.rs-portal-page.rs-portal-page #view-products .tv-product-meta-row code {
    color: #334155 !important;
    background: #F1F5F9 !important;
}

html body.rs-portal-page.rs-portal-page #view-products .tv-product-price-line,
html body.rs-portal-page.rs-portal-page #view-products .tv-product-price-line span,
html body.rs-portal-page.rs-portal-page #view-products .tv-product-price-line s {
    color: #475569 !important;
}

html body.rs-portal-page.rs-portal-page #view-products .tv-product-price-line-reseller strong {
    color: #0F172A !important;
}

html body.rs-portal-page.rs-portal-page #view-products .tv-product-saving {
    color: #3F4B5B !important;
}

html body.rs-portal-page.rs-portal-page #view-products .tv-product-card-item .tv-badge-status {
    background: #F1F5F9 !important;
    color: #334155 !important;
}

html body.rs-portal-page.rs-portal-page #view-products .tv-product-card-item .tv-badge-sukses {
    background: #DCFCE7 !important;
    color: #166534 !important;
}

/* Hitungan jumlah di daftar operator kiri. */
html body.rs-portal-page.rs-portal-page #view-products .tvp-list-scroll .pr-teks-kecil {
    color: #4B5563 !important;
}


/* Tombol unduhan: aturan lama mengecat <span> di dalamnya biru. */
html body.rs-portal-page.rs-portal-page #view-products .tv-dl-split .tvp-btn-ghost,
html body.rs-portal-page.rs-portal-page #view-products .tv-dl-split .tvp-btn-ghost * {
    background: transparent !important;
    color: #0F172A !important;
}

html body.rs-portal-page.rs-portal-page #view-products .tv-dl-split .tvp-btn-ghost {
    background: #FFFFFF !important;
    border: 1px solid #DCE1EA !important;
}

/* Baris operator di kartu menumpang di atas foto dengan lapisan gelap;
   diberi alas terang supaya teksnya terbaca. */
html body.rs-portal-page.rs-portal-page #view-products .tv-product-card-item .pr-isi-lentur {
    background: rgba(255, 255, 255, .94) !important;
}

html body.rs-portal-page.rs-portal-page #view-products .tv-product-card-item .tv-product-operator {
    color: #1F2937 !important;
}

html body.rs-portal-page.rs-portal-page #view-products .tv-product-card-item .tv-product-operator * {
    color: #1F2937 !important;
}


/* Aturan lama di portal-reseller-2026.css mengecat tombol unduhan biru
   dengan teks biru gelap. Selector ini ditambah :has() agar menang. */
html body.rs-portal-page.rs-portal-page:has(#view-products) #view-products #btnDownloadPriceList,
html body.rs-portal-page.rs-portal-page:has(#view-products) #view-products #btnDownloadPriceList * {
    background: transparent !important;
    color: #0F172A !important;
}

html body.rs-portal-page.rs-portal-page:has(#view-products) #view-products #btnDownloadPriceList {
    background: #FFFFFF !important;
    border: 1px solid #DCE1EA !important;
}

html body.rs-portal-page.rs-portal-page:has(#view-products) #view-products #btnDownloadPriceList svg,
html body.rs-portal-page.rs-portal-page:has(#view-products) #view-products #btnDownloadPriceList svg * {
    stroke: #475569 !important;
    fill: none !important;
}

/* Rangka pemuatan halaman Produk (berkedip halus). */
html body.rs-portal-page.rs-portal-page #view-products .tvp-rangka {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    min-height: 46px !important;
    padding: 7px 10px !important;
}

html body.rs-portal-page.rs-portal-page #view-products .tvp-rangka-ikon {
    width: 32px !important;
    height: 32px !important;
    border-radius: 8px !important;
    background: #E9EDF3 !important;
    flex: 0 0 auto !important;
}

html body.rs-portal-page.rs-portal-page #view-products .tvp-rangka-teks {
    display: inline-block !important;
    height: 12px !important;
    border-radius: 6px !important;
    background: #E9EDF3 !important;
}

html body.rs-portal-page.rs-portal-page #view-products .tvp-rangka-baris td {
    padding: 14px !important;
}

@keyframes tvp-denyut {
    0%, 100% { opacity: 1; }
    50% { opacity: .55; }
}

html body.rs-portal-page.rs-portal-page #view-products .tvp-rangka-ikon,
html body.rs-portal-page.rs-portal-page #view-products .tvp-rangka-teks {
    animation: tvp-denyut 1.2s ease-in-out infinite !important;
}


/* Panel detail kini punya gulir sendiri (flex column), jadi anak-anaknya
   tidak boleh ikut menyusut — tanpa ini baris varian terhimpit sampai 13px
   dan pil-nya menumpuk baris "Tampilkan:". */
html body.rs-portal-page.rs-portal-page:has(#view-products) #view-products .tvp-detail > * {
    flex: 0 0 auto !important;
}

html body.rs-portal-page.rs-portal-page:has(#view-products) #view-products .tvp-variants {
    flex: 0 0 auto !important;
    min-height: 46px !important;
    align-items: center !important;
}

/* Semua pil varian tampil sama; hanya yang aktif diberi warna penuh. */
html body.rs-portal-page.rs-portal-page:has(#view-products) #view-products .tvp-variants .tv-subvariant-btn,
html body.rs-portal-page.rs-portal-page:has(#view-products) #view-products .tvp-variants .tv-subvariant-btn * {
    background: #FFFFFF !important;
    color: #334155 !important;
}

html body.rs-portal-page.rs-portal-page:has(#view-products) #view-products .tvp-variants .tv-subvariant-btn {
    display: inline-flex !important;
    align-items: center !important;
    flex: 0 0 auto !important;
    height: 34px !important;
    padding: 0 14px !important;
    border: 1px solid #DCE1EA !important;
    border-radius: 999px !important;
    background: #FFFFFF !important;
    color: #334155 !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    white-space: nowrap !important;
    cursor: pointer !important;
}

html body.rs-portal-page.rs-portal-page:has(#view-products) #view-products .tvp-variants .tv-subvariant-btn.active,
html body.rs-portal-page.rs-portal-page:has(#view-products) #view-products .tvp-variants .tv-subvariant-btn.active * {
    background: #0F172A !important;
    border-color: #0F172A !important;
    color: #FFFFFF !important;
}

html body.rs-portal-page.rs-portal-page:has(#view-products) #view-products .tvp-variants .tv-subvariant-btn:hover {
    border-color: #0E6A9B !important;
    color: #0E6A9B !important;
}

/* Bilah alat "Tampilkan:" berada di barisnya sendiri. */
html body.rs-portal-page.rs-portal-page:has(#view-products) #view-products .tvp-toolbar {
    flex: 0 0 auto !important;
    align-items: center !important;
    gap: 10px !important;
}


/* Wadah pil varian: tanpa latar sendiri supaya tidak jadi kotak dalam kotak. */
html body.rs-portal-page.rs-portal-page:has(#view-products) #view-products .tvp-variants {
    background: transparent !important;
    padding: 0 !important;
    gap: 8px !important;
    border-radius: 0 !important;
}

/* Pengalih tampilan: tombol yang sedang aktif diberi warna penuh. */
html body.rs-portal-page.rs-portal-page:has(#view-products) #view-products .tvp-btn-sm.is-aktif,
html body.rs-portal-page.rs-portal-page:has(#view-products) #view-products .tvp-btn-sm.is-aktif * {
    background: #0F172A !important;
    border-color: #0F172A !important;
    color: #FFFFFF !important;
}

html body.rs-portal-page.rs-portal-page:has(#view-products) #view-products .tvp-btn-sm.is-aktif svg,
html body.rs-portal-page.rs-portal-page:has(#view-products) #view-products .tvp-btn-sm.is-aktif svg * {
    stroke: #FFFFFF !important;
}

html body.rs-portal-page.rs-portal-page:has(#view-products) #view-products .tvp-btn-sm.is-aktif {
    border: 1px solid #0F172A !important;
}
