/* Project-specific overrides. Keep Gentelella vendor files unchanged. */

:root {
    --app-sidebar-brand-size: 0.875rem;
}

.sidebar-brand .brand-name {
    font-size: var(--app-sidebar-brand-size);
    white-space: nowrap;
}

.app-sidebar-logo {
    display: block;
    flex: 0 0 auto;
    height: auto;
    object-fit: contain;
    width: 2.5rem;
}

.app-brand-subtitle {
    color: var(--text-muted);
    display: inline;
    font-size: 0.6875rem;
    font-weight: 400;
    margin-left: 0.2rem;
}

.app-topbar-brand {
    align-items: center;
    color: var(--text);
    display: none;
    gap: 0.5rem;
    min-width: 0;
    text-decoration: none;
}

.app-topbar-brand:hover {
    text-decoration: none;
}

.app-topbar-brand .brand-name {
    color: var(--text);
    font-size: 0.8125rem;
    font-weight: var(--font-weight-bold);
    white-space: nowrap;
}

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

.app-topbar-active-mobile {
    color: var(--text-muted);
    display: none;
    font-size: 0.5625rem;
    font-weight: 400;
    line-height: 1.2;
    max-width: 12rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.app-topbar-page-context {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.app-topbar-active-desktop {
    align-items: center;
    color: var(--text-muted);
    display: flex;
    font-size: 0.625rem;
    gap: 0.25rem;
    line-height: 1.2;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.app-topbar-active-desktop strong {
    color: var(--text-secondary);
    font-weight: var(--font-weight-medium);
}

.app-topbar-logo {
    display: block;
    flex: 0 0 auto;
    height: auto;
    object-fit: contain;
    width: 2rem;
}

.app-page-heading {
    margin-bottom: 1.25rem;
}

.app-page-heading h1 {
    margin: 0;
}

.app-page-heading p {
    color: var(--text-muted);
    margin: 0.35rem 0 0;
}

.app-empty-state {
    padding: 2rem;
    text-align: center;
}

.app-auth-card-wide {
    max-width: 680px;
}

.app-auth-logo {
    display: block;
    flex: 0 0 auto;
    height: auto;
    object-fit: contain;
    width: 4rem;
}

.app-btn-block {
    justify-content: center;
    width: 100%;
}

.app-auth-flash {
    left: 50%;
    max-width: min(680px, calc(100% - 2rem));
    position: fixed;
    top: 1rem;
    transform: translateX(-50%);
    width: 100%;
    z-index: 10;
}

.app-google-auth-button {
    align-items: center;
    background: #fff;
    border: 1px solid #d0d5dd;
    color: #344054;
    display: flex;
    gap: 0.65rem;
    justify-content: center;
    margin-top: 1.25rem;
    width: 100%;
}

.app-google-auth-button:hover {
    background: #f8fafc;
    border-color: #98a2b3;
    color: #101828;
}

.app-google-auth-button svg {
    flex: 0 0 auto;
    height: 1.25rem;
    width: 1.25rem;
}

.app-auth-divider {
    align-items: center;
    color: var(--text-muted);
    display: flex;
    font-size: 0.8rem;
    gap: 0.75rem;
    margin: 1.25rem 0;
    text-align: center;
}

.app-auth-divider::before,
.app-auth-divider::after {
    background: var(--border-color);
    content: "";
    flex: 1;
    height: 1px;
}

.app-dashboard-copy {
    color: var(--text-secondary);
    margin: 0.75rem 0 0;
}

.app-dashboard-next-title {
    font-size: 1.05rem;
    margin: 0.65rem 0 0.9rem;
}

.app-dashboard-guidance {
    display: grid;
    gap: 0.75rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.app-dashboard-guidance > div {
    background: var(--bg-surface-secondary);
    border: 1px solid var(--border-color-light);
    border-radius: var(--radius);
    padding: 0.85rem;
}

.app-dashboard-guidance.is-single {
    grid-template-columns: minmax(0, 1fr);
}

.app-administration-result-card {
    border-left: 4px solid var(--green);
    margin-bottom: 1rem;
}

.app-administration-result-card p {
    color: var(--text-secondary);
    margin: 0;
}

.app-administration-passed-card {
    border: 1px solid rgba(26, 187, 156, 0.2);
    border-radius: var(--radius, 10px);
    overflow: hidden;
    position: relative;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    background: linear-gradient(135deg, var(--bg-surface, #ffffff) 0%, rgba(38, 166, 154, 0.03) 100%);
    margin-bottom: 1.25rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.app-administration-passed-card:hover {
    box-shadow: 0 6px 24px rgba(38, 166, 154, 0.12);
}

.app-passed-banner {
    position: relative;
    height: 3.25rem;
    background: linear-gradient(135deg, #1abb9c 0%, #169f85 100%);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1.25rem;
    overflow: hidden;
}

.app-passed-banner-shimmer {
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transform: skewX(-20deg);
    animation: passedShimmer 4s infinite;
}

@keyframes passedShimmer {
    0% { left: -100%; }
    30% { left: 200%; }
    100% { left: 200%; }
}

.app-passed-banner-stars {
    display: flex;
    gap: 0.35rem;
    color: #fde047;
    opacity: 0.9;
}

.app-passed-star {
    width: 1.1rem;
    height: 1.1rem;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.15));
}

.app-passed-trophy {
    color: #fef08a;
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(4px);
    width: 2.35rem;
    height: 2.35rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.35);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
    z-index: 2;
}

.app-passed-trophy svg {
    width: 1.35rem;
    height: 1.35rem;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.15));
}

.app-passed-body {
    padding: 1.5rem;
}

.app-passed-badge-row {
    margin-bottom: 0.75rem;
}

.app-passed-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    background: rgba(26, 187, 156, 0.1);
    color: #0f6c5a;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.3rem 0.75rem;
    border-radius: 50px;
    border: 1px solid rgba(26, 187, 156, 0.25);
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.app-administration-passed-card .app-administration-passed-title {
    color: #1abb9c;
    font-size: 1.85rem;
    font-weight: 800;
    letter-spacing: 0.35em;
    margin: 0.25rem 0 0.5rem;
    text-shadow: 0 1px 2px rgba(26, 187, 156, 0.15);
}

.app-administration-passed-lead {
    color: var(--text-secondary, #666);
    font-size: 0.925rem;
    margin: 0.25rem 0 0;
}

.app-administration-passed-name {
    font-size: 1.12rem;
    font-weight: 700;
    color: var(--text-primary, #2c3e50);
    margin: 0.2rem 0 1rem;
    letter-spacing: -0.01em;
}

.app-administration-passed-result {
    background: rgba(26, 187, 156, 0.04);
    border: 1px dashed rgba(26, 187, 156, 0.3);
    border-radius: 8px;
    padding: 0.9rem 1.1rem;
    margin: 1rem 0;
}

.app-administration-passed-dinyatakan {
    display: block;
    color: #1abb9c;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    margin-bottom: 0.2rem;
}

.app-passed-result-sub {
    display: block;
    color: var(--text-secondary, #555);
    font-size: 0.88rem;
    line-height: 1.45;
}

.app-administration-passed-details {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem 2rem;
    background: var(--bg-surface-secondary, #f8fafc);
    border-radius: 8px;
    padding: 0.85rem 1.1rem;
    margin: 1rem 0;
    border: 1px solid var(--border-color-light, #e2e8f0);
}

.app-administration-passed-details div {
    min-width: 11rem;
    flex: 1;
}

.app-administration-passed-details span {
    color: var(--text-muted, #888);
    display: block;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 0.2rem;
}

.app-administration-passed-details strong {
    font-size: 0.975rem;
    color: var(--text-primary, #1e293b);
    font-weight: 600;
}

.app-administration-passed-schedule {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    background: rgba(243, 156, 18, 0.08);
    border: 1px solid rgba(243, 156, 18, 0.25);
    border-radius: 8px;
    color: #d35400;
    margin: 1rem 0 0;
    padding: 0.85rem 1.1rem;
}

.app-administration-passed-schedule svg {
    flex-shrink: 0;
    color: #e67e22;
}

.app-administration-passed-schedule > div {
    display: flex;
    flex-direction: row;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.app-administration-passed-schedule span {
    color: #d35400;
    font-size: 0.85rem;
    font-weight: 600;
}

.app-administration-passed-schedule strong {
    color: #b9770e;
    font-size: 0.98rem;
    font-weight: 700;
}

.app-administration-passed-actions {
    margin-top: 1.25rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    width: 100%;
}

@media (max-width: 540px) {
    .app-administration-passed-actions {
        grid-template-columns: 1fr;
    }
}

.app-exam-location-btn,
.app-download-invitation-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    font-size: 0.925rem;
    font-weight: 600;
    border-radius: var(--radius, 8px);
    transition: all 0.2s ease;
}

.app-download-invitation-btn {
    box-shadow: 0 2px 8px rgba(26, 187, 156, 0.25);
}

.app-download-invitation-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(26, 187, 156, 0.35);
}

/* Exam Location Modal Styling */
.app-exam-location-intro {
    font-size: 0.88rem;
    color: var(--text-secondary, #64748b);
    margin-bottom: 1rem;
}

.app-exam-location-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.app-exam-location-item {
    background: var(--bg-surface-secondary, #f8fafc);
    border: 1px solid var(--border-color-light, #e2e8f0);
    border-radius: 8px;
    padding: 0.85rem 1rem;
}

.app-exam-location-item.is-active {
    background: rgba(26, 187, 156, 0.04);
    border-color: rgba(26, 187, 156, 0.3);
}

.app-exam-location-header {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 0.35rem;
}

.app-exam-location-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 50%;
    background: #1abb9c;
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 700;
}

.app-exam-location-item:not(.is-active) .app-exam-location-number {
    background: #cbd5e1;
    color: #475569;
}

.app-exam-location-city {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary, #1e293b);
    margin: 0;
}

.app-exam-location-tag {
    margin-left: auto;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 0.15rem 0.5rem;
    border-radius: 4px;
    background: rgba(26, 187, 156, 0.15);
    color: #0f6c5a;
}

.app-exam-location-tag.is-pending {
    background: #f1f5f9;
    color: #64748b;
}

.app-exam-location-address {
    font-size: 0.85rem;
    color: var(--text-primary, #334155);
    margin: 0;
    line-height: 1.45;
}

.app-exam-location-address.is-muted {
    color: var(--text-muted, #94a3b8);
    font-style: italic;
}

.app-invitation-modal-intro {
    color: var(--text-secondary);
    margin: 0 0 1rem;
}

.app-exam-location-choice {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.app-exam-location-option {
    align-items: flex-start;
    border: 1px solid var(--border-color-light);
    border-radius: var(--radius);
    cursor: pointer;
    display: flex;
    gap: 0.6rem;
    padding: 0.7rem 0.8rem;
    transition: border-color 0.12s, background 0.12s;
}

.app-exam-location-option:hover {
    border-color: var(--primary);
}

.app-exam-location-option:has(input:checked) {
    background: var(--primary-lt);
    border-color: var(--primary);
}

.app-exam-location-option input {
    flex-shrink: 0;
    margin-top: 0.2rem;
}

.app-exam-location-option-body {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}

.app-exam-location-option-body small {
    color: var(--text-muted);
    line-height: 1.4;
}

.app-candidate-announcement-card {
    border-left: 4px solid var(--blue);
    margin-bottom: 1rem;
}

.app-candidate-announcement-card .app-announcement-content {
    color: var(--text-secondary);
    margin: 0;
}

.app-statement-reupload-panel {
    max-width: 36rem;
}

.app-statement-reupload-panel .app-file-upload {
    margin-top: 0.4rem;
}

.app-statement-versions-panel {
    max-width: 42rem;
}

.app-statement-version-list {
    display: grid;
    gap: 0.75rem;
    max-height: min(65vh, 36rem);
    overflow-y: auto;
}

.app-statement-version-item {
    align-items: center;
    border: 1px solid var(--border-color-light);
    border-radius: var(--radius);
    display: flex;
    gap: 1rem;
    justify-content: space-between;
    padding: 0.75rem;
}

.app-statement-version-item strong,
.app-statement-version-item span {
    display: block;
}

.app-statement-version-item > div:first-child span {
    color: var(--text-muted);
    font-size: 0.75rem;
    margin-top: 0.2rem;
}

@media (max-width: 600px) {
    .app-statement-version-item {
        align-items: stretch;
        flex-direction: column;
    }

    .app-administration-passed-schedule > div {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.15rem;
    }
}

.app-dashboard-guidance strong {
    display: block;
    font-size: 0.78rem;
    margin-bottom: 0.35rem;
}

.app-dashboard-guidance p {
    color: var(--text-secondary);
    line-height: 1.55;
    margin: 0;
}

.app-dashboard-action {
    margin-top: 1rem;
}

.app-student-context-card {
    margin-bottom: 1rem;
}

.app-whatsapp-group-card {
    border-left: 4px solid #25d366;
    margin-bottom: 1rem;
}

.app-whatsapp-group-card .card-body {
    align-items: center;
    display: flex;
    gap: 1rem;
    justify-content: space-between;
}

.app-whatsapp-group-content {
    align-items: center;
    display: flex;
    gap: 0.85rem;
}

.app-whatsapp-group-content p {
    color: var(--text-secondary);
    margin: 0.3rem 0 0;
}

.app-whatsapp-group-icon {
    align-items: center;
    background: #e8f8ee;
    border-radius: 50%;
    color: #178b44;
    display: flex;
    flex: 0 0 2.75rem;
    height: 2.75rem;
    justify-content: center;
}

.app-whatsapp-group-icon svg {
    height: 1.45rem;
    width: 1.45rem;
}

.app-whatsapp-group-button {
    flex: 0 0 auto;
}

.app-whatsapp-group-mobile {
    display: none;
}

.app-whatsapp-group-modal-body p {
    color: var(--text-secondary);
    margin: 0;
}

.app-student-context-actions {
    align-items: flex-end;
    display: flex;
    gap: 0.75rem;
    justify-content: space-between;
}

.app-student-switcher {
    align-items: flex-end;
    display: flex;
    flex: 1;
    gap: 0.75rem;
    min-width: 0;
}

.app-student-switcher .form-group {
    flex: 1;
    margin-bottom: 0;
    min-width: 0;
    width: 100%;
}

.app-add-student-icon {
    flex: 0 0 auto;
    padding: 0.65rem;
}

.app-registration-closed {
    background: var(--bg-surface-secondary);
    border-radius: var(--radius);
    color: var(--text-muted);
    margin-top: 1rem;
    padding: 0.85rem;
}

.app-new-student-confirmation {
    margin-bottom: 1rem;
}

.app-new-student-confirmation[hidden],
[data-new-student-form][hidden] {
    display: none;
}

.app-new-student-confirmation p {
    color: var(--text-secondary);
    margin: 0 0 1rem;
}

.app-form-error-block {
    margin-bottom: 1rem;
}

.app-announcement-content {
    white-space: pre-line;
}

.app-announcement-excerpt {
    max-width: 28rem;
}

.app-batch-transfer-summary {
    display: grid;
    gap: 0 1rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.app-inline-value-action {
    align-items: center;
    display: inline-flex;
    gap: 0.35rem;
}

.app-edit-icon-button {
    align-items: center;
    background: transparent;
    border: 0;
    border-radius: var(--radius-sm);
    color: var(--primary);
    cursor: pointer;
    display: inline-flex;
    flex: 0 0 1.75rem;
    height: 1.75rem;
    justify-content: center;
    padding: 0;
    transition: background 0.15s, color 0.15s;
    width: 1.75rem;
}

.app-edit-icon-button:hover {
    background: var(--primary-lt);
    color: var(--primary-dk);
}

.app-edit-icon-button svg {
    height: 1rem;
    width: 1rem;
}

.app-approval-tabs {
    align-items: center;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    gap: 0.25rem;
    margin-bottom: 1rem;
    overflow-x: auto;
}

.app-approval-tab {
    align-items: center;
    border-bottom: 2px solid transparent;
    color: var(--text-muted);
    display: inline-flex;
    flex: 0 0 auto;
    gap: 0.5rem;
    margin-bottom: -1px;
    padding: 0.7rem 0.85rem;
    text-decoration: none;
}

.app-approval-tab:hover,
.app-approval-tab.active {
    border-bottom-color: var(--primary);
    color: var(--primary);
    text-decoration: none;
}

.app-approval-tab strong {
    align-items: center;
    background: var(--bg-surface-secondary);
    border-radius: 999px;
    color: inherit;
    display: inline-flex;
    font-size: 0.6875rem;
    justify-content: center;
    min-width: 1.5rem;
    padding: 0.2rem 0.4rem;
}

.app-dashboard-activity-grid {
    align-items: stretch;
}

.app-dashboard-activity-card {
    height: 100%;
    overflow: hidden;
}

.app-dashboard-activity-card .card-header {
    align-items: center;
}

.app-card-subtitle {
    color: var(--text-muted);
    font-size: 0.75rem;
    margin-top: 0.2rem;
}

.app-activity-card-meta {
    background: var(--bg-surface-secondary);
    border: 1px solid var(--border-color-light);
    border-radius: 999px;
    color: var(--text-muted);
    display: inline-flex;
    font-size: 0.6875rem;
    font-weight: var(--font-weight-medium);
    padding: 0.25rem 0.55rem;
    white-space: nowrap;
}

.app-activity-card-body {
    padding: 0.5rem 1rem;
}

.activity-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.activity-item {
    align-items: center;
    border-bottom: 1px solid var(--border-color-light);
    display: flex;
    gap: 0.75rem;
    min-height: 4.35rem;
    padding: 0.65rem 0;
}

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

.activity-avatar {
    align-items: center;
    border-radius: 50%;
    color: #fff;
    display: inline-flex;
    flex: 0 0 2.6rem;
    font-size: 0.875rem;
    font-weight: var(--font-weight-bold);
    height: 2.6rem;
    justify-content: center;
    letter-spacing: -0.025em;
}

.activity-avatar .stat-value {
    color: inherit;
    font-size: inherit;
    line-height: 1;
}

.app-activity-avatar-primary {
    background: #1abb9c;
    background: linear-gradient(135deg, var(--primary, #1abb9c), var(--primary-dk, #169f85));
}

.app-activity-avatar-blue {
    background: linear-gradient(135deg, var(--blue), #0550a0);
}

.app-activity-avatar-green {
    background: linear-gradient(135deg, var(--green), #1a8a32);
}

.app-activity-avatar-yellow {
    background: linear-gradient(135deg, var(--yellow), #c97f00);
}

.app-activity-avatar-purple {
    background: linear-gradient(135deg, var(--purple), #8a2da0);
}

.app-activity-avatar-red {
    background: linear-gradient(135deg, var(--red), #a82b2b);
}

.activity-content {
    flex: 1;
    min-width: 0;
}

.activity-body {
    color: var(--text);
    line-height: 1.35;
}

.activity-body strong {
    font-weight: var(--font-weight-semibold);
}

.activity-time {
    color: var(--text-muted);
    font-size: 0.75rem;
    line-height: 1.35;
    margin-top: 0.2rem;
}

.activity-action {
    align-items: center;
    border-radius: 50%;
    color: var(--text-muted);
    display: inline-flex;
    flex: 0 0 2rem;
    height: 2rem;
    justify-content: center;
    transition: background 0.15s, color 0.15s;
}

.activity-action:hover,
.activity-action:focus-visible {
    background: var(--primary-lt);
    color: var(--primary);
    text-decoration: none;
}

.activity-action svg {
    height: 0.875rem;
    width: 0.875rem;
}

.app-registration-progress {
    margin-top: 1.25rem;
}

.app-registration-progress-header {
    align-items: center;
}

.app-registration-progress-value {
    color: var(--primary);
    font-size: 1.5rem;
}

.app-progress-track {
    background: var(--body-bg);
    border-radius: 999px;
    height: 0.75rem;
    overflow: hidden;
}

.app-progress-fill {
    background: var(--primary);
    border-radius: inherit;
    height: 100%;
    transition: width 0.2s ease;
}

.app-registration-current-step {
    align-items: center;
    display: flex;
    gap: 1rem;
    justify-content: space-between;
    margin: 1.25rem 0;
}

.app-registration-current-step > div {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.app-registration-current-step span,
.app-registration-step small {
    color: var(--text-muted);
}

.app-registration-step-grid {
    display: grid;
    gap: 0.75rem;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.app-registration-step {
    align-items: center;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    color: inherit;
    display: flex;
    gap: 0.75rem;
    min-width: 0;
    padding: 0.85rem;
}

.app-registration-step:hover {
    text-decoration: none;
}

@media (max-width: 768px) {
    .app-student-switcher {
        align-items: stretch;
        flex-direction: column;
    }

    .app-student-switcher .btn {
        justify-content: center;
    }

    .app-topbar-brand {
        display: inline-flex;
        left: 50%;
        max-width: calc(100% - 7rem);
        position: absolute;
        transform: translateX(-50%);
    }

    .app-topbar-brand-copy {
        overflow: hidden;
    }

    .app-topbar-active-mobile {
        display: block;
    }

    .app-topbar-page-context {
        display: none;
    }

    .app-dashboard-guidance {
        grid-template-columns: minmax(0, 1fr);
    }

    .app-whatsapp-group-card {
        display: none;
    }

    .app-whatsapp-group-mobile {
        display: block;
        justify-content: center;
        margin-bottom: 1rem;
        width: 100%;
    }
}

.app-registration-step[aria-disabled="true"] {
    cursor: not-allowed;
    opacity: 0.55;
}

.app-registration-step > span:last-child {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.app-registration-step-number {
    align-items: center;
    background: var(--body-bg);
    border-radius: 50%;
    display: inline-flex;
    flex: 0 0 2rem;
    height: 2rem;
    justify-content: center;
}

.app-registration-step.is-complete {
    background: var(--primary-lt);
    border-color: var(--primary);
}

.app-registration-step.is-complete .app-registration-step-number {
    background: var(--primary);
    color: #fff;
}

.app-registration-step.is-current {
    box-shadow: 0 0 0 2px var(--primary-lt);
    border-color: var(--primary);
}

.sidebar .nav-form {
    margin: 0;
}

.sidebar .nav-button {
    background: transparent;
    border: 0;
    font-family: inherit;
    text-align: left;
    width: 100%;
}

.sidebar .nav-button:disabled {
    cursor: wait;
    opacity: 0.65;
}

.sidebar-user .app-logout-button {
    align-items: center;
    background: transparent;
    border: 0;
    border-radius: var(--radius-sm);
    color: var(--sidebar-text);
    cursor: pointer;
    display: inline-flex;
    flex-shrink: 0;
    font: inherit;
    font-size: 0.75rem;
    gap: 0.35rem;
    padding: 0.35rem 0.45rem;
}

.sidebar-user .app-logout-button:hover,
.sidebar-user .app-logout-button:focus-visible {
    background: var(--sidebar-hover);
    color: var(--sidebar-text-hover);
}

.sidebar-user .app-logout-button:disabled {
    cursor: wait;
    opacity: 0.65;
}

body.sidebar-rail .sidebar-user .app-logout-button {
    display: none;
}

.app-row-actions,
.app-form-actions,
.app-pagination {
    align-items: center;
    display: flex;
    gap: 0.5rem;
}

.app-row-actions form {
    margin: 0;
}

.app-form-card {
    max-width: 720px;
}

.app-form-actions {
    justify-content: flex-end;
}

.app-pagination {
    color: var(--text-muted);
    justify-content: center;
    margin-top: 1rem;
}

.app-pagination [aria-disabled="true"] {
    cursor: not-allowed;
    opacity: 0.55;
}

.app-mobile-list {
    display: none;
}

.app-master-card {
    margin-bottom: 0.75rem;
}

.app-master-field {
    align-items: flex-start;
    border-bottom: 1px solid var(--border-color-light);
    display: flex;
    gap: 1rem;
    justify-content: space-between;
    padding: 0.6rem 0;
}

.app-master-field > span {
    color: var(--text-muted);
}

.app-master-field > strong {
    font-weight: var(--font-weight-medium);
    text-align: right;
}

.app-master-card-actions {
    justify-content: flex-end;
    margin-top: 1rem;
}

.app-infinite-sentinel {
    color: var(--text-muted);
    min-height: 1.5rem;
    padding: 0.5rem;
    text-align: center;
}

@media (min-width: 769px) {
    .page-wrapper {
        padding-bottom: 20px;
    }

    .app-desktop-infinite-pagination.is-infinite-hidden {
        display: none;
    }

    [data-desktop-infinite-scroll] {
        overflow-x: auto;
        overflow-y: auto;
        overscroll-behavior: contain;
        scrollbar-gutter: stable;
    }

    [data-desktop-infinite-table] thead th {
        background: var(--bg-surface);
        position: sticky;
        top: 0;
        z-index: 2;
    }

    .app-desktop-infinite-sentinel {
        color: var(--text-muted);
        min-height: 2rem;
        padding: 0.5rem 1rem;
        text-align: center;
    }
}

.app-payment-summary {
    align-items: center;
    border-bottom: 1px solid var(--border-color-light);
    display: flex;
    gap: 1rem;
    justify-content: space-between;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
}

.app-payment-summary span {
    color: var(--text-muted);
}

.app-payment-summary strong {
    font-size: 1rem;
}

.app-payment-account {
    text-align: right;
}

.app-payment-account .font-weight-medium {
    font-weight: var(--font-weight-medium);
}

.app-payment-account .text-secondary {
    color: var(--text-muted);
}

.app-copy-account-button {
    margin-top: 0.625rem;
}

.app-file-upload {
    background: var(--bg-surface-secondary);
    border: 1.5px dashed var(--border-color);
    border-radius: var(--radius-lg);
    min-height: 7.5rem;
    overflow: hidden;
    position: relative;
    transition: background 0.15s, border-color 0.15s, box-shadow 0.15s;
}

.app-file-upload:hover,
.app-file-upload:has(.app-file-upload-input:focus-visible) {
    background: var(--primary-lt);
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-lt);
}

.app-file-upload.has-file {
    background: var(--green-lt);
    border-color: var(--green);
    border-style: solid;
}

.app-file-upload-input {
    cursor: pointer;
    inset: 0;
    opacity: 0;
    position: absolute;
    width: 100%;
    z-index: 2;
}

.app-file-upload-content {
    align-items: center;
    display: flex;
    gap: 1rem;
    inset: 0;
    justify-content: center;
    padding: 1.25rem;
    position: absolute;
}

.app-file-upload-icon {
    align-items: center;
    background: var(--primary-lt);
    border-radius: 50%;
    color: var(--primary);
    display: inline-flex;
    flex: 0 0 3rem;
    height: 3rem;
    justify-content: center;
}

.app-file-upload.has-file .app-file-upload-icon {
    background: var(--green-lt);
    color: var(--green);
}

.app-file-upload-copy {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    min-width: 0;
}

.app-file-upload-copy strong {
    color: var(--text);
    font-weight: var(--font-weight-medium);
}

.app-file-upload-copy > span {
    color: var(--text-muted);
    font-size: 0.75rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.app-upload-button {
    justify-content: center;
    min-width: 9.5rem;
}

.app-upload-spinner {
    animation: app-upload-spin 0.7s linear infinite;
    border: 2px solid rgb(255 255 255 / 40%);
    border-radius: 50%;
    border-top-color: #fff;
    display: none;
    flex: 0 0 0.875rem;
    height: 0.875rem;
    width: 0.875rem;
}

.is-uploading .app-upload-spinner {
    display: inline-block;
}

.is-uploading .app-file-upload {
    opacity: 0.65;
}

.is-uploading .app-file-upload-input {
    cursor: wait;
    pointer-events: none;
}

.app-upload-status {
    color: var(--text-muted);
    font-size: 0.75rem;
    margin-top: 0.625rem;
}

@keyframes app-upload-spin {
    to {
        transform: rotate(360deg);
    }
}

@media (prefers-reduced-motion: reduce) {
    .app-upload-spinner {
        animation-duration: 1.5s;
    }
}

.app-date-fields {
    display: grid;
    gap: 0.5rem;
    grid-template-columns: minmax(5.5rem, 0.7fr) minmax(9rem, 1.3fr) minmax(8rem, 1fr);
}

.app-date-fields > div {
    min-width: 0;
}

.app-radio-group {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.app-radio-group-stacked {
    align-items: stretch;
    flex-direction: column;
}

.app-radio-option {
    align-items: center;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    cursor: pointer;
    display: flex;
    gap: 0.6rem;
    min-height: 2.75rem;
    padding: 0.7rem 0.85rem;
}

.app-radio-option:has(input:checked) {
    background: var(--primary-lt);
    border-color: var(--primary);
}

.app-health-condition-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.app-option-fieldset {
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    margin: 0;
    min-width: 0;
    padding: 1rem;
}

.app-option-fieldset.app-new-student-fieldset {
    margin-bottom: 1.25rem;
}

.form-group.app-option-fieldset {
    margin-bottom: 1.25rem;
}

.app-guardian-card {
    margin-bottom: 1.25rem;
}

.app-guardian-actions {
    justify-content: flex-end;
}

.app-option-fieldset legend {
    float: none;
    font-size: 0.875rem;
    font-weight: var(--font-weight-medium);
    line-height: 1.45;
    margin-bottom: 0.85rem;
    padding: 0;
    width: auto;
}

.app-finance-actions,
.app-reject-form {
    align-items: center;
    display: flex;
    gap: 0.5rem;
}

.app-list-filter {
    margin-bottom: 1rem;
}

.app-application-summary {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    display: grid;
    gap: 0;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    margin-bottom: 1rem;
    overflow: hidden;
}

.app-application-summary > .card {
    appearance: none;
    background: var(--bg-surface);
    border: 0;
    border-right: 1px solid var(--border-color-light);
    border-radius: 0;
    box-shadow: none;
    min-width: 0;
    color: inherit;
    cursor: pointer;
    font: inherit;
    width: 100%;
}

.app-application-summary > .card:hover,
.app-application-summary > .card.is-active {
    background: var(--primary-lt);
}

.app-application-summary > .card.is-active {
    box-shadow: inset 0 -3px 0 var(--primary);
}

.app-application-summary > .card:last-child {
    border-right: 0;
}

.app-applications-toolbar {
    align-items: stretch;
    display: grid;
    gap: 1rem;
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    margin-bottom: 1rem;
}

.app-applications-toolbar .app-application-summary,
.app-applications-toolbar .app-list-filter {
    margin-bottom: 0;
}

.app-application-mobile-filter-trigger {
    display: none;
}

.app-application-filter-modal {
    background: transparent;
    border: 0;
    margin: auto;
    max-width: calc(100% - 1.5rem);
    padding: 0;
    width: 28rem;
}

.app-application-filter-modal::backdrop {
    background: rgb(15 23 42 / 55%);
    backdrop-filter: blur(2px);
}

.app-application-filter-modal-panel {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: 0 1rem 3rem rgb(15 23 42 / 24%);
    overflow: hidden;
}

.app-application-filter-modal-header {
    align-items: center;
    border-bottom: 1px solid var(--border-color-light);
    display: flex;
    justify-content: space-between;
    padding: 1rem;
}

.app-application-filter-modal-form {
    display: grid;
    gap: 1rem;
    padding: 1rem;
}

.app-application-filter-modal-actions {
    display: flex;
    gap: 0.5rem;
    justify-content: flex-end;
}

.app-applications-toolbar .app-status-filter {
    align-items: flex-start;
}

.app-application-summary .card-body {
    display: flex;
    flex-direction: column;
    height: 100%;
    justify-content: center;
    padding: 0.75rem 0.5rem;
    text-align: center;
}

.app-summary-caption,
.app-input-caption {
    color: var(--text-muted);
    display: block;
    font-size: 0.625rem;
    font-weight: var(--font-weight-medium);
    line-height: 1.25;
    margin-top: 0.2rem;
}

.app-summary-caption {
    white-space: nowrap;
}

@media (min-width: 1101px) {
    .app-applications-toolbar .app-list-filter .card-body {
        padding: 0.75rem;
    }

    .app-applications-toolbar .app-status-filter .form-group {
        flex: 1 1 7rem;
        min-width: 0;
    }

    .app-applications-toolbar .app-application-summary .app-card-subtitle {
        display: none;
    }
}

@media (max-width: 1100px) {
    .app-applications-toolbar {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 600px) {
    .app-application-summary {
        grid-template-columns: repeat(5, minmax(0, 1fr));
    }

    .app-application-summary .card-body {
        align-items: center;
        display: flex;
        flex-direction: column;
        min-width: 0;
        padding: 0.65rem 0.2rem;
        text-align: center;
    }

    .app-application-summary .app-summary-caption {
        font-size: 0.4375rem;
        line-height: 1.2;
        margin: 0;
        white-space: nowrap;
    }

    .app-application-summary .page-title {
        font-size: 1.125rem;
        line-height: 1.2;
        margin-bottom: 0.2rem;
    }

    .app-application-summary .app-card-subtitle {
        display: none;
    }
}

@media (max-width: 768px) {
    .app-applications-toolbar > .app-list-filter {
        display: none;
    }

    .app-application-mobile-filter-trigger {
        display: flex;
        justify-content: flex-end;
    }

    .app-application-mobile-filter-trigger .btn {
        justify-content: center;
        width: 100%;
    }
}

.app-search-form {
    align-items: flex-end;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.app-search-form .form-group {
    flex: 1 1 18rem;
    margin-bottom: 0;
}

.app-report-table {
    min-width: 58rem;
}

.app-report-filter .card-body {
    padding: 0.75rem;
}

.app-report-filter-form .form-group {
    flex: 0 1 15rem;
}

.app-report-table th,
.app-report-table td {
    padding-bottom: 0.65rem;
    padding-top: 0.65rem;
    white-space: nowrap;
}

.app-report-table .app-report-number {
    text-align: center;
}

.app-report-value {
    color: var(--text);
    font-size: 0.875rem;
    font-weight: var(--font-weight-bold);
}

.app-report-summary th,
.app-report-summary td {
    background: var(--bg-surface-secondary);
    border-top: 2px solid var(--border-color);
    color: var(--text);
}

.app-registration-source-summary {
    display: grid;
    gap: 0.5rem;
    grid-template-columns: repeat(var(--registration-source-summary-count), minmax(0, 1fr));
    margin-bottom: 1rem;
}

.app-registration-source-summary .card {
    color: inherit;
    margin-bottom: 0;
    min-width: 0;
    text-decoration: none;
}

.app-registration-source-summary .card:hover,
.app-registration-source-summary .card.is-active {
    background: var(--primary-lt);
}

.app-registration-source-summary .card.is-active {
    box-shadow: inset 0 -3px 0 var(--primary);
}

.app-registration-source-summary .card-body {
    padding: 0.7rem;
}

.app-registration-source-summary .page-pretitle {
    font-size: 0.68rem;
    line-height: 1.2;
}

.app-registration-source-summary .page-title {
    font-size: 1.15rem;
    margin-top: 0.2rem;
}

.app-registration-source-summary .app-card-subtitle {
    font-size: 0.68rem;
    line-height: 1.25;
}

.app-registration-source-summary-mobile,
.app-referrer-summary-mobile {
    display: none;
    margin-bottom: 1rem;
}

.app-registration-source-summary-mobile .table,
.app-referrer-summary-mobile .table {
    margin-bottom: 0;
}

.app-registration-source-summary-mobile th,
.app-registration-source-summary-mobile td,
.app-referrer-summary-mobile th,
.app-referrer-summary-mobile td {
    font-size: 0.78rem;
    padding: 0.55rem 0.75rem;
}

.app-registration-source-summary-mobile th,
.app-referrer-summary-mobile th {
    color: var(--text-muted);
    font-weight: var(--font-weight-medium);
    text-align: left;
}

.app-registration-source-summary-mobile td,
.app-referrer-summary-mobile td {
    color: var(--text);
    font-variant-numeric: tabular-nums;
    font-weight: var(--font-weight-bold);
    text-align: right;
}

.app-registration-source-summary-mobile .app-registration-source-summary-total th,
.app-registration-source-summary-mobile .app-registration-source-summary-total td,
.app-referrer-summary-mobile .app-referrer-summary-total th,
.app-referrer-summary-mobile .app-referrer-summary-total td {
    background: var(--bg-surface-secondary);
    border-top: 2px solid var(--border-color);
    color: var(--text);
}

.app-referrer-summary {
    margin-bottom: 1rem;
}

table[data-server-datatable],
table[data-applications-datatable] {
    margin-bottom: 0;
}

.app-applications-table-card .table-responsive {
    overflow-x: auto;
}

.app-applications-table-card .dt-container,
.app-applications-table-card .dt-scroll {
    width: 100%;
}

.app-applications-table-card .dt-scroll-body {
    overscroll-behavior: contain;
    scrollbar-gutter: stable;
}

.app-applications-table-card table[data-applications-datatable] {
    min-width: 72rem;
}

.app-applications-table-card thead th {
    white-space: nowrap;
}

.app-applications-table-card .dt-scroll-body table[data-applications-datatable] thead {
    visibility: collapse;
}

table[data-server-datatable] + .dt-scroll-body,
.dt-scroll-body:has(table[data-server-datatable]) {
    overscroll-behavior: contain;
    scrollbar-gutter: stable;
}

.dt-scroll-body table[data-server-datatable] thead {
    visibility: collapse;
}

.app-datatable-header-controls {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-left: auto;
}

.app-datatable-header-controls .dt-length,
.app-datatable-header-controls .dt-search {
    margin: 0;
}

.app-datatable-header-controls label {
    align-items: center;
    display: flex;
    gap: 0.4rem;
    white-space: nowrap;
}

.app-log-desktop-search {
    min-width: min(22rem, 32vw);
}

.app-log-mobile-view .form-group {
    margin-bottom: 0;
}

.app-log-mobile-items {
    display: grid;
    gap: 0.75rem;
}

.app-log-mobile-card {
    margin-bottom: 0;
}

.app-log-mobile-card .app-master-field > strong {
    max-width: 65%;
    overflow-wrap: anywhere;
}

.app-log-mobile-card .app-audit-details {
    text-align: left;
}

.app-log-mobile-card .app-audit-details pre {
    max-width: min(60vw, 24rem);
}

.app-log-mobile-sentinel {
    color: var(--text-muted);
    min-height: 2.5rem;
    margin-top: 1rem;
    text-align: center;
}

.app-finance-actions {
    flex-wrap: wrap;
}

.app-status-filter .form-group {
    flex: 0 1 20rem;
}

.app-administration-decisions {
    align-items: stretch;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.app-administration-decisions > form {
    display: grid;
    gap: 0.5rem;
    grid-template-columns: minmax(0, 1fr) auto;
    margin: 0;
    width: 100%;
}

.app-administration-decisions > form:first-child .btn {
    grid-column: 1 / -1;
    width: 100%;
}

.app-reject-form .form-control {
    min-width: 180px;
}

.app-payment-proof-link {
    margin-top: 1rem;
}

.app-proof-modal {
    background: transparent;
    border: 0;
    height: 100%;
    max-height: none;
    max-width: none;
    padding: 1.5rem;
    width: 100%;
}

.app-proof-modal::backdrop {
    background: rgb(15 23 42 / 72%);
}

.app-proof-modal-panel {
    background: var(--bg-surface);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    display: flex;
    flex-direction: column;
    height: 100%;
    margin: auto;
    max-width: 1100px;
    overflow: hidden;
}

.app-proof-modal-header {
    align-items: center;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    gap: 1rem;
    justify-content: space-between;
    padding: 1rem 1.25rem;
}

.app-proof-modal-header h2 {
    font-size: 1.125rem;
    margin: 0.15rem 0 0;
}

.app-proof-modal-body {
    background: var(--body-bg);
    flex: 1;
    min-height: 0;
    padding: 0.75rem;
}

.app-proof-modal-body iframe {
    background: #fff;
    border: 0;
    border-radius: var(--radius);
    height: 100%;
    width: 100%;
}

.app-compact-modal {
    align-items: center;
}

.app-compact-modal[open] {
    display: flex;
}

.app-compact-modal-panel {
    height: auto;
    max-height: calc(100vh - 3rem);
    max-width: 34rem;
    width: 100%;
}

.app-batch-transfer-modal-form {
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.app-compact-modal-body {
    overflow-y: auto;
    padding: 1.25rem;
}

.app-compact-modal-body .form-group {
    margin: 0;
}

.app-compact-modal-footer {
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: flex-end;
    padding: 0.85rem 1.25rem;
}

.app-document-preview-toolbar {
    align-items: center;
    background: var(--bg-surface);
    border-bottom: 1px solid var(--border-color);
    color: var(--text-muted);
    display: flex;
    font-size: 0.8125rem;
    gap: 1rem;
    justify-content: space-between;
    padding: 0.6rem 1.25rem;
}

.app-document-preview-toolbar[hidden],
.app-document-pdf-toolbar[hidden],
.app-document-image-stage[hidden],
.app-document-pdf-stage[hidden],
.app-document-preview-body iframe[hidden] {
    display: none;
}

.app-document-zoom-actions {
    align-items: center;
    display: flex;
    gap: 0.4rem;
}

.app-document-zoom-actions .btn {
    justify-content: center;
    min-width: 2.5rem;
    padding: 0.45rem 0.65rem;
}

.app-document-zoom-level {
    color: var(--text-secondary);
    min-width: 3.5rem;
    text-align: right;
}

.app-document-pdf-toolbar {
    align-items: center;
    background: var(--bg-surface);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    gap: 0.75rem;
    justify-content: space-between;
    padding: 0.6rem 1.25rem;
}

.app-document-pdf-actions {
    align-items: center;
    display: flex;
    gap: 0.4rem;
}

.app-document-pdf-actions .btn {
    justify-content: center;
    min-width: 2.5rem;
}

.app-document-pdf-page {
    color: var(--text-secondary);
    font-size: 0.75rem;
    min-width: 4.5rem;
    text-align: center;
}

.app-document-preview-body {
    overflow: auto;
    padding: 0;
    position: relative;
}

.app-document-preview-feedback {
    align-items: center;
    background: var(--bg-surface-secondary);
    color: var(--text-muted);
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    inset: 0;
    justify-content: center;
    padding: 2rem;
    position: absolute;
    text-align: center;
    z-index: 2;
}

.app-document-preview-feedback[hidden] {
    display: none;
}

.app-document-preview-error {
    color: var(--red);
}

.app-document-preview-spinner {
    animation: app-upload-spin 0.7s linear infinite;
    border: 3px solid var(--border-color);
    border-radius: 50%;
    border-top-color: var(--primary);
    height: 2rem;
    width: 2rem;
}

.app-document-image-stage {
    align-items: center;
    display: flex;
    justify-content: center;
    min-height: 100%;
    min-width: 100%;
}

.app-document-image-stage img {
    display: block;
    flex: 0 0 auto;
    object-fit: contain;
}

.app-document-pdf-stage {
    align-items: flex-start;
    display: flex;
    justify-content: center;
    min-height: 100%;
    min-width: 100%;
    padding: 0.75rem;
}

.app-document-pdf-stage canvas {
    background: #fff;
    box-shadow: 0 2px 12px rgb(15 23 42 / 18%);
    display: block;
    height: auto;
    max-width: none;
}

.app-review-modal-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: minmax(0, 1fr) 340px;
    height: 100%;
    min-height: 0;
}

.app-review-modal-frame {
    height: 100%;
    min-height: 400px;
}

.app-review-modal-frame iframe {
    background: #fff;
    border: 0;
    border-radius: var(--radius);
    height: 100%;
    width: 100%;
}

.app-initial-fee-proof-preview {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 0;
}

.app-initial-fee-proof-preview .app-document-preview-body {
    flex: 1;
    min-height: 0;
}

.app-review-modal-sidebar {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    overflow-y: auto;
    padding: 1rem;
}

.app-initial-fee-review-panel {
    max-width: 1180px;
}

.app-review-sidebar-title {
    font-size: 0.95rem;
    font-weight: var(--font-weight-medium);
    margin: 0 0 0.25rem;
}

.app-review-remaining {
    color: var(--primary);
}

.app-review-divider {
    border: 0;
    border-top: 1px solid var(--border-color);
    margin: 0.5rem 0;
    width: 100%;
}

.app-review-decision {
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin: 0;
    padding: 0.85rem;
}

.app-review-decision .form-group {
    margin: 0;
}

.app-review-decision .btn {
    justify-content: center;
    width: 100%;
}

.app-review-approve {
    border-left: 3px solid var(--primary);
}

.app-review-reject {
    border-left: 3px solid var(--red);
}

@media (max-width: 768px) {
    .app-batch-transfer-summary {
        grid-template-columns: minmax(0, 1fr);
    }

    .app-compact-modal {
        padding: 1rem;
    }

    .app-compact-modal-panel {
        border-radius: var(--radius-lg);
        max-height: calc(100vh - 2rem);
    }

    .app-compact-modal-footer .btn {
        justify-content: center;
        width: 100%;
    }

    .app-initial-fee-review-modal {
        padding: 0;
    }

    .app-initial-fee-review-panel {
        border-radius: 0;
        max-width: none;
    }

    .app-initial-fee-review-panel .app-proof-modal-header {
        align-items: flex-start;
        padding: 0.85rem 1rem;
    }

    .app-initial-fee-review-panel .app-proof-modal-header > div {
        min-width: 0;
    }

    .app-initial-fee-review-panel .app-proof-modal-header h2,
    .app-initial-fee-review-panel .app-card-subtitle {
        overflow-wrap: anywhere;
    }

    .app-proof-modal-body {
        overflow-y: auto;
    }

    .app-initial-fee-review-panel .app-proof-modal-body {
        padding: 0.5rem;
    }

    .app-review-modal-grid {
        display: flex;
        flex-direction: column;
        height: auto;
        overflow-y: visible;
    }

    .app-review-modal-frame {
        flex: 0 0 min(42vh, 320px);
        height: min(42vh, 320px);
        min-height: 240px;
    }

    .app-review-modal-sidebar {
        flex: 0 0 auto;
        overflow-y: visible;
        padding: 0.85rem;
    }

    .app-mobile-list [data-initial-fee-review-open] {
        justify-content: center;
        width: 100%;
    }
}

.app-document-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.app-document-actions form {
    margin: 0;
}

.app-audit-details {
    margin-top: 0.5rem;
}

.app-audit-details summary {
    color: var(--primary);
    cursor: pointer;
}

.app-audit-details pre {
    background: var(--body-bg);
    border-radius: var(--radius);
    font-size: 0.75rem;
    max-width: 34rem;
    overflow-x: auto;
    padding: 0.75rem;
    white-space: pre-wrap;
}

.app-permission-grid {
    display: grid;
    gap: 0.75rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.app-permission-option {
    align-items: flex-start;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    cursor: pointer;
    display: flex;
    gap: 0.75rem;
    padding: 0.9rem;
}

.app-permission-option:has(input:checked) {
    background: var(--primary-lt);
    border-color: var(--primary);
}

.app-permission-option span {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.app-permission-option small {
    color: var(--text-muted);
}

.app-finance-actions-mobile {
    align-items: stretch;
    flex-direction: column;
    margin-top: 1rem;
}

.app-finance-actions-mobile form:first-child .btn,
.app-finance-actions-mobile .app-reject-form,
.app-finance-actions-mobile .app-reject-form .form-control {
    width: 100%;
}

.app-payment-history-card {
    border-bottom: 1px solid var(--border-color);
    padding: 1rem;
}

.app-payment-history-card:last-child {
    border-bottom: 0;
}

.app-step-nav {
    display: grid;
    gap: 0.5rem;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    margin-bottom: 1.25rem;
}

.app-step {
    align-items: center;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    color: var(--text-muted);
    display: flex;
    font-size: 0.75rem;
    gap: 0.5rem;
    padding: 0.65rem;
}

.app-step:hover {
    text-decoration: none;
}

.app-step span {
    align-items: center;
    background: var(--body-bg);
    border-radius: 50%;
    display: inline-flex;
    flex: 0 0 1.5rem;
    height: 1.5rem;
    justify-content: center;
}

.app-step.active {
    background: var(--primary-lt);
    border-color: var(--primary);
    color: var(--primary);
    font-weight: var(--font-weight-medium);
}

.app-document-file {
    display: flex;
    flex-direction: column;
    margin: 0 0 1rem;
}

.app-document-file small {
    color: var(--text-muted);
}

.app-document-template-download {
    align-items: center;
    display: flex;
    gap: 0.75rem;
    justify-content: space-between;
}

.app-document-template-download .btn {
    flex: 0 0 auto;
}

.app-completeness-row {
    align-items: center;
    display: flex;
    justify-content: space-between;
}

.app-completeness-row > div {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.app-summary-answer {
    margin-top: 0.75rem;
}

.app-summary-guardian {
    margin-bottom: 1rem;
}

.app-summary-guardian:last-child {
    margin-bottom: 0;
}

.app-summary-section {
    margin-bottom: 1.25rem;
}

.app-review-document {
    align-items: center;
    border-bottom: 1px solid var(--border-color-light);
    display: flex;
    gap: 1rem;
    justify-content: space-between;
    padding: 1rem 0;
}

.app-review-document > div:first-child {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.app-review-actions {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.app-review-decision {
    margin-top: 1rem;
}

.app-score-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.app-exam-result-card {
    border-left: 0.3rem solid var(--border-color);
}

.app-exam-result-card.is-passed {
    border-left-color: var(--green);
}

.app-exam-result-card.is-failed {
    border-left-color: var(--red);
}

.app-exam-result-card h2 {
    margin: 0.35rem 0;
}

.app-exam-result-card p {
    color: var(--text-muted);
    margin: 0;
}

@media (max-width: 768px) {
    .app-welcome-name {
        display: inline-block;
        max-width: 13ch;
        overflow: hidden;
        text-overflow: ellipsis;
        vertical-align: bottom;
        white-space: nowrap;
    }

    .app-registration-current-step {
        align-items: stretch;
        flex-direction: column;
    }

    .app-registration-current-step .btn {
        justify-content: center;
    }

    .app-document-template-download {
        align-items: stretch;
        flex-direction: column;
    }

    .app-document-template-download .btn {
        justify-content: center;
        width: 100%;
    }

    .app-registration-step-grid {
        grid-template-columns: 1fr;
    }

    .app-health-condition-grid {
        grid-template-columns: 1fr;
    }

    .app-date-fields {
        grid-template-columns: 1fr 1.35fr;
    }

    .app-date-fields > div:last-child {
        grid-column: 1 / -1;
    }

    .app-proof-modal {
        padding: 0;
    }

    .app-proof-modal-panel {
        border-radius: 0;
        max-width: none;
    }

    .app-proof-modal.app-compact-modal {
        padding: 1rem;
    }

    .app-proof-modal-panel.app-compact-modal-panel {
        border-radius: var(--radius-lg);
        max-height: calc(100vh - 2rem);
        max-width: 34rem;
    }

    .app-proof-modal-header {
        padding: 0.85rem 1rem;
    }

    .app-document-preview-toolbar {
        align-items: flex-start;
        flex-direction: column;
        gap: 0.45rem;
        padding: 0.6rem 1rem;
    }

    .app-document-pdf-toolbar {
        align-items: center;
        flex-wrap: wrap;
        gap: 0.45rem;
        padding: 0.6rem 1rem;
    }

    .app-document-pdf-actions {
        justify-content: space-between;
        min-width: 0;
    }

    .app-document-pdf-actions:last-child {
        flex: 1 1 100%;
    }

    .app-document-zoom-actions {
        justify-content: space-between;
        width: 100%;
    }

    .app-score-grid {
        grid-template-columns: 1fr;
    }

    .app-permission-grid {
        grid-template-columns: 1fr;
    }

    .app-step-nav {
        display: flex;
        overflow-x: auto;
        padding-bottom: 0.25rem;
    }

    .app-step {
        flex: 0 0 auto;
    }

    .app-review-document,
    .app-review-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .app-review-actions .app-reject-form,
    .app-review-actions .form-control {
        width: 100%;
    }
}

.btn-danger {
    background: var(--red);
    border-color: var(--red);
    color: #fff;
}

.btn-danger:hover {
    filter: brightness(0.92);
}

.app-floating-help {
    align-items: center;
    background: #168c68;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 999px;
    bottom: 1.25rem;
    box-shadow: 0 8px 24px rgba(13, 74, 57, 0.24);
    color: #fff;
    display: inline-flex;
    font-size: 0.875rem;
    font-weight: 600;
    gap: 0.5rem;
    padding: 0.7rem 1rem;
    position: fixed;
    right: 1.25rem;
    text-decoration: none;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
    z-index: 40;
}

.app-floating-help:hover,
.app-floating-help:focus-visible {
    box-shadow: 0 10px 28px rgba(13, 74, 57, 0.34);
    color: #fff;
    transform: translateY(-2px);
}

.app-help-contact-list {
    display: grid;
    gap: 1rem;
}

.app-help-contact-card .card-body {
    align-items: center;
    display: flex;
    gap: 1rem;
    justify-content: space-between;
}

.app-help-contact-card h2,
.app-help-contact-card p {
    margin-bottom: 0.25rem;
}

@media (max-width: 768px) {
    .app-registration-source-summary {
        display: none;
    }

    .app-registration-source-summary-mobile {
        display: block;
    }

    .app-referrer-summary {
        display: none;
    }

    .app-referrer-summary-mobile {
        display: block;
    }

    .app-floating-help {
        bottom: 1rem;
        right: 1rem;
    }

    .app-help-contact-card .card-body {
        align-items: stretch;
        flex-direction: column;
    }

    .app-help-contact-card .btn {
        justify-content: center;
    }

    .app-report-filter-form .form-group {
        flex: 1 1 calc(50% - 0.25rem);
        min-width: 0;
    }

    .app-report-filter-form .btn {
        flex: 1 0 100%;
        justify-content: center;
        width: 100%;
    }

    .app-desktop-list {
        display: none;
    }

    .app-desktop-list.app-mobile-visible-table {
        display: block;
    }

    .app-mobile-visible-table .table-responsive,
    .app-mobile-visible-table .dt-scroll-body {
        -webkit-overflow-scrolling: touch;
        overflow-x: auto;
    }

    .app-mobile-list {
        display: block;
    }

    .app-pagination {
        display: none;
    }
}
