.exam-page { max-width: 920px; }
.exam-review-page { max-width: 1500px; }
.exam-review-page #login-panel { max-width: 480px; }
.exam-page [hidden] { display: none; }
.exam-page header { align-items: center; }
.exam-page .brand-logo { max-height: 48px; max-width: 105px; }
.exam-page a { color: var(--primary-dark); }
.exam-page .card { margin-bottom: 0; }
.exam-page [role="status"]:not(:empty) { margin-block: 12px; }
.exam-toolbar, .exam-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}
.exam-toolbar > label { min-width: min(100%, 16rem); }
.exam-form { display: grid; gap: 12px; }
#older-changes { margin-top: 16px; }
.exam-form label, .exam-toolbar label { display: block; font-weight: 600; }
.exam-form input, .exam-toolbar select, .exam-table input, .exam-table select, .exam-table textarea {
    display: block;
    width: 100%;
    margin-top: 4px;
    padding: 8px;
    border: 1px solid #94a3b8;
    border-radius: 6px;
    background: white;
    color: var(--text-dark);
    font: inherit;
}
.exam-form .btn { justify-self: start; }
.exam-error { color: #b91c1c; }
.exam-error:empty { display: none; }
.exam-change-comment { white-space: pre-wrap; overflow-wrap: anywhere; }
.exam-grid {
    margin-top: 16px;
    overflow-x: auto;
    background: white;
    border: 1px solid var(--border);
    border-radius: 8px;
}
.exam-table {
    width: 100%;
    min-width: 1120px;
    border-collapse: collapse;
    font-size: .9rem;
}
.exam-table th, .exam-table td {
    padding: 9px 8px;
    text-align: left;
    vertical-align: top;
    border-bottom: 1px solid var(--border);
}
.exam-table thead th {
    background: #eff6ff;
    color: #1e3a8a;
    white-space: nowrap;
}
.exam-table tbody tr:nth-child(even) { background: #f8fafc; }
.exam-table tbody tr.exam-row-dirty { background: #fff7df; }
.exam-table tbody tr:last-child > * { border-bottom: 0; }
#exam-panel td:first-child { min-width: 210px; }
#exam-panel td:nth-child(2) { width: 108px; }
#exam-panel td:nth-child(3) { width: 110px; }
#exam-panel td:nth-child(4), #exam-panel td:nth-child(5) { width: 96px; }
#exam-panel td:nth-child(6) { width: 156px; }
#exam-panel td:nth-child(7) { width: 118px; }
#exam-panel td:nth-child(8) { width: 180px; }
#exam-panel td:last-child { width: 124px; }
.exam-history-table { min-width: 1020px; table-layout: fixed; }
.exam-history-table th, .exam-history-table td { overflow-wrap: anywhere; }
.exam-history-table th:nth-child(1) { width: 19%; }
.exam-history-table th:nth-child(2) { width: 11%; }
.exam-history-table th:nth-child(3) { width: 12%; }
.exam-history-table th:nth-child(4) { width: 10%; }
.exam-history-table th:nth-child(5), .exam-history-table th:nth-child(6) { width: 15%; }
.exam-history-table th:nth-child(7) { width: 18%; }
.exam-history-table .subtitle { font-size: .85rem; font-weight: normal; }
.exam-history-table p + p { margin-top: 4px; }
.exam-table input, .exam-table select, .exam-table textarea { margin: 0; padding: 6px; }
.exam-table textarea { resize: vertical; }
.exam-table .btn { padding: 6px 12px; }
.exam-table .exam-row-status, .exam-table .exam-previous-status {
    display: block;
    margin: 4px 0 0;
    font-size: .8rem;
    line-height: 1.35;
    overflow-wrap: anywhere;
}
.exam-table .exam-row-status:empty { display: none; }
.exam-table .exam-comment-empty { display: inline-block; padding: 6px; }
.exam-table [hidden] { display: none; }
.exam-cancel {
    margin-top: 4px;
    border: 0;
    background: transparent;
    color: var(--primary-dark);
    text-decoration: underline;
    cursor: pointer;
}
