/* Attendance module: register pills, month calendar, paper register. */
.att-pills { display: inline-flex; gap: 3px; }
.att-pill { position: relative; cursor: pointer; }
.att-pill input { position: absolute; opacity: 0; pointer-events: none; }
.att-pill span { display: inline-block; width: 1.9rem; height: 1.9rem; line-height: 1.9rem; text-align: center; border-radius: 6px; border: 1px solid var(--border-strong); font-weight: 700; color: var(--muted); background: var(--surface); font-size: .85rem; user-select: none; }
.att-pill:hover span { background: var(--surface-2); }
.att-pill input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 1px; }
.att-pill-present input:checked + span { background: var(--green); border-color: var(--green); color: #fff; }
.att-pill-late input:checked + span { background: var(--amber); border-color: var(--amber); color: #fff; }
.att-pill-absent input:checked + span { background: var(--red); border-color: var(--red); color: #fff; }
.att-pill-excused input:checked + span { background: var(--blue); border-color: var(--blue); color: #fff; }
.att-pill-other input:checked + span { background: #6b7684; border-color: #6b7684; color: #fff; }
.att-pill input:disabled + span { cursor: not-allowed; opacity: .75; }
.att-row.att-absent td { background: var(--red-soft); }
.att-row.att-late td { background: var(--amber-soft); }
.att-register .att-late, .att-register .att-reason { display: none; }
.att-row.att-late .att-late, .att-row.att-late .att-reason, .att-row.att-absent .att-reason, .att-row.att-excused .att-reason, .att-row.att-other .att-reason { display: inline-block; }

.att-cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.att-cal-head { font-size: .78rem; color: var(--muted); text-align: center; font-weight: 600; }
.att-cal-day { min-height: 3.6rem; border: 1px solid var(--border); border-radius: 6px; padding: .2rem .3rem; position: relative; font-size: .78rem; background: var(--surface); }
.att-cal-num { font-weight: 600; }
.att-cal-mark { display: block; font-size: .7rem; margin-top: .15rem; }
.att-cal-note { position: absolute; top: 2px; right: 4px; color: var(--blue); }
.att-cal-empty { border: 0; background: none; }
.att-cal-present { background: var(--green-soft); border-color: #bfe3cf; }
.att-cal-late { background: var(--amber-soft); border-color: #f0d49e; }
.att-cal-absent { background: var(--red-soft); border-color: #f1c2c2; }
.att-cal-excused { background: var(--blue-soft); border-color: #c4d8f5; }
.att-cal-other { background: var(--grey-soft); }
.att-cal-off { background: repeating-linear-gradient(45deg, var(--surface-2), var(--surface-2) 5px, var(--surface) 5px, var(--surface) 10px); color: var(--faint); }
.att-cal-unmarked { background: var(--surface); }
.att-cal-future { background: var(--surface); color: var(--faint); }
.att-cal-today { box-shadow: 0 0 0 2px var(--accent); }
.att-legend span { display: inline-flex; align-items: center; gap: .3rem; margin-right: .8rem; font-size: .8rem; }
.att-legend i { display: inline-block; width: 12px; height: 12px; border-radius: 3px; border: 1px solid var(--border); }

.att-month { border-collapse: collapse; width: 100%; font-size: .72rem; }
.att-month th, .att-month td { border: 1px solid #b9c3cf; padding: 1px 2px; text-align: center; min-width: 1.35rem; }
.att-month th span { font-weight: 400; color: var(--muted); font-size: .66rem; }
.att-month .att-name { text-align: left; white-space: nowrap; min-width: 11rem; }
.att-month .att-off { background: #e9edf2; }
.att-month .att-m-absent { color: var(--red); font-weight: 700; }
.att-month .att-m-late { color: var(--amber); font-weight: 700; }
.att-month .att-m-excused { color: var(--blue); font-weight: 700; }
.att-month td.num { text-align: right; }
.att-widget-list li { display: flex; justify-content: space-between; align-items: center; gap: .5rem; }
@media print { .att-paper { padding: 0; } .att-month { font-size: 8px; } }
