/* NEW-182 (d) — hồ sơ giấy tờ (views/paperwork.js): tab "Giấy tờ" của phụ lục, ô BBNT bản cứng ở bảng tháng, màn "Thiếu bản cứng".
   Tiền tố gt-; chỉ token màu của app.css (sáng / tối). Màn danh sách dùng lại lớp fl-* (finance_list.css) cho ô tóm tắt, bộ lọc, thẻ điện thoại. */
/* thanh bước co theo bề rộng THẺ (container query), không theo màn: cột ghi chú bên phải chiếm chỗ ⇒ thẻ hẹp ở 1280 px vẫn 2 cột thoáng */
.gt { container-type: inline-size; }
.gt-head { display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: center; margin: 0 0 4px; }
.gt-head h3 { margin: 0; }
.gt-track { margin: 14px 0 0; }
.gt-track h4 { margin: 0 0 6px; font-size: 14px; }
.gt-bar { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; counter-reset: none; }
.gt-step { min-width: 0; }
.gt-btn { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; width: 100%; height: 100%; text-align: left; font: inherit; color: var(--ink);
  background: var(--surface); border: 1px solid var(--line); border-left: 3px solid var(--line); border-radius: 8px; padding: 8px 10px; min-width: 0; }
button.gt-btn { cursor: pointer; }
button.gt-btn:hover { background: var(--hover); }
button.gt-btn:focus-visible { outline: 2px solid var(--brand); outline-offset: 1px; }
.gt-step.done .gt-btn { border-left-color: var(--ok); }
.gt-step.late .gt-btn { border-left-color: var(--err); }
.gt-step.soon .gt-btn { border-left-color: var(--warn); }
.gt-n { display: inline-flex; align-items: center; justify-content: center; width: 20px; height: 20px; border-radius: 50%; font-size: 11px; font-weight: 600;
  background: var(--surface-2); color: var(--muted); border: 1px solid var(--line); }
.gt-step.done .gt-n { background: var(--ok-soft); color: var(--ok-text); border-color: var(--ok); }
.gt-t { font-weight: 600; font-size: 13px; overflow-wrap: anywhere; }
.gt-m { font-size: 12px; color: var(--muted); overflow-wrap: anywhere; }
/* .badge.x (2 lớp) thắng `.badge { white-space: nowrap }` của app.css / legal.css (nạp sau) ⇒ badge xuống dòng trong thẻ hẹp, không lòi viền */
.badge.gt-badge, .badge.gt-cause { white-space: normal; text-align: left; max-width: 100%; overflow-wrap: anywhere; }
.gt-delay { display: block; font-size: 12px; color: var(--ink); overflow-wrap: anywhere; margin-top: 2px; max-width: 100%; min-width: 0; }
.gt-cause { background: var(--surface-2); color: var(--ink); border: 1px dashed var(--line); }
.gt-months td { vertical-align: top; }
.gt-months .btn.small, .gt-mini .btn.small { margin: 3px 0 0; }
.gt-mini { font-size: 12px; margin: 0 0 4px; overflow-wrap: anywhere; }
.gt-mini-l { color: var(--muted); }
.gt-intro { max-width: 960px; margin: 0 0 8px; }
.gt-kind { background: var(--brand-soft); color: var(--ink); }
.badge.gt-remind { display: inline-block; margin-top: 3px; }     /* 2.46.0: "Chờ quá N ngày" dưới số ngày đã chờ / trong khối Việc của tôi */
.gt-table td:first-child { min-width: 220px; }
.gt-table td.fl-acts { white-space: nowrap; }
/* tiến độ đầu tab: thanh nhỏ x / y bước đã xong */
.gt-meter { display: inline-block; width: 96px; height: 6px; border-radius: 3px; background: var(--surface-2); border: 1px solid var(--line); overflow: hidden; }
.gt-meter > span { display: block; height: 100%; background: var(--ok); }
/* hộp ghi bước: chọn Đã xong / Chưa xong */
.modal .gt-pick { border: 0; margin: 0 0 8px; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.modal .gt-pick legend { font-size: 13px; font-weight: 600; color: var(--ink); padding: 0; margin: 0 0 4px; }
.modal .gt-opt { display: flex; gap: 8px; align-items: center; font-size: 14px; color: var(--ink); padding: 6px 10px; border: 1px solid var(--line);
  border-radius: 8px; background: var(--surface); cursor: pointer; }
.modal .gt-opt:has(input:checked) { border-color: var(--brand); background: var(--brand-soft); }
.modal .gt-opt input { margin: 0; width: 18px; height: 18px; accent-color: var(--brand); }
/* hộp ghi ngày: ô chọn lý do cùng kiểu ô nhập của hộp thao tác tháng (contract_periods.css) */
.modal label.cpd-f select { color: var(--ink); font-size: 14px; background: var(--surface); border: 1px solid var(--btn-border); }
.modal .gt-lead { margin: 0 0 6px; font-weight: 600; color: var(--ink); }

@container (max-width: 640px) {
  .gt-bar { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@container (max-width: 300px) {
  .gt-bar { grid-template-columns: minmax(0, 1fr); }
}
/* máy tính bảng / laptop nhỏ (bảng còn dạng cột, cuộn ngang trong khung): cột nút "Đã nhận lại" dính mép phải — luôn thấy, không phải cuộn */
@media (min-width: 761px) and (max-width: 1180px) {
  .gt-table td:first-child { min-width: 180px; }
  .gt-table td.fl-acts, .gt-table th.gt-acts-h { position: sticky; right: 0; z-index: 1; background: var(--surface); box-shadow: -1px 0 0 var(--line); }
  .gt-table tr.fl-row:hover > td.fl-acts { background: var(--surface-2); }
}
@media (max-width: 760px) {
  .gt-table td:first-child { min-width: 0; }
  .gt-btn { min-height: 44px; }
  .modal .gt-opt { min-height: 44px; font-size: 16px; }
  .gt-months .btn.small, .gt-mini .btn.small, .gt-table .btn.small { min-height: 44px; }
  .modal label.cpd-f select { font-size: 16px; min-height: 44px; }
  /* bảng tháng bản cứng: mỗi tháng một thẻ */
  table.data.gt-months thead { display: none; }
  table.data.gt-months, table.data.gt-months tbody, table.data.gt-months tr, table.data.gt-months td { display: block; width: 100%; }
  table.data.gt-months tr { border: 1px solid var(--line); border-radius: 8px; margin: 0 0 8px; padding: 8px 10px; }
  table.data.gt-months td { border: 0; padding: 3px 0; white-space: normal; }
  table.data.gt-months td[data-label]:not(:first-child)::before { content: attr(data-label); display: block; color: var(--muted); font-size: 11px; }
}
@media (pointer: coarse) {
  .gt-btn { min-height: 44px; }
}
