/* Weekly teaching & learning schedule (templates/timetable/_weekly.html). */
.wtt { --wtt-row: 2.25rem; --wtt-line: #e5e1dc; --wtt-head: #f6f3ef; }
.wtt-filters { display: flex; flex-wrap: wrap; gap: .75rem; align-items: flex-end; margin-bottom: 1.25rem; }
.wtt-field { display: flex; flex-direction: column; gap: .25rem; flex: 1 1 14rem; max-width: 24rem; font-size: .8rem; font-weight: 600; }
.wtt-title { font-size: 1.15rem; font-weight: 700; letter-spacing: .02em; margin: .5rem 0 .25rem; }
.wtt-sub { color: #6b6460; font-size: .85rem; margin-bottom: 1rem; }
.wtt-empty { text-align: center; padding: 2.5rem 1rem; color: #6b6460; border: 1px dashed var(--wtt-line); border-radius: .75rem; }
.wtt-empty i { font-size: 2rem; margin-bottom: .5rem; }
.wtt-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--wtt-line); border-radius: .75rem; }
.wtt-grid {
  display: grid; min-width: calc(5.5rem + var(--wtt-days) * 11rem);
  grid-template-columns: 5.5rem repeat(var(--wtt-days), minmax(11rem, 1fr));
  grid-template-rows: auto repeat(var(--wtt-rows), minmax(var(--wtt-row), auto));
}
.wtt-head { background: var(--wtt-head); font-weight: 700; text-align: center; padding: .6rem .4rem; border-bottom: 1px solid var(--wtt-line); position: sticky; top: 0; z-index: 2; }
.wtt-time { font-size: .75rem; color: #6b6460; padding: 0 .4rem; transform: translateY(-.5em); text-align: right; }
.wtt-cell { border-left: 1px solid var(--wtt-line); }
.wtt-cell.is-hour { border-top: 1px solid var(--wtt-line); }
.wtt-block {
  width: calc(100% / var(--lanes, 1) - 4px);
  margin-left: calc(100% * var(--lane, 0) / var(--lanes, 1) + 2px);
  margin-top: 2px; margin-bottom: 2px; z-index: 1;
  color: #fff; border-radius: .5rem; padding: .45rem .55rem; font-size: .78rem; line-height: 1.3;
  overflow: hidden; box-shadow: 0 1px 2px rgba(0,0,0,.18);
}
.wtt-who { display: flex; align-items: center; gap: .4rem; margin-bottom: .3rem; }
.wtt-avatar { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; flex: 0 0 32px; border: 2px solid rgba(255,255,255,.7); }
.wtt-initials { display: inline-flex; align-items: center; justify-content: center; background: rgba(0,0,0,.28); font-weight: 700; font-size: .7rem; }
.wtt-lecturer { font-weight: 600; }
.wtt-divider { border: 0; border-top: 1px solid rgba(255,255,255,.55); margin: .35rem 0; opacity: 1; }
.wtt-meta { opacity: .95; }
.wtt-list { display: none; }
.wtt-list-day { font-size: 1rem; font-weight: 700; margin: 1rem 0 .5rem; }
.wtt-list .wtt-block { width: auto; margin: 0 0 .5rem; }

@media (max-width: 640px) {
  .wtt-scroll { display: none; }
  .wtt-list { display: block; }
  .wtt-field { max-width: none; }
}

@media print {
  .wtt-filters, .sh-header, .site-header, nav, footer, .app-sidebar, .topbar { display: none !important; }
  .wtt-scroll { display: block !important; overflow: visible; border: 0; }
  .wtt-list { display: none !important; }
  .wtt-grid { min-width: 0; grid-template-columns: 4rem repeat(var(--wtt-days), 1fr); }
  .wtt-block { -webkit-print-color-adjust: exact; print-color-adjust: exact; font-size: 7pt; box-shadow: none; }
  .wtt-head { position: static; }
  @page { size: A4 landscape; margin: 10mm; }
}
