.chat-room-head:has(.attendance-controls:not(.hidden)){grid-template-columns:44px minmax(0,1fr) auto!important}
.attendance-controls{display:flex;gap:5px;align-items:center}
.attendance-controls button{width:38px;height:38px;display:grid;place-items:center;padding:6px}
.attendance-controls svg{width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.attendance-dialog{max-height:calc(100dvh - 24px);overflow:auto}
.attendance-dialog form{display:grid;gap:10px;margin-bottom:10px}
.attendance-management-nav{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin:0 0 16px}
.attendance-management-nav button{white-space:normal;min-width:0}
.attendance-dialog video,.attendance-qr img{display:block;width:100%;max-height:52dvh;object-fit:contain;background:#fff;border-radius:10px}
.attendance-dialog video[hidden]{display:none}
.attendance-dialog [data-att-signature]{display:block;width:100%;max-width:480px;height:auto;background:#fff;outline:1px solid var(--line);border-radius:8px;touch-action:none}
.attendance-dialog [data-att-signature-preview]{width:160px;max-width:100%;background:#fff}
.attendance-qr{display:grid;gap:10px;margin:10px 0}
.attendance-report-actions,.attendance-group-choices{display:flex;flex-wrap:wrap;gap:10px;margin:12px 0}
#workspaceAttendancePanel{background:#fff;border:1px solid var(--line);border-radius:16px;padding:16px;margin-top:12px}
.attendance-chart{width:100%;height:28px;border-radius:8px;background:var(--green-50)}
.attendance-totals{display:flex;flex-wrap:wrap;gap:14px;margin:10px 0}
.attendance-period{max-width:220px}
.attendance-table-wrap{overflow:auto}
.attendance-table-wrap table{border-collapse:collapse;width:100%}
.attendance-table-wrap th,.attendance-table-wrap td{padding:8px;border-bottom:1px solid var(--line);text-align:left}
.attendance-pending{padding:12px 0;border-bottom:1px solid var(--line)}
.attendance-pending p{overflow-wrap:anywhere}
