:root {
    --rail-blue: #12355b;
    --rail-blue-light: #1f5a8a;
    --line: #d7dde5;
    --soft: #f4f7fb;
    --text: #1f2933;
    --muted: #607080;
    --success: #176b45;
    --error: #a12020;
    --gold: #8a6500;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    background: var(--soft);
    color: var(--text);
}

.topbar {
    background: var(--rail-blue);
    color: white;
    padding: 18px 32px;
    display: flex;
    justify-content: space-between;
    gap: 20px;
    align-items: center;
}

.topbar h1 {
    margin: 0;
    font-size: 28px;
}

.topbar p {
    margin: 4px 0 0;
    color: #dbe7f2;
}

.topbar nav {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.topbar a {
    color: white;
    text-decoration: none;
    font-weight: bold;
}

.container {
    max-width: 1180px;
    margin: 0 auto;
    padding: 28px;
}

.page-heading,
.login-panel,
.form-card,
.report,
.notes {
    background: white;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 22px;
    margin-bottom: 20px;
}

.page-heading h2,
.login-panel h2 {
    margin-top: 0;
}

.muted {
    color: var(--muted);
}

label {
    display: block;
    font-weight: bold;
    margin-top: 14px;
    margin-bottom: 6px;
}

input,
select,
textarea {
    width: 100%;
    border: 1px solid #b7c1cc;
    border-radius: 6px;
    padding: 10px;
    font: inherit;
    background: white;
}

button,
.secondary-button {
    display: inline-block;
    border: 0;
    border-radius: 6px;
    background: var(--rail-blue-light);
    color: white;
    padding: 10px 16px;
    margin-top: 16px;
    font-weight: bold;
    text-decoration: none;
    cursor: pointer;
}

.secondary-button {
    background: #52606d;
}

.alert {
    border-radius: 6px;
    padding: 12px 14px;
    margin-bottom: 18px;
    font-weight: bold;
}

.success {
    background: #e3f6ed;
    color: var(--success);
}

.error {
    background: #fde7e7;
    color: var(--error);
}

.stats-grid,
.action-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
    margin-bottom: 20px;
}

.stats-grid {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}
.stat-card,
.action-card {
    background: white;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 20px;
}

.stat-card span {
    display: block;
    font-size: 34px;
    font-weight: bold;
    color: var(--rail-blue);
}

.action-card {
    color: var(--rail-blue);
    font-weight: bold;
    text-decoration: none;
}

.table-wrap {
    overflow-x: auto;
    background: white;
    border: 1px solid var(--line);
    border-radius: 8px;
}

table {
    border-collapse: collapse;
    width: 100%;
    min-width: 860px;
}

th,
td {
    border-bottom: 1px solid var(--line);
    padding: 12px;
    text-align: left;
    vertical-align: top;
}

th {
    background: #eaf0f7;
}

.badge {
    display: inline-block;
    border-radius: 999px;
    padding: 4px 9px;
    font-size: 12px;
    font-weight: bold;
    background: #e5e7eb;
}

.badge.high {
    background: #ffe0b2;
}

.badge.critical {
    background: #f8c7c7;
}

.badge.low,
.badge.passed {
    background: #dff3e8;
    color: #176b45;
}

.small-note {
    font-size: 13px;
}

.login-panel a {
    color: var(--rail-blue-light);
    font-weight: bold;
}

.filter-bar {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
    align-items: end;
    background: white;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 20px;
}

.note,
.handoff-item {
    border-left: 4px solid var(--rail-blue-light);
    padding: 12px 16px;
    background: #f8fafc;
    margin-top: 12px;
}

.note span {
    display: block;
    color: var(--muted);
    font-size: 13px;
    margin-top: 2px;
}

.test-accounts {
    margin-top: 18px;
    background: #eef4fb;
    padding: 12px;
    border-radius: 6px;
}

.test-accounts p {
    margin: 6px 0;
}

.footer {
    text-align: center;
    color: var(--muted);
    padding: 18px;
}

@media print {
    .topbar,
    .filter-bar,
    .footer {
        display: none;
    }

    body {
        background: white;
    }

    .container {
        padding: 0;
    }
}
.academic-label {
    margin-top: 6px;
    font-size: 0.9rem;
    font-weight: 600;
    opacity: 0.9;
}
.welcome-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-top: 12px;
}

.welcome-name {
    margin: 0;
    font-size: 1.15rem;
    font-weight: 700;
    color: #173e67;
}

.welcome-subtitle {
    margin: 5px 0 0;
    color: #5b6b7c;
    font-size: 0.95rem;
}

.role-badge {
    display: inline-block;
    padding: 7px 14px;
    border-radius: 20px;
    background: #e7f0fa;
    color: #173e67;
    font-size: 0.85rem;
    font-weight: 700;
    white-space: nowrap;
}
.section-title {
    margin: 24px 0 12px;
    font-size: 1.1rem;
    color: #173e67;
}