/* Compact official monitoring page; one table contains schedule and evidence. */
body{font-size:13px;line-height:1.7;background:#f3f7f9;color:#203e4b}.page-header{padding:18px max(16px,calc((100vw - 1440px)/2));min-height:0}.page-header h1{font-size:23px}.page-header p{font-size:12px}main{max-width:1480px;padding:14px;margin:auto}nav{justify-content:center;gap:7px}button,nav a{font-size:12px;padding:7px 11px;line-height:1.5}h2{font-size:18px}.panel{padding:13px;border-radius:12px;margin-bottom:12px}.section-heading{align-items:center}.sub{font-size:11px;line-height:1.7}.legend{justify-content:center;gap:7px;margin-bottom:10px}.legend span{font-size:11px;padding:5px 8px}
input,select{font-size:13px;min-height:35px;padding:6px 9px;max-width:100%;background:#fbfdfe}input[type=url]{width:340px;min-width:0!important}input[type=password]{width:220px}input[type=number]{width:85px}#roundSettings{gap:10px}#roundSettings input{height:35px;min-height:35px;width:100%}.filters{gap:8px}
#todayTable table,#archiveTable table{min-width:1100px;table-layout:fixed}#todayTable th,#todayTable td,#archiveTable th,#archiveTable td{text-align:center;vertical-align:top;padding:7px 5px;font-size:12px}thead th{background:#193f50;color:#fff}thead th:first-child{width:155px}tbody th{min-width:0!important;font-size:12px!important;font-weight:600}.period-time{display:block;margin:4px 0 0;color:#d0e8ef;font-size:11px;font-weight:400}.lesson-state{margin:5px 0;padding:6px;font-size:12px;border-radius:7px;min-height:30px}.cell-tools{display:flex;justify-content:center;flex-wrap:wrap;gap:4px}.cell-tools a,.cell-tools button{font-size:10px;padding:4px 6px;border-radius:6px;line-height:1.5}.teams-lesson-link{display:inline-flex;align-items:center;justify-content:center;text-decoration:none;color:#066a66;border:1px solid #b9ded7;background:#e7f5f1}.no-lesson{color:#8c9da6;font-size:11px!important}td>small{display:block;font-size:10px;margin-top:4px}.summary-cards{gap:8px}.scan-activity{padding:9px 12px;gap:8px;margin-bottom:12px;box-shadow:none}.scan-activity strong{font-size:15px}.scan-activity>div{gap:9px}.scan-activity label{font-size:11px}
.live-monitor{max-width:none;width:100%;padding:12px 15px;border-radius:13px;margin-bottom:12px}.live-monitor h2{font-size:19px}.live-monitor-alerts{gap:7px}.live-absence-card{padding:8px 10px}.mirsad-heartbeat{min-height:0;padding:12px 16px;margin:0 0 10px;border-radius:11px;gap:18px}.mirsad-heartbeat strong{font-size:16px}.mirsad-heartbeat small{font-size:11px;margin-top:2px}.heartbeat-dot{width:22px;height:22px}
@media(max-width:650px){main{padding:8px}.page-header{padding:15px}.page-header h1{font-size:20px}.panel{padding:10px}input[type=url],input[type=password]{width:100%}.live-monitor{padding:10px}.mirsad-heartbeat{padding:12px 14px}.mirsad-heartbeat strong{font-size:15px}.scan-activity strong{font-size:13px}nav button,nav a{flex:1 1 42%;font-size:11px}}
#todayTable td,#archiveTable td{height:auto;min-height:0}#todayTable td>span,#archiveTable td>span{height:auto;min-height:24px}#todayTable td.no-lesson>span,#archiveTable td.no-lesson>span{padding:18px 0;min-height:0}.summary-cards{grid-template-columns:repeat(7,minmax(0,1fr));gap:7px;margin:10px 0 14px}.summary-card{padding:9px 10px;gap:3px;min-height:0;border-radius:10px;text-align:center}.summary-card strong{font-size:21px}.summary-card span{font-size:11px}.cell-tools .teams-lesson-link{background:#e7f5f1;color:#066a66;border:1px solid #b9ded7;padding:4px 6px}.cell-tools .edit-lesson{min-height:25px;font-size:10px;padding:3px 6px}@media(max-width:900px){.summary-cards{grid-template-columns:repeat(4,minmax(0,1fr))}}@media(max-width:550px){.summary-cards{grid-template-columns:repeat(2,minmax(0,1fr))}}

.letter-management{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin:10px 0}.letter-management small{flex-basis:100%;font-size:11px;color:#627680}.delete-letter,.teacher-report-card button.delete-letter{background:#fff0f1;color:#a42e40;border:1px solid #efc3cb}.teacher-report-downloads{display:flex;justify-content:center;gap:7px;flex-wrap:wrap}.teacher-report-card .teacher-report-downloads button{margin:8px 0}

/* School accounts use their login page; keep legacy transport controls out of the customer flow. */
.mirsad-admin-ready #connection{display:none!important}
