/* v1.7.60 – BS129: trang Lớp học theo không gian + hộp Tạo lớp / Hoàn thiện thông tin lớp (Canvas "Nguyên mẫu Tương tác Quản lý Lớp"). Chỉ teal + hổ phách. */
.modal .card.lm-m{max-width:560px;width:100%;max-height:none;overflow:visible;padding:0}
.modal:has(.card.lm-m){overflow-y:auto;place-items:start center}
.lm{display:flex;flex-direction:column}
.lm-dau{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;padding:20px 24px 14px;border-bottom:1px solid var(--line)}
.lm-dau h2{margin:0;font-size:20px}
.lm-dau p{margin:4px 0 0;font-size:14px}
.lm-x{min-width:44px;min-height:44px;padding:0;display:inline-flex;align-items:center;justify-content:center}
.lm-than{display:flex;flex-direction:column;gap:8px;padding:18px 24px}
.lm-hd{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap;margin-top:8px}
.lm-lb{font-weight:600;font-size:15px;color:var(--ink);padding:0}
.lm-lb i{color:var(--crit,#dc2626);font-style:normal}
.lm-in{width:100%;min-height:46px;font-size:15px}
.lm-kg{border:0;margin:0;padding:0;min-width:0}
.lm-quyen{font-size:12.5px;font-weight:600;color:var(--accent);background:var(--accent-soft,#f0fdfa);border-radius:8px;padding:3px 10px}
.lm-kgo{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:8px}
.lm-the{display:flex;gap:10px;align-items:flex-start;padding:14px;border:1.5px solid var(--line);border-radius:14px;cursor:pointer;min-height:44px}
.lm-the.on{border-color:var(--accent);background:var(--accent-soft,#f0fdfa)}
.lm-the input{width:18px;height:18px;margin-top:2px;accent-color:var(--accent);flex:none}
.lm-the b{display:block;font-size:15px}
.lm-the small{display:block;color:var(--muted);font-size:13.5px;margin-top:2px;line-height:1.4}
.lm-km{display:flex;flex-direction:column;gap:8px}
.lm-tg{display:inline-flex;align-items:center;gap:10px;min-height:44px;padding:0 12px;border-radius:12px;background:var(--bg);border:1px solid var(--line);font-size:14px;font-weight:500;cursor:pointer}
.lm-tg input{position:absolute;opacity:0;width:1px;height:1px}
.lm-tg i{position:relative;width:42px;height:24px;border-radius:999px;background:#cbd5e1;transition:background .15s;flex:none}
.lm-tg i::after{content:"";position:absolute;top:3px;left:3px;width:18px;height:18px;border-radius:50%;background:#fff;box-shadow:0 1px 2px rgba(0,0,0,.2);transition:transform .15s}
.lm-tg input:checked+i{background:var(--accent)}
.lm-tg input:checked+i::after{transform:translateX(18px)}
.lm-tg input:focus-visible+i{outline:2px solid var(--accent);outline-offset:2px}
.lm-luoi{display:grid;grid-template-columns:repeat(4,1fr);gap:10px}
.lm-luoi button{min-height:44px;border:1.5px solid var(--line);border-radius:10px;background:var(--surface,#fff);font:600 15px var(--f-body,inherit);color:var(--ink);cursor:pointer}
.lm-luoi button:hover{border-color:var(--accent)}
.lm-luoi button.on{background:var(--accent);border-color:var(--accent);color:#fff}
.lm-luoi button.dau{box-shadow:0 0 0 3px color-mix(in srgb,var(--accent) 30%,transparent)}
.lm-luoi[hidden],.lm-td[hidden]{display:none}
.lm-td{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.lm-td label{display:flex;flex-direction:column;gap:6px;font-size:14px;font-weight:600;color:var(--muted)}
.lm-td p{grid-column:1/-1;margin:0}
.lm-cap{font-size:13.5px;font-weight:600;color:var(--accent)}
.lm-nk{display:flex;flex-direction:column;gap:8px;margin-top:8px}
.lm-nk .lm-in[hidden]{display:none}
.lm-2c{display:grid;grid-template-columns:1fr 200px;gap:12px;margin-top:8px}
.lm-2c>div{display:flex;flex-direction:column;gap:8px}
.lm-2c>div:only-child{grid-column:1/-1}
.lm-duyet{margin-top:6px}
.lm-goiy{display:flex;gap:10px;align-items:flex-start;padding:12px 14px;border-radius:12px;background:#fffbeb;border:1px solid #fde68a;color:#92400e;font-size:14px;line-height:1.5}
.lm-goiy svg{flex:none;margin-top:2px}
.lm-goiy b{color:#92400e}
.lm-goiy span{display:block}
.lm-loi{margin:4px 0 0;padding:10px 12px;border-radius:10px;background:#fef2f2;border:1px solid #fecaca;color:#991b1b;font-size:14px}
.lm-chan{position:sticky;bottom:0;display:flex;justify-content:flex-end;gap:10px;padding:14px 24px;padding-bottom:max(14px,env(safe-area-inset-bottom));border-top:1px solid var(--line);background:var(--surface,#fff);border-radius:0 0 var(--r,16px) var(--r,16px)}
.lm-chan .btn{min-height:44px}
/* ---------- trang Lớp học ---------- */
.tcl-nk{display:inline-flex;align-items:center;gap:8px;font-size:14px;font-weight:600;color:var(--muted)}
.tcl-nk select{min-height:44px}
.tcl-thieu{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin:14px 0;padding:12px 14px;border-radius:12px;background:#fffbeb;border:1px solid #fde68a;color:#92400e;font-size:14.5px}
.tcl-thieu svg{flex:none;width:20px;height:20px}
.tcl-thieu span{flex:1;min-width:200px}
.tcl-thieu .btn{min-height:44px}
.tcl-nkkhac{margin:8px 0 0;font-size:14px;color:var(--muted)}
.tcl-nkkhac button{border:0;background:none;color:var(--accent);font:inherit;font-weight:600;cursor:pointer;min-height:44px;padding:0 4px}
.tcl-kg{margin-top:18px}
.tcl-kg>h2{display:flex;align-items:center;flex-wrap:wrap;gap:4px 10px;margin:0 0 4px;font-size:18px}
.tcl-kg>h2 svg{width:22px;height:22px;color:var(--accent)}
.tcl-kg>h2 small{font-size:14px;font-weight:500;color:var(--muted);white-space:nowrap}
.tcl-kg>p{margin:0 0 10px;font-size:14px;color:var(--muted)}
.cr-thieu{display:inline-flex;align-items:center;gap:6px;min-height:36px;padding:0 10px;border-radius:999px;border:1px solid #fcd34d;background:#fffbeb;color:#92400e;font:600 13px var(--f-body,inherit);cursor:pointer;white-space:nowrap}
.cr-thieu b{text-decoration:underline}
.clsrow.thieu{border-color:#fcd34d}
.cr-hc{display:inline-flex;align-items:center;gap:6px;font-size:12.5px;font-weight:600}
.cr-hc .ma{background:#0f766e;color:#fff;border-radius:6px;padding:1px 7px}
.cr-hc .pc{color:var(--accent)}
@media (max-width:640px){
  .modal:has(.card.lm-m){place-items:start stretch;padding:0}
  .modal .card.lm-m{max-width:none!important;width:100%;min-height:100%;border-radius:0;margin:0}
  .lm-dau,.lm-than{padding-left:16px;padding-right:16px}
  .lm-chan{padding-left:16px;padding-right:16px;border-radius:0}
  .lm-chan .btn{flex:1;justify-content:center}
  .lm-kgo{grid-template-columns:1fr}
  .lm-luoi{gap:8px}
  .lm-luoi button{font-size:14px;padding:0 2px}
  .lm-2c{grid-template-columns:1fr}
  .lm-tg{width:100%;justify-content:space-between}
  .tcl-nhom summary>i{display:none}   /* dòng lớp đã có nhãn "Hoàn thiện ngay" – bỏ lời nhắc dài làm vỡ tiêu đề nhóm */
}
