/* =====================================================
   LOGIN
===================================================== */

.login-page {
    min-height: 100vh;

    background:
        linear-gradient(
            135deg,
            #0a1d2b,
            #163b53
        );

    position: relative;

    overflow: hidden;
}

.login-page::before {
    content: "";

    position: absolute;

    width: 450px;
    height: 450px;

    border-radius: 50%;

    border: 1px solid
        rgba(223,196,127,0.15);

    top: -180px;
    right: -120px;
}

.login-page::after {
    content: "";

    position: absolute;

    width: 300px;
    height: 300px;

    border-radius: 50%;

    border: 1px solid
        rgba(223,196,127,0.10);

    bottom: -150px;
    left: -130px;
}

.login-wrapper {
    min-height: 100vh;

    display: flex;

    align-items: center;

    position: relative;

    z-index: 2;

    padding: 35px 0;
}

.login-card {
    background: var(--white);

    border-radius: 22px;

    border: 1px solid
        rgba(199,155,70,0.30);

    padding: 38px;

    box-shadow:
        0 25px 70px
        rgba(0,0,0,0.22);
}

.login-logo {
    width: 78px;
    height: 78px;

    margin: 0 auto 18px;

    border-radius: 50%;

    display: flex;

    align-items: center;
    justify-content: center;

    background: var(--white);

    border: 3px solid var(--gold);

    overflow: hidden;

    box-shadow:
        0 7px 20px
        rgba(16,43,63,0.12);
}

.login-logo img {
    width: 100%;
    height: 100%;

    object-fit: cover;
}

.login-logo span {
    color: var(--navy);

    font-size: 24px;

    font-weight: 900;
}

.login-header {
    text-align: center;

    margin-bottom: 25px;
}

.login-header span {
    display: block;

    color: var(--gold);

    font-size: 10px;

    font-weight: 800;

    letter-spacing: 1.6px;

    margin-bottom: 5px;
}

.login-header h1 {
    color: var(--navy);

    font-size: 29px;

    font-weight: 900;

    margin: 0 0 5px;
}

.login-header p {
    color: var(--muted);

    font-size: 13px;

    line-height: 1.6;

    margin: 0;
}

.login-alert {
    border-radius: 10px;

    font-size: 13px;
}

.login-card .form-label {
    font-size: 13px;
}

.input-icon-wrapper {
    position: relative;
}

.input-icon-wrapper > i {
    position: absolute;

    left: 15px;

    top: 50%;

    transform:
        translateY(-50%);

    color: var(--gold);

    z-index: 2;
}

.input-icon-wrapper
.form-control-sitata {
    padding-left: 42px;
}

.password-wrapper
.form-control-sitata {
    padding-right: 48px;
}

.password-toggle {
    position: absolute;

    right: 10px;
    top: 50%;

    transform:
        translateY(-50%);

    width: 35px;
    height: 35px;

    border: none;

    background: transparent;

    color: var(--muted);

    border-radius: 7px;

    cursor: pointer;
}

.password-toggle:hover {
    background: #f4f1e9;

    color: var(--navy);
}

.btn-login {
    width: 100%;

    background: var(--navy);

    color: var(--white);

    border: 1px solid var(--navy);

    border-radius: 9px;

    padding: 12px 20px;

    font-weight: 700;

    margin-top: 10px;
}

.btn-login:hover {
    background: var(--gold);

    border-color: var(--gold);

    color: var(--white);
}

.login-back {
    text-align: center;

    margin-top: 22px;
}

.login-back a {
    color: var(--navy);

    text-decoration: none;

    font-size: 13px;

    font-weight: 600;
}

.login-back a:hover {
    color: var(--gold);
}

.login-footer {
    text-align: center;

    color: #a3a09a;

    border-top: 1px solid #eee8dc;

    padding-top: 17px;

    margin-top: 25px;

    font-size: 10px;

    line-height: 1.5;
}


/* =====================================================
   ADMIN NAVBAR
===================================================== */

.admin-user-mini {
    display: flex;

    align-items: center;

    gap: 8px;

    padding: 5px 8px;
}

.admin-user-avatar {
    width: 36px;
    height: 36px;

    display: flex;

    align-items: center;
    justify-content: center;

    border-radius: 50%;

    color: var(--gold-light);

    background:
        rgba(255,255,255,0.08);

    border: 1px solid
        rgba(223,196,127,0.35);
}

.admin-user-name {
    display: flex;

    flex-direction: column;
}

.admin-user-name span {
    color: rgba(255,255,255,0.55);

    font-size: 9px;
}

.admin-user-name strong {
    color: var(--white);

    font-size: 11px;

    max-width: 130px;

    white-space: nowrap;

    overflow: hidden;

    text-overflow: ellipsis;
}

.btn-admin-logout {
    width: 39px;
    height: 39px;

    display: flex;

    align-items: center;
    justify-content: center;

    background:
        rgba(255,255,255,0.08);

    color: var(--white);

    border: 1px solid
        rgba(255,255,255,0.15);

    border-radius: 9px;
}

.btn-admin-logout:hover {
    background: #a94e4e;

    border-color: #a94e4e;

    color: var(--white);
}


/* =====================================================
   ADMIN PAGE
===================================================== */

.admin-page {
    min-height: 75vh;

    background: var(--cream);

    padding: 65px 0 80px;
}

.admin-page-heading {
    margin-bottom: 28px;
}

.admin-page-heading > div > span {
    display: block;

    color: var(--gold);

    font-size: 10px;

    font-weight: 800;

    letter-spacing: 1.6px;

    margin-bottom: 5px;
}

.admin-page-heading h1 {
    color: var(--navy);

    font-size: 38px;

    font-weight: 900;

    margin: 0 0 5px;
}

.admin-page-heading p {
    color: var(--muted);

    margin: 0;
}

.admin-placeholder {
    max-width: 800px;

    margin: 0 auto;

    text-align: center;

    padding: 60px 30px;

    background: var(--white);

    border: 1px solid var(--border);

    border-radius: 20px;

    box-shadow:
        0 12px 30px
        rgba(16,43,63,0.06);
}

.admin-placeholder-icon {
    width: 75px;
    height: 75px;

    margin: 0 auto 20px;

    display: flex;

    align-items: center;
    justify-content: center;

    border-radius: 20px;

    background: var(--navy);

    color: var(--gold-light);

    font-size: 31px;
}

.admin-placeholder h3 {
    color: var(--navy);

    font-weight: 800;

    margin-bottom: 9px;
}

.admin-placeholder p {
    max-width: 600px;

    margin: 0 auto 25px;

    color: var(--muted);

    line-height: 1.7;
}

.btn-admin-main {
    background: var(--navy);

    color: var(--white);

    border: 1px solid var(--navy);

    border-radius: 9px;

    padding: 11px 20px;

    font-weight: 700;
}

.btn-admin-main:hover {
    background: var(--gold);

    border-color: var(--gold);

    color: var(--white);
}


/* =====================================================
   RESPONSIVE
===================================================== */

@media (max-width: 991px) {

    .admin-user-mini {
        margin-top: 10px;

        padding-left: 12px;
    }

    .btn-admin-logout {
        margin-top: 8px;
    }

}

@media (max-width: 575px) {

    .login-card {
        padding: 27px 20px;
    }

    .login-header h1 {
        font-size: 25px;
    }

}
/* =====================================================
   ADMIN DASHBOARD
===================================================== */

.admin-dashboard {
    min-height: 80vh;

    background: var(--cream);

    padding: 55px 0 80px;
}


/* =====================================
   HEADING
===================================== */

.dashboard-heading {
    display: flex;

    justify-content: space-between;

    align-items: flex-end;

    gap: 20px;

    margin-bottom: 30px;
}

.dashboard-label {
    display: block;

    color: var(--gold);

    font-size: 10px;

    font-weight: 800;

    letter-spacing: 1.7px;

    margin-bottom: 5px;
}

.dashboard-heading h1 {
    color: var(--navy);

    font-size: 39px;

    font-weight: 900;

    margin: 0 0 5px;
}

.dashboard-heading p {
    margin: 0;

    color: var(--muted);

    font-size: 14px;
}

.dashboard-heading p strong {
    color: var(--navy);
}

.dashboard-date {
    display: flex;

    align-items: center;

    gap: 8px;

    padding: 10px 15px;

    background: var(--white);

    border: 1px solid var(--border);

    border-radius: 9px;

    color: var(--navy);

    font-size: 13px;

    font-weight: 700;
}

.dashboard-date i {
    color: var(--gold);
}


/* =====================================
   STATISTIC CARD
===================================== */

.stat-card {
    height: 100%;

    background: var(--white);

    border: 1px solid var(--border);

    border-radius: 16px;

    padding: 21px;

    display: flex;

    gap: 14px;

    box-shadow:
        0 8px 25px
        rgba(16,43,63,0.045);

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease;
}

.stat-card:hover {
    transform: translateY(-4px);

    box-shadow:
        0 14px 30px
        rgba(16,43,63,0.08);
}

.stat-icon {
    width: 50px;
    height: 50px;

    flex: 0 0 50px;

    display: flex;

    align-items: center;
    justify-content: center;

    border-radius: 13px;

    font-size: 21px;
}

.stat-total .stat-icon {
    background: rgba(16,43,63,0.10);

    color: var(--navy);
}

.stat-waiting .stat-icon {
    background: rgba(199,155,70,0.13);

    color: var(--gold);
}

.stat-checking .stat-icon {
    background: rgba(75,128,171,0.12);

    color: #4b80ab;
}

.stat-approved .stat-icon {
    background: rgba(79,149,101,0.12);

    color: #4f9565;
}

.stat-rejected .stat-icon {
    background: rgba(172,89,89,0.12);

    color: #ac5959;
}

.stat-content {
    min-width: 0;

    display: flex;

    flex-direction: column;
}

.stat-content > span {
    color: var(--muted);

    font-size: 11px;

    font-weight: 700;

    margin-bottom: 2px;
}

.stat-content strong {
    color: var(--navy);

    font-size: 29px;

    line-height: 1.1;

    font-weight: 900;
}

.stat-content small {
    color: #9b978e;

    font-size: 10px;

    margin-top: 3px;
}


/* =====================================
   DASHBOARD CARD
===================================== */

.dashboard-card {
    background: var(--white);

    border: 1px solid var(--border);

    border-radius: 17px;

    padding: 23px;

    box-shadow:
        0 8px 25px
        rgba(16,43,63,0.045);
}

.dashboard-card-header {
    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 15px;

    margin-bottom: 20px;
}

.dashboard-card-header > div > span {
    display: block;

    color: var(--gold);

    font-size: 9px;

    font-weight: 800;

    letter-spacing: 1.5px;

    margin-bottom: 4px;
}

.dashboard-card-header h3 {
    color: var(--navy);

    font-size: 20px;

    font-weight: 800;

    margin: 0;
}

.dashboard-card-header > i {
    color: var(--gold);

    font-size: 22px;
}


/* =====================================
   CHART
===================================== */

.chart-container {
    position: relative;

    width: 100%;

    height: 340px;
}


/* =====================================
   STATUS SUMMARY
===================================== */

.status-summary {
    display: flex;

    flex-direction: column;

    gap: 12px;
}

.summary-item {
    display: flex;

    align-items: center;

    gap: 12px;

    padding: 13px;

    border-radius: 11px;

    background: #faf8f3;
}

.summary-dot {
    width: 11px;
    height: 11px;

    flex: 0 0 11px;

    border-radius: 50%;
}

.waiting-dot {
    background: #c69b42;
}

.checking-dot {
    background: #4b80ab;
}

.approved-dot {
    background: #4f9565;
}

.rejected-dot {
    background: #ac5959;
}

.summary-item div {
    min-width: 0;
}

.summary-item strong {
    display: block;

    color: var(--navy);

    font-size: 13px;
}

.summary-item small {
    display: block;

    color: var(--muted);

    font-size: 11px;

    margin-top: 2px;
}


/* =====================================
   LATEST
===================================== */

.latest-card {
    margin-top: 24px;

    padding-bottom: 8px;
}

.btn-view-all {
    display: inline-flex;

    align-items: center;

    gap: 7px;

    color: var(--navy);

    text-decoration: none;

    font-size: 12px;

    font-weight: 700;
}

.btn-view-all:hover {
    color: var(--gold);
}


/* =====================================
   TABLE
===================================== */

.dashboard-table {
    margin-bottom: 0;
}

.dashboard-table thead th {
    color: #7c7a74;

    background: #faf8f3;

    border-bottom: 1px solid var(--border);

    font-size: 11px;

    font-weight: 800;

    white-space: nowrap;

    padding: 13px 12px;
}

.dashboard-table tbody td {
    color: var(--text);

    border-color: #f0ece4;

    font-size: 12px;

    padding: 14px 12px;

    vertical-align: middle;
}

.dashboard-table tbody tr:hover {
    background: #fcfaf6;
}

.registration-number {
    color: var(--navy);

    font-size: 12px;
}


/* =====================================
   TABLE STATUS
===================================== */

.table-status {
    display: inline-block;

    padding: 6px 10px;

    border-radius: 50px;

    font-size: 10px;

    font-weight: 800;

    white-space: nowrap;
}

.table-status-menunggu_diperiksa {
    background: #f6ebd0;

    color: #866519;
}

.table-status-diperiksa {
    background: #ddeaf5;

    color: #315b7d;
}

.table-status-disetujui {
    background: #dcefe2;

    color: #36704a;
}

.table-status-ditolak {
    background: #f3dede;

    color: #904848;
}


/* =====================================
   EMPTY
===================================== */

.empty-table {
    text-align: center;

    padding: 45px 20px !important;

    color: var(--muted);
}

.empty-table i {
    display: block;

    font-size: 32px;

    color: var(--gold);

    margin-bottom: 9px;
}

.empty-table span {
    display: block;

    font-size: 13px;
}


/* =====================================
   RESPONSIVE
===================================== */

@media (max-width: 991px) {

    .dashboard-heading {
        align-items: flex-start;

        flex-direction: column;
    }

    .dashboard-date {
        align-self: flex-start;
    }

}

@media (max-width: 575px) {

    .admin-dashboard {
        padding: 40px 0 60px;
    }

    .dashboard-heading h1 {
        font-size: 32px;
    }

    .dashboard-card {
        padding: 17px;
    }

    .chart-container {
        height: 280px;
    }

}
/* =====================================================
   ADMIN - LIHAT BERKAS
===================================================== */

.admin-list-page {
    min-height: 80vh;
    background: var(--cream);
    padding: 45px 0 70px;
}

.admin-list-heading {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 20px;
    margin-bottom: 25px;
}

.admin-list-heading h1 {
    color: var(--navy);
    font-size: 35px;
    font-weight: 900;
    margin: 0 0 5px;
}

.admin-list-heading p {
    color: var(--muted);
    font-size: 14px;
    margin: 0;
}

.data-count-box {
    min-width: 150px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 15px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 11px;
}

.data-count-box > i {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: rgba(199,155,70,0.12);
    color: var(--gold);
    font-size: 18px;
}

.data-count-box span {
    display: block;
    color: var(--muted);
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 1px;
}

.data-count-box strong {
    display: block;
    color: var(--navy);
    font-size: 23px;
    font-weight: 900;
}


/* =====================================================
   FILTER
===================================================== */

.admin-filter-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 22px;
    box-shadow: 0 8px 22px rgba(16,43,63,0.045);
}

.filter-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 210px auto;
    gap: 13px;
    align-items: end;
}

.filter-row label {
    display: block;
    color: var(--navy);
    font-size: 11px;
    font-weight: 800;
    margin-bottom: 6px;
}

.admin-search-wrapper {
    position: relative;
}

.admin-search-wrapper > i {
    position: absolute;
    left: 13px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gold);
    z-index: 2;
}

.admin-search-wrapper input {
    padding-left: 38px;
    min-height: 45px;
    border-color: #d8d0c0;
    border-radius: 8px;
}

.filter-status select {
    min-height: 45px;
    border-color: #d8d0c0;
    border-radius: 8px;
}

.admin-search-wrapper input:focus,
.filter-status select:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 0.2rem rgba(199,155,70,0.12);
}

.filter-button {
    display: flex;
    gap: 8px;
}

.btn-filter {
    min-height: 45px;
    background: var(--navy);
    color: var(--white);
    border: 1px solid var(--navy);
    border-radius: 8px;
    padding: 0 18px;
    font-weight: 700;
}

.btn-filter:hover {
    background: var(--gold);
    border-color: var(--gold);
    color: var(--white);
}

.btn-reset-filter {
    min-height: 45px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--white);
    color: var(--navy);
    border: 1px solid #d4ccbd;
    border-radius: 8px;
    padding: 0 13px;
    font-weight: 700;
}

.btn-reset-filter:hover {
    background: #f3efe7;
    color: var(--navy);
}


/* =====================================================
   DATA TABLE
===================================================== */

.admin-data-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 17px;
    overflow: hidden;
    box-shadow: 0 8px 22px rgba(16,43,63,0.045);
}

.admin-data-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 22px;
    border-bottom: 1px solid #eee8dc;
}

.admin-data-header span {
    display: block;
    color: var(--gold);
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 1.5px;
    margin-bottom: 4px;
}

.admin-data-header h3 {
    color: var(--navy);
    font-size: 19px;
    font-weight: 800;
    margin: 0;
}

.admin-data-header > i {
    color: var(--gold);
    font-size: 22px;
}

.admin-data-table {
    margin: 0;
}

.admin-data-table thead th {
    background: #faf8f3;
    color: #77736b;
    font-size: 10px;
    font-weight: 800;
    white-space: nowrap;
    padding: 12px 11px;
    border-bottom: 1px solid var(--border);
}

.admin-data-table tbody td {
    color: var(--text);
    font-size: 11px;
    padding: 13px 11px;
    border-color: #f0ece4;
}

.admin-data-table tbody tr:hover {
    background: #fdfbf7;
}

.admin-registration {
    color: var(--navy);
    font-size: 11px;
    white-space: nowrap;
}

.applicant-cell {
    display: flex;
    align-items: center;
    gap: 9px;
    min-width: 145px;
}

.applicant-avatar {
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--navy);
    color: var(--gold-light);
    font-weight: 800;
    font-size: 12px;
}

.applicant-cell strong {
    display: block;
    color: var(--navy);
    font-size: 11px;
}

.applicant-cell small {
    display: block;
    color: var(--muted);
    margin-top: 2px;
    font-size: 9px;
}

.device-name {
    display: inline-block;
    max-width: 145px;
    line-height: 1.4;
}

.date-cell {
    display: flex;
    flex-direction: column;
    white-space: nowrap;
    color: var(--text);
}

.date-cell small {
    color: var(--muted);
    margin-top: 2px;
}

.btn-action-view {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    min-height: 34px;
    background: var(--navy);
    color: var(--white);
    border: 1px solid var(--navy);
    border-radius: 7px;
    padding: 5px 9px;
    font-size: 10px;
    font-weight: 700;
}

.btn-action-view:hover {
    background: var(--gold);
    border-color: var(--gold);
    color: var(--white);
}

.admin-empty-state {
    text-align: center;
    padding: 55px 20px !important;
}

.admin-empty-state i {
    display: block;
    color: var(--gold);
    font-size: 34px;
    margin-bottom: 8px;
}

.admin-empty-state strong {
    display: block;
    color: var(--navy);
    font-size: 14px;
}

.admin-empty-state span {
    display: block;
    color: var(--muted);
    font-size: 11px;
    margin-top: 5px;
}


/* =====================================================
   DETAIL PAGE
===================================================== */

.admin-detail-page {
    min-height: 80vh;
    background: var(--cream);
    padding: 35px 0 70px;
}

.detail-back {
    margin-bottom: 19px;
}

.detail-back a {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: var(--navy);
    text-decoration: none;
    font-size: 12px;
    font-weight: 700;
}

.detail-back a:hover {
    color: var(--gold);
}

.detail-main-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 25px;
    background: var(--navy);
    border-radius: 17px;
    color: var(--white);
    margin-bottom: 20px;
}

.detail-main-header > div > span {
    display: block;
    color: var(--gold-light);
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 1.5px;
    margin-bottom: 5px;
}

.detail-main-header h1 {
    font-size: 25px;
    font-weight: 900;
    margin: 0 0 5px;
    letter-spacing: .5px;
}

.detail-main-header p {
    margin: 0;
    color: rgba(255,255,255,0.64);
    font-size: 11px;
}

.detail-status-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50px;
    padding: 8px 13px;
    font-size: 10px;
    font-weight: 800;
    white-space: nowrap;
}

.detail-status-menunggu_diperiksa {
    background: #f7ecd1;
    color: #89671c;
}

.detail-status-diperiksa {
    background: #ddeaf5;
    color: #315b7d;
}

.detail-status-disetujui {
    background: #dcefe2;
    color: #36704a;
}

.detail-status-ditolak {
    background: #f3dede;
    color: #904848;
}

.detail-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0,1fr));
    gap: 20px;
}

.detail-admin-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 23px;
    box-shadow: 0 8px 22px rgba(16,43,63,0.04);
}

.detail-full-card {
    margin-top: 20px;
}

.detail-admin-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee8dc;
}

.detail-admin-card-header span {
    display: block;
    color: var(--gold);
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 1.4px;
    margin-bottom: 3px;
}

.detail-admin-card-header h3 {
    color: var(--navy);
    font-size: 18px;
    font-weight: 800;
    margin: 0;
}

.detail-admin-icon {
    width: 43px;
    height: 43px;
    flex: 0 0 43px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 11px;
    background: rgba(199,155,70,0.12);
    color: var(--gold);
    font-size: 19px;
}

.detail-information {
    display: grid;
    grid-template-columns: repeat(2, minmax(0,1fr));
    gap: 18px;
}

.detail-information > div:last-child {
    grid-column: 1 / -1;
}

.detail-information span {
    display: block;
    color: var(--muted);
    font-size: 10px;
    margin-bottom: 5px;
}

.detail-information strong {
    display: block;
    color: var(--navy);
    font-size: 12px;
    line-height: 1.5;
}

.detail-uraian-box {
    padding: 18px;
    background: #fcfaf5;
    border: 1px solid #e8dfcf;
    border-radius: 11px;
    color: var(--text);
    line-height: 1.8;
    font-size: 13px;
}

.document-preview-card {
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 15px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: #fcfaf5;
}

.document-file-icon {
    width: 45px;
    height: 45px;
    flex: 0 0 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: #f5e2e2;
    color: #a34f4f;
    font-size: 22px;
}

.document-file-info {
    min-width: 0;
    flex: 1;
}

.document-file-info strong {
    display: block;
    color: var(--navy);
    font-size: 12px;
    word-break: break-all;
}

.document-file-info small {
    display: block;
    color: var(--muted);
    margin-top: 3px;
    font-size: 10px;
}

.document-available {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: #4f9565;
    font-size: 10px;
    font-weight: 800;
    white-space: nowrap;
}

.document-note {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-top: 12px;
    color: var(--muted);
    font-size: 10px;
    line-height: 1.6;
}

.document-note i {
    color: var(--gold);
}

.document-empty {
    text-align: center;
    padding: 30px;
    border: 1px dashed #d8cdb9;
    border-radius: 12px;
    background: #fcfaf5;
    color: var(--muted);
}

.document-empty i {
    display: block;
    color: #b4aa9a;
    font-size: 32px;
    margin-bottom: 7px;
}

.current-status-box {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: #fcfaf5;
    border: 1px solid #e8dfcf;
    border-radius: 12px;
}

.current-status-box p {
    margin: 0;
    color: var(--muted);
    font-size: 11px;
    line-height: 1.6;
}

.current-admin-note {
    margin-top: 13px;
    padding: 15px;
    border-left: 3px solid var(--gold);
    background: #fcfaf5;
}

.current-admin-note strong {
    display: block;
    color: var(--navy);
    font-size: 11px;
    margin-bottom: 4px;
}

.current-admin-note p {
    margin: 0;
    color: var(--text);
    line-height: 1.7;
    font-size: 12px;
}

.detail-action-area {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 20px;
}

.btn-detail-secondary {
    background: var(--white);
    color: var(--navy);
    border: 1px solid #d2c9b9;
    border-radius: 8px;
    padding: 10px 17px;
    font-weight: 700;
    font-size: 12px;
}

.btn-detail-secondary:hover {
    background: var(--navy);
    color: var(--white);
    border-color: var(--navy);
}

.detail-next-info {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--muted);
    font-size: 10px;
}

.detail-next-info i {
    color: var(--gold);
}

.admin-detail-error {
    max-width: 650px;
    margin: 50px auto;
    text-align: center;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 17px;
    padding: 45px 30px;
}

.admin-detail-error-icon {
    width: 65px;
    height: 65px;
    margin: 0 auto 15px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f7ecd1;
    color: #9a751e;
    font-size: 27px;
}

.admin-detail-error h3 {
    color: var(--navy);
    font-weight: 800;
}

.admin-detail-error p {
    color: var(--muted);
    font-size: 12px;
}


/* =====================================================
   RESPONSIVE
===================================================== */

@media (max-width: 991px) {

    .filter-row {
        grid-template-columns: 1fr 1fr;
    }

    .filter-button {
        grid-column: 1 / -1;
    }

    .detail-grid {
        grid-template-columns: 1fr;
    }

}

@media (max-width: 767px) {

    .admin-list-heading {
        flex-direction: column;
        align-items: flex-start;
    }

    .data-count-box {
        width: 100%;
    }

    .filter-row {
        grid-template-columns: 1fr;
    }

    .filter-button {
        grid-column: auto;
    }

    .detail-main-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .detail-information {
        grid-template-columns: 1fr;
    }

    .detail-information > div:last-child {
        grid-column: auto;
    }

    .detail-action-area {
        flex-direction: column;
        align-items: flex-start;
    }

}
/* =====================================================
   PEMERIKSAAN ADMIN
===================================================== */

.status-alert {
    display: flex;

    align-items: center;

    gap: 12px;

    padding: 13px 17px;

    margin-bottom: 20px;

    border-radius: 11px;
}

.status-alert > i {
    font-size: 19px;
}

.status-alert > div {
    display: flex;

    flex-direction: column;

    gap: 2px;
}

.status-alert strong {
    font-size: 12px;
}

.status-alert span {
    font-size: 11px;
}

.status-alert-success {
    background: #e8f3eb;

    border: 1px solid #cce4d2;

    color: #36704a;
}

.status-alert-error {
    background: #f8e7e7;

    border: 1px solid #e8cccc;

    color: #904848;
}


/* =====================================================
   STATUS SAAT INI
===================================================== */

.inspection-current-status {
    display: flex;

    align-items: center;

    gap: 14px;

    padding: 17px;

    margin-bottom: 20px;

    background: #fcfaf5;

    border: 1px solid #e7decd;

    border-radius: 12px;
}

.inspection-status-icon {
    width: 48px;

    height: 48px;

    flex: 0 0 48px;

    display: flex;

    align-items: center;

    justify-content: center;

    border-radius: 12px;

    font-size: 21px;
}

.inspection-status-icon.waiting {
    background: #f7ecd1;

    color: #89671c;
}

.inspection-status-icon.checking {
    background: #ddeaf5;

    color: #315b7d;
}

.inspection-current-status strong {
    display: block;

    color: var(--navy);

    font-size: 13px;

    margin-bottom: 3px;
}

.inspection-current-status p {
    margin: 0;

    color: var(--muted);

    font-size: 11px;

    line-height: 1.6;
}


/* =====================================================
   INSPECTION FORM
===================================================== */

.inspection-form {
    display: flex;

    flex-direction: column;

    gap: 18px;
}

.inspection-note-box {
    padding: 17px;

    background: #fffdfa;

    border: 1px solid #e3dbca;

    border-radius: 11px;
}

.inspection-note-box label {
    display: block;

    color: var(--navy);

    font-size: 11px;

    font-weight: 800;

    margin-bottom: 7px;
}

.inspection-note-box textarea {
    border-color: #d8d0c0;

    border-radius: 8px;

    resize: vertical;

    font-size: 12px;
}

.inspection-note-box textarea:focus {
    border-color: var(--gold);

    box-shadow:
        0 0 0 0.2rem
        rgba(199,155,70,0.12);
}

.inspection-note-box small {
    display: block;

    color: var(--muted);

    font-size: 9px;

    line-height: 1.6;

    margin-top: 7px;
}


/* =====================================================
   DECISION OPTIONS
===================================================== */

.decision-options {
    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 13px;
}

.decision-option {
    position: relative;

    display: flex;

    align-items: center;

    gap: 12px;

    padding: 16px;

    border: 1px solid #ddd5c5;

    border-radius: 12px;

    cursor: pointer;

    background: var(--white);

    transition: 0.2s ease;
}

.decision-option:hover {
    transform: translateY(-2px);

    box-shadow:
        0 7px 18px
        rgba(16,43,63,0.05);
}

.decision-option input {
    position: absolute;

    opacity: 0;
}

.decision-option-icon {
    width: 43px;

    height: 43px;

    flex: 0 0 43px;

    display: flex;

    align-items: center;

    justify-content: center;

    border-radius: 11px;

    font-size: 19px;
}

.decision-approved
.decision-option-icon {
    background: #e1f0e5;

    color: #4f9565;
}

.decision-rejected
.decision-option-icon {
    background: #f6e2e2;

    color: #ac5959;
}

.decision-option strong {
    display: block;

    color: var(--navy);

    font-size: 13px;
}

.decision-option small {
    display: block;

    color: var(--muted);

    font-size: 10px;

    line-height: 1.5;

    margin-top: 3px;
}

.decision-option:has(input:checked) {
    border-color: var(--gold);

    box-shadow:
        0 0 0 2px
        rgba(199,155,70,0.10);
}

.decision-approved:has(
    input:checked
) {
    border-color: #5d9d6d;

    background: #fbfefb;
}

.decision-rejected:has(
    input:checked
) {
    border-color: #b66262;

    background: #fffafa;
}


/* =====================================================
   BUTTON
===================================================== */

.btn-inspection-primary {
    align-self: flex-start;

    background: var(--navy);

    color: var(--white);

    border: 1px solid var(--navy);

    border-radius: 8px;

    padding: 11px 18px;

    font-size: 11px;

    font-weight: 700;
}

.btn-inspection-primary:hover {
    background: var(--gold);

    border-color: var(--gold);

    color: var(--white);
}

.btn-inspection-primary:disabled {
    opacity: 0.65;

    cursor: not-allowed;
}


/* =====================================================
   FINAL STATUS
===================================================== */

.inspection-final {
    display: flex;

    align-items: center;

    gap: 14px;

    padding: 18px;

    border-radius: 12px;
}

.inspection-final.approved {
    background: #eef7f0;

    border: 1px solid #d2e6d6;
}

.inspection-final.rejected {
    background: #fbefef;

    border: 1px solid #ecd6d6;
}

.inspection-final .final-icon {
    width: 48px;

    height: 48px;

    flex: 0 0 48px;

    display: flex;

    align-items: center;

    justify-content: center;

    border-radius: 50%;

    font-size: 21px;
}

.inspection-final.approved
.final-icon {
    background: #4f9565;

    color: var(--white);
}

.inspection-final.rejected
.final-icon {
    background: #ac5959;

    color: var(--white);
}

.inspection-final strong {
    display: block;

    color: var(--navy);

    font-size: 13px;

    margin-bottom: 3px;
}

.inspection-final p {
    margin: 0;

    color: var(--muted);

    font-size: 10px;

    line-height: 1.6;
}


/* =====================================================
   RESPONSIVE
===================================================== */

@media (max-width: 767px) {

    .decision-options {
        grid-template-columns: 1fr;
    }

    .inspection-current-status {
        align-items: flex-start;
    }

    .btn-inspection-primary {
        width: 100%;

        text-align: center;
    }

}
/* =====================================================
   DOKUMEN / DOWNLOAD
===================================================== */

.document-actions {
    display: flex;

    align-items: center;

    gap: 7px;
}

.btn-document-download {
    display: inline-flex;

    align-items: center;

    justify-content: center;

    gap: 6px;

    min-height: 34px;

    padding: 6px 10px;

    background: var(--navy);

    color: var(--white);

    border: 1px solid var(--navy);

    border-radius: 7px;

    text-decoration: none;

    font-size: 10px;

    font-weight: 700;

    white-space: nowrap;

    transition: 0.2s ease;
}

.btn-document-download:hover {
    background: var(--gold);

    border-color: var(--gold);

    color: var(--white);

    transform: translateY(-1px);
}

.document-file-icon
.bi-file-earmark-pdf {
    color: #a34f4f;
}

.document-file-icon
.bi-file-earmark-word {
    color: #3f73aa;
}

.document-file-icon
.bi-file-earmark-image {
    color: #6c8d58;
}
/* =====================================================
   FILE NAME
===================================================== */

.file-name-cell {
    display: inline-flex;

    align-items: center;

    gap: 6px;

    max-width: 180px;

    color: var(--navy);

    font-size: 10px;

    line-height: 1.4;

    word-break: break-word;
}

.file-name-cell i {
    color: var(--gold);

    flex: 0 0 auto;
}

@media (max-width: 767px) {

    .file-name-cell {
        max-width: 130px;
    }

}
/* =====================================================
   ADMIN MANAGEMENT
===================================================== */

.admin-form-page {
    min-height: 80vh;
    background: var(--cream);
    padding: 40px 0 70px;
}

.admin-form-card {
    max-width: 900px;
    margin: 0 auto;
    padding: 30px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 17px;
    box-shadow: 0 10px 25px rgba(16,43,63,0.045);
}

.admin-form-heading {
    margin-bottom: 25px;
    padding-bottom: 18px;
    border-bottom: 1px solid #eee8dc;
}

.admin-form-heading > span {
    display: block;
    color: var(--gold);
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 1.5px;
    margin-bottom: 4px;
}

.admin-form-heading h1 {
    color: var(--navy);
    font-size: 29px;
    font-weight: 900;
    margin: 0 0 5px;
}

.admin-form-heading p {
    color: var(--muted);
    margin: 0;
    font-size: 13px;
}

.admin-form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 28px;
    padding-top: 20px;
    border-top: 1px solid #eee8dc;
}

.admin-action-buttons {
    display: flex;
    gap: 6px;
}

.btn-action-edit,
.btn-action-delete {
    width: 33px;
    height: 33px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 7px;
    font-size: 11px;
}

.btn-action-edit {
    background: #e7eef5;
    color: #315b7d;
    border: 1px solid #d3e0eb;
}

.btn-action-edit:hover {
    background: #315b7d;
    color: var(--white);
}

.btn-action-delete {
    background: #f5e1e1;
    color: #904848;
    border: 1px solid #ebcece;
}

.btn-action-delete:hover {
    background: #904848;
    color: var(--white);
}

.admin-password-title {
    color: var(--navy);
    font-size: 15px;
    font-weight: 800;
    margin-bottom: 4px;
}

.admin-password-help {
    color: var(--muted);
    font-size: 11px;
    margin-bottom: 0;
}

.btn-admin-main {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--navy);
    color: var(--white);
    border: 1px solid var(--navy);
    border-radius: 8px;
    padding: 10px 16px;
    font-weight: 700;
    font-size: 12px;
}

.btn-admin-main:hover {
    background: var(--gold);
    border-color: var(--gold);
    color: var(--white);
}

@media (max-width: 575px) {

    .admin-form-card {
        padding: 20px;
    }

    .admin-form-actions {
        flex-direction: column-reverse;
    }

    .admin-form-actions .btn {
        width: 100%;
    }

}