/* Instructor gradebook (2026-10-18), same look as the portal (app.css / features.css variables). */
.gb-h { margin: 0; font-size: 1.35rem; }
.gb-top { align-items: flex-start; }
.gb-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.gb-summary { display: flex; gap: 10px; flex-wrap: wrap; align-items: stretch; margin: 0 0 12px; }
.gb-stat { background: #fff; border: 1px solid #eceff6; border-radius: 14px; padding: 8px 14px; display: flex; flex-direction: column; min-width: 120px; }
.gb-stat b { font-size: 1.25rem; color: var(--blue); }
.gb-stat.gb-wide { flex: 1; min-width: 260px; justify-content: center; }
.gb-saved { align-self: center; margin-left: auto; }
.gb-legend { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; margin: 0 0 8px; }
.gb-legend span { display: inline-flex; align-items: center; gap: 6px; }
.gb-dot { display: inline-block; width: 10px; height: 10px; border-radius: 3px; vertical-align: middle; }
.gb-dot.lola { background: var(--blue-tint-2); border: 1.5px solid var(--blue); }
.gb-dot.me { background: #fff; border: 1.5px solid var(--charcoal); }
.gb-dot.miss { background: #fff1d6; border: 1.5px solid var(--amber); }
.gb-dot.low { background: #fde4e2; border: 1.5px solid var(--red); }
.gb-card { padding: 0; overflow: hidden; }
.gb-card > p { padding: 0 16px; }
.gb-scroll { overflow: auto; max-height: 72vh; }
.gb-sheet { border-collapse: separate; border-spacing: 0; font-size: .86rem; min-width: 100%; }
.gb-sheet th, .gb-sheet td { border-bottom: 1px solid #eef0f5; border-right: 1px solid #f3f4f8; padding: 4px 6px; text-align: center; white-space: nowrap; }
.gb-sheet thead th { position: sticky; top: 0; background: #fff; z-index: 2; font-weight: 700; }
.gb-sheet thead tr:nth-child(2) th { top: 34px; }
.gb-sheet .gb-name { position: sticky; left: 0; background: #fff; z-index: 1; text-align: left; min-width: 130px; font-weight: 600; border-right: 2px solid #e6e9f2; }
.gb-sheet thead .gb-name { z-index: 3; }
.gb-cat { color: #fff; border-radius: 0; height: 34px; }
.gb-cat.gb-c-homework { background: var(--blue) !important; } .gb-cat.gb-c-exam { background: var(--red) !important; }
.gb-cat.gb-c-project { background: var(--teal) !important; } .gb-cat.gb-c-participation { background: #7a55c4 !important; }
.gb-add { background: rgba(255,255,255,.22); border: 0; color: #fff; border-radius: 8px; width: 24px; height: 22px; padding: 0; cursor: pointer; vertical-align: middle; margin-left: 4px; }
.gb-add:hover { background: rgba(255,255,255,.4); }
.gb-add .ic { width: 14px; height: 14px; }
.gb-sub { display: block; font-size: .72rem; color: var(--muted); font-weight: 600; }
.gb-calc { background: #f5f7fc !important; font-weight: 700; color: #13204a; min-width: 76px; }
.gb-calc.low, .gb-final.low { color: var(--red-dark); background: #fdf0ef !important; }
.gb-final { background: #eef2fa !important; font-weight: 700; min-width: 64px; color: var(--blue-dark); }
.gb-colbtn { background: none; border: 0; padding: 2px 4px; border-radius: 8px; cursor: pointer; font: inherit; font-weight: 700; color: var(--charcoal); }
.gb-colbtn:hover, .gb-colbtn:focus-visible { background: var(--blue-tint); }
.gb-colbtn .gb-ct { display: block; max-width: 110px; overflow: hidden; text-overflow: ellipsis; }
.gb-td { padding: 2px 3px !important; }
.gb-in { width: 58px; padding: 4px 6px; border-radius: 8px; border: 1.5px solid transparent; text-align: center; font-weight: 600; background: transparent; }
.gb-in:hover { border-color: var(--line); }
.gb-in:focus { border-color: var(--blue); background: #fff; }
.gb-in.lola { background: var(--blue-tint); color: var(--blue-dark); }
.gb-in.me { color: var(--charcoal); }
.gb-in.miss { background: #fff6e3; border-color: #f5d79a; }
.gb-in.low { background: #fde9e7; color: var(--red-dark); }
.gb-in.ex { color: var(--muted); font-style: italic; }
.gb-in.saving { opacity: .6; }
.gb-in.bad { border-color: var(--red); }
.gb-sheet tbody tr:hover th, .gb-sheet tbody tr:hover td { background-color: #fbfcff; }
.gb-sheet tfoot th, .gb-sheet tfoot td { background: #fafbfe; font-weight: 700; color: var(--muted); border-top: 2px solid #e6e9f2; }
.gb-settings { margin-bottom: 12px; }
.gb-weights { display: flex; gap: 16px; flex-wrap: wrap; align-items: flex-end; }
.gb-weights label { display: flex; flex-direction: column; font-weight: 600; font-size: .9rem; }
.gb-weights.off { opacity: .45; }
.gb-mrow { gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.gb-del { color: var(--red-dark) !important; }
@media (max-width: 700px) { .gb-stat { min-width: 0; flex: 1; } .gb-in { width: 50px; } }
.gb-sheet th { text-transform: none; letter-spacing: 0; font-size: .8rem; }
.gb-sheet tbody .gb-name { font-size: .86rem; color: #13204a; }
.gb-cat { text-transform: uppercase !important; letter-spacing: .04em !important; }
.gb-colbtn { font-size: .78rem; padding: 2px; }
.gb-colbtn .gb-ct { max-width: 84px; }
.gb-in { width: 50px; padding: 3px 4px; }
.gb-calc { min-width: 68px; }
.gb-wtxt { font-weight: 700; color: var(--blue-dark); }
