.ppid-btn{

    display:inline-block;

    padding:7px 14px;

    border-radius:6px;

    text-decoration:none;

    background:#0d6efd;

    color:#fff;

    margin-right:6px;

    font-size:13px;

}

.ppid-btn:hover{

    opacity:.9;

}

.ppid-statistik{

    display:flex;

    gap:20px;

    margin-bottom:30px;

}

.ppid-card{

    flex:1;

    background:#fff;

    border-radius:12px;

    padding:25px;

    box-shadow:0 4px 12px rgba(0,0,0,.08);

    text-align:center;

}

.ppid-card span{

    font-size:36px;

    font-weight:bold;

}

/* ========================================
   PPID - TABEL DOKUMEN
======================================== */

#ppid-table {
    width: 100% !important;
    border-collapse: separate;
    border-spacing: 0;
    margin-top: 20px;
}

/* Header tabel */

#ppid-table thead th {
    font-weight: 600;
    padding: 14px 16px;
}

/* Isi tabel */

#ppid-table tbody td {
    padding: 14px 16px;
    vertical-align: middle;
}

/* Judul */

#ppid-table tbody td:first-child {
    font-weight: 600;
}

/* Kategori */

#ppid-table tbody td:nth-child(2) {
    white-space: nowrap;
}

/* Download */

#ppid-table tbody td:nth-child(3) {
    text-align: center;
    font-weight: 600;
}

/* Kolom aksi */

#ppid-table tbody td:last-child {
    white-space: nowrap;
}

/* Tombol */

.ppid-btn {
    display: inline-block;
    padding: 8px 14px;
    margin-right: 6px;
    border-radius: 7px;
    text-decoration: none !important;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
    transition: all .2s ease;
}

/* Tombol Lihat */

.ppid-btn:not(.download-btn) {
    background: #0d6efd;
    color: #fff !important;
}

.ppid-btn:not(.download-btn):hover {
    background: #0b5ed7;
    color: #fff !important;
}

/* Tombol Unduh */

.ppid-btn.download-btn {
    background: #198754;
    color: #fff !important;
}

.ppid-btn.download-btn:hover {
    background: #157347;
    color: #fff !important;
}

/* Mobile */

@media (max-width: 768px) {

    #ppid-table {
        font-size: 14px;
    }

    #ppid-table tbody td,
    #ppid-table thead th {
        padding: 10px;
    }

    .ppid-btn {
        display: block;
        width: 100%;
        margin: 4px 0;
        text-align: center;
    }

}

/* ========================================
   PPID STATISTIK
======================================== */

.ppid-statistik {
    width: 100%;
    max-width: 800px;
    margin: 30px auto;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.ppid-card {
    background: #fff;
    padding: 30px;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    border: 1px solid #eee;
    transition: transform .2s ease, box-shadow .2s ease;
}

.ppid-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
}

.ppid-card h3 {
    margin: 0 0 12px;
    font-size: 18px;
    font-weight: 600;
}

.ppid-card span {
    display: block;
    font-size: 38px;
    font-weight: 700;
    line-height: 1.2;
}

/* Mobile */

@media (max-width: 600px) {

    .ppid-statistik {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .ppid-card {
        padding: 24px;
    }

    .ppid-card span {
        font-size: 32px;
    }

}

/* ========================================
   PPID STATISTIK
======================================== */

.ppid-statistik {
    width: 100%;
    max-width: 1100px;
    margin: 30px auto;

    display: grid;

    grid-template-columns: repeat(2, minmax(0, 1fr));

    gap: 24px;
}


.ppid-statistik .ppid-card {

    position: relative;

    display: flex;

    align-items: center;

    gap: 22px;

    background: #fff;

    padding: 22px;

    border-radius: 16px;

    border: 1px solid #eee;

    box-shadow: 0 8px 25px rgba(0,0,0,.08);

    overflow: hidden;

    transition:
        transform .25s ease,
        box-shadow .25s ease;

}


.ppid-statistik .ppid-card:hover {

    transform: translateY(-6px);

    box-shadow:
        0 15px 35px rgba(0,0,0,.14);

}


.ppid-statistik .ppid-card::before {

    content: "";

    position: absolute;

    left: 0;
    top: 0;
    bottom: 0;

    width: 5px;

    background: #0d6efd;

}


.ppid-card-icon {

    width: 58px;
    height: 58px;

    min-width: 58px;

    display: flex;

    align-items: center;
    justify-content: center;

    background: #eaf2ff;

    border-radius: 14px;

    overflow: hidden;

    transition:
        transform .25s ease,
        background .25s ease;

}


.ppid-statistik .ppid-card:hover
.ppid-card-icon {

    transform: scale(1.08);

    background: #dceaff;

}


.ppid-card-icon img {

    width: 100%;

    height: 100%;

    object-fit: contain;

    padding: 10px;

}


.ppid-card-icon .dashicons {

    font-size: 32px;

    width: auto;
    height: auto;

}


.ppid-card-content h3 {

    margin: 0 0 6px;

    font-size: 17px;

    font-weight: 600;

}


.ppid-stat-number {

    display: block;

    font-size: 32px;

    line-height: 1.1;

    font-weight: 700;

}


/* Mobile */

@media (max-width: 700px) {

    .ppid-statistik {

        grid-template-columns: 1fr;

        gap: 16px;

    }


    .ppid-statistik .ppid-card {

        padding: 24px;

    }


    .ppid-card-icon {

        width: 55px;
        height: 55px;

        min-width: 55px;

    }


    .ppid-stat-number {

        font-size: 32px;

    }

}

/* ========================================
   FIX UKURAN CARD STATISTIK
======================================== */

div.ppid-statistik {
    width: 100% !important;
    max-width: 650px !important;
    margin-left: auto !important;
    margin-right: auto !important;

    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 20px !important;
}

div.ppid-statistik .ppid-card {
    width: auto !important;
    max-width: none !important;
    min-width: 0 !important;

    box-sizing: border-box !important;

    padding: 22px !important;

    margin: 0 !important;
}

div.ppid-statistik .ppid-card-icon {
    width: 58px !important;
    height: 58px !important;
    min-width: 58px !important;
}

div.ppid-statistik .ppid-stat-number {
    font-size: 32px !important;
}


/* Mobile */

@media (max-width: 700px) {

    div.ppid-statistik {
        grid-template-columns: 1fr !important;
        max-width: 100% !important;
    }

}

div.ppid-statistik .ppid-card-content {
    margin-left: 8px !important;
    text-align: center !important;
}

/* Center header tabel daftar dokumen */
#ppid-table thead th {
    text-align: center !important;
}

/* Center tombol pada kolom Aksi */
#ppid-table td:last-child {
    text-align: center !important;
}

/* PDF Viewer khusus halaman kategori */

.ppid-pdf-viewers {
    width: 100%;
}

.ppid-pdf-viewer {
    width: 100%;
    margin-bottom: 30px;
}

.ppid-pdf-viewer iframe {
    display: block;
    width: 100%;
    height: 900px;
    border: none;
}