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

/* ===== Admissions Metric Extensions ===== */
.metric-card.highlight-warning {
    border-left: 3px solid #ca8a04;
}
.metric-badge {
    display: inline-flex;
    padding: .125rem .5rem;
    font-size: .625rem;
    font-weight: 600;
    border-radius: 9999px;
    background: #fef2f2;
    color: #dc2626;
    margin-top: .375rem;
}

/* ===== 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 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: 2rem;
}
.rate-circle {
    position: relative;
    width: 90px;
    height: 90px;
    flex-shrink: 0;
}
.rate-circle svg {
    width: 90px;
    height: 90px;
    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: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    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;
}
.progress-step { display: flex; flex-direction: column; align-items: center; flex: 1; position: relative; text-align: center; }
.progress-step::after {
    content: '';
    position: absolute;
    top: 16px;
    left: 50%;
    right: -50%;
    height: 2px;
    background: #e5e7eb;
    z-index: 1;
}
.progress-step:last-child::after { display: none; }
.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; }
.form-progress {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: .75rem;
}
.progress-step .step-circle {
    width: 40px; height: 40px;
    border-radius: 50%;
    background: #f3f4f6;
    color: #6b7280;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: .3s;
}
.progress-step .step-label { font-size: .75rem; color: #6b7280; font-weight: 500; white-space: nowrap; }
.progress-step.active .step-circle { background: #1e3a5f; color: #fff; }
.progress-step.active .step-label { color: #1e3a5f; }
.progress-step.completed .step-circle { background: #16a34a; color: #fff; }
.progress-step.completed .step-circle::after { content: '\2713'; }
.progress-line { flex: 1; height: 2px; background: #e5e7eb; margin: 0 .75rem; max-width: 100px; }
.form-container {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: .75rem;
    overflow: hidden;
}
.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;
}

/* ===== 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;
}
/* All status banners share the same navy base */
.status-banner.status-new,
.status-banner.status-inreview,
.status-banner.status-accepted,
.status-banner.status-rejected,
.status-banner.status-submitted,
.status-banner.status-documentsrequired,
.status-banner.status-documents_required,
.status-banner.status-conditionaloffer,
.status-banner.status-conditional_offer,
.status-banner.status-offersent,
.status-banner.status-offer_sent,
.status-banner.status-offeraccepted,
.status-banner.status-offer_accepted,
.status-banner.status-pendingfinance,
.status-banner.status-pending_finance,
.status-banner.status-financecleared,
.status-banner.status-finance_cleared,
.status-banner.status-enrolled,
.status-banner.status-withdrawn {
    background: #1e3a5f;
    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; }
    .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; }
}
