/* B222 · Tổng quan bài đăng V1 (ảnh TONG_QUAN_V1 T1–T3). Tiền tố riêng `.tq-`; CHỈ dùng token của Sổ mẫu (0 mã màu, 0 cỡ chữ cứng).
   Luật 3 khổ: 1024 GIỮ bố cục 1440 (chỉ co lại). Duy nhất một điểm gãy ≤640px (điện thoại) mới xếp dọc — dưới ngưỡng 900px nên cổng CSS_BREAKPOINT cho phép. */
.tq-loc { display: flex; align-items: flex-end; gap: var(--space-3); flex-wrap: wrap; margin-bottom: var(--space-3); }
.tq-fld { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.tq-fld > small { font-size: var(--text-sm); color: var(--text-secondary); font-weight: var(--weight-semibold); }
.tq-fld .fbar-select { min-width: 190px; max-width: 100%; }
.tq-sc { margin-left: auto; font-size: var(--text-sm); color: var(--text-secondary); }

.tq-dai { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: var(--space-3); margin-bottom: var(--space-3); }
.tq-o { display: flex; flex-direction: column; align-items: flex-start; gap: 0; text-align: left; font: inherit; cursor: pointer;
  padding: var(--space-3) var(--space-4); background: var(--bg-surface); border: 1px solid var(--border-default); border-top: 4px solid currentColor;
  border-radius: var(--radius-lg); min-width: 0; }
.tq-o b { font-size: var(--text-3xl, 34px); line-height: 1.1; font-weight: var(--weight-semibold); }
.tq-o span { font-size: var(--text-md); color: var(--text-strong); font-weight: var(--weight-medium); }
.tq-o small { font-size: var(--text-sm); color: var(--text-secondary); }
.tq-o:hover { box-shadow: var(--shadow-sm, 0 2px 8px rgba(19, 35, 60, .12)); }
.tq-o-warning { color: var(--status-warning); } .tq-o-info { color: var(--status-info); } .tq-o-success { color: var(--status-success); }
.tq-o-danger { color: var(--status-danger); } .tq-o-collab { color: var(--status-collab); }

.tq-g2 { display: grid; grid-template-columns: minmax(0, 58fr) minmax(0, 42fr); gap: var(--space-3); margin-bottom: var(--space-3); }
.tq-g2 > .tq-sec { align-self: start; }
.tq-sec { min-width: 0; }
.tq-n { display: inline-block; margin-left: var(--space-2); padding: 0 var(--space-2); border-radius: var(--radius-lg); background: var(--text-title); color: var(--text-inverse); font-size: var(--text-sm); vertical-align: middle; }

.tq-todo { display: flex; flex-direction: column; gap: var(--space-2); }
.tq-ti { display: grid; grid-template-columns: 36px minmax(0, 1fr) auto; gap: var(--space-3); align-items: center; padding: var(--space-2) var(--space-3);
  border: 1px solid var(--border-default); border-radius: var(--radius-md); background: var(--bg-surface); }
.tq-ic { width: 36px; height: 36px; border-radius: var(--radius-md); display: flex; align-items: center; justify-content: center; font-size: var(--text-lg); }
.tq-ic-warning { background: var(--status-warning-soft); color: var(--status-warning); } .tq-ic-danger { background: var(--status-danger-soft); color: var(--status-danger); }
.tq-ic-info { background: var(--status-info-soft); color: var(--status-info); } .tq-ic-collab { background: var(--status-collab-soft); color: var(--status-collab); }
.tq-tx { min-width: 0; } .tq-tx b { display: block; color: var(--text-title); font-size: var(--text-md); line-height: 1.3; }
.tq-tx span { display: block; color: var(--text-secondary); font-size: var(--text-sm); line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.tq-tb { width: 100%; }
.tq-tb th.n, .tq-tb td.n { text-align: right; }
.tq-none { color: var(--text-disabled); font-style: italic; font-size: var(--text-sm); }
.tq-kn { display: inline-block; width: 14px; height: 14px; border-radius: 4px; margin-right: var(--space-2); vertical-align: -2px; background: var(--text-secondary); }
.tq-kn-fb { background: var(--ch-fb, var(--status-info)); } .tq-kn-yt { background: var(--ch-yt, var(--status-danger)); }
.tq-kn-tt { background: var(--ch-tt, var(--text-title)); } .tq-kn-gr { background: var(--ch-grp, var(--status-collab)); }
.tq-ghichu { margin: var(--space-2) 0 0; }
.tq-nguoi-wrap { max-height: 280px; overflow: auto; }
.tq-nguoi-wrap tbody tr { cursor: pointer; }
.tq-nguoi-wrap tbody tr:hover, .tq-nguoi-wrap tbody tr.is-chon { background: var(--brand-primary-soft); }
.tq-ch td:first-child { padding-left: var(--space-6); }
.tq-loi { color: var(--status-danger); font-weight: var(--weight-semibold); }

@media (max-width: 640px) {
  .tq-fld { flex: 1 1 140px; } .tq-fld .fbar-select { min-width: 0; width: 100%; } .tq-sc { display: none; }
  .tq-dai { grid-auto-flow: row; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tq-dai .tq-o:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .tq-o { padding: var(--space-2) var(--space-3); } .tq-o b { font-size: var(--text-2xl); }
  .tq-g2 { grid-template-columns: minmax(0, 1fr); }
  table.data.tq-tb th, table.data.tq-tb td { padding: var(--space-2) var(--space-1); font-size: var(--text-sm); letter-spacing: 0; }
  .tq-tb td:first-child { white-space: nowrap; }
  .tq-tb td .pd-hint { display: none; }
  .tq-tb .tq-none { font-size: var(--text-xs); }
  .tq-ch td:first-child { padding-left: var(--space-4); }
  /* Theo người: vừa 375, không cuộn ngang — cột tên co + xuống dòng, bốn cột số gọn */
  .tq-nguoi-wrap { overflow-x: hidden; } .tq-nguoi-wrap th.n { font-size: var(--text-xs); }
  .tq-nguoi-wrap table.data.tq-tb { table-layout: fixed; }
  .tq-nguoi-wrap table.data.tq-tb th, .tq-nguoi-wrap table.data.tq-tb td { padding: var(--space-2) 2px; white-space: normal; overflow-wrap: anywhere; line-height: 1.2; }
  .tq-nguoi-wrap table.data.tq-tb th.n, .tq-nguoi-wrap table.data.tq-tb td.n { width: 18%; }
  .tq-nguoi-wrap table.data.tq-tb th { white-space: nowrap; overflow: hidden; }
  .tq-nguoi-wrap .tq-tb td:first-child { white-space: normal; }
  .tq-nguoi-wrap table.data.tq-tb th:last-child, .tq-nguoi-wrap table.data.tq-tb td:last-child { padding-right: var(--space-2); }
  .tq-fld .fbar-select { white-space: nowrap; }
  .tq-sec .pd-card-head .pd-hint { display: none; }
  .tq-ti { grid-template-columns: 36px minmax(0, 1fr); row-gap: var(--space-2); }
  .tq-ti > .btn { grid-column: 2; justify-self: start; white-space: nowrap; }
  .tq-tx span { white-space: normal; overflow: visible; text-overflow: clip; }
}
