/* Custom styles only — layout/design is Tailwind (see index.html).
   Dark mode is class-based (html.dark), matching tailwind.config darkMode:'class'.
   Kept here: editable-row validity highlight, and the visual weekly timetable
   (absolute-positioned event blocks need computed inline styles). */

/* --- invalid review row --- */
tr.bad > td { background: #fff7ed; }
tr.bad > td:first-child { box-shadow: inset 3px 0 0 #d97706; }
.dark tr.bad > td { background: #3a2a12; }

/* --- weekly timetable --- */
.tt {
  display: flex;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  overflow: hidden;
}
.dark .tt { border-color: #1e293b; }

.tt-gutter { width: 46px; flex: 0 0 46px; }
.tt-col { flex: 1 1 0; min-width: 66px; border-left: 1px solid #e2e8f0; }
.dark .tt-col { border-left-color: #1e293b; }

.tt-head {
  height: 32px;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 600;
  color: #475569; background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
}
.dark .tt-head { color: #cbd5e1; background: #0b1220; border-bottom-color: #1e293b; }

.tt-body { position: relative; }
.tt-gutter .tt-body { background: #f8fafc; }
.dark .tt-gutter .tt-body { background: #0b1220; }

.tt-hourline { position: absolute; left: 0; right: 0; border-top: 1px solid #eef2f7; }
.dark .tt-hourline { border-top-color: #172033; }

.tt-hourlabel {
  position: absolute; right: 5px; transform: translateY(-6px);
  font-size: 10px; color: #94a3b8;
}

.tt-event {
  position: absolute; left: 3px; right: 3px;
  border-radius: 7px;
  padding: 3px 6px;
  font-size: 11px; line-height: 1.25;
  overflow: hidden;
  border-left: 3px solid var(--ev-bd, #64748b);
  background: var(--ev-bg, #e2e8f0);
  color: var(--ev-fg, #0f172a);
}
.tt-event .tt-t { font-weight: 700; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tt-event .tt-m { opacity: .85; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.tt-empty { padding: 24px; text-align: center; color: #94a3b8; font-size: 13px; }
