@import url('open-iconic/font/css/open-iconic-bootstrap.min.css');
@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,600;9..144,700&family=Public+Sans:wght@400;500;600;700&display=swap');

/* ==================== BASE STYLES ==================== */
:root {
    --navy-deep: #0a2540;
    --navy-primary: #1a4d7a;
    --navy-light: #2d6ba3;
    --accent-gold: #d4a574;
    --accent-amber: #f59e0b;
    --slate-50: #f8fafc;
    --slate-100: #f1f5f9;
    --slate-200: #e2e8f0;
    --slate-300: #cbd5e1;
    --slate-600: #475569;
    --slate-700: #334155;
    --slate-900: #0f172a;
    --success-bg: #ecfdf5;
    --success-text: #065f46;
    --success-border: #6ee7b7;
    --danger-bg: #fef2f2;
    --danger-text: #991b1b;
    --danger-border: #fca5a5;
    --info-bg: #eff6ff;
    --info-text: #1e40af;
    --info-border: #93c5fd;
}

html, body {
    font-family: 'Public Sans', -apple-system, system-ui, sans-serif;
}

h1:focus {
    outline: none;
}

a, .btn-link {
    color: #0071c1;
}

.btn-primary {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac;
}

.content {
    padding-top: 1.1rem;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid red;
}

.validation-message {
    color: red;
}

#blazor-error-ui {
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

    #blazor-error-ui .dismiss {
        cursor: pointer;
        position: absolute;
        right: 0.75rem;
        top: 0.5rem;
    }

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA5NC4wODE1IDI5MSA5NC42NzgyIDI5MSA5Ny4wNjUxIDI4OS4wMzggOTkgMjg2LjYxNyA5OUwyNDAuMzgzIDk5QzIzNy45NjMgOTkgMjM2IDk3LjA2NTEgMjM2IDk0LjY3ODIgMjM2IDk0LjM3OTkgMjM2LjAzMSA5NC4wODg2IDIzNi4wODkgOTMuODA3MkwyMzYuMzM4IDkzLjAxNjIgMjM2Ljg1OCA5Mi4xMzE0IDI1OS40NzMgNTMuNjI5NCAyNTkuOTYxIDUyLjc5ODUgMjYwLjQwNyA1Mi4yNjU4QzI2MS4yIDUxLjQ4MzcgMjYyLjI5NiA1MSAyNjMuNTA2IDUxWk0yNjMuNTg2IDY2LjAxODNDMjYwLjczNyA2Ni4wMTgzIDI1OS4zMTMgNjcuMTI0NSAyNTkuMzEzIDY5LjMzNyAyNTkuMzEzIDY5LjYxMDIgMjU5LjMzMiA2OS44NjA4IDI1OS4zNzEgNzAuMDg4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

    .blazor-error-boundary::after {
        content: "An error has occurred."
    }

/* ==================== FORM PAGE STYLES (Original) ==================== */
.form-page {
    max-width: 860px;
    margin: 0 auto;
    padding: 2rem 0rem;
    font-family: 'Segoe UI', sans-serif;
    color: #1a1a2e;
}

.form-header {
    margin-bottom: 2rem;
    border-bottom: 3px solid #003087;
    padding-bottom: 1rem;
}

    .form-header h1 {
        font-size: 1.8rem;
        color: #003087;
        margin: 0;
    }

.form-subtitle {
    color: #555;
    margin: 0.25rem 0 0;
    font-size: 0.95rem;
}

.form-section {
    background: #fff;
    border: 1px solid #dde3ed;
    border-radius: 6px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.section-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #003087;
    margin: 0 0 1.25rem;
    padding-bottom: 0.5rem;
}

.section-note {
    font-size: 0.875rem;
    color: #666;
    margin: -0.75rem 0 1rem;
}

.field-label {
    font-weight: 500;
    display: block;
    margin-bottom: 0.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}

    .form-row.three-col {
        grid-template-columns: 1fr 1fr 1fr;
    }

.form-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 1rem;
}

    .form-group.full-width {
        grid-column: 1 / -1;
    }

    .form-group label {
        font-size: 0.875rem;
        font-weight: 500;
        margin-bottom: 0.35rem;
        color: #333;
    }

.form-control {
    padding: 0.45rem 0.65rem;
    border: 1px solid #ccd3de;
    border-radius: 4px;
    font-size: 0.9rem;
    color: #1a1a2e;
    background: #fafbfc;
    transition: border-color 0.2s;
    width: 100%;
}

    .form-control:focus {
        outline: none;
        border-color: #003087;
        background: #fff;
        box-shadow: 0 0 0 3px rgba(0, 48, 135, 0.1);
    }

textarea.form-control {
    resize: vertical;
    min-height: 100px;
}

.radio-group {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.radio-label,
.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    cursor: pointer;
    color: #222;
}

.checkbox-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.65rem;
    margin-bottom: 0.5rem;
}

    .checkbox-group.vertical {
        grid-template-columns: 1fr;
    }

.required {
    color: #c0392b;
    font-weight: bold;
}

.validation-errors {
    color: #c0392b;
    font-size: 0.8rem;
    margin-top: 0.25rem;
}

.info-box {
    background: #e8f4fd;
    border: 1px solid #90c4e8;
    border-left: 4px solid #2980b9;
    color: #1a5276;
    font-size: 0.875rem;
    line-height: 1.5;
}

.form-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    border: none;
    padding: 0;
}

.btn-submit {
    background: #003087;
    color: #fff;
    border: none;
    padding: 0.65rem 2.5rem;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

    .btn-submit:hover:not(:disabled) {
        background: #00205b;
    }

    .btn-submit:disabled {
        background: #aaa;
        cursor: not-allowed;
    }

.alert {
    padding: 1rem 1.25rem;
    border-radius: 4px;
    margin-bottom: 1rem;
    width: 100%;
}

.alert-success {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
}

.alert-danger {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
}

.mt-2 {
    margin-top: 0.5rem;
}

@media (max-width: 640px) {
    .form-row,
    .form-row.three-col,
    .checkbox-group {
        grid-template-columns: 1fr;
    }
}
/* ===== APPLICATIONS PAGE STYLES ===== */

.applications-page {
    min-height: 100vh;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    padding-bottom: 3rem;
}

/* Loading Overlay */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.loading-content {
    text-align: center;
}

/* Page Header */
.page-header-section {
    background: linear-gradient(135deg, #003c6c 0%, #1a4d7a 100%);
    padding: 2rem 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border-bottom: 4px solid #d4a574;
}

.page-header-content {
    color: white;
}

.page-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: white;
}

.page-subtitle {
    font-size: 1rem;
    opacity: 0.9;
    color: rgba(255, 255, 255, 0.9);
}

.btn-new-application {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    border: none;
    color: white;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
}

    .btn-new-application:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 16px rgba(16, 185, 129, 0.4);
        color: white;
    }

/* Empty State */
.empty-state-card {
    background: white;
    border-radius: 16px;
    padding: 4rem 2rem;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.empty-state-icon {
    font-size: 5rem;
    color: #cbd5e1;
    margin-bottom: 1.5rem;
}

.empty-state-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 0.75rem;
}

.empty-state-text {
    font-size: 1.125rem;
    color: #64748b;
}

/* Stat Cards */
.stat-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1.25rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    height: 100%;
}

    .stat-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 8px 16px rgba(0, 0, 0, 0.12);
    }

.stat-card-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    color: white;
    flex-shrink: 0;
}

.stat-card-primary .stat-card-icon {
    background: linear-gradient(135deg, #003c6c 0%, #1a4d7a 100%);
}

.stat-card-success .stat-card-icon {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.stat-card-info .stat-card-icon {
    background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%);
}

.stat-card-warning .stat-card-icon {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
}

.stat-card-content {
    flex: 1;
}

.stat-card-label {
    font-size: 0.875rem;
    color: #64748b;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.375rem;
}

.stat-card-value {
    font-size: 2rem;
    font-weight: 700;
    color: #1e293b;
}

/* Grid Card */
.grid-card {
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.grid-card-header {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 1.5rem 2rem;
    border-bottom: 2px solid #dee2e6;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.grid-card-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #003c6c;
    margin: 0;
}

.grid-card-info {
    font-size: 0.875rem;
    color: #6c757d;
    font-weight: 500;
}

.grid-card-body {
    padding: 0;
}

/* Grid Cell Styles */
.app-id-cell {
    display: flex;
    align-items: center;
}

.app-id-badge {
    background: linear-gradient(135deg, #003c6c 0%, #1a4d7a 100%);
    color: white;
    padding: 0.375rem 0.75rem;
    border-radius: 6px;
    font-weight: 700;
    font-size: 0.875rem;
}

.applicant-cell {
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
}

.applicant-name {
    font-weight: 600;
    color: #1e293b;
}

.rep-badge {
    background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%);
    color: white;
    padding: 0.25rem 0.625rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    align-self: flex-start;
}

.contact-cell {
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
}

.contact-icon {
    color: #003c6c;
    font-size: 0.875rem;
}

.contact-text {
    color: #1e293b;
}

.contact-secondary .contact-icon {
    color: #64748b;
}

.contact-secondary .contact-text {
    color: #64748b;
}

.location-cell {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.location-icon {
    color: #003c6c;
}

.date-cell {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.date-icon {
    color: #003c6c;
}

.interpreter-cell {
    display: flex;
    align-items: center;
}

.interpreter-badge {
    padding: 0.375rem 0.75rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
}

.interpreter-yes {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
}

.interpreter-no {
    background: linear-gradient(135deg, #94a3b8 0%, #64748b 100%);
    color: white;
}

.submitted-cell {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.submitted-date {
    font-size: 0.875rem;
    color: #1e293b;
    font-weight: 600;
}

.submitted-by {
    font-size: 0.75rem;
    color: #64748b;
}

/* Action Buttons */
.action-buttons-cell {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.btn-action {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 6px;
    font-size: 0.8125rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    white-space: nowrap;
}

.btn-action-view {
    background: linear-gradient(135deg, #003c6c 0%, #1a4d7a 100%);
    color: white;
}

    .btn-action-view:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(0, 60, 108, 0.3);
    }

.btn-action-pdf {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
}

    .btn-action-pdf:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
    }


/* ===== TELERIK GRID COMPLETE STYLING FIX ===== */

/* ===== TELERIK GRID HEADER - FORCE NAVY BLUE BACKGROUND ===== */

/* Force header background to navy gradient */
.applications-grid .k-grid-header,
.applications-grid .k-grid-header-wrap,
.applications-grid thead,
.applications-grid thead tr {
    background: linear-gradient(135deg, #003c6c 0%, #1a4d7a 100%) !important;
    background-color: #003c6c !important;
}

    /* Force header cells to be transparent with white text */
    .applications-grid .k-grid-header th,
    .applications-grid .k-grid-header .k-header,
    .applications-grid .k-grid-header .k-table-th,
    .applications-grid thead th {
        background: transparent !important;
        background-color: transparent !important;
        color: white !important;
        font-weight: 700 !important;
        font-size: 0.75rem !important;
        text-transform: uppercase !important;
        letter-spacing: 0.5px !important;
        padding: 1rem 0.75rem !important;
        border-right: 1px solid rgba(255, 255, 255, 0.15) !important;
        border-bottom: none !important;
    }

    /* Force header text elements to be white */
    .applications-grid .k-grid-header .k-link,
    .applications-grid .k-grid-header .k-cell-inner,
    .applications-grid .k-grid-header .k-column-title,
    .applications-grid .k-grid-header span {
        color: white !important;
    }

    /* Force all icons in header to be white */
    .applications-grid .k-grid-header .k-icon,
    .applications-grid .k-grid-header .k-svg-icon,
    .applications-grid .k-grid-header .k-button-icon,
    .applications-grid .k-grid-header .k-sort-icon,
    .applications-grid .k-grid-header .k-i-sort-asc-sm,
    .applications-grid .k-grid-header .k-i-sort-desc-sm {
        color: white !important;
        fill: white !important;
    }

    /* Force filter row to darker navy */
    .applications-grid .k-grid-header .k-filter-row,
    .applications-grid .k-filter-row,
    .applications-grid .k-filter-row th {
        background: linear-gradient(135deg, #1a4d7a 0%, #2d6ba3 100%) !important;
        background-color: #1a4d7a !important;
        border: none !important;
    }

        /* Filter inputs - white background with dark text */
        .applications-grid .k-filter-row input,
        .applications-grid .k-filter-row .k-textbox,
        .applications-grid .k-filter-row .k-input,
        .applications-grid .k-filter-row .k-input-inner,
        .applications-grid .k-filter-row .k-input-value-text {
            background: white !important;
            background-color: white !important;
            color: #1e293b !important;
            border: 1px solid rgba(255, 255, 255, 0.3) !important;
            height: 32px !important;
            padding: 0.375rem 0.5rem !important;
        }

        /* Filter buttons and icons - white */
        .applications-grid .k-filter-row .k-button,
        .applications-grid .k-filter-row .k-icon,
        .applications-grid .k-filter-row .k-svg-icon {
            color: #003c6c !important;
            fill: #003c6c !important;
        }

/* Grid body - keep existing styles */
.applications-grid tbody tr:nth-child(even) {
    background-color: #f8f9fa !important;
}

.applications-grid tbody tr:nth-child(odd) {
    background-color: white !important;
}

.applications-grid tbody tr:hover {
    background: linear-gradient(90deg, #fff7ed 0%, #fffbf5 100%) !important;
}

/* Pager */
.applications-grid .k-pager {
    background: #f8f9fa !important;
    border-top: 2px solid #dee2e6 !important;
}

    .applications-grid .k-pager .k-button.k-selected {
        background: linear-gradient(135deg, #003c6c 0%, #1a4d7a 100%) !important;
        color: white !important;
    }
/* ================================================
   LIST PAGE STYLES - Administrative Interface
   ================================================ */

.list-page {
    /*max-width: 1440px;*/
    width: 100%;
    margin: 0 auto;
    font-family: 'Public Sans', -apple-system, system-ui, sans-serif;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    min-height: 100vh;
}

/* ==================== HEADER ==================== */
.list-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #FEFEFE8A;
    color: #fff;
    padding: 2rem 2.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06), 0 20px 25px -5px rgba(10, 37, 64, 0.15);
    position: relative;
    overflow: hidden;
}

    .list-header::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 4px;
        /*background: linear-gradient(90deg, var(--accent-gold), var(--accent-amber), var(--accent-gold));*/
        animation: shimmer 3s ease-in-out infinite;
    }

@keyframes shimmer {
    0%, 100% {
        opacity: 0.6;
    }

    50% {
        opacity: 1;
    }
}

.list-title {
    font-family: 'Fraunces', Georgia, serif;
    font-size: 24px;
    font-weight: 700;
    margin: 0;
    color: #003c6c;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.list-subtitle {
    font-size: 0.875rem;
    color: #003c6c;
    margin: 0.5rem 0 0;
    font-weight: 500;
    letter-spacing: 0.025em;
    text-transform: uppercase;
}

.btn-new-app {
    background: #367544 !important;
    color: white;
    padding: 0.75rem 1.75rem;
    border-radius: 8px;
    text-decoration: none;
    font-size: 0.9375rem;
    font-weight: 700;
    white-space: nowrap;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    border: 2px solid transparent;
}

    .btn-new-app:hover {
        background: #106230 !important;
        color: white !important;
        transform: translateY(-2px);
        box-shadow: 0 10px 15px -3px rgba(212, 165, 116, 0.3), 0 4px 6px -2px rgba(212, 165, 116, 0.2);
        border-color: rgba(255, 255, 255, 0.2);
    }

/* ==================== TABLE META ==================== */
.table-meta {
    background: white;
    border: 1px solid #d1dae6;
    border-bottom: none;
    border-radius: 12px 12px 0 0;
    padding: 0.65rem 1rem;
    font-size: 0.75rem;
    color: var(--slate-600);
    font-weight: 500;
    letter-spacing: 0.01em;
}

    .table-meta strong {
        color: var(--navy-primary);
        font-weight: 700;
    }

/* ==================== TABLE ==================== */
.table-wrapper {
    background: white;
    border: 1px solid #d1dae6;
    border-top: none;
    border-radius: 0 0 12px 12px;
    overflow-x: auto;
    overflow-y: visible;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    -webkit-overflow-scrolling: touch;
    position: relative;
}

    /* Scroll indicator shadows */
    .table-wrapper::before {
        content: '';
        position: sticky;
        left: 0;
        top: 0;
        bottom: 0;
        width: 20px;
        background: linear-gradient(to right, rgba(255,255,255,1), rgba(255,255,255,0));
        pointer-events: none;
        z-index: 1;
    }

    .table-wrapper::after {
        content: '';
        position: sticky;
        right: 0;
        top: 0;
        bottom: 0;
        width: 20px;
        background: linear-gradient(to left, rgba(255,255,255,1), rgba(255,255,255,0));
        pointer-events: none;
        z-index: 1;
        float: right;
    }

    .table-wrapper::-webkit-scrollbar {
        height: 10px;
    }

    .table-wrapper::-webkit-scrollbar-track {
        background: #f1f5f9;
        border-radius: 0 0 12px 12px;
    }

    .table-wrapper::-webkit-scrollbar-thumb {
        background: #94a3b8;
        border-radius: 5px;
    }

        .table-wrapper::-webkit-scrollbar-thumb:hover {
            background: #64748b;
        }

.app-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.75rem;
    border: 1px solid var(--slate-200);
    table-layout: auto;
    min-width: 1100px;
}

    .app-table th,
    .app-table td {
        box-sizing: border-box;
    }

    .app-table thead tr {
        background: linear-gradient(180deg, var(--navy-primary) 0%, var(--navy-light) 100%);
        color: #fff;
    }

        .app-table thead tr:hover {
            background: linear-gradient(180deg, var(--navy-light) 0%, var(--navy-primary) 100%);
        }

    .app-table th:hover i {
        opacity: 1;
        transform: scale(1.1);
        transition: all 0.2s ease;
    }

    .app-table th {
        padding: 0.65rem 0.85rem;
        text-align: left;
        font-weight: 700;
        white-space: nowrap;
        font-size: 0.7rem;
        letter-spacing: 0.05em;
        text-transform: uppercase;
        border-bottom: 3px solid var(--accent-gold);
        border-right: 1px solid rgba(255, 255, 255, 0.3);
    }

        .app-table th i {
            opacity: 0.85;
            font-size: 0.75rem;
        }

        .app-table th:first-child {
            border-left: 1px solid rgba(255, 255, 255, 0.3);
        }

        .app-table th:last-child {
            border-right: 1px solid rgba(255, 255, 255, 0.3);
        }

/* Icon styling for table cells */
.icon-inline {
    opacity: 0.6;
    font-size: 0.65rem;
    margin-right: 0.25rem;
}

.me-1 {
    margin-right: 0.2rem;
}

.me-2 {
    margin-right: 0.4rem;
}

.app-table tbody tr {
    border-bottom: 1px solid #d1dae6;
    transition: all 0.2s ease;
}

    .app-table tbody tr:nth-child(even) {
        background: #f0f4f9;
    }

    .app-table tbody tr:nth-child(odd) {
        background: #ffffff;
    }

    .app-table tbody tr:hover {
        background: linear-gradient(90deg, #fff7ed 0%, #fffbf5 100%) !important;
    }

    .app-table tbody tr:last-child {
        border-bottom: none;
    }

.app-table td {
    padding: 0.75rem 0.85rem;
    vertical-align: middle;
    color: var(--slate-700);
    border-right: 1px solid #d1dae6;
}

    .app-table td:first-child {
        border-left: 1px solid #d1dae6;
    }

    .app-table td:last-child {
        border-right: 1px solid #d1dae6;
    }

/* ==================== TABLE CELLS ==================== */
.id-col {
    font-family: 'Fraunces', Georgia, serif;
    font-weight: 700;
    color: var(--navy-primary);
    white-space: nowrap;
    font-size: 0.8125rem;
}

.nowrap {
    white-space: nowrap;
}

.wrap-col {
    font-size: 0.7rem;
    color: var(--slate-600);
    max-width: 180px;
    line-height: 1.4;
}

span.text-muted {
    font-size: 0.7rem;
    color: #4b5563 !important;
    display: block;
    margin-top: 0.15rem;
}

.cell-stack {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.applicant-name {
    font-weight: 600;
    color: var(--slate-900);
    font-size: 0.75rem;
}

/* ==================== BADGES ==================== */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.625rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    width: fit-content;
    border: 1.5px solid;
    transition: all 0.2s ease;
}

    .badge i {
        font-size: 0.65rem;
    }

.badge-rep {
    background: var(--info-bg);
    color: var(--info-text);
    border-color: var(--info-border);
}

.badge-yes {
    background: var(--success-bg);
    color: var(--success-text);
    border-color: var(--success-border);
}

.badge-no {
    background: var(--danger-bg);
    color: var(--danger-text);
    border-color: var(--danger-border);
}

/* ==================== VIEW BUTTON ==================== */
.btn-view {
    background: var(--navy-primary) !important;
    color: white !important;
    border: 2px solid var(--navy-primary);
    padding: 0.35rem 0.75rem;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

    .btn-view i {
        font-size: 0.7rem;
    }

    .btn-view:hover {
        background: white !important;
        color: var(--navy-primary) !important;
        transform: translateY(-1px);
        box-shadow: 0 4px 6px -1px rgba(26, 77, 122, 0.3), 0 2px 4px -1px rgba(26, 77, 122, 0.2);
    }

    .btn-view:active {
        transform: translateY(0);
    }

/* ==================== PAGINATION ==================== */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin-top: 2rem;
}

.page-btn {
    min-width: 40px;
    height: 40px;
    padding: 0 0.75rem;
    border: 2px solid var(--slate-200);
    background: white;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    color: var(--navy-primary);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

    .page-btn:hover:not(:disabled):not(.active) {
        background: var(--slate-50);
        border-color: var(--navy-primary);
        transform: translateY(-1px);
        box-shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.1);
    }

    .page-btn.active {
        background: linear-gradient(135deg, var(--navy-primary) 0%, var(--navy-light) 100%);
        color: white;
        border-color: var(--navy-primary);
        font-weight: 700;
        box-shadow: 0 2px 4px 0 rgba(26, 77, 122, 0.3);
    }

    .page-btn:disabled {
        color: var(--slate-300);
        cursor: not-allowed;
        border-color: var(--slate-200);
        background: var(--slate-50);
    }

/* ==================== LOADING STATE ==================== */
.loading-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4rem 2rem;
    color: var(--slate-600);
    background: white;
    border: 1px solid var(--slate-200);
    border-top: none;
    border-radius: 0 0 12px 12px;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--slate-200);
    border-top-color: var(--navy-primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin-bottom: 1rem;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.loading-state p {
    font-weight: 500;
    font-size: 0.9375rem;
}

/* ==================== EMPTY STATE ==================== */
.empty-state {
    text-align: center;
    padding: 5rem 2rem;
    color: var(--slate-600);
    background: white;
    border: 1px solid var(--slate-200);
    border-top: none;
    border-radius: 0 0 12px 12px;
}

.empty-icon {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    opacity: 0.5;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

.empty-state h3 {
    font-family: 'Fraunces', Georgia, serif;
    color: var(--navy-deep);
    margin-bottom: 0.75rem;
    font-size: 1.5rem;
    font-weight: 700;
}

.empty-state p {
    margin-bottom: 2rem;
    color: var(--slate-600);
    font-size: 0.9375rem;
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 1024px) {
    .list-page {
        padding: 1.5rem 1rem;
    }

    .list-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
        padding: 1.5rem 1.75rem;
    }

    .btn-new-app {
        width: 100%;
        text-align: center;
    }
}

@media (max-width: 768px) {
    .list-title {
        font-size: 1.5rem;
    }

    .app-table {
        font-size: 0.8125rem;
    }

        .app-table th,
        .app-table td {
            padding: 0.75rem 0.875rem;
        }
}
/* ================================================
   APPLICATION DETAIL MODAL STYLES
   ================================================ */


/* Modal Overlay */
.modal-overlay-new {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 20px;
}

/* Modal Container - BIGGER SIZE */
.modal-container-new {
    background: white;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    max-width: 1400px; /* Increased from 1000px */
    width: 95%;
    max-height: 95vh;
    display: flex;
    flex-direction: column;
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Modal Header */
.modal-header-new {
    background: linear-gradient(135deg, #003c6c 0%, #1a4d7a 100%);
    color: white;
    padding: 1.75rem 2rem;
    border-radius: 12px 12px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 3px solid #d4a574;
}

.modal-title-new {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
    color: white;
}

.modal-subtitle-new {
    font-size: 0.875rem;
    opacity: 0.9;
    color: rgba(255, 255, 255, 0.9);
}

.modal-close-new {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 1.25rem;
}

    .modal-close-new:hover {
        background: rgba(255, 255, 255, 0.3);
        transform: rotate(90deg);
    }

/* Modal Body */
.modal-body-new {
    flex: 1;
    overflow-y: auto;
    padding: 2rem;
    background: #f8f9fa;
}

/* Info Cards (Top Row) */
.info-card {
    background: white;
    border-radius: 10px;
    padding: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    height: 100%;
}

    .info-card:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
    }

.info-card-icon {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    flex-shrink: 0;
}

.info-card-content {
    flex: 1;
    min-width: 0;
}

.info-card-label {
    font-size: 0.75rem;
    color: #6c757d;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.5px;
    margin-bottom: 0.25rem;
}

.info-card-value {
    font-size: 1rem;
    font-weight: 700;
    color: #212529;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.info-card-icon.bg-purple {
    background: linear-gradient(135deg, #9333ea 0%, #7c3aed 100%);
}

/* Section Cards */
.section-card {
    border: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border-radius: 10px;
    overflow: hidden;
}

.section-header-new {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    color: #003c6c;
    font-weight: 700;
    font-size: 1rem;
    padding: 1rem 1.25rem;
    border-bottom: 2px solid #dee2e6;
}

/* Detail Groups */
.detail-group {
    margin-bottom: 0;
}

.detail-label-new {
    font-size: 0.75rem;
    color: #6c757d;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.5px;
    margin-bottom: 0.375rem;
    display: block;
}

.detail-value-new {
    font-size: 0.95rem;
    color: #212529;
    font-weight: 500;
}

    .detail-value-new a {
        color: #0d6efd;
        text-decoration: none;
    }

        .detail-value-new a:hover {
            text-decoration: underline;
        }

/* Badges Grid */
.badges-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.badge-program {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
}

.badge-action {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
}

/* Notes List */
.notes-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.note-item {
    background: white;
    border: 1px solid #e9ecef;
    border-left: 4px solid #003c6c;
    border-radius: 8px;
    padding: 1rem;
    transition: box-shadow 0.2s ease;
}

    .note-item:hover {
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    }

.note-content {
    color: #212529;
    margin-bottom: 0.75rem;
    line-height: 1.6;
}

.note-metadata {
    font-size: 0.875rem;
    color: #6c757d;
    display: flex;
    align-items: center;
}

/* Modal Footer */
.modal-footer-new {
    padding: 1.25rem 2rem;
    background: white;
    border-top: 1px solid #dee2e6;
    border-radius: 0 0 12px 12px;
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
}

/* Responsive */
@media (max-width: 768px) {
    .modal-container-new {
        width: 100%;
        max-width: 100%;
        height: 100vh;
        max-height: 100vh;
        border-radius: 0;
    }

    .modal-header-new,
    .modal-footer-new {
        border-radius: 0;
    }

    .info-card {
        flex-direction: column;
        text-align: center;
    }
}
/* Action buttons container */
.action-buttons {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

/* Download PDF button */
.btn-download {
    background: #d97706 !important;
    color: white !important;
    padding: 0.35rem 0.75rem;
    border: none;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

    .btn-download:hover {
        background: white !important;
        color: #d97706 !important;
        border: 1px solid #d97706;
        transform: translateY(-1px);
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    }

    .btn-download i {
        font-size: 0.85rem;
    }
/* Language Info */
.language-info {
    font-size: 0.75rem;
    color: #64748b;
    margin-top: 0.25rem;
}

    .language-info i {
        color: #94a3b8;
    }

/* Submission Type */
.submission-type-info {
    font-size: 0.75rem;
    color: #64748b;
}

    .submission-type-info i {
        color: #94a3b8;
    }

.submission-badge {
    font-weight: 600;
    color: #475569;
}
.info-card-sublabel {
    font-size: 0.75rem;
    color: #64748b;
    font-weight: 500;
}
.search-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

    .search-section .form-label {
        color: #003c6c;
        font-size: 0.875rem;
        margin-bottom: 0.5rem;
    }

    .search-section .btn {
        padding: 0.5rem 1.5rem;
    }
/* Stage Tabs */
.stage-tabs {
    border-bottom: 2px solid #dee2e6;
    background: white;
    padding: 0 1rem;
    margin-bottom: 0;
}

    .stage-tabs .nav-item {
        margin-bottom: -2px;
    }

    .stage-tabs .nav-link {
        border: none;
        border-bottom: 3px solid transparent;
        color: #64748b;
        font-weight: 600;
        padding: 1rem 1.5rem;
        background: transparent;
        transition: all 0.3s ease;
    }

        .stage-tabs .nav-link:hover {
            color: #003c6c;
            border-bottom-color: #94a3b8;
            background: #f8f9fa;
        }

        .stage-tabs .nav-link.active {
            color: #003c6c;
            border-bottom-color: #003c6c;
            background: #f8fafc;
        }

        .stage-tabs .nav-link .badge {
            font-size: 0.75rem;
            padding: 0.25rem 0.5rem;
            font-weight: 700;
        }

        .stage-tabs .nav-link.active .badge {
            background-color: #003c6c !important;
        }

/* Status Badges */
.status-cell {
    padding: 0.25rem 0;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.375rem 0.75rem;
    border-radius: 6px;
    font-size: 0.8125rem;
    font-weight: 600;
    white-space: nowrap;
}

.status-pre-hearing {
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    color: #1e40af;
    border: 1px solid #93c5fd;
}

.status-hearing {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    color: #92400e;
    border: 1px solid #fcd34d;
}

.status-completed {
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
    color: #065f46;
    border: 1px solid #6ee7b7;
}
/* Workflow Timeline */
/* Compact Workflow */
.compact-workflow {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.5rem;
}

.workflow-stage-compact {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    background: #f8f9fa;
    flex: 1;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

    .workflow-stage-compact.active {
        background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
        border-color: #3b82f6;
        box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
    }

    .workflow-stage-compact.completed {
        background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
        border-color: #10b981;
    }

.stage-icon {
    font-size: 1.75rem;
    color: #cbd5e1;
    flex-shrink: 0;
}

.workflow-stage-compact.active .stage-icon {
    color: #3b82f6;
    animation: pulse 2s infinite;
}

.workflow-stage-compact.completed .stage-icon {
    color: #10b981;
}

.stage-info {
    flex: 1;
}

.stage-name {
    font-weight: 700;
    font-size: 0.9rem;
    color: #475569;
    margin-bottom: 0.25rem;
}

.workflow-stage-compact.active .stage-name {
    color: #1e40af;
}

.workflow-stage-compact.completed .stage-name {
    color: #065f46;
}

.current-status {
    font-size: 0.8125rem;
    color: #64748b;
    font-weight: 500;
}

.workflow-stage-compact.active .current-status {
    color: #3b82f6;
    font-weight: 600;
}

.workflow-connector {
    font-size: 1.5rem;
    color: #cbd5e1;
    font-weight: bold;
    flex-shrink: 0;
}

    .workflow-connector.completed {
        color: #10b981;
    }

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }

    50% {
        opacity: 0.6;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .compact-workflow {
        flex-direction: column;
        gap: 0.5rem;
    }

    .workflow-connector {
        transform: rotate(90deg);
    }

    .workflow-stage-compact {
        width: 100%;
    }
}
/* Breadcrumb */
.breadcrumb-section {
    background: white;
    padding: 1rem;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.breadcrumb {
    background: transparent;
    padding: 0;
    margin: 0;
}

.breadcrumb-link {
    color: #3b82f6;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

    .breadcrumb-link:hover {
        color: #1e40af;
    }

.breadcrumb-item.active {
    color: #64748b;
    font-weight: 600;
}

/* Application Detail Page */
.application-detail-page {
    padding: 1rem;
}

    .application-detail-page .page-header-section {
        background: white;
        padding: 1.5rem;
        border-radius: 8px;
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    }

    .application-detail-page .page-title {
        color: #003c6c;
        font-size: 1.75rem;
        font-weight: 700;
    }

    .application-detail-page .page-subtitle {
        color: #64748b;
        font-size: 0.95rem;
    }
/* Assigned Worker Column */
.assigned-worker-cell {
    padding: 0.25rem 0;
}

.worker-info {
    color: #1e40af;
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
}

.worker-email {
    font-size: 0.75rem;
    color: #64748b;
}
/* SignalR Reconnection Modal */
.reconnect-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.reconnect-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
}

.reconnect-content {
    position: relative;
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    text-align: center;
    max-width: 400px;
    z-index: 10000;
}

.reconnect-icon {
    margin-bottom: 1rem;
}

    .reconnect-icon .spinner-border {
        width: 3rem;
        height: 3rem;
    }

.reconnect-title {
    color: #003c6c;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.reconnect-message {
    color: #64748b;
    margin-bottom: 0;
}

.d-none {
    display: none !important;
}
/* Section Divider */
.section-divider {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 2rem 0;
}

.divider-line {
    flex: 1;
    height: 2px;
    background: linear-gradient(90deg, transparent, #cbd5e1, transparent);
}

.divider-content {
    display: flex;
    align-items: center;
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, #003c6c 0%, #115ba4 100%);
    color: white;
    border-radius: 25px;
    font-weight: 700;
    font-size: 0.95rem;
    box-shadow: 0 2px 8px rgba(0, 60, 108, 0.3);
    white-space: nowrap;
}

.divider-content i {
    font-size: 1.1rem;
}

/* Internal Staff Sections - Light Blue/Gray Background */
.card.section-card.staff-section {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    border: 1px solid #bae6fd;
}

    .card.section-card.staff-section .card-header {
        background: linear-gradient(135deg, #003c6c 0%, #115ba4 100%);
        color: white;
        border-bottom: 2px solid #0369a1;
    }

/* Public Application Sections - White Background (default) */
.card.section-card.public-section {
    background: white;
    border: 1px solid #e2e8f0;
}

.card.section-card.public-section .card-header {
    background: linear-gradient(135deg, #64748b 0%, #475569 100%);
    color: white;
    border-bottom: 2px solid #334155;
}
.supervisory-flag-cell {
    display: flex;
    justify-content: center;
    align-items: center;
}

    .supervisory-flag-cell .badge {
        font-size: 0.75rem;
        padding: 0.35rem 0.5rem;
        white-space: nowrap;
    }