:root {
    --admin-primary: #0f4c81;
    --admin-primary-dark: #0a365c;
    --admin-success: #0b6b4f;
    --admin-ink: #17202a;
    --admin-muted: #6f7b86;
    --admin-soft: #f5f7fa;
    --admin-border: #e2e7ec;
    --admin-sidebar: 286px;
}

* {
    box-sizing: border-box;
}

body {
    color: var(--admin-ink);
    background: #f4f6f8;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
}

a {
    color: var(--admin-primary);
    text-decoration: none;
}

.admin-shell {
    min-height: 100vh;
}

.admin-sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 1040;
    display: flex;
    flex-direction: column;
    width: var(--admin-sidebar);
    overflow-y: auto;
    color: #fff;
    background:
        radial-gradient(circle at top right, rgba(255, 255, 255, 0.10), transparent 24%),
        linear-gradient(180deg, #0a365c, #0f4c81 74%, #0b406d);
}

.sidebar-brand {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 22px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.10);
}

.sidebar-brand a {
    color: #fff;
}

.sidebar-brand a > span:last-child {
    display: flex;
    flex-direction: column;
}

.sidebar-brand small {
    color: rgba(255, 255, 255, 0.62);
    font-size: 0.70rem;
}

.brand-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    color: var(--admin-primary-dark);
    background: #fff;
    border-radius: 12px;
    font-weight: 800;
}

.sidebar-close,
.topbar-menu {
    color: inherit;
    background: transparent;
    border: 0;
}

.sidebar-admin {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 18px 16px;
    padding: 14px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
}

.avatar-placeholder,
.avatar-small {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 44px;
    height: 44px;
    color: var(--admin-primary-dark);
    background: #fff;
    border-radius: 14px;
    font-weight: 800;
}

.sidebar-admin strong,
.sidebar-admin small {
    display: block;
}

.sidebar-admin small {
    color: rgba(255, 255, 255, 0.62);
}

.sidebar-nav {
    padding: 2px 12px 18px;
}

.nav-caption {
    margin: 18px 10px 8px;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.sidebar-nav .nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 46px;
    padding: 10px 12px;
    color: rgba(255, 255, 255, 0.82);
    border-radius: 12px;
    font-size: 0.90rem;
    font-weight: 650;
}

.sidebar-nav .nav-item:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.10);
}

.sidebar-nav .nav-item i {
    width: 22px;
}

.sidebar-footer {
    margin-top: auto;
    padding: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.10);
}

.admin-main {
    min-height: 100vh;
    margin-left: var(--admin-sidebar);
}

.admin-topbar {
    position: sticky;
    top: 0;
    z-index: 1030;
    display: flex;
    align-items: center;
    gap: 14px;
    min-height: 78px;
    padding: 12px 28px;
    background: rgba(255, 255, 255, 0.95);
    border-bottom: 1px solid var(--admin-border);
    backdrop-filter: blur(12px);
}

.admin-topbar small {
    display: block;
    color: var(--admin-muted);
    font-size: 0.70rem;
    font-weight: 800;
    letter-spacing: 0.06em;
}

.admin-topbar h1 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 800;
}

.topbar-menu {
    display: none;
    width: 40px;
    height: 40px;
    color: var(--admin-ink);
    border: 1px solid var(--admin-border);
    border-radius: 12px;
    font-size: 1.3rem;
}

.admin-chip {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 11px;
    color: var(--admin-primary-dark);
    background: #eef5fb;
    border: 1px solid #dbe9f5;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 700;
}

.admin-content {
    max-width: 1550px;
    margin: 0 auto;
    padding: 28px;
}

.dashboard-hero {
    padding: 28px;
    color: #fff;
    background: linear-gradient(135deg, var(--admin-primary-dark), var(--admin-primary));
    border-radius: 22px;
    box-shadow: 0 18px 44px rgba(15, 76, 129, 0.16);
}

.dashboard-hero h2 {
    margin: 5px 0 7px;
    font-weight: 800;
}

.dashboard-hero p {
    margin: 0;
    color: rgba(255, 255, 255, 0.76);
}

.eyebrow {
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.metric-card,
.panel-card,
.category-card {
    background: #fff;
    border: 1px solid var(--admin-border);
    border-radius: 18px;
    box-shadow: 0 12px 30px rgba(23, 32, 42, 0.035);
}

.metric-card {
    padding: 20px;
}

.metric-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    color: var(--admin-primary);
    background: #eef5fb;
    border-radius: 13px;
}

.metric-value {
    margin-top: 15px;
    font-size: 1.8rem;
    font-weight: 800;
}

.metric-label {
    color: var(--admin-muted);
    font-size: 0.84rem;
    font-weight: 600;
}

.category-card {
    display: block;
    padding: 18px;
    color: var(--admin-ink);
}

.category-card:hover {
    color: var(--admin-primary-dark);
    border-color: #b7d0e4;
}

.category-card div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.category-card strong {
    font-size: 1.7rem;
}

.category-card small {
    display: block;
    margin-top: 8px;
    color: var(--admin-muted);
}

.panel-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 22px 12px;
}

.panel-heading h3 {
    margin: 0 0 3px;
    font-size: 1rem;
    font-weight: 800;
}

.panel-heading p {
    margin: 0;
    color: var(--admin-muted);
    font-size: 0.82rem;
}

.page-title {
    font-size: 1.65rem;
    font-weight: 800;
}

.table thead th {
    padding: 13px 17px;
    color: #697580;
    background: #f8fafc;
    border-bottom-color: var(--admin-border);
    font-size: 0.71rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.table tbody td {
    padding: 14px 17px;
    border-color: #edf1f4;
}

.form-control,
.form-select {
    min-height: 44px;
    border-color: #d8e0e7;
    border-radius: 11px;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--admin-primary);
    box-shadow: 0 0 0 0.2rem rgba(15, 76, 129, 0.10);
}

.filter-form {
    display: flex;
    gap: 8px;
    min-width: min(100%, 620px);
}

.filter-form .form-control {
    flex: 1 1 300px;
}

.filter-form .form-select {
    flex: 0 0 190px;
}

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

.detail-grid > div,
.detail-table > div {
    padding: 13px;
    background: #f8fafc;
    border: 1px solid var(--admin-border);
    border-radius: 12px;
}

.detail-grid span,
.detail-grid strong,
.detail-table span,
.detail-table strong {
    display: block;
}

.detail-grid span,
.detail-table span {
    margin-bottom: 4px;
    color: var(--admin-muted);
    font-size: 0.75rem;
}

.detail-table {
    display: grid;
    gap: 10px;
}

.person-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 0;
    border-bottom: 1px solid #edf1f4;
}

.person-row .avatar-small {
    width: 40px;
    height: 40px;
    color: var(--admin-primary);
    background: #eef5fb;
}

.person-row strong,
.person-row small {
    display: block;
}

.person-row small {
    color: var(--admin-muted);
}

.document-list {
    display: grid;
    gap: 9px;
}

.document-item {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 11px 13px;
    color: var(--admin-ink);
    background: #f8fafc;
    border: 1px solid var(--admin-border);
    border-radius: 11px;
}

.document-item:hover {
    color: var(--admin-primary-dark);
}

.document-item > i:first-child {
    color: var(--admin-primary);
    font-size: 1.2rem;
}

.document-item strong,
.document-item small {
    display: block;
}

.document-item small {
    color: var(--admin-muted);
}

.status-timeline {
    position: relative;
}

.timeline-item {
    position: relative;
    display: grid;
    grid-template-columns: 20px 1fr;
    gap: 10px;
    padding-bottom: 18px;
}

.timeline-item > span {
    position: relative;
    top: 5px;
    z-index: 1;
    width: 12px;
    height: 12px;
    background: var(--admin-primary);
    border: 3px solid #d7e8f5;
    border-radius: 50%;
}

.timeline-item::after {
    position: absolute;
    top: 15px;
    left: 5px;
    bottom: -4px;
    width: 2px;
    content: "";
    background: #dce5ec;
}

.timeline-item:last-child::after {
    display: none;
}

.timeline-item p {
    margin: 3px 0;
    color: var(--admin-muted);
    font-size: 0.82rem;
}

.timeline-item small {
    color: #8a949c;
}

.qris-preview {
    display: flex;
    align-items: center;
    flex-direction: column;
    padding: 16px;
    background: #f8fafc;
    border: 1px solid var(--admin-border);
    border-radius: 15px;
}

.qris-preview img {
    max-width: 100%;
    max-height: 430px;
    object-fit: contain;
    border-radius: 10px;
}

.qris-preview small {
    margin-top: 9px;
    color: var(--admin-muted);
}

.admin-login-body {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 24px;
    background:
        radial-gradient(circle at 20% 20%, rgba(15, 76, 129, 0.16), transparent 30%),
        #eef2f5;
}

.admin-login-card {
    width: min(100%, 440px);
    padding: 32px;
    background: #fff;
    border: 1px solid var(--admin-border);
    border-radius: 22px;
    box-shadow: 0 20px 55px rgba(23, 32, 42, 0.10);
}

.login-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 26px;
}

.login-brand > span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    color: #fff;
    background: var(--admin-primary);
    border-radius: 13px;
    font-weight: 800;
}

.login-brand div {
    display: flex;
    flex-direction: column;
}

.login-brand small {
    color: var(--admin-muted);
}

.admin-login-card h1 {
    font-size: 1.6rem;
    font-weight: 800;
}

.admin-login-card > p {
    color: var(--admin-muted);
}

.sidebar-backdrop {
    display: none;
}

@media (max-width: 991.98px) {
    .admin-sidebar {
        transform: translateX(-100%);
        transition: transform 0.2s ease;
    }

    body.sidebar-open .admin-sidebar {
        transform: translateX(0);
    }

    .admin-main {
        margin-left: 0;
    }

    .topbar-menu {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    body.sidebar-open .sidebar-backdrop {
        position: fixed;
        inset: 0;
        z-index: 1035;
        display: block;
        background: rgba(8, 20, 31, 0.48);
    }

    .filter-form {
        width: 100%;
        flex-wrap: wrap;
    }

    .filter-form .form-select {
        flex: 1 1 190px;
    }
}

@media (max-width: 575.98px) {
    .admin-content,
    .admin-topbar {
        padding-left: 16px;
        padding-right: 16px;
    }

    .detail-grid {
        grid-template-columns: 1fr;
    }

    .filter-form {
        flex-direction: column;
    }

    .filter-form .form-control,
    .filter-form .form-select,
    .filter-form .btn {
        width: 100%;
        flex: auto;
    }
}

/* =========================================================
   PENYEMPURNAAN DESAIN SIHAKI PENGELOLA 2026
   ========================================================= */
:root {
    --admin-primary: #0b6b4f;
    --admin-primary-dark: #07513d;
    --admin-primary-deep: #07372d;
    --admin-soft: #edf6f2;
    --admin-border: #dfe8e4;
    --admin-ink: #17221f;
    --admin-muted: #71807a;
    --admin-page: #f4f7f6;
    --admin-sidebar: 270px;
}

body.admin-body {
    min-height: 100vh;
    background: var(--admin-page);
}

.admin-sidebar {
    width: var(--admin-sidebar);
    overflow-x: hidden;
    overflow-y: auto;
    background:
        radial-gradient(circle at 10% 0%, rgba(255, 255, 255, 0.06), transparent 24%),
        linear-gradient(180deg, #0b3c30 0%, #07352c 52%, #062a23 100%);
    box-shadow: 8px 0 30px rgba(8, 38, 31, 0.08);
    scrollbar-width: thin;
    scrollbar-color: rgba(160, 210, 190, 0.42) transparent;
}

.admin-sidebar::-webkit-scrollbar {
    width: 8px;
}

.admin-sidebar::-webkit-scrollbar-track {
    background: transparent;
}

.admin-sidebar::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, rgba(155, 207, 187, 0.55), rgba(89, 153, 129, 0.48));
    border: 2px solid transparent;
    border-radius: 999px;
    background-clip: padding-box;
}

.admin-sidebar::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, rgba(189, 226, 212, 0.72), rgba(109, 176, 151, 0.64));
    border: 2px solid transparent;
    background-clip: padding-box;
}

.sidebar-brand {
    min-height: 84px;
    padding: 18px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.sidebar-brand-link {
    display: flex;
    align-items: center;
    gap: 11px;
    min-width: 0;
    color: #ffffff !important;
}

.brand-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 44px;
    height: 44px;
    overflow: hidden;
    background: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.brand-mark img {
    width: 37px;
    height: 37px;
    object-fit: contain;
}

.brand-copy {
    display: flex;
    min-width: 0;
    flex-direction: column;
}

.brand-copy strong {
    color: #ffffff;
    font-size: 1.04rem;
    font-weight: 850;
    letter-spacing: -0.02em;
}

.brand-copy small {
    margin-top: 3px;
    color: rgba(255, 255, 255, 0.46);
    font-size: 0.61rem;
    font-weight: 750;
    letter-spacing: 0.08em;
}

.sidebar-close,
.topbar-menu {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 0;
    border-radius: 11px;
    transition: background-color 0.16s ease, color 0.16s ease, border-color 0.16s ease;
}

.sidebar-close {
    color: rgba(255, 255, 255, 0.72);
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.09);
}

.sidebar-nav {
    padding: 16px 12px 20px;
}

.nav-caption {
    margin: 18px 12px 8px;
    color: rgba(255, 255, 255, 0.35);
    font-size: 0.67rem;
    font-weight: 850;
    letter-spacing: 0.14em;
}

.sidebar-nav .nav-item {
    position: relative;
    min-height: 47px;
    margin-bottom: 4px;
    padding: 10px 13px;
    color: rgba(238, 247, 243, 0.7);
    border: 1px solid transparent;
    border-radius: 12px;
    font-size: 0.88rem;
    font-weight: 680;
    transition: color 0.16s ease, background-color 0.16s ease, border-color 0.16s ease, transform 0.16s ease;
}

.sidebar-nav .nav-item i {
    width: 22px;
    color: rgba(214, 235, 226, 0.72);
    font-size: 1.02rem;
    text-align: center;
}

.sidebar-nav .nav-item:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.075);
    border-color: rgba(255, 255, 255, 0.055);
    transform: translateX(2px);
}

.sidebar-nav .nav-item:hover i {
    color: #ffffff;
}

.sidebar-nav .nav-item.active {
    color: #ffffff;
    background: linear-gradient(135deg, #168060, #1b8b69);
    border-color: rgba(255, 255, 255, 0.08);
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.13);
}

.sidebar-nav .nav-item.active i {
    color: #ffffff;
}

.sidebar-footer {
    margin-top: auto;
    padding: 12px 14px 14px;
    background: rgba(0, 0, 0, 0.08);
    border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.sidebar-account-card {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    padding: 10px;
    background: rgba(255, 255, 255, 0.065);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
}

.sidebar-account-card .avatar-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 40px;
    height: 40px;
    color: var(--admin-primary-dark);
    background: #ffffff;
    border-radius: 11px;
    font-weight: 850;
}

.sidebar-account-copy {
    display: flex;
    min-width: 0;
    flex: 1;
    flex-direction: column;
}

.sidebar-account-copy strong {
    overflow: hidden;
    color: #ffffff;
    font-size: 0.82rem;
    font-weight: 780;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sidebar-account-copy small {
    margin-top: 2px;
    color: rgba(255, 255, 255, 0.48);
    font-size: 0.65rem;
}

.sidebar-footer-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 7px;
    margin-top: 8px;
}

.sidebar-footer-actions form {
    display: block;
}

.sidebar-icon-action {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 37px;
    color: rgba(255, 255, 255, 0.72);
    background: rgba(255, 255, 255, 0.055);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    cursor: pointer;
    transition: background-color 0.16s ease, color 0.16s ease, border-color 0.16s ease;
}

.sidebar-icon-action:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.11);
    border-color: rgba(255, 255, 255, 0.15);
}

.sidebar-icon-action-danger:hover {
    color: #ffe8e8;
    background: rgba(220, 53, 69, 0.22);
    border-color: rgba(255, 120, 132, 0.22);
}

.admin-main {
    margin-left: var(--admin-sidebar);
}

.admin-topbar {
    min-height: 84px;
    padding: 13px 30px;
    background: rgba(255, 255, 255, 0.975);
    border-bottom: 1px solid var(--admin-border);
    box-shadow: 0 5px 20px rgba(23, 34, 31, 0.025);
}

.topbar-title h1 {
    margin: 0;
    color: var(--admin-ink);
    font-size: 1.36rem;
    font-weight: 850;
    letter-spacing: -0.035em;
}

.topbar-title p {
    margin: 3px 0 0;
    color: var(--admin-muted);
    font-size: 0.76rem;
}

.topbar-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.btn-topbar {
    min-height: 40px;
    padding: 0.55rem 0.8rem;
    color: #33413c;
    background: #f8faf9;
    border: 1px solid var(--admin-border);
    border-radius: 11px;
    box-shadow: none;
    font-size: 0.77rem;
    font-weight: 700;
}

.btn-topbar:hover {
    color: var(--admin-primary-dark);
    background: #eef6f2;
    border-color: #bfd5cc;
}

.topbar-admin {
    display: flex;
    align-items: center;
    gap: 9px;
    min-height: 42px;
    padding: 3px 5px;
    border-radius: 12px;
}

.topbar-avatar {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--admin-primary), #16906a);
    border-radius: 10px;
    font-size: 0.82rem;
    font-weight: 800;
}

.topbar-admin strong,
.topbar-admin small {
    display: block;
}

.topbar-admin strong {
    font-size: 0.76rem;
    font-weight: 800;
}

.topbar-admin small {
    margin-top: 1px;
    color: var(--admin-muted);
    font-size: 0.58rem;
    font-weight: 650;
    text-transform: uppercase;
}

.topbar-admin > i {
    color: #97a19d;
    font-size: 0.7rem;
}

.admin-content {
    max-width: 1540px;
    padding: 28px 30px 22px;
}

.admin-content-footer {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-top: 44px;
    padding: 14px 0 2px;
    color: #8a9691;
    font-size: 0.68rem;
}

.metric-card,
.panel-card,
.category-card {
    border-color: var(--admin-border);
    border-radius: 18px;
    box-shadow: 0 12px 32px rgba(23, 34, 31, 0.04);
}

.metric-card-horizontal {
    display: flex;
    align-items: center;
    gap: 14px;
    min-height: 116px;
    padding: 18px 20px;
}

.metric-card-horizontal .metric-icon {
    flex: 0 0 auto;
    width: 48px;
    height: 48px;
    border-radius: 14px;
    font-size: 1.15rem;
}

.metric-green { color: #157759; background: #e1f3ec; }
.metric-blue { color: #3b68a3; background: #e8f0fb; }
.metric-yellow { color: #a47a0c; background: #fff2cd; }
.metric-purple { color: #7652a9; background: #f0eafb; }

.metric-copy {
    min-width: 0;
}

.metric-card-horizontal .metric-label {
    color: #75817d;
    font-size: 0.74rem;
    font-weight: 700;
}

.metric-card-horizontal .metric-value {
    margin: 0;
    color: var(--admin-ink);
    font-size: 1.75rem;
    font-weight: 900;
    line-height: 1.15;
    letter-spacing: -0.04em;
}

.metric-copy small {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-top: 7px;
    color: var(--admin-primary);
    font-size: 0.64rem;
    font-weight: 750;
}

.dashboard-hero-modern {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    min-height: 150px;
    padding: 27px 30px;
    overflow: hidden;
    background:
        radial-gradient(circle at 86% 15%, rgba(243, 207, 77, 0.23), transparent 24%),
        linear-gradient(115deg, #0a6149, #0c7557 64%, #7b791c);
    border-radius: 20px;
    box-shadow: 0 18px 40px rgba(11, 107, 79, 0.13);
}

.dashboard-hero-modern h2 {
    margin: 6px 0 5px;
    font-size: 1.75rem;
    font-weight: 850;
    letter-spacing: -0.035em;
}

.dashboard-hero-modern p {
    max-width: 760px;
    font-size: 0.82rem;
}

.dashboard-hero-actions {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 12px;
}

.dashboard-hero-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 68px;
    height: 68px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 18px;
    font-size: 1.75rem;
}

.panel-heading {
    padding: 20px 22px 14px;
}

.panel-kicker {
    display: block;
    margin-bottom: 3px;
    color: var(--admin-primary);
    font-size: 0.65rem;
    font-weight: 850;
    letter-spacing: 0.11em;
    text-transform: uppercase;
}

.panel-heading h3 {
    margin: 0 0 2px;
    color: var(--admin-ink);
    font-size: 1.02rem;
    font-weight: 850;
    letter-spacing: -0.02em;
}

.panel-heading p {
    color: var(--admin-muted);
    font-size: 0.72rem;
}

.table thead th {
    padding: 13px 18px;
    color: #77827e;
    background: #f9fbfa;
    border-bottom-color: var(--admin-border);
    font-size: 0.66rem;
    font-weight: 850;
    letter-spacing: 0.06em;
}

.table tbody td {
    padding: 15px 18px;
    border-color: #edf2f0;
    font-size: 0.78rem;
}

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

.table-code {
    color: var(--admin-primary-dark) !important;
    font-weight: 800;
}

.status-badge,
.badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 0.64rem;
    font-weight: 780;
    line-height: 1.1;
}

.status-draf { color: #5f6c67; background: #edf0ef; }
.status-diajukan { color: #2c5f93; background: #e7f0fb; }
.status-perlu_perbaikan { color: #8e6b0b; background: #fff1c4; }
.status-pengajuan_ulang { color: #246e78; background: #e1f4f5; }
.status-diteruskan_djki { color: #4e455d; background: #ece9f1; }
.status-selesai { color: #137151; background: #ddf1e9; }
.status-ditolak { color: #b42331; background: #fde6e8; }

.btn-icon-sm {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    padding: 0;
    color: var(--admin-primary-dark);
    background: #edf6f2;
    border: 1px solid #e2eee9;
    border-radius: 50%;
}

.btn-icon-sm:hover {
    color: #ffffff;
    background: var(--admin-primary);
    border-color: var(--admin-primary);
}

.review-queue {
    padding: 0 18px 18px;
}

.review-queue-item {
    display: grid;
    grid-template-columns: 42px 1fr auto;
    align-items: center;
    gap: 11px;
    padding: 12px 7px;
    color: var(--admin-ink);
    border-bottom: 1px solid #edf2f0;
}

.review-queue-item:last-child {
    border-bottom: 0;
}

.review-queue-item:hover {
    padding-left: 11px;
    color: var(--admin-primary-dark);
    background: #f8fbfa;
}

.review-queue-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    color: var(--admin-primary);
    background: var(--admin-soft);
    border-radius: 12px;
}

.review-queue-copy {
    display: flex;
    min-width: 0;
    flex-direction: column;
}

.review-queue-copy strong {
    font-size: 0.8rem;
    font-weight: 800;
}

.review-queue-copy small {
    margin-top: 2px;
    color: var(--admin-muted);
    font-size: 0.65rem;
}

.review-queue-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    height: 28px;
    padding: 0 9px;
    color: #8b690b;
    background: #fff1c5;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 850;
}

.category-card-modern {
    min-height: 136px;
    padding: 17px;
    color: var(--admin-ink);
    background: #ffffff;
}

.category-card-modern:hover {
    color: var(--admin-primary-dark);
    border-color: #bfd5cc;
    box-shadow: 0 16px 32px rgba(23, 34, 31, 0.06);
    transform: translateY(-2px);
}

.category-card-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.category-card-top span {
    font-size: 0.78rem;
    font-weight: 760;
}

.category-card-top strong {
    font-size: 1.45rem;
    font-weight: 900;
    line-height: 1;
}

.category-card-meta {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    margin-top: 26px;
    color: var(--admin-muted);
    font-size: 0.61rem;
}

.category-progress {
    height: 5px;
    margin-top: 9px;
    overflow: hidden;
    background: #edf2f0;
    border-radius: 999px;
}

.category-progress span {
    display: block;
    height: 100%;
    background: linear-gradient(90deg, var(--admin-primary), #29a17a);
    border-radius: inherit;
}

/* Tombol dibuat konsisten agar tidak tampil polos. */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 41px;
    padding: 0.59rem 0.92rem;
    border-radius: 11px;
    font-size: 0.78rem;
    font-weight: 750;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.btn:hover {
    transform: translateY(-1px);
}

.btn-sm {
    min-height: 35px;
    padding: 0.43rem 0.72rem;
    border-radius: 9px;
    font-size: 0.7rem;
}

.btn-success,
.btn-primary {
    color: #ffffff;
    background: linear-gradient(135deg, #0b6b4f, #11815f);
    border-color: #0b6b4f;
    box-shadow: 0 7px 18px rgba(11, 107, 79, 0.16);
}

.btn-success:hover,
.btn-primary:hover {
    color: #ffffff;
    background: linear-gradient(135deg, #07513d, #0b6b4f);
    border-color: #07513d;
    box-shadow: 0 9px 22px rgba(11, 107, 79, 0.2);
}

.btn-dark {
    color: #ffffff;
    background: #18211e;
    border-color: #18211e;
    box-shadow: 0 7px 18px rgba(24, 33, 30, 0.12);
}

.btn-dark:hover {
    color: #ffffff;
    background: #0f1513;
    border-color: #0f1513;
}

.btn-light,
.btn-light.border {
    color: #35423e;
    background: #ffffff;
    border-color: #d8e2de !important;
    box-shadow: 0 6px 16px rgba(23, 34, 31, 0.05);
}

.btn-light:hover,
.btn-light.border:hover {
    color: var(--admin-primary-dark);
    background: #f7faf9;
    border-color: #bed3ca !important;
}

.btn-outline-primary {
    color: var(--admin-primary-dark);
    background: #ffffff;
    border-color: #b9d0c7;
}

.btn-outline-primary:hover {
    color: #ffffff;
    background: var(--admin-primary);
    border-color: var(--admin-primary);
}

.form-label {
    color: #4f5d58;
    font-size: 0.74rem;
    font-weight: 750;
}

.form-control,
.form-select {
    min-height: 45px;
    border-color: #d9e2df;
    border-radius: 11px;
    font-size: 0.79rem;
}

.form-control:focus,
.form-select:focus {
    border-color: #75aa96;
    box-shadow: 0 0 0 0.2rem rgba(11, 107, 79, 0.09);
}

.input-group-text {
    color: #69756f;
    background: #f7faf9;
    border-color: #d9e2df;
}

.info-notice {
    display: flex;
    align-items: flex-start;
    gap: 11px;
    padding: 14px 16px;
    color: #6f5914;
    background: #fff8dc;
    border: 1px solid #f1dda0;
    border-radius: 13px;
    box-shadow: 0 8px 18px rgba(144, 108, 12, 0.04);
}

.info-notice-success {
    color: #246548;
    background: #e9f6f0;
    border-color: #cbe8db;
}

/* Login pengelola */
.admin-login-body {
    background:
        radial-gradient(circle at 15% 20%, rgba(11, 107, 79, 0.15), transparent 26%),
        radial-gradient(circle at 90% 80%, rgba(214, 177, 55, 0.14), transparent 28%),
        #eef4f1;
}

.admin-login-card {
    width: min(100%, 440px);
    padding: 32px;
    border: 1px solid #dbe7e2;
    border-radius: 22px;
    box-shadow: 0 24px 60px rgba(12, 49, 39, 0.12);
}

.login-brand {
    margin-bottom: 26px;
}

.login-brand > span {
    width: 46px;
    height: 46px;
    overflow: hidden;
    background: #ffffff;
    border: 1px solid var(--admin-border);
    border-radius: 13px;
}

.login-brand > span img {
    width: 39px;
    height: 39px;
    object-fit: contain;
}

.login-brand strong {
    font-size: 1rem;
    font-weight: 850;
}

.login-brand small {
    font-size: 0.68rem;
}

.login-heading > span {
    color: var(--admin-primary);
    font-size: 0.64rem;
    font-weight: 850;
    letter-spacing: 0.12em;
}

.login-heading h1 {
    margin: 6px 0 5px;
    font-size: 1.65rem;
    font-weight: 880;
    letter-spacing: -0.035em;
}

.login-heading p {
    margin-bottom: 24px;
    color: var(--admin-muted);
    font-size: 0.8rem;
}

.login-input-group {
    position: relative;
}

.login-input-group > i {
    position: absolute;
    top: 50%;
    left: 14px;
    z-index: 3;
    color: #89958f;
    transform: translateY(-50%);
}

.login-input-group .form-control {
    padding-left: 40px;
}

.login-back-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    margin-top: 22px;
    color: #68756f;
    font-size: 0.72rem;
    font-weight: 680;
}

.login-back-link:hover {
    color: var(--admin-primary-dark);
}

.swal2-popup {
    border-radius: 20px !important;
    font-family: inherit !important;
}

.swal2-title {
    color: var(--admin-ink) !important;
    font-size: 1.35rem !important;
    font-weight: 850 !important;
}

.swal2-html-container {
    color: var(--admin-muted) !important;
    font-size: 0.88rem !important;
}

.swal2-confirm,
.swal2-cancel {
    min-width: 94px;
    border-radius: 10px !important;
    font-weight: 750 !important;
}

@media (max-width: 991.98px) {
    .admin-sidebar {
        transform: translateX(-100%);
    }

    body.sidebar-open .admin-sidebar {
        transform: translateX(0);
    }

    .admin-main {
        margin-left: 0;
    }

    .admin-topbar {
        padding-left: 18px;
        padding-right: 18px;
    }

    .topbar-menu {
        display: inline-flex;
        color: var(--admin-ink);
        background: #ffffff;
        border: 1px solid var(--admin-border);
    }

    .dashboard-hero-modern {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (max-width: 575.98px) {
    .admin-content {
        padding: 20px 15px;
    }

    .topbar-title p {
        display: none;
    }

    .topbar-title h1 {
        font-size: 1.08rem;
    }

    .metric-card-horizontal {
        align-items: flex-start;
        flex-direction: column;
        min-height: 145px;
    }

    .dashboard-hero-modern {
        padding: 23px;
    }

    .dashboard-hero-actions {
        align-items: flex-start;
        flex-direction: column;
    }

    .dashboard-hero-icon {
        display: none;
    }

    .admin-content-footer {
        flex-direction: column;
    }
}

/* =========================================================
   ACCOUNT DROPDOWN - TOPBAR
   ========================================================= */

.account-menu {
    position: relative;
    z-index: 1200;
}

.topbar-admin {
    appearance: none;
    color: var(--admin-ink);
    background: transparent;
    border: 1px solid transparent;
    cursor: pointer;
    transition: background 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.topbar-admin:hover,
.account-menu.show .topbar-admin {
    color: var(--admin-primary-dark);
    background: #f4f8f6;
    border-color: #d9e4df;
    box-shadow: 0 8px 22px rgba(20, 32, 29, 0.07);
}

.topbar-avatar-image {
    display: block;
    width: 36px;
    height: 36px;
    object-fit: cover;
    border-radius: 10px;
}

.account-menu-panel {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    z-index: 1300;
    width: 220px;
    padding: 8px;
    visibility: hidden;
    opacity: 0;
    transform: translateY(-7px) scale(0.985);
    transform-origin: top right;
    background: #ffffff;
    border: 1px solid #e4ebe8;
    border-radius: 16px;
    box-shadow: 0 18px 45px rgba(17, 33, 28, 0.14);
    pointer-events: none;
    transition: opacity 0.16s ease, transform 0.16s ease, visibility 0.16s ease;
}

.account-menu.show .account-menu-panel {
    visibility: visible;
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

.account-menu-panel form {
    margin: 0;
}

.account-menu-item {
    display: flex;
    align-items: center;
    gap: 11px;
    width: 100%;
    min-height: 42px;
    padding: 9px 11px;
    color: #26332f;
    background: transparent;
    border: 0;
    border-radius: 10px;
    font-size: 0.78rem;
    font-weight: 700;
    text-align: left;
    cursor: pointer;
    transition: color 0.16s ease, background 0.16s ease, transform 0.16s ease;
}

.account-menu-item:hover {
    color: var(--admin-primary-dark);
    background: #eef7f3;
    transform: translateX(2px);
}

.account-menu-item i {
    width: 19px;
    color: #6f7e78;
    font-size: 0.95rem;
    text-align: center;
}

.account-menu-divider {
    height: 1px;
    margin: 6px 4px;
    background: #e6ece9;
}

.account-menu-danger {
    color: #dc3545;
}

.account-menu-danger i {
    color: #dc3545;
}

.account-menu-danger:hover {
    color: #b42331;
    background: #fff1f2;
}

@media (max-width: 575.98px) {
    .account-menu-panel {
        right: -4px;
        width: 205px;
    }
}

.info-notice-danger {
    color: #8f2631;
    background: #fff0f1;
    border-color: #f4c9ce;
    box-shadow: 0 8px 18px rgba(174, 45, 60, 0.05);
}

.info-notice-danger > i {
    color: #dc3545;
}

/* =========================================================
   PROFIL PENGELOLA, FORM METADATA, DAN SIDEBAR DESKTOP
   ========================================================= */
.admin-sidebar,
.admin-main {
    transition: transform 0.22s ease, margin-left 0.22s ease;
}

.sidebar-account-card img,
.sidebar-account-card .avatar-placeholder {
    flex: 0 0 auto;
    width: 40px;
    height: 40px;
    object-fit: cover;
    border-radius: 11px;
}

.topbar-avatar-image,
.topbar-avatar {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 36px;
    height: 36px;
    object-fit: cover;
    color: #ffffff;
    background: linear-gradient(135deg, var(--admin-primary), #16906a);
    border-radius: 10px;
    font-size: 0.82rem;
    font-weight: 800;
}

.profile-photo-card {
    display: flex;
    align-items: center;
    flex-direction: column;
    min-height: 100%;
    padding: 20px;
    background: #f8faf9;
    border: 1px solid var(--admin-border);
    border-radius: 16px;
}

.profile-photo-card img,
.profile-photo-placeholder {
    display: block;
    width: 130px;
    height: 130px;
    overflow: hidden;
    object-fit: cover;
    object-position: center;
    border-radius: 24px;
}

.profile-photo-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--admin-primary);
    background: #e6f2ee;
    font-size: 2.5rem;
    font-weight: 800;
}

.profile-photo-card small {
    margin-top: 8px;
    color: var(--admin-muted);
    text-align: center;
}

.form-section {
    overflow: hidden;
    background: #ffffff;
    border: 1px solid var(--admin-border);
    border-radius: 18px;
    box-shadow: 0 12px 32px rgba(23, 34, 31, 0.04);
}

.form-section-heading {
    display: flex;
    gap: 14px;
    padding: 20px 22px;
    background: linear-gradient(180deg, #fafcfb, #f6f9f8);
    border-bottom: 1px solid var(--admin-border);
}

.step-number {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 34px;
    width: 34px;
    height: 34px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--admin-primary), #17805f);
    border-radius: 11px;
    box-shadow: 0 7px 15px rgba(11, 107, 79, 0.16);
    font-weight: 800;
}

.form-section-heading h3 {
    margin: 0 0 4px;
    font-size: 1rem;
    font-weight: 800;
}

.form-section-heading p {
    margin: 0;
    color: var(--admin-muted);
    font-size: 0.84rem;
}

.form-section-body {
    padding: 22px;
}

.choice-card-app {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    height: 100%;
    padding: 16px;
    cursor: pointer;
    background: #ffffff;
    border: 1px solid var(--admin-border);
    border-radius: 14px;
    transition: background-color 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
}

.choice-card-app:hover {
    border-color: #bbd2c8;
    box-shadow: 0 8px 18px rgba(23, 34, 31, 0.04);
}

.choice-card-app:has(input:checked) {
    background: #eef7f3;
    border-color: #83b29f;
    box-shadow: 0 8px 18px rgba(11, 107, 79, 0.06);
}

.choice-card-app span {
    display: flex;
    flex-direction: column;
}

.choice-card-app small {
    margin-top: 3px;
    color: var(--admin-muted);
}

.person-card {
    padding: 18px;
    background: #fbfcfc;
    border: 1px solid var(--admin-border);
    border-radius: 16px;
}

.person-card + .person-card {
    margin-top: 14px;
}

.upload-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
    gap: 24px;
    align-items: center;
    padding: 16px 0;
    border-bottom: 1px solid #edf2f0;
}

.upload-row:first-child {
    padding-top: 0;
}

.upload-row:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

.existing-file {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 6px 10px;
    background: var(--admin-soft);
    border-radius: 9px;
    font-size: 0.8rem;
}

.qris-box {
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 18px;
    background: #f8faf9;
    border: 1px solid var(--admin-border);
    border-radius: 16px;
}

.qris-box img {
    width: 190px;
    max-height: 300px;
    object-fit: contain;
    background: #ffffff;
    border-radius: 12px;
}

.sticky-submit-bar {
    position: sticky;
    bottom: 14px;
    z-index: 1010;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 14px 16px;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid var(--admin-border);
    border-radius: 18px;
    box-shadow: 0 14px 40px rgba(20, 32, 29, 0.12);
    backdrop-filter: blur(12px);
}

.sticky-submit-bar strong,
.sticky-submit-bar small {
    display: block;
}

.sticky-submit-bar small {
    color: var(--admin-muted);
}

@media (min-width: 992px) {
    body.sidebar-collapsed .admin-sidebar {
        transform: translateX(-100%);
    }

    body.sidebar-collapsed .admin-main {
        margin-left: 0;
    }

    .topbar-menu {
        display: inline-flex;
    }
}

@media (max-width: 767.98px) {
    .upload-row {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .sticky-submit-bar,
    .qris-box {
        align-items: flex-start;
        flex-direction: column;
    }
}

/* =========================================================
   SIDEBAR FINAL - STICKY BRAND + ICON COLLAPSE
   ========================================================= */
:root {
    --admin-sidebar-collapsed: 82px;
}

.admin-sidebar {
    overflow: hidden;
    transition: width 0.22s ease, transform 0.22s ease;
}

.sidebar-brand {
    position: relative;
    z-index: 3;
    flex: 0 0 auto;
    background: rgba(5, 42, 34, 0.98);
}

.sidebar-nav {
    flex: 1 1 auto;
    min-height: 0;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    scrollbar-color: rgba(160, 210, 190, 0.42) transparent;
}

.sidebar-nav::-webkit-scrollbar {
    width: 8px;
}

.sidebar-nav::-webkit-scrollbar-track {
    background: transparent;
}

.sidebar-nav::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, rgba(155, 207, 187, 0.55), rgba(89, 153, 129, 0.48));
    border: 2px solid transparent;
    border-radius: 999px;
    background-clip: padding-box;
}

.sidebar-nav::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, rgba(189, 226, 212, 0.72), rgba(109, 176, 151, 0.64));
    border: 2px solid transparent;
    background-clip: padding-box;
}

.sidebar-footer {
    position: relative;
    z-index: 3;
    flex: 0 0 auto;
    margin-top: 0;
}

.admin-main {
    transition: margin-left 0.22s ease;
}

@media (min-width: 992px) {
    body.sidebar-collapsed .admin-sidebar {
        width: var(--admin-sidebar-collapsed);
        transform: none;
    }

    body.sidebar-collapsed .admin-main {
        margin-left: var(--admin-sidebar-collapsed);
    }

    body.sidebar-collapsed .sidebar-brand {
        justify-content: center;
        min-height: 84px;
        padding: 18px 10px;
    }

    body.sidebar-collapsed .sidebar-brand-link {
        justify-content: center;
        gap: 0;
        width: 100%;
    }

    body.sidebar-collapsed .brand-copy {
        width: 0;
        min-width: 0;
        overflow: hidden;
        visibility: hidden;
        opacity: 0;
        pointer-events: none;
    }

    body.sidebar-collapsed .sidebar-nav {
        padding: 14px 8px 18px;
    }

    body.sidebar-collapsed .nav-caption {
        width: 34px;
        height: 1px;
        margin: 13px auto;
        overflow: hidden;
        color: transparent;
        background: rgba(255, 255, 255, 0.12);
        font-size: 0;
        line-height: 0;
    }

    body.sidebar-collapsed .sidebar-nav .nav-item {
        justify-content: center;
        width: 52px;
        min-height: 48px;
        margin: 4px auto;
        padding: 0;
        gap: 0;
    }

    body.sidebar-collapsed .sidebar-nav .nav-item:hover {
        transform: none;
    }

    body.sidebar-collapsed .sidebar-nav .nav-item i {
        width: auto;
        margin: 0;
        font-size: 1.16rem;
    }

    body.sidebar-collapsed .sidebar-nav .nav-item > span:not(.nav-badge) {
        display: none;
    }

    body.sidebar-collapsed .sidebar-footer {
        padding: 10px;
    }

    body.sidebar-collapsed .sidebar-account-card {
        justify-content: center;
        gap: 0;
        padding: 8px;
    }

    body.sidebar-collapsed .sidebar-account-copy {
        display: none;
    }

    body.sidebar-collapsed .sidebar-footer-actions {
        grid-template-columns: 1fr;
        gap: 6px;
        margin-top: 7px;
    }

    body.sidebar-collapsed .sidebar-icon-action {
        width: 100%;
        height: 38px;
    }
}
