/* RFID Binding structure shared by the Local and Cloud Homework adapters. */
.rfid-poc { min-width: 0; }
.rfid-poc-heading, .rfid-poc-heading > div, .rfid-poc-legend, .rfid-poc-toolbar, .rfid-poc-detail-head, .rfid-poc-detail-head > div, .rfid-poc-action-head { display: flex; }
.rfid-poc-heading { align-items: flex-start; justify-content: space-between; gap: 16px; }
.rfid-poc-heading > div { display: block; }
.rfid-poc-heading h2 { margin-top: 3px; }
.rfid-poc-kicker, .rfid-poc-step { color: var(--accent); font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.rfid-poc-legend { flex-wrap: wrap; gap: 8px 14px; padding-top: 3px; color: var(--muted); font-size: 12px; }
.rfid-poc-legend span { display: inline-flex; align-items: center; gap: 5px; }
.rfid-poc-legend i { width: 9px; height: 9px; border-radius: 50%; background: #94a3b8; }
.rfid-poc-legend i.is-bound { background: #16a34a; }
.rfid-poc-legend i.is-multiple { background: var(--accent); }
.rfid-poc-legend i.is-missing { background: #d97706; }
.rfid-poc-metrics { display: grid; grid-template-columns: repeat(4, minmax(110px, 1fr)); gap: 10px; margin: 4px 0 16px; }
.rfid-poc-metric { display: grid; gap: 2px; min-height: 76px; align-content: center; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--surface-soft); }
.rfid-poc-metric strong { font-size: 23px; line-height: 1; }
.rfid-poc-metric span { color: var(--muted); font-size: 12px; }
.rfid-poc-metric.is-missing { border-color: #fed7aa; background: var(--warning-bg); color: var(--warning-text); }
.rfid-group-tabs { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; margin-bottom: 12px; }
.rfid-group-tab { display: grid; grid-template-columns: 1fr auto; gap: 3px 8px; min-height: 64px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--ink); text-align: left; cursor: pointer; transition: border-color 160ms ease, background 160ms ease, box-shadow 160ms ease; }
.rfid-group-tab:hover { border-color: #93c5fd; }
.rfid-group-tab.is-active { border-color: var(--accent); background: var(--primary-soft); box-shadow: inset 0 0 0 1px var(--accent); }
.rfid-group-tab strong { font-size: 14px; }
.rfid-group-tab span { color: var(--muted); font-size: 11px; text-align: right; }
.rfid-group-tab em { grid-column: 1 / -1; color: var(--warning-text); font-size: 10px; font-style: normal; font-weight: 700; }
.rfid-poc-toolbar { align-items: center; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.rfid-poc-toolbar label { flex: 1 1 210px; }
.rfid-poc-toolbar input { width: 100%; }
.rfid-poc-toolbar > span { margin-left: auto; color: var(--muted); font-size: 12px; }
.rfid-toolbar-button { min-height: 42px; padding: 8px 13px; border: 1px solid var(--line); border-radius: 9px; background: var(--surface); color: var(--ink); font-weight: 700; cursor: pointer; }
.rfid-toolbar-button:hover, .rfid-toolbar-button.is-active { border-color: var(--accent); background: var(--primary-soft); color: var(--accent); }
.rfid-batch-panel { margin-bottom: 14px; padding: 16px; border: 1px solid #bfdbfe; border-radius: var(--radius-md); background: #f8fbff; }
.rfid-batch-head, .rfid-batch-controls, .rfid-batch-row { display: flex; }
.rfid-batch-head { align-items: flex-start; justify-content: space-between; gap: 16px; }
.rfid-batch-head h3 { margin: 3px 0 3px; font-size: 18px; }
.rfid-batch-head p { margin: 0; color: var(--muted); font-size: 12px; }
.rfid-batch-controls { align-items: end; gap: 12px; margin-top: 14px; }
.rfid-batch-controls label { display: grid; flex: 1 1 260px; gap: 5px; color: var(--muted); font-size: 11px; font-weight: 700; }
.rfid-batch-controls select { width: 100%; }
.rfid-batch-controls > div { display: grid; min-width: 130px; }
.rfid-batch-controls > div strong { font-size: 20px; }
.rfid-batch-controls > div span { color: var(--muted); font-size: 10px; }
.rfid-batch-controls .button { min-height: 44px; }
.rfid-batch-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 6px; max-height: 190px; margin: 14px 0 0; padding: 0; overflow-y: auto; list-style: none; }
.rfid-batch-row { align-items: center; gap: 6px; min-height: 44px; padding: 7px 8px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); }
.rfid-batch-row.is-next { border-color: #f59e0b; background: var(--warning-bg); }
.rfid-batch-row strong { min-width: 0; overflow: hidden; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.rfid-batch-state { margin-left: auto; color: var(--muted); font-size: 9px; white-space: nowrap; }
.rfid-batch-state.is-missing { color: var(--warning-text); font-weight: 800; }
.rfid-batch-state.is-bound { color: var(--success-text); }
.rfid-poc-workspace { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 14px; min-width: 0; align-items: start; }
.rfid-poc-table { width: 100%; max-width: 100%; max-height: 560px; overflow: auto; background: var(--surface); }
.rfid-poc-table table { min-width: 650px; }
.rfid-poc-table thead th { position: sticky; top: 0; z-index: 1; }
.rfid-poc-table td { padding: 7px; }
.rfid-poc-table td:not(.hw-student-no-column) { min-width: 138px; }
.rfid-student-no, .rfid-poc-student-no { display: inline-grid; place-items: center; flex: 0 0 auto; border-radius: 7px; background: #e2e8f0; color: #334155; font-weight: 800; }
.rfid-student-no { width: 29px; height: 25px; margin-right: 6px; font-size: 11px; }
.rfid-poc-student-no { width: 38px; height: 38px; font-size: 13px; }
.rfid-slot { display: grid; grid-template-columns: 9px 1fr; gap: 2px 7px; width: 100%; min-height: 54px; padding: 8px 9px; border: 1px solid transparent; border-radius: 9px; background: #f8fafc; color: var(--ink); text-align: left; transition: border-color 160ms ease, background 160ms ease, box-shadow 160ms ease; }
.rfid-slot:hover { border-color: #93c5fd; }
.rfid-slot.is-selected { border-color: var(--accent); box-shadow: 0 0 0 2px var(--primary-soft); }
.rfid-slot-dot { grid-row: 1 / span 2; align-self: center; width: 9px; height: 9px; border-radius: 50%; background: #94a3b8; }
.rfid-slot strong { align-self: end; font-size: 12px; }
.rfid-slot small { color: var(--muted); font-size: 10px; }
.rfid-slot.is-bound { background: var(--success-bg); color: var(--success-text); }
.rfid-slot.is-bound .rfid-slot-dot { background: #16a34a; }
.rfid-slot.is-multiple { background: var(--primary-soft); color: #1d4ed8; }
.rfid-slot.is-multiple .rfid-slot-dot { background: var(--accent); }
.rfid-slot.is-missing { background: var(--warning-bg); color: var(--warning-text); }
.rfid-slot.is-missing .rfid-slot-dot { background: #d97706; }
.rfid-slot.is-replaced { background: #f1f5f9; color: #475569; }
.rfid-slot.is-replaced .rfid-slot-dot { background: #64748b; }
.rfid-poc-detail { position: sticky; top: 12px; padding: 16px; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--surface-soft); }
.rfid-poc-detail-head { align-items: flex-start; justify-content: space-between; gap: 10px; }
.rfid-poc-detail-head > div { align-items: center; gap: 10px; }
.rfid-poc-detail h3 { margin: 0 0 2px; font-size: 16px; }
.rfid-poc-detail p { margin: 0; color: var(--muted); font-size: 12px; }
.rfid-detail-status, .rfid-tag-state { flex: 0 0 auto; border-radius: var(--radius-pill); padding: 4px 8px; font-size: 11px; font-weight: 800; }
.rfid-detail-status.is-bound { background: var(--success-bg); color: var(--success-text); }
.rfid-detail-status.is-multiple { background: var(--primary-soft); color: var(--accent); }
.rfid-detail-status.is-missing { background: var(--warning-bg); color: var(--warning-text); }
.rfid-detail-status.is-replaced { background: #e2e8f0; color: #475569; }
.rfid-poc-detail-count { display: flex; align-items: baseline; gap: 6px; margin-top: 18px; }
.rfid-poc-detail-count strong { font-size: 25px; }
.rfid-poc-detail-count span { color: var(--muted); font-size: 12px; }
.rfid-tag-list { display: grid; gap: 7px; margin: 10px 0 14px; padding: 0; list-style: none; }
.rfid-tag-row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 8px; padding: 9px; border: 1px solid var(--line); border-radius: 9px; background: var(--surface); }
.rfid-tag-row code { display: block; overflow: hidden; color: #334155; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.rfid-tag-row div span, .rfid-tag-seen { display: block; color: var(--muted); font-size: 9px; line-height: 1.4; }
.rfid-tag-seen { text-align: right; }
.rfid-tag-state.is-active { background: var(--success-bg); color: var(--success-text); }
.rfid-tag-state.is-lost { background: var(--danger-bg); color: var(--danger-text); }
.rfid-tag-empty { padding: 16px 12px; border: 1px dashed #cbd5e1; border-radius: 9px; color: var(--muted); font-size: 12px; text-align: center; }
.rfid-poc-detail-actions { display: grid; gap: 8px; }
.rfid-poc-detail-actions .button { min-height: 44px; }
.rfid-poc-action { display: grid; gap: 10px; margin-top: 12px; padding: 13px; border: 1px solid #bfdbfe; border-radius: 10px; background: #f8fbff; }
.rfid-poc-action-head { align-items: flex-start; justify-content: space-between; gap: 8px; }
.rfid-poc-action h4 { margin: 2px 0 0; font-size: 14px; }
.rfid-poc-action > p { color: #475569; line-height: 1.55; }
.rfid-poc-close { display: grid; place-items: center; width: 32px; height: 32px; border: 0; border-radius: 7px; background: #e2e8f0; color: #475569; font-size: 20px; }
.rfid-poc-reader { display: flex; align-items: center; gap: 10px; min-height: 60px; padding: 10px; border: 1px dashed #93c5fd; border-radius: 9px; background: var(--surface); }
.rfid-poc-reader div { display: grid; gap: 2px; }
.rfid-poc-reader span:last-child { color: var(--muted); font-size: 11px; }
.rfid-poc-reader-pulse { width: 13px; height: 13px; border: 3px solid #93c5fd; border-radius: 50%; box-shadow: 0 0 0 5px var(--primary-soft); }
.rfid-poc-scan-result { display: grid; gap: 3px; padding: 10px; border-radius: 9px; background: var(--success-bg); color: var(--success-text); }
.rfid-poc-scan-result span { font-size: 11px; font-weight: 700; }
.rfid-poc-scan-result code { font-size: 12px; }
.rfid-poc-notice { margin-bottom: 10px !important; padding: 9px 10px; border-radius: 8px; background: var(--success-bg); color: var(--success-text) !important; line-height: 1.45; }
.rfid-poc-footnote { margin-top: 12px !important; padding-top: 10px; border-top: 1px solid var(--line); }
@media (max-width: 1500px) { .rfid-poc-workspace { grid-template-columns: 1fr; } .rfid-poc-detail { position: static; } }
@media (max-width: 1000px) { .rfid-group-tabs { grid-template-columns: repeat(3, minmax(120px, 1fr)); } }
@media (max-width: 760px) { .rfid-poc-heading { display: block; } .rfid-poc-legend { margin-bottom: 12px; } .rfid-poc-metrics { grid-template-columns: repeat(2, minmax(110px, 1fr)); } .rfid-group-tabs { display: flex; padding-bottom: 4px; overflow-x: auto; } .rfid-group-tab { flex: 0 0 132px; } .rfid-poc-toolbar > span { width: 100%; margin-left: 0; } .rfid-batch-controls { align-items: stretch; flex-direction: column; } .rfid-batch-controls label { flex-basis: auto; width: 100%; } .rfid-batch-list { grid-template-columns: repeat(2, minmax(140px, 1fr)); } }
@media (prefers-reduced-motion: reduce) { .rfid-slot { transition: none; } }
