/* TD-188D (9.7.0): app tổ trưởng – lớp .tt (không đổi kiểu chung). Mẫu: docs/tong-dong/TD-188-giao-dien-dien-thoai-nld/thiet-ke/to-truong*.png */
.tt, .tt-sheet-bg { --tt-c: #b4530e; --tt-c2: #fdf1e6; --tt-ok: #16794a; --tt-vang: #b7791f; --tt-do: #c62828; --tt-xanh: #1d5fbf; --tt-cam: #c2560c; --tt-xam: #6b7280; --tt-vien: #e7e1da; }
.tt { max-width: 560px; margin: 0 auto; padding: 0 12px 24px; font-size: 15px; color: #1f2328; }
.tt.co-thanh { padding-bottom: 120px; }
.tt-head { display: flex; align-items: center; gap: 10px; margin: 0 -12px 12px; padding: 14px 16px; background: var(--tt-c); color: #fff; }
.tt-head h1 { font-size: 19px; margin: 0; line-height: 1.25; color: #fff; }
.tt-head-t { flex: 1; min-width: 0; }
.tt-head-p { font-size: 13px; opacity: .9; margin-top: 2px; }
.tt-lui { color: #fff; font-size: 28px; text-decoration: none; min-width: 32px; min-height: 44px; display: flex; align-items: center; }
.tt-lam-moi { color: #fff; min-width: 44px; min-height: 44px; display: flex; align-items: center; justify-content: center; border-radius: 10px; background: rgba(255,255,255,.16); }
.tt-chon-to { display: flex; gap: 6px; overflow-x: auto; margin-bottom: 10px; }
.tt-chon-to a { padding: 8px 14px; border-radius: 18px; border: 1px solid var(--tt-vien); text-decoration: none; color: inherit; white-space: nowrap; }
.tt-chon-to a.on { background: var(--tt-c2); border-color: var(--tt-c); color: var(--tt-c); font-weight: 600; }
.tt-the { display: block; background: #fff; border: 1px solid var(--tt-vien); border-radius: 14px; padding: 12px 14px; margin-bottom: 10px; color: inherit; text-decoration: none; }
.tt-the h3 { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 16px; margin: 0 0 6px; }
.tt-viech { border-left: 4px solid var(--tt-xam); }
.tt-viech.m-ok { border-left-color: var(--tt-ok); } .tt-viech.m-vang { border-left-color: var(--tt-vang); } .tt-viech.m-do { border-left-color: var(--tt-do); }
.tt-viech.m-cam { border-left-color: var(--tt-cam); } .tt-viech.m-xanh { border-left-color: var(--tt-xanh); }
.tt-ghi { font-size: 13px; color: var(--tt-xam); margin: 6px 0; }
.tt-dong { margin: 4px 0; }
.tt-nhom { display: flex; justify-content: space-between; align-items: baseline; font-size: 13px; font-weight: 700; letter-spacing: .02em; text-transform: uppercase; color: #4b5563; margin: 14px 2px 6px; }
.tt-nhom .r { font-weight: 500; text-transform: none; color: var(--tt-c); }
.tt-nhom.nut { width: 100%; background: none; border: 0; padding: 0; cursor: pointer; text-align: left; min-height: 36px; }
.tt-ma { display: flex; justify-content: space-between; gap: 8px; font-size: 14px; color: #374151; }
.tt-ma b { font-size: 16px; color: #111; }
.tt-big b { font-size: 34px; font-weight: 800; }
.tt-big span { color: #4b5563; }
.tt-hang { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-top: 8px; font-size: 13px; color: #4b5563; }
.tt-bar { height: 8px; border-radius: 4px; background: #eee7df; overflow: hidden; margin-top: 6px; }
.tt-bar i { display: block; height: 100%; background: var(--tt-xam); }
.tt-bar i.m-ok { background: var(--tt-ok); } .tt-bar i.m-vang { background: var(--tt-vang); } .tt-bar i.m-do { background: var(--tt-do); }
.tt-kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-bottom: 10px; }
.tt-kpi { background: #fff; border: 1px solid var(--tt-vien); border-radius: 12px; padding: 8px 4px; text-align: center; }
.tt-kpi b { display: block; font-size: 20px; }
.tt-kpi span { display: block; font-size: 11px; color: #4b5563; line-height: 1.25; }
.m-ok > b, b.m-ok, .tt-kpi.m-ok b { color: var(--tt-ok); } .tt-kpi.m-vang b, b.m-vang { color: var(--tt-vang); } .tt-kpi.m-do b, b.m-do { color: var(--tt-do); } .tt-kpi.m-xanh b { color: var(--tt-xanh); }
.tt-tag { display: inline-block; font-size: 12px; font-weight: 600; padding: 3px 9px; border-radius: 12px; background: #f1f1f1; color: #374151; white-space: nowrap; }
.tt-tag.m-ok { background: #e3f4ea; color: var(--tt-ok); } .tt-tag.m-vang { background: #fdf3dc; color: #8a5a10; } .tt-tag.m-do { background: #fde5e5; color: var(--tt-do); }
.tt-tag.m-xanh { background: #e5eefb; color: var(--tt-xanh); } .tt-tag.m-cam { background: #fdebdc; color: var(--tt-cam); }
.tt-viecs { list-style: none; margin: 0 0 10px; padding: 0; background: #fff; border: 1px solid var(--tt-vien); border-radius: 14px; }
.tt-viec { display: flex; align-items: flex-start; gap: 10px; padding: 10px 12px; border-top: 1px solid #f0ebe5; }
.tt-viec:first-child { border-top: 0; }
.tt-cham { width: 10px; height: 10px; border-radius: 50%; margin-top: 6px; flex: none; background: var(--tt-xam); }
.tt-viec.m-do .tt-cham { background: var(--tt-do); } .tt-viec.m-cam .tt-cham { background: var(--tt-cam); } .tt-viec.m-xanh .tt-cham { background: var(--tt-xanh); }
.tt-viec-t { flex: 1; min-width: 0; }
.tt-viec-t b { display: block; font-size: 15px; }
.tt-viec-t span { display: block; font-size: 13px; color: #4b5563; }
.tt-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 40px; min-width: 64px; padding: 0 14px; border-radius: 10px; border: 1px solid var(--tt-vien);
  background: #fff; color: #1f2328; font-weight: 600; font-size: 14px; text-decoration: none; cursor: pointer; flex: none; }
.tt-btn.pri { background: var(--tt-c); border-color: var(--tt-c); color: #fff; }
.tt-btn.ok { background: var(--tt-ok); border-color: var(--tt-ok); color: #fff; }
.tt-btn.to { width: 100%; min-height: 50px; font-size: 16px; }
.tt-btn:disabled { opacity: .5; cursor: default; }
.tt-hai { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 8px; }
.tt-luoi { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-bottom: 10px; }
.tt-luoi.g2, .tt-luoi.n3 { grid-template-columns: repeat(3, 1fr); }
.tt-luoi.n1, .tt-luoi.n2 { grid-template-columns: repeat(2, 1fr); }
.tt-luoi a { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 10px 4px; min-height: 64px; background: #fff; border: 1px solid var(--tt-vien); border-radius: 12px; color: var(--tt-c); text-decoration: none; font-size: 13px; font-weight: 600; }
.tt-dd-the { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 12px 14px; margin-bottom: 10px; border-radius: 14px; background: var(--tt-c2); border: 1px solid #f3cfaa; color: inherit; text-decoration: none; }
.tt-dd-the span:not(.tt-btn) { display: block; font-size: 13px; color: #4b5563; }
.tt-ds { list-style: none; margin: 0 0 10px; padding: 0; background: #fff; border: 1px solid var(--tt-vien); border-radius: 14px; }
.tt-ds li { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-top: 1px solid #f0ebe5; }
.tt-ds li:first-child { border-top: 0; }
.tt-ds li.chua { background: #fff8e8; }
.tt-ds li.mo { opacity: .45; }
.tt-ds.gon li { justify-content: space-between; }
.tt-ds.sua select { min-height: 40px; max-width: 46%; }
.tt-nguoi { display: flex; align-items: center; gap: 10px; flex: 1; min-width: 0; min-height: 48px; background: none; border: 0; padding: 0; text-align: left; font: inherit; color: inherit; cursor: pointer; }
.tt-nguoi input[type=checkbox] { width: 22px; height: 22px; flex: none; accent-color: var(--tt-c); }
.tt-nguoi.ca-to { background: #fff; border: 1px solid var(--tt-vien); border-radius: 14px; padding: 6px 12px; margin-bottom: 6px; }
.tt-ds-t { flex: 1; min-width: 0; }
.tt-ds-t b { display: block; font-size: 15px; }
.tt-ds-t span { display: block; font-size: 12.5px; color: #4b5563; }
.tt-avt { width: 36px; height: 36px; border-radius: 50%; background: var(--tt-c2); color: var(--tt-c); font-weight: 700; font-size: 13px; display: inline-flex; align-items: center; justify-content: center; flex: none; }
.tt-avts { display: inline-flex; }
.tt-avts .tt-avt { width: 30px; height: 30px; font-size: 11px; margin-right: -6px; border: 2px solid #fff; }
.tt-gon { display: flex; align-items: center; gap: 14px; width: 100%; cursor: pointer; font: inherit; text-align: left; }
.tt-gio { text-align: right; flex: none; }
.tt-gio b { display: block; font-size: 14px; } .tt-gio small { font-size: 11px; color: var(--tt-xam); }
.tt-gio.m-do b { color: var(--tt-do); } .tt-gio.m-vang b { color: var(--tt-vang); }
.tt-thanh { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; background: #fff; border-top: 1px solid var(--tt-vien); padding: 10px 14px calc(10px + env(safe-area-inset-bottom)); box-shadow: 0 -4px 14px rgba(0,0,0,.06); }
.tt-thanh > * { max-width: 532px; margin-left: auto; margin-right: auto; }
.tt-tong-t { text-align: center; font-size: 14px; margin-bottom: 8px; }
.tt-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.tt-chip { min-height: 44px; padding: 0 14px; border-radius: 22px; border: 1px solid var(--tt-vien); background: #fff; font: inherit; font-size: 14px; cursor: pointer; }
.tt-chip.on { background: var(--tt-c2); border-color: var(--tt-c); color: var(--tt-c); font-weight: 700; }
.tt-truong { display: flex; align-items: center; gap: 10px; margin: 10px 0; }
.tt-truong span { min-width: 92px; font-size: 14px; color: #4b5563; }
.tt-truong input { flex: 1; min-height: 44px; }
.tt-truong.nho input { flex: none; }
.tt-goi-y { background: #eef4fd; border-color: #c9dbf6; }
.tt-goi-y h3 { color: var(--tt-xanh); }
.tt-sheet-bg { position: fixed; inset: 0; z-index: 1000; background: rgba(17,24,39,.45); display: flex; align-items: flex-end; justify-content: center; }
.tt-sheet { width: 100%; max-width: 560px; background: #fff; border-radius: 18px 18px 0 0; padding: 8px 16px calc(16px + env(safe-area-inset-bottom)); max-height: 92vh; overflow: auto; }
.tt-sheet h2 { font-size: 18px; margin: 6px 0 0; }
.tt-keo { display: block; width: 44px; height: 5px; border-radius: 3px; background: #d6d3d1; margin: 0 auto 6px; }
.tt-ghi-nho { font-size: 12px; font-weight: 700; text-transform: uppercase; color: #4b5563; margin: 10px 0 6px; }
.tt-chons { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.tt-chon { min-height: 56px; border-radius: 12px; border: 1.5px solid var(--tt-vien); background: #fff; font: inherit; font-size: 15px; font-weight: 600; cursor: pointer; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.tt-chon small { font-size: 11px; font-weight: 500; color: var(--tt-xam); }
.tt-chon.rong { grid-column: 1 / -1; }
.tt-chon.on { border-color: var(--tt-c); background: var(--tt-c2); color: var(--tt-c); }
.tt-cong { display: flex; align-items: center; justify-content: space-between; min-height: 52px; margin: 10px 0; padding: 0 12px; border: 1px solid var(--tt-vien); border-radius: 12px; position: relative; cursor: pointer; }
.tt-cong input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.tt-cong i { width: 48px; height: 28px; border-radius: 14px; background: #d1d5db; position: relative; transition: background .15s; }
.tt-cong i::after { content: ''; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; transition: left .15s; }
.tt-cong input:checked + i { background: var(--tt-ok); }
.tt-cong input:checked + i::after { left: 23px; }
.tt-cong input:focus-visible + i { outline: 2px solid var(--tt-c); outline-offset: 2px; }
.tt-sheet input[type=text] { width: 100%; min-height: 44px; margin-bottom: 8px; box-sizing: border-box; }
@media (max-width: 380px) { .tt-kpis, .tt-luoi { grid-template-columns: repeat(2, 1fr); } .tt-big b { font-size: 30px; } }
