/* Area: attendance */
:root { --xatt-late: #1F5FA8; }

/* Late mark on the class screen */
.bt-tile.LT .avatar, .bt-tile.LT .bt-tile-st { background: var(--xatt-late); color: #fff; }
.bt-tile.LT .bt-tile-st { font-size: 13px; }
.bt-counts .LT b { color: var(--xatt-late); }

/* waiting to send (offline) */
.xatt-wait { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 10px 14px; margin: 0 0 12px; border-radius: 12px;
  background: var(--gold-soft); border: 1px solid var(--gold); }
.xatt-wait svg { flex: none; color: var(--gold); }
.xatt-wait .grow { flex: 1 1 200px; min-width: 0; }
.xatt-wait strong, .xatt-wait small { display: block; overflow-wrap: anywhere; }
.xatt-wait small { color: var(--mute); font-size: 12px; }

/* lists */
.xatt-list .line-row { gap: 10px; }
.xatt-list .grow { flex: 1; min-width: 0; }
.xatt-list .grow strong, .xatt-list .grow small { display: block; overflow-wrap: anywhere; }
.xatt-class h3 svg, .xatt-tab h3 svg, .xatt-centre h3 svg { vertical-align: -3px; color: var(--gold); }
.xatt-bad { color: var(--red); }

/* class QR */
.xatt-qr { display: grid; place-items: center; padding: 8px; }
.xatt-qr svg { width: min(78vw, 340px); height: auto; background: #fff; padding: 12px; border-radius: 12px; border: 2px solid var(--gold); }
.xatt-qr-left { text-align: center; margin: 0; }

/* centre dashboard */
.xatt-cls { text-decoration: none; color: inherit; align-items: center; }
.xatt-time { flex: none; width: 54px; text-align: center; display: flex; flex-direction: column; padding: 4px 0; border-radius: 10px; background: var(--navy-soft); }
.xatt-time small { color: var(--mute); font-size: 11px; }
.xatt-num { flex: none; text-align: right; } .xatt-num strong, .xatt-num small { display: block; } .xatt-num small { color: var(--mute); font-size: 12px; }
.xatt-bars { display: flex; height: 6px; border-radius: 4px; overflow: hidden; margin-top: 6px; background: var(--chip); max-width: 320px; }
.xatt-bars span.P { background: var(--leaf); } .xatt-bars span.LT { background: var(--xatt-late); } .xatt-bars span.L { background: var(--gold); } .xatt-bars span.A { background: var(--red); }

/* my check-in */
.xatt-me.in { border-left: 5px solid var(--gold); } .xatt-me.done { border-left: 5px solid var(--leaf); }
.xatt-selfie { max-width: 100%; max-height: 60vh; border-radius: 12px; display: block; margin: 0 auto; }

/* trainee app */
.xatt-t { margin-top: 4px; }
.xatt-in { width: 100%; justify-content: center; font-size: 19px; min-height: 58px; }
.xatt-two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.xatt-two .btn { justify-content: center; text-align: center; }
.xatt-ok { color: var(--leaf); font-weight: 700; }
.xatt-err { color: var(--red); font-weight: 600; }
.xatt-big-ok { width: 72px; height: 72px; border-radius: 50%; display: grid; place-items: center; margin: 0 auto 8px; background: var(--leaf); color: #fff; }
.xatt-video { width: 100%; max-width: 420px; border-radius: 12px; background: #000; aspect-ratio: 1; object-fit: cover; }
.xatt-req { display: flex; gap: 10px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); }
.xatt-req .grow { flex: 1; min-width: 0; } .xatt-req strong, .xatt-req small { display: block; } .xatt-req small { color: var(--mute); }
.xatt-st { flex: none; font-size: 12px; font-weight: 700; padding: 3px 9px; border-radius: 99px; background: var(--chip); }
.xatt-st.Approved { background: var(--leaf); color: #fff; } .xatt-st.Refused { background: var(--red); color: #fff; } .xatt-st.Pending { background: var(--gold-soft); }
@media (max-width: 420px) { .xatt-two { grid-template-columns: 1fr; } }
