#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: 3.5rem;
        top: 0.5rem;
    }

html, body {
    min-height: 100%;
    margin: 0;
    font-family: Inter, "Segoe UI", Arial, sans-serif;
    background: #eef5f8;
}

.topbar {
    background: linear-gradient(115deg, #084783 0%, #0b6a8f 46%, #28736e 100%) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: 0 12px 34px rgba(10, 67, 111, 0.22);
}

.brand-lockup {
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand-lockup img {
    width: 42px;
    height: 42px;
    object-fit: contain;
    background: #ffffff;
    border-radius: 8px;
    padding: 4px;
    box-shadow: 0 8px 20px rgba(5, 31, 61, 0.22);
}

.brand-title {
    line-height: 1.1;
    font-weight: 800;
    letter-spacing: 0;
}

.brand-subtitle {
    color: rgba(255, 255, 255, 0.74);
}

.brand-user {
    display: block;
    color: #ffffff;
    font-weight: 800;
    line-height: 1.1;
}

.sidebar {
    background: linear-gradient(180deg, #073b70 0%, #0d596f 55%, #226d5f 100%) !important;
    border-right: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: 18px 0 40px rgba(11, 57, 85, 0.18);
}

.sidebar .mud-navmenu {
    padding: 18px 12px !important;
}

.sidebar .mud-nav-link {
    color: rgba(255, 255, 255, 0.78) !important;
    border-radius: 8px;
    margin: 4px 0;
    min-height: 46px;
    transition: background 160ms ease, color 160ms ease, transform 160ms ease;
}

.sidebar .mud-nav-link .mud-nav-link-text,
.sidebar .mud-nav-link .mud-icon-root {
    color: inherit !important;
}

.sidebar .mud-nav-link:hover {
    background: rgba(255, 255, 255, 0.12) !important;
    color: #ffffff !important;
    transform: translateX(2px);
}

.sidebar .mud-nav-link.active,
.sidebar .mud-nav-link.mud-nav-link-active {
    background:
        linear-gradient(90deg, rgba(255, 255, 255, 0.28), rgba(255, 255, 255, 0.12)),
        linear-gradient(90deg, #f3b64a, #42c2a5) !important;
    color: #ffffff !important;
    box-shadow: 0 12px 26px rgba(2, 24, 43, 0.24);
    font-weight: 800;
}

.main-content {
    min-height: 100vh;
    background:
        linear-gradient(180deg, rgba(231, 244, 247, 0.96) 0%, rgba(244, 248, 251, 0.92) 42%, #f8fbfd 100%),
        linear-gradient(115deg, rgba(11, 92, 171, 0.12), rgba(47, 111, 115, 0.10) 52%, rgba(243, 182, 74, 0.12));
}

.page-title {
    color: #152238;
    font-weight: 800;
    letter-spacing: 0;
}

.metric-card,
.form-panel,
.data-table {
    border: 1px solid rgba(158, 184, 203, 0.44);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.88);
    box-shadow: 0 14px 36px rgba(16, 57, 91, 0.08);
    backdrop-filter: blur(10px);
}

.metric-card {
    min-height: 150px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 8px;
}

.form-panel {
    padding: 24px;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(240, 248, 249, 0.92)),
        linear-gradient(90deg, rgba(11, 92, 171, 0.08), rgba(66, 194, 165, 0.08));
}

.password-page {
    max-width: 560px;
}

.password-panel {
    width: 100%;
}

.data-table {
    overflow: hidden;
}

.stats-toolbar {
    display: grid;
    grid-template-columns: repeat(4, minmax(180px, 1fr)) auto auto;
    gap: 14px;
    align-items: end;
}

.stats-toolbar-basic {
    grid-template-columns: repeat(3, minmax(180px, 1fr)) auto auto;
}

.stats-focus-toolbar {
    display: grid;
    grid-template-columns: minmax(260px, 1fr) auto;
    gap: 14px;
    align-items: end;
}

.stats-toolbar .mud-button-root {
    min-height: 56px;
}

.stats-focus-toolbar .mud-button-root {
    min-height: 56px;
}

.stats-summary-card {
    min-height: 132px;
    padding: 20px;
}

.stats-rank-card {
    height: 100%;
    padding: 20px;
}

.stats-rank-card .mud-table-root {
    background: transparent;
}

.stats-table-wrap {
    overflow-x: auto;
}

.stats-score {
    font-weight: 800;
    color: #0A4F93;
}

.stats-insight-card {
    display: grid;
    gap: 14px;
}

.stats-insight-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.stats-insight-grid div {
    min-width: 0;
    padding: 13px;
    border: 1px solid rgba(158, 184, 203, 0.44);
    border-radius: 8px;
    background: #ffffff;
}

.stats-insight-grid span,
.stats-insight-grid small,
.stats-recommendation-item span {
    display: block;
    color: #5c667a;
}

.stats-insight-grid span {
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
}

.stats-insight-grid strong {
    display: block;
    margin-top: 4px;
    color: #0A4F93;
    font-size: 20px;
    line-height: 1.2;
    overflow-wrap: anywhere;
}

.stats-recommendation-list {
    display: grid;
    gap: 10px;
}

.stats-recommendation-item {
    display: grid;
    grid-template-columns: 24px minmax(0, 1fr);
    gap: 10px;
    align-items: start;
    padding: 12px;
    border: 1px solid rgba(158, 184, 203, 0.44);
    border-radius: 8px;
    background: #ffffff;
}

.stats-recommendation-item strong,
.stats-recommendation-item span {
    display: block;
}

.stats-recommendation-item strong {
    color: #152238;
    line-height: 1.25;
}

.stats-recommendation-item.warning {
    border-color: rgba(202, 138, 4, 0.32);
    background: #fffbeb;
}

.stats-recommendation-item.danger {
    border-color: rgba(190, 44, 44, 0.30);
    background: #fff7f6;
}

.stats-recommendation-item.success {
    border-color: rgba(32, 148, 82, 0.30);
    background: #f4fbf7;
}

.stats-recommendation-item.info {
    border-color: rgba(10, 79, 147, 0.26);
    background: #f4f9fd;
}

.pdf-report {
    max-width: 1120px;
    margin: 0 auto;
    padding: 28px;
    color: #152238;
    background: #ffffff;
    border: 1px solid rgba(158, 184, 203, 0.44);
    border-radius: 8px;
}

.pdf-report-page-body {
    margin: 0;
    min-height: 100vh;
    color: #152238;
    background:
        radial-gradient(circle at 12% 10%, rgba(47, 111, 115, 0.18), transparent 28%),
        linear-gradient(135deg, #eef5f8 0%, #f8fbfd 46%, #f1f6f2 100%);
    font-family: Inter, Roboto, Arial, sans-serif;
}

.pdf-report-page-toolbar {
    position: sticky;
    top: 0;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 14px 24px;
    color: #ffffff;
    background: #0A4F93;
    box-shadow: 0 12px 30px rgba(8, 71, 131, 0.24);
}

.pdf-report-page-toolbar strong,
.pdf-report-page-toolbar span {
    display: block;
}

.pdf-report-page-toolbar span {
    margin-top: 2px;
    color: rgba(255, 255, 255, 0.76);
    font-size: 13px;
}

.pdf-report-page-actions {
    display: flex;
    gap: 10px;
}

.pdf-report-page-actions button {
    min-height: 38px;
    padding: 0 14px;
    color: #0A4F93;
    background: #ffffff;
    border: 0;
    border-radius: 6px;
    font-weight: 800;
    cursor: pointer;
}

.pdf-report-page-actions button + button {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.18);
}

.pdf-report-page-shell {
    padding: 30px 16px 42px;
}

.pdf-report-page-shell .pdf-report {
    box-shadow: 0 24px 70px rgba(21, 34, 56, 0.14);
}

.exam-report-route {
    min-height: 100vh;
    color: #152238;
    background:
        linear-gradient(180deg, rgba(10, 79, 147, 0.12), rgba(47, 111, 115, 0.06)),
        #eef4f7;
    font-family: Inter, Roboto, Arial, sans-serif;
}

.exam-report-toolbar {
    position: sticky;
    top: 0;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 14px 24px;
    color: #ffffff;
    background: linear-gradient(110deg, #084783, #0A4F93 54%, #2F6F73);
    box-shadow: 0 14px 34px rgba(8, 71, 131, 0.24);
}

.exam-report-toolbar span,
.exam-report-toolbar strong {
    display: block;
}

.exam-report-toolbar span {
    color: rgba(255, 255, 255, 0.74);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.exam-report-toolbar strong {
    margin-top: 2px;
    font-size: 18px;
}

.exam-report-actions {
    display: flex;
    gap: 10px;
}

.exam-report-actions button {
    min-height: 38px;
    padding: 0 14px;
    color: #0A4F93;
    background: #ffffff;
    border: 0;
    border-radius: 6px;
    font-weight: 800;
    cursor: pointer;
}

.exam-report-actions button + button {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.18);
}

.exam-report-a4-shell {
    padding: 28px 12px 46px;
    overflow-x: auto;
}

.exam-report-a4-shell .pdf-report {
    width: 210mm;
    min-height: 297mm;
    max-width: 210mm;
    box-sizing: border-box;
    padding: 13mm;
    border: 0;
    border-radius: 4px;
    box-shadow: 0 26px 70px rgba(21, 34, 56, 0.18);
}

.exam-report-empty {
    width: min(520px, calc(100% - 32px));
    margin: 70px auto 0;
    padding: 26px;
    text-align: center;
    background: #ffffff;
    border: 1px solid #d9e5ee;
    border-radius: 8px;
    box-shadow: 0 20px 50px rgba(21, 34, 56, 0.10);
}

.exam-report-empty strong,
.exam-report-empty span {
    display: block;
}

.exam-report-empty span {
    margin-top: 6px;
    color: #5c667a;
}

.pdf-print-source {
    position: fixed;
    top: 0;
    left: -12000px;
    width: 1120px;
    pointer-events: none;
    visibility: hidden;
}

.pdf-print-source .pdf-report {
    visibility: visible;
}

.pdf-report-header {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding: 22px;
    color: #ffffff;
    background: linear-gradient(115deg, #084783 0%, #0b6a8f 52%, #28736e 100%);
    border-radius: 8px;
}

.pdf-report-header h1 {
    margin: 4px 0;
    font-size: 30px;
    line-height: 1.15;
    letter-spacing: 0;
}

.pdf-report-header p {
    margin: 0;
    color: rgba(255, 255, 255, 0.84);
}

.pdf-report-kicker {
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.pdf-report-stamp {
    min-width: 150px;
    display: grid;
    align-content: center;
    justify-items: end;
}

.pdf-report-stamp span {
    color: rgba(255, 255, 255, 0.78);
}

.pdf-filter-grid,
.pdf-metric-grid,
.pdf-chart-grid,
.pdf-two-column {
    display: grid;
    gap: 12px;
    margin-top: 18px;
}

.pdf-filter-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.pdf-metric-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.pdf-chart-grid,
.pdf-two-column {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.pdf-filter-card,
.pdf-metric-card,
.pdf-chart-card,
.pdf-section {
    border: 1px solid #d9e5ee;
    border-radius: 8px;
    background: #fbfdff;
}

.pdf-filter-card,
.pdf-metric-card {
    padding: 14px;
}

.pdf-filter-card span,
.pdf-metric-card span {
    display: block;
    color: #5c667a;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
}

.pdf-filter-card strong,
.pdf-metric-card strong {
    display: block;
    margin-top: 5px;
    font-size: 18px;
    line-height: 1.25;
}

.pdf-metric-card strong {
    color: #0A4F93;
    font-size: 26px;
}

.pdf-metric-card small {
    color: #5c667a;
}

.pdf-chart-card,
.pdf-section {
    padding: 16px;
}

.pdf-chart-card h2,
.pdf-section h2 {
    margin: 0 0 12px;
    font-size: 18px;
    letter-spacing: 0;
}

.pdf-bar-row {
    display: grid;
    grid-template-columns: minmax(88px, 1fr) 2fr 62px;
    gap: 10px;
    align-items: center;
    margin: 9px 0;
    font-size: 12px;
}

.pdf-bar-label {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.pdf-bar-track {
    height: 9px;
    overflow: hidden;
    background: #dfeaf2;
    border-radius: 999px;
}

.pdf-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #0A4F93, #2F6F73);
    border-radius: inherit;
}

.pdf-bar-value {
    text-align: right;
    font-weight: 800;
    color: #0A4F93;
}

.pdf-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
}

.pdf-table th {
    color: #ffffff;
    background: #0A4F93;
    text-align: left;
}

.pdf-table th,
.pdf-table td {
    border: 1px solid #d9e5ee;
    padding: 7px 8px;
    vertical-align: top;
}

.pdf-pie-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.pdf-pie-card {
    display: grid;
    justify-items: center;
    gap: 7px;
    padding: 14px;
    text-align: center;
    background: #ffffff;
    border: 1px solid #d9e5ee;
    border-radius: 8px;
}

.pdf-pie {
    width: 96px;
    height: 96px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    box-shadow: inset 0 0 0 1px rgba(10, 79, 147, 0.08);
}

.pdf-pie span {
    width: 64px;
    height: 64px;
    display: grid;
    place-items: center;
    color: #0A4F93;
    background: #ffffff;
    border-radius: 50%;
    font-size: 15px;
    font-weight: 900;
}

.pdf-pie-card strong,
.pdf-pie-card small {
    display: block;
}

.pdf-pie-card small {
    color: #5c667a;
}

.pdf-pie-card.danger .pdf-pie {
    filter: hue-rotate(142deg) saturate(0.95);
}

.pdf-pie-card.accent .pdf-pie {
    filter: hue-rotate(62deg) saturate(0.9);
}

.pdf-rank-section.good {
    background: #f4fbf7;
}

.pdf-rank-section.bad {
    background: #fff7f6;
}

.pdf-recommendation-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.pdf-recommendation-card {
    min-width: 0;
    padding: 11px 12px;
    border: 1px solid #d9e5ee;
    border-radius: 8px;
    background: #ffffff;
}

.pdf-recommendation-card strong,
.pdf-recommendation-card span {
    display: block;
}

.pdf-recommendation-card strong {
    margin-bottom: 4px;
    color: #152238;
}

.pdf-recommendation-card span {
    color: #5c667a;
    font-size: 12px;
    line-height: 1.35;
}

.pdf-recommendation-card.warning {
    background: #fffbeb;
}

.pdf-recommendation-card.danger {
    background: #fff7f6;
}

.pdf-recommendation-card.success {
    background: #f4fbf7;
}

.pdf-recommendation-card.info {
    background: #f4f9fd;
}

@media print {
    @page {
        size: A4;
        margin: 8mm;
    }

    body {
        background: #ffffff !important;
    }

    .pdf-report-page-toolbar,
    .exam-report-toolbar {
        display: none !important;
    }

    .pdf-report-page-shell,
    .exam-report-a4-shell {
        padding: 0 !important;
        overflow: visible !important;
    }

    .pdf-report {
        max-width: none;
        padding: 0;
        border: 0;
        border-radius: 0;
    }

    .exam-report-a4-shell .pdf-report {
        width: auto;
        min-height: auto;
        max-width: none;
        padding: 0;
        box-shadow: none;
    }

    .pdf-report-header,
    .pdf-filter-card,
    .pdf-metric-card,
    .pdf-pie-card,
    .pdf-chart-card,
    .pdf-section {
        break-inside: avoid;
    }
}

@media (max-width: 1180px) {
    .stats-toolbar {
        grid-template-columns: repeat(2, minmax(180px, 1fr));
    }

    .stats-toolbar-basic,
    .stats-focus-toolbar {
        grid-template-columns: repeat(2, minmax(180px, 1fr));
    }
}

@media (max-width: 720px) {
    .stats-toolbar,
    .stats-toolbar-basic,
    .stats-focus-toolbar {
        grid-template-columns: 1fr;
    }

    .pdf-filter-grid,
    .pdf-metric-grid,
    .pdf-chart-grid,
    .pdf-two-column,
    .pdf-pie-grid,
    .exam-report-toolbar {
        grid-template-columns: 1fr;
    }

    .exam-report-toolbar {
        align-items: stretch;
    }

    .exam-report-actions {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }

    .pdf-report-header {
        display: block;
    }
}

.roll-actions {
    display: grid;
    align-items: center;
    grid-template-columns: 1fr;
    gap: 10px;
}

.roll-actions .mud-button-root {
    width: 100%;
}

.roll-compact-select {
    min-width: 132px;
}

.roll-grid .mud-table-toolbar {
    min-height: 72px;
    gap: 16px;
    background: linear-gradient(90deg, rgba(8, 71, 131, 0.08), rgba(66, 194, 165, 0.08));
    border-bottom: 1px solid rgba(158, 184, 203, 0.32);
}

.roll-grid-search {
    width: min(340px, 100%);
}

.roll-detail-column {
    width: 112px;
}

.roll-row-detail-button {
    min-width: 92px !important;
    opacity: 0;
    transform: translateY(2px);
    transition: opacity 140ms ease, transform 140ms ease;
}

.roll-grid .mud-table-row:hover .roll-row-detail-button,
.roll-grid .mud-table-row:focus-within .roll-row-detail-button {
    opacity: 1;
    transform: translateY(0);
}

.candidate-modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 1400;
    display: grid;
    place-items: center;
    padding: 24px;
    background: rgba(4, 20, 38, 0.56);
    backdrop-filter: blur(8px);
}

.candidate-modal {
    width: min(1180px, 100%);
    max-height: min(92vh, 920px);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.56);
    border-radius: 8px;
    background: #f8fbfd;
    box-shadow: 0 30px 90px rgba(3, 20, 38, 0.34);
}

.candidate-modal-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    padding: 22px 24px;
    color: #ffffff;
    background: linear-gradient(115deg, #084783 0%, #0b6a8f 48%, #28736e 100%);
}

.candidate-modal-header h2 {
    margin: 2px 0;
    font-size: 28px;
    line-height: 1.15;
    letter-spacing: 0;
}

.candidate-modal-header p,
.candidate-modal-kicker {
    margin: 0;
    color: rgba(255, 255, 255, 0.78);
}

.candidate-modal-kicker {
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
}

.candidate-header-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.candidate-header-meta span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.76);
    background: rgba(255, 255, 255, 0.13);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
}

.candidate-header-meta strong {
    color: #ffffff;
    font-size: 14px;
}

.candidate-modal-close {
    color: #ffffff !important;
    background: rgba(255, 255, 255, 0.16) !important;
}

.candidate-modal-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.candidate-print-button {
    color: #152238 !important;
    font-weight: 800 !important;
}

.candidate-modal-body {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 150px;
    gap: 16px;
    max-height: calc(min(92vh, 920px) - 100px);
    overflow: auto;
    padding: 22px;
}

.candidate-photo-panel {
    position: sticky;
    top: 0;
    align-self: start;
    display: grid;
    justify-items: end;
}

.candidate-photo-panel img,
.candidate-photo-empty {
    width: 150px;
    aspect-ratio: 3 / 4;
    border: 1px solid rgba(158, 184, 203, 0.58);
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 14px 34px rgba(16, 57, 91, 0.12);
}

.candidate-photo-panel img {
    object-fit: cover;
}

.candidate-photo-empty {
    display: grid;
    place-items: center;
    align-content: center;
    gap: 8px;
    color: #687789;
}

.candidate-roll-badge {
    padding: 14px;
    border-radius: 8px;
    background: #ffffff;
    border: 1px solid rgba(158, 184, 203, 0.48);
    box-shadow: 0 12px 28px rgba(16, 57, 91, 0.08);
}

.candidate-roll-badge span,
.candidate-detail-item span,
.candidate-remarks-card span {
    display: block;
    color: #687789;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
}

.candidate-roll-badge strong {
    display: block;
    margin-top: 2px;
    color: #0a4f93;
    font-size: 28px;
    line-height: 1;
}

.candidate-detail-content {
    display: grid;
    gap: 16px;
    min-width: 0;
}

.candidate-summary-grid,
.candidate-mini-grid {
    display: grid;
    gap: 10px;
}

.candidate-summary-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.candidate-mini-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.candidate-detail-item {
    min-width: 0;
    padding: 11px 12px;
    border: 1px solid rgba(158, 184, 203, 0.44);
    border-radius: 8px;
    background: #ffffff;
}

.candidate-detail-item-wide {
    grid-column: span 2;
}

.candidate-detail-item strong {
    display: block;
    margin-top: 4px;
    color: #152238;
    font-size: 14px;
    line-height: 1.35;
    overflow-wrap: anywhere;
}

.candidate-section-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.candidate-info-card,
.candidate-remarks-card {
    border: 1px solid rgba(158, 184, 203, 0.44);
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 12px 28px rgba(16, 57, 91, 0.07);
}

.candidate-info-card {
    overflow: hidden;
}

.candidate-card-title {
    padding: 13px 14px;
    color: #152238;
    font-weight: 800;
    background: linear-gradient(90deg, rgba(8, 71, 131, 0.09), rgba(66, 194, 165, 0.09));
    border-bottom: 1px solid rgba(158, 184, 203, 0.32);
}

.candidate-subject-list {
    display: grid;
}

.candidate-subject-row {
    display: grid;
    grid-template-columns: 26px minmax(0, 1fr) auto;
    gap: 10px;
    align-items: center;
    padding: 10px 14px;
    border-bottom: 1px solid rgba(158, 184, 203, 0.20);
}

.candidate-subject-row:last-child {
    border-bottom: 0;
}

.candidate-subject-row span {
    display: grid;
    place-items: center;
    width: 24px;
    height: 24px;
    border-radius: 8px;
    color: #0a4f93;
    background: rgba(8, 71, 131, 0.10);
    font-size: 12px;
    font-weight: 800;
}

.candidate-subject-row strong,
.candidate-subject-row small {
    display: block;
    overflow-wrap: anywhere;
}

.candidate-subject-row strong {
    color: #152238;
    font-size: 13px;
    line-height: 1.25;
}

.candidate-subject-row small {
    color: #687789;
}

.candidate-subject-row b {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-width: 82px;
    padding: 6px 8px;
    border-radius: 8px;
    color: #176b3a;
    background: rgba(32, 148, 82, 0.14);
    border: 1px solid rgba(32, 148, 82, 0.24);
    font-size: 15px;
    line-height: 1.1;
    text-align: center;
}

.candidate-subject-row-failed b {
    color: #a11818;
    background: rgba(190, 44, 44, 0.14);
    border-color: rgba(190, 44, 44, 0.28);
}

.candidate-subject-row b em,
.candidate-subject-row b i {
    font-style: normal;
}

.candidate-subject-row b i {
    color: inherit;
    font-size: 13px;
    font-weight: 800;
    opacity: 0.82;
}

.candidate-empty-line {
    padding: 18px 14px;
    color: #687789;
}

.candidate-remarks-card {
    padding: 14px;
}

.candidate-remarks-card p {
    margin: 6px 0 0;
    color: #152238;
    line-height: 1.5;
    overflow-wrap: anywhere;
}

@media (max-width: 1120px) {
    .candidate-summary-grid,
    .candidate-section-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    .candidate-modal-backdrop {
        padding: 10px;
    }

    .candidate-modal-body {
        grid-template-columns: 1fr;
    }

    .candidate-photo-panel {
        position: static;
        justify-items: start;
        order: -1;
    }

    .candidate-photo-panel img,
    .candidate-photo-empty {
        width: 112px;
    }

    .candidate-summary-grid,
    .candidate-section-grid,
    .candidate-mini-grid {
        grid-template-columns: 1fr;
    }

    .candidate-detail-item-wide {
        grid-column: auto;
    }
}

@page {
    size: A4;
    margin: 10mm;
}

@media print {
    @page {
        size: A4 portrait;
        margin: 8mm;
    }

    body * {
        visibility: hidden !important;
    }

    .candidate-modal-backdrop,
    .candidate-modal-backdrop * {
        visibility: visible !important;
    }

    html,
    body {
        width: 210mm;
        min-height: 297mm;
        background: #ffffff !important;
        color: #152238 !important;
    }

    .candidate-modal-backdrop {
        position: static;
        display: block;
        padding: 0;
        background: #ffffff;
        backdrop-filter: none;
    }

    .candidate-modal {
        width: 100%;
        max-height: none;
        overflow: visible;
        border: 1px solid #7f9bb2;
        border-radius: 0;
        box-shadow: none;
        background: #ffffff;
    }

    .candidate-modal-header {
        padding: 10px 12px;
        background: #0a4f93 !important;
        print-color-adjust: exact;
        -webkit-print-color-adjust: exact;
    }

    .candidate-modal-header h2 {
        font-size: 18px;
        line-height: 1.1;
    }

    .candidate-header-meta {
        gap: 6px;
        margin-top: 7px;
    }

    .candidate-header-meta span {
        padding: 4px 7px;
        border-color: rgba(255, 255, 255, 0.34);
        font-size: 9px;
        print-color-adjust: exact;
        -webkit-print-color-adjust: exact;
    }

    .candidate-header-meta strong {
        font-size: 11px;
    }

    .candidate-modal-actions {
        display: none !important;
    }

    .candidate-modal-body {
        grid-template-columns: minmax(0, 1fr) 92px;
        gap: 8px;
        max-height: none;
        overflow: visible;
        padding: 8px;
    }

    .candidate-photo-panel {
        position: static;
        justify-items: end;
    }

    .candidate-photo-panel img,
    .candidate-photo-empty {
        width: 88px;
        box-shadow: none;
    }

    .candidate-info-card,
    .candidate-remarks-card,
    .candidate-detail-item {
        box-shadow: none;
        break-inside: avoid;
    }

    .candidate-detail-content {
        gap: 7px;
    }

    .candidate-summary-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 5px;
    }

    .candidate-detail-item {
        padding: 5px 6px;
    }

    .candidate-detail-item span,
    .candidate-remarks-card span {
        font-size: 8px;
    }

    .candidate-detail-item strong,
    .candidate-subject-row strong {
        font-size: 9px;
    }

    .candidate-section-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 6px;
    }

    .candidate-card-title {
        padding: 5px 6px;
        font-size: 9px;
    }

    .candidate-subject-row {
        grid-template-columns: 18px minmax(0, 1fr) auto;
        gap: 5px;
        padding: 4px 6px;
    }

    .candidate-subject-row span {
        width: 16px;
        height: 16px;
        border-radius: 5px;
        font-size: 8px;
    }

    .candidate-subject-row b {
        min-width: 58px;
        padding: 4px 5px;
        gap: 4px;
        font-size: 9px;
        print-color-adjust: exact;
        -webkit-print-color-adjust: exact;
    }

    .candidate-subject-row b i {
        font-size: 8px;
    }

    .candidate-remarks-card {
        padding: 6px;
    }

    .candidate-remarks-card p {
        font-size: 9px;
        line-height: 1.25;
    }

    .candidate-info-card,
    .candidate-remarks-card,
    .candidate-detail-item {
        border-color: #9eb8cb;
    }
}

.login-body {
    min-height: 100vh;
    background:
        linear-gradient(135deg, rgba(10, 79, 147, 0.95), rgba(47, 111, 115, 0.92)),
        url("/images/logo.png") center 12% / 220px no-repeat;
}

.login-shell {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 24px;
}

.login-panel {
    width: min(440px, 100%);
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(255, 255, 255, 0.64);
    border-radius: 8px;
    box-shadow: 0 24px 70px rgba(5, 31, 61, 0.28);
    padding: 32px;
}

.login-brand {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 28px;
}

.login-brand img {
    width: 70px;
    height: 70px;
    object-fit: contain;
}

.login-brand h1 {
    margin: 0;
    color: #0a4f93;
    font-size: 30px;
    letter-spacing: 0;
}

.login-brand p,
.login-note {
    margin: 4px 0 0;
    color: #5c667a;
}

.login-form {
    display: grid;
    gap: 10px;
}

.login-form label {
    color: #152238;
    font-weight: 700;
    font-size: 14px;
}

.login-form input {
    height: 48px;
    border: 1px solid #c9d6e4;
    border-radius: 8px;
    padding: 0 14px;
    font: inherit;
    outline: none;
}

.login-form input:focus {
    border-color: #0b5cab;
    box-shadow: 0 0 0 3px rgba(11, 92, 171, 0.14);
}

.login-form span {
    min-height: 18px;
    color: #b3261e;
    font-size: 13px;
}

.login-check {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    color: #152238;
}

.login-check input {
    width: 18px;
    height: 18px;
    padding: 0;
}

.login-check span {
    min-height: 0;
    color: inherit;
    font-size: 14px;
}

.login-form button {
    height: 48px;
    margin-top: 8px;
    border: 0;
    border-radius: 8px;
    background: #0b5cab;
    color: #ffffff;
    font-weight: 800;
    cursor: pointer;
}

.login-error {
    padding: 12px;
    border-radius: 8px;
    background: #fdecec;
    color: #9f1d18;
    font-weight: 700;
}

.login-note {
    margin-top: 20px;
    font-size: 13px;
}

@media print {
    body:has(.exam-report-route) * {
        visibility: visible !important;
    }

    body:has(.exam-report-route) .exam-report-toolbar {
        display: none !important;
    }

    body:has(.exam-report-route) .exam-report-route {
        min-height: auto !important;
        background: #ffffff !important;
    }

    body:has(.exam-report-route) .exam-report-a4-shell {
        padding: 0 !important;
        overflow: visible !important;
    }

    body:has(.exam-report-route) .exam-report-a4-shell .pdf-report {
        width: auto !important;
        min-height: auto !important;
        max-width: none !important;
        margin: 0 !important;
        padding: 0 !important;
        border: 0 !important;
        border-radius: 0 !important;
        box-shadow: none !important;
    }
}

.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."
    }
