/* ===================== DASAR ===================== */
body { margin: 0; background: #F1F5F9; }
.page { max-width: 1700px; margin: 0 auto; padding: 20px 24px 40px; display: flex; flex-direction: column; gap: 16px;
        font-family: Inter, system-ui, sans-serif; font-size: 14px; color: #1E293B; }
.banner { background: #1565C0; color: #FFF; border-radius: 8px; padding: 20px 24px;
          display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; }
.banner h1 { margin: 0; font-size: 22px; }
.banner span { font-size: 13px; color: #E3F2FD; }
.card { background: #FFF; border: 1px solid #E2E8F0; border-radius: 8px; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 14px; }
.muted { font-size: 12px; color: #475569; }

/* ===================== PARAMETER ===================== */
.param { padding: 18px 24px; display: flex; flex-direction: column; gap: 14px; }
.field { display: flex; flex-direction: column; gap: 6px; font-size: 11px; font-weight: 600; color: #334155; }
.field[hidden] { display: none; }
.field input, .field select { height: 38px; border: 1px solid #CBD5E1; border-radius: 6px; padding: 0 10px;
                              font: inherit; font-size: 13px; font-weight: 400; background: #FFF; }
.field.tujuan { color: #0D47A1; }
.field.tujuan select { border: 2px solid #1565C0; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.btn { height: 34px; padding: 0 14px; border: 0; border-radius: 6px; font: inherit; font-size: 13px; font-weight: 600; color: #FFF; cursor: pointer; }
.btn-gray { background: #64748B; }
.btn-blue { background: #1565C0; }
.btn-outline { background: #FFF; color: #15803D; border: 1px solid #15803D; }
.btn:disabled { opacity: .4; cursor: default; }

/* ===================== TAB ===================== */
.tabs { display: flex; flex-wrap: wrap; gap: 6px; }
.tab { border: 1px solid #CBD5E1; background: #FFF; border-radius: 6px; padding: 9px 14px; font: inherit; font-size: 13px; font-weight: 600; color: #334155; cursor: pointer; }
.tab.aktif { background: #1565C0; border-color: #1565C0; color: #FFF; }
.isi { padding: 18px 0 10px; display: flex; flex-direction: column; gap: 14px; }
.pad { padding: 0 24px; }

/* ===================== RINGKASAN ===================== */
.funnel { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 12px; padding: 0 24px; }
.step { border: 1px solid #E2E8F0; border-radius: 8px; padding: 14px 16px; background: #F8FAFC; }
.step h3 { margin: 0 0 6px; font-size: 13px; color: #1E3A5F; }
.step .angka { font-size: 24px; font-weight: 700; }
.step .rinci { font-size: 12px; color: #475569; line-height: 1.6; }
.step .buang { color: #B91C1C; font-weight: 600; }
.tabel-kecil { border-collapse: collapse; font-size: 13px; }
.tabel-kecil td, .tabel-kecil th { padding: 6px 14px 6px 0; text-align: left; }
.rumus { margin: 0 24px; border-left: 4px solid #1565C0; background: #F8FAFC; padding: 12px 16px; font-size: 13px; line-height: 1.8; }
.rumus code { background: #E2E8F0; padding: 1px 6px; border-radius: 4px; font-family: ui-monospace, monospace; font-size: 12px; }

/* ===================== FILTER & TABEL ===================== */
.filter { display: flex; flex-wrap: wrap; gap: 10px; align-items: end; padding: 0 24px; }
.filter .field { min-width: 190px; }
.scroll { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; min-width: 1300px; font-size: 12px; }
th, td { padding: 10px 9px; text-align: left; vertical-align: top; }
th { background: #DBEAFE; color: #1E3A5F; font-weight: 600; position: sticky; top: 0; }
tbody tr { border-top: 1px solid #E2E8F0; }
tr.buang { background: #FEF2F2; }
tr.buang td.status { color: #B91C1C; font-weight: 600; }
td.status { font-weight: 600; color: #15803D; }
.num { text-align: right; white-space: nowrap; }
.mono { font-family: ui-monospace, monospace; white-space: nowrap; }
.wide { min-width: 170px; }
.halaman { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; padding: 0 24px; font-size: 13px; }
.kosong { padding: 24px; text-align: center; color: #475569; }

/* ===================== HIGHLIGHT KOLOM TAHAP ===================== */
th.t1, td.t1 { background: #FEF3C7; }   /* tahap 2: indeks      */
th.t2, td.t2 { background: #EDE9FE; }   /* tahap 3: HSD         */
th.t3, td.t3 { background: #EFF6FF; }   /* tahap 4: inflasi/IKK */
th.cp, td.cp { background: #DBEAFE; font-weight: 700; color: #0D47A1; }
th.t1 { background: #FDE68A; } th.t2 { background: #DDD6FE; } th.t3 { background: #BFDBFE; } th.cp { background: #93C5FD; }

/* ===================== BADGE RELIABILITY ===================== */
.badge { display: inline-block; border-radius: 10px; padding: 2px 10px; font-weight: 600; font-size: 11px; }
.badge.Tinggi { background: #DCFCE7; color: #166534; }
.badge.Sedang { background: #FEF9C3; color: #854D0E; }
.badge.Rendah { background: #FEE2E2; color: #991B1B; }

/* ---------- Skip manual admin (tab 1) ---------- */
.admin { padding: 10px 12px; border-bottom: 1px solid #E5E7EB; background: #FFFBEB; }
.admin .cek { font-weight: 600; margin-right: 12px; }
.btn-red { background: #B91C1C; color: #fff; }
label.btn { display: inline-flex; align-items: center; }
.btn.kecil { height: auto; padding: 2px 8px; font-size: 12px; }
.curiga { color: #B91C1C; font-weight: 700; }
td.aksi { text-align: center; }

.kotak { margin: 8px 0; padding: 8px 10px; background: #FFF; border: 1px solid #FDE68A; border-radius: 6px; }
.kotak input { min-width: 110px; }
