.app-shell {
    --penyelaras-primary: #6558e8;
    --penyelaras-primary-soft: #eeecff;
    --penyelaras-canvas: #f6f7fb;
    background: var(--penyelaras-canvas);
}

.app-shell .sidebar-area {
    width: 276px;
    background: #fff;
    border-right: 1px solid #eeeff6;
    box-shadow: 8px 0 30px rgba(49, 46, 129, 0.04);
    padding-bottom: 172px;
}

.app-shell .sidebar-area .logo {
    padding: 28px 28px 24px;
    border-bottom: 1px solid #f0f1f7;
}

.app-shell .sidebar-area .logo img {
    border-radius: 10px;
    height: 34px;
    object-fit: contain;
    width: 30px;
}

.app-shell .layout-menu {
    padding: 26px 20px 160px;
}

.app-shell .menu-vertical .menu-title {
    margin: 20px 10px 10px;
}

.app-shell .menu-vertical .menu-title .menu-title-text {
    color: #9a9aae;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.06em;
}

.app-shell .menu-vertical .menu-item {
    margin-bottom: 7px;
}

.app-shell .menu-vertical .menu-item .menu-link {
    align-items: center;
    border-radius: 12px;
    color: #4d4d60;
    display: flex;
    font-size: 14px;
    font-weight: 600;
    gap: 9px;
    min-height: 46px;
    padding: 11px 13px;
}

.app-shell .menu-vertical .menu-item .menu-link .menu-icon {
    color: #7e7d91;
    font-size: 21px;
    margin-right: 0;
}

.app-shell .menu-vertical .menu-item .menu-link:hover,
.app-shell .menu-vertical .menu-item.open .menu-link.active {
    background: var(--penyelaras-primary-soft);
}

.app-shell .menu-vertical .menu-item.open .menu-link.active .title,
.app-shell .menu-vertical .menu-item.open .menu-link.active .menu-icon {
    color: var(--penyelaras-primary);
}

.app-shell .menu-vertical .menu-item .badge {
    background: var(--penyelaras-primary) !important;
    margin-left: auto !important;
}

.app-shell .main-content {
    background: var(--penyelaras-canvas);
    padding-left: 300px;
    padding-right: 24px;
}

.app-shell .main-content-container {
    padding: 0 4px 24px;
}

.app-shell .footer-area {
    display: none;
}

.app-shell .header-area {
    border-radius: 18px;
    box-shadow: 0 10px 28px rgba(49, 46, 129, 0.05);
    margin: 20px 4px 24px;
    padding: 14px 22px;
}

.app-shell .header-burger-menu {
    align-items: center;
    background: #f4f3ff !important;
    border-radius: 10px !important;
    display: inline-flex;
    height: 42px;
    justify-content: center;
    width: 42px;
}

.app-shell .header-burger-menu .material-symbols-outlined {
    color: var(--penyelaras-primary) !important;
    top: 0 !important;
}

.app-shell .app-page-heading h1 {
    color: #252536;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.2;
}

.app-shell .app-page-heading span {
    color: #8c8b9c;
    display: block;
    font-size: 12px;
    margin-top: 2px;
}

.app-shell .admin-profile .administrator {
    border: 2px solid #f0efff;
}

.app-shell .app-header-role {
    color: #89889a;
    display: block;
    font-size: 11px;
    margin-top: 1px;
}

.app-shell .app-profile-static {
    background: transparent;
    border: 0;
    padding: 4px 0;
}

.app-shell .app-profile-static h3 {
    color: #353449;
    font-size: 14px;
    font-weight: 700;
    margin: 0;
}

.app-shell .app-sidebar-user {
    background: #fafaff;
    border: 1px solid #f0efff;
    border-radius: 16px;
    bottom: 24px;
    left: 20px;
    padding: 10px;
    position: absolute;
    right: 20px;
}

.app-shell .app-sidebar-logout {
    background: #eeecff;
    border-radius: 11px;
    color: var(--penyelaras-primary);
    font-size: 14px;
    font-weight: 700;
    min-height: 50px;
    padding: 10px 14px;
    text-align: center;
}

.app-shell .app-sidebar-logout:hover {
    background: var(--penyelaras-primary);
    color: #fff;
}

.app-shell .card {
    border-radius: 18px !important;
    box-shadow: 0 8px 24px rgba(49, 46, 129, 0.035);
}

.app-shell .btn-primary {
    background: var(--penyelaras-primary);
    border-color: var(--penyelaras-primary);
}

.app-shell .btn-outline-primary {
    border-color: var(--penyelaras-primary);
    color: var(--penyelaras-primary);
}

.app-shell .btn-outline-primary:hover,
.app-shell .btn-primary:hover {
    background: #5549d4;
    border-color: #5549d4;
    color: #fff;
}

.app-shell .form-control,
.app-shell .form-select {
    border-color: #dfe1eb;
    border-radius: 10px;
    box-shadow: none;
}

.app-shell .form-control:focus,
.app-shell .form-select:focus {
    border-color: #958cff;
    box-shadow: 0 0 0 .2rem rgba(101, 88, 232, .12);
}

.app-shell .default-table-area .table-responsive {
    border: 1px solid #edf0f6;
    border-radius: 12px;
}

.app-shell .default-table-area .table {
    margin-bottom: 0;
}

.app-shell .default-table-area .table thead tr,
.app-shell .default-table-area .table thead th {
    background: #f0efff !important;
    border-color: #e8e7f7;
    color: #4c4a63;
}

.app-shell .default-table-area .table tbody td {
    border-color: #edf0f6;
}

.app-shell .page-link.active,
.app-shell .page-item.active .page-link {
    background-color: var(--penyelaras-primary);
    border-color: var(--penyelaras-primary);
}

.app-shell .alert {
    border-radius: 12px;
}

.app-shell .modal-content,
.app-modal .modal-content {
    border: 0;
    border-radius: 18px;
    box-shadow: 0 18px 48px rgba(49, 46, 129, .18);
}

.app-shell.modal-open .main-content-container > .alert {
    display: none;
}

.app-modal .modal-header,
.app-modal .modal-footer {
    border-color: #ecebf6;
    padding: 18px 20px;
}

.app-modal .modal-header {
    align-items: center;
    position: relative;
}

.app-modal .modal-title {
    color: #3a4252;
    font-size: 18px;
    font-weight: 700;
}

.app-modal .modal-body {
    padding: 20px;
}

.app-modal .modal-header .btn-close {
    align-items: center;
    background-color: #fff;
    background-size: 10px;
    border: 1px solid #665cf6;
    border-radius: 50%;
    display: inline-flex;
    height: 20px;
    justify-content: center;
    margin: 0 !important;
    opacity: .72;
    padding: 5px;
    position: absolute;
    right: 20px;
    top: 18px;
    width: 20px;
}

.app-modal .modal-header .btn-close:hover,
.app-modal .modal-header .btn-close:focus {
    box-shadow: 0 0 0 .2rem rgba(102, 92, 246, .14);
    opacity: 1;
}

.app-modal .modal-footer {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

.app-modal .modal-footer > * {
    margin: 0;
}

.app-modal .modal-footer .btn-primary {
    background: #6259e8;
    border-color: #6259e8;
    color: #fff;
}

.app-modal .modal-footer .btn-danger,
.app-shell .btn-danger {
    background: #dc3545;
    border-color: #dc3545;
    color: #fff;
}

.app-modal .modal-footer .btn-danger:hover,
.app-shell .btn-danger:hover {
    background: #bb2d3b;
    border-color: #b02a37;
    color: #fff;
}

.app-shell .app-stat-card {
    overflow: hidden;
}

.app-shell .app-stat-card-primary { background: #eeecff !important; }
.app-shell .app-stat-card-warning { background: #fff6e7 !important; }
.app-shell .app-stat-card-success { background: #eaf8f0 !important; }
.app-shell .app-stat-card-purple { background: #f5efff !important; }

.app-shell .app-stat-icon {
    align-items: center;
    border-radius: 50%;
    display: inline-flex;
    flex: 0 0 72px;
    height: 72px;
    justify-content: center;
    width: 72px;
}

.app-shell .app-stat-icon .material-symbols-outlined { font-size: 32px; }
.app-shell .app-stat-icon-primary { background: #cbc6ff; color: #6259e8; }
.app-shell .app-stat-icon-warning { background: #ffe5b8; color: #e9a01b; }
.app-shell .app-stat-icon-success { background: #c9f3be; color: #2cc700; }
.app-shell .app-stat-icon-purple { background: #e6d5ff; color: #9357e9; }

.app-shell .app-empty-state {
    align-items: center;
    color: #6f6d7d;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 310px;
    text-align: center;
}

.app-shell .app-empty-state .material-symbols-outlined {
    align-items: center;
    background: #f0efff;
    border-radius: 50%;
    color: var(--penyelaras-primary);
    display: inline-flex;
    font-size: 32px;
    height: 76px;
    justify-content: center;
    margin-bottom: 14px;
    width: 76px;
}

.app-shell .app-empty-state-small { min-height: 220px; }

.app-shell .app-pending-list {
    display: grid;
    gap: 9px;
}

.app-shell .app-pending-row {
    align-items: center;
    background: #fafaff;
    border: 1px solid #f0efff;
    border-radius: 12px;
    color: #333246;
    display: flex;
    gap: 10px;
    min-width: 0;
    padding: 9px 10px;
    text-decoration: none;
    transition: background-color .2s ease, border-color .2s ease, transform .2s ease;
}

.app-shell .app-pending-row:hover {
    background: #f2f0ff;
    border-color: #ddd8ff;
    color: #333246;
    transform: translateX(2px);
}

.app-shell .app-pending-avatar {
    align-items: center;
    background: linear-gradient(135deg, #9188ff, #6558e8);
    border-radius: 50%;
    color: #fff;
    display: inline-flex;
    flex: 0 0 34px;
    font-size: 11px;
    font-weight: 700;
    height: 34px;
    justify-content: center;
    width: 34px;
}

.app-shell .app-pending-row h6 { color: #353449; font-size: 13px; font-weight: 700; }
.app-shell .app-pending-row span { color: #8b899b; font-size: 11px; margin-top: 2px; }
.app-shell .app-pending-arrow { color: #8c8a9d; font-size: 20px; margin-left: auto; }

.app-shell .app-alumni-hero {
    background: linear-gradient(120deg, #5f56e9 0%, #8f49ed 100%);
    box-shadow: 0 14px 32px rgba(101, 88, 232, .22);
}

.app-shell .app-shortcuts { display: grid; gap: 9px; }

.app-shell .app-shortcuts a {
    align-items: center;
    background: #fafaff;
    border: 1px solid #f0efff;
    border-radius: 11px;
    color: #454357;
    display: flex;
    font-size: 13px;
    font-weight: 600;
    gap: 10px;
    padding: 11px 12px;
    text-decoration: none;
}

.app-shell .app-shortcuts a:hover { background: #f2f0ff; color: var(--penyelaras-primary); }
.app-shell .app-shortcuts a .material-symbols-outlined:last-child { color: #9794aa; margin-left: auto; }

.app-shell .dashboard-stat-card-primary {
    background: #e5f1ff !important;
}

.app-shell .dashboard-stat-card-pending {
    background: #f2edff !important;
}

.app-shell .dashboard-stat-card-registration {
    background: #e8f8f0 !important;
}

.app-shell .dashboard-pending-list {
    display: grid;
    gap: 9px;
}

.app-shell .dashboard-pending-row {
    align-items: center;
    background: #fafaff;
    border: 1px solid #f0efff;
    border-radius: 12px;
    color: #333246;
    display: flex;
    gap: 10px;
    min-width: 0;
    padding: 9px 10px;
    text-decoration: none;
    transition: background-color .2s ease, border-color .2s ease, transform .2s ease;
}

.app-shell .dashboard-pending-row:hover {
    background: #f2f0ff;
    border-color: #ddd8ff;
    color: #333246;
    transform: translateX(2px);
}

.app-shell .dashboard-pending-avatar {
    align-items: center;
    background: linear-gradient(135deg, #9188ff, #6558e8);
    border-radius: 50%;
    color: #fff;
    display: inline-flex;
    flex: 0 0 34px;
    font-size: 11px;
    font-weight: 700;
    height: 34px;
    justify-content: center;
    width: 34px;
}

.app-shell .dashboard-pending-row h6 {
    color: #353449;
    font-size: 13px;
    font-weight: 700;
}

.app-shell .dashboard-pending-row span {
    color: #8b899b;
    font-size: 11px;
    margin-top: 2px;
}

.app-shell .dashboard-pending-arrow {
    color: #8c8a9d;
    font-size: 20px;
    margin-left: auto;
}

.app-shell .approval-table th:last-child,
.app-shell .approval-table td.approval-action-cell {
    text-align: center !important;
    vertical-align: middle;
}

.app-shell .approval-view-action {
    line-height: 1;
}

.app-shell .approval-table-controls .table-src-form {
    width: min(100%, 270px);
}

.app-shell .approval-filter-wrapper {
    position: relative;
}

.app-shell .approval-filter-popover {
    background: #fff;
    border: 1px solid #eceaf8;
    border-radius: 16px;
    box-shadow: 0 18px 42px rgb(45 38 87 / 16%);
    min-width: 260px;
    position: absolute;
    right: 0;
    top: calc(100% + 10px);
    z-index: 1060;
}

.app-shell .approval-filter-popover .select2-container--open {
    z-index: 1070;
}

.app-shell .approval-filter-close {
    align-items: center;
    background: #fff;
    border: 1px solid #6d5dfc;
    border-radius: 50%;
    color: #5f54dd;
    display: inline-flex;
    flex: 0 0 24px;
    height: 24px;
    justify-content: center;
    padding: 0;
    width: 24px;
}

.app-shell .approval-filter-close:hover {
    background: #f3f1ff;
}

.app-shell .approval-review-card {
    box-shadow: 0 14px 35px rgb(43 38 78 / 6%);
}

.app-shell .approval-review-card h3 {
    font-size: 24px;
}

.app-shell .approval-review-card > .card-body > .d-flex p,
.app-shell .approval-review-section strong {
    font-size: 16px;
}

.app-shell .approval-review-section + .approval-review-section {
    border-top: 1px solid #ececf4;
    margin-top: 28px;
    padding-top: 24px;
}

.app-shell .approval-review-section h4 {
    color: #39384b;
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 20px;
}

.app-shell .approval-review-section span {
    color: #727187;
    display: block;
    font-size: 13px;
    margin-bottom: 5px;
}

.app-shell .approval-review-section strong {
    color: #4e5f83;
    display: block;
    font-weight: 600;
    overflow-wrap: anywhere;
}

@media only screen and (max-width: 575px) {
    .app-modal .modal-dialog {
        margin: .75rem;
        max-width: calc(100% - 1.5rem);
    }

    .app-modal .modal-content {
        border-radius: 16px;
    }

    .app-modal .modal-header,
    .app-modal .modal-footer,
    .app-modal .modal-body {
        padding: 16px;
    }

    .app-modal .modal-header .btn-close {
        right: 16px;
        top: 16px;
    }

    .app-modal .modal-footer {
        gap: 8px;
    }

    .app-shell .approval-table-controls {
        align-items: stretch !important;
    }

    .app-shell .approval-table-controls .table-src-form,
    .app-shell .approval-table-controls .approval-filter-wrapper,
    .app-shell .approval-table-controls > .approval-filter-wrapper > .btn {
        width: 100%;
    }

    .app-shell .approval-filter-popover {
        min-width: 0;
        width: 100%;
    }
}

@media only screen and (min-width: 768px) {
    .app-shell .approval-table {
        --table-responsive-overflow: visible;
    }

    /* Keep the action menu visible while the desktop table has ample width. */
    .app-shell .alumni-profile-table {
        --table-responsive-overflow: visible;
        overflow: visible !important;
    }

    .app-shell .alumni-profile-table .default-table-area .table-responsive,
    .app-shell .alumni-profile-table .default-table-area {
        position: relative;
        z-index: 1;
    }
}

.app-shell .header-area.sticky {
    width: auto;
}

.app-shell .alumni-profile-detail {
    max-width: 1280px;
    margin: 0 auto;
}

.app-shell .alumni-profile-detail .detail-label {
    display: block;
    color: #7a8299;
    font-size: .875rem;
    margin-bottom: .35rem;
}

.app-shell .alumni-profile-detail .detail-value {
    color: #34415c;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0;
    overflow-wrap: anywhere;
}

.app-shell .alumni-profile-detail .alumni-readonly-field {
    background-color: #f8f9fc;
    color: #34415c;
    cursor: default;
    font-weight: 500;
}

.app-shell .alumni-profile-detail .alumni-readonly-textarea,
.app-shell .alumni-profile-detail .alumni-address-textarea {
    min-height: 110px;
    resize: vertical;
}

.app-shell .detail-passport {
    width: 160px;
    height: 200px;
    border: 1px solid #e4e5f1;
    border-radius: 14px;
    object-fit: cover;
}

.app-shell .detail-passport-empty {
    align-items: center;
    background: #f5f4ff;
    color: #6558e8;
    display: inline-flex;
    font-size: 2.5rem;
    justify-content: center;
}

.app-shell .membership-preview {
    background: #fff;
    border: 1px solid #d3d6de;
    border-radius: 28px;
    box-shadow: 0 12px 28px rgba(29, 43, 93, .16);
    max-width: 390px;
    overflow: hidden;
}

.app-shell .membership-preview-header {
    align-items: center;
    background: linear-gradient(135deg, #071641 0%, #19336f 100%);
    color: #fff;
    display: flex;
    font-family: Georgia, serif;
    font-size: 1.1rem;
    font-weight: 700;
    gap: 1rem;
    letter-spacing: .03em;
    min-height: 118px;
    padding: 1.25rem 1.5rem;
}

.app-shell .membership-preview-header img {
    background: #fff;
    border-radius: 50%;
    height: 64px;
    object-fit: contain;
    width: 64px;
}

.app-shell .membership-preview-header span,
.app-shell .membership-preview-header small {
    display: block;
}

.app-shell .membership-preview-header small {
    color: rgba(255, 255, 255, .8);
    font-family: inherit;
    font-size: .7rem;
    font-weight: 600;
    letter-spacing: .14em;
    margin-top: .25rem;
}

.app-shell .membership-preview-body {
    align-items: center;
    display: grid;
    gap: 1rem;
    grid-template-columns: 28px 1fr;
    padding: 1.5rem 1.25rem 1.75rem;
}

.app-shell .membership-preview-side {
    color: #9a7854;
    font-family: Georgia, serif;
    font-size: 1rem;
    letter-spacing: .1em;
    text-align: center;
    writing-mode: vertical-rl;
}

.app-shell .membership-preview-photo {
    align-items: center;
    background: #f2f4f9;
    border: 3px solid #233a79;
    border-radius: 16px;
    color: #233a79;
    display: flex;
    font-size: 3rem;
    grid-column: 2;
    height: 260px;
    justify-content: center;
    overflow: hidden;
    margin: 0 auto;
    max-width: 190px;
    width: 100%;
}

.app-shell .membership-preview-photo img {
    height: 100%;
    object-fit: cover;
    width: 100%;
}

.app-shell .membership-preview-details {
    display: grid;
    gap: .35rem;
    grid-column: 2;
    margin: 0;
    width: 100%;
}

.app-shell .membership-preview-details div {
    border-bottom: 1px solid #e2e5ed;
    padding-bottom: .25rem;
}

.app-shell .membership-preview-details dt {
    color: #846e58;
    font-family: Georgia, serif;
    font-size: .72rem;
    font-weight: 400;
    letter-spacing: .09em;
    text-transform: uppercase;
}

.app-shell .membership-preview-details dd {
    color: #17285b;
    font-size: .95rem;
    font-weight: 700;
    margin: .15rem 0 0;
    overflow-wrap: anywhere;
}

.app-shell .alumni-profile-tabs {
    display: flex;
    gap: .5rem;
    overflow-x: auto;
    padding-bottom: .25rem;
}

.app-shell .alumni-profile-tabs button {
    align-items: center;
    background: #fff;
    border: 1px solid #e4e5f1;
    border-radius: 9px;
    color: #65708a;
    display: inline-flex;
    flex: 0 0 auto;
    font-weight: 600;
    gap: .45rem;
    padding: .65rem 1rem;
}

.app-shell .alumni-profile-tabs button .material-symbols-outlined {
    font-size: 19px;
}

.app-shell .alumni-profile-tabs button.active,
.app-shell .alumni-profile-tabs button:hover {
    background: #6558e8;
    border-color: #6558e8;
    color: #fff;
}

.app-shell .alumni-profile-tabs button.active .material-symbols-outlined,
.app-shell .alumni-profile-tabs button:hover .material-symbols-outlined {
    color: #fff;
}

@media only screen and (max-width: 767px) {
    .app-shell .membership-preview-body {
        grid-template-columns: 24px 1fr;
        padding: 1.25rem 1rem 1.5rem;
    }

    .app-shell .membership-preview-photo {
        height: 240px;
        max-width: 175px;
    }
}

@media only screen and (min-width: 1200px) {
    .app-shell[sidebar-data-theme=sidebar-hide] .sidebar-area {
        width: 88px;
    }

    .app-shell[sidebar-data-theme=sidebar-hide] .main-content {
        padding-left: 112px;
    }

    .app-shell[sidebar-data-theme=sidebar-hide] .app-sidebar-user {
        display: none;
    }
}

@media only screen and (min-width: 1200px) and (max-width: 1399px) {
    .app-shell .main-content {
        padding-left: 276px;
    }
}

@media only screen and (max-width: 1199px) {
    .app-shell .sidebar-area {
        width: 290px !important;
    }

    .app-shell .main-content {
        padding-left: 0;
        padding-right: 0;
    }

    .app-shell .header-area {
        margin: 12px 12px 20px;
    }

    .app-shell .main-content-container {
        padding: 0 12px 20px;
    }
}

@media only screen and (max-width: 575px) {
    .app-shell .header-area {
        border-radius: 14px;
        padding: 10px 14px;
    }

    .app-shell .right-header-content .administrator {
        height: 34px;
        width: 34px;
    }

    .app-shell .approval-review-card > .card-body > .border-bottom > .btn {
        align-self: flex-end;
        order: -1;
    }
}
