/* IHSGDaily: komponen kutipan dan grafik. Warna bisa ditimpa tema lewat variabel. */
.ihd-grafik, .ihd-tabel, .ihd-pita, .ihd-ringkasan {
	--ihd-naik: #0a7d46;
	--ihd-turun: #c0392b;
	--ihd-garis: #e4e4e4;
	--ihd-redup: #6b6b6b;
	--ihd-tinta: #161616;
}
.naik { color: var(--ihd-naik, #0a7d46); }
.turun { color: var(--ihd-turun, #c0392b); }
.tetap { color: var(--ihd-redup, #6b6b6b); }

/* Kepala kutipan */
.ihd-nama { margin: 0; font-size: 1.5rem; line-height: 1.2; }
.ihd-nama span { display: inline-block; margin-left: .35em; font-family: inherit; font-size: .8125rem; font-weight: 400; color: var(--ihd-redup); letter-spacing: 0; }
.ihd-angka { margin: .35rem 0 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: .1rem .9rem; font-variant-numeric: tabular-nums; }
.ihd-harga { font-size: 2.75rem; line-height: 1.05; font-weight: 600; letter-spacing: -.02em; color: var(--ihd-tinta); padding: 0 .12em; margin-left: -.12em; }
.ihd-ubah { font-size: 1.1875rem; font-weight: 600; }
.ihd-ket { margin: .45rem 0 0; display: flex; flex-wrap: wrap; gap: .1rem .9rem; font-size: .8125rem; color: var(--ihd-redup); font-variant-numeric: tabular-nums; }
.ihd-status { color: var(--ihd-tinta); font-weight: 600; }
.ihd-status::before { content: ""; display: inline-block; width: 7px; height: 7px; margin-right: .4em; border-radius: 50%; background: #9a9a9a; vertical-align: .08em; }
.ihd-status.buka::before { background: var(--ihd-naik); }
.ihd-status.jeda::before, .ihd-status.pra::before { background: #c58a00; }

/* Tombol rentang dan jenis grafik */
.ihd-alat { display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem; margin-top: 1.1rem; border-bottom: 1px solid var(--ihd-garis); }
.ihd-tombol { display: flex; overflow-x: auto; scrollbar-width: none; }
.ihd-tombol::-webkit-scrollbar { display: none; }
.ihd-tombol button { flex: none; margin: 0 0 -1px; padding: .45rem .6rem; border: 0; border-bottom: 2px solid transparent; border-radius: 0; background: none; font: inherit; font-size: .8125rem; color: var(--ihd-redup); cursor: pointer; }
.ihd-tombol button:hover { color: var(--ihd-tinta); }
.ihd-tombol button[aria-pressed="true"] { color: var(--ihd-tinta); font-weight: 600; border-bottom-color: var(--ihd-tinta); }
.ihd-tombol button:focus-visible, .ihd-tabel button:focus-visible { outline: 2px solid var(--ihd-tinta); outline-offset: -2px; }

.ihd-legenda { margin: .6rem 0 0; min-height: 1.4em; font-size: .8125rem; color: var(--ihd-redup); font-variant-numeric: tabular-nums; white-space: pre-wrap; }
.ihd-kanvas { height: 400px; margin-top: .2rem; transition: opacity .15s; }
.ihd-kanvas.ihd-muat { opacity: .45; }
.ihd-kanvas noscript { display: block; padding: 3rem 0; color: var(--ihd-redup); }

/* Rincian hari ini */
.ihd-rinci { display: grid; grid-template-columns: repeat(4, 1fr); margin: .9rem 0 0; border-top: 1px solid var(--ihd-garis); font-variant-numeric: tabular-nums; }
.ihd-rinci > div { padding: .65rem 1rem .65rem 0; border-bottom: 1px solid var(--ihd-garis); }
.ihd-rinci dt { font-size: .75rem; color: var(--ihd-redup); }
.ihd-rinci dd { margin: .1rem 0 0; font-size: 1rem; font-weight: 600; color: var(--ihd-tinta); }
.ihd-rinci .ihd-jangka { grid-column: span 2; }
.ihd-jangka dd { display: flex; align-items: center; gap: .7rem; font-size: .875rem; font-weight: 400; }
.ihd-bilah { position: relative; flex: 1; height: 3px; background: #d5d5d5; }
.ihd-bilah i { position: absolute; top: -4px; width: 3px; height: 11px; margin-left: -1px; background: var(--ihd-tinta); transition: left .6s; }
.ihd-sumber { margin: .7rem 0 0; font-size: .75rem; color: var(--ihd-redup); }
.ihd-sumber a { color: inherit; }

/* Tabel kutipan */
.ihd-tabel { width: 100%; border-collapse: collapse; font-size: .875rem; font-variant-numeric: tabular-nums; }
.ihd-tabel th, .ihd-tabel td { padding: .42rem 0 .42rem .75rem; border-bottom: 1px solid var(--ihd-garis); text-align: left; vertical-align: baseline; font-weight: 400; }
.ihd-tabel th:first-child, .ihd-tabel td:first-child { padding-left: 0; }
.ihd-tabel .a { text-align: right; white-space: nowrap; }
.ihd-tabel thead th { padding-top: 0; font-size: .6875rem; letter-spacing: .06em; text-transform: uppercase; color: var(--ihd-redup); border-bottom-color: #bdbdbd; }
.ihd-tabel tbody th { color: var(--ihd-tinta); }
.ihd-tabel tbody tr:last-child th, .ihd-tabel tbody tr:last-child td { border-bottom: 0; }
.ihd-tabel td[data-f="h"] { color: var(--ihd-tinta); }
.ihd-tabel thead button { padding: 0; border: 0; background: none; font: inherit; letter-spacing: inherit; text-transform: inherit; color: inherit; cursor: pointer; }
.ihd-tabel thead button:hover, .ihd-tabel thead button.aktif { color: var(--ihd-tinta); }
.ihd-tabel [aria-sort="descending"] button::after { content: " ↓"; }
.ihd-tabel [aria-sort="ascending"] button::after { content: " ↑"; }
.ihd-saham tbody th { font-weight: 600; width: 4.2em; }
.ihd-emiten { color: var(--ihd-redup); }
.ihd-riwayat small { margin-left: .4em; font-size: .6875rem; color: var(--ihd-redup); }
.ihd-kosong { color: var(--ihd-redup); }
.ihd-kinerja small { display: block; font-size: .6875rem; color: var(--ihd-redup); }
.ihd-level { margin: 0; font-variant-numeric: tabular-nums; }
.ihd-level > div { padding: .55rem 0; border-bottom: 1px solid var(--ihd-garis, #e4e4e4); }
.ihd-level > div:last-child { border-bottom: 0; }
.ihd-level dt { font-size: .75rem; color: var(--ihd-redup, #6b6b6b); }
.ihd-level dd { margin: .1rem 0 0; }
.ihd-level b { font-size: 1.0625rem; font-weight: 600; color: var(--ihd-tinta, #161616); }
.ihd-level small { display: block; font-size: .75rem; color: var(--ihd-redup, #6b6b6b); }
.ihd-tabel caption { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ihd-penggerak { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem 2rem; }
.ihd-penggerak tbody th { font-weight: 600; width: 4.2em; }

/* Pita kutipan */
.ihd-pita { display: flex; gap: 1.6rem; margin: 0; padding: 0; list-style: none; overflow-x: auto; scrollbar-width: none; white-space: nowrap; font-size: .8125rem; font-variant-numeric: tabular-nums; }
.ihd-pita::-webkit-scrollbar { display: none; }
.ihd-pita li { flex: none; }
.ihd-pita b { font-weight: 600; margin-right: .15em; }

.ihd-ringkasan { margin: 0; }

/* Kilas saat angka berubah */
@keyframes ihd-kedip-naik { from { background: rgba(10,125,70,.22); } to { background: transparent; } }
@keyframes ihd-kedip-turun { from { background: rgba(192,57,43,.2); } to { background: transparent; } }
.ihd-kedip-naik { animation: ihd-kedip-naik 1.2s ease-out; }
.ihd-kedip-turun { animation: ihd-kedip-turun 1.2s ease-out; }
@media (prefers-reduced-motion: reduce) {
	.ihd-kedip-naik, .ihd-kedip-turun { animation: none; }
	.ihd-bilah i { transition: none; }
}

@media (max-width: 720px) {
	.ihd-harga { font-size: 2.25rem; }
	.ihd-kanvas { height: 300px; }
	.ihd-rinci { grid-template-columns: repeat(2, 1fr); }
	.ihd-alat { flex-direction: column-reverse; align-items: stretch; gap: 0; border-bottom: 0; }
	.ihd-alat .ihd-tombol { border-bottom: 1px solid var(--ihd-garis); }
	.ihd-tombol button { padding: .5rem .52rem; }
	.ihd-nama span { display: block; margin: .15rem 0 0; }
	.ihd-lebar { display: none; }
	.ihd-saham .ihd-emiten { display: none; }
	.ihd-penggerak { grid-template-columns: minmax(0, 1fr); }
	.ihd-penggerak td.ihd-emiten { width: 0; padding: 0; font-size: 0; }
	.ihd-riwayat { font-size: .8125rem; }
	.ihd-riwayat time { white-space: nowrap; }
	.ihd-riwayat small { display: block; margin: 0; }
	.ihd-riwayat th, .ihd-riwayat td { padding-left: .3rem; }
	.ihd-riwayat th:first-child { padding-left: .4rem; }
	.ihd-riwayat td:last-child { padding-right: .4rem; }
	.ihd-tabel th, .ihd-tabel td { padding-left: .5rem; }
}
