/* Gradebook grid styles — kept separate from admin.css since they're
   only used on the /gradebook surface. */

.gradebook-wrap {
    overflow-x: auto;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: var(--surface);
}

.gradebook-grid {
    border-collapse: collapse;
    font-size: 13px;
    min-width: 100%;
}

.gradebook-grid thead th {
    position: sticky;
    top: 0;
    background: var(--surface-2);
    padding: 10px 12px;
    text-align: center;
    font-weight: 600;
    font-size: 12px;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border);
    white-space: nowrap;
}

.gradebook-grid thead th.col-student {
    text-align: left;
    min-width: 220px;
    position: sticky;
    left: 0;
    z-index: 3;
    background: var(--surface-2);
}

.gradebook-grid thead th.col-passing {
    font-weight: 400;
    font-size: 11px;
    color: var(--text-tertiary);
    text-transform: none;
    padding-top: 0;
}

.gradebook-grid tbody td {
    padding: 8px 10px;
    border-bottom: 1px solid var(--border);
    text-align: center;
    white-space: nowrap;
}

.gradebook-grid tbody td.cell-student {
    text-align: left;
    position: sticky;
    left: 0;
    background: var(--surface);
    border-right: 1px solid var(--border);
    z-index: 1;
}

.gradebook-grid tbody tr:hover td.cell-student {
    background: var(--surface-2);
}

.gradebook-grid tbody td.cell-student a {
    color: var(--text);
    font-weight: 500;
    text-decoration: none;
}
.gradebook-grid tbody td.cell-student a:hover { color: var(--accent-hover); }
.gradebook-grid tbody td.cell-student .student-meta {
    display: block;
    font-size: 11px;
    color: var(--text-tertiary);
}

.gradebook-cell {
    display: inline-block;
    min-width: 56px;
    padding: 4px 8px;
    border-radius: 4px;
    font-weight: 500;
    font-size: 13px;
    line-height: 1.2;
    color: var(--text);
    text-decoration: none;
}
.gradebook-cell:hover { text-decoration: none; filter: brightness(0.95); }

.gradebook-cell.none {
    color: var(--text-tertiary);
    background: transparent;
}
.gradebook-cell.passed {
    background: var(--accent-light);
    color: var(--accent);
}
.gradebook-cell.failed {
    background: var(--critical-light);
    color: var(--critical);
}
.gradebook-cell.pending {
    background: var(--unsure-light);
    color: var(--unsure);
}
.gradebook-cell.inprogress {
    background: var(--info-light);
    color: var(--info);
    font-size: 11px;
}

.gradebook-cell .attempt-count {
    font-size: 10px;
    color: inherit;
    opacity: 0.7;
    margin-left: 4px;
}
