body[data-role="teacher"]{--td-navy:#0b2051;--td-blue:#0764ff;background:#f0f6ff;color:#102c68}
body[data-role="teacher"] main{font-size:16px;line-height:1.65}
body[data-role="teacher"] .mail-body{white-space:pre-wrap;overflow-wrap:anywhere;font:inherit;background:#f4f8ff;border:1px solid #dce7fb;padding:18px;border-radius:10px}
body[data-role="teacher"] #parent-mail details{padding:12px 0;border-bottom:1px solid #dce7fb}
body[data-role="teacher"] #parent-mail summary{cursor:pointer;overflow-wrap:anywhere}
body[data-role="teacher"] .nav-item{min-height:44px;height:auto}
body[data-role="teacher"] .td-event p:has(.math-expression){display:block;overflow:visible;-webkit-line-clamp:unset}
body[data-role="teacher"] .td-task-name{min-width:180px}
body[data-role="teacher"] .td-metric{min-width:0}
body[data-role="teacher"] .td-metric h2{line-height:1.5}
body[data-role="teacher"] .td-event{flex-wrap:wrap}
body[data-role="teacher"] .td-event>div{min-width:120px}
body[data-role="teacher"] .td-panel-head{flex-wrap:wrap}
body[data-role="teacher"] .sidebar{width:248px;background:linear-gradient(115deg,#112954,#0c1d40);color:#fff;border:0;padding:0;overflow-y:auto}
body[data-role="teacher"] .brand{height:82px;padding:14px 22px;background:transparent;border:0;color:white;font-size:16px;line-height:1.35;gap:12px}
body[data-role="teacher"] .brand strong{font-size:17px}body[data-role="teacher"] .brand>svg{width:34px;height:48px;filter:drop-shadow(0 0 5px #619dff)}
body[data-role="teacher"] .brand>span:after{content:'Học từ lỗi sai - Tiến bộ mỗi ngày';display:block;font-size:13px;font-weight:400;color:#c5d5fb;margin-top:3px}
body[data-role="teacher"] .shell{margin-left:248px}body[data-role="teacher"] .sidebar nav{padding:12px 13px;gap:6px;display:flex;flex-direction:column;margin:0}
body[data-role="teacher"] .nav-item{height:40px;padding:10px 16px;font-size:16px;color:#f0f4ff;gap:15px;border-radius:8px;flex:none}
body[data-role="teacher"] .nav-item:hover{background:#ffffff10}body[data-role="teacher"] .nav-item.active{background:linear-gradient(110deg,#245acd,#194fc3);color:white;box-shadow:0 5px 14px #001a5630}
body[data-role="teacher"] .nav-item .ui-icon{width:20px;height:20px;stroke:currentColor}body[data-role="teacher"] .teacher-nav-label{font-size:15px;color:#c1d3fc;margin:13px 12px 4px}
.teacher-side-logout{background:transparent;border:0;display:flex;align-items:center;text-align:left;cursor:pointer;width:100%}
body[data-role="teacher"] .sidebar-bottom{margin-top:auto;padding:32px 26px 25px}body[data-role="teacher"] .reference-quote{background:none;height:auto;padding:8px 0 12px 34px}
body[data-role="teacher"] .reference-quote .brain-art{position:absolute;left:0;top:0;width:30px;height:35px}body[data-role="teacher"] .reference-quote .smile-art{display:none}body[data-role="teacher"] .reference-quote p{font-family:inherit;font-size:16px;line-height:1.9;color:#bfd0ff;font-style:italic}
body[data-role="teacher"] .topbar{height:76px;padding:0 22px;gap:24px;background:#fff;border-bottom:1px solid #dfeaff}
body[data-role="teacher"] #global-search{visibility:visible;display:flex;width:min(48%,540px);height:39px;background:#eef4ff}
body[data-role="teacher"] .notification-button{visibility:visible;display:block;color:#235fd3}body[data-role="teacher"] .notification-button>span{display:none}
body[data-role="teacher"] .header-profile{min-width:175px;border-left:1px solid #c7d8f4;padding-left:22px}body[data-role="teacher"] .header-profile strong{font-size:16px}body[data-role="teacher"] .header-profile small{font-size:14px}body[data-role="teacher"] .header-profile .profile-photo img{width:100%;height:100%;object-fit:cover;left:0;top:0}
body[data-role="teacher"] .logout-button{font-size:14px;padding:7px 9px}body[data-role="teacher"] main{max-width:none;padding:18px 18px 24px}
.teacher-dashboard{max-width:1660px;margin:auto;font-size:16px}.teacher-dashboard *{box-sizing:border-box}.teacher-dashboard a{text-decoration:none}.teacher-dashboard h1,.teacher-dashboard h2,.teacher-dashboard h3{color:#092560;letter-spacing:0}.teacher-dashboard button,.teacher-dashboard input,.teacher-dashboard select{font:inherit}.teacher-dashboard select{margin:0;background:white;border:1px solid #dce7fc;border-radius:6px;color:#32579b;padding:8px 10px;font-size:15px;max-width:100%}
.td-welcome{display:flex;align-items:center;gap:26px;min-height:66px;margin-bottom:14px}.td-welcome>div:first-child{display:flex;gap:12px;align-items:center;flex:1;min-width:0}.td-wave{font-size:31px}.td-welcome h1{font-size:23px;line-height:1.4;margin:0 0 3px;font-weight:750}.td-welcome p{margin:0;color:#526fa5;font-size:15px}.td-date{display:flex;align-items:center;gap:12px;font-size:15px;color:#5575ad}.td-date .ui-icon{width:20px;color:#6a8dc5}.td-class-select{display:flex;align-items:center;gap:7px;border:1px solid #deE8fa;border-radius:7px;background:#fff;padding-left:10px;max-width:220px}.td-class-select .ui-icon{width:20px;color:#6c8ecd}.td-class-select select{border:0;min-width:130px;max-width:180px}
.td-metrics{padding:12px;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:13px;background:#fff;border:1px solid #e2edff;border-radius:11px;margin-bottom:14px}.td-metric{position:relative;display:flex;align-items:flex-start;gap:15px;padding:14px 13px;min-height:111px;border:1px solid #e3edff;border-radius:14px;color:#174aba}.td-metric.blue{background:linear-gradient(115deg,#edf5ff,#f3f7ff)}.td-metric.green{background:linear-gradient(115deg,#eafbf6,#effbf9);border-color:#def6ed;color:#009d80}.td-metric.purple{background:linear-gradient(115deg,#f4eeff,#f8f5ff);border-color:#ede4fc;color:#7446de}.td-metric.orange{background:linear-gradient(115deg,#fff5eb,#fff9f3);border-color:#faeede;color:#ed781e}.td-metric-icon{border-radius:50%;width:46px;height:46px;display:grid;place-items:center;flex:none;color:#fff;background:linear-gradient(135deg,#6bb6ff,#0060ff);box-shadow:inset 0 0 0 5px #ffffff20}.green .td-metric-icon{background:linear-gradient(135deg,#39dac1,#00a18b)}.purple .td-metric-icon{background:linear-gradient(135deg,#c28cff,#8443e5)}.orange .td-metric-icon{background:linear-gradient(135deg,#ffbe73,#ff7b27)}.td-metric h2{font-size:15px;color:inherit;margin:3px 0 5px;font-weight:600}.td-metric strong{font-size:29px;line-height:1.1;font-weight:750;color:#07256a}.green strong{color:#066755}.purple strong{color:#2b1a67}.orange strong{color:#ef741f}.td-metric small{display:block;margin-top:8px;color:#55709f;font-size:13px}.td-metric-arrow{position:absolute;right:12px;bottom:12px;width:24px;height:24px;background:#ffffff90;border-radius:50%;display:grid;place-items:center;font-size:18px}
.td-grid{display:grid;grid-template-columns:minmax(0,1.6fr) minmax(0,1fr);gap:13px}.td-panel{background:#fff;border:1px solid #e1edff;border-radius:11px;padding:15px;min-width:0}.td-panel-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:12px}.td-panel-head h2{display:flex;align-items:center;gap:11px;font-size:17px;font-weight:700;line-height:1.4;margin:0}.td-panel-head h2>.ui-icon{color:#247bff;width:23px;height:23px}.td-panel-head>a,.td-link{color:#0664ff;font-size:14px;white-space:nowrap}.td-link{border:0;padding:4px;background:transparent;cursor:pointer}.td-tabs{display:flex;gap:9px;margin-bottom:8px}.td-tabs button{color:#5271ac;background:#f4f7fc;border:1px solid #edf3ff;border-radius:12px;padding:6px 18px;font-size:14px;cursor:pointer}.td-tabs button[aria-selected=true]{background:white;color:#0966ff;border-color:#d2e3ff;border-bottom-color:#0866ff}
.td-chart-grid{display:grid;grid-template-columns:minmax(0,1.35fr) minmax(0,1fr);gap:10px}.td-chart-box{border:1px solid #ebf0fa;border-radius:8px;padding:12px 9px 9px;position:relative;min-width:0}.td-chart-box h3{font-size:14px;margin:0 0 18px;font-weight:650}.td-line-chart{width:100%;height:190px;display:block;overflow:visible}.td-line-chart text{font:11px 'Noto Sans',sans-serif;fill:#5a77ae}.td-chart-legend{display:flex;justify-content:center;gap:15px;margin:12px 0 3px;font-size:13px;color:#5471a9;flex-wrap:wrap}.td-chart-legend span{display:flex;align-items:center;gap:7px}.td-chart-legend i,.td-topic-legend i{width:8px;height:8px;border-radius:50%;display:inline-block;flex:none}.td-donut-wrap{display:flex;gap:10px;align-items:center;min-height:180px}.td-donut{width:46%;min-width:80px;max-width:175px;flex:none}.td-donut text{font:11px 'Noto Sans',sans-serif;fill:#123674}.td-donut text.td-donut-value{font-size:23px;font-weight:700}.td-topic-legend{flex:1;min-width:0}.td-topic-legend>div{display:flex;align-items:center;gap:6px;margin:13px 0;font-size:13px}.td-topic-legend b{margin-left:auto;font-weight:550}.td-topic-legend span{flex:1}.td-note{font-size:13px;color:#7b8dab;line-height:1.6;margin:9px 0 0}.td-empty-chart{font-size:14px;color:#657da5;text-align:center;margin:8px 0 0}.td-wide-topics{max-width:600px;padding:0 20px;margin:auto}.td-error-bars{min-height:267px;padding:10px 0}.td-error-bars>div{display:grid;grid-template-columns:180px 1fr 95px;gap:12px;align-items:center;margin:13px 0;font-size:14px}.td-error-bars b{font-size:13px;font-weight:500}
.teacher-dashboard table{width:100%;font-size:14px;color:#123572}.teacher-dashboard th{background:#f5f8fd;color:#123572;font-size:13px;white-space:nowrap;font-weight:500}.teacher-dashboard td,.teacher-dashboard th{padding:11px 9px;border-bottom:1px solid #edf2fc;vertical-align:middle}.td-table-scroll{overflow:auto}.td-task-name{display:flex;align-items:center;gap:10px;min-width:140px}.td-task-name strong{font-weight:550;font-size:14px}.teacher-dashboard td small{display:block;margin-top:8px;font-size:13px;color:#6b84b3}.td-task-icon,.td-event-icon{width:29px;height:29px;border-radius:7px;display:grid;place-items:center;background:#2f89ff;color:white;flex:none}.td-task-icon .ui-icon{width:20px;height:20px}.td-task-icon.green{background:#16bc9f}.td-task-icon.purple{background:#b16bec}.td-task-icon.orange{background:#ff9747}.td-button{display:inline-block;text-align:center;white-space:nowrap;font-size:13px;border:1px solid #d8e7ff;color:#0961ff;border-radius:6px;background:linear-gradient(#fff,#f2f7ff);padding:6px 9px;cursor:pointer}.td-button.primary{color:white;background:linear-gradient(#3b92ff,#0764ff);border-color:#3d92ff;box-shadow:0 3px 8px #1e73ff22}.td-empty{color:#6980a7;padding:25px 12px;text-align:center;font-size:15px;line-height:1.7}.td-empty-action{display:block;font-size:14px;text-align:right;margin-top:10px;color:#0964ff}
.td-student-controls{display:flex;gap:10px;align-items:center}.td-student-controls label{display:flex;align-items:center;border:1px solid #dde8fa;border-radius:6px;padding:5px 8px;gap:7px;max-width:180px}.td-student-controls .ui-icon{width:15px;color:#7394cc}.td-student-controls input{border:0;background:transparent;outline:0;width:100%;min-width:0;font-size:13px;color:#284f8f}.td-student-controls select{font-size:13px;padding:6px}.td-name{display:flex;align-items:center;gap:8px;white-space:nowrap}.td-avatar{width:26px;height:26px;border-radius:50%;display:grid;place-items:center;background:linear-gradient(145deg,#d0e7ff,#9dbce6);font-weight:700;font-size:14px;color:#34507b}.td-progress-cell{display:flex;align-items:center;gap:7px;font-size:13px;white-space:nowrap}.td-track{display:block;height:9px;min-width:70px;flex:1;background:#eaf1fc;border-radius:9px;overflow:hidden}.td-track i{display:block;height:100%;background:#397eff;border-radius:9px}.teacher-dashboard td.td-error{color:#e84864;font-size:13px}.td-see-all{display:block;text-align:right;color:#0764ff;font-size:13px;margin-top:16px}.td-event{display:flex;align-items:center;gap:11px;padding:12px 0;border-bottom:1px solid #edf2fc;color:#153571}.td-event>div{flex:1;min-width:0}.td-event p{font-size:14px;margin:0 0 5px;line-height:1.65;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.td-event strong{font-weight:650}.td-event small{font-size:12px;color:#738ec0}.td-event-icon{width:32px;height:32px;background:#15b99b;border:5px solid #e4f8f2;border-radius:50%}.td-event-icon .ui-icon{width:15px;height:15px}.td-event-icon.orange{background:#fa6376;border-color:#fff0f0}.td-event-icon.purple{background:#a765e6;border-color:#f4edff}.td-event-badge{padding:5px 8px;border-radius:12px;background:#eef8f6;color:#0b9a86;font-size:12px;white-space:nowrap}.td-search-results{margin-bottom:15px}.td-search-results h2{font-size:17px}.td-search-results>a{display:flex;gap:9px;padding:10px;border-bottom:1px solid #edf2fc}.td-loading{padding:50px;text-align:center;color:#5879ad}
@media(min-width:1450px){.td-chart-box{min-height:250px}.td-panel{padding:17px}.td-line-chart{height:196px}.td-metric{padding:14px}.td-welcome h1{font-size:24px}}
@media(max-width:1200px){body[data-role="teacher"] .sidebar{width:218px}body[data-role="teacher"] .shell{margin-left:218px}body[data-role="teacher"] .brand{padding-left:15px;font-size:16px}.td-grid{grid-template-columns:minmax(0,1.45fr) minmax(0,1fr)}.td-chart-grid{grid-template-columns:1fr}.td-chart-grid .td-donut-wrap{min-height:140px;max-width:430px;margin:auto}.td-chart-box h3{margin-bottom:8px}.td-metric{gap:9px;padding:12px 9px}.td-metric-icon{width:35px;height:35px}.td-metric h2{font-size:14px}.td-date{display:none}.td-student-controls{flex-wrap:wrap}.td-students .td-panel-head{flex-wrap:wrap}}
@media(max-width:900px){body[data-role="teacher"] .sidebar{width:76px;padding:0}body[data-role="teacher"] .shell{margin-left:76px}body[data-role="teacher"] .brand{padding:10px;justify-content:center}body[data-role="teacher"] .brand>span,body[data-role="teacher"] .nav-item>span,body[data-role="teacher"] .teacher-nav-label,body[data-role="teacher"] .sidebar-bottom{display:none}body[data-role="teacher"] .sidebar nav{padding:10px;gap:9px}body[data-role="teacher"] .nav-item{padding:10px;justify-content:center}.td-grid{grid-template-columns:1fr}.td-chart-grid{grid-template-columns:1.35fr 1fr}.td-metrics{grid-template-columns:repeat(2,1fr)}body[data-role="teacher"] .header-profile{min-width:130px;padding-left:10px}.td-welcome h1{font-size:21px}}
@media(max-width:560px){body[data-role="teacher"] .sidebar{position:fixed;inset:auto 0 0;width:100%;height:64px;z-index:30;overflow-x:auto;overflow-y:hidden;background:#102650}body[data-role="teacher"] .sidebar .brand{display:none}body[data-role="teacher"] .sidebar nav{display:flex;flex-direction:row;gap:4px;padding:4px;width:max-content;height:64px}body[data-role="teacher"] .nav-item{width:76px;height:55px;display:flex;flex-direction:column;gap:3px;padding:7px 4px}body[data-role="teacher"] .nav-item>span{display:block;font-size:12px;white-space:nowrap}body[data-role="teacher"] .shell{margin:0;padding-bottom:64px}body[data-role="teacher"] main{padding:12px 10px}body[data-role="teacher"] .topbar{height:65px;padding:0 12px;gap:12px}body[data-role="teacher"] #global-search{width:40%;flex:1;min-width:70px;padding:0 8px}body[data-role="teacher"] #global-search input{font-size:13px}body[data-role="teacher"] .header-profile{min-width:0;padding-left:8px}body[data-role="teacher"] .header-profile strong{font-size:13px;max-width:100px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}body[data-role="teacher"] .header-profile small{font-size:12px}body[data-role="teacher"] .profile-photo{width:30px;height:30px}body[data-role="teacher"] .logout-button{display:none}.td-welcome{flex-wrap:wrap;gap:12px}.td-welcome>div:first-child{flex-basis:100%}.td-welcome h1{font-size:20px}.td-welcome p{font-size:14px}.td-class-select{margin-left:auto}.td-metrics{padding:8px;gap:8px}.td-metric{min-height:110px;gap:7px}.td-metric-icon{width:30px;height:30px}.td-metric-icon .ui-icon{width:18px}.td-metric strong{font-size:25px}.td-metric small{font-size:12px;max-width:95px}.td-metric-arrow{right:8px;bottom:8px;width:19px;height:19px}.td-chart-grid{grid-template-columns:1fr}.td-panel{padding:12px}.td-panel-head h2{font-size:16px}.td-panel-head{flex-wrap:wrap}.td-student-controls{width:100%}.td-student-controls label{max-width:none;flex:1}.td-donut-wrap{max-width:380px}.td-topic-legend>div{font-size:14px}.td-error-bars>div{grid-template-columns:120px 1fr 80px;gap:6px;font-size:13px}.td-event-badge{font-size:12px}.td-event p{font-size:14px}.td-line-chart{height:auto}}
@media(min-width:1201px){.teacher-dashboard .td-chart-box{min-height:230px}.teacher-dashboard .td-line-chart{height:174px}.teacher-dashboard .td-students td,.teacher-dashboard .td-students th{padding-top:8px;padding-bottom:8px}.teacher-dashboard .td-event{padding-top:10px;padding-bottom:10px}}
@media(max-width:560px){body[data-role="teacher"] .nav-item>span{max-width:100%;overflow:hidden;text-overflow:ellipsis}.teacher-dashboard table{font-size:15px}.teacher-dashboard .td-task-name strong,.teacher-dashboard .td-event p{font-size:15px}}
