/* App đối tác cano tb1.1.0 — CHỈ phần design system của app nội bộ chưa có. Mọi màu, bo góc, cỡ chữ lấy từ biến và lớp
   của nbkh.css / app.css / v2-theme-black.css / tai-cong.css (bản sao trùng byte trong thubao/css/). Thêm gì ở đây thì
   trước hết hỏi: lớp sẵn có của Gửi xe, Tài công, Thu ngân có làm được không. */

/* Gửi đoàn: tối đa 4 ảnh trong khung .oChup (Gửi xe chỉ có một ảnh biển số) */
.oChup.coAnh.tbNhieuAnh{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:4px;padding:4px;background:#e2e8f0}
.oChup.tbNhieuAnh.mot{grid-template-columns:1fr}
.oChup.tbNhieuAnh .tbAnh{position:relative;border-radius:10px;overflow:hidden;aspect-ratio:4/3;background:#cbd5e1}
.oChup.tbNhieuAnh.mot .tbAnh{aspect-ratio:auto}
.oChup.tbNhieuAnh .tbAnh img{width:100%;height:100%;max-height:230px;object-fit:cover;display:block}
.oChup.tbNhieuAnh .tbAnh button{position:absolute;top:6px;right:6px;width:30px;height:30px;border-radius:999px;border:0;
  background:rgba(15,23,42,.62);color:#fff;display:grid;place-items:center;padding:0}
.oChup.tbNhieuAnh .tbAnh button .ic{width:15px;height:15px;stroke:#fff;stroke-width:2.6}
.tbRong{width:100%}
.tbLoi{color:#b91c1c;font-size:14px;font-weight:600;min-height:0}
.tbLoi:empty{display:none}
.tbLoi:not(:empty){margin:0 0 10px}
.tbDangNhap{margin-top:10vh}
.tbDangNhap .goiy{margin:-6px 0 14px}

/* Danh sách: dòng tổng ngày nằm giữa chip lọc và thẻ đầu */
.tbTongNgay{font-size:13.5px;font-weight:600;color:var(--mo,#64748b);margin:0 4px 12px}
.tbTongNgay:empty{display:none}
/* Thẻ đoàn có nhiều ảnh: ảnh đầu to như Tài công, số ảnh còn lại ở góc */
.tcThe .tcAnhCano{position:relative}
.tcThe .tbSoAnh{position:absolute;right:10px;bottom:10px;background:rgba(15,23,42,.7);color:#fff;font-size:12.5px;
  font-weight:700;border-radius:999px;padding:3px 10px}
/* Xin rước + giá chuyến nằm chung lưới .tcHaiNut với hai nút mốc (2×2, cách đều 10px; chủ dự án 09/11: "2 hàng nút đang
   nằm xa nhau") — dùng NGUYÊN khối .tcO của nút mốc (cùng cỡ, hai dòng + icon phải), chỉ thêm màu: Xin rước cam như nhãn tcn-ruoc, giá chuyến xám trung tính. */
/* Bo góc thẻ đoàn (chủ dự án 09/11: "kiểm tra lại bo góc các thẻ"). Đo trên demo: thẻ 24px; bên trong lệch nhau — nút mốc 14,
   "Đã về" 18 và mất viền, ảnh 18, khung trao đổi 20 và thò ra ngoài lề nút 3,5px mỗi bên. Nguyên nhân: nút "Đã về" mang lớp .ve,
   trùng lớp vé chung của app.css (margin 9px) và v2-theme-black.css (:where(.ve) border:0, radius 18px). Quy về một hệ: thẻ 24px,
   mọi khối bên trong 16px, cùng lề 14px của thẻ. Tài công dùng cùng tai-cong.css nên có cùng lệch ở nút "Đã về". */
.tcHaiNut > .tcO{margin:0;border-width:2px;border-style:solid;border-radius:16px;box-shadow:none}
.tcThe .tcAnhCano,.tcThe .oAnh.tcAnhCano{border-radius:16px}
.tcThe > .tcChat{margin:0}
.tcThe > .tcChat .chat{margin:0;border-radius:16px}
/* Chuông Xin rước: nguyên .nutBaoRuocThe của Thu ngân; khung ảnh làm gốc định vị, chưa có ảnh thì đứng cạnh nhãn */
.tbKhungAnh{position:relative;min-width:0}
.tbKhungAnh .tbSoAnh{right:auto;left:10px}
.tbDauPhai{display:flex;align-items:center;gap:8px;flex:none}
.tbDauPhai .nutBaoRuocThe{position:static;box-shadow:none}
body.tbGon .tcThe .tbKhungAnh,body.tbGon .tcThe > .tcChat{display:none}
body.tbAnhNut .tcThe > .tcChat{display:none}

/* Quyết toán — danh sách chuyến: mỗi chuyến một dòng — tên + giờ · khách bên trái, giá bên phải; số tổng ở thanh .tomtat */
.tbQtTomTat{margin:4px 0 12px}
.tbQtDs{display:flex;flex-direction:column;margin:0 0 12px}
.tbQtDong{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 2px;border-bottom:1px solid #f1f5f9}
.tbQtDong:last-child{border-bottom:0}
.tbQtTen{min-width:0;display:flex;flex-direction:column;gap:3px}
.tbQtTen b{font-size:15.5px;font-weight:800;color:#0f172a;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.tbQtTen span{font-size:13px;font-weight:600;color:var(--mo,#64748b)}
.tbQtTen em{font-style:normal;font-size:11px;padding:2px 8px;vertical-align:1px}
.tbQtGia{flex:none;font-size:15.5px;font-weight:800;font-variant-numeric:tabular-nums;color:#0f172a}
.tbTrangQt{border-radius:14px;padding:12px 14px;font-size:14px;font-weight:600;margin:0 0 12px;background:#f1f5f9;color:#334155}
.tbTrangQt.chot{background:#fff7ed;color:#9a3412}
.tbTrangQt.xacNhan{background:#ecfdf5;color:#166534}
.tbTrangQt.moLai{background:#fef2f2;color:#991b1b}
#manQt .goiy{margin-top:10px}

/* Lịch tháng trong tấm .theCN */
.tbLich{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:5px;text-align:center;margin:6px 0 14px}
.tbLich .t{font-size:12px;font-weight:700;color:var(--mo,#64748b);padding:4px 0}
.tbLich button{border:0;background:#f1f5f9;border-radius:12px;min-height:46px;font-size:15px;font-weight:700;color:#0f172a;padding:4px 0}
.tbLich button small{display:block;font-size:11px;font-weight:700;color:var(--chinh,#111);min-height:1em}
.tbLich button.chon{background:#111;color:#fff}
.tbLich button.chon small{color:#fff}
.tbLich button:disabled{opacity:.35}
.tbLichDau{display:flex;align-items:center;justify-content:space-between;margin-bottom:6px}
.tbLichDau b{font-size:16px}
.tbHaiNut{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.theCN .truongFigma{margin:8px 0 12px}
.lopAnh img{max-width:100%;max-height:100%}
/* Đoàn chưa về lúc chốt tính 1 lượt: giá tính đậm, giá khứ hồi gạch ngang bên dưới */
.tbQtGiaO{flex:none;display:flex;flex-direction:column;align-items:flex-end;gap:1px}
.tbQtGiaO s{font-size:12px;font-weight:600;color:#94a3b8}
/* Giá chuyến: một dòng chữ có icon bút (chủ dự án 09/11: "chuyển thẻ này thành hàng text, có icon chỉnh sửa giá") */
.tbGiaDong{display:flex;align-items:center;gap:8px;width:100%;min-width:0;margin:0;padding:2px 2px;border:0;background:none;
  font:inherit;color:#0f172a;text-align:left;cursor:pointer}
.tbGiaNhan{flex:1;min-width:0;font-size:14px;font-weight:600;color:var(--mo,#64748b);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.tbGiaNhan small{font-size:12.5px;font-weight:600}
.tbGiaSo{flex:none;font-size:17px;font-weight:850;font-variant-numeric:tabular-nums}
.tbGiaDong .tbGiaBut{flex:none;width:18px;height:18px;color:#64748b}
.tbGiaDong:disabled{cursor:default}
.tbGiaDong:not(:disabled):active .tbGiaSo{opacity:.6}

/* Viền chạy (chủ dự án 09/11: "hiển thị line chạy, như app thu ngân") — NGUYÊN cơ chế .luot của app.css v3.0.184–185:
   ::before phủ thẻ, conic-gradient xoay theo @property --goc-vien-moi (khai báo trong app.css), màu theo mốc: vàng Chờ lên
   tàu, cam Đang đi, đỏ Xin rước, xanh Đã về. Thẻ cuộn khuất mang .vienNgoai (app.js) thì dừng. Khác Thu ngân: máy cảm ứng
   VẪN chạy — Thu ngân bỏ trên cảm ứng vì ~40 thẻ mask làm iOS hết bộ nhớ (v3.0.252); Thu Bao vài thẻ/ngày, và chỉ thẻ đang
   thấy chạy. Đoàn nhiều lên (trên ~15 thẻ/ngày) thì xét lại. */
.tcThe.tcn-cho{--vienChay:rgba(250,204,21,.95);--vienNen:rgba(253,230,138,.15);--vienTinh:rgba(251,210,78,.7)}
.tcThe.tcn-di{--vienChay:rgba(249,115,22,.9);--vienNen:rgba(254,215,170,.15);--vienTinh:rgba(251,146,60,.6)}
.tcThe.tcn-ruoc{--vienChay:rgba(220,38,38,.95);--vienNen:rgba(254,202,202,.2);--vienTinh:rgba(220,38,38,.6)}
.tcThe.tcn-ve{--vienChay:rgba(16,185,129,.85);--vienNen:rgba(167,243,208,.15);--vienTinh:rgba(52,211,153,.6)}
.tcThe:is(.tcn-cho,.tcn-di,.tcn-ruoc,.tcn-ve){position:relative;isolation:isolate}
.tcThe:is(.tcn-cho,.tcn-di,.tcn-ruoc,.tcn-ve)::before{content:'';position:absolute;inset:-1.5px;border-radius:inherit;padding:2px;
  pointer-events:none;z-index:1;
  background:conic-gradient(from var(--goc-vien-moi),var(--vienNen) 0deg,var(--vienChay) 50deg,var(--vienNen) 110deg,var(--vienNen) 360deg);
  -webkit-mask:linear-gradient(#000 0 0) content-box,linear-gradient(#000 0 0);-webkit-mask-composite:xor;
  mask:linear-gradient(#000 0 0) content-box exclude,linear-gradient(#000 0 0);
  animation:vienMoiChay 4.5s linear infinite}
.tcThe.vienNgoai::before{animation-play-state:paused}
.tcThe.tbHuy::before{content:none}
.tcThe.tbHuy{opacity:.5}
@media (prefers-reduced-motion:reduce){.tcThe:is(.tcn-cho,.tcn-di,.tcn-ruoc,.tcn-ve)::before{animation:none;background:var(--vienTinh)}}

/* Tấm sửa giá kiểu khối "Số lượng khách" của Thu ngân (chủ dự án 09/11). Luật gốc ở app.css (khungVeGon) và v2-theme-black
   (veCanoSua) chỉ phủ #manCt .khoiCano của Thu ngân ⇒ chép đúng số đo sang .tbSuaGia trong tấm .theCN. Không có Mã đoàn. */
.tbSuaGia{margin:4px 0 10px}
.tbSuaGia .khungVeGon{background:var(--tn-figma-row,#f8f8f9);border-radius:18px;padding:2px 14px;margin-bottom:10px}
.tbSuaGia .khungVeGon .ve{min-height:0;margin:0;padding:10px 0;border:0;border-radius:0;background:transparent;box-shadow:none;
  display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:10px}
.tbSuaGia .khungVeGon .ve+.ve{border-top:1px solid #e5e7eb}
.tbSuaGia .khungVeGon .ttl{display:flex;flex-direction:column;align-items:flex-start;gap:0;min-width:0;margin:0}
.tbSuaGia .nhanVe{font-size:14px;font-weight:850;color:var(--tn-figma-text,#334155);line-height:1.25;white-space:nowrap}
.tbSuaGia .ttl>em{margin:0;font-style:normal}
.tbSuaGia :is(.tbGiaVe,.giaMienPhi){display:inline-block;min-height:24px;line-height:24px;font-size:12px;font-weight:600;color:#64748b;
  text-decoration:underline dotted;text-underline-offset:3px;white-space:nowrap}
.tbSuaGia .demVeThuNgan{width:136px;max-width:136px;gap:2px;justify-self:end}
.tbSuaGia .demVeThuNgan input{min-width:0;width:40px;flex:1 1 40px;text-align:center}
.tbSuaGia .veCano.veCanoSua{margin:0;padding:10px 12px;border:0;border-radius:18px;background:var(--tn-figma-row,#f8f8f9);
  display:grid;grid-template-columns:minmax(90px,1fr) minmax(130px,1.5fr);align-items:center;gap:10px;text-align:left}
.tbSuaGia .veCanoSua label{margin:0;color:var(--tn-figma-text,#334155);font-size:13px;font-weight:850}
.tbSuaGia .veCanoSua input{min-height:44px;border:0;border-radius:14px;background:#fff;color:var(--tn-figma-text,#0f172a);
  font-size:18px;font-weight:850;text-align:right;width:100%;box-sizing:border-box;padding:0 12px}
.tbSuaGia .veCanoSua .goiYTien{display:block;margin:0;grid-column:1/-1;font-size:12.5px;font-weight:600;color:#64748b}
