/* =========================================
   PA BUNTOK 2.0
   SOP PELAYANAN PUBLIK
========================================= */


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

.pa-sop-page {

    max-width: 1080px;

    margin: 0 auto;

    padding: 10px 0 55px;

    color: #173C32;
}


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

.pa-sop-header {

    text-align: center;

    padding: 10px 20px 28px;

}

.pa-sop-eyebrow {

    display: block;

    margin-bottom: 7px;

    color: #0B7A3B;

    font-size: 10px;

    font-weight: 800;

    letter-spacing: 2px;

    text-transform: uppercase;
}

.pa-sop-header h1 {

    margin: 0;

    color: #173C32;

    font-size: 32px;

    font-weight: 800;

    line-height: 1.2;
}

.pa-sop-header p {

    margin: 8px 0 0;

    color: #64748B;

    font-size: 14px;
}

.pa-sop-header-line {

    width: 40px;

    height: 3px;

    margin: 15px auto 0;

    border-radius: 999px;

    background: #0B7A3B;
}


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

.pa-sop-intro {

    display: flex;

    align-items: center;

    gap: 20px;

    padding: 24px 28px;

    margin-bottom: 20px;

    border: 1px solid #D8EDE2;

    border-radius: 20px;

    background:
        linear-gradient(
            135deg,
            #F4FBF7 0%,
            #EAF7F0 100%
        );
}

.pa-sop-intro-icon {

    width: 54px;
    height: 54px;

    flex: 0 0 54px;

    display: flex;

    align-items: center;
    justify-content: center;

    border-radius: 15px;

    background: #DDF3E7;

    color: #0B7A3B;

    font-size: 25px;
}

.pa-sop-label {

    display: inline-block;

    padding: 5px 10px;

    border-radius: 999px;

    background: #DDF3E7;

    color: #0B7A3B;

    font-size: 9px;

    font-weight: 800;

    letter-spacing: 1.3px;
}

.pa-sop-intro h2 {

    margin: 7px 0 5px;

    color: #173C32;

    font-size: 22px;

    font-weight: 800;

    line-height: 1.25;
}

.pa-sop-intro p {

    max-width: 760px;

    margin: 0;

    color: #64748B;

    font-size: 13px;

    line-height: 1.65;
}


/* =========================================
   TOOLBAR
========================================= */

.pa-sop-toolbar {

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 20px;

    margin-bottom: 14px;
}

.pa-sop-total {

    display: flex;

    align-items: baseline;

    gap: 7px;

    color: #64748B;

    font-size: 13px;
}

.pa-sop-total strong {

    color: #0B7A3B;

    font-size: 26px;

    font-weight: 800;
}

/* =========================================
   SEARCH SOP
========================================= */

.pa-sop-search {
    position: relative;
    width: 345px;
    max-width: 100%;
}

.pa-sop-search input {
    width: 100%;
    height: 46px;

    box-sizing: border-box;

    padding: 0 18px 0 46px;

    border: 1px solid #D8E7DF;
    border-radius: 14px;

    background: #FFFFFF;

    color: #173C32;

    font-size: 13px;
    line-height: 1;

    outline: none;

    box-shadow:
        0 4px 14px rgba(15, 60, 45, .05);

    transition:
        border-color .2s ease,
        box-shadow .2s ease,
        padding .25s ease;
}

.pa-sop-search input::placeholder {
    color: #94A3A0;
}

.pa-sop-search input:hover {
    border-color: #B8DCC9;
}

.pa-sop-search input:focus {
    border-color: #0B7A3B;

    box-shadow:
        0 0 0 3px rgba(11, 122, 59, .08),
        0 6px 18px rgba(15, 60, 45, .07);
}


/* =========================================
   SEARCH ICON
========================================= */

.pa-sop-search-icon {
    position: absolute;

    left: 17px;
    top: 50%;

    transform: translateY(-50%);

    width: 16px;
    height: 16px;

    color: #0B7A3B;

    pointer-events: none;

    opacity: 1;

    transition:
        opacity .2s ease,
        transform .2s ease;
}


/* ICON HILANG SAAT INPUT DIISI */

.pa-sop-search:has(input:not(:placeholder-shown))
.pa-sop-search-icon {
    opacity: 0;
    transform:
        translateY(-50%)
        scale(.8);
}


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

@media (max-width: 768px) {

    .pa-sop-search {
        width: 100%;
    }

    .pa-sop-search input {
        height: 44px;

        padding-left: 44px;

        font-size: 13px;

        border-radius: 13px;
    }

}

/* =========================================
   LIST WRAPPER
========================================= */

.pa-sop-list-wrap {

    overflow: hidden;

    border: 1px solid #E1EAE5;

    border-radius: 20px;

    background: #fff;

    box-shadow:
        0 10px 35px rgba(15,60,45,.05);
}


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

.pa-sop-list-header {

    display: grid;

    grid-template-columns:
        72px minmax(0, 1fr) 110px;

    align-items: center;

    min-height: 48px;

    padding: 0 22px;

    background: #F1F8F4;

    border-bottom: 1px solid #DDE9E2;

    color: #6A7C75;

    font-size: 10px;

    font-weight: 800;

    letter-spacing: 1.2px;
}

.pa-sop-col-action {

    text-align: right;
}


/* =========================================
   SOP ITEM
========================================= */

.pa-sop-item {

    display: grid;

    grid-template-columns:
        72px minmax(0, 1fr) 110px;

    align-items: center;

    gap: 0;

    min-height: 82px;

    padding: 14px 22px;

    border-bottom: 1px solid #EDF2EF;

    transition:
        background .2s ease;
}

.pa-sop-item:last-child {

    border-bottom: 0;
}

.pa-sop-item:hover {

    background: #FAFDFC;
}


/* =========================================
   NUMBER
========================================= */

.pa-sop-no span {

    display: flex;

    align-items: center;
    justify-content: center;

    width: 38px;
    height: 38px;

    border-radius: 12px;

    background: #E8F6EE;

    color: #0B7A3B;

    font-size: 12px;

    font-weight: 800;
}


/* =========================================
   TITLE
========================================= */

.pa-sop-title {

    min-width: 0;

    padding-right: 25px;
}

.pa-sop-item-label {

    display: block;

    margin-bottom: 4px;

    color: #A0AEA8;

    font-size: 8px;

    font-weight: 800;

    letter-spacing: 1px;
}

.pa-sop-title h3 {

    margin: 0;

    color: #263F36;

    font-size: 14px;

    font-weight: 700;

    line-height: 1.45;
}


/* =========================================
   ACTION
========================================= */

.pa-sop-action {

    display: flex;

    justify-content: flex-end;
}

.pa-sop-download {

    display: inline-flex;

    align-items: center;

    gap: 6px;

    padding: 8px 13px;

    border-radius: 999px;

    background: #E9F7EF;

    color: #0B7A3B;

    text-decoration: none;

    font-size: 10px;

    font-weight: 800;

    transition:
        background .2s ease,
        transform .2s ease;
}

.pa-sop-download:hover {

    background: #D6EFDF;

    color: #075F2E;

    transform: translateX(2px);
}


/* =========================================
   EMPTY STATE
========================================= */

.pa-sop-empty {

    display: none;

    padding: 55px 20px;

    text-align: center;
}

.pa-sop-empty.is-visible {

    display: block;
}

.pa-sop-empty-icon {

    width: 48px;
    height: 48px;

    display: flex;

    align-items: center;
    justify-content: center;

    margin: 0 auto 12px;

    border-radius: 50%;

    background: #F1F6F3;

    color: #8AA096;

    font-size: 22px;
}

.pa-sop-empty strong {

    display: block;

    color: #334E43;

    font-size: 15px;
}

.pa-sop-empty p {

    margin: 5px 0 0;

    color: #94A39C;

    font-size: 12px;
}


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

.pa-sop-footer {

    display: flex;

    align-items: center;
    justify-content: center;

    gap: 10px;

    margin-top: 18px;

    color: #94A39C;

    font-size: 11px;
}


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

@media (max-width: 768px) {

    .pa-sop-page {

        padding: 5px 0 40px;
    }

    .pa-sop-header {

        padding: 5px 15px 22px;
    }

    .pa-sop-header h1 {

        font-size: 25px;
    }

    .pa-sop-header p {

        font-size: 12px;
    }


    /* INTRO */

    .pa-sop-intro {

        align-items: flex-start;

        gap: 14px;

        padding: 20px 18px;

        border-radius: 18px;
    }

    .pa-sop-intro-icon {

        width: 44px;
        height: 44px;

        flex-basis: 44px;

        border-radius: 12px;

        font-size: 19px;
    }

    .pa-sop-intro h2 {

        font-size: 19px;
    }

    .pa-sop-intro p {

        font-size: 12px;
    }


    /* TOOLBAR */

    .pa-sop-toolbar {

        flex-direction: column;

        align-items: stretch;

        gap: 12px;

        margin-bottom: 12px;
    }

    .pa-sop-total {

        padding-left: 4px;
    }

    .pa-sop-total strong {

        font-size: 23px;
    }

    .pa-sop-search {

        width: 100%;
    }


    /* LIST */

    .pa-sop-list-wrap {

        border-radius: 18px;
    }

    .pa-sop-list-header {

        display: none;
    }


    /* CARD */

    .pa-sop-item {

        display: grid;

        grid-template-columns: 44px minmax(0, 1fr);

        grid-template-areas:
            "number title"
            "number action";

        column-gap: 13px;

        min-height: 0;

        padding: 18px 16px;

        align-items: start;
    }

    .pa-sop-no {

        grid-area: number;

        padding-top: 2px;
    }

    .pa-sop-no span {

        width: 38px;
        height: 38px;

        border-radius: 11px;
    }

    .pa-sop-title {

        grid-area: title;

        padding-right: 0;
    }

    .pa-sop-item-label {

        font-size: 7px;

        margin-bottom: 4px;
    }

    .pa-sop-title h3 {

        font-size: 13px;

        line-height: 1.5;
    }

    .pa-sop-action {

        grid-area: action;

        justify-content: flex-start;

        margin-top: 11px;
    }

    .pa-sop-download {

        padding: 7px 12px;

        font-size: 10px;
    }


    /* FOOTER */

    .pa-sop-footer {

        font-size: 10px;

        flex-wrap: wrap;

        gap: 7px;
    }
}


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

@media (max-width: 420px) {

    .pa-sop-intro {

        padding: 18px 15px;
    }

    .pa-sop-intro-icon {

        width: 40px;
        height: 40px;

        flex-basis: 40px;
    }

    .pa-sop-intro h2 {

        font-size: 18px;
    }

    .pa-sop-title h3 {

        font-size: 12.5px;
    }

}