/* ============================= */
/* SECTION: DAFTAR HARGA        */
/* ============================= */

#daftar-harga {
    margin-top: 2.5rem;
    margin-bottom: 2.5rem;
    padding: 2rem 1.5rem;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 12px 35px rgba(15, 23, 42, 0.06);
    border: 1px solid #e9ecef;
    overflow-x: auto; /* Supaya tabel bisa discroll di mobile */
}

/* Judul section */
#daftar-harga h2 {
    font-size: 1.4rem;
    margin-bottom: 1.25rem;
    color: #1f2933;
    line-height: 1.4;
}

/* Styling umum tabel di dalam section */
#daftar-harga table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
    min-width: 600px; /* Biar struktur kolom tetap rapi, sisanya bisa scroll */
}

/* Header tabel */
#daftar-harga thead th {
    background: linear-gradient(135deg, #0f766e, #0ea5e9);
    color: #ffffff;
    font-weight: 600;
    text-align: left;
    padding: 0.9rem 0.85rem;
    white-space: nowrap;
    border-bottom: 1px solid rgba(15, 23, 42, 0.12);
}

/* Sel tubuh tabel */
#daftar-harga tbody td {
    padding: 0.75rem 0.85rem;
    border-bottom: 1px solid #e5e7eb;
    color: #374151;
}

/* Baris ganjil-genap (zebra stripes) */
#daftar-harga tbody tr:nth-child(odd) {
    background-color: #f9fafb;
}

/* Hover baris */
#daftar-harga tbody tr:hover {
    background-color: #ecfeff;
    transition: background-color 0.18s ease;
}

/* Angka / harga rata kanan (jika kolom pakai class "text-right") */
#daftar-harga td.text-right,
#daftar-harga th.text-right {
    text-align: right;
}

/* Kolom tengah kalau butuh (class "text-center") */
#daftar-harga td.text-center,
#daftar-harga th.text-center {
    text-align: center;
}

/* Teks keterangan "Data diperbaharui pada..." */
#daftar-harga p {
    margin-top: 1rem;
    font-size: 0.85rem;
    color: #6b7280;
}

#daftar-harga p i {
    font-style: normal;
    color: #4b5563;
}

#daftar-harga #currentDate {
    font-weight: 600;
    color: #0f766e;
}

/* ============================= */
/* RESPONSIVE                   */
/* ============================= */

@media (max-width: 768px) {
    #daftar-harga {
        padding: 1.5rem 1.1rem;
        border-radius: 12px;
    }

    #daftar-harga h2 {
        font-size: 1.15rem;
    }

    #daftar-harga table {
        font-size: 0.88rem;
        min-width: 520px;
    }
}
