
/* =========================================================
   PA BUNTOK — RENCANA PENGGUNAAN ANGGARAN
   Design adapted from DIPA
========================================================= */

.pa-rpa {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    padding: 10px 0 35px;
    box-sizing: border-box;
    color: #334155;
}

.pa-rpa *,
.pa-rpa *::before,
.pa-rpa *::after {
    box-sizing: border-box;
}


/* =========================================================
   HEADER
========================================================= */

.pa-rpa-header {
    position: relative;
    margin-bottom: 25px;
    padding: 22px 20px 18px;
    text-align: center;

    background: linear-gradient(135deg, #0f5132, #176b45);
    border-radius: 16px;
    color: #fff;
    overflow: hidden;

    box-shadow: 0 8px 25px rgba(15,81,50,.15);
}


/* EYEBROW */

.pa-rpa-eyebrow {
    position: relative;
    z-index: 2;
    display: inline-block;
    margin-bottom: 7px;
    padding: 4px 12px;

    border: 1px solid rgba(255,255,255,.3);
    border-radius: 50px;

    color: #f4d77d;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.4px;
    text-transform: uppercase;
}


/* TITLE */

.pa-rpa-header h2 {
    position: relative;
    z-index: 2;
    margin: 0;

    color: #fff;
    font-size: 27px;
    line-height: 1.2;
}


/* DESCRIPTION */

.pa-rpa-header p {
    position: relative;
    z-index: 2;
    margin: 5px 0 0;

    color: rgba(255,255,255,.85);
    font-size: 14px;
}


/* GOLD LINE */

.pa-rpa-line {
    position: relative;
    z-index: 2;
    width: 45px;
    height: 3px;
    margin: 11px auto 0;

    background: #d4af37;
    border-radius: 5px;
}


/* =========================================================
   INTRO ACCORDION
========================================================= */

.pa-rpa-intro {
    display: block;
    width: 100%;
    margin: 0 0 28px;
    padding: 0;

    background: #f8faf9;
    border: 1px solid #e0e9e4;
    border-left: 4px solid #d4af37;
    border-radius: 9px;

    color: #475569;
    overflow: hidden;
}


/* TOGGLE */

.pa-rpa-intro-toggle {
    display: flex;
    align-items: center;
    width: 100%;
    min-height: 68px;
    padding: 11px 16px;

    cursor: pointer;
    list-style: none;

    color: #0f5132;
    font-size: 14px;
    font-weight: 700;
}

.pa-rpa-intro-toggle::-webkit-details-marker {
    display: none;
}

.pa-rpa-intro-toggle::marker {
    display: none;
    content: "";
}

.pa-rpa-intro-toggle:hover {
    background: #f2f8f5;
}


/* INTRO ICON */

.pa-rpa-intro-icon {
    display: flex;
    align-items: center;
    justify-content: center;

    flex: 0 0 40px;
    width: 40px;
    height: 40px;
    margin-right: 13px;

    background: #e7f4ee;
    border-radius: 10px;

    color: #0f5132;
    font-size: 18px;
    font-weight: 700;
}


/* INTRO TITLE */

.pa-rpa-intro-title {
    min-width: 0;
    flex: 1;
    color: #0f5132;
}


/* CHEVRON */

.pa-rpa-intro-chevron {
    display: flex;
    align-items: center;
    justify-content: center;

    flex: 0 0 18px;
    width: 18px;
    height: 18px;
    margin-left: 12px;

    color: #0f5132;
    transition: transform .25s ease;
}

.pa-rpa-intro-chevron i {
    font-size: 12px;
    line-height: 1;
}

.pa-rpa-intro[open] .pa-rpa-intro-chevron {
    transform: rotate(180deg);
}


/* INTRO CONTENT */

.pa-rpa-intro-content {
    padding: 0 20px 18px 69px;
    color: #475569;
    font-size: 13px;
    line-height: 1.7;
}

.pa-rpa-intro-content p {
    margin: 0;
}


/* =========================================================
   SECTION HEADING
========================================================= */

.pa-rpa-heading {
    margin-bottom: 18px;
}

.pa-rpa-heading-eyebrow {
    display: block;
    margin-bottom: 5px;
    padding-left: 13px;

    border-left: 4px solid #0b7a3b;

    color: #0b7a3b;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.4px;
    text-transform: uppercase;
}

.pa-rpa-heading h3 {
    margin: 0 0 5px;
    color: #0f5132;
    font-size: 22px;
    line-height: 1.3;
}

.pa-rpa-heading p {
    margin: 0;
    color: #64748b;
    font-size: 12px;
    line-height: 1.5;
}


/* =========================================================
   TABLE WRAPPER
========================================================= */

.pa-rpa-table-wrap {
    width: 100%;
    overflow-x: auto;

    border-top: 1px solid #dfe9e4;
    border-bottom: 1px solid #dfe9e4;
}


/* TABLE */

.pa-rpa-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
}

.pa-rpa-table th {
    padding: 15px 14px;

    background: #f3f8f5;
    border-bottom: 1px solid #dfe9e4;

    color: #0f5132;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .5px;
    text-align: left;
}

.pa-rpa-table th:not(:first-child) {
    text-align: center;
}

.pa-rpa-table th:first-child {
    width: 110px;
}

.pa-rpa-table td {
    padding: 15px 14px;

    border-bottom: 1px solid #e6eeea;
    color: #243b53;
    vertical-align: middle;
}

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


/* HOVER ROW */

.pa-rpa-table tbody tr {
    transition: background .2s ease;
}

.pa-rpa-table tbody tr:hover {
    background: #fbfdfc;
}


/* YEAR */

.pa-rpa-year {
    width: 110px;
}

.pa-rpa-year span {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-width: 55px;
    padding: 7px 10px;

    background: #e7f4ee;
    border-radius: 8px;

    color: #0f5132;
    font-size: 12px;
    font-weight: 800;
}


/* ACTION */

.pa-rpa-table td:not(.pa-rpa-year) {
    text-align: center;
}

.pa-rpa-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;

    color: #0f5132;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;

    transition: color .2s ease;
}

.pa-rpa-button span {
    color: #d4af37;
    font-size: 15px;
    transition: transform .2s ease;
}

.pa-rpa-button:hover {
    color: #08783f;
}

.pa-rpa-button:hover span {
    transform: translateX(4px);
}


/* =========================================================
   FOOTER
========================================================= */

.pa-rpa-footer {
    margin-top: 20px;
    padding: 10px 15px;

    text-align: center;
    color: #64748b;
    font-size: 12px;
    line-height: 1.6;
}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 800px) {

    .pa-rpa {
        padding: 8px 0 30px;
    }

    .pa-rpa-header {
        padding: 26px 22px;
    }

}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 700px) {

    .pa-rpa-header {
        width: 100%;
        min-height: 0;
        height: auto;

        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 7px;

        margin-bottom: 18px;
        padding: 16px 14px 15px;

        border-radius: 12px;
    }

    .pa-rpa-header .pa-rpa-eyebrow {
        margin: 0;
        padding: 5px 12px;

        font-size: 9px;
        line-height: 1.2;
        letter-spacing: 1.2px;
        border-radius: 20px;
    }

    .pa-rpa-header h2 {
        margin: 0;
        font-size: 19px;
        line-height: 1.1;
        text-align: center;
    }

    .pa-rpa-header p {
        margin: 0;
        font-size: 11px;
        line-height: 1.35;
        text-align: center;
    }

    .pa-rpa-line {
        margin-top: 3px;
        width: 50px;
        height: 3px;
    }

    /* INTRO */

    .pa-rpa-intro {
        margin-bottom: 28px;
        border: 1px solid #dfe9e4;
        border-left: 4px solid #d4af37;
        border-radius: 12px;
        background: #fff;
    }

    .pa-rpa-intro-toggle {
        min-height: 64px;
        padding: 10px 13px;
    }

    .pa-rpa-intro-icon {
        flex: 0 0 40px;
        width: 40px;
        height: 40px;
        margin-right: 12px;

        background: #e8f5ef;
        color: #0b7a3b;
        font-size: 20px;
    }

    .pa-rpa-intro-title {
        margin: 0;
        color: #0f5132;
        font-size: 14px;
        line-height: 1.2;
    }

    .pa-rpa-intro-chevron {
        flex: 0 0 28px;
        width: 28px;
        height: 28px;
        color: #0b7a3b;
    }

    .pa-rpa-intro-chevron i {
        font-size: 14px;
    }

    .pa-rpa-intro-content {
        padding: 0 15px 17px 65px;
        color: #64748b;
        font-size: 12px;
        line-height: 1.65;
    }

    /* HEADING */

    .pa-rpa-heading {
        margin-bottom: 16px;
    }

    .pa-rpa-heading h3 {
        font-size: 20px;
    }

    .pa-rpa-heading p {
        font-size: 12px;
    }

    /* TABLE */

    .pa-rpa-table {
        min-width: 520px;
    }

    .pa-rpa-table th {
        padding: 13px 12px;
    }

    .pa-rpa-table td {
        padding: 13px 12px;
    }

}


/* =========================================================
   SMALL MOBILE
========================================================= */

@media (max-width: 420px) {

    .pa-rpa-header {
        gap: 6px;
        padding: 15px 13px 14px;
        margin-bottom: 17px;
    }

    .pa-rpa-header .pa-rpa-eyebrow {
        padding: 5px 11px;
        font-size: 8.5px;
    }

    .pa-rpa-header h2 {
        font-size: 17px;
        line-height: 1.1;
    }

    .pa-rpa-header p {
        font-size: 10.5px;
        line-height: 1.3;
    }

    .pa-rpa-line {
        width: 45px;
        height: 3px;
    }

    /* INTRO */

    .pa-rpa-intro {
        margin-bottom: 24px;
    }

    .pa-rpa-intro-toggle {
        min-height: 60px;
        padding: 9px 12px;
    }

    .pa-rpa-intro-icon {
        flex-basis: 38px;
        width: 38px;
        height: 38px;
        margin-right: 11px;
        font-size: 18px;
    }

    .pa-rpa-intro-title {
        font-size: 13px;
    }

    .pa-rpa-intro-content {
        padding-left: 61px;
        font-size: 11.5px;
        line-height: 1.6;
    }

    /* HEADING */

    .pa-rpa-heading h3 {
        font-size: 18px;
    }

    .pa-rpa-heading p {
        font-size: 11px;
    }

    /* TABLE */

    .pa-rpa-table th:nth-child(2),
    .pa-rpa-table td:nth-child(2) {
        width: 165px;
    }

}


/* =========================================================
   ACCESSIBILITY
========================================================= */

@media (prefers-reduced-motion: reduce) {

    .pa-rpa-intro-chevron,
    .pa-rpa-button,
    .pa-rpa-button span,
    .pa-rpa-table tbody tr {
        transition: none;
    }

}
