/* ==========================================================
   PORTAL GTK KABUPATEN KONAWE
   File    : 17-topbar.css
   Version : 7.1 Final Search UI
   Modul   : Portal Topbar System
==========================================================*/


/* ==========================================================
   TOPBAR CONTAINER
==========================================================*/

.topbar{

    width:100%;

    max-width:var(--container);

    margin:30px auto;

    padding:18px 24px;

    background:var(--white);

    border:1px solid var(--border);

    border-radius:var(--radius-xl);

    box-shadow:var(--shadow-md);

     display: grid;

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

    align-items: center;
    gap: 20px;


}


/* ==========================================================
   RUNNING TEXT
==========================================================*/

#topbarIcon{

    color:var(--primary);

    font-size:22px;

    flex-shrink:0;

}


#topbarText{

    flex:1 1 auto;

    min-width:0;

    width:auto;

    color:var(--primary);

    font-size:15px;

    font-weight:700;

    line-height:1.4;

    white-space:normal;

    overflow:visible;

    text-overflow:clip;

    overflow-wrap:break-word;

    word-break:normal;

    text-align:left;

    transition:var(--transition);

}


/* ==========================================================
   FORM CEK DATA TPG
   4 NOMOR UNIK:
   NIP | NIK | NUPTK | NRG
   ========================================================== */

#formTPGSearch{
    width:100%;
    display:flex;
    flex-direction:column;
    gap:10px;
}


/* ==========================================================
   PILIH IDENTITAS
   ========================================================== */

.tpg-search-label{
    display:block;
    margin:0 0 6px 2px;
    color:var(--text-light);
    font-size:12px;
    font-weight:700;
}


.tpg-identity-selector{
    width:100%;
    display:grid;
    grid-template-columns:repeat(4,1fr);
    gap:7px;
}


.tpg-identity-option{
    min-height:38px;
    padding:7px 8px;
    border:1px solid var(--border);
    border-radius:10px;
    background:var(--white);
    color:var(--text);
    font-size:12px;
    font-weight:700;
    cursor:pointer;
    transition:var(--transition);
}


.tpg-identity-option:hover{
    border-color:var(--primary);
    color:var(--primary);
    transform:translateY(-1px);
}


.tpg-identity-option.active{
    border-color:var(--primary);
    background:var(--primary);
    color:var(--white);
    box-shadow:var(--shadow-sm);
}


/* ==========================================================
   INPUT + TOMBOL
   ========================================================== */

.tpg-search-row{
    width:100%;
    display:grid;
    grid-template-columns:minmax(0,1fr) 135px;
    gap:10px;
    align-items:center;
}


#tpgSearch{
    width:100%;
    height:52px;
    padding:0 18px;
    border:2px solid var(--border);
    border-radius:14px;
    outline:none;
    background:var(--white);
    color:var(--text);
    font-size:15px;
    transition:var(--transition);
    box-sizing:border-box;
}


#tpgSearch::placeholder{
    color:var(--text-light);
}


#tpgSearch:focus{
    border-color:var(--primary);
    box-shadow:0 0 0 4px rgba(21,101,192,.10);
}


#formTPGSearch button{
    height:52px;
    border:none;
    border-radius:14px;
    background:linear-gradient(
        135deg,
        #F59E0B,
        #EA580C
    );
    color:var(--white);
    font-size:15px;
    font-weight:700;
    cursor:pointer;
    transition:var(--transition);
    box-shadow:var(--shadow-sm);
}


#formTPGSearch button:hover{
    transform:translateY(-2px);
    box-shadow:var(--shadow-md);
}


#formTPGSearch button:active{
    transform:scale(.97);
}


/* ==========================================================
   PESAN PENCARIAN
   ========================================================== */

.tpg-search-hint{
    margin:0 2px;
    color:var(--text-light);
    font-size:12px;
    line-height:1.45;
}


/* ==========================================================
   HASIL CEK DATA TPG
   ========================================================== */

#hasilTPG{
    width:100%;
    max-width:var(--container);
    margin:28px auto;
}


#hasilTPGContent{
    width:100%;
}


.hasil-tpg{
    width:100%;
}


.hasil-card{
    background:var(--white);
    border:1px solid var(--border);
    border-radius:var(--radius-xl);
    padding:32px;
    box-shadow:var(--shadow-md);
    animation:fadeResult .5s ease;
}


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

.tpg-result-header{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:16px;
    margin-bottom:22px;
}


.tpg-result-title{
    margin:0;
    color:var(--primary);
    font-size:22px;
    font-weight:700;
}


.tpg-result-subtitle{
    margin:5px 0 0;
    color:var(--text-light);
    font-size:13px;
}


/* ==========================================================
   DATA GURU
   ========================================================== */

.tpg-guru-card{
    padding:22px;
    margin-bottom:20px;
    background:var(--white);
    border:1px solid var(--border);
    border-radius:var(--radius-lg);
}


.tpg-guru-grid{
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:12px 24px;
}


.tpg-guru-item{
    min-width:0;
}


.tpg-guru-item .label{
    display:block;
    margin-bottom:3px;
    color:var(--text-light);
    font-size:12px;
}


.tpg-guru-item .value{
    display:block;
    color:var(--text);
    font-size:15px;
    font-weight:700;
    overflow-wrap:anywhere;
}


/* ==========================================================
   PERIODE / BULAN
   ========================================================== */

.tpg-period-panel{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:14px;
    margin-bottom:20px;
    padding:16px 18px;
    border:1px solid var(--border);
    border-radius:var(--radius-lg);
    background:#f8fafc;
}


.tpg-period-label{
    color:var(--text-light);
    font-size:13px;
    font-weight:600;
}


.tpg-period-select{
    min-width:190px;
    height:44px;
    padding:0 12px;
    border:1px solid var(--border);
    border-radius:10px;
    background:var(--white);
    color:var(--text);
    outline:none;
    font-size:14px;
    font-weight:700;
}


.tpg-period-select:focus{
    border-color:var(--primary);
    box-shadow:0 0 0 3px rgba(21,101,192,.10);
}


/* ==========================================================
   BLOK SKTP / SP2D / PENYALURAN
   ========================================================== */

.tpg-data-section{
    margin-bottom:20px;
    padding:22px;
    border:1px solid var(--border);
    border-radius:var(--radius-lg);
    background:var(--white);
}


.tpg-data-section h3{
    margin:0 0 16px;
    color:var(--primary);
    font-size:18px;
    font-weight:700;
}


.tpg-data-grid{
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:10px 24px;
}


.tpg-data-item{
    padding:9px 0;
    border-bottom:1px dashed var(--border);
}


.tpg-data-item .label{
    display:block;
    margin-bottom:3px;
    color:var(--text-light);
    font-size:12px;
}


.tpg-data-item .value{
    display:block;
    color:var(--text);
    font-size:14px;
    font-weight:700;
    overflow-wrap:anywhere;
}


.tpg-status{
    display:inline-flex;
    align-items:center;
    min-height:30px;
    padding:5px 10px;
    border-radius:999px;
    background:#eff6ff;
    color:var(--primary);
    font-size:12px;
    font-weight:700;
}


/* ==========================================================
   PILIHAN TINDAKAN
   ========================================================== */

.tpg-action-panel{
    margin-top:22px;
    padding:22px;
    border:1px solid var(--border);
    border-radius:var(--radius-lg);
    background:#f8fafc;
}


.tpg-action-panel h3{
    margin:0 0 14px;
    color:var(--text);
    font-size:17px;
    font-weight:700;
}


.tpg-action-list{
    display:grid;
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:10px;
}


.tpg-action-btn{
    min-height:48px;
    padding:10px 14px;
    border:1px solid var(--border);
    border-radius:12px;
    background:var(--white);
    color:var(--text);
    font-size:13px;
    font-weight:700;
    cursor:pointer;
    transition:var(--transition);
}


.tpg-action-btn:hover{
    border-color:var(--primary);
    color:var(--primary);
    transform:translateY(-2px);
    box-shadow:var(--shadow-sm);
}


.tpg-action-btn.primary{
    background:var(--primary);
    border-color:var(--primary);
    color:var(--white);
}


.tpg-action-btn.danger{
    border-color:#fecaca;
    color:#b91c1c;
}


/* ==========================================================
   PENGADUAN
   ========================================================== */

#tpgComplaintPanel,
#tpgSurveyPanel,
#tpgFollowupPanel{
    width:100%;
    margin-top:22px;
}


.tpg-complaint-list{
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:10px;
}


.tpg-complaint-option{
    min-height:52px;
    padding:12px 14px;
    border:1px solid var(--border);
    border-radius:12px;
    background:var(--white);
    color:var(--text);
    text-align:left;
    font-size:14px;
    font-weight:700;
    cursor:pointer;
    transition:var(--transition);
}


.tpg-complaint-option:hover{
    border-color:var(--primary);
    color:var(--primary);
    transform:translateY(-2px);
}


.tpg-form-group{
    margin-bottom:15px;
}


.tpg-form-group label{
    display:block;
    margin-bottom:7px;
    color:var(--text);
    font-size:13px;
    font-weight:700;
}


.tpg-form-control{
    width:100%;
    min-height:46px;
    padding:11px 13px;
    border:1px solid var(--border);
    border-radius:10px;
    outline:none;
    background:var(--white);
    color:var(--text);
    font-size:14px;
    box-sizing:border-box;
    transition:var(--transition);
}


textarea.tpg-form-control{
    min-height:120px;
    resize:vertical;
}


.tpg-form-control:focus{
    border-color:var(--primary);
    box-shadow:0 0 0 3px rgba(21,101,192,.10);
}


.tpg-submit-btn{
    min-height:48px;
    padding:11px 18px;
    border:none;
    border-radius:12px;
    background:var(--primary);
    color:var(--white);
    font-size:14px;
    font-weight:700;
    cursor:pointer;
    transition:var(--transition);
}


.tpg-submit-btn:hover{
    transform:translateY(-2px);
    box-shadow:var(--shadow-md);
}


/* ==========================================================
   NOMOR PENGADUAN / HASIL PENGADUAN
   ========================================================== */

.tpg-complaint-success{
    padding:22px;
    border:1px solid #bbf7d0;
    border-radius:var(--radius-lg);
    background:#f0fdf4;
}


.tpg-complaint-number{
    display:inline-block;
    margin:8px 0;
    padding:8px 12px;
    border-radius:8px;
    background:var(--white);
    color:var(--primary);
    font-size:16px;
    font-weight:800;
    letter-spacing:.3px;
}


/* ==========================================================
   SURVEY
   ========================================================== */

.tpg-survey-question{
    margin-bottom:20px;
    padding:18px;
    border:1px solid var(--border);
    border-radius:var(--radius-lg);
    background:var(--white);
}


.tpg-survey-question h4{
    margin:0 0 12px;
    color:var(--text);
    font-size:15px;
}


.tpg-rating{
    display:grid;
    grid-template-columns:repeat(5,1fr);
    gap:8px;
}


.tpg-rating-option{
    min-height:42px;
    border:1px solid var(--border);
    border-radius:10px;
    background:var(--white);
    color:var(--text);
    font-size:13px;
    font-weight:700;
    cursor:pointer;
    transition:var(--transition);
}


.tpg-rating-option:hover,
.tpg-rating-option.active{
    border-color:var(--primary);
    background:var(--primary);
    color:var(--white);
}


/* ==========================================================
   CEK TINDAK LANJUT PENGADUAN
   ========================================================== */

.tpg-followup-result{
    margin-top:18px;
    padding:20px;
    border:1px solid var(--border);
    border-radius:var(--radius-lg);
    background:#f8fafc;
}


.tpg-followup-status{
    display:inline-flex;
    align-items:center;
    padding:6px 11px;
    border-radius:999px;
    background:#eff6ff;
    color:var(--primary);
    font-size:12px;
    font-weight:800;
}


/* ==========================================================
   ANIMASI HASIL
   ========================================================== */

@keyframes fadeResult{

    from{
        opacity:0;
        transform:translateY(20px);
    }

    to{
        opacity:1;
        transform:translateY(0);
    }

}


/* ==========================================================
   LEGACY COMPATIBILITY
   Menjaga class lama agar tidak rusak sementara
   topbar.js lama masih digunakan.
   ========================================================== */

#formTPGSearch{
    width:100%;
}


#tpgSearch{
    width:100%;
}


.hasil-nrg{
    width:100%;
    max-width:var(--container);
    margin:28px auto;
}


/* ==========================================================
   RESPONSIVE
==========================================================*/

/* ==========================================================
   DESKTOP KECIL
==========================================================*/

@media(max-width:1200px){

.topbar{

    grid-template-columns:

        250px

        1fr

        360px;

    gap:20px;

}

.portal-btn{

    font-size:16px;

}

#topbarText{

    font-size:14px;

}

}


/* ==========================================================
   LAPTOP
==========================================================*/

@media(max-width:992px){

.topbar{

    grid-template-columns:1fr;

    gap:18px;

    padding:20px;

}

.topbar-left,

.topbar-center,

.topbar-right{

    width:100%;

}

.topbar-left{

    justify-content:center;

}

.topbar-center{

    justify-content:center;

}

.topbar-right{

    justify-content:center;

}

.portal-btn{

    width:100%;

    height:60px;

}

#formTPGSearch{

    grid-template-columns:1fr 140px;

}

.mega-grid{

    grid-template-columns:repeat(2,1fr);

}

}


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

@media(max-width:768px){

.topbar{

    padding:18px;

}

.portal-btn{

    height:56px;

    font-size:15px;

}

.portal-btn i{

    font-size:18px;

}

#topbarIcon{

    font-size:20px;

}

#topbarText{

    font-size:16px;

    white-space:normal;

    text-align:center;

}

#formTPGSearch{

    grid-template-columns:1fr;

}

#formTPGSearch button{

    width:100%;

}

.mega-header{

    padding:18px 20px;

}

.mega-header h3{

    font-size:20px;

}

.mega-grid{

    grid-template-columns:1fr;

    padding:22px;

    gap:18px;

}

.mega-card{

    padding:28px 20px;

}

}


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

@media(max-width:576px){

.topbar{

    margin:20px auto;

    padding:16px;

    border-radius:20px;

}

.portal-btn{

    height:52px;

    font-size:14px;

}

.portal-btn i{

    font-size:17px;

}

#topbarText{

    font-size:13px;

    line-height:1.35;

    white-space:normal;

    overflow:visible;

    text-overflow:clip;

    text-align:center;

}

#tpgSearch{

    height:48px;

    font-size:14px;

}

#formTPGSearch button{

    height:48px;

    font-size:14px;

}

.mega-header{

    padding:16px 18px;

}

.mega-header h3{

    font-size:18px;

}

.mega-card{

    padding:24px 18px;

}

.mega-card i{

    font-size:42px;

}

.mega-card h4{

    font-size:18px;

}

.mega-card p{

    font-size:14px;

}

}


/* ==========================================================
   EXTRA SMALL
==========================================================*/

@media(max-width:380px){

.portal-btn{

    font-size:13px;

    padding:0 12px;

}

#topbarText{

font-size:12px;

        line-height:1.3;

}

#tpgSearch{

    font-size:13px;

}

#formTPGSearch button{

    font-size:13px;

}

.mega-card{

    padding:20px 16px;

}

.mega-card i{

    font-size:36px;

}

.mega-card h4{

    font-size:17px;

}

.mega-card p{

    font-size:13px;

}

}

/* ==========================================================
   TOPBAR DESKTOP - FINAL READABLE FIX
   Tujuan:
   - Teks tengah terbaca
   - Tidak dipotong menjadi ...
   - Tidak keluar dari area topbar
   - Desktop tetap satu baris jika cukup
   - Jika tidak cukup, otomatis turun baris
========================================================== */

@media (min-width: 993px){

    .topbar{
        grid-template-columns:
            235px
            minmax(0, 1fr)
            350px !important;

        gap:16px !important;
    }

    .topbar-center{
        display:flex !important;

        align-items:center !important;

        justify-content:flex-start !important;

        min-width:0 !important;

        width:100% !important;

        overflow:visible !important;
    }

    .topbar .topbar-center #topbarText{
        display:block !important;

        flex:1 1 auto !important;

        min-width:0 !important;

        width:auto !important;

        max-width:none !important;

        font-size:14px !important;

        line-height:1.35 !important;

        font-weight:700 !important;

        white-space:normal !important;

        overflow:visible !important;

        text-overflow:clip !important;

        word-break:normal !important;

        overflow-wrap:break-word !important;

        text-align:left !important;
    }

    .topbar .topbar-center #topbarIcon{
        flex:0 0 auto !important;

        font-size:20px !important;
    }

}


/* ==========================================================
   LEGACY SELECTOR COMPATIBILITY
   ========================================================== */

#formNRG{
    width:100%;
}

#nrgSearch{
    width:100%;
}

.hasil-nrg{
    width:100%;
    max-width:var(--container);
    margin:28px auto;
}


/* ==========================================================
   TOPBAR SEARCH UI — FINAL POLISH V7.1
   Fokus:
   - Form pencarian menjadi satu search card yang modern
   - Pilihan NIP / NIK / NUPTK / NRG lebih jelas
   - Input lebih nyaman dibaca
   - Tombol Cari Data lebih kuat secara visual
   - Hint pencarian lebih rapi
   - Responsive tetap aman
   CATATAN:
   HANYA CSS. Tidak mengubah fungsi / JavaScript / ID.
========================================================== */


/* ==========================================================
   SEARCH CARD
========================================================== */

.topbar-right{
    min-width:0;
}

#formTPGSearch{
    position:relative;
    width:100%;
    box-sizing:border-box;
    padding:14px;
    gap:11px;

    background:linear-gradient(
        145deg,
        #ffffff 0%,
        #f8fbff 100%
    );

    border:1px solid #dce6ef;
    border-radius:18px;

    box-shadow:
        0 8px 24px rgba(35,72,105,.07),
        0 2px 6px rgba(35,72,105,.035);
}


/* ==========================================================
   LABEL
========================================================== */

.tpg-search-label{
    margin:0 0 1px 2px;

    color:#52697d;
    font-size:12px;
    line-height:1.35;
    font-weight:800;
    letter-spacing:.1px;
}


/* ==========================================================
   IDENTITY SELECTOR
========================================================== */

.tpg-identity-selector{
    display:grid;
    grid-template-columns:repeat(4,minmax(0,1fr));
    gap:6px;
}

.tpg-identity-option{
    position:relative;

    min-width:0;
    min-height:40px;
    padding:7px 5px;

    border:1px solid #dce6ef;
    border-radius:10px;

    background:#ffffff;
    color:#607386;

    font-size:11px;
    line-height:1.2;
    font-weight:800;

    cursor:pointer;
    transition:
        transform .16s ease,
        border-color .16s ease,
        background .16s ease,
        color .16s ease,
        box-shadow .16s ease;
}

.tpg-identity-option:hover{
    transform:translateY(-1px);

    border-color:#9fc6e7;
    background:#f7fbff;
    color:var(--primary);

    box-shadow:0 4px 10px rgba(35,72,105,.06);
}

.tpg-identity-option:focus-visible{
    outline:none;

    border-color:var(--primary);

    box-shadow:
        0 0 0 3px rgba(21,101,192,.11),
        0 4px 10px rgba(35,72,105,.05);
}

.tpg-identity-option.active{
    transform:none;

    border-color:var(--primary);

    background:
        linear-gradient(
            135deg,
            var(--primary),
            var(--primary-dark)
        );

    color:var(--white);

    box-shadow:
        0 5px 12px rgba(21,101,192,.20);
}


/* ==========================================================
   INPUT + SEARCH BUTTON
========================================================== */

.tpg-search-row{
    display:grid;
    grid-template-columns:minmax(0,1fr) 124px;
    gap:8px;
    align-items:stretch;
}

#tpgSearch{
    width:100%;
    height:48px;
    box-sizing:border-box;

    padding:0 14px;

    border:1.5px solid #d5e1eb;
    border-radius:12px;

    background:#ffffff;
    color:#30465a;

    font-family:inherit;
    font-size:14px;
    line-height:1.3;
    font-weight:600;

    outline:none;

    box-shadow:
        inset 0 1px 2px rgba(35,72,105,.025);

    transition:
        border-color .18s ease,
        box-shadow .18s ease,
        background .18s ease;
}

#tpgSearch::placeholder{
    color:#98a7b4;
    font-weight:500;
}

#tpgSearch:hover{
    border-color:#b8cede;
}

#tpgSearch:focus{
    border-color:var(--primary);

    background:#ffffff;

    box-shadow:
        0 0 0 3px rgba(21,101,192,.10),
        0 4px 10px rgba(35,72,105,.045);
}


/* ==========================================================
   TOMBOL CARI DATA
========================================================== */

#formTPGSearch button{
    position:relative;

    min-width:0;
    width:100%;
    height:48px;
    box-sizing:border-box;

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

    padding:0 12px;

    border:1px solid #df8d09;
    border-radius:12px;

    background:
        linear-gradient(
            135deg,
            #f59e0b 0%,
            #ea580c 100%
        );

    color:#ffffff;

    font-family:inherit;
    font-size:13px;
    line-height:1.2;
    font-weight:850;

    letter-spacing:.05px;

    cursor:pointer;

    box-shadow:
        0 5px 12px rgba(234,88,12,.17);

    transition:
        transform .16s ease,
        box-shadow .16s ease,
        filter .16s ease;
}

#formTPGSearch button i{
    flex:0 0 auto;
    font-size:15px;
}

#formTPGSearch button:hover{
    transform:translateY(-2px);

    filter:saturate(1.04);

    box-shadow:
        0 8px 18px rgba(234,88,12,.23);
}

#formTPGSearch button:active{
    transform:translateY(0) scale(.98);

    box-shadow:
        0 3px 8px rgba(234,88,12,.17);
}

#formTPGSearch button:focus-visible{
    outline:none;

    box-shadow:
        0 0 0 3px rgba(234,88,12,.15),
        0 7px 16px rgba(234,88,12,.20);
}


/* ==========================================================
   HINT PENCARIAN
========================================================== */

.tpg-search-hint{
    display:flex;
    align-items:flex-start;
    gap:6px;

    margin:0 2px;

    color:#788a9a;

    font-size:10px;
    line-height:1.45;
    font-weight:550;
}

.tpg-search-hint::before{
    content:"ⓘ";

    flex:0 0 auto;

    color:#6e9bc0;
    font-size:11px;
    line-height:1.3;
}


/* ==========================================================
   DESKTOP — SEARCH AREA LEBIH LAPANG
========================================================== */

@media (min-width:993px){

    .topbar-right{
        align-self:stretch;
    }

    #formTPGSearch{
        min-height:100%;
        justify-content:center;
    }

}


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

@media (max-width:992px){

    .topbar-right{
        min-width:0;
    }

    #formTPGSearch{
        width:100%;
    }

    .tpg-search-row{
        grid-template-columns:minmax(0,1fr) 145px;
    }

}


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

@media (max-width:768px){

    #formTPGSearch{
        padding:13px;
        border-radius:16px;
    }

    .tpg-identity-option{
        min-height:42px;
        font-size:11px;
    }

    .tpg-search-row{
        grid-template-columns:1fr;
    }

    #tpgSearch,
    #formTPGSearch button{
        height:48px;
    }

    #formTPGSearch button{
        font-size:13px;
    }

}


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

@media (max-width:576px){

    #formTPGSearch{
        padding:12px;
        gap:10px;
        border-radius:15px;
    }

    .tpg-search-label{
        font-size:11px;
    }

    .tpg-identity-selector{
        gap:5px;
    }

    .tpg-identity-option{
        min-height:40px;
        padding:6px 3px;
        border-radius:9px;
        font-size:10px;
    }

    #tpgSearch{
        height:48px;
        padding:0 13px;
        border-radius:11px;
        font-size:14px;
    }

    #formTPGSearch button{
        height:48px;
        border-radius:11px;
        font-size:13px;
    }

    .tpg-search-hint{
        font-size:10px;
    }

}


/* ==========================================================
   EXTRA SMALL
========================================================== */

@media (max-width:380px){

    .tpg-identity-option{
        font-size:9px;
    }

    #tpgSearch{
        font-size:13px;
    }

    #formTPGSearch button{
        font-size:12px;
    }

}


/* ==========================================================
   AKHIR TOPBAR SEARCH UI V7.1
========================================================== */


/* ==========================================================
   TOPBAR SEARCH UI — V7.2 VISUAL REFINEMENT
   Fokus hasil evaluasi:
   1. Portal Kemendikdasmen: posisi lambang lebih seimbang.
   2. Tulisan bagian tengah: sedikit lebih besar dan lebih kuat.
   3. Area pencarian: diberi warna/card yang jelas.
   4. Input dan tombol pencarian: satu kesatuan visual.
   5. HANYA CSS — tidak mengubah JavaScript/fungsi.
========================================================== */


/* ==========================================================
   2. TEKS BAGIAN TENGAH
   ========================================================== */

.topbar-center{
    gap:14px !important;
}

.topbar .topbar-center #topbarText{
    font-size:16px !important;
    line-height:1.45 !important;
    font-weight:800 !important;
    letter-spacing:.05px !important;
}

.topbar .topbar-center #topbarIcon{
    font-size:23px !important;
}


/* ==========================================================
   3. SEARCH AREA — CARD BERWARNA
   ========================================================== */

.topbar-right{
    min-width:0 !important;
}

#formTPGSearch{
    position:relative !important;
    width:100% !important;
    box-sizing:border-box !important;

    display:flex !important;
    flex-direction:column !important;
    gap:10px !important;

    padding:15px !important;

    border:1px solid #c8dced !important;
    border-radius:18px !important;

    background:
        linear-gradient(
            145deg,
            #edf6ff 0%,
            #f7fbff 52%,
            #eaf4fc 100%
        ) !important;

    box-shadow:
        0 10px 26px rgba(35,72,105,.09),
        inset 0 1px 0 rgba(255,255,255,.9) !important;
}


/* garis aksen atas */
#formTPGSearch::before{
    content:"" !important;
    position:absolute !important;
    left:0 !important;
    right:0 !important;
    top:0 !important;
    height:4px !important;

    border-radius:18px 18px 0 0 !important;

    background:
        linear-gradient(
            90deg,
            #1565c0,
            #2584d6,
            #4aa5ea
        ) !important;

    pointer-events:none !important;
}


/* ==========================================================
   4. JUDUL "CEK DATA TPG"
   Jika heading berada di dalam form, ikut mendapat warna.
   ========================================================== */

#formTPGSearch h1,
#formTPGSearch h2,
#formTPGSearch h3,
#formTPGSearch h4,
#formTPGSearch .search-title,
#formTPGSearch .tpg-search-title{
    margin:0 0 1px !important;
    color:#175da9 !important;
    font-size:16px !important;
    line-height:1.3 !important;
    font-weight:900 !important;
}


/* ==========================================================
   5. LABEL PILIH IDENTITAS
   ========================================================== */

#formTPGSearch .tpg-search-label{
    display:block !important;
    margin:0 0 2px 2px !important;

    color:#536d83 !important;
    font-size:11px !important;
    line-height:1.35 !important;
    font-weight:800 !important;
}


/* ==========================================================
   6. PILIHAN NIP / NIK / NUPTK / NRG
   ========================================================== */

#formTPGSearch .tpg-identity-selector{
    width:100% !important;
    display:grid !important;
    grid-template-columns:repeat(4,minmax(0,1fr)) !important;
    gap:6px !important;
}

#formTPGSearch .tpg-identity-option{
    min-width:0 !important;
    min-height:40px !important;
    padding:7px 5px !important;

    border:1px solid #cbdcea !important;
    border-radius:10px !important;

    background:#ffffff !important;
    color:#60758a !important;

    font-family:inherit !important;
    font-size:11px !important;
    line-height:1.2 !important;
    font-weight:850 !important;

    cursor:pointer !important;

    transition:
        transform .16s ease,
        border-color .16s ease,
        background .16s ease,
        color .16s ease,
        box-shadow .16s ease !important;
}

#formTPGSearch .tpg-identity-option:hover{
    transform:translateY(-1px) !important;
    border-color:#78aeda !important;
    background:#f4faff !important;
    color:#1565c0 !important;
    box-shadow:0 4px 10px rgba(21,101,192,.09) !important;
}

#formTPGSearch .tpg-identity-option.active{
    border-color:#1565c0 !important;
    background:
        linear-gradient(
            135deg,
            #1565c0,
            #287fcb
        ) !important;
    color:#ffffff !important;
    box-shadow:0 5px 12px rgba(21,101,192,.20) !important;
}


/* ==========================================================
   7. INPUT PENCARIAN
   ========================================================== */

#formTPGSearch .tpg-search-row{
    width:100% !important;
    display:grid !important;
    grid-template-columns:minmax(0,1fr) 124px !important;
    gap:8px !important;
    align-items:stretch !important;
}

#formTPGSearch #tpgSearch{
    width:100% !important;
    height:48px !important;
    box-sizing:border-box !important;

    padding:0 14px !important;

    border:1.5px solid #bfd3e4 !important;
    border-radius:12px !important;

    background:#ffffff !important;
    color:#30465a !important;

    outline:none !important;

    font-family:inherit !important;
    font-size:14px !important;
    line-height:1.3 !important;
    font-weight:600 !important;

    box-shadow:
        inset 0 1px 2px rgba(35,72,105,.035) !important;
}

#formTPGSearch #tpgSearch::placeholder{
    color:#8a9cab !important;
    opacity:1 !important;
}

#formTPGSearch #tpgSearch:focus{
    border-color:#1565c0 !important;

    box-shadow:
        0 0 0 3px rgba(21,101,192,.12),
        0 4px 12px rgba(35,72,105,.05) !important;
}


/* ==========================================================
   8. TOMBOL CARI DATA
   ========================================================== */

#formTPGSearch .tpg-search-row button,
#formTPGSearch button[type="submit"],
#formTPGSearch button{
    height:48px !important;
    min-width:0 !important;
    box-sizing:border-box !important;

    display:inline-flex !important;
    align-items:center !important;
    justify-content:center !important;
    gap:7px !important;

    padding:0 12px !important;

    border:1px solid #d98508 !important;
    border-radius:12px !important;

    background:
        linear-gradient(
            135deg,
            #f59e0b 0%,
            #ea580c 100%
        ) !important;

    color:#ffffff !important;

    font-family:inherit !important;
    font-size:13px !important;
    line-height:1.2 !important;
    font-weight:850 !important;

    cursor:pointer !important;

    box-shadow:
        0 6px 14px rgba(234,88,12,.18) !important;

    transition:
        transform .16s ease,
        box-shadow .16s ease,
        filter .16s ease !important;
}

#formTPGSearch .tpg-search-row button:hover,
#formTPGSearch button[type="submit"]:hover,
#formTPGSearch button:hover{
    transform:translateY(-2px) !important;
    filter:saturate(1.05) !important;

    box-shadow:
        0 9px 20px rgba(234,88,12,.24) !important;
}

#formTPGSearch .tpg-search-row button:active,
#formTPGSearch button[type="submit"]:active,
#formTPGSearch button:active{
    transform:translateY(0) scale(.98) !important;
}


/* ==========================================================
   9. HINT
   ========================================================== */

#formTPGSearch .tpg-search-hint{
    display:flex !important;
    align-items:flex-start !important;
    gap:6px !important;

    margin:0 2px !important;

    color:#647d92 !important;

    font-size:10px !important;
    line-height:1.45 !important;
    font-weight:600 !important;
}

#formTPGSearch .tpg-search-hint::before{
    content:"ⓘ" !important;
    flex:0 0 auto !important;
    color:#287fcb !important;
    font-size:11px !important;
    line-height:1.3 !important;
}


/* ==========================================================
   10. MOBILE
   ========================================================== */

@media(max-width:768px){

    .topbar .topbar-center #topbarText{
        font-size:15px !important;
    }

    #formTPGSearch{
        padding:13px !important;
    }

    #formTPGSearch .tpg-search-row{
        grid-template-columns:1fr !important;
    }

    #formTPGSearch #tpgSearch,
    #formTPGSearch .tpg-search-row button,
    #formTPGSearch button{
        height:48px !important;
    }
}

@media(max-width:576px){

    .portal-btn{
        padding:0 52px !important;
    }

    .portal-btn i:first-child{
        left:15px !important;
        font-size:19px !important;
    }

    .portal-btn i:last-child{
        right:14px !important;
        font-size:19px !important;
    }

    .topbar .topbar-center #topbarText{
        font-size:14px !important;
    }

    #formTPGSearch{
        padding:12px !important;
        border-radius:15px !important;
    }

    #formTPGSearch .tpg-identity-option{
        min-height:40px !important;
        font-size:10px !important;
    }
}


/* ==========================================================
   AKHIR TOPBAR SEARCH UI V7.2
========================================================== */


/* ==========================================================
   TOPBAR SEARCH UI — V7.3
   SEARCH CARD BIRU — SELARAS DENGAN PORTAL KEMENDIKDASMEN

   Tujuan:
   - Blok pencarian menjadi satu kartu biru.
   - Warna kiri dan kanan topbar terasa satu kesatuan.
   - Input tetap putih agar mudah dibaca.
   - Tombol Cari Data tetap kontras.
   - Tidak mengubah JavaScript / fungsi / event.
========================================================== */


/* ==========================================================
   1. SEARCH CARD UTAMA
========================================================== */

#formTPGSearch{
    position:relative !important;
    width:100% !important;
    box-sizing:border-box !important;

    display:flex !important;
    flex-direction:column !important;
    gap:10px !important;

    padding:16px !important;

    border:1px solid rgba(255,255,255,.22) !important;
    border-radius:18px !important;

    background:
        linear-gradient(
            135deg,
            #1261b5 0%,
            #237fce 52%,
            #3a9be9 100%
        ) !important;

    color:#ffffff !important;

    box-shadow:
        0 10px 26px rgba(21,80,135,.18),
        inset 0 1px 0 rgba(255,255,255,.16) !important;
}

#formTPGSearch::before{
    content:"" !important;
    position:absolute !important;
    left:0 !important;
    right:0 !important;
    top:0 !important;
    height:4px !important;

    border-radius:18px 18px 0 0 !important;

    background:rgba(255,255,255,.34) !important;

    pointer-events:none !important;
}


/* ==========================================================
   2. JUDUL PENCARIAN
========================================================== */

#formTPGSearch h1,
#formTPGSearch h2,
#formTPGSearch h3,
#formTPGSearch h4,
#formTPGSearch .search-title,
#formTPGSearch .tpg-search-title{
    margin:0 !important;

    color:#ffffff !important;

    font-size:16px !important;
    line-height:1.3 !important;
    font-weight:900 !important;

    text-shadow:0 1px 2px rgba(0,0,0,.08) !important;
}

#formTPGSearch .tpg-search-label{
    margin:0 0 1px 2px !important;

    color:rgba(255,255,255,.88) !important;

    font-size:11px !important;
    line-height:1.35 !important;
    font-weight:800 !important;
}


/* ==========================================================
   3. PILIHAN NIP / NIK / NUPTK / NRG
========================================================== */

#formTPGSearch .tpg-identity-selector{
    width:100% !important;

    display:grid !important;
    grid-template-columns:repeat(4,minmax(0,1fr)) !important;
    gap:6px !important;
}

#formTPGSearch .tpg-identity-option{
    min-width:0 !important;
    min-height:40px !important;
    box-sizing:border-box !important;

    padding:7px 5px !important;

    border:1px solid rgba(255,255,255,.34) !important;
    border-radius:10px !important;

    background:rgba(255,255,255,.13) !important;
    color:#ffffff !important;

    font-family:inherit !important;
    font-size:11px !important;
    line-height:1.2 !important;
    font-weight:850 !important;

    cursor:pointer !important;

    transition:
        transform .16s ease,
        background .16s ease,
        border-color .16s ease,
        box-shadow .16s ease !important;
}

#formTPGSearch .tpg-identity-option:hover{
    transform:translateY(-1px) !important;

    border-color:rgba(255,255,255,.62) !important;
    background:rgba(255,255,255,.22) !important;

    box-shadow:
        0 4px 10px rgba(0,0,0,.08) !important;
}

#formTPGSearch .tpg-identity-option.active{
    border-color:#ffffff !important;

    background:#ffffff !important;
    color:#1769c2 !important;

    box-shadow:
        0 5px 13px rgba(0,0,0,.12) !important;
}


/* ==========================================================
   4. BARIS INPUT
========================================================== */

#formTPGSearch .tpg-search-row{
    width:100% !important;

    display:grid !important;
    grid-template-columns:minmax(0,1fr) 124px !important;
    gap:8px !important;

    align-items:stretch !important;
}


/* ==========================================================
   5. INPUT
========================================================== */

#formTPGSearch #tpgSearch{
    width:100% !important;
    height:48px !important;
    box-sizing:border-box !important;

    padding:0 14px !important;

    border:1.5px solid rgba(255,255,255,.70) !important;
    border-radius:12px !important;

    background:#ffffff !important;
    color:#30465a !important;

    outline:none !important;

    font-family:inherit !important;
    font-size:14px !important;
    line-height:1.3 !important;
    font-weight:650 !important;

    box-shadow:
        0 3px 8px rgba(0,0,0,.07),
        inset 0 1px 2px rgba(35,72,105,.035) !important;

    transition:
        border-color .18s ease,
        box-shadow .18s ease !important;
}

#formTPGSearch #tpgSearch::placeholder{
    color:#8a9cab !important;
    opacity:1 !important;
}

#formTPGSearch #tpgSearch:hover{
    border-color:#ffffff !important;
}

#formTPGSearch #tpgSearch:focus{
    border-color:#ffffff !important;

    box-shadow:
        0 0 0 3px rgba(255,255,255,.25),
        0 5px 13px rgba(0,0,0,.09) !important;
}


/* ==========================================================
   6. TOMBOL CARI DATA
========================================================== */

#formTPGSearch .tpg-search-row button,
#formTPGSearch button[type="submit"],
#formTPGSearch button{
    height:48px !important;
    min-width:0 !important;
    box-sizing:border-box !important;

    display:inline-flex !important;
    align-items:center !important;
    justify-content:center !important;
    gap:7px !important;

    padding:0 12px !important;

    border:1px solid rgba(255,255,255,.25) !important;
    border-radius:12px !important;

    background:
        linear-gradient(
            135deg,
            #f59e0b 0%,
            #ea580c 100%
        ) !important;

    color:#ffffff !important;

    font-family:inherit !important;
    font-size:13px !important;
    line-height:1.2 !important;
    font-weight:850 !important;

    cursor:pointer !important;

    box-shadow:
        0 6px 14px rgba(93,43,0,.20) !important;

    transition:
        transform .16s ease,
        box-shadow .16s ease,
        filter .16s ease !important;
}

#formTPGSearch .tpg-search-row button:hover,
#formTPGSearch button[type="submit"]:hover,
#formTPGSearch button:hover{
    transform:translateY(-2px) !important;

    filter:saturate(1.06) brightness(1.02) !important;

    box-shadow:
        0 9px 20px rgba(93,43,0,.26) !important;
}

#formTPGSearch .tpg-search-row button:active,
#formTPGSearch button[type="submit"]:active,
#formTPGSearch button:active{
    transform:translateY(0) scale(.98) !important;
}


/* ==========================================================
   7. HINT
========================================================== */

#formTPGSearch .tpg-search-hint{
    display:flex !important;
    align-items:flex-start !important;
    gap:6px !important;

    margin:0 2px !important;

    color:rgba(255,255,255,.86) !important;

    font-size:10px !important;
    line-height:1.45 !important;
    font-weight:600 !important;
}

#formTPGSearch .tpg-search-hint::before{
    content:"ⓘ" !important;

    flex:0 0 auto !important;

    color:rgba(255,255,255,.90) !important;

    font-size:11px !important;
    line-height:1.3 !important;
}


/* ==========================================================
   8. RESPONSIVE
========================================================== */

@media(max-width:768px){

    #formTPGSearch{
        padding:14px !important;
        border-radius:16px !important;
    }

    #formTPGSearch .tpg-search-row{
        grid-template-columns:1fr !important;
    }

    #formTPGSearch #tpgSearch,
    #formTPGSearch .tpg-search-row button,
    #formTPGSearch button{
        height:48px !important;
    }
}

@media(max-width:576px){

    #formTPGSearch{
        padding:12px !important;
        gap:9px !important;
        border-radius:15px !important;
    }

    #formTPGSearch h1,
    #formTPGSearch h2,
    #formTPGSearch h3,
    #formTPGSearch h4,
    #formTPGSearch .search-title,
    #formTPGSearch .tpg-search-title{
        font-size:15px !important;
    }

    #formTPGSearch .tpg-identity-option{
        min-height:40px !important;
        font-size:10px !important;
    }

    #formTPGSearch #tpgSearch{
        font-size:14px !important;
    }
}


/* ==========================================================
   AKHIR TOPBAR SEARCH UI V7.3
========================================================== */


/* ==========================================================
   TOPBAR SEARCH UI — V7.4 FIX
   MASALAH YANG DITEMUKAN:
   CSS V7.3 mengandalkan #formTPGSearch sebagai pembungkus.
   Pada struktur tampilan yang sedang dipakai, area pencarian
   ternyata tidak selalu berada di dalam elemen tersebut.

   SOLUSI:
   - Gunakan :has(#tpgSearch) sebagai fallback.
   - Warnai parent nyata yang memuat input pencarian.
   - Tetap dukung #formTPGSearch jika elemen tersebut ada.
   - Tidak mengubah JavaScript / fungsi / event.
========================================================== */


/* ==========================================================
   1. PARENT NYATA AREA PENCARIAN
   :has() membuat CSS mengikuti struktur DOM aktual.
========================================================== */

.topbar-right:has(#tpgSearch){
    position:relative !important;
    min-width:0 !important;
    box-sizing:border-box !important;

    padding:15px !important;

    border:1px solid rgba(255,255,255,.22) !important;
    border-radius:18px !important;

    background:
        linear-gradient(
            135deg,
            #1261b5 0%,
            #237fce 52%,
            #3a9be9 100%
        ) !important;

    box-shadow:
        0 10px 26px rgba(21,80,135,.18),
        inset 0 1px 0 rgba(255,255,255,.16) !important;
}

.topbar-right:has(#tpgSearch)::before{
    content:"" !important;

    position:absolute !important;
    left:0 !important;
    right:0 !important;
    top:0 !important;

    height:4px !important;

    border-radius:18px 18px 0 0 !important;

    background:rgba(255,255,255,.34) !important;

    pointer-events:none !important;
}


/* ==========================================================
   2. FORM — JIKA ADA
========================================================== */

.topbar-right:has(#tpgSearch) #formTPGSearch{
    position:relative !important;
    z-index:1 !important;

    width:100% !important;
    box-sizing:border-box !important;

    padding:0 !important;
    margin:0 !important;

    border:0 !important;
    border-radius:0 !important;

    background:transparent !important;
    box-shadow:none !important;
}


/* ==========================================================
   3. TEKS DI AREA PENCARIAN
========================================================== */

.topbar-right:has(#tpgSearch) .tpg-search-label{
    color:rgba(255,255,255,.90) !important;
    font-size:11px !important;
    font-weight:800 !important;
}

.topbar-right:has(#tpgSearch) .tpg-search-hint{
    color:rgba(255,255,255,.88) !important;
    font-size:10px !important;
}

.topbar-right:has(#tpgSearch) .tpg-search-hint::before{
    color:#ffffff !important;
}


/* ==========================================================
   4. TOMBOL IDENTITAS
========================================================== */

.topbar-right:has(#tpgSearch) .tpg-identity-selector{
    position:relative !important;
    z-index:2 !important;

    display:grid !important;
    grid-template-columns:repeat(4,minmax(0,1fr)) !important;
    gap:6px !important;
}

.topbar-right:has(#tpgSearch) .tpg-identity-option{
    min-height:40px !important;

    border:1px solid rgba(255,255,255,.38) !important;
    border-radius:10px !important;

    background:rgba(255,255,255,.13) !important;
    color:#ffffff !important;
}

.topbar-right:has(#tpgSearch) .tpg-identity-option:hover{
    border-color:rgba(255,255,255,.68) !important;
    background:rgba(255,255,255,.23) !important;
    color:#ffffff !important;
}

.topbar-right:has(#tpgSearch) .tpg-identity-option.active{
    border-color:#ffffff !important;
    background:#ffffff !important;
    color:#1769c2 !important;
}


/* ==========================================================
   5. INPUT
========================================================== */

.topbar-right:has(#tpgSearch) #tpgSearch{
    position:relative !important;
    z-index:2 !important;

    width:100% !important;
    height:48px !important;
    box-sizing:border-box !important;

    border:1.5px solid rgba(255,255,255,.72) !important;
    border-radius:12px !important;

    background:#ffffff !important;
    color:#30465a !important;

    font-size:14px !important;
    font-weight:650 !important;

    box-shadow:
        0 3px 8px rgba(0,0,0,.08) !important;
}

.topbar-right:has(#tpgSearch) #tpgSearch:focus{
    border-color:#ffffff !important;

    box-shadow:
        0 0 0 3px rgba(255,255,255,.25),
        0 5px 13px rgba(0,0,0,.10) !important;
}


/* ==========================================================
   6. BUTTON CARI DATA
========================================================== */

.topbar-right:has(#tpgSearch) #formTPGSearch button,
.topbar-right:has(#tpgSearch) .tpg-search-row button{
    position:relative !important;
    z-index:2 !important;

    height:48px !important;
    box-sizing:border-box !important;

    border:1px solid rgba(255,255,255,.30) !important;
    border-radius:12px !important;

    background:
        linear-gradient(
            135deg,
            #f59e0b 0%,
            #ea580c 100%
        ) !important;

    color:#ffffff !important;

    font-size:13px !important;
    font-weight:850 !important;

    box-shadow:
        0 6px 14px rgba(93,43,0,.20) !important;
}


/* ==========================================================
   7. JIKA FORM TIDAK ADA
   Aturan fallback untuk elemen pencarian yang langsung
   berada di .topbar-right.
========================================================== */

.topbar-right:has(> #tpgSearch) > #tpgSearch{
    margin-top:8px !important;
}

.topbar-right:has(> #tpgSearch) > .tpg-search-label{
    display:block !important;
    margin-bottom:5px !important;
}

.topbar-right:has(> #tpgSearch) > .tpg-search-hint{
    margin-top:8px !important;
}


/* ==========================================================
   8. RESPONSIVE
========================================================== */

@media(max-width:768px){

    .topbar-right:has(#tpgSearch){
        padding:14px !important;
        border-radius:16px !important;
    }

    .topbar-right:has(#tpgSearch) .tpg-search-row{
        grid-template-columns:1fr !important;
    }
}

@media(max-width:576px){

    .topbar-right:has(#tpgSearch){
        padding:12px !important;
        border-radius:15px !important;
    }

    .topbar-right:has(#tpgSearch) .tpg-identity-option{
        min-height:40px !important;
        font-size:10px !important;
    }
}


/* ==========================================================
   AKHIR TOPBAR SEARCH UI V7.4 FIX
========================================================== */


/* ==========================================================
   TOPBAR V8.3 — CLEAN FINAL LAYOUT
   Tujuan:
   - Membuka lebar Topbar sampai hampir seluruh area halaman.
   - Komposisi desktop: ±55% informasi / ±45% pencarian.
   - Kartu pencarian memakai seluruh lebar kolom kanan.
   - Input identitas mendapat ruang maksimal.
   - Tidak ada lagi aturan V7.x/V8.x yang saling bertumpuk.
   - Portal Kemendikdasmen tidak lagi berada di Topbar.
   - HANYA CSS: tidak mengubah HTML / JavaScript / fungsi.
========================================================== */


/* ==========================================================
   1. TOPBAR — GUNAKAN LEBAR HALAMAN
========================================================== */

.topbar{
    width:calc(100% - 32px) !important;
    max-width:none !important;

    margin:30px auto !important;
    padding:16px 18px !important;
    box-sizing:border-box !important;

    display:grid !important;

    /* 55% kiri — 45% kanan */
    grid-template-columns:
        minmax(0,1.22fr)
        minmax(0,1fr) !important;

    gap:18px !important;

    align-items:stretch !important;

    background:var(--white) !important;
    border:1px solid var(--border) !important;
    border-radius:var(--radius-xl) !important;

    box-shadow:var(--shadow-md) !important;
}


/* ==========================================================
   2. KIRI — KALIMAT BERGANTIAN
========================================================== */

.topbar-left{
    width:100% !important;
    min-width:0 !important;
    box-sizing:border-box !important;

    display:flex !important;
    align-items:center !important;
    justify-content:flex-start !important;
    flex-wrap:nowrap !important;
    gap:14px !important;

    padding:18px 22px !important;

    overflow:hidden !important;

    border:1px solid #d8e6f2 !important;
    border-radius:18px !important;

    background:
        linear-gradient(
            135deg,
            #f7fbff 0%,
            #edf6ff 100%
        ) !important;

    box-shadow:
        inset 0 1px 0 rgba(255,255,255,.95),
        0 5px 14px rgba(35,72,105,.05) !important;
}

.topbar-left #topbarIcon{
    flex:0 0 42px !important;

    width:42px !important;
    height:42px !important;

    display:flex !important;
    align-items:center !important;
    justify-content:center !important;

    border-radius:12px !important;

    background:
        linear-gradient(
            135deg,
            #1565c0,
            #2d86d3
        ) !important;

    color:#ffffff !important;
    font-size:21px !important;

    box-shadow:
        0 5px 12px rgba(21,101,192,.18) !important;
}

.topbar-left #topbarText{
    flex:1 1 auto !important;

    width:auto !important;
    min-width:0 !important;
    max-width:none !important;

    color:#155da8 !important;

    font-size:17px !important;
    line-height:1.35 !important;
    font-weight:800 !important;

    white-space:nowrap !important;
    overflow:hidden !important;
    text-overflow:ellipsis !important;
}


/* ==========================================================
   3. KANAN — KARTU PENCARIAN
========================================================== */

.topbar-right{
    width:100% !important;
    min-width:0 !important;
    box-sizing:border-box !important;

    display:flex !important;
    align-items:stretch !important;
    justify-content:stretch !important;
}

.topbar-right #formNRG,
.topbar-right #formTPGSearch{
    width:100% !important;
    min-width:0 !important;
    max-width:none !important;
    flex:1 1 auto !important;
    box-sizing:border-box !important;

    display:flex !important;
    flex-direction:column !important;
    justify-content:center !important;

    gap:10px !important;

    padding:15px !important;

    border:1px solid #b9d5eb !important;
    border-radius:18px !important;

    background:
        linear-gradient(
            145deg,
            #1261b5 0%,
            #237fce 55%,
            #3b9be7 100%
        ) !important;

    color:#ffffff !important;

    box-shadow:
        0 9px 22px rgba(21,80,135,.16),
        inset 0 1px 0 rgba(255,255,255,.20) !important;
}

.topbar-right #formNRG::before,
.topbar-right #formTPGSearch::before{
    content:"" !important;

    position:absolute !important;
    left:0 !important;
    right:0 !important;
    top:0 !important;

    height:4px !important;

    border-radius:18px 18px 0 0 !important;

    background:rgba(255,255,255,.42) !important;

    pointer-events:none !important;
}


/* ==========================================================
   4. INPUT — MANFAATKAN LEBAR KARTU
========================================================== */

.topbar-right #jenisIdentitasTPG{
    width:100% !important;
    height:42px !important;
    box-sizing:border-box !important;

    padding:0 12px !important;

    border:1px solid rgba(255,255,255,.55) !important;
    border-radius:10px !important;

    background:#ffffff !important;
    color:#38546b !important;

    font-family:inherit !important;
    font-size:12px !important;
    font-weight:800 !important;

    outline:none !important;
}

.topbar-right .tpg-search-row{
    width:100% !important;
    min-width:0 !important;

    display:grid !important;

    /* Input mendapat hampir seluruh ruang */
    grid-template-columns:
        minmax(0,1fr)
        112px !important;

    gap:8px !important;

    align-items:stretch !important;
}

.topbar-right #nomorIdentitasTPG,
.topbar-right #tpgSearch{
    width:100% !important;
    min-width:0 !important;
    height:48px !important;
    box-sizing:border-box !important;

    padding:0 14px !important;

    border:1.5px solid #d6e5f1 !important;
    border-radius:12px !important;

    background:#ffffff !important;
    color:#30465a !important;

    font-family:inherit !important;
    font-size:14px !important;
    font-weight:600 !important;

    outline:none !important;

    box-shadow:
        0 2px 7px rgba(0,0,0,.06) !important;
}

.topbar-right #nomorIdentitasTPG::placeholder,
.topbar-right #tpgSearch::placeholder{
    color:#8a9cab !important;
    opacity:1 !important;
}


/* ==========================================================
   5. TOMBOL CARI DATA
========================================================== */

.topbar-right #formNRG button,
.topbar-right #formTPGSearch button{
    width:100% !important;
    height:48px !important;
    min-width:0 !important;
    box-sizing:border-box !important;

    display:inline-flex !important;
    align-items:center !important;
    justify-content:center !important;
    gap:7px !important;

    padding:0 10px !important;

    border:1px solid #d98508 !important;
    border-radius:12px !important;

    background:
        linear-gradient(
            135deg,
            #f59e0b 0%,
            #ea580c 100%
        ) !important;

    color:#ffffff !important;

    font-family:inherit !important;
    font-size:13px !important;
    font-weight:850 !important;

    cursor:pointer !important;

    box-shadow:
        0 6px 14px rgba(234,88,12,.20) !important;

    transition:
        transform .16s ease,
        box-shadow .16s ease,
        filter .16s ease !important;
}


/* ==========================================================
   6. JUDUL & HINT
========================================================== */

.topbar-right .tpg-search-title{
    margin:0 !important;

    color:#ffffff !important;

    font-size:15px !important;
    line-height:1.3 !important;
    font-weight:850 !important;
}

.topbar-right .tpg-search-label{
    margin:0 0 1px 2px !important;

    color:rgba(255,255,255,.90) !important;

    font-size:11px !important;
    font-weight:800 !important;
}

.topbar-right .tpg-search-help,
.topbar-right .tpg-search-hint{
    margin:0 2px !important;

    color:rgba(255,255,255,.88) !important;

    font-size:10px !important;
    line-height:1.4 !important;
    font-weight:600 !important;
}


/* ==========================================================
   7. DESKTOP BESAR
========================================================== */

@media (min-width:1300px){

    .topbar{
        width:calc(100% - 40px) !important;

        grid-template-columns:
            minmax(0,1.22fr)
            minmax(0,1fr) !important;

        gap:20px !important;
    }

    .topbar-left #topbarText{
        font-size:18px !important;
    }

    .topbar-right .tpg-search-row{
        grid-template-columns:
            minmax(0,1fr)
            116px !important;
    }

}


/* ==========================================================
   8. LAPTOP
========================================================== */

@media (min-width:993px) and (max-width:1200px){

    .topbar{
        width:calc(100% - 28px) !important;

        grid-template-columns:
            minmax(0,1.18fr)
            minmax(0,1fr) !important;

        gap:15px !important;
    }

    .topbar-left #topbarText{
        font-size:16px !important;
    }

    .topbar-right .tpg-search-row{
        grid-template-columns:
            minmax(0,1fr)
            104px !important;
    }

}


/* ==========================================================
   9. TABLET
========================================================== */

@media (max-width:992px){

    .topbar{
        width:calc(100% - 24px) !important;
        max-width:none !important;

        grid-template-columns:1fr !important;
        gap:14px !important;
    }

    .topbar-right .tpg-search-row{
        grid-template-columns:
            minmax(0,1fr)
            124px !important;
    }

}


/* ==========================================================
   10. MOBILE
========================================================== */

@media (max-width:768px){

    .topbar{
        width:calc(100% - 20px) !important;
        margin:20px auto !important;
        padding:13px !important;

        border-radius:17px !important;
    }

    .topbar-left{
        min-height:70px !important;
        padding:13px 15px !important;
        border-radius:15px !important;
    }

    .topbar-left #topbarIcon{
        flex-basis:38px !important;
        width:38px !important;
        height:38px !important;
        font-size:19px !important;
    }

    .topbar-left #topbarText{
        font-size:15px !important;
        line-height:1.38 !important;
        white-space:normal !important;
    }

    .topbar-right #formNRG,
    .topbar-right #formTPGSearch{
        padding:13px !important;
        border-radius:16px !important;
    }

    .topbar-right .tpg-search-row{
        grid-template-columns:1fr !important;
    }

}


/* ==========================================================
   11. SMALL MOBILE
========================================================== */

@media (max-width:576px){

    .topbar{
        width:calc(100% - 16px) !important;
        padding:11px !important;
    }

    .topbar-left{
        padding:12px 13px !important;
        gap:10px !important;
    }

    .topbar-left #topbarIcon{
        flex-basis:36px !important;
        width:36px !important;
        height:36px !important;
        font-size:18px !important;
    }

    .topbar-left #topbarText{
        font-size:14px !important;
    }

    .topbar-right #formNRG,
    .topbar-right #formTPGSearch{
        padding:12px !important;
        gap:9px !important;
        border-radius:14px !important;
    }

    .topbar-right #nomorIdentitasTPG,
    .topbar-right #tpgSearch{
        height:46px !important;
        font-size:13px !important;
    }

    .topbar-right #formNRG button,
    .topbar-right #formTPGSearch button{
        height:46px !important;
    }

}


/* ==========================================================
   AKHIR TOPBAR V8.3
========================================================== */


/* ==========================================================
   TOPBAR V8.4 — SEARCH AREA WIDTH FIX
   Masalah V8.3:
   Kartu pencarian secara visual masih terlalu kecil walaupun
   kolom grid sudah diperbesar.

   V8.4:
   - Kolom kanan diberi lebar nyata.
   - Desktop besar: 700–760px.
   - Input NIP mendapat ruang lebih luas.
   - Bagian kiri tetap fleksibel.
   - Tidak mengubah fungsi / JavaScript.
========================================================== */


/* ==========================================================
   DESKTOP — KARTU PENCARIAN 700–760px
========================================================== */

@media (min-width:1201px){

    .topbar{
        grid-template-columns:
            minmax(0,1fr)
            minmax(700px,760px) !important;

        gap:18px !important;
    }

    .topbar-right{
        width:100% !important;
        min-width:0 !important;
        max-width:none !important;

        grid-column:2 !important;
    }

    .topbar-right #formNRG,
    .topbar-right #formTPGSearch{
        width:100% !important;
        min-width:0 !important;
        max-width:none !important;
    }

    .topbar-right .tpg-search-row{
        width:100% !important;
        grid-template-columns:
            minmax(0,1fr)
            116px !important;
    }

}


/* ==========================================================
   LAPTOP — 580–660px
========================================================== */

@media (min-width:993px) and (max-width:1200px){

    .topbar{
        grid-template-columns:
            minmax(0,1fr)
            minmax(580px,660px) !important;

        gap:16px !important;
    }

    .topbar-right{
        width:100% !important;
        min-width:0 !important;
        max-width:none !important;
    }

    .topbar-right #formNRG,
    .topbar-right #formTPGSearch{
        width:100% !important;
        max-width:none !important;
    }

    .topbar-right .tpg-search-row{
        grid-template-columns:
            minmax(0,1fr)
            108px !important;
    }

}


/* ==========================================================
   INPUT — JANGAN BATASI LEBAR NOMOR IDENTITAS
========================================================== */

@media (min-width:993px){

    .topbar-right #nomorIdentitasTPG,
    .topbar-right #tpgSearch{
        width:100% !important;
        min-width:0 !important;
        box-sizing:border-box !important;
    }

}


/* ==========================================================
   TABLET / MOBILE — KEMBALI NORMAL
========================================================== */

@media (max-width:992px){

    .topbar{
        grid-template-columns:1fr !important;
    }

    .topbar-right{
        width:100% !important;
        max-width:none !important;
    }

    .topbar-right #formNRG,
    .topbar-right #formTPGSearch{
        width:100% !important;
        max-width:none !important;
    }

}

@media (max-width:768px){

    .topbar-right .tpg-search-row{
        grid-template-columns:1fr !important;
    }

}


/* ==========================================================
   AKHIR TOPBAR V8.4
========================================================== */


/* ==========================================================
   TOPBAR V8.5 — FIX SEBENARNYA PADA WRAPPER PENCARIAN

   Dari struktur index:
       .topbar-right
           └── .tpg-search-wrap
                 └── #formNRG

   Masalah sebelumnya:
   Lebar #formNRG sudah 100%, tetapi wrapper
   .tpg-search-wrap belum dibuat 100%. Akibatnya kartu
   pencarian mengikuti lebar intrinsik sekitar 300px dan
   menyisakan ruang kosong besar di sebelah kanan.

   SOLUSI:
   - .tpg-search-wrap dibuat 100% lebar.
   - max-width dihapus.
   - form mengisi wrapper.
   - Tidak mengubah JavaScript / fungsi.
========================================================== */


/* ==========================================================
   1. WRAPPER PENCARIAN — INI KUNCI PERBAIKAN
========================================================== */

.topbar-right .tpg-search-wrap{
    width:100% !important;
    min-width:0 !important;
    max-width:none !important;

    box-sizing:border-box !important;

    display:flex !important;
    flex-direction:column !important;
    align-items:stretch !important;
    justify-content:center !important;
}


/* ==========================================================
   2. FORM AKTUAL
========================================================== */

.topbar-right .tpg-search-wrap #formNRG{
    width:100% !important;
    min-width:0 !important;
    max-width:none !important;

    flex:1 1 auto !important;
    box-sizing:border-box !important;
}


/* ==========================================================
   3. BARIS INPUT
   Struktur aktual index:
   SELECT + INPUT + BUTTON
========================================================== */

.topbar-right .tpg-search-wrap #formNRG .tpg-search-row{
    width:100% !important;
    min-width:0 !important;

    display:grid !important;

    grid-template-columns:
        116px
        minmax(0,1fr)
        116px !important;

    gap:8px !important;

    align-items:stretch !important;
}


/* ==========================================================
   4. SEMUA ELEMEN FORM MENGIKUTI LEBAR BARIS
========================================================== */

.topbar-right .tpg-search-wrap #jenisIdentitasTPG,
.topbar-right .tpg-search-wrap #nomorIdentitasTPG,
.topbar-right .tpg-search-wrap .tpg-search-row button{
    min-width:0 !important;
    width:100% !important;
    box-sizing:border-box !important;
}


/* ==========================================================
   5. DESKTOP BESAR
========================================================== */

@media (min-width:1300px){

    .topbar-right .tpg-search-wrap #formNRG .tpg-search-row{
        grid-template-columns:
            120px
            minmax(0,1fr)
            120px !important;
    }

}


/* ==========================================================
   6. LAPTOP
========================================================== */

@media (min-width:993px) and (max-width:1200px){

    .topbar-right .tpg-search-wrap #formNRG .tpg-search-row{
        grid-template-columns:
            105px
            minmax(0,1fr)
            105px !important;
    }

}


/* ==========================================================
   7. TABLET
========================================================== */

@media (max-width:992px){

    .topbar-right .tpg-search-wrap{
        width:100% !important;
        max-width:none !important;
    }

    .topbar-right .tpg-search-wrap #formNRG{
        width:100% !important;
        max-width:none !important;
    }

    .topbar-right .tpg-search-wrap #formNRG .tpg-search-row{
        grid-template-columns:
            120px
            minmax(0,1fr)
            120px !important;
    }

}


/* ==========================================================
   8. MOBILE
========================================================== */

@media (max-width:768px){

    .topbar-right .tpg-search-wrap #formNRG .tpg-search-row{
        grid-template-columns:1fr !important;
    }

}


/* ==========================================================
   AKHIR TOPBAR V8.5
========================================================== */

/* ==========================================================
   TOPBAR V8.6 — LEBAR SEJAJAR DENGAN DIVISI LAIN
   Topbar mengikuti --container agar tepinya sejajar dengan
   section/divisi lain. Kartu pencarian tetap 100% pada
   kolom kanannya. Tidak mengubah fungsi / JavaScript.
========================================================== */

.topbar{
    width:100% !important;
    max-width:var(--container) !important;
    margin:30px auto !important;
    box-sizing:border-box !important;
}

@media (min-width:993px){

    .topbar{
        width:100% !important;
        max-width:var(--container) !important;

        grid-template-columns:
            minmax(0,1.22fr)
            minmax(0,1fr) !important;

        gap:18px !important;
    }

    .topbar-right,
    .topbar-right .tpg-search-wrap{
        width:100% !important;
        min-width:0 !important;
        max-width:none !important;
    }

    .topbar-right .tpg-search-wrap #formNRG,
    .topbar-right #formTPGSearch{
        width:100% !important;
        min-width:0 !important;
        max-width:none !important;
    }
}

@media (min-width:1300px){
    .topbar{
        width:100% !important;
        max-width:var(--container) !important;
    }
}

@media (min-width:993px) and (max-width:1200px){
    .topbar{
        width:100% !important;
        max-width:var(--container) !important;

        grid-template-columns:
            minmax(0,1.18fr)
            minmax(0,1fr) !important;
    }
}

@media (max-width:992px){
    .topbar{
        width:100% !important;
        max-width:var(--container) !important;
        grid-template-columns:1fr !important;
    }
}

/* ==========================================================
   AKHIR TOPBAR V8.6
========================================================== */
