/* Halaman /sekuritas (index.php) dan /sekuritas/detail/{kode} (detail.php). Dimuat lewat var_custom_css di Sekuritas. */

:root {
	--sc-green: #72c02c;
	--sc-green-dark: #4c8a1e;
	--sc-forest: #1f3a2a;
	--sc-ink: #1f2d24;
	--sc-muted: #6b7280;
	--sc-line: #e6e8eb;
	--sc-bg: #f6f8f7;
	--sc-radius: 12px;
}

/* ---------- Header ---------- */
.sc-top {
	color: #fff; padding: 28px 0 32px;
	background:
		linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px) 0 0 / 40px 40px,
		linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px) 0 0 / 40px 40px,
		linear-gradient(135deg, #142319 0%, #1f3a2a 55%, #2d5a3a 100%);
}
.sc-crumb { font-size: 13px; color: #9fb7a5; margin-bottom: 14px; }
.sc-crumb a { color: #cfe3d4; }
.sc-top h1 { color: #fff; font-size: 30px; font-weight: 700; margin: 0 0 8px; }
.sc-lead { color: #c9d9cd; font-size: 16px; max-width: 680px; margin-bottom: 18px; }
.sc-stats { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 28px; margin: 0 0 20px; padding: 0; color: #c9d9cd; }
.sc-stats b { color: #fff; font-size: 18px; margin-right: 4px; }

.sc-calc { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.14); border-radius: var(--sc-radius); padding: 12px 16px; margin: 0; }
.sc-calc > span:first-child { font-weight: 600; }
.sc-calc-input { display: inline-flex; align-items: center; gap: 6px; background: #fff; color: var(--sc-ink); border-radius: 8px; padding: 0 10px; font-weight: 600; }
.sc-calc-input input { border: 0; outline: 0; width: 140px; height: 38px; font-size: 16px; font-weight: 700; color: var(--sc-ink); background: none; font-variant-numeric: tabular-nums; }
.sc-calc small { flex-basis: 100%; color: #9fb7a5; font-size: 12px; }

/* ---------- Isi ---------- */
.sc-body { background: var(--sc-bg); padding: 32px 0 48px; }
.sc-h2 { font-size: 20px; font-weight: 700; color: var(--sc-ink); margin: 0 0 12px; }

.sc-pod { list-style: none; margin: 0 0 28px; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.sc-pod-item {
	position: relative; height: 100%; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; background: #fff;
	border: 1px solid var(--sc-line); border-radius: var(--sc-radius); padding: 18px 14px; color: var(--sc-ink); text-decoration: none; transition: border-color .2s, box-shadow .2s, transform .2s;
}
.sc-pod li:first-child .sc-pod-item { border-color: var(--sc-green); box-shadow: 0 0 0 3px rgba(114,192,44,.15); }
.sc-pod-item:hover { color: var(--sc-ink); text-decoration: none; border-color: var(--sc-green); box-shadow: 0 8px 22px rgba(31,58,42,.09); transform: translateY(-2px); }
.sc-rank { position: absolute; top: 10px; left: 12px; font-weight: 800; color: var(--sc-green-dark); }
.sc-pod-item b { font-size: 15px; line-height: 1.3; margin-top: 6px; }
.sc-pod-fee { font-size: 13px; color: var(--sc-muted); }
.sc-pod-biaya { font-size: 18px; font-weight: 700; color: var(--sc-forest); font-variant-numeric: tabular-nums; }

.sc-logo { width: 40px; height: 40px; flex-shrink: 0; border-radius: 8px; border: 1px solid var(--sc-line); background: #fff; object-fit: contain; padding: 3px; }
.sc-pod .sc-logo { width: 56px; height: 56px; }
.sc-logo-text { display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; color: var(--sc-forest); background: #eef5e8; }

.sc-tools { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.sc-search { display: flex; align-items: center; gap: 8px; background: #fff; border: 1px solid var(--sc-line); border-radius: 10px; padding: 0 12px; margin: 0; flex: 0 1 320px; }
.sc-search i { color: var(--sc-muted); }
.sc-search input { border: 0; outline: 0; height: 40px; width: 100%; font-size: 14px; background: none; }
.sc-sort { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 13px; color: var(--sc-muted); }
.sc-sort select { height: 40px; border: 1px solid var(--sc-line); border-radius: 10px; padding: 0 10px; font-size: 14px; color: var(--sc-ink); background: #fff; }
.sc-filter { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.sc-filter button { border: 1px solid var(--sc-line); background: #fff; color: var(--sc-ink); border-radius: 16px; padding: 5px 12px; font-size: 13px; cursor: pointer; }
.sc-filter button:hover { border-color: var(--sc-green); }
.sc-filter button[aria-pressed="true"] { background: var(--sc-forest); border-color: var(--sc-forest); color: #fff; font-weight: 600; }

.sc-table-wrap { background: #fff; border: 1px solid var(--sc-line); border-radius: var(--sc-radius); overflow: hidden; }
.sc-table { width: 100%; border-collapse: collapse; font-size: 14px; font-variant-numeric: tabular-nums; }
.sc-table thead th { font-size: 12px; font-weight: 600; color: var(--sc-muted); background: #fafbfa; padding: 10px 12px; border-bottom: 1px solid var(--sc-line); text-align: right; white-space: nowrap; }
.sc-table thead th:first-child { text-align: left; }
.sc-table tbody th, .sc-table td { padding: 12px; border-bottom: 1px solid #f1f3f5; vertical-align: middle; }
.sc-table tbody tr:last-child th, .sc-table tbody tr:last-child td { border-bottom: 0; }
.sc-table tbody th { font-weight: 400; text-align: left; }
.sc-table td { text-align: right; white-space: nowrap; font-weight: 600; color: #374151; }
.sc-nama { display: flex; align-items: center; gap: 10px; color: var(--sc-ink); text-decoration: none; }
.sc-nama:hover { color: var(--sc-green-dark); text-decoration: none; }
.sc-nama span { min-width: 0; display: flex; flex-direction: column; }
.sc-nama small { color: var(--sc-muted); font-size: 12px; }
.sc-tags { display: flex; flex-wrap: wrap; gap: 4px; margin: 6px 0 0 50px; }
.sc-tag { font-size: 11px; font-weight: 600; color: var(--sc-forest); background: #f3f7f1; border-radius: 6px; padding: 2px 7px; }
.sc-tag-warn { color: #9a3412; background: #fff1e6; }
.sc-empty { background: #fff; border: 1px dashed var(--sc-line); border-radius: var(--sc-radius); padding: 24px; text-align: center; color: var(--sc-muted); margin-top: 10px; }
.sc-note { font-size: 12px; color: var(--sc-muted); margin: 10px 0 0; }

.sc-about { margin-top: 32px; background: #fff; border: 1px solid var(--sc-line); border-radius: var(--sc-radius); padding: 22px; color: #374151; line-height: 1.7; }
.sc-about h2 { font-size: 18px; font-weight: 700; color: var(--sc-ink); margin: 0 0 10px; }
.sc-about ol { padding-left: 20px; margin-bottom: 24px; }
.sc-faq { border-top: 1px solid #f1f3f5; padding: 10px 0; }
.sc-faq summary { cursor: pointer; font-weight: 600; color: var(--sc-ink); }
.sc-faq p { margin: 8px 0 0; }

/* ---------- Sidebar ---------- */
.sc-side { position: sticky; top: calc(var(--hdr-h, 0px) + 16px); }
.sc-box { background: #fff; border: 1px solid var(--sc-line); border-radius: var(--sc-radius); padding: 18px; margin-bottom: 16px; }
.sc-box h2 { font-size: 16px; font-weight: 700; color: var(--sc-ink); margin: 0 0 10px; }
.sc-cta { background: #eef6e8; border-color: #d5eac4; }
.sc-cta p { color: #4b5a50; font-size: 14px; }
.sc-btn { background: var(--sc-green); color: #fff; border-radius: 10px; font-weight: 600; padding: 8px 14px; margin: 0 6px 6px 0; }
.sc-btn:hover { background: var(--sc-green-dark); color: #fff; }
.sc-btn-ghost { background: #fff; color: var(--sc-green-dark); border: 1px solid #cfe3bd; }
.sc-btn-ghost:hover { background: #fff; color: var(--sc-forest); border-color: var(--sc-green); }
.sc-istilah { margin: 0; font-size: 13px; }
.sc-istilah dt { font-weight: 700; color: var(--sc-ink); }
.sc-istilah dd { color: var(--sc-muted); margin: 0 0 10px; }

/* ---------- Halaman detail ---------- */
.sc-hero { display: flex; align-items: center; gap: 16px; margin-bottom: 18px; }
.sc-logo-xl { width: 72px; height: 72px; border: 0; border-radius: 14px; padding: 6px; }
.sc-hero h1 { margin: 0 0 6px; }
.sc-hero h1 small { display: block; font-size: 14px; font-weight: 600; color: #9fb7a5; text-transform: uppercase; letter-spacing: .5px; }
.sc-hero-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.sc-hero-tags span { font-size: 13px; color: #e6f0e8; background: rgba(255,255,255,.08); border-radius: 6px; padding: 3px 9px; }
.sc-hero-tags .sc-ok { background: rgba(114,192,44,.25); }
.sc-hero-tags .sc-warn { background: rgba(255,138,138,.25); }
.sc-kpi { list-style: none; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; margin: 0 0 18px; padding: 0; }
.sc-kpi li { background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.12); border-radius: 10px; padding: 10px 14px; }
.sc-kpi small { display: block; color: #9fb7a5; font-size: 12px; }
.sc-kpi b { font-size: 20px; font-variant-numeric: tabular-nums; }
.sc-hero-aksi { display: flex; flex-wrap: wrap; gap: 8px; }
.sc-hero-aksi .sc-btn { margin: 0; }
.sc-btn i { margin-left: 4px; font-size: 12px; }

.sc-nav { position: sticky; top: var(--hdr-h, 0px); z-index: 20; background: #fff; border-bottom: 1px solid var(--sc-line); }
.sc-nav .container { display: flex; gap: 4px; overflow-x: auto; overflow-y: hidden; overscroll-behavior-x: contain; scrollbar-width: none; }
.sc-nav .container::-webkit-scrollbar { display: none; }
.sc-nav a { flex-shrink: 0; padding: 14px 12px; font-size: 14px; font-weight: 600; color: var(--sc-ink); text-decoration: none; border-bottom: 3px solid transparent; }
.sc-nav a:hover { color: var(--sc-green-dark); border-bottom-color: var(--sc-green); }
.sc-nav a span { color: var(--sc-muted); font-weight: 400; }
.sc-sec { scroll-margin-top: calc(var(--hdr-h, 0px) + 64px); padding: 22px; }
.sc-sec h2 { font-size: 20px; margin-bottom: 12px; }
.sc-sec h2 small { font-size: 13px; font-weight: 400; color: var(--sc-muted); margin-left: 6px; }
.sc-sec h3 { font-size: 15px; font-weight: 700; color: var(--sc-ink); margin: 22px 0 10px; }
.sc-muted { color: var(--sc-muted); margin: 0; }

.sc-fee-verdict { color: #374151; line-height: 1.6; }
.sc-fee-calc { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; background: var(--sc-bg); border-radius: 10px; padding: 14px; }
.sc-fee-calc label { margin: 0; font-weight: 600; font-size: 14px; }
.sc-fee-calc .sc-calc-input { border: 1px solid var(--sc-line); }
.sc-fee-calc dl { flex-basis: 100%; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 4px 0 0; }
.sc-fee-calc dt { font-size: 12px; font-weight: 400; color: var(--sc-muted); }
.sc-fee-calc dd { margin: 0; font-size: 18px; font-weight: 700; color: var(--sc-forest); font-variant-numeric: tabular-nums; }

.sc-fitur { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.sc-fitur li { font-size: 13px; color: #9ca3af; background: #f6f7f8; border-radius: 8px; padding: 6px 12px; text-decoration: line-through; }
.sc-fitur li.ada { color: var(--sc-forest); background: #eef6e8; font-weight: 600; text-decoration: none; }
.sc-fitur i { font-size: 11px; margin-right: 4px; }

.sc-dl { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 8px 16px; margin: 0; font-size: 14px; }
.sc-dl dt { font-weight: 400; color: var(--sc-muted); }
.sc-dl dd { margin: 0; color: var(--sc-ink); word-break: break-word; }
.sc-dl dd small { color: var(--sc-muted); margin-left: 4px; }

.sc-lisensi { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.sc-lisensi li { border: 1px solid var(--sc-line); border-radius: 10px; padding: 12px 14px; display: flex; flex-direction: column; gap: 2px; }
.sc-lisensi b { color: var(--sc-ink); }
.sc-lisensi span { font-size: 13px; color: #4b5563; }
.sc-lisensi small { font-size: 12px; color: var(--sc-muted); }

.sc-pengurus { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.sc-pengurus h3 { margin-top: 0; }
.sc-pengurus ul { list-style: none; margin: 0; padding: 0; }
.sc-pengurus li { padding: 8px 0; border-bottom: 1px solid #f1f3f5; display: flex; flex-direction: column; }
.sc-pengurus li:last-child { border-bottom: 0; }
.sc-pengurus small { color: var(--sc-muted); font-size: 12px; }

.sc-pemegang { list-style: none; margin: 0; padding: 0; }
.sc-pemegang li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; padding: 10px 0; border-bottom: 1px solid #f1f3f5; }
.sc-pemegang li:last-child { border-bottom: 0; }
.sc-pemegang-nama { display: flex; flex-direction: column; min-width: 0; }
.sc-pemegang-nama small { color: var(--sc-muted); font-size: 12px; }
.sc-persen { font-size: 16px; font-variant-numeric: tabular-nums; color: var(--sc-forest); }
.sc-bar { grid-column: 1 / -1; width: 100%; height: 6px; border-radius: 3px; overflow: hidden; }
.sc-bar-bg { fill: #eef0f2; }
.sc-bar-isi { fill: var(--sc-green); }

.sc-search-kota { flex-basis: auto; max-width: 320px; margin-bottom: 12px; }
.sc-kota { border-top: 1px solid #f1f3f5; }
.sc-kota summary { cursor: pointer; padding: 10px 0; font-weight: 600; color: var(--sc-ink); }
.sc-kota summary span { font-weight: 400; color: var(--sc-muted); margin-left: 4px; }
.sc-kota ul { margin: 0 0 12px; padding-left: 18px; font-size: 14px; color: #4b5563; }
.sc-kota li { margin-bottom: 6px; }
.sc-kota small { color: var(--sc-muted); margin-left: 6px; white-space: nowrap; }

.sc-mirip { list-style: none; margin: 0 0 10px; padding: 0; }
.sc-mirip a { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 9px 4px; border-bottom: 1px solid #f1f3f5; color: var(--sc-ink); text-decoration: none; }
.sc-mirip li:last-child a { border-bottom: 0; }
.sc-mirip a:hover { color: var(--sc-green-dark); }
.sc-mirip span { min-width: 0; display: flex; flex-direction: column; font-size: 14px; }
.sc-mirip small { color: var(--sc-muted); font-size: 12px; }
.sc-mirip em { font-style: normal; font-weight: 700; font-variant-numeric: tabular-nums; }
.sc-more { font-weight: 600; color: var(--sc-green-dark); font-size: 14px; }

/* ---------- Responsif ---------- */
@media (max-width: 991px) {
	.sc-side { position: static; }
}
@media (max-width: 767px) {
	.sc-top h1 { font-size: 24px; }
	.sc-pod { grid-template-columns: 1fr; }
	.sc-pod-item { flex-direction: row; flex-wrap: wrap; text-align: left; padding-left: 44px; }
	.sc-pod-item b { flex: 1 1 0; margin: 0; }
	.sc-pod-fee { flex-basis: 100%; padding-left: 66px; margin-top: -4px; }
	.sc-pod-biaya { flex-basis: 100%; padding-left: 66px; font-size: 16px; }
	.sc-search { flex-basis: 100%; }
	/* tabel jadi kartu */
	.sc-table thead { display: none; }
	.sc-table, .sc-table tbody, .sc-table tr { display: block; }
	.sc-table tr { padding: 12px; border-bottom: 1px solid #f1f3f5; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 12px; }
	.sc-table tbody th { grid-column: 1 / -1; padding: 0 0 4px; border: 0; }
	.sc-table td { display: flex; justify-content: space-between; padding: 0; border: 0; font-size: 13px; }
	.sc-table td::before { content: attr(data-label); font-weight: 400; color: var(--sc-muted); }
	.sc-tags { margin-left: 0; }
	/* detail */
	.sc-hero { align-items: flex-start; }
	.sc-logo-xl { width: 56px; height: 56px; }
	.sc-kpi { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.sc-kpi li:last-child { grid-column: 1 / -1; }
	.sc-fee-calc dl, .sc-lisensi, .sc-pengurus { grid-template-columns: 1fr; }
	.sc-dl { grid-template-columns: 1fr; gap: 0; }
	.sc-dl dd { margin-bottom: 10px; }
}
