/* =====================================================
           HALAMAN PENGELOLAAN DATA
        ===================================================== */

        .pengelolaan-page {
            position: relative;
            isolation: isolate;
            min-height: 100vh;
            padding: 92px 25px 70px;
            background: linear-gradient(100deg, rgba(234,247,247,.97) 0%, rgba(234,247,247,.90) 43%, rgba(234,247,247,.48) 100%), url("assets/gedung-hero.jpg") right center / cover fixed;
            overflow: hidden;
        }

        .pengelolaan-page::before {
            content: ""; position: absolute; z-index: -1; inset: auto -5% -55px -5%; height: 190px;
            background: radial-gradient(85% 100% at 12% 100%, #008c91 0 48%, transparent 49%),
                        radial-gradient(90% 110% at 58% 120%, rgba(0,188,190,.78) 0 48%, transparent 49%);
            pointer-events: none;
        }

        .pengelolaan-container {
            width: 100%;
            max-width: 1450px;   /* sama dengan halaman RPK */
            margin: 0 auto;
        }

        /* Lebar samping kiri-kanan disamakan dengan halaman RPK
           (RPK: max-width 1450px, padding 24px, tampilan zoom .86) */
        @media screen and (min-width: 801px) {
            .pengelolaan-page {
                padding-left: 0;
                padding-right: 0;
            }
            .pengelolaan-container {
                padding: 0 24px;
                box-sizing: border-box;
                zoom: .86;
            }
        }

        .pengelolaan-header {
            margin-bottom: 25px;
        }

        .pengelolaan-header h1 {
            margin: 0;
            color: #006B70;
            font-size: 28px;
            font-weight: 700;
        }

        .pengelolaan-header p {
            margin: 7px 0 0;
            color: #426D7B;
            font-size: 14px;
        }

        .admin-info {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            margin-top: 14px;
            padding: 8px 14px;
            border-radius: 20px;
            background: rgba(0, 140, 145, 0.10);
            color: #006B70;
            font-size: 13px;
            font-weight: 600;
        }

        /* CARD UTAMA */

        .password-card {
            position: relative;
            background: rgba(255, 255, 255, .91);
            -webkit-backdrop-filter: blur(10px);
            backdrop-filter: blur(10px);
            border-radius: 22px;
            padding: 25px;
            box-shadow: 0 14px 38px rgba(10, 66, 78, .13);
            border: 1px solid rgba(255,255,255,.82);
        }

        .password-card-title {
            display: flex;
            align-items: center;
            gap: 12px;
            margin-bottom: 22px;
        }

        .password-card-icon {
            width: 45px;
            height: 45px;
            border-radius: 12px;
            background: #DFF2F3;
            color: #006B70;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 22px;
        }

        .password-card-title h2 {
            margin: 0;
            color: #073B49;
            font-size: 19px;
        }

        .password-card-title p {
            margin: 3px 0 0;
            color: #426D7B;
            font-size: 12px;
        }

        /* DAFTAR USER */

        .user-list {
            display: grid;
            gap: 14px;
        }

        .user-row {
            display: grid;
            grid-template-columns: 1.4fr 1fr auto;
            align-items: center;
            gap: 18px;
            padding: 17px 18px;
            border: 1px solid #e5e7eb;
            border-radius: 13px;
            background: #fbfbfc;
            transition: 0.2s ease;
        }

        .user-row:hover {
            border-color: rgba(0, 140, 145, 0.35);
            box-shadow: 0 5px 15px rgba(0, 140, 145, 0.08);
        }

        .user-name {
            display: flex;
            align-items: center;
            gap: 11px;
        }

        .user-avatar {
            width: 38px;
            height: 38px;
            border-radius: 50%;
            background: linear-gradient(135deg, #008C91, #00969B);
            color: white;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 16px;
            flex-shrink: 0;
        }

        .user-name strong {
            display: block;
            color: #073B49;
            font-size: 14px;
        }

        .user-name small {
            color: #426D7B;
            font-size: 11px;
        }

        .password-status {
            color: #426D7B;
            font-size: 12px;
        }

        .password-status span {
            display: inline-flex;
            align-items: center;
            gap: 5px;
            padding: 6px 10px;
            background: #EAF5F6;
            border-radius: 8px;
        }

        .btn-ubah-password {
            border: none;
            padding: 9px 15px;
            border-radius: 9px;
            background: #008C91;
            color: white;
            font-size: 12px;
            font-weight: 600;
            cursor: pointer;
            transition: 0.2s ease;
        }

        .btn-ubah-password:hover {
            background: #006B70;
            transform: translateY(-1px);
        }

        /* MODAL */

        .password-modal {
            position: fixed;
            inset: 0;
            display: none;
            align-items: center;
            justify-content: center;
            background: rgba(0, 60, 68, 0.48);
            backdrop-filter: blur(3px);
            z-index: 99999;
            padding: 20px;
        }

        .password-modal.show {
            display: flex;
        }

        .password-modal-box {
            width: 100%;
            max-width: 420px;
            background: white;
            border-radius: 18px;
            padding: 27px;
            box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
            animation: modalMasuk 0.25s ease;
        }

        @keyframes modalMasuk {
            from {
                opacity: 0;
                transform: translateY(12px) scale(0.97);
            }

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

        .password-modal-icon {
            width: 50px;
            height: 50px;
            border-radius: 14px;
            background: #DFF2F3;
            color: #006B70;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 23px;
            margin-bottom: 15px;
        }

        .password-modal-box h3 {
            margin: 0;
            color: #073B49;
            font-size: 20px;
        }

        .password-modal-box p {
            margin: 7px 0 20px;
            color: #426D7B;
            font-size: 13px;
            line-height: 1.5;
        }

        .password-input-group label {
            display: block;
            margin-bottom: 7px;
            color: #1F5560;
            font-size: 12px;
            font-weight: 600;
        }

        .password-input-group input {
            width: 100%;
            padding: 11px 13px;
            border: 1px solid #dee1e5;
            border-radius: 9px;
            outline: none;
            font-size: 14px;
            box-sizing: border-box;
        }

        .password-input-group input:focus {
            border-color: #008C91;
            box-shadow: 0 0 0 3px rgba(0, 140, 145, 0.12);
        }

        .password-modal-buttons {
            display: flex;
            justify-content: flex-end;
            gap: 9px;
            margin-top: 22px;
        }

        .btn-batal {
            border: none;
            padding: 10px 16px;
            border-radius: 9px;
            background: #D5EEF0;
            color: #1F5560;
            font-weight: 600;
            cursor: pointer;
        }

        .btn-simpan-password {
            border: none;
            padding: 10px 17px;
            border-radius: 9px;
            background: #008C91;
            color: white;
            font-weight: 600;
            cursor: pointer;
        }

        .btn-simpan-password:hover {
            background: #006B70;
        }

        /* NOTIFIKASI */

        .password-notification {
            position: fixed;
            right: 25px;
            bottom: 25px;
            z-index: 100000;
            min-width: 280px;
            max-width: 380px;
            padding: 15px 18px;
            background: white;
            border-left: 4px solid #008C91;
            border-radius: 12px;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
            display: none;
            animation: notifMasuk 0.3s ease;
        }

        .password-notification.show {
            display: block;
        }

        .password-notification strong {
            display: block;
            color: #073B49;
            font-size: 14px;
            margin-bottom: 3px;
        }

        .password-notification span {
            color: #426D7B;
            font-size: 12px;
        }

        @keyframes notifMasuk {
            from {
                opacity: 0;
                transform: translateY(12px);
            }

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

        /* Layout header halaman (badge + judul + tombol di kanan), sama seperti asli Sintast */
.judul-baris {
    display: flex; align-items: flex-end; justify-content: space-between; gap: 16px;
    margin-bottom: 22px; flex-wrap: wrap;
}
.section-title span {
    display: inline-block; padding: 5px 14px; border-radius: 999px;
    background: rgba(0,140,145,.12); color: #006B70;
    font-size: 10.5px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase;
    margin-bottom: 10px;
}
.section-title h2 {
    margin: 0; color: #073B49; font-size: 28px; font-weight: 800; letter-spacing: -.02em;
}
.section-title p {
    margin: 6px 0 0; color: #426D7B; font-size: 13.5px; max-width: 560px; line-height: 1.5;
}
.btn-tambah-user {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 11px 22px; border-radius: 999px; text-decoration: none;
    font: 700 13.5px var(--gab-font, "Plus Jakarta Sans", "Segoe UI", sans-serif);
    flex-shrink: 0;
}
.btn-tambah-user .plus-ikon { font-size: 17px; font-weight: 800; line-height: 1; }

/* Section ubah username / password dalam modal Ubah Akun */
.edit-section { margin-bottom: 16px; padding-bottom: 14px; border-bottom: 1px dashed #d5e6e8; }
.edit-section:last-child { margin-bottom: 0; padding-bottom: 0; border-bottom: 0; }
.edit-section-title { font-size: 12.5px; font-weight: 800; color: #006B70; margin-bottom: 10px; letter-spacing: .02em; }

/* RESPONSIVE */

        @media (max-width: 700px) {

            .pengelolaan-page {
                padding: 100px 15px 40px;
            }

            .password-card {
                padding: 18px;
            }

            .user-row {
                grid-template-columns: 1fr;
                gap: 12px;
            }

            .btn-ubah-password {
                width: 100%;
            }

            .password-status {
                display: none;
            }

            .password-notification {
                left: 15px;
                right: 15px;
                bottom: 15px;
                min-width: auto;
            }
        }

/* =====================================================
   POSISI MODAL PASSWORD
===================================================== */

.password-modal-box {
    width: 100%;
    max-width: 460px;
    box-sizing: border-box;

    display: flex;
    flex-direction: column;
    align-items: stretch;
}

/* ICON DI TENGAH */
.password-modal-icon {
    align-self: center;
    margin-bottom: 12px;
}

/* JUDUL DI TENGAH */
.password-modal-box h3 {
    text-align: center;
    margin: 0 0 7px;
}

/* KETERANGAN DI BAWAH JUDUL */
.password-modal-box > p {
    text-align: center;
    margin: 0 0 18px;
}

/* INPUT PASSWORD */
.password-input-group {
    width: 100%;
    box-sizing: border-box;
    margin-top: 0 !important;
    margin-bottom: 14px;
}

/* INPUT */
.password-input-group input {
    width: 100%;
    box-sizing: border-box;
}

/* AREA TOMBOL */
.password-modal-actions,
.password-modal-buttons {
    width: 100%;
    box-sizing: border-box;

    display: flex;
    justify-content: flex-end;
    align-items: center;

    gap: 9px;
    margin-top: 5px;
    padding-top: 2px;
}

/* TOMBOL */
.btn-batal,
.btn-simpan-password {
    flex-shrink: 0;
}

/* =====================================================
   GAYA TOMBOL HALAMAN PENGELOLAAN DATA
   Bulat penuh dan warna sama seperti tombol "Kembali"
   (teal bergradasi). Tombol Batal dan Hapus tetap
   berwarna netral/merah muda, hanya bentuknya yang bulat.
===================================================== */

/* Tombol utama: teal bergradasi */
.btn-ubah-password,
.btn-simpan-password,
.btn-tambah-user,
.btn-back-to-cards {
    background: linear-gradient(135deg, #006B70, #008C91 60%, #14B0B5) !important;
    color: #fff !important;
    border: none !important;
    border-radius: 999px !important;
    font-weight: 700 !important;
    box-shadow: 0 6px 16px rgba(0, 107, 112, .30) !important;
    transition: transform .2s ease, box-shadow .2s ease, filter .2s ease !important;
}

.btn-ubah-password:hover,
.btn-simpan-password:hover,
.btn-tambah-user:hover,
.btn-back-to-cards:hover {
    background: linear-gradient(135deg, #006B70, #008C91 60%, #14B0B5) !important;
    transform: translateY(-2px);
    filter: brightness(1.06);
    box-shadow: 0 8px 20px rgba(0, 107, 112, .38) !important;
}

.btn-ubah-password:focus-visible,
.btn-simpan-password:focus-visible,
.btn-tambah-user:focus-visible,
.btn-back-to-cards:focus-visible {
    outline: 3px solid #A8F0F2;
    outline-offset: 2px;
}

/* Ukuran sedikit lebih lapang agar bentuk bulat terlihat rapi */
.btn-ubah-password { padding: 9px 18px !important; }
.btn-simpan-password { padding: 10px 22px !important; }
.btn-tambah-user { padding: 11px 22px !important; }
.btn-back-to-cards { padding: 9px 20px !important; font-size: 13px !important; }

/* Tombol sekunder: tetap warnanya, hanya dibulatkan */
.btn-batal,
.btn-hapus-user {
    border-radius: 999px !important;
    font-weight: 700 !important;
    transition: transform .2s ease, filter .2s ease !important;
}
.btn-batal { padding: 10px 22px !important; }
.btn-hapus-user { padding: 9px 18px !important; }

.btn-batal:hover,
.btn-hapus-user:hover {
    transform: translateY(-2px);
    filter: brightness(.97);
}

/* Tombol lain di halaman ini yang gayanya ditulis langsung di kode
   (Buka Surat, Hapus arsip, Reset filter, Buka/Hapus rekap, dll.) */
button[style*="border-radius"],
a[style*="border-radius"].btn-tambah-user {
    border-radius: 999px !important;
}

/* Detail akun awal pada modal Tambah User */
.akun-awal-info {
    margin: 14px 0 0 !important; padding: 10px 12px; border-radius: 10px;
    background: #eaf7f6; color: #17666b !important; font-size: 12px !important;
}
.akun-awal-info strong { color: #005f64; letter-spacing: .04em; }
@media (max-width: 700px) {
    .pengelolaan-page { padding: 78px 14px 60px; background-attachment: scroll; }
    .password-card { padding: 18px 14px; border-radius: 18px; }
}

/* ---------- Tab: Akun Admin | Penempatan | Golongan Ruang ---------- */
.kelola-tabs { display: flex; gap: 10px; flex-wrap: wrap; margin: 0 0 18px; }
.kelola-tab {
    border: none; cursor: pointer; padding: 11px 22px; border-radius: 999px;
    font: 700 13.5px var(--gab-font, "Plus Jakarta Sans", "Segoe UI", sans-serif);
    background: #fff; color: #006b70; box-shadow: 0 4px 12px rgba(0, 107, 112, .12);
    transition: transform .2s ease, filter .2s ease;
}
.kelola-tab:hover { transform: translateY(-1px); }
.kelola-tab.aktif { background: linear-gradient(135deg, #00a0a6, #006b70); color: #fff; box-shadow: 0 8px 18px rgba(0, 107, 112, .28); }
.kelola-panel[hidden] { display: none !important; }
.kelola-grup-judul { margin: 18px 4px 8px; font-size: 12.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: #4d6d78; }
.kelola-grup-judul:first-child { margin-top: 4px; }
.kelola-kosong { padding: 22px; text-align: center; color: #6b8790; font-size: 13.5px; }
.kelola-field-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 520px) { .kelola-field-2 { grid-template-columns: 1fr; } .kelola-tab { flex: 1 1 auto; padding: 10px 14px; } }