/* AAG Digital Hall Pass - Experimental Lesson Attendance (pilot module, S26). Uses the colours of app.css. */
.att-banner { background: var(--red); color: #fff; text-align: center; font-weight: 800; letter-spacing: .05em;
  padding: 10px 12px; border-radius: 10px; margin-bottom: 14px; }
.att-seg { display: inline-flex; gap: 4px; background: #e7e5df; border-radius: 10px; padding: 4px; margin-bottom: 14px; flex-wrap: wrap; }
.att-seg-btn { min-height: 44px; padding: 8px 16px; border: 0; border-radius: 8px; background: transparent; font-weight: 700; font-size: 1rem; cursor: pointer; color: var(--ink); }
.att-seg-btn.active { background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.15); }
.att-off { border-left: 6px solid var(--red); }

.btn.gold { background: var(--gold); color: var(--ink); }
.btn.att-big { min-height: 56px; padding: 12px 22px; font-size: 1.1rem; }
.btn.att-armed { background: var(--red); color: #fff; }
.att-readonly { margin: 0; color: #e8e2d4; font-weight: 700; }

.att-state { margin: 0 0 6px; font-weight: 600; color: var(--muted); }
.att-state.bad { color: var(--red); }
.att-saved { margin: 0 0 8px; min-height: 1.2em; font-size: .9rem; color: var(--muted); }

.att-counts { display: flex; flex-wrap: wrap; gap: 8px; margin: 6px 0 12px; }
.att-count { padding: 6px 12px; border-radius: 999px; font-size: .95rem; }
.att-count b { font-size: 1.05rem; }

.att-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 10px; }
.att-scan { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; background: #fff; border: 2px dashed var(--line);
  border-radius: 12px; padding: 12px; margin: 8px 0 12px; }
.att-feedback { flex-basis: 100%; margin: 0; min-height: 1.6em; font-size: 1.3rem; font-weight: 800; }
.att-feedback.ok { color: var(--ok); }
.att-feedback.warn { color: var(--warn); }
.att-feedback.bad { color: var(--red); }
.att-video { width: 100%; max-width: 420px; border-radius: 10px; background: #000; }

.att-pill { display: inline-block; padding: 4px 12px; border-radius: 999px; font-weight: 700; font-size: .9rem; white-space: nowrap; }
.att-s-none { background: #ecebe7; color: #3d3d3d; }
.att-s-scan { background: var(--warn-bg); color: var(--warn); }
.att-s-ok { background: var(--ok-bg); color: var(--ok); }
.att-s-late { background: #ffe7c2; color: #8a4b00; }
.att-s-bad { background: var(--bad-bg); color: var(--red); }
.att-s-info { background: #e6eef8; color: #1d4f8a; }

.att-roster { display: grid; gap: 8px; }
.att-row { border: 2px solid var(--line); border-radius: 10px; background: #fff; }
.att-row.open { border-color: var(--gold); }
.att-row-head { width: 100%; min-height: 56px; display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap;
  padding: 10px 14px; background: transparent; border: 0; text-align: left; font-size: 1.05rem; cursor: pointer; color: var(--ink); }
.att-row-head:disabled { cursor: default; color: var(--ink); }
.att-name { font-weight: 800; flex: 1 1 200px; }
.att-grade { font-weight: 400; color: var(--muted); font-size: .9rem; }
.att-row-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.att-late { margin-left: 6px; font-weight: 700; color: #8a4b00; }
.att-badge { background: var(--ink); color: var(--gold); border-radius: 6px; padding: 2px 8px; font-size: .8rem; font-weight: 800; }
.att-tag { background: #f0ede6; border-radius: 6px; padding: 2px 8px; font-size: .8rem; }
.att-choices { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 14px 12px; }
.btn.att-choice { min-height: 52px; min-width: 104px; color: var(--ink); }
.btn.att-choice.current { outline: 3px solid var(--ink); }
.att-correct { padding: 0 14px 12px; }
.att-correct p { margin: 4px 0 8px; }

.att-inline { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 8px 0; }
.att-inline input[type=text], .att-inline select { min-height: 44px; padding: 8px; border: 1px solid #c9c5bb; border-radius: 8px; font-size: 1rem; min-width: 220px; }
.att-more { background: #fff; margin-top: 14px; }
.att-list { display: grid; gap: 6px; margin-bottom: 10px; }
.att-list-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; border-bottom: 1px solid var(--line); padding: 6px 0; }
.att-list-main { flex: 1 1 240px; font-weight: 600; }
.att-ul { margin: 6px 0 0; padding-left: 20px; }
#view-attendance .form-row input:not([type=checkbox]), #view-attendance .form-row select { min-height: 44px; padding: 8px; border: 1px solid #c9c5bb; border-radius: 8px; font-size: 1rem; width: 100%; box-sizing: border-box; }
#view-attendance .form-row label { display: block; font-weight: 600; }
#view-attendance label.inline { display: flex; align-items: center; gap: 8px; }
#view-attendance label.inline input[type=checkbox] { width: 24px; height: 24px; flex: none; }
#view-attendance input[type=date] { min-height: 44px; padding: 6px 8px; border: 1px solid #c9c5bb; border-radius: 8px; font-size: 1rem; }

@media (min-width: 1400px) {
  .att-roster { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
