/* 僅調整老師首頁的版面與新學生出勤介面；既有專案、交辦、日誌標籤與清單樣式沿用。 */
.personal-home.teacher-home .teacher-home-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;align-items:stretch}
.personal-home.teacher-home .home-attendance{border-top:1px solid #ead9c2}
.personal-home.teacher-home .home-attendance .home-panel-link{background:transparent;border-color:transparent;color:#833b1d;padding:5px 8px}
.personal-home.teacher-home .home-attendance .home-panel-link:hover{background:#f8ebda}
.personal-home.teacher-home .ta-home-scope{margin:12px 0;color:#715b4e}
.personal-home.teacher-home .ta-status-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
.personal-home.teacher-home .ta-status-card{min-width:0;border:1px solid #ead9c2;border-radius:10px;padding:9px;background:#fffdf8}
.personal-home.teacher-home .ta-status-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:6px;width:100%;padding:0;border:0;background:transparent;color:#372219;text-align:left;font-size:.8rem;min-height:28px}
.personal-home.teacher-home .ta-status-heading strong{flex:none;white-space:nowrap;font-variant-numeric:tabular-nums}
.personal-home.teacher-home .ta-status-label{display:flex;align-items:center;gap:5px;min-width:0;overflow-wrap:anywhere}
.personal-home.teacher-home .ta-dot{width:8px;height:8px;border-radius:50%;flex:none;background:#827b71}
.personal-home.teacher-home [data-tone=green] .ta-dot{background:#2d7950}
.personal-home.teacher-home [data-tone=blue] .ta-dot{background:#426f96}
.personal-home.teacher-home [data-tone=amber] .ta-dot{background:#ad6816}
.personal-home.teacher-home [data-tone=red] .ta-dot{background:#b34235}
.personal-home.teacher-home [data-tone=purple] .ta-dot{background:#8863a0}
.personal-home.teacher-home .ta-status-members{display:flex;flex-direction:column;gap:6px;margin-top:5px}
.personal-home.teacher-home .ta-member{width:100%;min-width:0;padding:2px 0;border:0;background:transparent;text-align:left;color:#372219}
.personal-home.teacher-home .ta-member:hover{text-decoration:underline}
.personal-home.teacher-home .ta-count-note{margin-top:12px;font-size:.75rem}
.personal-home.teacher-home .ta-none{font-size:.75rem}
.teacher-home .ta-person,.ta-report .ta-person{display:inline-flex;align-items:center;gap:6px;min-width:0;max-width:100%;font-size:.8rem;color:#372219}
.teacher-home .ta-person>span:last-child,.ta-report .ta-person>span:last-child{overflow-wrap:anywhere;min-width:0}
.teacher-home .ta-person-avatar,.ta-report .ta-person-avatar{display:grid;place-items:center;width:28px;height:28px;border-radius:50%;overflow:hidden;flex:none;background:#f0e4d0;color:#78502b;font-weight:650}
.teacher-home .ta-person-avatar img,.ta-report .ta-person-avatar img{display:block;width:100%;height:100%;object-fit:cover}
.ta-report{min-width:0;color:#372219}
.ta-report .ta-back{margin:8px 0 12px}
.ta-report .ta-report-note,.ta-report .ta-summary{color:#715b4e;font-size:.86rem;margin:10px 0}
.ta-report .ta-filters{margin:16px 0}
.ta-report .ta-report-message{margin:10px 0;font-size:.86rem}
.ta-report .ta-table-wrap{overflow-x:auto;max-width:100%}
.ta-report table{border-collapse:collapse;width:100%;min-width:620px;font-size:.86rem}
.ta-report th,.ta-report td{padding:10px;border-bottom:1px solid #ead9c2;text-align:left;vertical-align:top}
.ta-report th{background:#f4eadc;color:#68482f;white-space:nowrap}
.ta-report td small{display:block;color:#715b4e;white-space:nowrap}
.ta-report td details p{min-width:180px;max-width:300px;overflow-wrap:anywhere}
.ta-report .ta-pagination{display:flex;gap:10px;flex-wrap:wrap;align-items:center;margin-top:16px}
.ta-report .ta-empty{margin:24px 0;color:#715b4e}
@media(max-width:700px){
 .personal-home.teacher-home .teacher-home-grid{grid-template-columns:1fr;gap:10px}
 .personal-home.teacher-home .ta-status-heading,.personal-home.teacher-home .ta-member{min-height:44px}
 .personal-home.teacher-home .ta-person{font-size:.86rem}
 .ta-report input,.ta-report select{font-size:16px}
}
