/**
 * Indeks Kesejahteraan - Halaman publik (statistik agregat)
 */

.page-indeks-kesejahteraan .iks-main {
    padding: 1.5rem 1rem 3rem;
}

.iks-wrap {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 clamp(0.75rem, 4vw, 1.5rem);
}

.iks-breadcrumb {
    font-size: 0.9rem;
    color: #64748b;
    margin-bottom: 1rem;
}

.iks-breadcrumb a {
    color: #1e40af;
    text-decoration: none;
}

.iks-breadcrumb a:hover {
    text-decoration: underline;
}

.iks-breadcrumb .sep {
    margin: 0 0.35rem;
}

.iks-title {
    font-size: 1.75rem;
    color: #0f172a;
    margin: 0 0 0.5rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.iks-title i {
    color: #dc2626;
}

.iks-desc {
    color: #64748b;
    font-size: 0.95rem;
    margin: 0 0 1.5rem 0;
    line-height: 1.5;
}

.iks-empty {
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 12px;
    padding: 1.5rem;
    color: #b91c1c;
    text-align: center;
}

.iks-empty p {
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.iks-section {
    margin-bottom: 1.75rem;
}

.iks-section-title {
    font-size: 1.1rem;
    color: #0f172a;
    margin: 0 0 1rem 0;
    font-weight: 600;
}

.iks-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 1rem;
}

.iks-card {
    background: #fff;
    border-radius: 12px;
    padding: 1.25rem;
    border: 1px solid #e2e8f0;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
    text-align: center;
}

.iks-card-icon {
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
    opacity: 0.9;
}

.iks-card-total .iks-card-icon { color: #4f46e5; }
.iks-card-sejahtera .iks-card-icon { color: #059669; }
.iks-card-rentan .iks-card-icon { color: #d97706; }
.iks-card-miskin .iks-card-icon { color: #dc2626; }

.iks-card-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 0.25rem;
}

.iks-card-label {
    font-size: 0.8rem;
    color: #64748b;
    line-height: 1.3;
}

.iks-card-note {
    font-size: 0.75rem;
    color: #94a3b8;
    margin-top: 0.5rem;
}

.iks-table-wrap {
    background: #fff;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}

.iks-table {
    width: 100%;
    border-collapse: collapse;
}

.iks-table th,
.iks-table td {
    padding: 0.75rem 1rem;
    text-align: left;
    border-bottom: 1px solid #e2e8f0;
}

.iks-table th {
    background: #f8fafc;
    font-size: 0.85rem;
    font-weight: 600;
    color: #475569;
}

.iks-table td {
    font-size: 0.95rem;
    color: #334155;
}

.iks-table tbody tr:last-child td {
    border-bottom: none;
}

.iks-num {
    text-align: right;
    font-variant-numeric: tabular-nums;
}

.iks-row-sejahtera { background: #f0fdf4; }
.iks-row-hampir { background: #ecfdf5; }
.iks-row-rentan { background: #fffbeb; }
.iks-row-miskin { background: #fef2f2; }

.iks-meta {
    font-size: 0.9rem;
    color: #64748b;
    margin: 0;
}

.iks-meta i {
    margin-right: 0.35rem;
    color: #94a3b8;
}

.iks-disclaimer {
    font-size: 0.8rem;
    color: #94a3b8;
    margin: 1.5rem 0 0 0;
    padding-top: 1rem;
    border-top: 1px solid #e2e8f0;
}

@media (max-width: 480px) {
    .iks-cards {
        grid-template-columns: 1fr 1fr;
    }
}
