/* ===============================================
   SAHE SMS - Admissions Module
   Navy (#1e3a5f) + White — Professional & Clean
   =============================================== */

/* ===== Admissions Metric Extensions ===== */
.metric-card.highlight-warning {
    border-left: 3px solid #ca8a04;
}
.metric-badge {
    position: absolute;
    top: 6px;
    right: 8px;
    display: inline-flex;
    padding: 2px 8px;
    font-size: 10px;
    line-height: 1.2;
    font-weight: 600;
    border-radius: 9999px;
    background: #fef2f2;
    color: #dc2626;
    white-space: nowrap;
    pointer-events: none;
    box-shadow: 0 1px 2px rgba(0,0,0,.04);
}

/* ===== Admissions Panel Extensions ===== */
.panel-actions { display: flex; gap: .5rem; align-items: center; }
.trend-period {
    font-size: .75rem;
    color: #6b7280;
    display: flex;
    align-items: center;
    gap: .375rem;
}

/* Admissions dashboard alignment fixes */
.dashboard-primary .panel,
.dashboard-secondary .panel {
    margin-bottom: 0;
}

.dashboard-secondary .quick-links-panel .panel-body,
.dashboard-secondary .popular-courses-panel .panel-body {
    padding: 0;
}

.dashboard-secondary .quick-link,
.dashboard-secondary .course-item {
    padding: .75rem var(--space-5);
}

.dashboard-secondary .quick-link {
    gap: var(--space-2);
    font-size: var(--text-xs);
    padding: .625rem var(--space-4);
}

.dashboard-secondary .quick-link i {
    width: 16px;
    font-size: .75rem;
}

.dashboard-secondary .course-item:first-child,
.dashboard-secondary .quick-link:first-child {
    padding-top: .75rem;
}

.dashboard-secondary .course-item:last-child,
.dashboard-secondary .quick-link:last-child {
    padding-bottom: .75rem;
}

.nationality-origin-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-4);
}

@media (max-width: 1024px) {
    .nationality-origin-grid {
        grid-template-columns: 1fr;
    }
}

/* ===== Admissions Attention Extensions ===== */
.attention-header {
    display: flex;
    align-items: center;
    gap: .375rem;
    flex-wrap: wrap;
}
.attention-name a { color: inherit; text-decoration: none; }
.attention-name a:hover { color: #1e3a5f; }
.attention-course {
    font-size: .75rem;
    color: #6b7280;
    margin-top: .125rem;
}
.attention-actions { display: flex; gap: .25rem; margin-left: auto; }

/* ===== EMPTY PANEL ===== */
.empty-panel .empty-icon.success { background: #f0fdf4; }
.empty-panel .empty-icon.success i { color: #16a34a; }

/* ===== ACCEPTANCE RATE CIRCLE ===== */
.rate-display {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}
.rate-donut {
    --pct: 0;
    --size: 110px;
    --thickness: 12px;
    --color: #1e3a5f;
    --track: #e5e7eb;
    position: relative;
    width: var(--size);
    height: var(--size);
    flex-shrink: 0;
    border-radius: 50%;
    background:
      conic-gradient(var(--color) calc(var(--pct) * 1%), var(--track) 0);
    display: flex;
    align-items: center;
    justify-content: center;
}
.rate-donut::before {
    content: "";
    position: absolute;
    inset: var(--thickness);
    background: #fff;
    border-radius: 50%;
}
.rate-circle {
    position: relative;
    width: 90px;
    height: 90px;
    flex-shrink: 0;
}
.rate-circle svg {
    width: 90px;
    height: 90px;
    display: block;
    transform: rotate(-90deg);
}
.rate-bg {
    fill: none;
    stroke: #e5e7eb;
    stroke-width: 8;
}
.rate-fill {
    fill: none;
    stroke: #1e3a5f;
    stroke-width: 8;
    stroke-linecap: round;
    transition: stroke-dashoffset .6s ease;
}
.rate-value {
    position: relative;
    z-index: 1;
    font-size: 1.25rem;
    font-weight: 700;
    color: #1e3a5f;
}
.rate-breakdown { display: flex; flex-direction: column; gap: .5rem; }
.rate-item {
    display: flex;
    align-items: center;
    gap: .5rem;
    font-size: .8125rem;
    color: #6b7280;
}
.rate-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #1e3a5f;
}
.rate-dot.success { background: #16a34a; }
.rate-dot.danger  { background: #dc2626; }

/* ===== COURSES LIST ===== */
.courses-list { display: flex; flex-direction: column; }
.course-item {
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: .5rem 0;
    border-bottom: 1px solid #f3f4f6;
}
.course-item:last-child { border-bottom: none; }
.course-rank {
    width: 28px;
    height: 28px;
    border-radius: .375rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .75rem;
    font-weight: 700;
    background: #f3f4f6;
    color: #6b7280;
    flex-shrink: 0;
}
.course-item:first-child .course-rank {
    background: #1e3a5f;
    color: #fff;
}
.course-info { flex: 1; min-width: 0; }
.course-name {
    font-size: .8125rem;
    font-weight: 500;
    color: #374151;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.course-count {
    font-size: .8125rem;
    font-weight: 700;
    color: #1e3a5f;
}

/* ===== QUICK LINKS ===== */
.quick-link i {
    font-size: .875rem;
    width: 20px;
    text-align: center;
}

/* ===== CHART ===== */
.chart-wrapper { position: relative; width: 100%; min-height: 200px; }
.chart-legend {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: .75rem;
    flex-wrap: wrap;
}
.legend-item {
    display: flex;
    align-items: center;
    gap: .375rem;
    font-size: .75rem;
    color: #6b7280;
}
.legend-dot { width: 8px; height: 8px; border-radius: 50%; }

/* ===== STATS OVERVIEW ===== */
.stats-overview {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}
.stats-overview .stat-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: .75rem;
    padding: 1.25rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: border-color .15s;
}
.stats-overview .stat-card:hover { border-color: #1e3a5f; }
.stats-overview .stat-icon {
    width: 44px;
    height: 44px;
    border-radius: .625rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.125rem;
    flex-shrink: 0;
    background: #f0f4f8;
    color: #1e3a5f;
}
.stats-overview .stat-icon.warning { background: #fefce8; color: #a16207; }
.stats-overview .stat-icon.info    { background: #f0f4f8; color: #1e3a5f; }
.stats-overview .stat-icon.success { background: #f0fdf4; color: #16a34a; }
.stats-overview .stat-content { min-width: 0; }
.stats-overview .stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: #111827;
    line-height: 1.2;
}
.stats-overview .stat-label { font-size: .75rem; color: #6b7280; margin-top: .125rem; }

/* Dashboard stats alternative */
.dashboard-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}
.dashboard-stats .stat-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: .75rem;
    overflow: hidden;
}
.dashboard-stats .stat-header {
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: 1rem 1.25rem;
}
.dashboard-stats .stat-icon {
    width: 40px;
    height: 40px;
    border-radius: .5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    background: #f0f4f8;
    color: #1e3a5f;
}
.dashboard-stats .stat-icon.info    { background: #f0f4f8; color: #1e3a5f; }
.dashboard-stats .stat-icon.warning { background: #fefce8; color: #a16207; }
.dashboard-stats .stat-icon.success { background: #f0fdf4; color: #16a34a; }
.dashboard-stats .stat-icon.primary { background: #f0f4f8; color: #1e3a5f; }
.dashboard-stats .stat-value {
    font-size: 1.75rem;
    font-weight: 700;
    color: #111827;
    line-height: 1.2;
    padding: 0 1.25rem .5rem;
}
.dashboard-stats .stat-label { font-size: .75rem; color: #6b7280; padding: 0 1.25rem .75rem; }
.dashboard-stats .stat-footer {
    padding: .625rem 1.25rem;
    border-top: 1px solid #f3f4f6;
    background: #fafbfc;
}
.stat-change { font-size: .75rem; color: #6b7280; display: flex; align-items: center; gap: .25rem; }
.stat-change.positive { color: #16a34a; }

/* ===== FILTER TABS SECTION ===== */
.filter-tabs-section {
    display: flex;
    gap: .25rem;
    border-bottom: 2px solid #e5e7eb;
    margin-bottom: 1.5rem;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}
.filter-tab {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .75rem 1rem;
    font-size: .8125rem;
    font-weight: 500;
    color: #6b7280;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    white-space: nowrap;
    transition: .15s;
    text-decoration: none;
}
.filter-tab:hover { color: #1e3a5f; }
.filter-tab.active { color: #1e3a5f; border-bottom-color: #1e3a5f; font-weight: 600; }
.tab-badge {
    display: inline-block;
    min-width: 18px;
    height: 18px;
    line-height: 18px;
    text-align: center;
    font-size: .625rem;
    font-weight: 700;
    border-radius: 9px;
    background: #f3f4f6;
    color: #6b7280;
}
.filter-tab.active .tab-badge { background: #1e3a5f; color: #fff; }

/* ===== DATA TABLE ===== */
.table-container { overflow-x: auto; }
.table {
    width: 100%;
    border-collapse: collapse;
    font-size: .875rem;
}
.table th {
    padding: .75rem 1rem;
    text-align: left;
    font-weight: 600;
    font-size: .75rem;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: #6b7280;
    background: #fafbfc;
    border-bottom: 2px solid #e5e7eb;
    white-space: nowrap;
}
.table td {
    padding: .875rem 1rem;
    border-bottom: 1px solid #f3f4f6;
    color: #374151;
    vertical-align: middle;
}
.table tbody tr:hover { background: #fafbfc; }
.table tbody tr:last-child td { border-bottom: none; }

/* ===== APPLICANT INFO IN TABLE ===== */
.applicant-info { display: flex; align-items: center; gap: .75rem; }
.applicant-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: .8125rem;
    flex-shrink: 0;
    background: #f0f4f8;
    color: #1e3a5f;
    text-transform: uppercase;
}
.applicant-details { min-width: 0; }
.applicant-name { font-weight: 600; color: #111827; font-size: .875rem; }
.applicant-email { font-size: .75rem; color: #9ca3af; }

/* ===== APPLICATION STATUS ===== */
.application-status {
    display: inline-flex;
    align-items: center;
    gap: .25rem;
    padding: .25rem .75rem;
    font-size: .75rem;
    font-weight: 600;
    border-radius: 9999px;
    background: #f3f4f6;
    color: #6b7280;
}
.application-status.draft { background: #f3f4f6; color: #6b7280; }
.application-status.submitted,
.application-status.new { background: #f0f4f8; color: #1e3a5f; }
.application-status.under-review,
.application-status.inreview { background: #fefce8; color: #a16207; }
.application-status.accepted { background: #f0fdf4; color: #15803d; }
.application-status.rejected { background: #fef2f2; color: #b91c1c; }
.application-status.waitlisted { background: #f0f4f8; color: #1e3a5f; }

.badge-lg { padding: .375rem .75rem; font-size: .8125rem; }

/* ===== APPLICATION CARD ===== */
.application-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: .75rem;
    padding: 1.25rem;
    transition: border-color .15s;
}
.application-card:hover { border-color: #1e3a5f; }
.application-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: .75rem;
}
.application-id {
    font-size: .75rem;
    font-weight: 600;
    color: #1e3a5f;
}
.application-card-body { margin-bottom: .75rem; }
.application-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: .75rem;
    border-top: 1px solid #f3f4f6;
}
.applicant-info span { font-size: .8125rem; color: #6b7280; display: flex; align-items: center; gap: .375rem; }
.applicant-info i { color: #9ca3af; font-size: .75rem; }

/* ===== APPLICATION PROGRESS ===== */
.application-progress {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
}
.application-progress .progress-step { display: flex; flex-direction: column; align-items: center; flex: 1; position: relative; text-align: center; }
.application-progress .progress-step::after {
    content: '';
    position: absolute;
    top: 16px;
    left: 50%;
    right: -50%;
    height: 2px;
    background: #e5e7eb;
    z-index: 1;
}
.application-progress .progress-step:last-child::after { display: none; }
.application-progress .progress-step.completed::after { background: #16a34a; }
.progress-dot {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto .375rem;
    position: relative;
    z-index: 2;
    font-size: .8125rem;
    color: #6b7280;
}
.progress-step.completed .progress-dot { background: #16a34a; color: #fff; }
.progress-step.current .progress-dot { background: #1e3a5f; color: #fff; }
.progress-label { font-size: .6875rem; color: #6b7280; }
.progress-step.completed .progress-label,
.progress-step.current .progress-label { color: #374151; font-weight: 500; }

/* ===== INTAKE BADGE ===== */
.intake-badge {
    display: inline-flex;
    align-items: center;
    gap: .25rem;
    font-size: .75rem;
    font-weight: 500;
    padding: .125rem .5rem;
    border-radius: .375rem;
    background: #f0f4f8;
    color: #1e3a5f;
}

/* ===== DOCUMENT UPLOAD & LIST ===== */
.document-upload {
    border: 2px dashed #e5e7eb;
    border-radius: .75rem;
    padding: 2rem;
    text-align: center;
    cursor: pointer;
    transition: .15s;
}
.document-upload:hover { border-color: #1e3a5f; background: #f0f4f8; }
.document-upload i { font-size: 1.875rem; color: #9ca3af; margin-bottom: .75rem; display: block; }
.document-upload p { color: #6b7280; margin-bottom: .25rem; }
.document-upload span { font-size: .8125rem; color: #9ca3af; }
.document-list { display: flex; flex-direction: column; gap: .5rem; }
.document-item {
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: .75rem;
    background: #fafbfc;
    border-radius: .5rem;
}
.document-icon {
    width: 40px;
    height: 40px;
    border-radius: .5rem;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1e3a5f;
}
.document-info { flex: 1; }
.document-name { font-weight: 500; color: #111827; }
.document-meta { font-size: .75rem; color: #9ca3af; }

/* ===== ADMISSION FUNNEL ===== */
.admission-funnel { display: flex; flex-direction: column; gap: .75rem; }
.funnel-stage { display: flex; align-items: center; gap: 1rem; }
.funnel-bar { height: 24px; background: #1e3a5f; border-radius: .5rem; transition: width .2s; }
.funnel-label { font-size: .8125rem; color: #6b7280; min-width: 100px; }
.funnel-count { font-weight: 600; color: #111827; }

/* ===== SUCCESS PAGE ===== */
.success-container { max-width: 700px; margin: 0 auto; }
.success-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: .75rem;
    overflow: hidden;
    text-align: center;
}
.success-card-body { padding: 2.5rem 1.5rem; }
.success-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: #f0fdf4;
    color: #16a34a;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.875rem;
    margin: 0 auto 1.5rem;
    animation: scaleIn .5s ease-out;
}
@keyframes scaleIn { from { transform: scale(0); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.success-icon.info { background: #f0f4f8; color: #1e3a5f; }
.success-title { font-size: 1.25rem; font-weight: 600; color: #1e3a5f; margin: 0 0 .75rem; }
.success-message { font-size: .875rem; color: #6b7280; max-width: 500px; margin: 0 auto 1.5rem; line-height: 1.6; }
.success-message p { margin: .5rem 0; }
.success-card-footer { padding: 1rem 1.5rem; background: #fafbfc; border-top: 1px solid #f3f4f6; }

/* ===== NEXT STEPS ===== */
.next-steps {
    background: #fafbfc;
    border-radius: .75rem;
    padding: 1.5rem;
    margin: 1.5rem 0;
    text-align: left;
}
.next-steps-title {
    font-size: 1rem;
    font-weight: 600;
    color: #1e3a5f;
    display: flex;
    align-items: center;
    gap: .5rem;
    margin-bottom: 1.25rem;
    justify-content: center;
}
.next-steps-title i { color: #1e3a5f; }
.steps-list { display: flex; flex-direction: column; gap: 1rem; }
.step { display: flex; gap: 1rem; align-items: flex-start; }
.step-number {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    background: #1e3a5f;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: .875rem;
}
.step-content h4 { font-size: .875rem; font-weight: 600; color: #374151; margin: 0 0 .25rem; }
.step-content p { font-size: .875rem; color: #6b7280; margin: 0; line-height: 1.5; }

/* ===== CONTACT INFO BOX ===== */
.contact-info {
    background: #fefce8;
    border: 1px solid #ca8a04;
    border-radius: .75rem;
    padding: 1.25rem;
    margin: 1.5rem 0;
    text-align: center;
}
.contact-info h3 { font-size: 1rem; font-weight: 600; color: #a16207; display: flex; align-items: center; gap: .5rem; justify-content: center; margin: 0 0 .75rem; }
.contact-info p { font-size: .875rem; color: #a16207; margin: 0 0 1rem; }
.contact-details { display: flex; gap: 1.5rem; justify-content: center; flex-wrap: wrap; }
.contact-item { display: flex; align-items: center; gap: .5rem; font-size: .875rem; color: #a16207; font-weight: 500; }
.contact-item i { color: #ca8a04; }

/* ===== Admissions Button Extensions ===== */
.btn-block { width: 100%; }

/* ===== ALERTS ===== */
.alert {
    display: flex;
    align-items: flex-start;
    gap: .75rem;
    padding: 1rem;
    border-radius: .75rem;
    margin-bottom: 1rem;
    font-size: .875rem;
}
.alert i { flex-shrink: 0; margin-top: 2px; }
.alert-success { background: #f0fdf4; color: #15803d; border: 1px solid #16a34a; }
.alert-warning { background: #fefce8; color: #a16207; border: 1px solid #ca8a04; }
.alert-danger  { background: #fef2f2; color: #b91c1c; border: 1px solid #dc2626; }
.alert-info    { background: #f0f4f8; color: #1e3a5f; border: 1px solid #2a4a73; }

/* ===== DELETE CONFIRMATION ===== */
.confirm-delete-container { max-width: 600px; margin: 0 auto; }
.confirm-delete-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: .75rem;
    overflow: hidden;
}
.danger-zone {
    padding: 1.5rem;
    background: #fef2f2;
    border-bottom: 1px solid #dc2626;
    display: flex;
    align-items: center;
    gap: 1rem;
}
.danger-icon {
    width: 56px; height: 56px;
    border-radius: 50%;
    background: #fff;
    color: #dc2626;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
    border: 2px solid #dc2626;
}
.danger-title { font-size: 1.125rem; font-weight: 600; color: #b91c1c; margin: 0 0 .25rem; }
.danger-message { font-size: .875rem; color: #dc2626; margin: 0; }

.application-preview { padding: 1.25rem; }
.preview-header { display: flex; align-items: center; gap: 1rem; margin-bottom: 1rem; }
.preview-details { background: #fafbfc; border-radius: .75rem; padding: 1rem; }
.detail-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
.detail-item { display: flex; align-items: flex-start; gap: .75rem; }
.detail-icon {
    width: 36px; height: 36px;
    border-radius: .375rem;
    background: #fff;
    color: #6b7280;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.detail-content { flex: 1; }
.detail-label { font-size: .75rem; color: #6b7280; display: block; margin-bottom: 2px; }
.detail-value { font-size: .875rem; color: #374151; font-weight: 500; }
.deletion-warning {
    padding: 1rem;
    background: #fefce8;
    border: 1px solid #ca8a04;
    border-radius: .75rem;
    margin: 1.25rem;
    display: flex;
    align-items: flex-start;
    gap: .75rem;
}
.warning-icon { color: #a16207; font-size: 1.125rem; flex-shrink: 0; }
.confirm-actions {
    padding: 1rem 1.25rem;
    background: #fafbfc;
    border-top: 1px solid #f3f4f6;
    display: flex;
    justify-content: center;
    gap: .75rem;
}

/* ===== APPLICATION SUMMARY ===== */
.application-summary {
    background: #fafbfc;
    border-radius: .75rem;
    padding: 1.25rem;
    margin: 1rem 0;
}
.application-summary h4 { font-size: 1rem; font-weight: 600; color: #111827; margin: 0 0 1rem; }
.summary-row {
    display: flex;
    justify-content: space-between;
    padding: .5rem 0;
    border-bottom: 1px solid #e5e7eb;
}
.summary-row:last-child { border-bottom: none; }
.summary-label { color: #6b7280; font-size: .875rem; }
.summary-value { font-weight: 500; color: #374151; font-size: .875rem; }

/* ===== TIMELINE ===== */
.applications-timeline { display: flex; flex-direction: column; gap: 1rem; }
.timeline-item {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    background: #fafbfc;
    border-radius: .75rem;
    transition: background .1s;
}
.timeline-item:hover { background: #f3f4f6; }
.timeline-avatar {
    width: 44px; height: 44px;
    border-radius: 50%;
    background: #f0f4f8;
    color: #1e3a5f;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: .875rem;
    flex-shrink: 0;
}
.timeline-content-inner { flex: 1; min-width: 0; }
.timeline-header { display: flex; align-items: center; gap: .5rem; margin-bottom: .25rem; }
.timeline-header a { font-weight: 600; color: #111827; text-decoration: none; }
.timeline-header a:hover { color: #1e3a5f; }
.timeline-course { font-size: .8125rem; color: #6b7280; margin-bottom: .5rem; }
.timeline-meta { display: flex; gap: 1rem; font-size: .75rem; color: #9ca3af; }
.timeline-meta span { display: flex; align-items: center; gap: .25rem; }
.timeline-actions { display: flex; gap: .5rem; margin-top: .75rem; }

/* ===== REPORT SECTION ===== */
.report-section {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: .75rem;
    padding: 1.25rem;
    margin-bottom: 1.25rem;
}
.report-section h3 {
    font-size: 1rem;
    font-weight: 600;
    color: #1e3a5f;
    display: flex;
    align-items: center;
    gap: .5rem;
    margin: 0 0 1.25rem;
    padding-bottom: .75rem;
    border-bottom: 2px solid #1e3a5f;
}
.report-section h3 i { color: #1e3a5f; }
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
}
.stats-grid .stat-card {
    background: #fafbfc;
    padding: 1rem;
    border-radius: .75rem;
    border-left: 3px solid #1e3a5f;
}
.stats-grid .stat-card h4 {
    font-size: .75rem;
    color: #6b7280;
    font-weight: 400;
    margin: 0 0 .5rem;
    text-transform: uppercase;
}
.stats-grid .stat-card .value { font-size: 1.5rem; font-weight: 700; color: #111827; }

/* ===== CONVERSION FUNNEL ===== */
.conversion-funnel { display: flex; align-items: stretch; gap: 1.25rem; margin-top: 1rem; }
.funnel-step {
    flex: 1;
    text-align: center;
    padding: 1.25rem;
    background: #fafbfc;
    border: 1px solid #e5e7eb;
    border-radius: .75rem;
    position: relative;
}
.funnel-step::after {
    content: '\2192';
    position: absolute;
    right: calc(-1.25rem - 4px);
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.25rem;
    color: #1e3a5f;
}
.funnel-step:last-child::after { content: ''; }
.funnel-step .label { font-size: .875rem; color: #6b7280; margin-bottom: .5rem; }
.funnel-step .count { font-size: 1.5rem; font-weight: 700; color: #1e3a5f; }
.funnel-step small { display: block; font-size: .75rem; color: #9ca3af; margin-top: .5rem; }

/* ===== REPORT TABLE ===== */
.report-table { width: 100%; border-collapse: collapse; margin-top: 1rem; }
.report-table th, .report-table td { padding: .75rem 1rem; text-align: left; border-bottom: 1px solid #f3f4f6; }
.report-table th { background: #fafbfc; font-size: .75rem; font-weight: 600; color: #6b7280; text-transform: uppercase; }
.report-table td { font-size: .875rem; color: #374151; }
.report-table tr:hover td { background: #fafbfc; }

/* ===== PROGRESS BAR ===== */
.progress-bar-container { width: 100%; background: #e5e7eb; border-radius: 9999px; height: 8px; overflow: hidden; }
.progress-bar { height: 100%; background: #16a34a; border-radius: 9999px; transition: width .3s; }

/* ===== HELPER CLASSES ===== */
.text-muted { color: #6b7280 !important; }
.text-success { color: #16a34a !important; }
.text-danger { color: #dc2626 !important; }
.text-warning { color: #a16207 !important; }
.text-info { color: #1e3a5f !important; }
.flex { display: flex; }
.flex-col { flex-direction: column; }
.gap-sm { gap: .5rem; }
.gap-md { gap: 1rem; }
.gap-lg { gap: 1.5rem; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.items-center { align-items: center; }
.text-center { text-align: center; }
.small { font-size: .75rem; }
.me-2 { margin-right: .5rem; }
.mb-1 { margin-bottom: .25rem; }
.mt-3 { margin-top: .75rem; }
.d-flex { display: flex; }
.d-block { display: block; }
.d-none { display: none; }
.row { display: flex; flex-wrap: wrap; margin: 0 -.75rem; }
.col-lg-6 { flex: 0 0 50%; max-width: 50%; padding: 0 .75rem; }
.text-end { text-align: right; }

/* ===== DASHBOARD GRID ===== */
.dashboard-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 1.25rem; }
.dashboard-main-column { display: flex; flex-direction: column; gap: 1.25rem; }

/* ===== QUICK STATS BAR ===== */
.quick-stats-bar {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: .75rem;
    padding: 1rem 1.5rem;
    margin-bottom: 1.25rem;
    flex-wrap: wrap;
    justify-content: center;
}
.quick-stat { display: flex; flex-direction: column; align-items: center; gap: .125rem; }
.quick-stat-value { font-size: 1.5rem; font-weight: 700; color: #111827; line-height: 1; }
.quick-stat-label {
    font-size: .6875rem;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: .05em;
    font-weight: 500;
}
.quick-stat.warning .quick-stat-value { color: #a16207; }
.quick-stat.info .quick-stat-value    { color: #1e3a5f; }
.quick-stat.success .quick-stat-value { color: #16a34a; }
.quick-stat.danger .quick-stat-value  { color: #dc2626; }
.quick-stat-divider { width: 1px; height: 40px; background: #e5e7eb; }

/* ===== APPLICATIONS CARD ===== */
.applications-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: .75rem;
    overflow: hidden;
}

/* ===== TOOLBAR ===== */
.applications-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid #f3f4f6;
    flex-wrap: wrap;
}
.toolbar-left { display: flex; align-items: center; gap: .75rem; flex-wrap: wrap; }
.toolbar-right { display: flex; align-items: center; gap: .75rem; }

/* ===== FILTER PILLS ===== */
.filter-pills { display: flex; gap: .5rem; flex-wrap: wrap; }
.filter-pill {
    display: inline-flex;
    align-items: center;
    gap: .375rem;
    padding: .375rem .75rem;
    border-radius: 9999px;
    font-size: .8125rem;
    font-weight: 500;
    color: #6b7280;
    background: #f3f4f6;
    text-decoration: none;
    transition: .15s;
    white-space: nowrap;
    border: 1px solid transparent;
}
.filter-pill:hover { background: #e5e7eb; color: #374151; }
.filter-pill.active { background: #1e3a5f; color: #fff; border-color: #1e3a5f; }
.pill-dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.pill-dot.warning { background: #ca8a04; }
.pill-dot.info    { background: #1e3a5f; }
.pill-dot.success { background: #16a34a; }
.pill-dot.danger  { background: #dc2626; }
.filter-pill.active .pill-dot { background: #fff; }

/* ===== SEARCH FIELD ===== */
.search-field {
    display: flex;
    align-items: center;
    gap: .5rem;
    padding: .375rem 1rem;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 9999px;
    transition: border-color .15s;
}
.search-field:focus-within { border-color: #1e3a5f; box-shadow: 0 0 0 3px rgba(30,58,95,.08); }
.search-field i { color: #9ca3af; font-size: .875rem; }
.search-field input {
    border: none;
    background: transparent;
    outline: none;
    font-size: .875rem;
    color: #111827;
    width: 200px;
    font-family: inherit;
}
.search-field input::placeholder { color: #9ca3af; }

/* ===== APPLICATIONS LIST ===== */
.applications-list { min-height: 300px; }

/* Applications table overrides */
.applications-table { margin: 0; table-layout: fixed; width: 100%; }
.applications-table td { vertical-align: middle; overflow: hidden; text-overflow: ellipsis; }
.applications-table th:nth-child(1),
.applications-table td:nth-child(1) { width: 36px; padding-left: 1rem; padding-right: 0; }
.applications-table th:nth-child(2),
.applications-table td:nth-child(2) { width: 28%; }
.applications-table th:nth-child(3),
.applications-table td:nth-child(3) { width: 18%; }
.applications-table th:nth-child(6),
.applications-table td:nth-child(6) { white-space: nowrap; }
.applications-table th:nth-child(7),
.applications-table td:nth-child(7) { width: 60px; padding-right: 0.75rem; }
.applications-table .application-main { display: flex; align-items: center; gap: .625rem; }
.applications-table .applicant-info { min-width: 0; overflow: hidden; }
.applications-table .applicant-name {
    font-size: .8125rem;
    font-weight: 600;
    color: #111827;
    display: flex;
    align-items: center;
    gap: .375rem;
    white-space: nowrap;
}
.applications-table .applicant-name a { color: inherit; text-decoration: none; }
.applications-table .applicant-name a:hover { color: #1e3a5f; }
.applications-table .applicant-email {
    font-size: .7rem;
    color: #9ca3af;
    margin: 1px 0 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Avatar color variants */
.applicant-avatar.warning { background: #fefce8; color: #a16207; }
.applicant-avatar.info    { background: #f0f4f8; color: #1e3a5f; }
.applicant-avatar.success { background: #f0fdf4; color: #16a34a; }
.applicant-avatar.danger  { background: #fef2f2; color: #dc2626; }

/* ===== Admissions Action Buttons ===== */
.application-actions { display: flex; align-items: center; gap: .125rem; }

/* ===== PAGINATION ===== */
.applications-pagination {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: .875rem 1.25rem;
    border-top: 1px solid #f3f4f6;
    background: #fafbfc;
}
.pagination-info { font-size: .8125rem; color: #6b7280; }
.pagination-controls { display: flex; align-items: center; gap: .25rem; }
.page-btn {
    min-width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: .375rem;
    font-size: .875rem;
    font-weight: 500;
    color: #6b7280;
    background: transparent;
    text-decoration: none;
    transition: .1s;
    padding: 0 .5rem;
}
.page-btn:hover { background: #e5e7eb; color: #111827; }
.page-btn.active { background: #1e3a5f; color: #fff; }

/* ===== EMPTY STATE ===== */
.applications-list .empty-state { padding: 3rem 1.5rem; text-align: center; }
.applications-list .empty-icon {
    width: 80px; height: 80px;
    border-radius: 50%;
    background: #f3f4f6;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
}
.applications-list .empty-icon i { font-size: 2rem; color: #9ca3af; }
.applications-list .empty-state h3 { margin: 0 0 .5rem; font-size: 1.125rem; font-weight: 600; color: #111827; }
.applications-list .empty-state p { margin: 0 0 1rem; color: #6b7280; font-size: .875rem; }

/* ===== APPLICATION FORM PAGE ===== */
.form-page { max-width: 800px; margin: 0 auto; }
.application-form-page {
    max-width: 1180px;
    padding-bottom: 2rem;
}
.application-shell {
    display: grid;
    gap: 1.25rem;
}
.application-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(280px, .95fr);
    gap: 1.25rem;
    padding: 1.5rem;
    border: 1px solid #d7e1ec;
    border-radius: 1.25rem;
    background:
        radial-gradient(circle at top right, rgba(30,58,95,.12), transparent 34%),
        linear-gradient(135deg, #ffffff 0%, #f6f9fc 56%, #eef4fb 100%);
    box-shadow: 0 20px 40px rgba(15, 23, 42, .06);
}
.application-hero-copy {
    display: flex;
    flex-direction: column;
    gap: .75rem;
}
.application-hero-kicker {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    padding: .35rem .7rem;
    border-radius: 999px;
    background: rgba(30,58,95,.08);
    color: #1e3a5f;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}
.application-hero-title {
    margin: 0;
    font-size: clamp(1.55rem, 2vw, 2.15rem);
    line-height: 1.15;
    color: #0f172a;
}
.application-hero-text {
    margin: 0;
    max-width: 60ch;
    font-size: .96rem;
    line-height: 1.7;
    color: #475569;
}
.application-hero-meta {
    display: grid;
    gap: .75rem;
}
.hero-meta-card {
    display: grid;
    gap: .25rem;
    padding: 1rem 1.05rem;
    border: 1px solid rgba(30,58,95,.12);
    border-radius: 1rem;
    background: rgba(255,255,255,.82);
    backdrop-filter: blur(4px);
}
.hero-meta-card strong {
    font-size: .95rem;
    color: #0f172a;
}
.hero-meta-card span {
    font-size: .82rem;
    line-height: 1.5;
    color: #64748b;
}
.form-progress {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .75rem;
    margin-bottom: 0;
    padding: 1.1rem 1.25rem;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 1rem;
    box-shadow: 0 14px 28px rgba(15, 23, 42, .04);
}
.progress-step {
    gap: .65rem;
    align-items: center;
}
.progress-step .step-circle {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(180deg, #f8fafc 0%, #e2e8f0 100%);
    color: #64748b;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #d7e1ec;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.9);
    transition: .25s ease;
}
.progress-step .step-label {
    display: flex;
    flex-direction: column;
    gap: .15rem;
    min-width: 0;
    font-size: .75rem;
    color: #64748b;
    white-space: nowrap;
}
.progress-step .step-label strong {
    font-size: .8rem;
    font-weight: 700;
    color: #334155;
}
.progress-step .step-label small {
    font-size: .72rem;
    color: #94a3b8;
}
.progress-step.active .step-circle {
    background: linear-gradient(135deg, #1e3a5f 0%, #325b89 100%);
    color: #fff;
    border-color: #1e3a5f;
    box-shadow: 0 10px 22px rgba(30,58,95,.22);
}
.progress-step.active .step-label strong,
.progress-step.completed .step-label strong { color: #0f172a; }
.progress-step.active .step-label small,
.progress-step.completed .step-label small { color: #64748b; }
.progress-step.active .step-label { color: #1e3a5f; }
.progress-step.completed .step-circle { background: #16a34a; color: #fff; border-color: #16a34a; }
.progress-step.completed .step-circle::after { content: '\2713'; }
.progress-line {
    flex: 1;
    height: 2px;
    background: linear-gradient(90deg, #dbe3ef 0%, #cbd5e1 100%);
    margin: 0;
    max-width: 110px;
}
.form-container {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 1.15rem;
    overflow: hidden;
    box-shadow: 0 22px 44px rgba(15, 23, 42, .05);
}
.form-step { display: none; padding: 1.5rem; }
.form-step.active { display: block; }
.step-header {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #f3f4f6;
}
.step-icon {
    width: 48px; height: 48px;
    border-radius: .75rem;
    background: #f0f4f8;
    color: #1e3a5f;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
}
.step-header h2 { margin: 0; font-size: 1.125rem; font-weight: 600; color: #1e3a5f; }
.step-header p { margin: .25rem 0 0; font-size: .875rem; color: #6b7280; }
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
.form-group { display: flex; flex-direction: column; gap: .375rem; }
.form-group.full-width { grid-column: 1 / -1; }
.form-group label { font-size: .875rem; font-weight: 500; color: #374151; }
.form-group label .required { color: #dc2626; }
.form-input {
    width: 100%;
    padding: .625rem .75rem;
    border: 1px solid #d1d5db;
    border-radius: .5rem;
    font-size: .875rem;
    color: #111827;
    background: #fff;
    transition: border-color .15s;
    font-family: inherit;
}
.form-input:focus { outline: none; border-color: #1e3a5f; box-shadow: 0 0 0 3px rgba(30,58,95,.08); }
.form-input.error { border-color: #dc2626; }
.form-input.error:focus { box-shadow: 0 0 0 3px rgba(220,38,38,.08); }
.form-input::placeholder { color: #9ca3af; }
textarea.form-input { resize: vertical; min-height: 100px; }
select.form-input { cursor: pointer; }
.input-with-icon { position: relative; }
.input-with-icon i { position: absolute; left: .75rem; top: 50%; transform: translateY(-50%); color: #9ca3af; font-size: .875rem; }
.input-with-icon .form-input { padding-left: 2.5rem; }
.form-error { font-size: .75rem; color: #dc2626; display: flex; align-items: center; gap: .25rem; }
.step-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid #f3f4f6;
}
.form-section-card {
    background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
    border: 1px solid #e2e8f0;
    border-radius: 1rem;
    padding: 1.25rem;
    margin-bottom: 1.25rem;
    box-shadow: 0 10px 26px rgba(15, 23, 42, .03);
}
.section-kicker {
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: #1e3a5f;
    margin-bottom: .5rem;
}
.section-intro {
    margin: -.25rem 0 1rem;
    max-width: 70ch;
    font-size: .9rem;
    line-height: 1.65;
    color: #64748b;
}
.section-title {
    font-size: 1.08rem;
    font-weight: 700;
    color: #111827;
    margin: 0 0 1rem;
}
.compact-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.student-type-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}
.student-type-option {
    position: relative;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: start;
    gap: .9rem;
    min-height: 170px;
    border: 1px solid #dbe3ef;
    border-radius: 1rem;
    padding: 1rem;
    background: linear-gradient(180deg, #ffffff 0%, #f7fafc 100%);
    cursor: pointer;
    transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease, background .16s ease;
}
.student-type-option input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}
.student-type-option:hover {
    transform: translateY(-1px);
    border-color: #bfd0e2;
    box-shadow: 0 12px 24px rgba(30,58,95,.08);
}
.student-type-marker {
    width: 1rem;
    height: 1rem;
    margin-top: .2rem;
    border: 2px solid #b7c4d5;
    border-radius: 999px;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(255,255,255,.95);
}
.student-type-icon {
    width: 2.9rem;
    height: 2.9rem;
    border-radius: .9rem;
    background: #eef4fb;
    color: #1e3a5f;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.9);
}
.student-type-option:has(input:checked) {
    border-color: #1e3a5f;
    box-shadow: 0 0 0 3px rgba(30,58,95,.10), 0 18px 30px rgba(30,58,95,.12);
    background: linear-gradient(180deg, #ffffff 0%, #eff5fb 100%);
}
.student-type-option:has(input:checked) .student-type-marker {
    border-color: #1e3a5f;
    background: radial-gradient(circle at center, #1e3a5f 0, #1e3a5f 45%, #ffffff 48%, #ffffff 100%);
}
.student-type-option:has(input:checked) .student-type-icon {
    background: #1e3a5f;
    color: #fff;
}
.student-type-content {
    display: flex;
    flex-direction: column;
    gap: .35rem;
    padding-right: 0;
}
.student-type-title {
    font-size: .95rem;
    font-weight: 700;
    color: #0f172a;
}
.student-type-description {
    font-size: .82rem;
    line-height: 1.5;
    color: #64748b;
}
.student-type-help-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-top: .8rem;
    flex-wrap: wrap;
}
.selection-tip {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    font-size: .78rem;
    color: #64748b;
}
.checkbox-group { gap: .5rem; }
.checkbox-card {
    display: flex;
    align-items: flex-start;
    gap: .75rem;
    padding: .9rem 1rem;
    border: 1px solid #dbe3ef;
    border-radius: .85rem;
    background: #f8fafc;
}
.checkbox-card input { margin-top: .15rem; }
.address-layout,
.form-layout-split {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 1rem;
}
.form-layout-split { align-items: start; }
.form-layout-main,
.form-layout-side { min-width: 0; }
.address-panel,
.summary-card {
    border: 1px solid #e5e7eb;
    border-radius: 1rem;
    background: #fbfdff;
    padding: 1rem;
}
.address-title {
    font-size: .95rem;
    font-weight: 700;
    color: #111827;
    margin: 0 0 .85rem;
}
.sticky-summary {
    position: sticky;
    top: 1.5rem;
}
.cost-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: .75rem 0;
    border-bottom: 1px solid #e5e7eb;
    color: #475569;
}
.cost-row strong { color: #111827; }
.cost-row.total-row {
    border-bottom: none;
    padding-bottom: 0;
    font-size: 1rem;
}
.summary-note {
    margin: .9rem 0 0;
    font-size: .78rem;
    line-height: 1.5;
    color: #64748b;
}
.service-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}
.service-card {
    display: block;
    border: 1px solid #dbe3ef;
    border-radius: 1rem;
    padding: 1rem;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    cursor: pointer;
}
.service-card input { margin-bottom: .75rem; }
.service-card:has(input:checked) {
    border-color: #1e3a5f;
    box-shadow: 0 0 0 2px rgba(30,58,95,.12);
}
.service-card-content,
.service-card-header,
.service-meta {
    display: flex;
    flex-direction: column;
    gap: .35rem;
}
.service-card-header { margin-bottom: .35rem; }
.service-name {
    font-size: .92rem;
    font-weight: 700;
    color: #0f172a;
}
.service-type,
.service-meta,
.service-description,
.empty-text {
    font-size: .8rem;
    line-height: 1.5;
    color: #64748b;
}
.consent-card { margin-top: 1rem; }
.conditional-group.is-hidden { display: none !important; }

@media (max-width: 980px) {
    .application-hero,
    .address-layout,
    .form-layout-split,
    .student-type-grid,
    .service-grid {
        grid-template-columns: 1fr;
    }

    .form-progress {
        align-items: stretch;
        overflow-x: auto;
        justify-content: flex-start;
        padding-bottom: .9rem;
    }

    .progress-step {
        min-width: 180px;
    }

    .progress-line {
        min-width: 48px;
    }
}

@media (max-width: 768px) {
    .application-form-page {
        max-width: 100%;
    }

    .application-hero,
    .form-step {
        padding: 1rem;
    }

    .form-grid,
    .compact-grid {
        grid-template-columns: 1fr;
    }

    .student-type-option {
        min-height: auto;
        grid-template-columns: auto auto 1fr;
    }

    .step-actions {
        gap: .75rem;
        flex-direction: column-reverse;
        align-items: stretch;
    }

    .step-actions > div {
        display: none;
    }

    .step-actions .btn {
        width: 100%;
        justify-content: center;
    }
}

/* ===== REVIEW CARD ===== */
.review-card { background: #fafbfc; border-radius: .75rem; padding: 1.25rem; margin-bottom: 1.25rem; }
.review-card .review-section { margin-bottom: 1.25rem; padding-bottom: 1rem; border-bottom: 1px solid #e5e7eb; }
.review-card .review-section:last-child { margin-bottom: 0; padding-bottom: 0; border-bottom: none; }
.review-card .review-section h3 {
    font-size: .875rem;
    font-weight: 600;
    color: #1e3a5f;
    margin: 0 0 .75rem;
    display: flex;
    align-items: center;
    gap: .5rem;
}
.review-card .review-section h3 i { color: #1e3a5f; }
.review-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: .75rem; }
.review-item { display: flex; flex-direction: column; gap: 2px; }
.review-item.full-width { grid-column: 1 / -1; }
.review-label { font-size: .75rem; color: #6b7280; font-weight: 500; }
.review-value { font-size: .875rem; color: #111827; }
.submit-notice {
    display: flex;
    gap: .75rem;
    padding: 1rem;
    background: #f0f4f8;
    border-radius: .75rem;
    margin-bottom: 1.25rem;
}
.submit-notice i { color: #1e3a5f; font-size: 1.125rem; flex-shrink: 0; }
.submit-notice strong { color: #1e3a5f; font-size: .875rem; }
.submit-notice ul { margin: .5rem 0 0; padding-left: 1rem; font-size: .875rem; color: #374151; }
.submit-notice li { margin-bottom: .25rem; }

/* ===== BULK ACTION BAR ===== */
.bulk-action-bar {
    display: none;
    align-items: center;
    justify-content: space-between;
    padding: .75rem 1.25rem;
    background: #f0f4f8;
    border-bottom: 1px solid #d9e2ec;
}
.bulk-action-bar.active { display: flex; }
.bulk-action-bar .selected-count { font-size: .875rem; font-weight: 600; color: #1e3a5f; }
.bulk-action-bar .bulk-actions { display: flex; gap: .5rem; }

/* ==========================================================================
   REPORTS
   ========================================================================== */
.report-stats-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
}
.report-stat-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: .75rem;
    padding: 1.25rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: border-color .15s;
}
.report-stat-card:hover { border-color: #1e3a5f; }
.report-stat-icon {
    width: 48px; height: 48px;
    border-radius: .75rem;
    background: #1e3a5f;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.report-stat-icon i { font-size: 1.125rem; color: #fff; }
.report-stat-icon.info    { background: #1e3a5f; }
.report-stat-icon.success { background: #16a34a; }
.report-stat-icon.warning { background: #ca8a04; }
.report-stat-content { display: flex; flex-direction: column; }
.report-stat-value { font-size: 1.75rem; font-weight: 700; color: #111827; line-height: 1.2; }
.report-stat-label { font-size: .875rem; color: #6b7280; margin-top: 2px; }

.reports-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.25rem; margin-bottom: 1.25rem; }
.report-panel {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: .75rem;
    overflow: hidden;
}
.report-panel.full-width { grid-column: 1 / -1; }
.report-panel-header {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid #e5e7eb;
    background: #fafbfc;
}
.report-panel-header h2 {
    font-size: 1rem;
    font-weight: 600;
    color: #1e3a5f;
    display: flex;
    align-items: center;
    gap: .5rem;
    margin: 0;
}
.report-panel-header h2 i { color: #1e3a5f; font-size: .875rem; }
.report-panel-body { padding: 1.25rem; }

/* Funnel Visual */
.funnel-visual { display: flex; flex-direction: column; gap: 1rem; margin-bottom: 1.25rem; }
.funnel-bar.info    { background: #1e3a5f; }
.funnel-bar.success { background: #16a34a; }
.funnel-info { display: flex; flex-direction: column; min-width: 100px; }
.funnel-summary { display: flex; gap: 1.5rem; padding-top: 1rem; border-top: 1px solid #e5e7eb; }
.funnel-metric { display: flex; flex-direction: column; gap: 2px; }
.funnel-metric .metric-label { font-size: .75rem; color: #6b7280; text-transform: uppercase; letter-spacing: .05em; }
.funnel-metric .metric-value { font-size: 1.25rem; font-weight: 700; color: #374151; }
.funnel-metric .metric-value.success { color: #16a34a; }

/* Status Distribution */
.status-distribution { display: flex; flex-direction: column; gap: 1rem; }
.status-row { display: flex; align-items: center; gap: .75rem; }
.status-info { display: flex; align-items: center; gap: .5rem; min-width: 100px; }
.status-dot { width: 10px; height: 10px; border-radius: 50%; background: #9ca3af; flex-shrink: 0; }
.status-dot.success { background: #16a34a; }
.status-dot.danger  { background: #dc2626; }
.status-dot.warning { background: #ca8a04; }
.status-dot.info    { background: #1e3a5f; }
.status-name { font-size: .875rem; color: #374151; font-weight: 500; }
.status-bar-wrapper { flex: 1; height: 8px; background: #f3f4f6; border-radius: 9999px; overflow: hidden; }
.status-bar { height: 100%; background: #9ca3af; border-radius: 9999px; transition: width .3s; }
.status-bar.success { background: #16a34a; }
.status-bar.danger  { background: #dc2626; }
.status-bar.warning { background: #ca8a04; }
.status-bar.info    { background: #1e3a5f; }
.status-count { min-width: 80px; text-align: right; font-size: .875rem; }
.status-count strong { color: #374151; }
.status-count .text-muted { color: #6b7280; margin-left: 4px; }
.empty-message { padding: 1.5rem; text-align: center; color: #6b7280; }

/* Course Table */
.course-table-wrapper { overflow-x: auto; }
.course-table { width: 100%; border-collapse: collapse; }
.course-table th, .course-table td { padding: .75rem 1rem; text-align: left; }
.course-table th {
    font-size: .75rem; font-weight: 600; color: #6b7280;
    text-transform: uppercase; letter-spacing: .05em;
    border-bottom: 2px solid #e5e7eb; white-space: nowrap;
}
.course-table td { border-bottom: 1px solid #f3f4f6; vertical-align: middle; }
.course-table tbody tr:hover { background: #fafbfc; }
.course-table .text-center { text-align: center; }
.course-name-cell { display: flex; align-items: center; gap: .75rem; }
.course-icon {
    width: 32px; height: 32px;
    background: #f0f4f8;
    border-radius: .375rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.course-icon i { color: #1e3a5f; font-size: .875rem; }
.count-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 28px;
    padding: 2px 8px;
    background: #f3f4f6;
    color: #374151;
    border-radius: .375rem;
    font-size: .875rem;
    font-weight: 600;
}
.count-badge.success { background: #f0fdf4; color: #16a34a; }
.count-badge.danger  { background: #fef2f2; color: #dc2626; }
.rate-badge {
    display: inline-flex;
    padding: .25rem .75rem;
    background: #f0f4f8;
    color: #1e3a5f;
    border-radius: 9999px;
    font-size: .875rem;
    font-weight: 600;
}
.rate-badge.muted { background: #f3f4f6; color: #6b7280; }
.mini-bar-chart {
    display: flex;
    height: 8px;
    border-radius: 9999px;
    overflow: hidden;
    background: #f3f4f6;
    width: 120px;
}
.mini-bar { height: 100%; transition: width .3s; }
.mini-bar.success { background: #16a34a; }
.mini-bar.danger  { background: #dc2626; }
.mini-bar.muted   { background: #d1d5db; }
.empty-row { text-align: center; color: #6b7280; padding: 2rem !important; }

/* ========================================
   APPLICATION DETAIL — STATUS BANNER
   Navy minimal — no gradients
   ======================================== */
.detail-container {
    max-width: 1000px;
    margin: 0 auto;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: .75rem;
    overflow: hidden;
}
.status-banner {
    padding: 1.25rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 1.25rem;
    border-bottom: 1px solid #e5e7eb;
    background: #1e3a5f;
    color: #fff;
}
/* Status banner color variants per stage */
.status-banner.status-new,
.status-banner.status-submitted,
.status-banner.status-inreview { background: #1e3a5f; color: #fff; }
.status-banner.status-documentsrequired,
.status-banner.status-documents_required { background: #b45309; color: #fff; }
.status-banner.status-conditionaloffer,
.status-banner.status-conditional_offer,
.status-banner.status-offersent,
.status-banner.status-offer_sent { background: #1d4ed8; color: #fff; }
.status-banner.status-offeraccepted,
.status-banner.status-offer_accepted,
.status-banner.status-financecleared,
.status-banner.status-finance_cleared,
.status-banner.status-accepted,
.status-banner.status-enrolled { background: #166534; color: #fff; }
.status-banner.status-pendingfinance,
.status-banner.status-pending_finance { background: #7c3aed; color: #fff; }
.status-banner.status-rejected { background: #b91c1c; color: #fff; }
.status-banner.status-withdrawn { background: #6b7280; color: #fff; }
.status-icon {
    width: 3rem; height: 3rem;
    border-radius: 50%;
    background: rgba(255,255,255,.15);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.status-icon i { font-size: 1.375rem; }
.status-content h3 { margin: 0 0 .25rem; font-size: 1.25rem; font-weight: 700; color: #fff; }
.status-content p { margin: 0; opacity: .85; font-size: .875rem; color: rgba(255,255,255,.85); }
.detail-section { padding: 1.5rem; border-bottom: 1px solid #e5e7eb; }
.detail-section:last-of-type { border-bottom: none; }
.section-header { margin-bottom: 1.25rem; }

/* ===== WORKFLOW SECTIONS ===== */
.workflow-metrics {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: .75rem;
    margin-bottom: 1.5rem;
}
.workflow-metric {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: .5rem;
    padding: 1rem;
    text-align: center;
}
.workflow-metric h3 { font-size: .75rem; color: #6b7280; margin: 0 0 .375rem; font-weight: 500; }
.workflow-metric .value { font-size: 1.625rem; font-weight: 700; color: #1e3a5f; }
.workflow-section {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: .75rem;
    padding: 1.25rem;
    margin-bottom: 1.25rem;
}
.workflow-section h2 {
    font-size: 1rem;
    font-weight: 600;
    color: #1e3a5f;
    display: flex;
    align-items: center;
    gap: .5rem;
    margin: 0 0 1rem;
    padding-bottom: .75rem;
    border-bottom: 1px solid #f3f4f6;
}
.assignment-item {
    padding: .75rem 0;
    border-bottom: 1px solid #f3f4f6;
}
.assignment-item:last-child { border-bottom: none; }
.priority-badge {
    display: inline-flex;
    padding: .125rem .5rem;
    font-size: .6875rem;
    font-weight: 700;
    border-radius: .25rem;
    background: #f0f4f8;
    color: #1e3a5f;
}
.priority-badge.priority-1 { background: #fef2f2; color: #dc2626; }
.priority-badge.priority-2 { background: #fefce8; color: #a16207; }
.priority-badge.priority-3 { background: #f0f4f8; color: #1e3a5f; }
.workload-bar {
    height: 6px;
    background: #f3f4f6;
    border-radius: 9999px;
    overflow: hidden;
    margin-top: .375rem;
}
.workload-fill {
    height: 100%;
    border-radius: 9999px;
    transition: width .3s;
    background: #1e3a5f;
}
.workload-fill.high   { background: #dc2626; }
.workload-fill.medium { background: #ca8a04; }
.workload-fill.low    { background: #16a34a; }
.event-item {
    padding: .5rem 0;
    border-bottom: 1px solid #f3f4f6;
    font-size: .875rem;
}
.event-item:last-child { border-bottom: none; }

/* ===== APPLICATION DETAIL ===== */
.cmd-tabs { display: flex; gap: 0; border-bottom: 2px solid var(--border); margin-bottom: 1.5rem; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.cmd-tab { padding: .65rem 1rem; font-size: .82rem; font-weight: 500; color: var(--text-muted); cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -2px; white-space: nowrap; transition: .2s; }
.cmd-tab:hover { color: var(--primary); }
.cmd-tab.active { color: var(--primary); border-bottom-color: var(--primary); font-weight: 600; }
.cmd-tab .tab-badge { display: inline-block; min-width: 18px; height: 18px; line-height: 18px; text-align: center; border-radius: 9px; font-size: .68rem; font-weight: 700; background: var(--bg-muted); color: var(--text-muted); margin-left: 4px; }
.cmd-tab.active .tab-badge { background: var(--primary); color: #fff; }
.tab-pane { display: none; }
.tab-pane.active { display: block; }
.info-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1rem; }
.info-label { font-size: .72rem; font-weight: 600; color: var(--text-muted); text-transform: uppercase; letter-spacing: .5px; margin-bottom: 2px; }
.info-value { font-size: .9rem; color: var(--text); }
.section-divider { border-top: 1px solid var(--border); margin: 1.25rem 0; padding-top: 1rem; }
.section-divider h3 { font-size: .85rem; font-weight: 600; color: var(--primary); margin-bottom: .75rem; }
.mini-table { width: 100%; font-size: .85rem; border-collapse: collapse; }
.mini-table th { text-align: left; font-weight: 600; padding: .5rem .75rem; background: var(--bg-light); border-bottom: 1px solid var(--border); font-size: .78rem; text-transform: uppercase; letter-spacing: .3px; color: var(--text-muted); }
.mini-table td { padding: .5rem .75rem; border-bottom: 1px solid #f0f0f0; }
.mini-table tr:hover td { background: rgba(30, 58, 95, 0.02); }
.inline-form { display: flex; flex-wrap: wrap; gap: .5rem; align-items: flex-end; }
.inline-form .form-group { display: flex; flex-direction: column; gap: 2px; }
.inline-form .form-group label { font-size: .72rem; font-weight: 600; color: var(--text-muted); }
.inline-form .form-group input,
.inline-form .form-group select,
.inline-form .form-group textarea { padding: .4rem .6rem; border: 1px solid var(--border); border-radius: 6px; font-size: .85rem; font-family: inherit; }
.checklist-cat { margin-bottom: 1.25rem; }
.checklist-cat-title { font-size: .85rem; font-weight: 700; color: var(--primary); margin-bottom: .5rem; display: flex; align-items: center; gap: .5rem; }
.checklist-row { display: flex; align-items: center; gap: .75rem; padding: .5rem 0; border-bottom: 1px solid #f0f0f0; font-size: .85rem; }
.checklist-status { font-size: .72rem; font-weight: 600; padding: 2px 8px; border-radius: 4px; }
.st-not_started { background: #f5f5f5; color: #888; }
.st-in_progress { background: #e0f2fe; color: #0369a1; }
.st-submitted { background: #fef3c7; color: #92400e; }
.st-verified { background: #d1fae5; color: #065f46; }
.st-rejected { background: #fee2e2; color: #991b1b; }
.st-na { background: #f3f4f6; color: #6b7280; }
.tab-pane .timeline-item { display: flex; gap: 1rem; padding: .75rem 0; border-bottom: 1px solid #f0f0f0; }
.timeline-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--primary); margin-top: 5px; flex-shrink: 0; }
.comm-item { padding: .75rem; border: 1px solid var(--border); border-radius: 8px; margin-bottom: .75rem; }
.comm-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: .4rem; }
.comm-type { font-size: .72rem; font-weight: 600; padding: 2px 6px; border-radius: 4px; background: var(--bg-light); }
.transition-bar { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1rem; }

/* ===== RESPONSIVE ===== */
@media (max-width: 1200px) {
    .metrics-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 1024px) {
    .dashboard-grid { grid-template-columns: 1fr; }
    .dashboard-content { grid-template-columns: 1fr; }
    .conversion-funnel { flex-direction: column; }
    .funnel-step::after { display: none; }
    .applications-table th:nth-child(3),
    .applications-table td:nth-child(3),
    .applications-table th:nth-child(4),
    .applications-table td:nth-child(4) { display: none; }
    .metrics-grid { grid-template-columns: repeat(2, 1fr); }
    .col-lg-6 { flex: 0 0 100%; max-width: 100%; }
    .report-stats-row { grid-template-columns: repeat(2, 1fr); }
    .reports-grid { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
    .page-header { flex-direction: column; align-items: stretch; }
    .page-header-actions { justify-content: flex-start; }
    .stats-overview, .dashboard-stats { grid-template-columns: 1fr; }
    .metrics-grid { grid-template-columns: 1fr 1fr; gap: .75rem; }
    .metric-card { padding: .875rem; }
    .metric-icon { width: 36px; height: 36px; font-size: 1rem; }
    .metric-value { font-size: 1.125rem; }
    .filter-tabs-section { flex-wrap: nowrap; overflow-x: auto; padding-bottom: .5rem; }
    .detail-grid { grid-template-columns: 1fr; }
    .quick-stats-bar { padding: .75rem 1rem; gap: .75rem; }
    .quick-stat-divider { display: none; }
    .quick-stat { flex: 1; min-width: 60px; }
    .quick-stat-value { font-size: 1.125rem; }
    .applications-toolbar { flex-direction: column; align-items: stretch; }
    .toolbar-left, .toolbar-right { width: 100%; }
    .filter-pills { overflow-x: auto; flex-wrap: nowrap; padding-bottom: .5rem; }
    .search-field { width: 100%; }
    .search-field input { width: 100%; }
    .applications-table th:nth-child(5),
    .applications-table td:nth-child(5) { display: none; }
    .applicant-avatar { width: 36px; height: 36px; }
    .applications-pagination { flex-direction: column; gap: .75rem; padding: .75rem 1rem; }
    .rate-display { flex-direction: column; text-align: center; }
    .rate-breakdown { flex-direction: row; gap: 1rem; }
    .form-progress { padding: .75rem; }
    .progress-step .step-label { display: none; }
    .progress-line { max-width: 40px; }
    .form-step { padding: 1rem; }
    .step-header { flex-direction: column; text-align: center; }
    .form-grid { grid-template-columns: 1fr; }
    .review-grid { grid-template-columns: 1fr; }
    .student-type-grid,
    .service-grid,
    .address-layout,
    .form-layout-split,
    .compact-grid { grid-template-columns: 1fr; }
    .step-actions { flex-direction: column-reverse; gap: .75rem; }
    .step-actions .btn { width: 100%; }
    .report-stats-row { grid-template-columns: 1fr; }
    .action-buttons { flex-direction: column; }
    .action-buttons .btn { width: 100%; }
    .row { flex-direction: column; }
    .col-lg-6 { max-width: 100%; }
}
@media (max-width: 480px) {
    .metrics-grid { grid-template-columns: 1fr; }
    .metric-badge { display: none; }
}

/* Print */
@media print {
    .page-header-actions, .bulk-action-bar { display: none !important; }
    .report-stat-card, .report-panel { border: 1px solid #d1d5db; }
}

/* ==========================================================================
   APPLICATION FORM — REFINED DESIGN (v2)
   Cohesive, modern multi-step layout. Overrides earlier form rules.
   Palette: navy #1e3a5f, slate neutrals. Token-aware where useful.
   ========================================================================== */

.application-form-page { max-width: 1240px; }
.application-shell { gap: 1rem; }

/* ----- Hero: compact, horizontal, purposeful ----- */
.application-hero {
    grid-template-columns: minmax(0, 1.4fr) minmax(260px, 1fr);
    gap: 2rem;
    align-items: center;
    padding: 1.5rem 1.75rem;
    border: 1px solid #e2e8f0;
    border-radius: 1rem;
    background:
        radial-gradient(120% 140% at 100% 0%, rgba(30,58,95,.10) 0%, transparent 45%),
        linear-gradient(180deg, #ffffff 0%, #f7fafc 100%);
    box-shadow: 0 1px 2px rgba(15,23,42,.04), 0 12px 30px rgba(15,23,42,.05);
}
.application-hero-copy { gap: .55rem; }
.application-hero-kicker {
    gap: .4rem;
    padding: .32rem .7rem;
    background: #eef4fb;
    color: #1e3a5f;
    font-size: .68rem;
    letter-spacing: .1em;
}
.application-hero-kicker i { font-size: .7rem; }
.application-hero-title {
    font-size: clamp(1.4rem, 1.6vw, 1.85rem);
    font-weight: 800;
    letter-spacing: -.01em;
    color: #0f172a;
}
.application-hero-text {
    font-size: .9rem;
    line-height: 1.6;
    color: #64748b;
    max-width: 52ch;
}
.application-hero-meta {
    gap: .55rem;
    grid-auto-rows: min-content;
}
.hero-meta-card {
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: .7rem .85rem;
    border: 1px solid #e6edf5;
    border-radius: .75rem;
    background: #fff;
    backdrop-filter: none;
}
.hero-meta-icon {
    width: 2.2rem;
    height: 2.2rem;
    flex-shrink: 0;
    border-radius: .6rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #eef4fb;
    color: #1e3a5f;
    font-size: .9rem;
}
.hero-meta-text { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.hero-meta-text strong { font-size: .85rem; color: #0f172a; }
.hero-meta-text span { font-size: .76rem; color: #64748b; line-height: 1.35; }

/* ----- Progress stepper: horizontal, aligned, no stray connectors -----
   The global `.progress-step` rules (scoped to `.application-progress`)
   used to leak `flex-direction:column` + an `::after` line into this bar,
   producing duplicate/misaligned connectors. Everything below fully
   redefines the form stepper so circles, lines, and labels line up. */
.form-progress {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: space-between;
    gap: .6rem;
    padding: 1.1rem 1.6rem;
    border-radius: .9rem;
    box-shadow: 0 1px 2px rgba(15,23,42,.04);
}
.form-progress .progress-step {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: .6rem;
    flex: 0 0 auto;
    position: static;
    text-align: left;
}
/* neutralise the detail-page pseudo connector that previously leaked in */
.form-progress .progress-step::after,
.form-progress .progress-step::before { content: none !important; display: none !important; }
.form-progress .progress-step .step-circle {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: .9rem;
    background: #fff;
    border: 2px solid #e2e8f0;
    color: #94a3b8;
    box-shadow: none;
    transition: background .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.form-progress .progress-step.active .step-circle {
    background: #1e3a5f;
    border-color: #1e3a5f;
    color: #fff;
    box-shadow: 0 0 0 4px rgba(30,58,95,.12);
}
.form-progress .progress-step.completed .step-circle {
    background: #16a34a;
    border-color: #16a34a;
    color: transparent;
    position: relative;
}
.form-progress .progress-step.completed .step-circle::after {
    content: '\2713';
    font-weight: 700;
    color: #fff;
    font-size: .95rem;
    position: absolute;
    inset: 0;
    display: flex !important;
    align-items: center;
    justify-content: center;
}
.form-progress .step-label {
    display: flex;
    flex-direction: column;
    gap: 1px;
    align-items: flex-start;
    text-align: left;
    line-height: 1.2;
}
.form-progress .step-label strong { font-size: .82rem; font-weight: 700; color: #334155; white-space: nowrap; }
.form-progress .step-label small { display: none; }   /* subtitle repeated in step header below */
.form-progress .progress-step.active .step-label strong { color: #1e3a5f; }
.form-progress .progress-step.completed .step-label strong { color: #16a34a; }
.form-progress .progress-line {
    flex: 1 1 auto;
    min-width: 18px;
    max-width: none;
    height: 2px;
    background: #e2e8f0;
    border-radius: 2px;
    align-self: center;
}

/* ----- Container & steps ----- */
.form-container {
    border-radius: 1rem;
    box-shadow: 0 1px 2px rgba(15,23,42,.04), 0 18px 40px rgba(15,23,42,.06);
}
.form-step { padding: 1.75rem; }
.step-header {
    align-items: center;
    gap: .9rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1.1rem;
    border-bottom: 1px solid #eef2f7;
}
.step-icon {
    width: 46px;
    height: 46px;
    border-radius: .75rem;
    background: linear-gradient(135deg, #1e3a5f 0%, #2f5685 100%);
    color: #fff;
    font-size: 1.15rem;
    box-shadow: 0 6px 16px rgba(30,58,95,.22);
}
.step-header h2 { font-size: 1.2rem; font-weight: 700; color: #0f172a; }
.step-header p { font-size: .875rem; color: #64748b; }

/* ----- Section cards: lighter, accent edge ----- */
.form-section-card {
    background: #fff;
    border: 1px solid #eef2f7;
    border-radius: .9rem;
    padding: 1.35rem 1.4rem;
    margin-bottom: 1rem;
    box-shadow: none;
    transition: border-color .15s ease, box-shadow .15s ease;
}
.form-section-card:hover { border-color: #e0e7f0; }
.form-section-card:focus-within {
    border-color: #c7d6e8;
    box-shadow: 0 0 0 3px rgba(30,58,95,.05);
}
.section-kicker { color: #1e3a5f; font-size: .68rem; letter-spacing: .1em; }
.section-title { font-size: 1rem; font-weight: 700; color: #0f172a; margin-bottom: .9rem; }
.section-intro { font-size: .875rem; color: #64748b; }

/* ----- Inputs: taller, crisp focus, custom select caret ----- */
.form-group label { font-size: .8rem; font-weight: 600; color: #334155; }
.form-group label .required { color: #dc2626; margin-left: 1px; }
.form-input {
    padding: .6rem .75rem;
    min-height: 42px;
    border: 1px solid #d7dee8;
    border-radius: .55rem;
    font-size: .875rem;
    background: #fff;
    transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}
.form-input:hover:not(:focus) { border-color: #c2cdda; }
.form-input:focus {
    border-color: #1e3a5f;
    box-shadow: 0 0 0 3px rgba(30,58,95,.12);
}
.form-input::placeholder { color: #aab4c2; }
textarea.form-input { min-height: 92px; line-height: 1.55; padding-top: .55rem; }
select.form-input {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2364748b' d='M3 4.5 6 7.5 9 4.5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right .75rem center;
    padding-right: 2rem;
}
.form-hint { font-size: .75rem; color: #94a3b8; }
.form-error { font-size: .75rem; color: #dc2626; font-weight: 500; }
.form-input.error { border-color: #dc2626; background: #fff7f7; }
.form-input.error:focus { box-shadow: 0 0 0 3px rgba(220,38,38,.12); }

/* ----- Step actions ----- */
.step-actions { margin-top: 1.75rem; padding-top: 1.25rem; border-top: 1px solid #eef2f7; }
.application-form .btn { border-radius: .6rem; font-weight: 600; }
.application-form .btn-primary {
    background: #1e3a5f;
    border-color: #1e3a5f;
    box-shadow: 0 6px 16px rgba(30,58,95,.20);
}
.application-form .btn-primary:hover { background: #16304f; border-color: #16304f; }
.btn-lg { padding: .7rem 1.4rem; font-size: .95rem; }

/* ----- Applicant-type cards ----- */
.student-type-grid { gap: .85rem; }
.student-type-option {
    min-height: auto;
    grid-template-columns: auto 1fr;
    gap: .75rem 1rem;
    padding: 1.1rem 1.15rem;
    border: 1.5px solid #e2e8f0;
    border-radius: .9rem;
    background: #fff;
}
.student-type-marker { grid-row: 1; grid-column: 1; }
.student-type-icon {
    grid-row: 1;
    grid-column: 2;
    justify-self: start;
    width: 2.6rem;
    height: 2.6rem;
    border-radius: .7rem;
    box-shadow: none;
}
.student-type-content { grid-column: 1 / -1; gap: .25rem; }
.student-type-title { font-size: .92rem; }
.student-type-option:hover { border-color: #c7d6e8; box-shadow: 0 6px 18px rgba(30,58,95,.07); }
.student-type-option:has(input:checked) {
    border-color: #1e3a5f;
    box-shadow: 0 0 0 1px #1e3a5f, 0 10px 24px rgba(30,58,95,.12);
    background: #fbfdff;
}
.selection-tip { color: #94a3b8; font-size: .76rem; }

/* ----- Checkbox cards ----- */
.checkbox-card {
    align-items: center;
    gap: .65rem;
    padding: .8rem .95rem;
    border: 1px solid #e2e8f0;
    border-radius: .7rem;
    background: #fff;
    cursor: pointer;
    transition: border-color .15s ease, background .15s ease;
    font-size: .85rem;
    color: #334155;
}
.checkbox-card:hover { border-color: #c7d6e8; background: #fbfdff; }
.checkbox-card input { width: 17px; height: 17px; margin: 0; accent-color: #1e3a5f; flex-shrink: 0; }
.checkbox-card:has(input:checked) { border-color: #1e3a5f; background: #f4f8fc; }
.required-checkbox { border-color: #d7dee8; }

/* ----- Address & split layout ----- */
.address-layout, .form-layout-split { gap: 1.1rem; }
.address-panel {
    border: 1px solid #eef2f7;
    border-radius: .85rem;
    background: #fafcfe;
    padding: 1.15rem;
}
.address-title { font-size: .9rem; color: #0f172a; }

/* ----- Cost summary ----- */
.summary-card {
    border: 1px solid #eef2f7;
    border-radius: .9rem;
    background: linear-gradient(180deg, #ffffff 0%, #f7fafc 100%);
    padding: 1.25rem;
    box-shadow: 0 10px 26px rgba(15,23,42,.05);
}
.sticky-summary { top: 1.25rem; }
.cost-row { padding: .65rem 0; font-size: .85rem; border-bottom: 1px solid #eef2f7; }
.cost-row.total-row {
    margin-top: .35rem;
    padding-top: .85rem;
    border-top: 2px solid #e2e8f0;
    font-size: 1.05rem;
    color: #0f172a;
}
.cost-row.total-row strong { color: #1e3a5f; font-size: 1.15rem; }
.summary-note { color: #94a3b8; font-size: .76rem; }

/* ----- Service cards ----- */
.service-grid { gap: .85rem; }
.service-card {
    border: 1px solid #e2e8f0;
    border-radius: .85rem;
    padding: 1.05rem;
    background: #fff;
    transition: border-color .15s ease, box-shadow .15s ease;
}
.service-card:hover { border-color: #c7d6e8; box-shadow: 0 6px 18px rgba(30,58,95,.06); }
.service-card input { accent-color: #1e3a5f; }
.service-card:has(input:checked) {
    border-color: #1e3a5f;
    box-shadow: 0 0 0 1px #1e3a5f;
    background: #fbfdff;
}
.service-type {
    align-self: flex-start;
    padding: .12rem .5rem;
    border-radius: .4rem;
    background: #eef4fb;
    color: #1e3a5f;
    font-size: .68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
}
.service-meta strong { color: #0f172a; font-size: .85rem; }

/* ----- Review step ----- */
.review-card { background: #fafcfe; border: 1px solid #eef2f7; border-radius: .9rem; padding: 1.4rem; }
.review-card .review-section { border-bottom: 1px solid #eef2f7; }
.review-card .review-section h3 {
    font-size: .8rem;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: #1e3a5f;
}
.review-item {
    background: #fff;
    border: 1px solid #eef2f7;
    border-radius: .6rem;
    padding: .6rem .75rem;
}
.review-label { font-size: .7rem; text-transform: uppercase; letter-spacing: .04em; color: #94a3b8; }
.review-value { font-size: .875rem; color: #0f172a; font-weight: 500; }
.submit-notice {
    background: #f4f8fc;
    border: 1px solid #dbe7f3;
    border-radius: .85rem;
}
.consent-card { border-color: #dbe7f3; }

/* ----- Responsive refinements ----- */
@media (max-width: 980px) {
    .application-hero { gap: 1.25rem; padding: 1.25rem; }
    .application-hero-meta { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
    .form-step { padding: 1.15rem; }
    .form-section-card { padding: 1.1rem; }
    .application-hero-meta { grid-template-columns: 1fr; }
}

/* ----- Dark theme support ----- */
html[data-theme="dark"] .application-hero,
html[data-theme="dark"] .form-container,
html[data-theme="dark"] .form-progress,
html[data-theme="dark"] .form-section-card,
html[data-theme="dark"] .hero-meta-card,
html[data-theme="dark"] .student-type-option,
html[data-theme="dark"] .checkbox-card,
html[data-theme="dark"] .service-card,
html[data-theme="dark"] .summary-card {
    background: #1e293b !important;
    border-color: #334155 !important;
}
html[data-theme="dark"] .address-panel,
html[data-theme="dark"] .review-card,
html[data-theme="dark"] .review-item { background: #16202e !important; border-color: #334155 !important; }
html[data-theme="dark"] .application-hero-title,
html[data-theme="dark"] .section-title,
html[data-theme="dark"] .step-header h2,
html[data-theme="dark"] .hero-meta-text strong,
html[data-theme="dark"] .student-type-title,
html[data-theme="dark"] .review-value,
html[data-theme="dark"] .cost-row.total-row { color: #f1f5f9 !important; }
html[data-theme="dark"] .form-input { background: #0f172a; border-color: #334155; color: #f1f5f9; }
html[data-theme="dark"] .progress-step .step-circle { background: #0f172a; border-color: #334155; }

/* =====================================================================
   APPLICATION VIEWS — list/detail/edit polish (Session: stage-gating)
   Reuses shared .metric-card/.panel/.data-table/.form-* primitives.
   ===================================================================== */

/* ----- List: applicant cell (rebuilt list uses .applicant-cell) ----- */
.applicant-cell { display: flex; align-items: center; gap: .7rem; min-width: 0; }
.applicant-cell .applicant-info { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.applicant-cell .applicant-name { display: flex; align-items: center; gap: .4rem; font-weight: 600;
    font-size: .875rem; color: var(--gray-900, #111827); }
.applicant-cell .applicant-name a { color: inherit; text-decoration: none; white-space: nowrap;
    overflow: hidden; text-overflow: ellipsis; }
.applicant-cell .applicant-name a:hover { color: var(--primary, #1e3a5f); }
.applicant-cell .applicant-email { font-size: .75rem; color: var(--gray-500, #9ca3af);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.data-table .bulk-check { width: 16px !important; height: 16px !important; cursor: pointer; }

/* ----- List: bulk action bar ----- */
.bulk-action-bar { display: flex; align-items: center; gap: 1rem; padding: .8rem 1.1rem;
    margin-bottom: 1rem; background: var(--primary-50, #eef2f7); border: 1px solid #d7e0ec;
    border-radius: 12px; }
.bulk-action-bar .bulk-count { font-weight: 700; font-size: .85rem; color: var(--primary, #1e3a5f); }

/* ----- Detail: STAGE PROGRESS pipeline ----- */
.stage-progress { background: #fff; border: 1px solid var(--gray-200, #e5e7eb); border-radius: 14px;
    padding: 1.4rem 1.5rem 1.15rem; margin-bottom: 1.25rem; box-shadow: 0 1px 3px rgba(16,24,40,.05); }
.stage-track { list-style: none; margin: 0; padding: 0; display: flex; align-items: flex-start;
    gap: 0; counter-reset: stage; }
.stage-step { position: relative; flex: 1 1 0; display: flex; flex-direction: column;
    align-items: center; text-align: center; min-width: 0; }
/* connector line between markers */
.stage-step::before { content: ""; position: absolute; top: 18px; left: -50%; width: 100%; height: 3px;
    background: var(--gray-200, #e5e7eb); z-index: 0; }
.stage-step:first-child::before { display: none; }
.stage-marker { position: relative; z-index: 1; width: 38px; height: 38px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center; font-size: .85rem;
    background: #fff; border: 2px solid var(--gray-300, #d1d5db); color: var(--gray-400, #9ca3af);
    transition: all .2s ease; }
.stage-label { margin-top: .5rem; font-size: .72rem; font-weight: 600; line-height: 1.25;
    color: var(--gray-500, #6b7280); letter-spacing: .2px; }
/* done */
.stage-step.done .stage-marker { background: var(--primary, #1e3a5f); border-color: var(--primary, #1e3a5f); color: #fff; }
.stage-step.done::before { background: var(--primary, #1e3a5f); }
.stage-step.done .stage-label { color: var(--gray-700, #374151); }
/* current */
.stage-step.current .stage-marker { background: #fff; border-color: var(--primary, #1e3a5f);
    color: var(--primary, #1e3a5f); box-shadow: 0 0 0 4px rgba(30,58,95,.12); }
.stage-step.current .stage-label { color: var(--primary, #1e3a5f); font-weight: 700; }
/* the connector entering the current step is complete */
.stage-step.current::before { background: var(--primary, #1e3a5f); }
/* closed (rejected/withdrawn) */
.stage-progress.closed { padding: 0; border: none; box-shadow: none; background: transparent; }
.stage-closed-banner { display: flex; align-items: center; gap: .65rem; padding: .9rem 1.1rem;
    background: #fef2f2; border: 1px solid #fecaca; border-radius: 12px; color: #991b1b;
    font-size: .875rem; }
.stage-closed-banner i { font-size: 1.1rem; }

/* ----- Detail: stage-gated action bar ----- */
.stage-actions { background: #fff; border: 1px solid var(--gray-200, #e5e7eb); border-left: 4px solid var(--primary, #1e3a5f);
    border-radius: 12px; padding: 1.1rem 1.25rem; margin-bottom: 1.5rem;
    box-shadow: 0 1px 3px rgba(16,24,40,.05); }
.stage-actions-head { display: flex; align-items: baseline; gap: .75rem; flex-wrap: wrap; margin-bottom: .9rem; }
.stage-actions-title { font-size: .9rem; font-weight: 700; color: var(--gray-900, #111827);
    display: inline-flex; align-items: center; gap: .45rem; }
.stage-actions-title i { color: var(--primary, #1e3a5f); }
.stage-actions-hint { font-size: .76rem; color: var(--gray-500, #6b7280); }
.stage-actions-body { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; }
.stage-actions-body form { display: inline; margin: 0; }
.stage-actions-sep { flex: 1 1 auto; min-width: 12px; }
.stage-done-note { display: inline-flex; align-items: center; gap: .45rem; font-size: .875rem;
    font-weight: 600; color: var(--success, #16a34a); }

/* ----- Edit: form-card base (shares detail design language) ----- */
.form-card { background: #fff; border: 1px solid var(--gray-200, #e5e7eb); border-radius: 1.15rem;
    overflow: hidden; box-shadow: 0 1px 3px rgba(16,24,40,.06); }
.form-card .panel-body { padding: 1.5rem 1.75rem; }
.form-card .form-section + .form-section { border-top: 1px solid var(--gray-100, #f3f4f6);
    padding-top: 1.5rem; }
.form-card .form-section-title { display: flex; align-items: center; gap: .55rem; }
.form-card .form-section-title i { color: var(--primary, #1e3a5f); }
.form-error-summary { display: flex; align-items: center; gap: .6rem; padding: .8rem 1rem;
    margin-bottom: 1.25rem; background: #fef2f2; border: 1px solid #fecaca; border-radius: 10px;
    color: #991b1b; font-size: .85rem; font-weight: 500; }

/* ----- Responsive: stage pipeline collapses gracefully ----- */
@media (max-width: 720px) {
    .stage-track { flex-wrap: wrap; gap: .5rem 0; }
    .stage-step { flex: 0 0 25%; }
    .stage-step::before { display: none; }
}

/* ----- Dark mode ----- */
html[data-theme="dark"] .stage-progress,
html[data-theme="dark"] .stage-actions,
html[data-theme="dark"] .form-card { background: #1e293b; border-color: #334155; }
html[data-theme="dark"] .stage-actions { border-left-color: #3b82f6; }
html[data-theme="dark"] .stage-marker { background: #0f172a; border-color: #334155; }
html[data-theme="dark"] .stage-step.done .stage-marker,
html[data-theme="dark"] .stage-step.current .stage-marker { color: #fff; }
html[data-theme="dark"] .applicant-cell .applicant-name { color: #f1f5f9; }
html[data-theme="dark"] .stage-actions-title { color: #f1f5f9; }
html[data-theme="dark"] .bulk-action-bar { background: #243049; border-color: #334155; }
html[data-theme="dark"] .form-card .form-section + .form-section { border-color: #334155; }

/* ==========================================================================
   Admissions kanban board (draggable pipeline)
   ========================================================================== */
.kanban-board { display: flex; gap: var(--space-3); overflow-x: auto; padding-bottom: var(--space-4); }
.kanban-col { flex: 0 0 280px; background: var(--gray-50); border-radius: var(--radius-lg);
    display: flex; flex-direction: column; max-height: 75vh;
    border: 1px solid transparent; transition: border-color .15s ease, background .15s ease; }
.kanban-col-header { padding: var(--space-3); border-bottom: 1px solid var(--border-light);
    display: flex; justify-content: space-between; align-items: center; font-weight: var(--font-semibold); }
.kanban-col-label { font-size: var(--text-sm); }
.kanban-col-body { padding: var(--space-2); overflow-y: auto; flex: 1; min-height: 60px; }
.kanban-card { background: var(--white); padding: var(--space-3); border-radius: var(--radius-md);
    box-shadow: var(--shadow-xs); margin-bottom: var(--space-2); border-left: 3px solid var(--primary);
    transition: box-shadow .15s ease, opacity .15s ease, transform .05s ease; }
.kanban-card a { color: var(--gray-900); text-decoration: none; font-weight: var(--font-medium); font-size: var(--text-sm); }
.kanban-card .meta { margin-top: var(--space-1); color: var(--gray-500); font-size: var(--text-xs); }
.kanban-count { background: var(--primary); color: var(--white); border-radius: var(--radius-full);
    padding: 0 var(--space-2); font-size: var(--text-xs); min-width: 1.5rem; text-align: center; }
.kanban-empty { padding: var(--space-4); text-align: center; color: var(--gray-400); font-size: var(--text-sm); }

/* ----- Drag affordances ----- */
.kanban-card[draggable="true"] { cursor: grab; }
.kanban-card[draggable="true"]:active { cursor: grabbing; }
.kanban-card.is-dragging { opacity: .45; box-shadow: var(--shadow-md); }
.kanban-card.is-saving { opacity: .6; pointer-events: none; }
.kanban-col.drop-target { background: #eef3fb; border-color: var(--primary, #1e3a5f); }
.kanban-col.drop-target .kanban-col-body { outline: 2px dashed var(--primary, #1e3a5f); outline-offset: -6px; border-radius: var(--radius-md); }

/* ----- Dark mode ----- */
html[data-theme="dark"] .kanban-col { background: #1e293b; }
html[data-theme="dark"] .kanban-card { background: #0f172a; }
html[data-theme="dark"] .kanban-card a { color: #f1f5f9; }
html[data-theme="dark"] .kanban-col.drop-target { background: #243049; }

/* ==========================================================================
   Conversion funnel
   ========================================================================== */
.funnel-wrap { display: flex; flex-direction: column; gap: var(--space-2); }
.funnel-stage { display: flex; align-items: center; gap: var(--space-3); }
.funnel-stage-label { flex: 0 0 150px; font-size: var(--text-sm); font-weight: var(--font-medium);
    color: var(--gray-700); text-align: right; }
.funnel-bar-track { flex: 1; display: flex; align-items: center; }
.funnel-bar { height: 34px; border-radius: var(--radius-sm); min-width: 2px;
    display: flex; align-items: center; justify-content: flex-end; padding: 0 var(--space-2);
    color: var(--white); font-size: var(--text-xs); font-weight: var(--font-semibold);
    white-space: nowrap; transition: width .4s ease; box-shadow: var(--shadow-xs); }
.funnel-bar-meta { flex: 0 0 96px; font-size: var(--text-xs); color: var(--gray-500); }
html[data-theme="dark"] .funnel-stage-label { color: #cbd5e1; }

/* Funnel bar colour grade — top (info/blue) descending to success/green */
.funnel-bar-info { background: #0ea5e9; }
.funnel-bar-p1   { background: #1e3a5f; }
.funnel-bar-p2   { background: #2a4a73; }
.funnel-bar-w1   { background: #ca8a04; }
.funnel-bar-w2   { background: #b07d05; }
.funnel-bar-s1   { background: #16a34a; }
.funnel-bar-s2   { background: #15803d; }
