/* Page type "Erfassung" and the attendance matrix (LgvCapturePage, LgvAttendanceGrid). Only theme tokens of lgv.css
   (--lgv-*), so light and dark follow the shell; large targets for the tablet (UI contract D-13, ≥ 44 px). */
.lgv-capture { display: flex; flex-direction: column; gap: 12px; min-height: 0; }
.lgv-capture-state { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--lgv-muted); min-width: 140px; justify-content: flex-end; }
.lgv-capture-state.is-saved { color: var(--lgv-ok); }
.lgv-capture-state.is-failed { color: var(--lgv-bad); font-weight: 600; }
.lgv-capture-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 10px 12px; background: var(--lgv-surface);
  border: 1px solid var(--lgv-line); border-radius: var(--lgv-radius); }
.lgv-capture-toolbar .lgv-capture-field { display: flex; flex-direction: column; gap: 2px; font-size: 12px; color: var(--lgv-muted); }
.lgv-capture-error { display: flex; gap: 6px; align-items: center; padding: 8px 12px; border-radius: var(--lgv-radius);
  background: var(--lgv-bad-weak); color: var(--lgv-bad); font-weight: 600; }
.lgv-capture-body { min-height: 0; overflow: auto; }

.lgv-att { display: flex; flex-direction: column; background: var(--lgv-surface); border: 1px solid var(--lgv-line); border-radius: var(--lgv-radius); }
.lgv-att-row { display: grid; align-items: center; gap: 8px; padding: 6px 12px; border-top: 1px solid var(--lgv-line); }
.lgv-att-row:nth-child(odd):not(.lgv-att-head) { background: var(--lgv-surface-2); }
.lgv-att-head { border-top: 0; background: var(--lgv-surface-2); font-size: 12px; font-weight: 600; text-transform: uppercase; color: var(--lgv-muted);
  position: sticky; top: 0; z-index: 1; }
.lgv-att-colhead { display: flex; flex-direction: column; align-items: center; text-align: center; }
.lgv-att-colhead small { text-transform: none; font-weight: 400; }
.lgv-att-name { display: flex; flex-direction: column; min-width: 0; }
.lgv-att-title { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lgv-att-name small { color: var(--lgv-muted); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lgv-att-hint { color: var(--lgv-warn) !important; }
.lgv-att-cell { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px; padding: 3px; border-radius: var(--lgv-radius); outline: none; }
.lgv-att-cell:focus-visible, .lgv-att-cell.is-focused:focus-within { box-shadow: 0 0 0 2px var(--lgv-accent); }
.lgv-att-cell.is-off { color: var(--lgv-faint); }
.lgv-att-opt { min-width: 40px; min-height: 40px; padding: 0 8px; border: 1px solid var(--lgv-line-2); border-radius: var(--lgv-radius);
  background: var(--lgv-surface); color: var(--lgv-muted); font: inherit; font-weight: 700; cursor: pointer; }
.lgv-att-opt:disabled { cursor: not-allowed; }
.lgv-att-opt.is-on.k-ok { background: var(--lgv-ok); border-color: var(--lgv-ok); color: #fff; }
.lgv-att-opt.is-on.k-warn { background: var(--lgv-warn); border-color: var(--lgv-warn); color: #fff; }
.lgv-att-opt.is-on.k-bad { background: var(--lgv-bad); border-color: var(--lgv-bad); color: #fff; }
.lgv-att-opt.is-on.k-info { background: var(--lgv-accent); border-color: var(--lgv-accent); color: #fff; }
.lgv-att-opt.is-on.k-neutral { background: var(--lgv-muted); border-color: var(--lgv-muted); color: #fff; }
.lgv-att-actions { display: flex; gap: 6px; }
.lgv-att-legend { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 8px; font-size: 12px; color: var(--lgv-muted); }
.lgv-att-legend b { display: inline-grid; place-items: center; min-width: 22px; min-height: 22px; padding: 0 4px; margin-right: 4px; font-size: 11px; }
.lgv-visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@media (max-width: 760px) {
  .lgv-att-row { padding: 6px; }
  .lgv-att-opt { min-width: 44px; min-height: 44px; }
}

/* Participation details in the side panel and the enrollment tabs (Lgv.Web Components/Enrollment) */
.lgv-enr-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.lgv-enr-sessions { display: flex; flex-direction: column; gap: 4px; }
.lgv-enr-session { display: grid; grid-template-columns: 170px 1fr auto; align-items: center; gap: 8px; padding: 4px 0; border-bottom: 1px solid var(--lgv-line); }
.lgv-enr-session small { grid-column: 2 / 3; }
.lgv-enr-day { font-variant-numeric: tabular-nums; color: var(--lgv-muted); }
.lgv-enr-inline { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px; margin: 8px 0; }
.lgv-enr-confirm { margin-top: 16px; padding: 12px; border: 1px solid var(--lgv-warn); background: var(--lgv-warn-weak); border-radius: var(--lgv-radius); }
.lgv-enr-confirm p { margin: 6px 0 10px; }
.lgv-enr-list { display: flex; flex-direction: column; gap: 6px; }
.lgv-enr-item { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 6px 0; border-bottom: 1px solid var(--lgv-line); }
.lgv-enr-item .lgv-enr-title { font-weight: 600; flex: 1 1 260px; min-width: 0; }
.lgv-enr-log { display: grid; grid-template-columns: 150px 1fr; gap: 8px; padding: 8px 0; border-bottom: 1px solid var(--lgv-line); }
.lgv-enr-log .lgv-enr-meta { color: var(--lgv-muted); font-size: 12px; }
@media (max-width: 760px) { .lgv-enr-session, .lgv-enr-log { grid-template-columns: 1fr; } }
/* Teilnahme-Panel (T-52): figures line, quiet hint instead of an alert, action under the head */
.lgv-enr-figures { margin: 0 0 6px; font-variant-numeric: tabular-nums; }
.lgv-enr-hint { display: flex; align-items: flex-start; gap: 6px; margin: 4px 0 8px; color: var(--lgv-muted); font-size: 13px; }
.lgv-enr-action { margin: 0 0 12px; }
/* Anwesenheit (T-59): the courses of the day as buttons with their live attendance */
.lgv-att-today { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 10px; }
.lgv-att-course { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding: 12px; text-align: left; font: inherit; color: inherit; cursor: pointer;
  background: var(--lgv-surface); border: 1px solid var(--lgv-line); border-radius: var(--lgv-radius); }
.lgv-att-course:hover, .lgv-att-course:focus-visible { border-color: var(--lgv-accent); }
/* Verspätet (T-64): quarter-hour buttons */
.lgv-minutes { display: grid; grid-template-columns: repeat(auto-fill, minmax(90px, 1fr)); gap: 8px; margin: 4px 0 12px; }
.lgv-minutes-btn { padding: 10px 8px; font: inherit; color: inherit; cursor: pointer; background: var(--lgv-surface); border: 1px solid var(--lgv-line-2); border-radius: var(--lgv-radius); }
.lgv-minutes-btn:hover { border-color: var(--lgv-accent); }
.lgv-minutes-btn.is-on { border-color: var(--lgv-accent); background: var(--lgv-accent-weak); font-weight: 600; }
