/* Keep the automatic report matrix readable in detail modals and editors. */
body .attendance-auto-report figure.table{display:block;width:100%;max-width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch}
body .attendance-auto-report table{border-collapse:collapse;min-width:100%;width:max-content}
body .attendance-auto-report table :is(th,td){white-space:nowrap!important;word-break:normal!important;overflow-wrap:normal!important;vertical-align:middle;padding:8px 10px}
body .attendance-auto-report table th{font-weight:700}
body .attendance-monthly-report .monthly-metrics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:14px 0}
body .attendance-monthly-report .monthly-metrics small{color:#64748b}
body .attendance-monthly-report .monthly-trend{margin:12px 0}
body .attendance-monthly-report .monthly-trend-row{display:grid;grid-template-columns:100px minmax(0,1fr) 50px;gap:12px;align-items:center;margin:10px 0;font-size:13px;white-space:nowrap}
@media(max-width:600px){body .attendance-monthly-report .monthly-metrics{grid-template-columns:1fr;gap:8px}}
@media print{body .attendance-auto-report figure.table{overflow:visible}body .attendance-auto-report table{width:100%;min-width:0}body .attendance-auto-report tr{break-inside:avoid;page-break-inside:avoid}}
