/* Small additions on top of Tailwind (CDN). */
.nav-link { display:flex; align-items:center; gap:.65rem; padding:.5rem .75rem; border-radius:.5rem;
  font-size:.875rem; color:rgb(203 213 225); transition:background .15s, color .15s; }
.nav-link:hover { background:rgb(255 255 255 / .07); color:#fff; }
.nav-link.active { background:rgb(var(--brand-rgb)); color:#fff; box-shadow:0 1px 2px rgb(0 0 0 / .2); }
.nav-link svg { width:1.1rem; height:1.1rem; flex-shrink:0; opacity:.85; }
.nav-section { margin-top:1.25rem; margin-bottom:.35rem; padding:0 .75rem; font-size:.68rem; font-weight:600;
  letter-spacing:.08em; text-transform:uppercase; color:rgb(148 163 184 / .8); }

.card { background:#fff; border:1px solid rgb(226 232 240); border-radius:.9rem; box-shadow:0 1px 2px rgb(15 23 42 / .04); }
.btn { display:inline-flex; align-items:center; justify-content:center; gap:.4rem; border-radius:.55rem;
  padding:.5rem .9rem; font-size:.875rem; font-weight:600; transition:all .15s; cursor:pointer; white-space:nowrap; }
.btn-primary { background:rgb(var(--brand-rgb)); color:#fff; }
.btn-primary:hover { filter:brightness(1.08); }
.btn-secondary { background:#fff; color:rgb(51 65 85); border:1px solid rgb(203 213 225); }
.btn-secondary:hover { background:rgb(248 250 252); }
.btn-danger { background:rgb(225 29 72); color:#fff; }
.btn-danger:hover { background:rgb(190 18 60); }
.btn-sm { padding:.3rem .6rem; font-size:.78rem; }

.table-clean { width:100%; font-size:.875rem; }
.table-clean th { text-align:left; font-weight:600; color:rgb(71 85 105); background:rgb(248 250 252);
  padding:.6rem .75rem; border-bottom:1px solid rgb(226 232 240); font-size:.75rem; text-transform:uppercase; letter-spacing:.03em; }
.table-clean td { padding:.6rem .75rem; border-bottom:1px solid rgb(241 245 249); vertical-align:middle; }
.table-clean tbody tr:hover { background:rgb(248 250 252); }

/* Marks entry grid */
.mark-input { width:4.5rem; text-align:center; border:1px solid rgb(203 213 225); border-radius:.4rem;
  padding:.3rem .25rem; font-size:.875rem; font-variant-numeric:tabular-nums; }
.mark-input:focus { outline:none; border-color:rgb(var(--brand-rgb)); box-shadow:0 0 0 3px rgb(var(--brand-rgb) / .2); }
.mark-input.invalid { border-color:rgb(225 29 72); background:rgb(255 241 242); color:rgb(159 18 57); }
.mark-input.changed { background:rgb(254 249 195); }
.mark-input:disabled { background:rgb(241 245 249); color:rgb(100 116 139); }

.progress { height:.55rem; background:rgb(226 232 240); border-radius:9999px; overflow:hidden; }
.progress > div { height:100%; border-radius:9999px; transition:width .4s; }

.errorlist { color:rgb(225 29 72); font-size:.78rem; margin-top:.25rem; }
.tabular { font-variant-numeric:tabular-nums; }

@media print {
  .no-print { display:none !important; }
  body { background:#fff !important; }
}

select { padding-right: 2.25rem !important; }
